@xras/ui 0.7.0-beta2 → 0.7.0-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xras-ui.cjs +21 -21
- package/dist/xras-ui.js +150 -154
- package/package.json +1 -1
package/dist/xras-ui.cjs
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/i.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var l="18.2.0",u=Symbol.for("react.element"),d=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),L=Symbol.iterator,P="@@iterator";function F(D){if(D===null||typeof D!="object")return null;var q=L&&D[L]||D[P];return typeof q=="function"?q:null}var U={current:null},B={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},Z={},ue=null;function ie(D){ue=D}Z.setExtraStackFrame=function(D){ue=D},Z.getCurrentStack=null,Z.getStackAddendum=function(){var D="";ue&&(D+=ue);var q=Z.getCurrentStack;return q&&(D+=q()||""),D};var ge=!1,de=!1,_e=!1,Ee=!1,Ce=!1,je={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:B,ReactCurrentOwner:X};je.ReactDebugCurrentFrame=Z,je.ReactCurrentActQueue=z;function Le(D){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)pe[ye-1]=arguments[ye];Ie("warn",D,pe)}}function re(D){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)pe[ye-1]=arguments[ye];Ie("error",D,pe)}}function Ie(D,q,pe){{var ye=je.ReactDebugCurrentFrame,Be=ye.getStackAddendum();Be!==""&&(q+="%s",pe=pe.concat([Be]));var st=pe.map(function(Qe){return String(Qe)});st.unshift("Warning: "+q),Function.prototype.apply.call(console[D],console,st)}}var G={};function Y(D,q){{var pe=D.constructor,ye=pe&&(pe.displayName||pe.name)||"ReactClass",Be=ye+"."+q;if(G[Be])return;re("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.",q,ye),G[Be]=!0}}var ne={isMounted:function(D){return!1},enqueueForceUpdate:function(D,q,pe){Y(D,"forceUpdate")},enqueueReplaceState:function(D,q,pe,ye){Y(D,"replaceState")},enqueueSetState:function(D,q,pe,ye){Y(D,"setState")}},be=Object.assign,we={};Object.freeze(we);function Ne(D,q,pe){this.props=D,this.context=q,this.refs=we,this.updater=pe||ne}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(D,q){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,q,"setState")},Ne.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var Oe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ce=function(D,q){Object.defineProperty(Ne.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var fe in Oe)Oe.hasOwnProperty(fe)&&ce(fe,Oe[fe])}function Ve(){}Ve.prototype=Ne.prototype;function Ge(D,q,pe){this.props=D,this.context=q,this.refs=we,this.updater=pe||ne}var tt=Ge.prototype=new Ve;tt.constructor=Ge,be(tt,Ne.prototype),tt.isPureReactComponent=!0;function ot(){var D={current:null};return Object.seal(D),D}var Ae=Array.isArray;function Rt(D){return Ae(D)}function dt(D){{var q=typeof Symbol=="function"&&Symbol.toStringTag,pe=q&&D[Symbol.toStringTag]||D.constructor.name||"Object";return pe}}function en(D){try{return sn(D),!1}catch{return!0}}function sn(D){return""+D}function ln(D){if(en(D))return re("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(D)),sn(D)}function In(D,q,pe){var ye=D.displayName;if(ye)return ye;var Be=q.displayName||q.name||"";return Be!==""?pe+"("+Be+")":pe}function Vt(D){return D.displayName||"Context"}function xn(D){if(D==null)return null;if(typeof D.tag=="number"&&re("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case v:return"Fragment";case d:return"Portal";case y:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case j:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case x:var q=D;return Vt(q)+".Consumer";case C:var pe=D;return Vt(pe._context)+".Provider";case w:return In(D,D.render,"ForwardRef");case I:var ye=D.displayName||null;return ye!==null?ye:xn(D.type)||"Memo";case _:{var Be=D,st=Be._payload,Qe=Be._init;try{return xn(Qe(st))}catch{return null}}}return null}var Qn=Object.prototype.hasOwnProperty,Tr={key:!0,ref:!0,__self:!0,__source:!0},Hn,_r,St;St={};function Pn(D){if(Qn.call(D,"ref")){var q=Object.getOwnPropertyDescriptor(D,"ref").get;if(q&&q.isReactWarning)return!1}return D.ref!==void 0}function un(D){if(Qn.call(D,"key")){var q=Object.getOwnPropertyDescriptor(D,"key").get;if(q&&q.isReactWarning)return!1}return D.key!==void 0}function za(D,q){var pe=function(){Hn||(Hn=!0,re("%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://reactjs.org/link/special-props)",q))};pe.isReactWarning=!0,Object.defineProperty(D,"key",{get:pe,configurable:!0})}function $a(D,q){var pe=function(){_r||(_r=!0,re("%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://reactjs.org/link/special-props)",q))};pe.isReactWarning=!0,Object.defineProperty(D,"ref",{get:pe,configurable:!0})}function Ua(D){if(typeof D.ref=="string"&&X.current&&D.__self&&X.current.stateNode!==D.__self){var q=xn(X.current.type);St[q]||(re('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',q,D.ref),St[q]=!0)}}var Xe=function(D,q,pe,ye,Be,st,Qe){var Tt={$$typeof:u,type:D,key:q,ref:pe,props:Qe,_owner:st};return Tt._store={},Object.defineProperty(Tt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Tt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.defineProperty(Tt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(Tt.props),Object.freeze(Tt)),Tt};function ht(D,q,pe){var ye,Be={},st=null,Qe=null,Tt=null,Pt=null;if(q!=null){Pn(q)&&(Qe=q.ref,Ua(q)),un(q)&&(ln(q.key),st=""+q.key),Tt=q.__self===void 0?null:q.__self,Pt=q.__source===void 0?null:q.__source;for(ye in q)Qn.call(q,ye)&&!Tr.hasOwnProperty(ye)&&(Be[ye]=q[ye])}var fn=arguments.length-2;if(fn===1)Be.children=pe;else if(fn>1){for(var vn=Array(fn),mn=0;mn<fn;mn++)vn[mn]=arguments[mn+2];Object.freeze&&Object.freeze(vn),Be.children=vn}if(D&&D.defaultProps){var gn=D.defaultProps;for(ye in gn)Be[ye]===void 0&&(Be[ye]=gn[ye])}if(st||Qe){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;st&&za(Be,Vn),Qe&&$a(Be,Vn)}return Xe(D,st,Qe,Tt,Pt,X.current,Be)}function Mt(D,q){var pe=Xe(D.type,q,D.ref,D._self,D._source,D._owner,D.props);return pe}function cn(D,q,pe){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ye,Be=be({},D.props),st=D.key,Qe=D.ref,Tt=D._self,Pt=D._source,fn=D._owner;if(q!=null){Pn(q)&&(Qe=q.ref,fn=X.current),un(q)&&(ln(q.key),st=""+q.key);var vn;D.type&&D.type.defaultProps&&(vn=D.type.defaultProps);for(ye in q)Qn.call(q,ye)&&!Tr.hasOwnProperty(ye)&&(q[ye]===void 0&&vn!==void 0?Be[ye]=vn[ye]:Be[ye]=q[ye])}var mn=arguments.length-2;if(mn===1)Be.children=pe;else if(mn>1){for(var gn=Array(mn),Vn=0;Vn<mn;Vn++)gn[Vn]=arguments[Vn+2];Be.children=gn}return Xe(D.type,st,Qe,Tt,Pt,fn,Be)}function tn(D){return typeof D=="object"&&D!==null&&D.$$typeof===u}var ir=".",Gn=":";function Yr(D){var q=/[=:]/g,pe={"=":"=0",":":"=2"},ye=D.replace(q,function(Be){return pe[Be]});return"$"+ye}var hn=!1,Nr=/\/+/g;function dn(D){return D.replace(Nr,"$&/")}function An(D,q){return typeof D=="object"&&D!==null&&D.key!=null?(ln(D.key),Yr(""+D.key)):q.toString(36)}function ki(D,q,pe,ye,Be){var st=typeof D;(st==="undefined"||st==="boolean")&&(D=null);var Qe=!1;if(D===null)Qe=!0;else switch(st){case"string":case"number":Qe=!0;break;case"object":switch(D.$$typeof){case u:case d:Qe=!0}}if(Qe){var Tt=D,Pt=Be(Tt),fn=ye===""?ir+An(Tt,0):ye;if(Rt(Pt)){var vn="";fn!=null&&(vn=dn(fn)+"/"),ki(Pt,q,vn,"",function(oh){return oh})}else Pt!=null&&(tn(Pt)&&(Pt.key&&(!Tt||Tt.key!==Pt.key)&&ln(Pt.key),Pt=Mt(Pt,pe+(Pt.key&&(!Tt||Tt.key!==Pt.key)?dn(""+Pt.key)+"/":"")+fn)),q.push(Pt));return 1}var mn,gn,Vn=0,qt=ye===""?ir:ye+Gn;if(Rt(D))for(var Es=0;Es<D.length;Es++)mn=D[Es],gn=qt+An(mn,Es),Vn+=ki(mn,q,pe,gn,Be);else{var mu=F(D);if(typeof mu=="function"){var Oc=D;mu===Oc.entries&&(hn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hn=!0);for(var Dc=mu.call(Oc),Lo,kc=0;!(Lo=Dc.next()).done;)mn=Lo.value,gn=qt+An(mn,kc++),Vn+=ki(mn,q,pe,gn,Be)}else if(st==="object"){var Mc=String(D);throw new Error("Objects are not valid as a React child (found: "+(Mc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Mc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,q,pe){if(D==null)return D;var ye=[],Be=0;return ki(D,ye,"","",function(st){return q.call(pe,st,Be++)}),ye}function vs(D){var q=0;return ai(D,function(){q++}),q}function il(D,q,pe){ai(D,function(){q.apply(this,arguments)},pe)}function ol(D){return ai(D,function(q){return q})||[]}function ms(D){if(!tn(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function Mi(D){var q={$$typeof:x,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:C,_context:q};var pe=!1,ye=!1,Be=!1;{var st={$$typeof:x,_context:q};Object.defineProperties(st,{Provider:{get:function(){return ye||(ye=!0,re("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),q.Provider},set:function(Qe){q.Provider=Qe}},_currentValue:{get:function(){return q._currentValue},set:function(Qe){q._currentValue=Qe}},_currentValue2:{get:function(){return q._currentValue2},set:function(Qe){q._currentValue2=Qe}},_threadCount:{get:function(){return q._threadCount},set:function(Qe){q._threadCount=Qe}},Consumer:{get:function(){return pe||(pe=!0,re("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),q.Consumer}},displayName:{get:function(){return q.displayName},set:function(Qe){Be||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Qe),Be=!0)}}}),q.Consumer=st}return q._currentRenderer=null,q._currentRenderer2=null,q}var Li=-1,ii=0,Io=1,ya=2;function ba(D){if(D._status===Li){var q=D._result,pe=q();if(pe.then(function(st){if(D._status===ii||D._status===Li){var Qe=D;Qe._status=Io,Qe._result=st}},function(st){if(D._status===ii||D._status===Li){var Qe=D;Qe._status=ya,Qe._result=st}}),D._status===Li){var ye=D;ye._status=ii,ye._result=pe}}if(D._status===Io){var Be=D._result;return Be===void 0&&re(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
17
|
+
*/i.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var l="18.2.0",u=Symbol.for("react.element"),d=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),L=Symbol.iterator,P="@@iterator";function F(D){if(D===null||typeof D!="object")return null;var q=L&&D[L]||D[P];return typeof q=="function"?q:null}var U={current:null},B={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},Z={},ue=null;function ie(D){ue=D}Z.setExtraStackFrame=function(D){ue=D},Z.getCurrentStack=null,Z.getStackAddendum=function(){var D="";ue&&(D+=ue);var q=Z.getCurrentStack;return q&&(D+=q()||""),D};var ge=!1,de=!1,_e=!1,Ee=!1,Ce=!1,je={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:B,ReactCurrentOwner:X};je.ReactDebugCurrentFrame=Z,je.ReactCurrentActQueue=z;function Le(D){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)pe[ye-1]=arguments[ye];Ie("warn",D,pe)}}function re(D){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)pe[ye-1]=arguments[ye];Ie("error",D,pe)}}function Ie(D,q,pe){{var ye=je.ReactDebugCurrentFrame,Be=ye.getStackAddendum();Be!==""&&(q+="%s",pe=pe.concat([Be]));var st=pe.map(function(Qe){return String(Qe)});st.unshift("Warning: "+q),Function.prototype.apply.call(console[D],console,st)}}var G={};function Y(D,q){{var pe=D.constructor,ye=pe&&(pe.displayName||pe.name)||"ReactClass",Be=ye+"."+q;if(G[Be])return;re("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.",q,ye),G[Be]=!0}}var ne={isMounted:function(D){return!1},enqueueForceUpdate:function(D,q,pe){Y(D,"forceUpdate")},enqueueReplaceState:function(D,q,pe,ye){Y(D,"replaceState")},enqueueSetState:function(D,q,pe,ye){Y(D,"setState")}},be=Object.assign,we={};Object.freeze(we);function Ne(D,q,pe){this.props=D,this.context=q,this.refs=we,this.updater=pe||ne}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(D,q){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,q,"setState")},Ne.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var Oe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ce=function(D,q){Object.defineProperty(Ne.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var fe in Oe)Oe.hasOwnProperty(fe)&&ce(fe,Oe[fe])}function Ve(){}Ve.prototype=Ne.prototype;function Ge(D,q,pe){this.props=D,this.context=q,this.refs=we,this.updater=pe||ne}var tt=Ge.prototype=new Ve;tt.constructor=Ge,be(tt,Ne.prototype),tt.isPureReactComponent=!0;function ot(){var D={current:null};return Object.seal(D),D}var Ae=Array.isArray;function Rt(D){return Ae(D)}function dt(D){{var q=typeof Symbol=="function"&&Symbol.toStringTag,pe=q&&D[Symbol.toStringTag]||D.constructor.name||"Object";return pe}}function en(D){try{return sn(D),!1}catch{return!0}}function sn(D){return""+D}function ln(D){if(en(D))return re("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(D)),sn(D)}function In(D,q,pe){var ye=D.displayName;if(ye)return ye;var Be=q.displayName||q.name||"";return Be!==""?pe+"("+Be+")":pe}function Vt(D){return D.displayName||"Context"}function xn(D){if(D==null)return null;if(typeof D.tag=="number"&&re("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case v:return"Fragment";case d:return"Portal";case y:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case j:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case x:var q=D;return Vt(q)+".Consumer";case C:var pe=D;return Vt(pe._context)+".Provider";case w:return In(D,D.render,"ForwardRef");case I:var ye=D.displayName||null;return ye!==null?ye:xn(D.type)||"Memo";case _:{var Be=D,st=Be._payload,Qe=Be._init;try{return xn(Qe(st))}catch{return null}}}return null}var Qn=Object.prototype.hasOwnProperty,Tr={key:!0,ref:!0,__self:!0,__source:!0},Hn,_r,St;St={};function Pn(D){if(Qn.call(D,"ref")){var q=Object.getOwnPropertyDescriptor(D,"ref").get;if(q&&q.isReactWarning)return!1}return D.ref!==void 0}function un(D){if(Qn.call(D,"key")){var q=Object.getOwnPropertyDescriptor(D,"key").get;if(q&&q.isReactWarning)return!1}return D.key!==void 0}function za(D,q){var pe=function(){Hn||(Hn=!0,re("%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://reactjs.org/link/special-props)",q))};pe.isReactWarning=!0,Object.defineProperty(D,"key",{get:pe,configurable:!0})}function $a(D,q){var pe=function(){_r||(_r=!0,re("%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://reactjs.org/link/special-props)",q))};pe.isReactWarning=!0,Object.defineProperty(D,"ref",{get:pe,configurable:!0})}function Ua(D){if(typeof D.ref=="string"&&X.current&&D.__self&&X.current.stateNode!==D.__self){var q=xn(X.current.type);St[q]||(re('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',q,D.ref),St[q]=!0)}}var Xe=function(D,q,pe,ye,Be,st,Qe){var Tt={$$typeof:u,type:D,key:q,ref:pe,props:Qe,_owner:st};return Tt._store={},Object.defineProperty(Tt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Tt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.defineProperty(Tt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(Tt.props),Object.freeze(Tt)),Tt};function ht(D,q,pe){var ye,Be={},st=null,Qe=null,Tt=null,Pt=null;if(q!=null){Pn(q)&&(Qe=q.ref,Ua(q)),un(q)&&(ln(q.key),st=""+q.key),Tt=q.__self===void 0?null:q.__self,Pt=q.__source===void 0?null:q.__source;for(ye in q)Qn.call(q,ye)&&!Tr.hasOwnProperty(ye)&&(Be[ye]=q[ye])}var fn=arguments.length-2;if(fn===1)Be.children=pe;else if(fn>1){for(var vn=Array(fn),mn=0;mn<fn;mn++)vn[mn]=arguments[mn+2];Object.freeze&&Object.freeze(vn),Be.children=vn}if(D&&D.defaultProps){var gn=D.defaultProps;for(ye in gn)Be[ye]===void 0&&(Be[ye]=gn[ye])}if(st||Qe){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;st&&za(Be,Vn),Qe&&$a(Be,Vn)}return Xe(D,st,Qe,Tt,Pt,X.current,Be)}function Mt(D,q){var pe=Xe(D.type,q,D.ref,D._self,D._source,D._owner,D.props);return pe}function cn(D,q,pe){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ye,Be=be({},D.props),st=D.key,Qe=D.ref,Tt=D._self,Pt=D._source,fn=D._owner;if(q!=null){Pn(q)&&(Qe=q.ref,fn=X.current),un(q)&&(ln(q.key),st=""+q.key);var vn;D.type&&D.type.defaultProps&&(vn=D.type.defaultProps);for(ye in q)Qn.call(q,ye)&&!Tr.hasOwnProperty(ye)&&(q[ye]===void 0&&vn!==void 0?Be[ye]=vn[ye]:Be[ye]=q[ye])}var mn=arguments.length-2;if(mn===1)Be.children=pe;else if(mn>1){for(var gn=Array(mn),Vn=0;Vn<mn;Vn++)gn[Vn]=arguments[Vn+2];Be.children=gn}return Xe(D.type,st,Qe,Tt,Pt,fn,Be)}function tn(D){return typeof D=="object"&&D!==null&&D.$$typeof===u}var ir=".",Gn=":";function Yr(D){var q=/[=:]/g,pe={"=":"=0",":":"=2"},ye=D.replace(q,function(Be){return pe[Be]});return"$"+ye}var hn=!1,Nr=/\/+/g;function dn(D){return D.replace(Nr,"$&/")}function An(D,q){return typeof D=="object"&&D!==null&&D.key!=null?(ln(D.key),Yr(""+D.key)):q.toString(36)}function ki(D,q,pe,ye,Be){var st=typeof D;(st==="undefined"||st==="boolean")&&(D=null);var Qe=!1;if(D===null)Qe=!0;else switch(st){case"string":case"number":Qe=!0;break;case"object":switch(D.$$typeof){case u:case d:Qe=!0}}if(Qe){var Tt=D,Pt=Be(Tt),fn=ye===""?ir+An(Tt,0):ye;if(Rt(Pt)){var vn="";fn!=null&&(vn=dn(fn)+"/"),ki(Pt,q,vn,"",function(oh){return oh})}else Pt!=null&&(tn(Pt)&&(Pt.key&&(!Tt||Tt.key!==Pt.key)&&ln(Pt.key),Pt=Mt(Pt,pe+(Pt.key&&(!Tt||Tt.key!==Pt.key)?dn(""+Pt.key)+"/":"")+fn)),q.push(Pt));return 1}var mn,gn,Vn=0,Zt=ye===""?ir:ye+Gn;if(Rt(D))for(var Es=0;Es<D.length;Es++)mn=D[Es],gn=Zt+An(mn,Es),Vn+=ki(mn,q,pe,gn,Be);else{var mu=F(D);if(typeof mu=="function"){var Oc=D;mu===Oc.entries&&(hn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hn=!0);for(var Dc=mu.call(Oc),Lo,kc=0;!(Lo=Dc.next()).done;)mn=Lo.value,gn=Zt+An(mn,kc++),Vn+=ki(mn,q,pe,gn,Be)}else if(st==="object"){var Mc=String(D);throw new Error("Objects are not valid as a React child (found: "+(Mc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Mc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,q,pe){if(D==null)return D;var ye=[],Be=0;return ki(D,ye,"","",function(st){return q.call(pe,st,Be++)}),ye}function vs(D){var q=0;return ai(D,function(){q++}),q}function il(D,q,pe){ai(D,function(){q.apply(this,arguments)},pe)}function ol(D){return ai(D,function(q){return q})||[]}function ms(D){if(!tn(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function Mi(D){var q={$$typeof:x,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:C,_context:q};var pe=!1,ye=!1,Be=!1;{var st={$$typeof:x,_context:q};Object.defineProperties(st,{Provider:{get:function(){return ye||(ye=!0,re("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),q.Provider},set:function(Qe){q.Provider=Qe}},_currentValue:{get:function(){return q._currentValue},set:function(Qe){q._currentValue=Qe}},_currentValue2:{get:function(){return q._currentValue2},set:function(Qe){q._currentValue2=Qe}},_threadCount:{get:function(){return q._threadCount},set:function(Qe){q._threadCount=Qe}},Consumer:{get:function(){return pe||(pe=!0,re("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),q.Consumer}},displayName:{get:function(){return q.displayName},set:function(Qe){Be||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Qe),Be=!0)}}}),q.Consumer=st}return q._currentRenderer=null,q._currentRenderer2=null,q}var Li=-1,ii=0,Io=1,ya=2;function ba(D){if(D._status===Li){var q=D._result,pe=q();if(pe.then(function(st){if(D._status===ii||D._status===Li){var Qe=D;Qe._status=Io,Qe._result=st}},function(st){if(D._status===ii||D._status===Li){var Qe=D;Qe._status=ya,Qe._result=st}}),D._status===Li){var ye=D;ye._status=ii,ye._result=pe}}if(D._status===Io){var Be=D._result;return Be===void 0&&re(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
18
|
|
|
19
19
|
Your code should look like:
|
|
20
20
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -27,16 +27,16 @@ Your code should look like:
|
|
|
27
27
|
2. You might be breaking the Rules of Hooks
|
|
28
28
|
3. You might have more than one copy of React in the same app
|
|
29
29
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),D}function Bt(D){var q=Ye();if(D._context!==void 0){var pe=D._context;pe.Consumer===D?re("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?"):pe.Provider===D&&re("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return q.useContext(D)}function Ht(D){var q=Ye();return q.useState(D)}function kt(D,q,pe){var ye=Ye();return ye.useReducer(D,q,pe)}function vt(D){var q=Ye();return q.useRef(D)}function hr(D,q){var pe=Ye();return pe.useEffect(D,q)}function jn(D,q){var pe=Ye();return pe.useInsertionEffect(D,q)}function On(D,q){var pe=Ye();return pe.useLayoutEffect(D,q)}function Zr(D,q){var pe=Ye();return pe.useCallback(D,q)}function Ki(D,q){var pe=Ye();return pe.useMemo(D,q)}function Dn(D,q,pe){var ye=Ye();return ye.useImperativeHandle(D,q,pe)}function Ca(D,q){{var pe=Ye();return pe.useDebugValue(D,q)}}function xc(){var D=Ye();return D.useTransition()}function eo(D){var q=Ye();return q.useDeferredValue(D)}function Lt(){var D=Ye();return D.useId()}function sl(D,q,pe){var ye=Ye();return ye.useSyncExternalStore(D,q,pe)}var jo=0,gs,xa,Sc,ra,Ec,wc,Rc;function ll(){}ll.__reactDisabledLog=!0;function lu(){{if(jo===0){gs=console.log,xa=console.info,Sc=console.warn,ra=console.error,Ec=console.group,wc=console.groupCollapsed,Rc=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ll,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}jo++}}function Oo(){{if(jo--,jo===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:be({},D,{value:gs}),info:be({},D,{value:xa}),warn:be({},D,{value:Sc}),error:be({},D,{value:ra}),group:be({},D,{value:Ec}),groupCollapsed:be({},D,{value:wc}),groupEnd:be({},D,{value:Rc})})}jo<0&&re("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var to=je.ReactCurrentDispatcher,oi;function ys(D,q,pe){{if(oi===void 0)try{throw Error()}catch(Be){var ye=Be.stack.trim().match(/\n( *(at )?)/);oi=ye&&ye[1]||""}return`
|
|
30
|
-
`+oi+D}}var no=!1,ul;{var cl=typeof WeakMap=="function"?WeakMap:Map;ul=new cl}function bs(D,q){if(!D||no)return"";{var pe=ul.get(D);if(pe!==void 0)return pe}var ye;no=!0;var Be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var st;st=to.current,to.current=null,lu();try{if(q){var Qe=function(){throw Error()};if(Object.defineProperty(Qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Qe,[])}catch(
|
|
30
|
+
`+oi+D}}var no=!1,ul;{var cl=typeof WeakMap=="function"?WeakMap:Map;ul=new cl}function bs(D,q){if(!D||no)return"";{var pe=ul.get(D);if(pe!==void 0)return pe}var ye;no=!0;var Be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var st;st=to.current,to.current=null,lu();try{if(q){var Qe=function(){throw Error()};if(Object.defineProperty(Qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Qe,[])}catch(Zt){ye=Zt}Reflect.construct(D,[],Qe)}else{try{Qe.call()}catch(Zt){ye=Zt}D.call(Qe.prototype)}}else{try{throw Error()}catch(Zt){ye=Zt}D()}}catch(Zt){if(Zt&&ye&&typeof Zt.stack=="string"){for(var Tt=Zt.stack.split(`
|
|
31
31
|
`),Pt=ye.stack.split(`
|
|
32
32
|
`),fn=Tt.length-1,vn=Pt.length-1;fn>=1&&vn>=0&&Tt[fn]!==Pt[vn];)vn--;for(;fn>=1&&vn>=0;fn--,vn--)if(Tt[fn]!==Pt[vn]){if(fn!==1||vn!==1)do if(fn--,vn--,vn<0||Tt[fn]!==Pt[vn]){var mn=`
|
|
33
|
-
`+Tt[fn].replace(" at new "," at ");return D.displayName&&mn.includes("<anonymous>")&&(mn=mn.replace("<anonymous>",D.displayName)),typeof D=="function"&&ul.set(D,mn),mn}while(fn>=1&&vn>=0);break}}}finally{no=!1,to.current=st,Oo(),Error.prepareStackTrace=Be}var gn=D?D.displayName||D.name:"",Vn=gn?ys(gn):"";return typeof D=="function"&&ul.set(D,Vn),Vn}function Tc(D,q,pe){return bs(D,!1)}function _c(D){var q=D.prototype;return!!(q&&q.isReactComponent)}function Ut(D,q,pe){if(D==null)return"";if(typeof D=="function")return bs(D,_c(D));if(typeof D=="string")return ys(D);switch(D){case R:return ys("Suspense");case j:return ys("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case w:return Tc(D.render);case I:return Ut(D.type,q,pe);case _:{var ye=D,Be=ye._payload,st=ye._init;try{return Ut(st(Be),q,pe)}catch{}}}return""}var Nc={},uu=je.ReactDebugCurrentFrame;function Cs(D){if(D){var q=D._owner,pe=Ut(D.type,D._source,q?q.type:null);uu.setExtraStackFrame(pe)}else uu.setExtraStackFrame(null)}function Ic(D,q,pe,ye,Be){{var st=Function.call.bind(Qn);for(var Qe in D)if(st(D,Qe)){var Tt=void 0;try{if(typeof D[Qe]!="function"){var Pt=Error((ye||"React class")+": "+pe+" type `"+Qe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[Qe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pt.name="Invariant Violation",Pt}Tt=D[Qe](q,Qe,ye,pe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fn){Tt=fn}Tt&&!(Tt instanceof Error)&&(Cs(Be),re("%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).",ye||"React class",pe,Qe,typeof Tt),Cs(null)),Tt instanceof Error&&!(Tt.message in Nc)&&(Nc[Tt.message]=!0,Cs(Be),re("Failed %s type: %s",pe,Tt.message),Cs(null))}}}function
|
|
33
|
+
`+Tt[fn].replace(" at new "," at ");return D.displayName&&mn.includes("<anonymous>")&&(mn=mn.replace("<anonymous>",D.displayName)),typeof D=="function"&&ul.set(D,mn),mn}while(fn>=1&&vn>=0);break}}}finally{no=!1,to.current=st,Oo(),Error.prepareStackTrace=Be}var gn=D?D.displayName||D.name:"",Vn=gn?ys(gn):"";return typeof D=="function"&&ul.set(D,Vn),Vn}function Tc(D,q,pe){return bs(D,!1)}function _c(D){var q=D.prototype;return!!(q&&q.isReactComponent)}function Ut(D,q,pe){if(D==null)return"";if(typeof D=="function")return bs(D,_c(D));if(typeof D=="string")return ys(D);switch(D){case R:return ys("Suspense");case j:return ys("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case w:return Tc(D.render);case I:return Ut(D.type,q,pe);case _:{var ye=D,Be=ye._payload,st=ye._init;try{return Ut(st(Be),q,pe)}catch{}}}return""}var Nc={},uu=je.ReactDebugCurrentFrame;function Cs(D){if(D){var q=D._owner,pe=Ut(D.type,D._source,q?q.type:null);uu.setExtraStackFrame(pe)}else uu.setExtraStackFrame(null)}function Ic(D,q,pe,ye,Be){{var st=Function.call.bind(Qn);for(var Qe in D)if(st(D,Qe)){var Tt=void 0;try{if(typeof D[Qe]!="function"){var Pt=Error((ye||"React class")+": "+pe+" type `"+Qe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[Qe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pt.name="Invariant Violation",Pt}Tt=D[Qe](q,Qe,ye,pe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fn){Tt=fn}Tt&&!(Tt instanceof Error)&&(Cs(Be),re("%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).",ye||"React class",pe,Qe,typeof Tt),Cs(null)),Tt instanceof Error&&!(Tt.message in Nc)&&(Nc[Tt.message]=!0,Cs(Be),re("Failed %s type: %s",pe,Tt.message),Cs(null))}}}function Yt(D){if(D){var q=D._owner,pe=Ut(D.type,D._source,q?q.type:null);ie(pe)}else ie(null)}var cu;cu=!1;function dl(){if(X.current){var D=xn(X.current.type);if(D)return`
|
|
34
34
|
|
|
35
35
|
Check the render method of \``+D+"`."}return""}function It(D){if(D!==void 0){var q=D.fileName.replace(/^.*[\\\/]/,""),pe=D.lineNumber;return`
|
|
36
36
|
|
|
37
37
|
Check your code at `+q+":"+pe+"."}return""}function Pi(D){return D!=null?It(D.__source):""}var Wn={};function Sa(D){var q=dl();if(!q){var pe=typeof D=="string"?D:D.displayName||D.name;pe&&(q=`
|
|
38
38
|
|
|
39
|
-
Check the top-level render call using <`+pe+">.")}return q}function si(D,q){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var pe=Sa(q);if(!Wn[pe]){Wn[pe]=!0;var ye="";D&&D._owner&&D._owner!==X.current&&(ye=" It was passed a child from "+xn(D._owner.type)+"."),
|
|
39
|
+
Check the top-level render call using <`+pe+">.")}return q}function si(D,q){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var pe=Sa(q);if(!Wn[pe]){Wn[pe]=!0;var ye="";D&&D._owner&&D._owner!==X.current&&(ye=" It was passed a child from "+xn(D._owner.type)+"."),Yt(D),re('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',pe,ye),Yt(null)}}}function xs(D,q){if(typeof D=="object"){if(Rt(D))for(var pe=0;pe<D.length;pe++){var ye=D[pe];tn(ye)&&si(ye,q)}else if(tn(D))D._store&&(D._store.validated=!0);else if(D){var Be=F(D);if(typeof Be=="function"&&Be!==D.entries)for(var st=Be.call(D),Qe;!(Qe=st.next()).done;)tn(Qe.value)&&si(Qe.value,q)}}}function Fn(D){{var q=D.type;if(q==null||typeof q=="string")return;var pe;if(typeof q=="function")pe=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===w||q.$$typeof===I))pe=q.propTypes;else return;if(pe){var ye=xn(q);Ic(pe,D.props,"prop",ye,D)}else if(q.PropTypes!==void 0&&!cu){cu=!0;var Be=xn(q);re("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&re("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xn(D){{for(var q=Object.keys(D.props),pe=0;pe<q.length;pe++){var ye=q[pe];if(ye!=="children"&&ye!=="key"){Yt(D),re("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ye),Yt(null);break}}D.ref!==null&&(Yt(D),re("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function Ac(D,q,pe){var ye=ke(D);if(!ye){var Be="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Be+=" 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 st=Pi(q);st?Be+=st:Be+=dl();var Qe;D===null?Qe="null":Rt(D)?Qe="array":D!==void 0&&D.$$typeof===u?(Qe="<"+(xn(D.type)||"Unknown")+" />",Be=" Did you accidentally export a JSX literal instead of a component?"):Qe=typeof D,re("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Qe,Be)}var Tt=ht.apply(this,arguments);if(Tt==null)return Tt;if(ye)for(var Pt=2;Pt<arguments.length;Pt++)xs(arguments[Pt],D);return D===v?Xn(Tt):Fn(Tt),Tt}var Lr=!1;function Ea(D){var q=Ac.bind(null,D);return q.type=D,Lr||(Lr=!0,Le("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(q,"type",{enumerable:!1,get:function(){return Le("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}}),q}function Fi(D,q,pe){for(var ye=cn.apply(this,arguments),Be=2;Be<arguments.length;Be++)xs(arguments[Be],ye.type);return Fn(ye),ye}function du(D,q){var pe=B.transition;B.transition={};var ye=B.transition;B.transition._updatedFibers=new Set;try{D()}finally{if(B.transition=pe,pe===null&&ye._updatedFibers){var Be=ye._updatedFibers.size;Be>10&&Le("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),ye._updatedFibers.clear()}}}var fl=!1,pl=null;function Ss(D){if(pl===null)try{var q=("require"+Math.random()).slice(0,7),pe=t&&t[q];pl=pe.call(t,"timers").setImmediate}catch{pl=function(Be){fl===!1&&(fl=!0,typeof MessageChannel>"u"&&re("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var st=new MessageChannel;st.port1.onmessage=Be,st.port2.postMessage(void 0)}}return pl(D)}var li=0,Do=!1;function fu(D){{var q=li;li++,z.current===null&&(z.current=[]);var pe=z.isBatchingLegacy,ye;try{if(z.isBatchingLegacy=!0,ye=D(),!pe&&z.didScheduleLegacyUpdate){var Be=z.current;Be!==null&&(z.didScheduleLegacyUpdate=!1,Mo(Be))}}catch(gn){throw ko(q),gn}finally{z.isBatchingLegacy=pe}if(ye!==null&&typeof ye=="object"&&typeof ye.then=="function"){var st=ye,Qe=!1,Tt={then:function(gn,Vn){Qe=!0,st.then(function(Zt){ko(q),li===0?pu(Zt,gn,Vn):gn(Zt)},function(Zt){ko(q),Vn(Zt)})}};return!Do&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Qe||(Do=!0,re("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Tt}else{var Pt=ye;if(ko(q),li===0){var fn=z.current;fn!==null&&(Mo(fn),z.current=null);var vn={then:function(gn,Vn){z.current===null?(z.current=[],pu(Pt,gn,Vn)):gn(Pt)}};return vn}else{var mn={then:function(gn,Vn){gn(Pt)}};return mn}}}}function ko(D){D!==li-1&&re("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),li=D}function pu(D,q,pe){{var ye=z.current;if(ye!==null)try{Mo(ye),Ss(function(){ye.length===0?(z.current=null,q(D)):pu(D,q,pe)})}catch(Be){pe(Be)}else q(D)}}var ro=!1;function Mo(D){if(!ro){ro=!0;var q=0;try{for(;q<D.length;q++){var pe=D[q];do pe=pe(!0);while(pe!==null)}D.length=0}catch(ye){throw D=D.slice(q+1),ye}finally{ro=!1}}}var hu=Ac,jc=Fi,Vi=Ea,vu={map:ai,forEach:il,count:vs,toArray:ol,only:ms};r.Children=vu,r.Component=Ne,r.Fragment=v,r.Profiler=y,r.PureComponent=Ge,r.StrictMode=h,r.Suspense=R,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,r.cloneElement=jc,r.createContext=Mi,r.createElement=hu,r.createFactory=Vi,r.createRef=ot,r.forwardRef=Ao,r.isValidElement=tn,r.lazy=Ha,r.memo=He,r.startTransition=du,r.unstable_act=fu,r.useCallback=Zr,r.useContext=Bt,r.useDebugValue=Ca,r.useDeferredValue=eo,r.useEffect=hr,r.useId=Lt,r.useImperativeHandle=Dn,r.useInsertionEffect=jn,r.useLayoutEffect=On,r.useMemo=Ki,r.useReducer=kt,r.useRef=vt,r.useState=Ht,r.useSyncExternalStore=sl,r.useTransition=xc,r.version=l,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(vm,vm.exports)),vm.exports}var WN;function ef(){if(WN)return jb.exports;WN=1;var t={};return t.NODE_ENV==="production"?jb.exports=yz():jb.exports=bz(),jb.exports}/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.production.min.js
|
|
42
42
|
*
|
|
@@ -90,10 +90,10 @@ Check the top-level render call using <`+He+">.")}return ke}}function ms(J,ke){{
|
|
|
90
90
|
`+Y+a}var be=!1;function we(a,o){if(!a||be)return"";be=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(me){var g=me}Reflect.construct(a,[],o)}else{try{o.call()}catch(me){g=me}a.call(o.prototype)}else{try{throw Error()}catch(me){g=me}a()}}catch(me){if(me&&g&&typeof me.stack=="string"){for(var S=me.stack.split(`
|
|
91
91
|
`),T=g.stack.split(`
|
|
92
92
|
`),M=S.length-1,W=T.length-1;1<=M&&0<=W&&S[M]!==T[W];)W--;for(;1<=M&&0<=W;M--,W--)if(S[M]!==T[W]){if(M!==1||W!==1)do if(M--,W--,0>W||S[M]!==T[W]){var Q=`
|
|
93
|
-
`+S[M].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=M&&0<=W);break}}}finally{be=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?ne(a):""}function Ne(a){switch(a.tag){case 5:return ne(a.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return a=we(a.type,!1),a;case 11:return a=we(a.type.render,!1),a;case 1:return a=we(a.type,!0),a;default:return""}}function Oe(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case X:return"Fragment";case z:return"Portal";case ue:return"Profiler";case Z:return"StrictMode";case _e:return"Suspense";case Ee:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case ie:return(a._context.displayName||"Context")+".Provider";case de:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ce:return o=a.displayName||null,o!==null?o:Oe(a.type)||"Memo";case je:o=a._payload,a=a._init;try{return Oe(a(o))}catch{}}return null}function ce(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oe(o);case 8:return o===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function fe(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ve(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ge(a){var o=Ve(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),g=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,T=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(M){g=""+M,T.call(this,M)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return g},setValue:function(M){g=""+M},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=Ge(a))}function ot(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),g="";return a&&(g=Ve(a)?a.checked?"true":"false":a.value),a=g,a!==f?(o.setValue(a),!0):!1}function Ae(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Rt(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function dt(a,o){var f=o.defaultValue==null?"":o.defaultValue,g=o.checked!=null?o.checked:o.defaultChecked;f=fe(o.value!=null?o.value:f),a._wrapperState={initialChecked:g,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function en(a,o){o=o.checked,o!=null&&F(a,"checked",o,!1)}function sn(a,o){en(a,o);var f=fe(o.value),g=o.type;if(f!=null)g==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(g==="submit"||g==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?In(a,o.type,f):o.hasOwnProperty("defaultValue")&&In(a,o.type,fe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function ln(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type;if(!(g!=="submit"&&g!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,f||o===a.value||(a.value=o),a.defaultValue=o}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function In(a,o,f){(o!=="number"||Ae(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var Vt=Array.isArray;function xn(a,o,f,g){if(a=a.options,o){o={};for(var S=0;S<f.length;S++)o["$"+f[S]]=!0;for(f=0;f<a.length;f++)S=o.hasOwnProperty("$"+a[f].value),a[f].selected!==S&&(a[f].selected=S),S&&g&&(a[f].defaultSelected=!0)}else{for(f=""+fe(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,g&&(a[S].defaultSelected=!0);return}o!==null||a[S].disabled||(o=a[S])}o!==null&&(o.selected=!0)}}function Qn(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Tr(a,o){var f=o.value;if(f==null){if(f=o.children,o=o.defaultValue,f!=null){if(o!=null)throw Error(i(92));if(Vt(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),f=o}a._wrapperState={initialValue:fe(f)}}function Hn(a,o){var f=fe(o.value),g=fe(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),g!=null&&(a.defaultValue=""+g)}function _r(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function St(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?St(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var un,za=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,g,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,g,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(un=un||document.createElement("div"),un.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=un.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function $a(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ua={animationIterationCount:!0,aspectRatio:!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},Xe=["Webkit","ms","Moz","O"];Object.keys(Ua).forEach(function(a){Xe.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ua[o]=Ua[a]})});function ht(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ua.hasOwnProperty(a)&&Ua[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var g=f.indexOf("--")===0,S=ht(f,o[f],g);f==="float"&&(f="cssFloat"),g?a.setProperty(f,S):a[f]=S}}var cn=G({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 tn(a,o){if(o){if(cn[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function ir(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){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}}var Gn=null;function Yr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var hn=null,Nr=null,dn=null;function An(a){if(a=io(a)){if(typeof hn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=ff(o),hn(a.stateNode,a.type,o))}}function ki(a){Nr?dn?dn.push(a):dn=[a]:Nr=a}function ai(){if(Nr){var a=Nr,o=dn;if(dn=Nr=null,An(a),o)for(a=0;a<o.length;a++)An(o[a])}}function vs(a,o){return a(o)}function il(){}var ol=!1;function ms(a,o,f){if(ol)return a(o,f);ol=!0;try{return vs(a,o,f)}finally{ol=!1,(Nr!==null||dn!==null)&&(il(),ai())}}function Mi(a,o){var f=a.stateNode;if(f===null)return null;var g=ff(f);if(g===null)return null;f=g[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Li=!1;if(h)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function Io(a,o,f,g,S,T,M,W,Q){var me=Array.prototype.slice.call(arguments,3);try{o.apply(f,me)}catch(Me){this.onError(Me)}}var ya=!1,ba=null,Ha=!1,Ao=null,J={onError:function(a){ya=!0,ba=a}};function ke(a,o,f,g,S,T,M,W,Q){ya=!1,ba=null,Io.apply(J,arguments)}function He(a,o,f,g,S,T,M,W,Q){if(ke.apply(this,arguments),ya){if(ya){var me=ba;ya=!1,ba=null}else throw Error(i(198));Ha||(Ha=!0,Ao=me)}}function Ye(a){var o=a,f=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(f=o.return),a=o.return;while(a)}return o.tag===3?f:null}function Bt(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function Ht(a){if(Ye(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=Ye(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,g=o;;){var S=f.return;if(S===null)break;var T=S.alternate;if(T===null){if(g=S.return,g!==null){f=g;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===f)return Ht(S),a;if(T===g)return Ht(S),o;T=T.sibling}throw Error(i(188))}if(f.return!==g.return)f=S,g=T;else{for(var M=!1,W=S.child;W;){if(W===f){M=!0,f=S,g=T;break}if(W===g){M=!0,g=S,f=T;break}W=W.sibling}if(!M){for(W=T.child;W;){if(W===f){M=!0,f=T,g=S;break}if(W===g){M=!0,g=T,f=S;break}W=W.sibling}if(!M)throw Error(i(189))}}if(f.alternate!==g)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:o}function vt(a){return a=kt(a),a!==null?hr(a):null}function hr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=hr(a);if(o!==null)return o;a=a.sibling}return null}var jn=r.unstable_scheduleCallback,On=r.unstable_cancelCallback,Zr=r.unstable_shouldYield,Ki=r.unstable_requestPaint,Dn=r.unstable_now,Ca=r.unstable_getCurrentPriorityLevel,xc=r.unstable_ImmediatePriority,eo=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,sl=r.unstable_LowPriority,jo=r.unstable_IdlePriority,gs=null,xa=null;function Sc(a){if(xa&&typeof xa.onCommitFiberRoot=="function")try{xa.onCommitFiberRoot(gs,a,void 0,(a.current.flags&128)===128)}catch{}}var ra=Math.clz32?Math.clz32:Rc,Ec=Math.log,wc=Math.LN2;function Rc(a){return a>>>=0,a===0?32:31-(Ec(a)/wc|0)|0}var ll=64,lu=4194304;function Oo(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function to(a,o){var f=a.pendingLanes;if(f===0)return 0;var g=0,S=a.suspendedLanes,T=a.pingedLanes,M=f&268435455;if(M!==0){var W=M&~S;W!==0?g=Oo(W):(T&=M,T!==0&&(g=Oo(T)))}else M=f&~S,M!==0?g=Oo(M):T!==0&&(g=Oo(T));if(g===0)return 0;if(o!==0&&o!==g&&!(o&S)&&(S=g&-g,T=o&-o,S>=T||S===16&&(T&4194240)!==0))return o;if(g&4&&(g|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=g;0<o;)f=31-ra(o),S=1<<f,g|=a[f],o&=~S;return g}function oi(a,o){switch(a){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ys(a,o){for(var f=a.suspendedLanes,g=a.pingedLanes,S=a.expirationTimes,T=a.pendingLanes;0<T;){var M=31-ra(T),W=1<<M,Q=S[M];Q===-1?(!(W&f)||W&g)&&(S[M]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),T&=~W}}function no(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ul(){var a=ll;return ll<<=1,!(ll&4194240)&&(ll=64),a}function cl(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function bs(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-ra(o),a[o]=f}function Tc(a,o){var f=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var g=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-ra(f),T=1<<S;o[S]=0,g[S]=-1,a[S]=-1,f&=~T}}function _c(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var g=31-ra(f),S=1<<g;S&o|a[g]&o&&(a[g]|=o),f&=~S}}var Ut=0;function Nc(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var uu,Cs,Ic,Zt,cu,dl=!1,It=[],Pi=null,Wn=null,Sa=null,si=new Map,xs=new Map,Fn=[],Xn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ac(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(o.pointerId)}}function Lr(a,o,f,g,S,T){return a===null||a.nativeEvent!==T?(a={blockedOn:o,domEventName:f,eventSystemFlags:g,nativeEvent:T,targetContainers:[S]},o!==null&&(o=io(o),o!==null&&Cs(o)),a):(a.eventSystemFlags|=g,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Ea(a,o,f,g,S){switch(o){case"focusin":return Pi=Lr(Pi,a,o,f,g,S),!0;case"dragenter":return Wn=Lr(Wn,a,o,f,g,S),!0;case"mouseover":return Sa=Lr(Sa,a,o,f,g,S),!0;case"pointerover":var T=S.pointerId;return si.set(T,Lr(si.get(T)||null,a,o,f,g,S)),!0;case"gotpointercapture":return T=S.pointerId,xs.set(T,Lr(xs.get(T)||null,a,o,f,g,S)),!0}return!1}function Fi(a){var o=Uo(a.target);if(o!==null){var f=Ye(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,cu(a.priority,function(){Ic(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function du(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=hu(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var g=new f.constructor(f.type,f);Gn=g,f.target.dispatchEvent(g),Gn=null}else return o=io(f),o!==null&&Cs(o),a.blockedOn=f,!1;o.shift()}return!0}function fl(a,o,f){du(a)&&f.delete(o)}function pl(){dl=!1,Pi!==null&&du(Pi)&&(Pi=null),Wn!==null&&du(Wn)&&(Wn=null),Sa!==null&&du(Sa)&&(Sa=null),si.forEach(fl),xs.forEach(fl)}function Ss(a,o){a.blockedOn===o&&(a.blockedOn=null,dl||(dl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pl)))}function li(a){function o(S){return Ss(S,a)}if(0<It.length){Ss(It[0],a);for(var f=1;f<It.length;f++){var g=It[f];g.blockedOn===a&&(g.blockedOn=null)}}for(Pi!==null&&Ss(Pi,a),Wn!==null&&Ss(Wn,a),Sa!==null&&Ss(Sa,a),si.forEach(o),xs.forEach(o),f=0;f<Fn.length;f++)g=Fn[f],g.blockedOn===a&&(g.blockedOn=null);for(;0<Fn.length&&(f=Fn[0],f.blockedOn===null);)Fi(f),f.blockedOn===null&&Fn.shift()}var Do=U.ReactCurrentBatchConfig,fu=!0;function ko(a,o,f,g){var S=Ut,T=Do.transition;Do.transition=null;try{Ut=1,ro(a,o,f,g)}finally{Ut=S,Do.transition=T}}function pu(a,o,f,g){var S=Ut,T=Do.transition;Do.transition=null;try{Ut=4,ro(a,o,f,g)}finally{Ut=S,Do.transition=T}}function ro(a,o,f,g){if(fu){var S=hu(a,o,f,g);if(S===null)yh(a,o,g,Mo,f),Ac(a,g);else if(Ea(S,a,o,f,g))g.stopPropagation();else if(Ac(a,g),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var T=io(S);if(T!==null&&uu(T),T=hu(a,o,f,g),T===null&&yh(a,o,g,Mo,f),T===S)break;S=T}S!==null&&g.stopPropagation()}else yh(a,o,g,null,f)}}var Mo=null;function hu(a,o,f,g){if(Mo=null,a=Yr(g),a=Uo(a),a!==null)if(o=Ye(a),o===null)a=null;else if(f=o.tag,f===13){if(a=Bt(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return Mo=a,null}function jc(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ca()){case xc:return 1;case eo:return 4;case Lt:case sl:return 16;case jo:return 536870912;default:return 16}default:return 16}}var Vi=null,vu=null,D=null;function q(){if(D)return D;var a,o=vu,f=o.length,g,S="value"in Vi?Vi.value:Vi.textContent,T=S.length;for(a=0;a<f&&o[a]===S[a];a++);var M=f-a;for(g=1;g<=M&&o[f-g]===S[T-g];g++);return D=S.slice(a,1<g?1-g:void 0)}function pe(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function ye(){return!0}function Be(){return!1}function st(a){function o(f,g,S,T,M){this._reactName=f,this._targetInst=S,this.type=g,this.nativeEvent=T,this.target=M,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(T):T[W]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?ye:Be,this.isPropagationStopped=Be,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=ye)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=ye)},persist:function(){},isPersistent:ye}),o}var Qe={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tt=st(Qe),Pt=G({},Qe,{view:0,detail:0}),fn=st(Pt),vn,mn,gn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==gn&&(gn&&a.type==="mousemove"?(vn=a.screenX-gn.screenX,mn=a.screenY-gn.screenY):mn=vn=0,gn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:mn}}),qt=st(Vn),Es=G({},Vn,{dataTransfer:0}),mu=st(Es),Oc=G({},Pt,{relatedTarget:0}),Dc=st(Oc),Lo=G({},Qe,{animationName:0,elapsedTime:0,pseudoElement:0}),kc=st(Lo),Mc=G({},Qe,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),oh=st(Mc),rC=G({},Qe,{data:0}),$m=st(rC),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Hm[a])?!!o[a]:!1}function tf(){return Gm}var aC=G({},Pt,{key:function(a){if(a.key){var o=Um[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=pe(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?sh[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tf,charCode:function(a){return a.type==="keypress"?pe(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?pe(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Po=st(aC),iC=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nf=st(iC),lh=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tf}),uh=st(lh),oC=G({},Qe,{propertyName:0,elapsedTime:0,pseudoElement:0}),rf=st(oC),Wm=G({},Vn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),wa=st(Wm),Fo=[9,13,27,32],Kn=h&&"CompositionEvent"in window,Ga=null;h&&"documentMode"in document&&(Ga=document.documentMode);var ch=h&&"TextEvent"in window&&!Ga,Lc=h&&(!Kn||Ga&&8<Ga&&11>=Ga),Xm=" ",gu=!1;function Ym(a,o){switch(a){case"keyup":return Fo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ws=!1;function sC(a,o){switch(a){case"compositionend":return Zm(o);case"keypress":return o.which!==32?null:(gu=!0,Xm);case"textInput":return a=o.data,a===Xm&&gu?null:a;default:return null}}function lC(a,o){if(ws)return a==="compositionend"||!Kn&&Ym(a,o)?(a=q(),D=vu=Vi=null,ws=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Lc&&o.locale!=="ko"?null:o.data;default:return null}}var uC={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 dh(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!uC[a.type]:o==="textarea"}function qm(a,o,f,g){ki(g),o=cf(o,"onChange"),0<o.length&&(f=new Tt("onChange","change",null,f,g),a.push({event:f,listeners:o}))}var Pc=null,Fc=null;function Jm(a){pg(a,0)}function Vo(a){var o=xu(a);if(ot(o))return a}function fh(a,o){if(a==="change")return o}var ph=!1;if(h){var af;if(h){var hh="oninput"in document;if(!hh){var Qm=document.createElement("div");Qm.setAttribute("oninput","return;"),hh=typeof Qm.oninput=="function"}af=hh}else af=!1;ph=af&&(!document.documentMode||9<document.documentMode)}function Km(){Pc&&(Pc.detachEvent("onpropertychange",eg),Fc=Pc=null)}function eg(a){if(a.propertyName==="value"&&Vo(Fc)){var o=[];qm(o,Fc,a,Yr(a)),ms(Jm,o)}}function cC(a,o,f){a==="focusin"?(Km(),Pc=o,Fc=f,Pc.attachEvent("onpropertychange",eg)):a==="focusout"&&Km()}function dC(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Vo(Fc)}function fC(a,o){if(a==="click")return Vo(o)}function pC(a,o){if(a==="input"||a==="change")return Vo(o)}function tg(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:tg;function yu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),g=Object.keys(o);if(f.length!==g.length)return!1;for(g=0;g<f.length;g++){var S=f[g];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function ng(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function rg(a,o){var f=ng(a);a=0;for(var g;f;){if(f.nodeType===3){if(g=a+f.textContent.length,a<=o&&g>=o)return{node:f,offset:o-a};a=g}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=ng(f)}}function ag(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?ag(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function ig(){for(var a=window,o=Ae();o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=Ae(a.document)}return o}function Vc(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function hl(a){var o=ig(),f=a.focusedElem,g=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&ag(f.ownerDocument.documentElement,f)){if(g!==null&&Vc(f)){if(o=g.start,a=g.end,a===void 0&&(a=o),"selectionStart"in f)f.selectionStart=o,f.selectionEnd=Math.min(a,f.value.length);else if(a=(o=f.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var S=f.textContent.length,T=Math.min(g.start,S);g=g.end===void 0?T:Math.min(g.end,S),!a.extend&&T>g&&(S=g,g=T,T=S),S=rg(f,T);var M=rg(f,g);S&&M&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==M.node||a.focusOffset!==M.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),T>g?(a.addRange(o),a.extend(M.node,M.offset)):(o.setEnd(M.node,M.offset),a.addRange(o)))}}for(o=[],a=f;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<o.length;f++)a=o[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var of=h&&"documentMode"in document&&11>=document.documentMode,vl=null,Rs=null,Bc=null,vh=!1;function og(a,o,f){var g=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;vh||vl==null||vl!==Ae(g)||(g=vl,"selectionStart"in g&&Vc(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Bc&&yu(Bc,g)||(Bc=g,g=cf(Rs,"onSelect"),0<g.length&&(o=new Tt("onSelect","select",null,o,f),a.push({event:o,listeners:g}),o.target=vl)))}function sf(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var bu={animationend:sf("Animation","AnimationEnd"),animationiteration:sf("Animation","AnimationIteration"),animationstart:sf("Animation","AnimationStart"),transitionend:sf("Transition","TransitionEnd")},lf={},sg={};h&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete bu.animationend.animation,delete bu.animationiteration.animation,delete bu.animationstart.animation),"TransitionEvent"in window||delete bu.transitionend.transition);function zc(a){if(lf[a])return lf[a];if(!bu[a])return a;var o=bu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in sg)return lf[a]=o[f];return a}var qr=zc("animationend"),mh=zc("animationiteration"),lg=zc("animationstart"),ug=zc("transitionend"),cg=new Map,dg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ts(a,o){cg.set(a,o),d(o,[a])}for(var uf=0;uf<dg.length;uf++){var $c=dg[uf],Uc=$c.toLowerCase(),hC=$c[0].toUpperCase()+$c.slice(1);Ts(Uc,"on"+hC)}Ts(qr,"onAnimationEnd"),Ts(mh,"onAnimationIteration"),Ts(lg,"onAnimationStart"),Ts("dblclick","onDoubleClick"),Ts("focusin","onFocus"),Ts("focusout","onBlur"),Ts(ug,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function fg(a,o,f){var g=a.type||"unknown-event";a.currentTarget=f,He(g,o,void 0,a),a.currentTarget=null}function pg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var g=a[f],S=g.event;g=g.listeners;e:{var T=void 0;if(o)for(var M=g.length-1;0<=M;M--){var W=g[M],Q=W.instance,me=W.currentTarget;if(W=W.listener,Q!==T&&S.isPropagationStopped())break e;fg(S,W,me),T=Q}else for(M=0;M<g.length;M++){if(W=g[M],Q=W.instance,me=W.currentTarget,W=W.listener,Q!==T&&S.isPropagationStopped())break e;fg(S,W,me),T=Q}}}if(Ha)throw a=Ao,Ha=!1,Ao=null,a}function _n(a,o){var f=o[Th];f===void 0&&(f=o[Th]=new Set);var g=a+"__bubble";f.has(g)||(gh(o,a,2,!1),f.add(g))}function Hc(a,o,f){var g=0;o&&(g|=4),gh(f,a,g,o)}var zo="_reactListening"+Math.random().toString(36).slice(2);function ao(a){if(!a[zo]){a[zo]=!0,l.forEach(function(f){f!=="selectionchange"&&(vC.has(f)||Hc(f,!1,a),Hc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[zo]||(o[zo]=!0,Hc("selectionchange",!1,o))}}function gh(a,o,f,g){switch(jc(o)){case 1:var S=ko;break;case 4:S=pu;break;default:S=ro}f=S.bind(null,o,f,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),g?S!==void 0?a.addEventListener(o,f,{capture:!0,passive:S}):a.addEventListener(o,f,!0):S!==void 0?a.addEventListener(o,f,{passive:S}):a.addEventListener(o,f,!1)}function yh(a,o,f,g,S){var T=g;if(!(o&1)&&!(o&2)&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var W=g.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(M===4)for(M=g.return;M!==null;){var Q=M.tag;if((Q===3||Q===4)&&(Q=M.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;M=M.return}for(;W!==null;){if(M=Uo(W),M===null)return;if(Q=M.tag,Q===5||Q===6){g=T=M;continue e}W=W.parentNode}}g=g.return}ms(function(){var me=T,Me=Yr(f),Pe=[];e:{var De=cg.get(a);if(De!==void 0){var qe=Tt,rt=a;switch(a){case"keypress":if(pe(f)===0)break e;case"keydown":case"keyup":qe=Po;break;case"focusin":rt="focus",qe=Dc;break;case"focusout":rt="blur",qe=Dc;break;case"beforeblur":case"afterblur":qe=Dc;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":qe=qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=mu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=uh;break;case qr:case mh:case lg:qe=kc;break;case ug:qe=rf;break;case"scroll":qe=fn;break;case"wheel":qe=wa;break;case"copy":case"cut":case"paste":qe=oh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=nf}var lt=(o&4)!==0,dr=!lt&&a==="scroll",ae=lt?De!==null?De+"Capture":null:De;lt=[];for(var ee=me,le;ee!==null;){le=ee;var ze=le.stateNode;if(le.tag===5&&ze!==null&&(le=ze,ae!==null&&(ze=Mi(ee,ae),ze!=null&<.push(Cu(ee,ze,le)))),dr)break;ee=ee.return}0<lt.length&&(De=new qe(De,rt,null,f,Me),Pe.push({event:De,listeners:lt}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",qe=a==="mouseout"||a==="pointerout",De&&f!==Gn&&(rt=f.relatedTarget||f.fromElement)&&(Uo(rt)||rt[zi]))break e;if((qe||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,qe?(rt=f.relatedTarget||f.toElement,qe=me,rt=rt?Uo(rt):null,rt!==null&&(dr=Ye(rt),rt!==dr||rt.tag!==5&&rt.tag!==6)&&(rt=null)):(qe=null,rt=me),qe!==rt)){if(lt=qt,ze="onMouseLeave",ae="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(lt=nf,ze="onPointerLeave",ae="onPointerEnter",ee="pointer"),dr=qe==null?De:xu(qe),le=rt==null?De:xu(rt),De=new lt(ze,ee+"leave",qe,f,Me),De.target=dr,De.relatedTarget=le,ze=null,Uo(Me)===me&&(lt=new lt(ae,ee+"enter",rt,f,Me),lt.target=le,lt.relatedTarget=dr,ze=lt),dr=ze,qe&&rt)t:{for(lt=qe,ae=rt,ee=0,le=lt;le;le=ml(le))ee++;for(le=0,ze=ae;ze;ze=ml(ze))le++;for(;0<ee-le;)lt=ml(lt),ee--;for(;0<le-ee;)ae=ml(ae),le--;for(;ee--;){if(lt===ae||ae!==null&<===ae.alternate)break t;lt=ml(lt),ae=ml(ae)}lt=null}else lt=null;qe!==null&&bh(Pe,De,qe,lt,!1),rt!==null&&dr!==null&&bh(Pe,dr,rt,lt,!0)}}e:{if(De=me?xu(me):window,qe=De.nodeName&&De.nodeName.toLowerCase(),qe==="select"||qe==="input"&&De.type==="file")var ct=fh;else if(dh(De))if(ph)ct=pC;else{ct=dC;var xt=cC}else(qe=De.nodeName)&&qe.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(ct=fC);if(ct&&(ct=ct(a,me))){qm(Pe,ct,f,Me);break e}xt&&xt(a,De,me),a==="focusout"&&(xt=De._wrapperState)&&xt.controlled&&De.type==="number"&&In(De,"number",De.value)}switch(xt=me?xu(me):window,a){case"focusin":(dh(xt)||xt.contentEditable==="true")&&(vl=xt,Rs=me,Bc=null);break;case"focusout":Bc=Rs=vl=null;break;case"mousedown":vh=!0;break;case"contextmenu":case"mouseup":case"dragend":vh=!1,og(Pe,f,Me);break;case"selectionchange":if(of)break;case"keydown":case"keyup":og(Pe,f,Me)}var at;if(Kn)e:{switch(a){case"compositionstart":var Et="onCompositionStart";break e;case"compositionend":Et="onCompositionEnd";break e;case"compositionupdate":Et="onCompositionUpdate";break e}Et=void 0}else ws?Ym(a,f)&&(Et="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(Et="onCompositionStart");Et&&(Lc&&f.locale!=="ko"&&(ws||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&ws&&(at=q()):(Vi=Me,vu="value"in Vi?Vi.value:Vi.textContent,ws=!0)),xt=cf(me,Et),0<xt.length&&(Et=new $m(Et,a,null,f,Me),Pe.push({event:Et,listeners:xt}),at?Et.data=at:(at=Zm(f),at!==null&&(Et.data=at)))),(at=ch?sC(a,f):lC(a,f))&&(me=cf(me,"onBeforeInput"),0<me.length&&(Me=new $m("onBeforeInput","beforeinput",null,f,Me),Pe.push({event:Me,listeners:me}),Me.data=at))}pg(Pe,o)})}function Cu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function cf(a,o){for(var f=o+"Capture",g=[];a!==null;){var S=a,T=S.stateNode;S.tag===5&&T!==null&&(S=T,T=Mi(a,f),T!=null&&g.unshift(Cu(a,T,S)),T=Mi(a,o),T!=null&&g.push(Cu(a,T,S))),a=a.return}return g}function ml(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function bh(a,o,f,g,S){for(var T=o._reactName,M=[];f!==null&&f!==g;){var W=f,Q=W.alternate,me=W.stateNode;if(Q!==null&&Q===g)break;W.tag===5&&me!==null&&(W=me,S?(Q=Mi(f,T),Q!=null&&M.unshift(Cu(f,Q,W))):S||(Q=Mi(f,T),Q!=null&&M.push(Cu(f,Q,W)))),f=f.return}M.length!==0&&a.push({event:o,listeners:M})}var hg=/\r\n?/g,Ch=/\u0000|\uFFFD/g;function vg(a){return(typeof a=="string"?a:""+a).replace(hg,`
|
|
93
|
+
`+S[M].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=M&&0<=W);break}}}finally{be=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?ne(a):""}function Ne(a){switch(a.tag){case 5:return ne(a.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return a=we(a.type,!1),a;case 11:return a=we(a.type.render,!1),a;case 1:return a=we(a.type,!0),a;default:return""}}function Oe(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case X:return"Fragment";case z:return"Portal";case ue:return"Profiler";case Z:return"StrictMode";case _e:return"Suspense";case Ee:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case ie:return(a._context.displayName||"Context")+".Provider";case de:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ce:return o=a.displayName||null,o!==null?o:Oe(a.type)||"Memo";case je:o=a._payload,a=a._init;try{return Oe(a(o))}catch{}}return null}function ce(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oe(o);case 8:return o===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function fe(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ve(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ge(a){var o=Ve(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),g=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,T=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(M){g=""+M,T.call(this,M)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return g},setValue:function(M){g=""+M},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=Ge(a))}function ot(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),g="";return a&&(g=Ve(a)?a.checked?"true":"false":a.value),a=g,a!==f?(o.setValue(a),!0):!1}function Ae(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Rt(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function dt(a,o){var f=o.defaultValue==null?"":o.defaultValue,g=o.checked!=null?o.checked:o.defaultChecked;f=fe(o.value!=null?o.value:f),a._wrapperState={initialChecked:g,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function en(a,o){o=o.checked,o!=null&&F(a,"checked",o,!1)}function sn(a,o){en(a,o);var f=fe(o.value),g=o.type;if(f!=null)g==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(g==="submit"||g==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?In(a,o.type,f):o.hasOwnProperty("defaultValue")&&In(a,o.type,fe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function ln(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type;if(!(g!=="submit"&&g!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,f||o===a.value||(a.value=o),a.defaultValue=o}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function In(a,o,f){(o!=="number"||Ae(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var Vt=Array.isArray;function xn(a,o,f,g){if(a=a.options,o){o={};for(var S=0;S<f.length;S++)o["$"+f[S]]=!0;for(f=0;f<a.length;f++)S=o.hasOwnProperty("$"+a[f].value),a[f].selected!==S&&(a[f].selected=S),S&&g&&(a[f].defaultSelected=!0)}else{for(f=""+fe(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,g&&(a[S].defaultSelected=!0);return}o!==null||a[S].disabled||(o=a[S])}o!==null&&(o.selected=!0)}}function Qn(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Tr(a,o){var f=o.value;if(f==null){if(f=o.children,o=o.defaultValue,f!=null){if(o!=null)throw Error(i(92));if(Vt(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),f=o}a._wrapperState={initialValue:fe(f)}}function Hn(a,o){var f=fe(o.value),g=fe(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),g!=null&&(a.defaultValue=""+g)}function _r(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function St(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?St(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var un,za=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,g,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,g,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(un=un||document.createElement("div"),un.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=un.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function $a(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ua={animationIterationCount:!0,aspectRatio:!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},Xe=["Webkit","ms","Moz","O"];Object.keys(Ua).forEach(function(a){Xe.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ua[o]=Ua[a]})});function ht(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ua.hasOwnProperty(a)&&Ua[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var g=f.indexOf("--")===0,S=ht(f,o[f],g);f==="float"&&(f="cssFloat"),g?a.setProperty(f,S):a[f]=S}}var cn=G({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 tn(a,o){if(o){if(cn[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function ir(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){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}}var Gn=null;function Yr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var hn=null,Nr=null,dn=null;function An(a){if(a=io(a)){if(typeof hn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=ff(o),hn(a.stateNode,a.type,o))}}function ki(a){Nr?dn?dn.push(a):dn=[a]:Nr=a}function ai(){if(Nr){var a=Nr,o=dn;if(dn=Nr=null,An(a),o)for(a=0;a<o.length;a++)An(o[a])}}function vs(a,o){return a(o)}function il(){}var ol=!1;function ms(a,o,f){if(ol)return a(o,f);ol=!0;try{return vs(a,o,f)}finally{ol=!1,(Nr!==null||dn!==null)&&(il(),ai())}}function Mi(a,o){var f=a.stateNode;if(f===null)return null;var g=ff(f);if(g===null)return null;f=g[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Li=!1;if(h)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function Io(a,o,f,g,S,T,M,W,Q){var me=Array.prototype.slice.call(arguments,3);try{o.apply(f,me)}catch(Me){this.onError(Me)}}var ya=!1,ba=null,Ha=!1,Ao=null,J={onError:function(a){ya=!0,ba=a}};function ke(a,o,f,g,S,T,M,W,Q){ya=!1,ba=null,Io.apply(J,arguments)}function He(a,o,f,g,S,T,M,W,Q){if(ke.apply(this,arguments),ya){if(ya){var me=ba;ya=!1,ba=null}else throw Error(i(198));Ha||(Ha=!0,Ao=me)}}function Ye(a){var o=a,f=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(f=o.return),a=o.return;while(a)}return o.tag===3?f:null}function Bt(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function Ht(a){if(Ye(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=Ye(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,g=o;;){var S=f.return;if(S===null)break;var T=S.alternate;if(T===null){if(g=S.return,g!==null){f=g;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===f)return Ht(S),a;if(T===g)return Ht(S),o;T=T.sibling}throw Error(i(188))}if(f.return!==g.return)f=S,g=T;else{for(var M=!1,W=S.child;W;){if(W===f){M=!0,f=S,g=T;break}if(W===g){M=!0,g=S,f=T;break}W=W.sibling}if(!M){for(W=T.child;W;){if(W===f){M=!0,f=T,g=S;break}if(W===g){M=!0,g=T,f=S;break}W=W.sibling}if(!M)throw Error(i(189))}}if(f.alternate!==g)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:o}function vt(a){return a=kt(a),a!==null?hr(a):null}function hr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=hr(a);if(o!==null)return o;a=a.sibling}return null}var jn=r.unstable_scheduleCallback,On=r.unstable_cancelCallback,Zr=r.unstable_shouldYield,Ki=r.unstable_requestPaint,Dn=r.unstable_now,Ca=r.unstable_getCurrentPriorityLevel,xc=r.unstable_ImmediatePriority,eo=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,sl=r.unstable_LowPriority,jo=r.unstable_IdlePriority,gs=null,xa=null;function Sc(a){if(xa&&typeof xa.onCommitFiberRoot=="function")try{xa.onCommitFiberRoot(gs,a,void 0,(a.current.flags&128)===128)}catch{}}var ra=Math.clz32?Math.clz32:Rc,Ec=Math.log,wc=Math.LN2;function Rc(a){return a>>>=0,a===0?32:31-(Ec(a)/wc|0)|0}var ll=64,lu=4194304;function Oo(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function to(a,o){var f=a.pendingLanes;if(f===0)return 0;var g=0,S=a.suspendedLanes,T=a.pingedLanes,M=f&268435455;if(M!==0){var W=M&~S;W!==0?g=Oo(W):(T&=M,T!==0&&(g=Oo(T)))}else M=f&~S,M!==0?g=Oo(M):T!==0&&(g=Oo(T));if(g===0)return 0;if(o!==0&&o!==g&&!(o&S)&&(S=g&-g,T=o&-o,S>=T||S===16&&(T&4194240)!==0))return o;if(g&4&&(g|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=g;0<o;)f=31-ra(o),S=1<<f,g|=a[f],o&=~S;return g}function oi(a,o){switch(a){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ys(a,o){for(var f=a.suspendedLanes,g=a.pingedLanes,S=a.expirationTimes,T=a.pendingLanes;0<T;){var M=31-ra(T),W=1<<M,Q=S[M];Q===-1?(!(W&f)||W&g)&&(S[M]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),T&=~W}}function no(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ul(){var a=ll;return ll<<=1,!(ll&4194240)&&(ll=64),a}function cl(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function bs(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-ra(o),a[o]=f}function Tc(a,o){var f=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var g=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-ra(f),T=1<<S;o[S]=0,g[S]=-1,a[S]=-1,f&=~T}}function _c(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var g=31-ra(f),S=1<<g;S&o|a[g]&o&&(a[g]|=o),f&=~S}}var Ut=0;function Nc(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var uu,Cs,Ic,Yt,cu,dl=!1,It=[],Pi=null,Wn=null,Sa=null,si=new Map,xs=new Map,Fn=[],Xn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ac(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(o.pointerId)}}function Lr(a,o,f,g,S,T){return a===null||a.nativeEvent!==T?(a={blockedOn:o,domEventName:f,eventSystemFlags:g,nativeEvent:T,targetContainers:[S]},o!==null&&(o=io(o),o!==null&&Cs(o)),a):(a.eventSystemFlags|=g,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Ea(a,o,f,g,S){switch(o){case"focusin":return Pi=Lr(Pi,a,o,f,g,S),!0;case"dragenter":return Wn=Lr(Wn,a,o,f,g,S),!0;case"mouseover":return Sa=Lr(Sa,a,o,f,g,S),!0;case"pointerover":var T=S.pointerId;return si.set(T,Lr(si.get(T)||null,a,o,f,g,S)),!0;case"gotpointercapture":return T=S.pointerId,xs.set(T,Lr(xs.get(T)||null,a,o,f,g,S)),!0}return!1}function Fi(a){var o=Uo(a.target);if(o!==null){var f=Ye(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,cu(a.priority,function(){Ic(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function du(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=hu(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var g=new f.constructor(f.type,f);Gn=g,f.target.dispatchEvent(g),Gn=null}else return o=io(f),o!==null&&Cs(o),a.blockedOn=f,!1;o.shift()}return!0}function fl(a,o,f){du(a)&&f.delete(o)}function pl(){dl=!1,Pi!==null&&du(Pi)&&(Pi=null),Wn!==null&&du(Wn)&&(Wn=null),Sa!==null&&du(Sa)&&(Sa=null),si.forEach(fl),xs.forEach(fl)}function Ss(a,o){a.blockedOn===o&&(a.blockedOn=null,dl||(dl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pl)))}function li(a){function o(S){return Ss(S,a)}if(0<It.length){Ss(It[0],a);for(var f=1;f<It.length;f++){var g=It[f];g.blockedOn===a&&(g.blockedOn=null)}}for(Pi!==null&&Ss(Pi,a),Wn!==null&&Ss(Wn,a),Sa!==null&&Ss(Sa,a),si.forEach(o),xs.forEach(o),f=0;f<Fn.length;f++)g=Fn[f],g.blockedOn===a&&(g.blockedOn=null);for(;0<Fn.length&&(f=Fn[0],f.blockedOn===null);)Fi(f),f.blockedOn===null&&Fn.shift()}var Do=U.ReactCurrentBatchConfig,fu=!0;function ko(a,o,f,g){var S=Ut,T=Do.transition;Do.transition=null;try{Ut=1,ro(a,o,f,g)}finally{Ut=S,Do.transition=T}}function pu(a,o,f,g){var S=Ut,T=Do.transition;Do.transition=null;try{Ut=4,ro(a,o,f,g)}finally{Ut=S,Do.transition=T}}function ro(a,o,f,g){if(fu){var S=hu(a,o,f,g);if(S===null)yh(a,o,g,Mo,f),Ac(a,g);else if(Ea(S,a,o,f,g))g.stopPropagation();else if(Ac(a,g),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var T=io(S);if(T!==null&&uu(T),T=hu(a,o,f,g),T===null&&yh(a,o,g,Mo,f),T===S)break;S=T}S!==null&&g.stopPropagation()}else yh(a,o,g,null,f)}}var Mo=null;function hu(a,o,f,g){if(Mo=null,a=Yr(g),a=Uo(a),a!==null)if(o=Ye(a),o===null)a=null;else if(f=o.tag,f===13){if(a=Bt(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return Mo=a,null}function jc(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ca()){case xc:return 1;case eo:return 4;case Lt:case sl:return 16;case jo:return 536870912;default:return 16}default:return 16}}var Vi=null,vu=null,D=null;function q(){if(D)return D;var a,o=vu,f=o.length,g,S="value"in Vi?Vi.value:Vi.textContent,T=S.length;for(a=0;a<f&&o[a]===S[a];a++);var M=f-a;for(g=1;g<=M&&o[f-g]===S[T-g];g++);return D=S.slice(a,1<g?1-g:void 0)}function pe(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function ye(){return!0}function Be(){return!1}function st(a){function o(f,g,S,T,M){this._reactName=f,this._targetInst=S,this.type=g,this.nativeEvent=T,this.target=M,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(T):T[W]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?ye:Be,this.isPropagationStopped=Be,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=ye)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=ye)},persist:function(){},isPersistent:ye}),o}var Qe={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tt=st(Qe),Pt=G({},Qe,{view:0,detail:0}),fn=st(Pt),vn,mn,gn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==gn&&(gn&&a.type==="mousemove"?(vn=a.screenX-gn.screenX,mn=a.screenY-gn.screenY):mn=vn=0,gn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:mn}}),Zt=st(Vn),Es=G({},Vn,{dataTransfer:0}),mu=st(Es),Oc=G({},Pt,{relatedTarget:0}),Dc=st(Oc),Lo=G({},Qe,{animationName:0,elapsedTime:0,pseudoElement:0}),kc=st(Lo),Mc=G({},Qe,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),oh=st(Mc),rC=G({},Qe,{data:0}),$m=st(rC),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Hm[a])?!!o[a]:!1}function tf(){return Gm}var aC=G({},Pt,{key:function(a){if(a.key){var o=Um[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=pe(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?sh[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tf,charCode:function(a){return a.type==="keypress"?pe(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?pe(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Po=st(aC),iC=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nf=st(iC),lh=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tf}),uh=st(lh),oC=G({},Qe,{propertyName:0,elapsedTime:0,pseudoElement:0}),rf=st(oC),Wm=G({},Vn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),wa=st(Wm),Fo=[9,13,27,32],Kn=h&&"CompositionEvent"in window,Ga=null;h&&"documentMode"in document&&(Ga=document.documentMode);var ch=h&&"TextEvent"in window&&!Ga,Lc=h&&(!Kn||Ga&&8<Ga&&11>=Ga),Xm=" ",gu=!1;function Ym(a,o){switch(a){case"keyup":return Fo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ws=!1;function sC(a,o){switch(a){case"compositionend":return Zm(o);case"keypress":return o.which!==32?null:(gu=!0,Xm);case"textInput":return a=o.data,a===Xm&&gu?null:a;default:return null}}function lC(a,o){if(ws)return a==="compositionend"||!Kn&&Ym(a,o)?(a=q(),D=vu=Vi=null,ws=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Lc&&o.locale!=="ko"?null:o.data;default:return null}}var uC={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 dh(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!uC[a.type]:o==="textarea"}function qm(a,o,f,g){ki(g),o=cf(o,"onChange"),0<o.length&&(f=new Tt("onChange","change",null,f,g),a.push({event:f,listeners:o}))}var Pc=null,Fc=null;function Jm(a){pg(a,0)}function Vo(a){var o=xu(a);if(ot(o))return a}function fh(a,o){if(a==="change")return o}var ph=!1;if(h){var af;if(h){var hh="oninput"in document;if(!hh){var Qm=document.createElement("div");Qm.setAttribute("oninput","return;"),hh=typeof Qm.oninput=="function"}af=hh}else af=!1;ph=af&&(!document.documentMode||9<document.documentMode)}function Km(){Pc&&(Pc.detachEvent("onpropertychange",eg),Fc=Pc=null)}function eg(a){if(a.propertyName==="value"&&Vo(Fc)){var o=[];qm(o,Fc,a,Yr(a)),ms(Jm,o)}}function cC(a,o,f){a==="focusin"?(Km(),Pc=o,Fc=f,Pc.attachEvent("onpropertychange",eg)):a==="focusout"&&Km()}function dC(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Vo(Fc)}function fC(a,o){if(a==="click")return Vo(o)}function pC(a,o){if(a==="input"||a==="change")return Vo(o)}function tg(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:tg;function yu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),g=Object.keys(o);if(f.length!==g.length)return!1;for(g=0;g<f.length;g++){var S=f[g];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function ng(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function rg(a,o){var f=ng(a);a=0;for(var g;f;){if(f.nodeType===3){if(g=a+f.textContent.length,a<=o&&g>=o)return{node:f,offset:o-a};a=g}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=ng(f)}}function ag(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?ag(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function ig(){for(var a=window,o=Ae();o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=Ae(a.document)}return o}function Vc(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function hl(a){var o=ig(),f=a.focusedElem,g=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&ag(f.ownerDocument.documentElement,f)){if(g!==null&&Vc(f)){if(o=g.start,a=g.end,a===void 0&&(a=o),"selectionStart"in f)f.selectionStart=o,f.selectionEnd=Math.min(a,f.value.length);else if(a=(o=f.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var S=f.textContent.length,T=Math.min(g.start,S);g=g.end===void 0?T:Math.min(g.end,S),!a.extend&&T>g&&(S=g,g=T,T=S),S=rg(f,T);var M=rg(f,g);S&&M&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==M.node||a.focusOffset!==M.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),T>g?(a.addRange(o),a.extend(M.node,M.offset)):(o.setEnd(M.node,M.offset),a.addRange(o)))}}for(o=[],a=f;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<o.length;f++)a=o[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var of=h&&"documentMode"in document&&11>=document.documentMode,vl=null,Rs=null,Bc=null,vh=!1;function og(a,o,f){var g=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;vh||vl==null||vl!==Ae(g)||(g=vl,"selectionStart"in g&&Vc(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Bc&&yu(Bc,g)||(Bc=g,g=cf(Rs,"onSelect"),0<g.length&&(o=new Tt("onSelect","select",null,o,f),a.push({event:o,listeners:g}),o.target=vl)))}function sf(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var bu={animationend:sf("Animation","AnimationEnd"),animationiteration:sf("Animation","AnimationIteration"),animationstart:sf("Animation","AnimationStart"),transitionend:sf("Transition","TransitionEnd")},lf={},sg={};h&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete bu.animationend.animation,delete bu.animationiteration.animation,delete bu.animationstart.animation),"TransitionEvent"in window||delete bu.transitionend.transition);function zc(a){if(lf[a])return lf[a];if(!bu[a])return a;var o=bu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in sg)return lf[a]=o[f];return a}var qr=zc("animationend"),mh=zc("animationiteration"),lg=zc("animationstart"),ug=zc("transitionend"),cg=new Map,dg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ts(a,o){cg.set(a,o),d(o,[a])}for(var uf=0;uf<dg.length;uf++){var $c=dg[uf],Uc=$c.toLowerCase(),hC=$c[0].toUpperCase()+$c.slice(1);Ts(Uc,"on"+hC)}Ts(qr,"onAnimationEnd"),Ts(mh,"onAnimationIteration"),Ts(lg,"onAnimationStart"),Ts("dblclick","onDoubleClick"),Ts("focusin","onFocus"),Ts("focusout","onBlur"),Ts(ug,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function fg(a,o,f){var g=a.type||"unknown-event";a.currentTarget=f,He(g,o,void 0,a),a.currentTarget=null}function pg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var g=a[f],S=g.event;g=g.listeners;e:{var T=void 0;if(o)for(var M=g.length-1;0<=M;M--){var W=g[M],Q=W.instance,me=W.currentTarget;if(W=W.listener,Q!==T&&S.isPropagationStopped())break e;fg(S,W,me),T=Q}else for(M=0;M<g.length;M++){if(W=g[M],Q=W.instance,me=W.currentTarget,W=W.listener,Q!==T&&S.isPropagationStopped())break e;fg(S,W,me),T=Q}}}if(Ha)throw a=Ao,Ha=!1,Ao=null,a}function _n(a,o){var f=o[Th];f===void 0&&(f=o[Th]=new Set);var g=a+"__bubble";f.has(g)||(gh(o,a,2,!1),f.add(g))}function Hc(a,o,f){var g=0;o&&(g|=4),gh(f,a,g,o)}var zo="_reactListening"+Math.random().toString(36).slice(2);function ao(a){if(!a[zo]){a[zo]=!0,l.forEach(function(f){f!=="selectionchange"&&(vC.has(f)||Hc(f,!1,a),Hc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[zo]||(o[zo]=!0,Hc("selectionchange",!1,o))}}function gh(a,o,f,g){switch(jc(o)){case 1:var S=ko;break;case 4:S=pu;break;default:S=ro}f=S.bind(null,o,f,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),g?S!==void 0?a.addEventListener(o,f,{capture:!0,passive:S}):a.addEventListener(o,f,!0):S!==void 0?a.addEventListener(o,f,{passive:S}):a.addEventListener(o,f,!1)}function yh(a,o,f,g,S){var T=g;if(!(o&1)&&!(o&2)&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var W=g.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(M===4)for(M=g.return;M!==null;){var Q=M.tag;if((Q===3||Q===4)&&(Q=M.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;M=M.return}for(;W!==null;){if(M=Uo(W),M===null)return;if(Q=M.tag,Q===5||Q===6){g=T=M;continue e}W=W.parentNode}}g=g.return}ms(function(){var me=T,Me=Yr(f),Pe=[];e:{var De=cg.get(a);if(De!==void 0){var qe=Tt,rt=a;switch(a){case"keypress":if(pe(f)===0)break e;case"keydown":case"keyup":qe=Po;break;case"focusin":rt="focus",qe=Dc;break;case"focusout":rt="blur",qe=Dc;break;case"beforeblur":case"afterblur":qe=Dc;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":qe=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=mu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=uh;break;case qr:case mh:case lg:qe=kc;break;case ug:qe=rf;break;case"scroll":qe=fn;break;case"wheel":qe=wa;break;case"copy":case"cut":case"paste":qe=oh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=nf}var lt=(o&4)!==0,dr=!lt&&a==="scroll",ae=lt?De!==null?De+"Capture":null:De;lt=[];for(var ee=me,le;ee!==null;){le=ee;var ze=le.stateNode;if(le.tag===5&&ze!==null&&(le=ze,ae!==null&&(ze=Mi(ee,ae),ze!=null&<.push(Cu(ee,ze,le)))),dr)break;ee=ee.return}0<lt.length&&(De=new qe(De,rt,null,f,Me),Pe.push({event:De,listeners:lt}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",qe=a==="mouseout"||a==="pointerout",De&&f!==Gn&&(rt=f.relatedTarget||f.fromElement)&&(Uo(rt)||rt[zi]))break e;if((qe||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,qe?(rt=f.relatedTarget||f.toElement,qe=me,rt=rt?Uo(rt):null,rt!==null&&(dr=Ye(rt),rt!==dr||rt.tag!==5&&rt.tag!==6)&&(rt=null)):(qe=null,rt=me),qe!==rt)){if(lt=Zt,ze="onMouseLeave",ae="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(lt=nf,ze="onPointerLeave",ae="onPointerEnter",ee="pointer"),dr=qe==null?De:xu(qe),le=rt==null?De:xu(rt),De=new lt(ze,ee+"leave",qe,f,Me),De.target=dr,De.relatedTarget=le,ze=null,Uo(Me)===me&&(lt=new lt(ae,ee+"enter",rt,f,Me),lt.target=le,lt.relatedTarget=dr,ze=lt),dr=ze,qe&&rt)t:{for(lt=qe,ae=rt,ee=0,le=lt;le;le=ml(le))ee++;for(le=0,ze=ae;ze;ze=ml(ze))le++;for(;0<ee-le;)lt=ml(lt),ee--;for(;0<le-ee;)ae=ml(ae),le--;for(;ee--;){if(lt===ae||ae!==null&<===ae.alternate)break t;lt=ml(lt),ae=ml(ae)}lt=null}else lt=null;qe!==null&&bh(Pe,De,qe,lt,!1),rt!==null&&dr!==null&&bh(Pe,dr,rt,lt,!0)}}e:{if(De=me?xu(me):window,qe=De.nodeName&&De.nodeName.toLowerCase(),qe==="select"||qe==="input"&&De.type==="file")var ct=fh;else if(dh(De))if(ph)ct=pC;else{ct=dC;var xt=cC}else(qe=De.nodeName)&&qe.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(ct=fC);if(ct&&(ct=ct(a,me))){qm(Pe,ct,f,Me);break e}xt&&xt(a,De,me),a==="focusout"&&(xt=De._wrapperState)&&xt.controlled&&De.type==="number"&&In(De,"number",De.value)}switch(xt=me?xu(me):window,a){case"focusin":(dh(xt)||xt.contentEditable==="true")&&(vl=xt,Rs=me,Bc=null);break;case"focusout":Bc=Rs=vl=null;break;case"mousedown":vh=!0;break;case"contextmenu":case"mouseup":case"dragend":vh=!1,og(Pe,f,Me);break;case"selectionchange":if(of)break;case"keydown":case"keyup":og(Pe,f,Me)}var at;if(Kn)e:{switch(a){case"compositionstart":var Et="onCompositionStart";break e;case"compositionend":Et="onCompositionEnd";break e;case"compositionupdate":Et="onCompositionUpdate";break e}Et=void 0}else ws?Ym(a,f)&&(Et="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(Et="onCompositionStart");Et&&(Lc&&f.locale!=="ko"&&(ws||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&ws&&(at=q()):(Vi=Me,vu="value"in Vi?Vi.value:Vi.textContent,ws=!0)),xt=cf(me,Et),0<xt.length&&(Et=new $m(Et,a,null,f,Me),Pe.push({event:Et,listeners:xt}),at?Et.data=at:(at=Zm(f),at!==null&&(Et.data=at)))),(at=ch?sC(a,f):lC(a,f))&&(me=cf(me,"onBeforeInput"),0<me.length&&(Me=new $m("onBeforeInput","beforeinput",null,f,Me),Pe.push({event:Me,listeners:me}),Me.data=at))}pg(Pe,o)})}function Cu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function cf(a,o){for(var f=o+"Capture",g=[];a!==null;){var S=a,T=S.stateNode;S.tag===5&&T!==null&&(S=T,T=Mi(a,f),T!=null&&g.unshift(Cu(a,T,S)),T=Mi(a,o),T!=null&&g.push(Cu(a,T,S))),a=a.return}return g}function ml(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function bh(a,o,f,g,S){for(var T=o._reactName,M=[];f!==null&&f!==g;){var W=f,Q=W.alternate,me=W.stateNode;if(Q!==null&&Q===g)break;W.tag===5&&me!==null&&(W=me,S?(Q=Mi(f,T),Q!=null&&M.unshift(Cu(f,Q,W))):S||(Q=Mi(f,T),Q!=null&&M.push(Cu(f,Q,W)))),f=f.return}M.length!==0&&a.push({event:o,listeners:M})}var hg=/\r\n?/g,Ch=/\u0000|\uFFFD/g;function vg(a){return(typeof a=="string"?a:""+a).replace(hg,`
|
|
94
94
|
`).replace(Ch,"")}function Gc(a,o,f){if(o=vg(o),vg(a)!==o&&f)throw Error(i(425))}function df(){}var xh=null,Sh=null;function gl(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Wc=typeof setTimeout=="function"?setTimeout:void 0,Xc=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,mg=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(a){return Eh.resolve(null).then(a).catch(wh)}:Wc;function wh(a){setTimeout(function(){throw a})}function Rh(a,o){var f=o,g=0;do{var S=f.nextSibling;if(a.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(g===0){a.removeChild(S),li(o);return}g--}else f!=="$"&&f!=="$?"&&f!=="$!"||g++;f=S}while(f);li(o)}function Wa(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Yc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"){if(o===0)return a;o--}else f==="/$"&&o++}a=a.previousSibling}return null}var $o=Math.random().toString(36).slice(2),ui="__reactFiber$"+$o,Zc="__reactProps$"+$o,zi="__reactContainer$"+$o,Th="__reactEvents$"+$o,mC="__reactListeners$"+$o,gC="__reactHandles$"+$o;function Uo(a){var o=a[ui];if(o)return o;for(var f=a.parentNode;f;){if(o=f[zi]||f[ui]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=Yc(a);a!==null;){if(f=a[ui])return f;a=Yc(a)}return o}a=f,f=a.parentNode}return null}function io(a){return a=a[ui]||a[zi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function xu(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function ff(a){return a[Zc]||null}var mt=[],$i=-1;function Nn(a){return{current:a}}function ut(a){0>$i||(a.current=mt[$i],mt[$i]=null,$i--)}function nn(a,o){$i++,mt[$i]=a.current,a.current=o}var ci={},Ir=Nn(ci),At=Nn(!1),aa=ci;function Xa(a,o){var f=a.type.contextTypes;if(!f)return ci;var g=a.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===o)return g.__reactInternalMemoizedMaskedChildContext;var S={},T;for(T in f)S[T]=o[T];return g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function vr(a){return a=a.childContextTypes,a!=null}function Ra(){ut(At),ut(Ir)}function oo(a,o,f){if(Ir.current!==ci)throw Error(i(168));nn(Ir,o),nn(At,f)}function _s(a,o,f){var g=a.stateNode;if(o=o.childContextTypes,typeof g.getChildContext!="function")return f;g=g.getChildContext();for(var S in g)if(!(S in o))throw Error(i(108,ce(a)||"Unknown",S));return G({},f,g)}function yl(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ci,aa=Ir.current,nn(Ir,a),nn(At,At.current),!0}function gg(a,o,f){var g=a.stateNode;if(!g)throw Error(i(169));f?(a=_s(a,o,aa),g.__reactInternalMemoizedMergedChildContext=a,ut(At),ut(Ir),nn(Ir,a)):ut(At),nn(At,f)}var Ho=null,Ns=!1,Pr=!1;function pf(a){Ho===null?Ho=[a]:Ho.push(a)}function yg(a){Ns=!0,pf(a)}function so(){if(!Pr&&Ho!==null){Pr=!0;var a=0,o=Ut;try{var f=Ho;for(Ut=1;a<f.length;a++){var g=f[a];do g=g(!0);while(g!==null)}Ho=null,Ns=!1}catch(S){throw Ho!==null&&(Ho=Ho.slice(a+1)),jn(xc,so),S}finally{Ut=o,Pr=!1}}return null}var di=[],Is=0,fi=null,bl=0,Ta=[],_a=0,Ui=null,Na=1,Fr="";function Cl(a,o){di[Is++]=bl,di[Is++]=fi,fi=a,bl=o}function As(a,o,f){Ta[_a++]=Na,Ta[_a++]=Fr,Ta[_a++]=Ui,Ui=a;var g=Na;a=Fr;var S=32-ra(g)-1;g&=~(1<<S),f+=1;var T=32-ra(o)+S;if(30<T){var M=S-S%5;T=(g&(1<<M)-1).toString(32),g>>=M,S-=M,Na=1<<32-ra(o)+S|f<<S|g,Fr=T+a}else Na=1<<T|f<<S|g,Fr=a}function hf(a){a.return!==null&&(Cl(a,1),As(a,1,0))}function vf(a){for(;a===fi;)fi=di[--Is],di[Is]=null,bl=di[--Is],di[Is]=null;for(;a===Ui;)Ui=Ta[--_a],Ta[_a]=null,Fr=Ta[--_a],Ta[_a]=null,Na=Ta[--_a],Ta[_a]=null}var Ya=null,Za=null,Bn=!1,pi=null;function _h(a,o){var f=xi(5,null,null,0);f.elementType="DELETED",f.stateNode=o,f.return=a,o=a.deletions,o===null?(a.deletions=[f],a.flags|=16):o.push(f)}function Nh(a,o){switch(a.tag){case 5:var f=a.type;return o=o.nodeType!==1||f.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,Ya=a,Za=Wa(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Ya=a,Za=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Ui!==null?{id:Na,overflow:Fr}:null,a.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=xi(18,null,null,0),f.stateNode=o,f.return=a,a.child=f,Ya=a,Za=null,!0):!1;default:return!1}}function Ih(a){return(a.mode&1)!==0&&(a.flags&128)===0}function mf(a){if(Bn){var o=Za;if(o){var f=o;if(!Nh(a,o)){if(Ih(a))throw Error(i(418));o=Wa(f.nextSibling);var g=Ya;o&&Nh(a,o)?_h(g,f):(a.flags=a.flags&-4097|2,Bn=!1,Ya=a)}}else{if(Ih(a))throw Error(i(418));a.flags=a.flags&-4097|2,Bn=!1,Ya=a}}}function Ah(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Ya=a}function gf(a){if(a!==Ya)return!1;if(!Bn)return Ah(a),Bn=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!gl(a.type,a.memoizedProps)),o&&(o=Za)){if(Ih(a))throw bg(),Error(i(418));for(;o;)_h(a,o),o=Wa(o.nextSibling)}if(Ah(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"){if(o===0){Za=Wa(a.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}a=a.nextSibling}Za=null}}else Za=Ya?Wa(a.stateNode.nextSibling):null;return!0}function bg(){for(var a=Za;a;)a=Wa(a.nextSibling)}function Su(){Za=Ya=null,Bn=!1}function mr(a){pi===null?pi=[a]:pi.push(a)}var yC=U.ReactCurrentBatchConfig;function Ia(a,o){if(a&&a.defaultProps){o=G({},o),a=a.defaultProps;for(var f in a)o[f]===void 0&&(o[f]=a[f]);return o}return o}var Eu=Nn(null),lo=null,wu=null,qc=null;function jh(){qc=wu=lo=null}function Oh(a){var o=Eu.current;ut(Eu),a._currentValue=o}function js(a,o,f){for(;a!==null;){var g=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,g!==null&&(g.childLanes|=o)):g!==null&&(g.childLanes&o)!==o&&(g.childLanes|=o),a===f)break;a=a.return}}function or(a,o){lo=a,qc=wu=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Oa=!0),a.firstContext=null)}function $e(a){var o=a._currentValue;if(qc!==a)if(a={context:a,memoizedValue:o,next:null},wu===null){if(lo===null)throw Error(i(308));wu=a,lo.dependencies={lanes:0,firstContext:a}}else wu=wu.next=a;return o}var Jr=null;function qa(a){Jr===null?Jr=[a]:Jr.push(a)}function Cg(a,o,f,g){var S=o.interleaved;return S===null?(f.next=f,qa(o)):(f.next=S.next,S.next=f),o.interleaved=f,Go(a,g)}function Go(a,o){a.lanes|=o;var f=a.alternate;for(f!==null&&(f.lanes|=o),f=a,a=a.return;a!==null;)a.childLanes|=o,f=a.alternate,f!==null&&(f.childLanes|=o),f=a,a=a.return;return f.tag===3?f.stateNode:null}var Os=!1;function Dh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xg(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function kn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function Ds(a,o,f){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,zt&2){var S=g.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),g.pending=o,Go(a,f)}return S=g.interleaved,S===null?(o.next=o,qa(g)):(o.next=S.next,S.next=o),g.interleaved=o,Go(a,f)}function yf(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,_c(a,f)}}function Sg(a,o){var f=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,f===g)){var S=null,T=null;if(f=f.firstBaseUpdate,f!==null){do{var M={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};T===null?S=T=M:T=T.next=M,f=f.next}while(f!==null);T===null?S=T=o:T=T.next=o}else S=T=o;f={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:g.shared,effects:g.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}function Jc(a,o,f,g){var S=a.updateQueue;Os=!1;var T=S.firstBaseUpdate,M=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,me=Q.next;Q.next=null,M===null?T=me:M.next=me,M=Q;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,W=Me.lastBaseUpdate,W!==M&&(W===null?Me.firstBaseUpdate=me:W.next=me,Me.lastBaseUpdate=Q))}if(T!==null){var Pe=S.baseState;M=0,Me=me=Q=null,W=T;do{var De=W.lane,qe=W.eventTime;if((g&De)===De){Me!==null&&(Me=Me.next={eventTime:qe,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var rt=a,lt=W;switch(De=o,qe=f,lt.tag){case 1:if(rt=lt.payload,typeof rt=="function"){Pe=rt.call(qe,Pe,De);break e}Pe=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=lt.payload,De=typeof rt=="function"?rt.call(qe,Pe,De):rt,De==null)break e;Pe=G({},Pe,De);break e;case 2:Os=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,De=S.effects,De===null?S.effects=[W]:De.push(W))}else qe={eventTime:qe,lane:De,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Me===null?(me=Me=qe,Q=Pe):Me=Me.next=qe,M|=De;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;De=W,W=De.next,De.next=null,S.lastBaseUpdate=De,S.shared.pending=null}}while(!0);if(Me===null&&(Q=Pe),S.baseState=Q,S.firstBaseUpdate=me,S.lastBaseUpdate=Me,o=S.shared.interleaved,o!==null){S=o;do M|=S.lane,S=S.next;while(S!==o)}else T===null&&(S.shared.lanes=0);Ol|=M,a.lanes=M,a.memoizedState=Pe}}function Ru(a,o,f){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var g=a[o],S=g.callback;if(S!==null){if(g.callback=null,g=f,typeof S!="function")throw Error(i(191,S));S.call(g)}}}var xl=new t.Component().refs;function kh(a,o,f,g){o=a.memoizedState,f=f(g,o),f=f==null?o:G({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var bf={isMounted:function(a){return(a=a._reactInternals)?Ye(a)===a:!1},enqueueSetState:function(a,o,f){a=a._reactInternals;var g=Or(),S=Zo(a),T=kn(g,S);T.payload=o,f!=null&&(T.callback=f),o=Ds(a,T,S),o!==null&&(Zn(o,a,S,g),yf(o,a,S))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var g=Or(),S=Zo(a),T=kn(g,S);T.tag=1,T.payload=o,f!=null&&(T.callback=f),o=Ds(a,T,S),o!==null&&(Zn(o,a,S,g),yf(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=Or(),g=Zo(a),S=kn(f,g);S.tag=2,o!=null&&(S.callback=o),o=Ds(a,S,g),o!==null&&(Zn(o,a,g,f),yf(o,a,g))}};function Eg(a,o,f,g,S,T,M){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,T,M):o.prototype&&o.prototype.isPureReactComponent?!yu(f,g)||!yu(S,T):!0}function wg(a,o,f){var g=!1,S=ci,T=o.contextType;return typeof T=="object"&&T!==null?T=$e(T):(S=vr(o)?aa:Ir.current,g=o.contextTypes,T=(g=g!=null)?Xa(a,S):ci),o=new o(f,T),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=bf,a.stateNode=o,o._reactInternals=a,g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=T),o}function Rg(a,o,f,g){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,g),o.state!==a&&bf.enqueueReplaceState(o,o.state,null)}function Mh(a,o,f,g){var S=a.stateNode;S.props=f,S.state=a.memoizedState,S.refs=xl,Dh(a);var T=o.contextType;typeof T=="object"&&T!==null?S.context=$e(T):(T=vr(o)?aa:Ir.current,S.context=Xa(a,T)),S.state=a.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(kh(a,o,T,f),S.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(o=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),o!==S.state&&bf.enqueueReplaceState(S,S.state,null),Jc(a,f,S,g),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function Tu(a,o,f){if(a=f.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(i(309));var g=f.stateNode}if(!g)throw Error(i(147,a));var S=g,T=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===T?o.ref:(o=function(M){var W=S.refs;W===xl&&(W=S.refs={}),M===null?delete W[T]:W[T]=M},o._stringRef=T,o)}if(typeof a!="string")throw Error(i(284));if(!f._owner)throw Error(i(290,a))}return a}function Qc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function Tg(a){var o=a._init;return o(a._payload)}function _g(a){function o(ae,ee){if(a){var le=ae.deletions;le===null?(ae.deletions=[ee],ae.flags|=16):le.push(ee)}}function f(ae,ee){if(!a)return null;for(;ee!==null;)o(ae,ee),ee=ee.sibling;return null}function g(ae,ee){for(ae=new Map;ee!==null;)ee.key!==null?ae.set(ee.key,ee):ae.set(ee.index,ee),ee=ee.sibling;return ae}function S(ae,ee){return ae=zs(ae,ee),ae.index=0,ae.sibling=null,ae}function T(ae,ee,le){return ae.index=le,a?(le=ae.alternate,le!==null?(le=le.index,le<ee?(ae.flags|=2,ee):le):(ae.flags|=2,ee)):(ae.flags|=1048576,ee)}function M(ae){return a&&ae.alternate===null&&(ae.flags|=2),ae}function W(ae,ee,le,ze){return ee===null||ee.tag!==6?(ee=ep(le,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,le),ee.return=ae,ee)}function Q(ae,ee,le,ze){var ct=le.type;return ct===X?Me(ae,ee,le.props.children,ze,le.key):ee!==null&&(ee.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===je&&Tg(ct)===ee.type)?(ze=S(ee,le.props),ze.ref=Tu(ae,ee,le),ze.return=ae,ze):(ze=Qf(le.type,le.key,le.props,null,ae.mode,ze),ze.ref=Tu(ae,ee,le),ze.return=ae,ze)}function me(ae,ee,le,ze){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==le.containerInfo||ee.stateNode.implementation!==le.implementation?(ee=gd(le,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,le.children||[]),ee.return=ae,ee)}function Me(ae,ee,le,ze,ct){return ee===null||ee.tag!==7?(ee=Ll(le,ae.mode,ze,ct),ee.return=ae,ee):(ee=S(ee,le),ee.return=ae,ee)}function Pe(ae,ee,le){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=ep(""+ee,ae.mode,le),ee.return=ae,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case B:return le=Qf(ee.type,ee.key,ee.props,null,ae.mode,le),le.ref=Tu(ae,null,ee),le.return=ae,le;case z:return ee=gd(ee,ae.mode,le),ee.return=ae,ee;case je:var ze=ee._init;return Pe(ae,ze(ee._payload),le)}if(Vt(ee)||Ie(ee))return ee=Ll(ee,ae.mode,le,null),ee.return=ae,ee;Qc(ae,ee)}return null}function De(ae,ee,le,ze){var ct=ee!==null?ee.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return ct!==null?null:W(ae,ee,""+le,ze);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case B:return le.key===ct?Q(ae,ee,le,ze):null;case z:return le.key===ct?me(ae,ee,le,ze):null;case je:return ct=le._init,De(ae,ee,ct(le._payload),ze)}if(Vt(le)||Ie(le))return ct!==null?null:Me(ae,ee,le,ze,null);Qc(ae,le)}return null}function qe(ae,ee,le,ze,ct){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ae=ae.get(le)||null,W(ee,ae,""+ze,ct);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case B:return ae=ae.get(ze.key===null?le:ze.key)||null,Q(ee,ae,ze,ct);case z:return ae=ae.get(ze.key===null?le:ze.key)||null,me(ee,ae,ze,ct);case je:var xt=ze._init;return qe(ae,ee,le,xt(ze._payload),ct)}if(Vt(ze)||Ie(ze))return ae=ae.get(le)||null,Me(ee,ae,ze,ct,null);Qc(ee,ze)}return null}function rt(ae,ee,le,ze){for(var ct=null,xt=null,at=ee,Et=ee=0,Er=null;at!==null&&Et<le.length;Et++){at.index>Et?(Er=at,at=null):Er=at.sibling;var rn=De(ae,at,le[Et],ze);if(rn===null){at===null&&(at=Er);break}a&&at&&rn.alternate===null&&o(ae,at),ee=T(rn,ee,Et),xt===null?ct=rn:xt.sibling=rn,xt=rn,at=Er}if(Et===le.length)return f(ae,at),Bn&&Cl(ae,Et),ct;if(at===null){for(;Et<le.length;Et++)at=Pe(ae,le[Et],ze),at!==null&&(ee=T(at,ee,Et),xt===null?ct=at:xt.sibling=at,xt=at);return Bn&&Cl(ae,Et),ct}for(at=g(ae,at);Et<le.length;Et++)Er=qe(at,ae,Et,le[Et],ze),Er!==null&&(a&&Er.alternate!==null&&at.delete(Er.key===null?Et:Er.key),ee=T(Er,ee,Et),xt===null?ct=Er:xt.sibling=Er,xt=Er);return a&&at.forEach(function(qo){return o(ae,qo)}),Bn&&Cl(ae,Et),ct}function lt(ae,ee,le,ze){var ct=Ie(le);if(typeof ct!="function")throw Error(i(150));if(le=ct.call(le),le==null)throw Error(i(151));for(var xt=ct=null,at=ee,Et=ee=0,Er=null,rn=le.next();at!==null&&!rn.done;Et++,rn=le.next()){at.index>Et?(Er=at,at=null):Er=at.sibling;var qo=De(ae,at,rn.value,ze);if(qo===null){at===null&&(at=Er);break}a&&at&&qo.alternate===null&&o(ae,at),ee=T(qo,ee,Et),xt===null?ct=qo:xt.sibling=qo,xt=qo,at=Er}if(rn.done)return f(ae,at),Bn&&Cl(ae,Et),ct;if(at===null){for(;!rn.done;Et++,rn=le.next())rn=Pe(ae,rn.value,ze),rn!==null&&(ee=T(rn,ee,Et),xt===null?ct=rn:xt.sibling=rn,xt=rn);return Bn&&Cl(ae,Et),ct}for(at=g(ae,at);!rn.done;Et++,rn=le.next())rn=qe(at,ae,Et,rn.value,ze),rn!==null&&(a&&rn.alternate!==null&&at.delete(rn.key===null?Et:rn.key),ee=T(rn,ee,Et),xt===null?ct=rn:xt.sibling=rn,xt=rn);return a&&at.forEach(function(PC){return o(ae,PC)}),Bn&&Cl(ae,Et),ct}function dr(ae,ee,le,ze){if(typeof le=="object"&&le!==null&&le.type===X&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case B:e:{for(var ct=le.key,xt=ee;xt!==null;){if(xt.key===ct){if(ct=le.type,ct===X){if(xt.tag===7){f(ae,xt.sibling),ee=S(xt,le.props.children),ee.return=ae,ae=ee;break e}}else if(xt.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===je&&Tg(ct)===xt.type){f(ae,xt.sibling),ee=S(xt,le.props),ee.ref=Tu(ae,xt,le),ee.return=ae,ae=ee;break e}f(ae,xt);break}else o(ae,xt);xt=xt.sibling}le.type===X?(ee=Ll(le.props.children,ae.mode,ze,le.key),ee.return=ae,ae=ee):(ze=Qf(le.type,le.key,le.props,null,ae.mode,ze),ze.ref=Tu(ae,ee,le),ze.return=ae,ae=ze)}return M(ae);case z:e:{for(xt=le.key;ee!==null;){if(ee.key===xt)if(ee.tag===4&&ee.stateNode.containerInfo===le.containerInfo&&ee.stateNode.implementation===le.implementation){f(ae,ee.sibling),ee=S(ee,le.children||[]),ee.return=ae,ae=ee;break e}else{f(ae,ee);break}else o(ae,ee);ee=ee.sibling}ee=gd(le,ae.mode,ze),ee.return=ae,ae=ee}return M(ae);case je:return xt=le._init,dr(ae,ee,xt(le._payload),ze)}if(Vt(le))return rt(ae,ee,le,ze);if(Ie(le))return lt(ae,ee,le,ze);Qc(ae,le)}return typeof le=="string"&&le!==""||typeof le=="number"?(le=""+le,ee!==null&&ee.tag===6?(f(ae,ee.sibling),ee=S(ee,le),ee.return=ae,ae=ee):(f(ae,ee),ee=ep(le,ae.mode,ze),ee.return=ae,ae=ee),M(ae)):f(ae,ee)}return dr}var _u=_g(!0),Ng=_g(!1),Kc={},uo=Nn(Kc),Nu=Nn(Kc),ed=Nn(Kc);function ks(a){if(a===Kc)throw Error(i(174));return a}function Lh(a,o){switch(nn(ed,o),nn(Nu,a),nn(uo,Kc),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Pn(o,a)}ut(uo),nn(uo,o)}function Iu(){ut(uo),ut(Nu),ut(ed)}function Cf(a){ks(ed.current);var o=ks(uo.current),f=Pn(o,a.type);o!==f&&(nn(Nu,a),nn(uo,f))}function gt(a){Nu.current===a&&(ut(uo),ut(Nu))}var ft=Nn(0);function Kt(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var er=[];function hi(){for(var a=0;a<er.length;a++)er[a]._workInProgressVersionPrimary=null;er.length=0}var td=U.ReactCurrentDispatcher,Ph=U.ReactCurrentBatchConfig,Sl=0,Yn=null,sr=null,Re=null,lr=!1,Ct=!1,co=0,Wo=0;function tr(){throw Error(i(321))}function mi(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Bi(a[f],o[f]))return!1;return!0}function El(a,o,f,g,S,T){if(Sl=T,Yn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,td.current=a===null||a.memoizedState===null?bC:CC,a=f(g,S),Ct){T=0;do{if(Ct=!1,co=0,25<=T)throw Error(i(301));T+=1,Re=sr=null,o.updateQueue=null,td.current=xC,a=f(g,S)}while(Ct)}if(td.current=kf,o=sr!==null&&sr.next!==null,Sl=0,Re=sr=Yn=null,lr=!1,o)throw Error(i(300));return a}function Ms(){var a=co!==0;return co=0,a}function Aa(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?Yn.memoizedState=Re=a:Re=Re.next=a,Re}function ja(){if(sr===null){var a=Yn.alternate;a=a!==null?a.memoizedState:null}else a=sr.next;var o=Re===null?Yn.memoizedState:Re.next;if(o!==null)Re=o,sr=a;else{if(a===null)throw Error(i(310));sr=a,a={memoizedState:sr.memoizedState,baseState:sr.baseState,baseQueue:sr.baseQueue,queue:sr.queue,next:null},Re===null?Yn.memoizedState=Re=a:Re=Re.next=a}return Re}function wl(a,o){return typeof o=="function"?o(a):o}function nd(a){var o=ja(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var g=sr,S=g.baseQueue,T=f.pending;if(T!==null){if(S!==null){var M=S.next;S.next=T.next,T.next=M}g.baseQueue=S=T,f.pending=null}if(S!==null){T=S.next,g=g.baseState;var W=M=null,Q=null,me=T;do{var Me=me.lane;if((Sl&Me)===Me)Q!==null&&(Q=Q.next={lane:0,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null}),g=me.hasEagerState?me.eagerState:a(g,me.action);else{var Pe={lane:Me,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};Q===null?(W=Q=Pe,M=g):Q=Q.next=Pe,Yn.lanes|=Me,Ol|=Me}me=me.next}while(me!==null&&me!==T);Q===null?M=g:Q.next=W,Bi(g,o.memoizedState)||(Oa=!0),o.memoizedState=g,o.baseState=M,o.baseQueue=Q,f.lastRenderedState=g}if(a=f.interleaved,a!==null){S=a;do T=S.lane,Yn.lanes|=T,Ol|=T,S=S.next;while(S!==a)}else S===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function rd(a){var o=ja(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var g=f.dispatch,S=f.pending,T=o.memoizedState;if(S!==null){f.pending=null;var M=S=S.next;do T=a(T,M.action),M=M.next;while(M!==S);Bi(T,o.memoizedState)||(Oa=!0),o.memoizedState=T,o.baseQueue===null&&(o.baseState=T),f.lastRenderedState=T}return[T,g]}function xf(){}function Sf(a,o){var f=Yn,g=ja(),S=o(),T=!Bi(g.memoizedState,S);if(T&&(g.memoizedState=S,Oa=!0),g=g.queue,ad(Rf.bind(null,f,g,a),[a]),g.getSnapshot!==o||T||Re!==null&&Re.memoizedState.tag&1){if(f.flags|=2048,Rl(9,wf.bind(null,f,g,S,o),void 0,null),rr===null)throw Error(i(349));Sl&30||Ef(f,o,S)}return S}function Ef(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function wf(a,o,f,g){o.value=f,o.getSnapshot=g,Tf(o)&&_f(a)}function Rf(a,o,f){return f(function(){Tf(o)&&_f(a)})}function Tf(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Bi(a,f)}catch{return!0}}function _f(a){var o=Go(a,1);o!==null&&Zn(o,a,1,-1)}function Nf(a){var o=Aa();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:a},o.queue=a,a=a.dispatch=Df.bind(null,Yn,a),[o.memoizedState,a]}function Rl(a,o,f,g){return a={tag:a,create:o,destroy:f,deps:g,next:null},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.lastEffect=a.next=a):(f=o.lastEffect,f===null?o.lastEffect=a.next=a:(g=f.next,f.next=a,a.next=g,o.lastEffect=a)),a}function If(){return ja().memoizedState}function Au(a,o,f,g){var S=Aa();Yn.flags|=a,S.memoizedState=Rl(1|o,f,void 0,g===void 0?null:g)}function Tl(a,o,f,g){var S=ja();g=g===void 0?null:g;var T=void 0;if(sr!==null){var M=sr.memoizedState;if(T=M.destroy,g!==null&&mi(g,M.deps)){S.memoizedState=Rl(o,f,T,g);return}}Yn.flags|=a,S.memoizedState=Rl(1|o,f,T,g)}function _l(a,o){return Au(8390656,8,a,o)}function ad(a,o){return Tl(2048,8,a,o)}function Af(a,o){return Tl(4,2,a,o)}function jf(a,o){return Tl(4,4,a,o)}function Of(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function Fh(a,o,f){return f=f!=null?f.concat([a]):null,Tl(4,4,Of.bind(null,o,a),f)}function Nl(){}function Vh(a,o){var f=ja();o=o===void 0?null:o;var g=f.memoizedState;return g!==null&&o!==null&&mi(o,g[1])?g[0]:(f.memoizedState=[a,o],a)}function ju(a,o){var f=ja();o=o===void 0?null:o;var g=f.memoizedState;return g!==null&&o!==null&&mi(o,g[1])?g[0]:(a=a(),f.memoizedState=[a,o],a)}function Ls(a,o,f){return Sl&21?(Bi(f,o)||(f=ul(),Yn.lanes|=f,Ol|=f,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Oa=!0),a.memoizedState=f)}function Ja(a,o){var f=Ut;Ut=f!==0&&4>f?f:4,a(!0);var g=Ph.transition;Ph.transition={};try{a(!1),o()}finally{Ut=f,Ph.transition=g}}function Ig(){return ja().memoizedState}function Mn(a,o,f){var g=Zo(a);if(f={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null},id(a))Ou(o,f);else if(f=Cg(a,o,f,g),f!==null){var S=Or();Zn(f,a,g,S),od(f,o,g)}}function Df(a,o,f){var g=Zo(a),S={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null};if(id(a))Ou(o,S);else{var T=a.alternate;if(a.lanes===0&&(T===null||T.lanes===0)&&(T=o.lastRenderedReducer,T!==null))try{var M=o.lastRenderedState,W=T(M,f);if(S.hasEagerState=!0,S.eagerState=W,Bi(W,M)){var Q=o.interleaved;Q===null?(S.next=S,qa(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}f=Cg(a,o,S,g),f!==null&&(S=Or(),Zn(f,a,g,S),od(f,o,g))}}function id(a){var o=a.alternate;return a===Yn||o!==null&&o===Yn}function Ou(a,o){Ct=lr=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function od(a,o,f){if(f&4194240){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,_c(a,f)}}var kf={readContext:$e,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useInsertionEffect:tr,useLayoutEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useMutableSource:tr,useSyncExternalStore:tr,useId:tr,unstable_isNewReconciler:!1},bC={readContext:$e,useCallback:function(a,o){return Aa().memoizedState=[a,o===void 0?null:o],a},useContext:$e,useEffect:_l,useImperativeHandle:function(a,o,f){return f=f!=null?f.concat([a]):null,Au(4194308,4,Of.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Au(4194308,4,a,o)},useInsertionEffect:function(a,o){return Au(4,2,a,o)},useMemo:function(a,o){var f=Aa();return o=o===void 0?null:o,a=a(),f.memoizedState=[a,o],a},useReducer:function(a,o,f){var g=Aa();return o=f!==void 0?f(o):o,g.memoizedState=g.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},g.queue=a,a=a.dispatch=Mn.bind(null,Yn,a),[g.memoizedState,a]},useRef:function(a){var o=Aa();return a={current:a},o.memoizedState=a},useState:Nf,useDebugValue:Nl,useDeferredValue:function(a){return Aa().memoizedState=a},useTransition:function(){var a=Nf(!1),o=a[0];return a=Ja.bind(null,a[1]),Aa().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,f){var g=Yn,S=Aa();if(Bn){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),rr===null)throw Error(i(349));Sl&30||Ef(g,o,f)}S.memoizedState=f;var T={value:f,getSnapshot:o};return S.queue=T,_l(Rf.bind(null,g,T,a),[a]),g.flags|=2048,Rl(9,wf.bind(null,g,T,f,o),void 0,null),f},useId:function(){var a=Aa(),o=rr.identifierPrefix;if(Bn){var f=Fr,g=Na;f=(g&~(1<<32-ra(g)-1)).toString(32)+f,o=":"+o+"R"+f,f=co++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=Wo++,o=":"+o+"r"+f.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},CC={readContext:$e,useCallback:Vh,useContext:$e,useEffect:ad,useImperativeHandle:Fh,useInsertionEffect:Af,useLayoutEffect:jf,useMemo:ju,useReducer:nd,useRef:If,useState:function(){return nd(wl)},useDebugValue:Nl,useDeferredValue:function(a){var o=ja();return Ls(o,sr.memoizedState,a)},useTransition:function(){var a=nd(wl)[0],o=ja().memoizedState;return[a,o]},useMutableSource:xf,useSyncExternalStore:Sf,useId:Ig,unstable_isNewReconciler:!1},xC={readContext:$e,useCallback:Vh,useContext:$e,useEffect:ad,useImperativeHandle:Fh,useInsertionEffect:Af,useLayoutEffect:jf,useMemo:ju,useReducer:rd,useRef:If,useState:function(){return rd(wl)},useDebugValue:Nl,useDeferredValue:function(a){var o=ja();return sr===null?o.memoizedState=a:Ls(o,sr.memoizedState,a)},useTransition:function(){var a=rd(wl)[0],o=ja().memoizedState;return[a,o]},useMutableSource:xf,useSyncExternalStore:Sf,useId:Ig,unstable_isNewReconciler:!1};function Ps(a,o){try{var f="",g=o;do f+=Ne(g),g=g.return;while(g);var S=f}catch(T){S=`
|
|
95
95
|
Error generating stack: `+T.message+`
|
|
96
|
-
`+T.stack}return{value:a,source:o,stack:S,digest:null}}function Bh(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function sd(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var Ag=typeof WeakMap=="function"?WeakMap:Map;function jg(a,o,f){f=kn(-1,f),f.tag=3,f.payload={element:null};var g=o.value;return f.callback=function(){Wf||(Wf=!0,Zh=g),sd(a,o)},f}function Og(a,o,f){f=kn(-1,f),f.tag=3;var g=a.type.getDerivedStateFromError;if(typeof g=="function"){var S=o.value;f.payload=function(){return g(S)},f.callback=function(){sd(a,o)}}var T=a.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(f.callback=function(){sd(a,o),typeof g!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var M=o.stack;this.componentDidCatch(o.value,{componentStack:M!==null?M:""})}),f}function ld(a,o,f){var g=a.pingCache;if(g===null){g=a.pingCache=new Ag;var S=new Set;g.set(o,S)}else S=g.get(o),S===void 0&&(S=new Set,g.set(o,S));S.has(f)||(S.add(f),a=jC.bind(null,a,o,f),o.then(a,a))}function Dg(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function zh(a,o,f,g,S){return a.mode&1?(a.flags|=65536,a.lanes=S,a):(a===o?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(o=kn(-1,1),o.tag=2,Ds(f,o,1))),f.lanes|=1),a)}var kg=U.ReactCurrentOwner,Oa=!1;function ur(a,o,f,g){o.child=a===null?Ng(o,null,f,g):_u(o,a.child,f,g)}function Du(a,o,f,g,S){f=f.render;var T=o.ref;return or(o,S),g=El(a,o,f,g,T,S),f=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&f&&hf(o),o.flags|=1,ur(a,o,g,S),o.child)}function Fs(a,o,f,g,S){if(a===null){var T=f.type;return typeof T=="function"&&!ev(T)&&T.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=T,Mf(a,o,T,g,S)):(a=Qf(f.type,null,g,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(T=a.child,!(a.lanes&S)){var M=T.memoizedProps;if(f=f.compare,f=f!==null?f:yu,f(M,g)&&a.ref===o.ref)return cr(a,o,S)}return o.flags|=1,a=zs(T,g),a.ref=o.ref,a.return=o,o.child=a}function Mf(a,o,f,g,S){if(a!==null){var T=a.memoizedProps;if(yu(T,g)&&a.ref===o.ref)if(Oa=!1,o.pendingProps=g=T,(a.lanes&S)!==0)a.flags&131072&&(Oa=!0);else return o.lanes=a.lanes,cr(a,o,S)}return Dt(a,o,f,g,S)}function Da(a,o,f){var g=o.pendingProps,S=g.children,T=a!==null?a.memoizedState:null;if(g.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},nn(Uu,ka),ka|=f;else{if(!(f&1073741824))return a=T!==null?T.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,nn(Uu,ka),ka|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=T!==null?T.baseLanes:f,nn(Uu,ka),ka|=g}else T!==null?(g=T.baseLanes|f,o.memoizedState=null):g=f,nn(Uu,ka),ka|=g;return ur(a,o,S,f),o.child}function Il(a,o){var f=o.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(o.flags|=512,o.flags|=2097152)}function Dt(a,o,f,g,S){var T=vr(f)?aa:Ir.current;return T=Xa(o,T),or(o,S),f=El(a,o,f,g,T,S),g=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&g&&hf(o),o.flags|=1,ur(a,o,f,S),o.child)}function ud(a,o,f,g,S){if(vr(f)){var T=!0;yl(o)}else T=!1;if(or(o,S),o.stateNode===null)dd(a,o),wg(o,f,g),Mh(o,f,g,S),g=!0;else if(a===null){var M=o.stateNode,W=o.memoizedProps;M.props=W;var Q=M.context,me=f.contextType;typeof me=="object"&&me!==null?me=$e(me):(me=vr(f)?aa:Ir.current,me=Xa(o,me));var Me=f.getDerivedStateFromProps,Pe=typeof Me=="function"||typeof M.getSnapshotBeforeUpdate=="function";Pe||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(W!==g||Q!==me)&&Rg(o,M,g,me),Os=!1;var De=o.memoizedState;M.state=De,Jc(o,g,M,S),Q=o.memoizedState,W!==g||De!==Q||At.current||Os?(typeof Me=="function"&&(kh(o,f,Me,g),Q=o.memoizedState),(W=Os||Eg(o,f,W,g,De,Q,me))?(Pe||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(o.flags|=4194308)):(typeof M.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=g,o.memoizedState=Q),M.props=g,M.state=Q,M.context=me,g=W):(typeof M.componentDidMount=="function"&&(o.flags|=4194308),g=!1)}else{M=o.stateNode,xg(a,o),W=o.memoizedProps,me=o.type===o.elementType?W:Ia(o.type,W),M.props=me,Pe=o.pendingProps,De=M.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=$e(Q):(Q=vr(f)?aa:Ir.current,Q=Xa(o,Q));var qe=f.getDerivedStateFromProps;(Me=typeof qe=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(W!==Pe||De!==Q)&&Rg(o,M,g,Q),Os=!1,De=o.memoizedState,M.state=De,Jc(o,g,M,S);var rt=o.memoizedState;W!==Pe||De!==rt||At.current||Os?(typeof qe=="function"&&(kh(o,f,qe,g),rt=o.memoizedState),(me=Os||Eg(o,f,me,g,De,rt,Q)||!1)?(Me||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(g,rt,Q),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(g,rt,Q)),typeof M.componentDidUpdate=="function"&&(o.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof M.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=g,o.memoizedState=rt),M.props=g,M.state=rt,M.context=Q,g=me):(typeof M.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),g=!1)}return Lf(a,o,f,g,T,S)}function Lf(a,o,f,g,S,T){Il(a,o);var M=(o.flags&128)!==0;if(!g&&!M)return S&&gg(o,f,!1),cr(a,o,T);g=o.stateNode,kg.current=o;var W=M&&typeof f.getDerivedStateFromError!="function"?null:g.render();return o.flags|=1,a!==null&&M?(o.child=_u(o,a.child,null,T),o.child=_u(o,null,W,T)):ur(a,o,W,T),o.memoizedState=g.state,S&&gg(o,f,!0),o.child}function SC(a){var o=a.stateNode;o.pendingContext?oo(a,o.pendingContext,o.pendingContext!==o.context):o.context&&oo(a,o.context,!1),Lh(a,o.containerInfo)}function Mg(a,o,f,g,S){return Su(),mr(S),o.flags|=256,ur(a,o,f,g),o.child}var cd={dehydrated:null,treeContext:null,retryLane:0};function Al(a){return{baseLanes:a,cachePool:null,transitions:null}}function Lg(a,o,f){var g=o.pendingProps,S=ft.current,T=!1,M=(o.flags&128)!==0,W;if((W=M)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(T=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),nn(ft,S&1),a===null)return mf(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(M=g.children,a=g.fallback,T?(g=o.mode,T=o.child,M={mode:"hidden",children:M},!(g&1)&&T!==null?(T.childLanes=0,T.pendingProps=M):T=Kf(M,g,0,null),a=Ll(a,g,f,null),T.return=o,a.return=o,T.sibling=a,o.child=T,o.child.memoizedState=Al(f),o.memoizedState=cd,a):Pf(o,M));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return $h(a,o,M,g,W,S,f);if(T){T=g.fallback,M=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:g.children};return!(M&1)&&o.child!==S?(g=o.child,g.childLanes=0,g.pendingProps=Q,o.deletions=null):(g=zs(S,Q),g.subtreeFlags=S.subtreeFlags&14680064),W!==null?T=zs(W,T):(T=Ll(T,M,f,null),T.flags|=2),T.return=o,g.return=o,g.sibling=T,o.child=g,g=T,T=o.child,M=a.child.memoizedState,M=M===null?Al(f):{baseLanes:M.baseLanes|f,cachePool:null,transitions:M.transitions},T.memoizedState=M,T.childLanes=a.childLanes&~f,o.memoizedState=cd,g}return T=a.child,a=T.sibling,g=zs(T,{mode:"visible",children:g.children}),!(o.mode&1)&&(g.lanes=f),g.return=o,g.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=g,o.memoizedState=null,g}function Pf(a,o){return o=Kf({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Ff(a,o,f,g){return g!==null&&mr(g),_u(o,a.child,null,f),a=Pf(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function $h(a,o,f,g,S,T,M){if(f)return o.flags&256?(o.flags&=-257,g=Bh(Error(i(422))),Ff(a,o,M,g)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(T=g.fallback,S=o.mode,g=Kf({mode:"visible",children:g.children},S,0,null),T=Ll(T,S,M,null),T.flags|=2,g.return=o,T.return=o,g.sibling=T,o.child=g,o.mode&1&&_u(o,a.child,null,M),o.child.memoizedState=Al(M),o.memoizedState=cd,T);if(!(o.mode&1))return Ff(a,o,M,null);if(S.data==="$!"){if(g=S.nextSibling&&S.nextSibling.dataset,g)var W=g.dgst;return g=W,T=Error(i(419)),g=Bh(T,g,void 0),Ff(a,o,M,g)}if(W=(M&a.childLanes)!==0,Oa||W){if(g=rr,g!==null){switch(M&-M){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=S&(g.suspendedLanes|M)?0:S,S!==0&&S!==T.retryLane&&(T.retryLane=S,Go(a,S),Zn(g,a,S,-1))}return md(),g=Bh(Error(i(421))),Ff(a,o,M,g)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=Kh.bind(null,a),S._reactRetry=o,null):(a=T.treeContext,Za=Wa(S.nextSibling),Ya=o,Bn=!0,pi=null,a!==null&&(Ta[_a++]=Na,Ta[_a++]=Fr,Ta[_a++]=Ui,Na=a.id,Fr=a.overflow,Ui=o),o=Pf(o,g.children),o.flags|=4096,o)}function Pg(a,o,f){a.lanes|=o;var g=a.alternate;g!==null&&(g.lanes|=o),js(a.return,o,f)}function Vf(a,o,f,g,S){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:f,tailMode:S}:(T.isBackwards=o,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=f,T.tailMode=S)}function Uh(a,o,f){var g=o.pendingProps,S=g.revealOrder,T=g.tail;if(ur(a,o,g.children,f),g=ft.current,g&2)g=g&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Pg(a,f,o);else if(a.tag===19)Pg(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}if(nn(ft,g),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&Kt(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),Vf(o,!1,S,f,T);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Kt(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}Vf(o,!0,f,null,T);break;case"together":Vf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function dd(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function cr(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Ol|=o.lanes,!(f&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,f=zs(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=zs(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Xo(a,o,f){switch(o.tag){case 3:SC(o),Su();break;case 5:Cf(o);break;case 1:vr(o.type)&&yl(o);break;case 4:Lh(o,o.stateNode.containerInfo);break;case 10:var g=o.type._context,S=o.memoizedProps.value;nn(Eu,g._currentValue),g._currentValue=S;break;case 13:if(g=o.memoizedState,g!==null)return g.dehydrated!==null?(nn(ft,ft.current&1),o.flags|=128,null):f&o.child.childLanes?Lg(a,o,f):(nn(ft,ft.current&1),a=cr(a,o,f),a!==null?a.sibling:null);nn(ft,ft.current&1);break;case 19:if(g=(f&o.childLanes)!==0,a.flags&128){if(g)return Uh(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),nn(ft,ft.current),g)break;return null;case 22:case 23:return o.lanes=0,Da(a,o,f)}return cr(a,o,f)}var fo,ku,Mu,gi;fo=function(a,o){for(var f=o.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===o)break;for(;f.sibling===null;){if(f.return===null||f.return===o)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},ku=function(){},Mu=function(a,o,f,g){var S=a.memoizedProps;if(S!==g){a=o.stateNode,ks(uo.current);var T=null;switch(f){case"input":S=Rt(a,S),g=Rt(a,g),T=[];break;case"select":S=G({},S,{value:void 0}),g=G({},g,{value:void 0}),T=[];break;case"textarea":S=Qn(a,S),g=Qn(a,g),T=[];break;default:typeof S.onClick!="function"&&typeof g.onClick=="function"&&(a.onclick=df)}tn(f,g);var M;f=null;for(me in S)if(!g.hasOwnProperty(me)&&S.hasOwnProperty(me)&&S[me]!=null)if(me==="style"){var W=S[me];for(M in W)W.hasOwnProperty(M)&&(f||(f={}),f[M]="")}else me!=="dangerouslySetInnerHTML"&&me!=="children"&&me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&me!=="autoFocus"&&(u.hasOwnProperty(me)?T||(T=[]):(T=T||[]).push(me,null));for(me in g){var Q=g[me];if(W=S!=null?S[me]:void 0,g.hasOwnProperty(me)&&Q!==W&&(Q!=null||W!=null))if(me==="style")if(W){for(M in W)!W.hasOwnProperty(M)||Q&&Q.hasOwnProperty(M)||(f||(f={}),f[M]="");for(M in Q)Q.hasOwnProperty(M)&&W[M]!==Q[M]&&(f||(f={}),f[M]=Q[M])}else f||(T||(T=[]),T.push(me,f)),f=Q;else me==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(T=T||[]).push(me,Q)):me==="children"?typeof Q!="string"&&typeof Q!="number"||(T=T||[]).push(me,""+Q):me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&(u.hasOwnProperty(me)?(Q!=null&&me==="onScroll"&&_n("scroll",a),T||W===Q||(T=[])):(T=T||[]).push(me,Q))}f&&(T=T||[]).push("style",f);var me=T;(o.updateQueue=me)&&(o.flags|=4)}},gi=function(a,o,f,g){f!==g&&(o.flags|=4)};function nr(a,o){if(!Bn)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function Qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,g=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags&14680064,g|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=g,a.childLanes=f,o}function EC(a,o,f){var g=o.pendingProps;switch(vf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(o),null;case 1:return vr(o.type)&&Ra(),Qr(o),null;case 3:return g=o.stateNode,Iu(),ut(At),ut(Ir),hi(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(gf(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(qh(pi),pi=null))),ku(a,o),Qr(o),null;case 5:gt(o);var S=ks(ed.current);if(f=o.type,a!==null&&o.stateNode!=null)Mu(a,o,f,g,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!g){if(o.stateNode===null)throw Error(i(166));return Qr(o),null}if(a=ks(uo.current),gf(o)){g=o.stateNode,f=o.type;var T=o.memoizedProps;switch(g[ui]=o,g[Zc]=T,a=(o.mode&1)!==0,f){case"dialog":_n("cancel",g),_n("close",g);break;case"iframe":case"object":case"embed":_n("load",g);break;case"video":case"audio":for(S=0;S<Bo.length;S++)_n(Bo[S],g);break;case"source":_n("error",g);break;case"img":case"image":case"link":_n("error",g),_n("load",g);break;case"details":_n("toggle",g);break;case"input":dt(g,T),_n("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!T.multiple},_n("invalid",g);break;case"textarea":Tr(g,T),_n("invalid",g)}tn(f,T),S=null;for(var M in T)if(T.hasOwnProperty(M)){var W=T[M];M==="children"?typeof W=="string"?g.textContent!==W&&(T.suppressHydrationWarning!==!0&&Gc(g.textContent,W,a),S=["children",W]):typeof W=="number"&&g.textContent!==""+W&&(T.suppressHydrationWarning!==!0&&Gc(g.textContent,W,a),S=["children",""+W]):u.hasOwnProperty(M)&&W!=null&&M==="onScroll"&&_n("scroll",g)}switch(f){case"input":tt(g),ln(g,T,!0);break;case"textarea":tt(g),_r(g);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(g.onclick=df)}g=S,o.updateQueue=g,g!==null&&(o.flags|=4)}else{M=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=St(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=M.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof g.is=="string"?a=M.createElement(f,{is:g.is}):(a=M.createElement(f),f==="select"&&(M=a,g.multiple?M.multiple=!0:g.size&&(M.size=g.size))):a=M.createElementNS(a,f),a[ui]=o,a[Zc]=g,fo(a,o,!1,!1),o.stateNode=a;e:{switch(M=ir(f,g),f){case"dialog":_n("cancel",a),_n("close",a),S=g;break;case"iframe":case"object":case"embed":_n("load",a),S=g;break;case"video":case"audio":for(S=0;S<Bo.length;S++)_n(Bo[S],a);S=g;break;case"source":_n("error",a),S=g;break;case"img":case"image":case"link":_n("error",a),_n("load",a),S=g;break;case"details":_n("toggle",a),S=g;break;case"input":dt(a,g),S=Rt(a,g),_n("invalid",a);break;case"option":S=g;break;case"select":a._wrapperState={wasMultiple:!!g.multiple},S=G({},g,{value:void 0}),_n("invalid",a);break;case"textarea":Tr(a,g),S=Qn(a,g),_n("invalid",a);break;default:S=g}tn(f,S),W=S;for(T in W)if(W.hasOwnProperty(T)){var Q=W[T];T==="style"?Mt(a,Q):T==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&za(a,Q)):T==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&$a(a,Q):typeof Q=="number"&&$a(a,""+Q):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(u.hasOwnProperty(T)?Q!=null&&T==="onScroll"&&_n("scroll",a):Q!=null&&F(a,T,Q,M))}switch(f){case"input":tt(a),ln(a,g,!1);break;case"textarea":tt(a),_r(a);break;case"option":g.value!=null&&a.setAttribute("value",""+fe(g.value));break;case"select":a.multiple=!!g.multiple,T=g.value,T!=null?xn(a,!!g.multiple,T,!1):g.defaultValue!=null&&xn(a,!!g.multiple,g.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=df)}switch(f){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,g);else{if(typeof g!="string"&&o.stateNode===null)throw Error(i(166));if(f=ks(ed.current),ks(uo.current),gf(o)){if(g=o.stateNode,f=o.memoizedProps,g[ui]=o,(T=g.nodeValue!==f)&&(a=Ya,a!==null))switch(a.tag){case 3:Gc(g.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Gc(g.nodeValue,f,(a.mode&1)!==0)}T&&(o.flags|=4)}else g=(f.nodeType===9?f:f.ownerDocument).createTextNode(g),g[ui]=o,o.stateNode=g}return Qr(o),null;case 13:if(ut(ft),g=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Za!==null&&o.mode&1&&!(o.flags&128))bg(),Su(),o.flags|=98560,T=!1;else if(T=gf(o),g!==null&&g.dehydrated!==null){if(a===null){if(!T)throw Error(i(318));if(T=o.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(i(317));T[ui]=o}else Su(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Qr(o),T=!1}else pi!==null&&(qh(pi),pi=null),T=!0;if(!T)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(g=g!==null,g!==(a!==null&&a.memoizedState!==null)&&g&&(o.child.flags|=8192,o.mode&1&&(a===null||ft.current&1?xr===0&&(xr=3):md())),o.updateQueue!==null&&(o.flags|=4),Qr(o),null);case 4:return Iu(),ku(a,o),a===null&&ao(o.stateNode.containerInfo),Qr(o),null;case 10:return Oh(o.type._context),Qr(o),null;case 17:return vr(o.type)&&Ra(),Qr(o),null;case 19:if(ut(ft),T=o.memoizedState,T===null)return Qr(o),null;if(g=(o.flags&128)!==0,M=T.rendering,M===null)if(g)nr(T,!1);else{if(xr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(M=Kt(a),M!==null){for(o.flags|=128,nr(T,!1),g=M.updateQueue,g!==null&&(o.updateQueue=g,o.flags|=4),o.subtreeFlags=0,g=f,f=o.child;f!==null;)T=f,a=g,T.flags&=14680066,M=T.alternate,M===null?(T.childLanes=0,T.lanes=a,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=M.childLanes,T.lanes=M.lanes,T.child=M.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=M.memoizedProps,T.memoizedState=M.memoizedState,T.updateQueue=M.updateQueue,T.type=M.type,a=M.dependencies,T.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return nn(ft,ft.current&1|2),o.child}a=a.sibling}T.tail!==null&&Dn()>Gu&&(o.flags|=128,g=!0,nr(T,!1),o.lanes=4194304)}else{if(!g)if(a=Kt(M),a!==null){if(o.flags|=128,g=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),nr(T,!0),T.tail===null&&T.tailMode==="hidden"&&!M.alternate&&!Bn)return Qr(o),null}else 2*Dn()-T.renderingStartTime>Gu&&f!==1073741824&&(o.flags|=128,g=!0,nr(T,!1),o.lanes=4194304);T.isBackwards?(M.sibling=o.child,o.child=M):(f=T.last,f!==null?f.sibling=M:o.child=M,T.last=M)}return T.tail!==null?(o=T.tail,T.rendering=o,T.tail=o.sibling,T.renderingStartTime=Dn(),o.sibling=null,f=ft.current,nn(ft,g?f&1|2:f&1),o):(Qr(o),null);case 22:case 23:return qf(),g=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==g&&(o.flags|=8192),g&&o.mode&1?ka&1073741824&&(Qr(o),o.subtreeFlags&6&&(o.flags|=8192)):Qr(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function wC(a,o){switch(vf(o),o.tag){case 1:return vr(o.type)&&Ra(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Iu(),ut(At),ut(Ir),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return gt(o),null;case 13:if(ut(ft),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Su()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return ut(ft),null;case 4:return Iu(),null;case 10:return Oh(o.type._context),null;case 22:case 23:return qf(),null;case 24:return null;default:return null}}var Lu=!1,Vr=!1,Bf=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Pu(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(g){ar(a,o,g)}else f.current=null}function Hh(a,o,f){try{f()}catch(g){ar(a,o,g)}}var zf=!1;function RC(a,o){if(xh=fu,a=ig(),Vc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var g=f.getSelection&&f.getSelection();if(g&&g.rangeCount!==0){f=g.anchorNode;var S=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{f.nodeType,T.nodeType}catch{f=null;break e}var M=0,W=-1,Q=-1,me=0,Me=0,Pe=a,De=null;t:for(;;){for(var qe;Pe!==f||S!==0&&Pe.nodeType!==3||(W=M+S),Pe!==T||g!==0&&Pe.nodeType!==3||(Q=M+g),Pe.nodeType===3&&(M+=Pe.nodeValue.length),(qe=Pe.firstChild)!==null;)De=Pe,Pe=qe;for(;;){if(Pe===a)break t;if(De===f&&++me===S&&(W=M),De===T&&++Me===g&&(Q=M),(qe=Pe.nextSibling)!==null)break;Pe=De,De=Pe.parentNode}Pe=qe}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(Sh={focusedElem:a,selectionRange:f},fu=!1,nt=o;nt!==null;)if(o=nt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,nt=a;else for(;nt!==null;){o=nt;try{var rt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(rt!==null){var lt=rt.memoizedProps,dr=rt.memoizedState,ae=o.stateNode,ee=ae.getSnapshotBeforeUpdate(o.elementType===o.type?lt:Ia(o.type,lt),dr);ae.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var le=o.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ze){ar(o,o.return,ze)}if(a=o.sibling,a!==null){a.return=o.return,nt=a;break}nt=o.return}return rt=zf,zf=!1,rt}function Fu(a,o,f){var g=o.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var S=g=g.next;do{if((S.tag&a)===a){var T=S.destroy;S.destroy=void 0,T!==void 0&&Hh(o,f,T)}S=S.next}while(S!==g)}}function $f(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var f=o=o.next;do{if((f.tag&a)===a){var g=f.create;f.destroy=g()}f=f.next}while(f!==o)}}function Uf(a){var o=a.ref;if(o!==null){var f=a.stateNode;switch(a.tag){case 5:a=f;break;default:a=f}typeof o=="function"?o(a):o.current=a}}function Fg(a){var o=a.alternate;o!==null&&(a.alternate=null,Fg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[Zc],delete o[Th],delete o[mC],delete o[gC])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Gh(a){return a.tag===5||a.tag===3||a.tag===4}function Vg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Gh(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function fd(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.nodeType===8?f.parentNode.insertBefore(a,o):f.insertBefore(a,o):(f.nodeType===8?(o=f.parentNode,o.insertBefore(a,f)):(o=f,o.appendChild(a)),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=df));else if(g!==4&&(a=a.child,a!==null))for(fd(a,o,f),a=a.sibling;a!==null;)fd(a,o,f),a=a.sibling}function Vu(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(g!==4&&(a=a.child,a!==null))for(Vu(a,o,f),a=a.sibling;a!==null;)Vu(a,o,f),a=a.sibling}var Un=null,Ar=!1;function ia(a,o,f){for(f=f.child;f!==null;)Bu(a,o,f),f=f.sibling}function Bu(a,o,f){if(xa&&typeof xa.onCommitFiberUnmount=="function")try{xa.onCommitFiberUnmount(gs,f)}catch{}switch(f.tag){case 5:Vr||Pu(f,o);case 6:var g=Un,S=Ar;Un=null,ia(a,o,f),Un=g,Ar=S,Un!==null&&(Ar?(a=Un,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Un.removeChild(f.stateNode));break;case 18:Un!==null&&(Ar?(a=Un,f=f.stateNode,a.nodeType===8?Rh(a.parentNode,f):a.nodeType===1&&Rh(a,f),li(a)):Rh(Un,f.stateNode));break;case 4:g=Un,S=Ar,Un=f.stateNode.containerInfo,Ar=!0,ia(a,o,f),Un=g,Ar=S;break;case 0:case 11:case 14:case 15:if(!Vr&&(g=f.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){S=g=g.next;do{var T=S,M=T.destroy;T=T.tag,M!==void 0&&(T&2||T&4)&&Hh(f,o,M),S=S.next}while(S!==g)}ia(a,o,f);break;case 1:if(!Vr&&(Pu(f,o),g=f.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=f.memoizedProps,g.state=f.memoizedState,g.componentWillUnmount()}catch(W){ar(f,o,W)}ia(a,o,f);break;case 21:ia(a,o,f);break;case 22:f.mode&1?(Vr=(g=Vr)||f.memoizedState!==null,ia(a,o,f),Vr=g):ia(a,o,f);break;default:ia(a,o,f)}}function zu(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new Bf),o.forEach(function(g){var S=OC.bind(null,a,g);f.has(g)||(f.add(g),g.then(S,S))})}}function jr(a,o){var f=o.deletions;if(f!==null)for(var g=0;g<f.length;g++){var S=f[g];try{var T=a,M=o,W=M;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,Ar=!1;break e;case 3:Un=W.stateNode.containerInfo,Ar=!0;break e;case 4:Un=W.stateNode.containerInfo,Ar=!0;break e}W=W.return}if(Un===null)throw Error(i(160));Bu(T,M,S),Un=null,Ar=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(me){ar(S,o,me)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Bg(o,a),o=o.sibling}function Bg(a,o){var f=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(jr(o,a),po(a),g&4){try{Fu(3,a,a.return),$f(3,a)}catch(lt){ar(a,a.return,lt)}try{Fu(5,a,a.return)}catch(lt){ar(a,a.return,lt)}}break;case 1:jr(o,a),po(a),g&512&&f!==null&&Pu(f,f.return);break;case 5:if(jr(o,a),po(a),g&512&&f!==null&&Pu(f,f.return),a.flags&32){var S=a.stateNode;try{$a(S,"")}catch(lt){ar(a,a.return,lt)}}if(g&4&&(S=a.stateNode,S!=null)){var T=a.memoizedProps,M=f!==null?f.memoizedProps:T,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&T.type==="radio"&&T.name!=null&&en(S,T),ir(W,M);var me=ir(W,T);for(M=0;M<Q.length;M+=2){var Me=Q[M],Pe=Q[M+1];Me==="style"?Mt(S,Pe):Me==="dangerouslySetInnerHTML"?za(S,Pe):Me==="children"?$a(S,Pe):F(S,Me,Pe,me)}switch(W){case"input":sn(S,T);break;case"textarea":Hn(S,T);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!T.multiple;var qe=T.value;qe!=null?xn(S,!!T.multiple,qe,!1):De!==!!T.multiple&&(T.defaultValue!=null?xn(S,!!T.multiple,T.defaultValue,!0):xn(S,!!T.multiple,T.multiple?[]:"",!1))}S[Zc]=T}catch(lt){ar(a,a.return,lt)}}break;case 6:if(jr(o,a),po(a),g&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,T=a.memoizedProps;try{S.nodeValue=T}catch(lt){ar(a,a.return,lt)}}break;case 3:if(jr(o,a),po(a),g&4&&f!==null&&f.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(lt){ar(a,a.return,lt)}break;case 4:jr(o,a),po(a);break;case 13:jr(o,a),po(a),S=a.child,S.flags&8192&&(T=S.memoizedState!==null,S.stateNode.isHidden=T,!T||S.alternate!==null&&S.alternate.memoizedState!==null||(Gf=Dn())),g&4&&zu(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Vr=(me=Vr)||Me,jr(o,a),Vr=me):jr(o,a),po(a),g&8192){if(me=a.memoizedState!==null,(a.stateNode.isHidden=me)&&!Me&&a.mode&1)for(nt=a,Me=a.child;Me!==null;){for(Pe=nt=Me;nt!==null;){switch(De=nt,qe=De.child,De.tag){case 0:case 11:case 14:case 15:Fu(4,De,De.return);break;case 1:Pu(De,De.return);var rt=De.stateNode;if(typeof rt.componentWillUnmount=="function"){g=De,f=De.return;try{o=g,rt.props=o.memoizedProps,rt.state=o.memoizedState,rt.componentWillUnmount()}catch(lt){ar(g,f,lt)}}break;case 5:Pu(De,De.return);break;case 22:if(De.memoizedState!==null){zg(Pe);continue}}qe!==null?(qe.return=De,nt=qe):zg(Pe)}Me=Me.sibling}e:for(Me=null,Pe=a;;){if(Pe.tag===5){if(Me===null){Me=Pe;try{S=Pe.stateNode,me?(T=S.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(W=Pe.stateNode,Q=Pe.memoizedProps.style,M=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=ht("display",M))}catch(lt){ar(a,a.return,lt)}}}else if(Pe.tag===6){if(Me===null)try{Pe.stateNode.nodeValue=me?"":Pe.memoizedProps}catch(lt){ar(a,a.return,lt)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===a)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===a)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===a)break e;Me===Pe&&(Me=null),Pe=Pe.return}Me===Pe&&(Me=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:jr(o,a),po(a),g&4&&zu(a);break;case 21:break;default:jr(o,a),po(a)}}function po(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Gh(f)){var g=f;break e}f=f.return}throw Error(i(160))}switch(g.tag){case 5:var S=g.stateNode;g.flags&32&&($a(S,""),g.flags&=-33);var T=Vg(a);Vu(a,T,S);break;case 3:case 4:var M=g.stateNode.containerInfo,W=Vg(a);fd(a,W,M);break;default:throw Error(i(161))}}catch(Q){ar(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function TC(a,o,f){nt=a,Wh(a)}function Wh(a,o,f){for(var g=(a.mode&1)!==0;nt!==null;){var S=nt,T=S.child;if(S.tag===22&&g){var M=S.memoizedState!==null||Lu;if(!M){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Vr;W=Lu;var me=Vr;if(Lu=M,(Vr=Q)&&!me)for(nt=S;nt!==null;)M=nt,Q=M.child,M.tag===22&&M.memoizedState!==null?Xh(S):Q!==null?(Q.return=M,nt=Q):Xh(S);for(;T!==null;)nt=T,Wh(T),T=T.sibling;nt=S,Lu=W,Vr=me}$u(a)}else S.subtreeFlags&8772&&T!==null?(T.return=S,nt=T):$u(a)}}function $u(a){for(;nt!==null;){var o=nt;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Vr||$f(5,o);break;case 1:var g=o.stateNode;if(o.flags&4&&!Vr)if(f===null)g.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:Ia(o.type,f.memoizedProps);g.componentDidUpdate(S,f.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var T=o.updateQueue;T!==null&&Ru(o,T,g);break;case 3:var M=o.updateQueue;if(M!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}Ru(o,M,f)}break;case 5:var W=o.stateNode;if(f===null&&o.flags&4){f=W;var Q=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&f.focus();break;case"img":Q.src&&(f.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var me=o.alternate;if(me!==null){var Me=me.memoizedState;if(Me!==null){var Pe=Me.dehydrated;Pe!==null&&li(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Vr||o.flags&512&&Uf(o)}catch(De){ar(o,o.return,De)}}if(o===a){nt=null;break}if(f=o.sibling,f!==null){f.return=o.return,nt=f;break}nt=o.return}}function zg(a){for(;nt!==null;){var o=nt;if(o===a){nt=null;break}var f=o.sibling;if(f!==null){f.return=o.return,nt=f;break}nt=o.return}}function Xh(a){for(;nt!==null;){var o=nt;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{$f(4,o)}catch(Q){ar(o,f,Q)}break;case 1:var g=o.stateNode;if(typeof g.componentDidMount=="function"){var S=o.return;try{g.componentDidMount()}catch(Q){ar(o,S,Q)}}var T=o.return;try{Uf(o)}catch(Q){ar(o,T,Q)}break;case 5:var M=o.return;try{Uf(o)}catch(Q){ar(o,M,Q)}}}catch(Q){ar(o,o.return,Q)}if(o===a){nt=null;break}var W=o.sibling;if(W!==null){W.return=o.return,nt=W;break}nt=o.return}}var _C=Math.ceil,jl=U.ReactCurrentDispatcher,Hf=U.ReactCurrentOwner,yi=U.ReactCurrentBatchConfig,zt=0,rr=null,zn=null,Cr=0,ka=0,Uu=Nn(0),xr=0,pd=null,Ol=0,Hu=0,Yh=0,Vs=null,Kr=null,Gf=0,Gu=1/0,Yo=null,Wf=!1,Zh=null,bi=null,Wu=!1,Ci=null,Xf=0,hd=0,Yf=null,vd=-1,Dl=0;function Or(){return zt&6?Dn():vd!==-1?vd:vd=Dn()}function Zo(a){return a.mode&1?zt&2&&Cr!==0?Cr&-Cr:yC.transition!==null?(Dl===0&&(Dl=ul()),Dl):(a=Ut,a!==0||(a=window.event,a=a===void 0?16:jc(a.type)),a):1}function Zn(a,o,f,g){if(50<hd)throw hd=0,Yf=null,Error(i(185));bs(a,f,g),(!(zt&2)||a!==rr)&&(a===rr&&(!(zt&2)&&(Hu|=f),xr===4&&ho(a,Cr)),Sr(a,g),f===1&&zt===0&&!(o.mode&1)&&(Gu=Dn()+500,Ns&&so()))}function Sr(a,o){var f=a.callbackNode;ys(a,o);var g=to(a,a===rr?Cr:0);if(g===0)f!==null&&On(f),a.callbackNode=null,a.callbackPriority=0;else if(o=g&-g,a.callbackPriority!==o){if(f!=null&&On(f),o===1)a.tag===0?yg(Xu.bind(null,a)):pf(Xu.bind(null,a)),mg(function(){!(zt&6)&&so()}),f=null;else{switch(Nc(g)){case 1:f=xc;break;case 4:f=eo;break;case 16:f=Lt;break;case 536870912:f=jo;break;default:f=Lt}f=Zg(f,Zf.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function Zf(a,o){if(vd=-1,Dl=0,zt&6)throw Error(i(327));var f=a.callbackNode;if(Yu()&&a.callbackNode!==f)return null;var g=to(a,a===rr?Cr:0);if(g===0)return null;if(g&30||g&a.expiredLanes||o)o=Jf(a,g);else{o=g;var S=zt;zt|=2;var T=Ug();(rr!==a||Cr!==o)&&(Yo=null,Gu=Dn()+500,Ml(a,o));do try{IC();break}catch(W){$g(a,W)}while(!0);jh(),jl.current=T,zt=S,zn!==null?o=0:(rr=null,Cr=0,o=xr)}if(o!==0){if(o===2&&(S=no(a),S!==0&&(g=S,o=kl(a,S))),o===1)throw f=pd,Ml(a,0),ho(a,g),Sr(a,Dn()),f;if(o===6)ho(a,g);else{if(S=a.current.alternate,!(g&30)&&!Jh(S)&&(o=Jf(a,g),o===2&&(T=no(a),T!==0&&(g=T,o=kl(a,T))),o===1))throw f=pd,Ml(a,0),ho(a,g),Sr(a,Dn()),f;switch(a.finishedWork=S,a.finishedLanes=g,o){case 0:case 1:throw Error(i(345));case 2:Bs(a,Kr,Yo);break;case 3:if(ho(a,g),(g&130023424)===g&&(o=Gf+500-Dn(),10<o)){if(to(a,0)!==0)break;if(S=a.suspendedLanes,(S&g)!==g){Or(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=Wc(Bs.bind(null,a,Kr,Yo),o);break}Bs(a,Kr,Yo);break;case 4:if(ho(a,g),(g&4194240)===g)break;for(o=a.eventTimes,S=-1;0<g;){var M=31-ra(g);T=1<<M,M=o[M],M>S&&(S=M),g&=~T}if(g=S,g=Dn()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*_C(g/1960))-g,10<g){a.timeoutHandle=Wc(Bs.bind(null,a,Kr,Yo),g);break}Bs(a,Kr,Yo);break;case 5:Bs(a,Kr,Yo);break;default:throw Error(i(329))}}}return Sr(a,Dn()),a.callbackNode===f?Zf.bind(null,a):null}function kl(a,o){var f=Vs;return a.current.memoizedState.isDehydrated&&(Ml(a,o).flags|=256),a=Jf(a,o),a!==2&&(o=Kr,Kr=f,o!==null&&qh(o)),a}function qh(a){Kr===null?Kr=a:Kr.push.apply(Kr,a)}function Jh(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var g=0;g<f.length;g++){var S=f[g],T=S.getSnapshot;S=S.value;try{if(!Bi(T(),S))return!1}catch{return!1}}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ho(a,o){for(o&=~Yh,o&=~Hu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-ra(o),g=1<<f;a[f]=-1,o&=~g}}function Xu(a){if(zt&6)throw Error(i(327));Yu();var o=to(a,0);if(!(o&1))return Sr(a,Dn()),null;var f=Jf(a,o);if(a.tag!==0&&f===2){var g=no(a);g!==0&&(o=g,f=kl(a,g))}if(f===1)throw f=pd,Ml(a,0),ho(a,o),Sr(a,Dn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Bs(a,Kr,Yo),Sr(a,Dn()),null}function Qh(a,o){var f=zt;zt|=1;try{return a(o)}finally{zt=f,zt===0&&(Gu=Dn()+500,Ns&&so())}}function vo(a){Ci!==null&&Ci.tag===0&&!(zt&6)&&Yu();var o=zt;zt|=1;var f=yi.transition,g=Ut;try{if(yi.transition=null,Ut=1,a)return a()}finally{Ut=g,yi.transition=f,zt=o,!(zt&6)&&so()}}function qf(){ka=Uu.current,ut(Uu)}function Ml(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Xc(f)),zn!==null)for(f=zn.return;f!==null;){var g=f;switch(vf(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Ra();break;case 3:Iu(),ut(At),ut(Ir),hi();break;case 5:gt(g);break;case 4:Iu();break;case 13:ut(ft);break;case 19:ut(ft);break;case 10:Oh(g.type._context);break;case 22:case 23:qf()}f=f.return}if(rr=a,zn=a=zs(a.current,null),Cr=ka=o,xr=0,pd=null,Yh=Hu=Ol=0,Kr=Vs=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],g=f.interleaved,g!==null){f.interleaved=null;var S=g.next,T=f.pending;if(T!==null){var M=T.next;T.next=S,g.next=M}f.pending=g}Jr=null}return a}function $g(a,o){do{var f=zn;try{if(jh(),td.current=kf,lr){for(var g=Yn.memoizedState;g!==null;){var S=g.queue;S!==null&&(S.pending=null),g=g.next}lr=!1}if(Sl=0,Re=sr=Yn=null,Ct=!1,co=0,Hf.current=null,f===null||f.return===null){xr=1,pd=o,zn=null;break}e:{var T=a,M=f.return,W=f,Q=o;if(o=Cr,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var me=Q,Me=W,Pe=Me.tag;if(!(Me.mode&1)&&(Pe===0||Pe===11||Pe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var qe=Dg(M);if(qe!==null){qe.flags&=-257,zh(qe,M,W,T,o),qe.mode&1&&ld(T,me,o),o=qe,Q=me;var rt=o.updateQueue;if(rt===null){var lt=new Set;lt.add(Q),o.updateQueue=lt}else rt.add(Q);break e}else{if(!(o&1)){ld(T,me,o),md();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var dr=Dg(M);if(dr!==null){!(dr.flags&65536)&&(dr.flags|=256),zh(dr,M,W,T,o),mr(Ps(Q,W));break e}}T=Q=Ps(Q,W),xr!==4&&(xr=2),Vs===null?Vs=[T]:Vs.push(T),T=M;do{switch(T.tag){case 3:T.flags|=65536,o&=-o,T.lanes|=o;var ae=jg(T,Q,o);Sg(T,ae);break e;case 1:W=Q;var ee=T.type,le=T.stateNode;if(!(T.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(bi===null||!bi.has(le)))){T.flags|=65536,o&=-o,T.lanes|=o;var ze=Og(T,W,o);Sg(T,ze);break e}}T=T.return}while(T!==null)}Gg(f)}catch(ct){o=ct,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Ug(){var a=jl.current;return jl.current=kf,a===null?kf:a}function md(){(xr===0||xr===3||xr===2)&&(xr=4),rr===null||!(Ol&268435455)&&!(Hu&268435455)||ho(rr,Cr)}function Jf(a,o){var f=zt;zt|=2;var g=Ug();(rr!==a||Cr!==o)&&(Yo=null,Ml(a,o));do try{NC();break}catch(S){$g(a,S)}while(!0);if(jh(),zt=f,jl.current=g,zn!==null)throw Error(i(261));return rr=null,Cr=0,xr}function NC(){for(;zn!==null;)Hg(zn)}function IC(){for(;zn!==null&&!Zr();)Hg(zn)}function Hg(a){var o=Yg(a.alternate,a,ka);a.memoizedProps=a.pendingProps,o===null?Gg(a):zn=o,Hf.current=null}function Gg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=wC(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{xr=6,zn=null;return}}else if(f=EC(f,o,ka),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);xr===0&&(xr=5)}function Bs(a,o,f){var g=Ut,S=yi.transition;try{yi.transition=null,Ut=1,AC(a,o,f,g)}finally{yi.transition=S,Ut=g}return null}function AC(a,o,f,g){do Yu();while(Ci!==null);if(zt&6)throw Error(i(327));f=a.finishedWork;var S=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var T=f.lanes|f.childLanes;if(Tc(a,T),a===rr&&(zn=rr=null,Cr=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||Wu||(Wu=!0,Zg(Lt,function(){return Yu(),null})),T=(f.flags&15990)!==0,f.subtreeFlags&15990||T){T=yi.transition,yi.transition=null;var M=Ut;Ut=1;var W=zt;zt|=4,Hf.current=null,RC(a,f),Bg(f,a),hl(Sh),fu=!!xh,Sh=xh=null,a.current=f,TC(f),Ki(),zt=W,Ut=M,yi.transition=T}else a.current=f;if(Wu&&(Wu=!1,Ci=a,Xf=S),T=a.pendingLanes,T===0&&(bi=null),Sc(f.stateNode),Sr(a,Dn()),o!==null)for(g=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],g(S.value,{componentStack:S.stack,digest:S.digest});if(Wf)throw Wf=!1,a=Zh,Zh=null,a;return Xf&1&&a.tag!==0&&Yu(),T=a.pendingLanes,T&1?a===Yf?hd++:(hd=0,Yf=a):hd=0,so(),null}function Yu(){if(Ci!==null){var a=Nc(Xf),o=yi.transition,f=Ut;try{if(yi.transition=null,Ut=16>a?16:a,Ci===null)var g=!1;else{if(a=Ci,Ci=null,Xf=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,nt=a.current;nt!==null;){var T=nt,M=T.child;if(nt.flags&16){var W=T.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var me=W[Q];for(nt=me;nt!==null;){var Me=nt;switch(Me.tag){case 0:case 11:case 15:Fu(8,Me,T)}var Pe=Me.child;if(Pe!==null)Pe.return=Me,nt=Pe;else for(;nt!==null;){Me=nt;var De=Me.sibling,qe=Me.return;if(Fg(Me),Me===me){nt=null;break}if(De!==null){De.return=qe,nt=De;break}nt=qe}}}var rt=T.alternate;if(rt!==null){var lt=rt.child;if(lt!==null){rt.child=null;do{var dr=lt.sibling;lt.sibling=null,lt=dr}while(lt!==null)}}nt=T}}if(T.subtreeFlags&2064&&M!==null)M.return=T,nt=M;else e:for(;nt!==null;){if(T=nt,T.flags&2048)switch(T.tag){case 0:case 11:case 15:Fu(9,T,T.return)}var ae=T.sibling;if(ae!==null){ae.return=T.return,nt=ae;break e}nt=T.return}}var ee=a.current;for(nt=ee;nt!==null;){M=nt;var le=M.child;if(M.subtreeFlags&2064&&le!==null)le.return=M,nt=le;else e:for(M=ee;nt!==null;){if(W=nt,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:$f(9,W)}}catch(ct){ar(W,W.return,ct)}if(W===M){nt=null;break e}var ze=W.sibling;if(ze!==null){ze.return=W.return,nt=ze;break e}nt=W.return}}if(zt=S,so(),xa&&typeof xa.onPostCommitFiberRoot=="function")try{xa.onPostCommitFiberRoot(gs,a)}catch{}g=!0}return g}finally{Ut=f,yi.transition=o}}return!1}function Wg(a,o,f){o=Ps(f,o),o=jg(a,o,1),a=Ds(a,o,1),o=Or(),a!==null&&(bs(a,1,o),Sr(a,o))}function ar(a,o,f){if(a.tag===3)Wg(a,a,f);else for(;o!==null;){if(o.tag===3){Wg(o,a,f);break}else if(o.tag===1){var g=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(bi===null||!bi.has(g))){a=Ps(f,a),a=Og(o,a,1),o=Ds(o,a,1),a=Or(),o!==null&&(bs(o,1,a),Sr(o,a));break}}o=o.return}}function jC(a,o,f){var g=a.pingCache;g!==null&&g.delete(o),o=Or(),a.pingedLanes|=a.suspendedLanes&f,rr===a&&(Cr&f)===f&&(xr===4||xr===3&&(Cr&130023424)===Cr&&500>Dn()-Gf?Ml(a,0):Yh|=f),Sr(a,o)}function Xg(a,o){o===0&&(a.mode&1?(o=lu,lu<<=1,!(lu&130023424)&&(lu=4194304)):o=1);var f=Or();a=Go(a,o),a!==null&&(bs(a,o,f),Sr(a,f))}function Kh(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),Xg(a,f)}function OC(a,o){var f=0;switch(a.tag){case 13:var g=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:g=a.stateNode;break;default:throw Error(i(314))}g!==null&&g.delete(o),Xg(a,f)}var Yg;Yg=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||At.current)Oa=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Oa=!1,Xo(a,o,f);Oa=!!(a.flags&131072)}else Oa=!1,Bn&&o.flags&1048576&&As(o,bl,o.index);switch(o.lanes=0,o.tag){case 2:var g=o.type;dd(a,o),a=o.pendingProps;var S=Xa(o,Ir.current);or(o,f),S=El(null,o,g,a,S,f);var T=Ms();return o.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vr(g)?(T=!0,yl(o)):T=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Dh(o),S.updater=bf,o.stateNode=S,S._reactInternals=o,Mh(o,g,a,f),o=Lf(null,o,g,!0,T,f)):(o.tag=0,Bn&&T&&hf(o),ur(null,o,S,f),o=o.child),o;case 16:g=o.elementType;e:{switch(dd(a,o),a=o.pendingProps,S=g._init,g=S(g._payload),o.type=g,S=o.tag=DC(g),a=Ia(g,a),S){case 0:o=Dt(null,o,g,a,f);break e;case 1:o=ud(null,o,g,a,f);break e;case 11:o=Du(null,o,g,a,f);break e;case 14:o=Fs(null,o,g,Ia(g.type,a),f);break e}throw Error(i(306,g,""))}return o;case 0:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),Dt(a,o,g,S,f);case 1:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),ud(a,o,g,S,f);case 3:e:{if(SC(o),a===null)throw Error(i(387));g=o.pendingProps,T=o.memoizedState,S=T.element,xg(a,o),Jc(o,g,null,f);var M=o.memoizedState;if(g=M.element,T.isDehydrated)if(T={element:g,isDehydrated:!1,cache:M.cache,pendingSuspenseBoundaries:M.pendingSuspenseBoundaries,transitions:M.transitions},o.updateQueue.baseState=T,o.memoizedState=T,o.flags&256){S=Ps(Error(i(423)),o),o=Mg(a,o,g,f,S);break e}else if(g!==S){S=Ps(Error(i(424)),o),o=Mg(a,o,g,f,S);break e}else for(Za=Wa(o.stateNode.containerInfo.firstChild),Ya=o,Bn=!0,pi=null,f=Ng(o,null,g,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Su(),g===S){o=cr(a,o,f);break e}ur(a,o,g,f)}o=o.child}return o;case 5:return Cf(o),a===null&&mf(o),g=o.type,S=o.pendingProps,T=a!==null?a.memoizedProps:null,M=S.children,gl(g,S)?M=null:T!==null&&gl(g,T)&&(o.flags|=32),Il(a,o),ur(a,o,M,f),o.child;case 6:return a===null&&mf(o),null;case 13:return Lg(a,o,f);case 4:return Lh(o,o.stateNode.containerInfo),g=o.pendingProps,a===null?o.child=_u(o,null,g,f):ur(a,o,g,f),o.child;case 11:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),Du(a,o,g,S,f);case 7:return ur(a,o,o.pendingProps,f),o.child;case 8:return ur(a,o,o.pendingProps.children,f),o.child;case 12:return ur(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(g=o.type._context,S=o.pendingProps,T=o.memoizedProps,M=S.value,nn(Eu,g._currentValue),g._currentValue=M,T!==null)if(Bi(T.value,M)){if(T.children===S.children&&!At.current){o=cr(a,o,f);break e}}else for(T=o.child,T!==null&&(T.return=o);T!==null;){var W=T.dependencies;if(W!==null){M=T.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===g){if(T.tag===1){Q=kn(-1,f&-f),Q.tag=2;var me=T.updateQueue;if(me!==null){me=me.shared;var Me=me.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),me.pending=Q}}T.lanes|=f,Q=T.alternate,Q!==null&&(Q.lanes|=f),js(T.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(T.tag===10)M=T.type===o.type?null:T.child;else if(T.tag===18){if(M=T.return,M===null)throw Error(i(341));M.lanes|=f,W=M.alternate,W!==null&&(W.lanes|=f),js(M,f,o),M=T.sibling}else M=T.child;if(M!==null)M.return=T;else for(M=T;M!==null;){if(M===o){M=null;break}if(T=M.sibling,T!==null){T.return=M.return,M=T;break}M=M.return}T=M}ur(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,g=o.pendingProps.children,or(o,f),S=$e(S),g=g(S),o.flags|=1,ur(a,o,g,f),o.child;case 14:return g=o.type,S=Ia(g,o.pendingProps),S=Ia(g.type,S),Fs(a,o,g,S,f);case 15:return Mf(a,o,o.type,o.pendingProps,f);case 17:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),dd(a,o),o.tag=1,vr(g)?(a=!0,yl(o)):a=!1,or(o,f),wg(o,g,S),Mh(o,g,S,f),Lf(null,o,g,!0,a,f);case 19:return Uh(a,o,f);case 22:return Da(a,o,f)}throw Error(i(156,o.tag))};function Zg(a,o){return jn(a,o)}function qg(a,o,f,g){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(a,o,f,g){return new qg(a,o,f,g)}function ev(a){return a=a.prototype,!(!a||!a.isReactComponent)}function DC(a){if(typeof a=="function")return ev(a)?1:0;if(a!=null){if(a=a.$$typeof,a===de)return 11;if(a===Ce)return 14}return 2}function zs(a,o){var f=a.alternate;return f===null?(f=xi(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function Qf(a,o,f,g,S,T){var M=2;if(g=a,typeof a=="function")ev(a)&&(M=1);else if(typeof a=="string")M=5;else e:switch(a){case X:return Ll(f.children,S,T,o);case Z:M=8,S|=8;break;case ue:return a=xi(12,f,o,S|2),a.elementType=ue,a.lanes=T,a;case _e:return a=xi(13,f,o,S),a.elementType=_e,a.lanes=T,a;case Ee:return a=xi(19,f,o,S),a.elementType=Ee,a.lanes=T,a;case Le:return Kf(f,S,T,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ie:M=10;break e;case ge:M=9;break e;case de:M=11;break e;case Ce:M=14;break e;case je:M=16,g=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=xi(M,f,o,S),o.elementType=a,o.type=g,o.lanes=T,o}function Ll(a,o,f,g){return a=xi(7,a,g,o),a.lanes=f,a}function Kf(a,o,f,g){return a=xi(22,a,g,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function ep(a,o,f){return a=xi(6,a,null,o),a.lanes=f,a}function gd(a,o,f){return o=xi(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function yd(a,o,f,g,S){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=g,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function tv(a,o,f,g,S,T,M,W,Q){return a=new yd(a,o,f,W,Q),o===1?(o=1,T===!0&&(o|=8)):o=0,T=xi(3,null,null,o),a.current=T,T.stateNode=a,T.memoizedState={element:g,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dh(T),a}function Jg(a,o,f){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:g==null?null:""+g,children:a,containerInfo:o,implementation:f}}function nv(a){if(!a)return ci;a=a._reactInternals;e:{if(Ye(a)!==a||a.tag!==1)throw Error(i(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(a.tag===1){var f=a.type;if(vr(f))return _s(a,f,o)}return o}function rv(a,o,f,g,S,T,M,W,Q){return a=tv(f,g,!0,a,S,T,M,W,Q),a.context=nv(null),f=a.current,g=Or(),S=Zo(f),T=kn(g,S),T.callback=o??null,Ds(f,T,S),a.current.lanes=S,bs(a,S,g),Sr(a,g),a}function tp(a,o,f,g){var S=o.current,T=Or(),M=Zo(S);return f=nv(f),o.context===null?o.context=f:o.pendingContext=f,o=kn(T,M),o.payload={element:a},g=g===void 0?null:g,g!==null&&(o.callback=g),a=Ds(S,o,M),a!==null&&(Zn(a,S,M,T),yf(a,S,M)),M}function bd(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Qg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function av(a,o){Qg(a,o),(a=a.alternate)&&Qg(a,o)}function kC(){return null}var iv=typeof reportError=="function"?reportError:function(a){console.error(a)};function np(a){this._internalRoot=a}Cd.prototype.render=np.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));tp(a,o,null,null)},Cd.prototype.unmount=np.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){tp(null,a,null,null)}),o[zi]=null}};function Cd(a){this._internalRoot=a}Cd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Zt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Fn.length&&o!==0&&o<Fn[f].priority;f++);Fn.splice(f,0,a),f===0&&Fi(a)}};function $s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function rp(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Kg(){}function MC(a,o,f,g,S){if(S){if(typeof g=="function"){var T=g;g=function(){var me=bd(M);T.call(me)}}var M=rv(o,g,a,0,null,!1,!1,"",Kg);return a._reactRootContainer=M,a[zi]=M.current,ao(a.nodeType===8?a.parentNode:a),vo(),M}for(;S=a.lastChild;)a.removeChild(S);if(typeof g=="function"){var W=g;g=function(){var me=bd(Q);W.call(me)}}var Q=tv(a,0,!1,null,null,!1,!1,"",Kg);return a._reactRootContainer=Q,a[zi]=Q.current,ao(a.nodeType===8?a.parentNode:a),vo(function(){tp(o,Q,f,g)}),Q}function ap(a,o,f,g,S){var T=f._reactRootContainer;if(T){var M=T;if(typeof S=="function"){var W=S;S=function(){var Q=bd(M);W.call(Q)}}tp(o,M,a,S)}else M=MC(f,o,a,S,g);return bd(M)}uu=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Oo(o.pendingLanes);f!==0&&(_c(o,f|1),Sr(o,Dn()),!(zt&6)&&(Gu=Dn()+500,so()))}break;case 13:vo(function(){var g=Go(a,1);if(g!==null){var S=Or();Zn(g,a,1,S)}}),av(a,1)}},Cs=function(a){if(a.tag===13){var o=Go(a,134217728);if(o!==null){var f=Or();Zn(o,a,134217728,f)}av(a,134217728)}},Ic=function(a){if(a.tag===13){var o=Zo(a),f=Go(a,o);if(f!==null){var g=Or();Zn(f,a,o,g)}av(a,o)}},Zt=function(){return Ut},cu=function(a,o){var f=Ut;try{return Ut=a,o()}finally{Ut=f}},hn=function(a,o,f){switch(o){case"input":if(sn(a,f),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<f.length;o++){var g=f[o];if(g!==a&&g.form===a.form){var S=ff(g);if(!S)throw Error(i(90));ot(g),sn(g,S)}}}break;case"textarea":Hn(a,f);break;case"select":o=f.value,o!=null&&xn(a,!!f.multiple,o,!1)}},vs=Qh,il=vo;var LC={usingClientEntryPoint:!1,Events:[io,xu,ff,ki,ai,Qh]},xd={findFiberByHostInstance:Uo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ey={bundleType:xd.bundleType,version:xd.version,rendererPackageName:xd.rendererPackageName,rendererConfig:xd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=vt(a),a===null?null:a.stateNode},findFiberByHostInstance:xd.findFiberByHostInstance||kC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ip=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ip.isDisabled&&ip.supportsFiber)try{gs=ip.inject(ey),xa=ip}catch{}}return _i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LC,_i.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$s(o))throw Error(i(200));return Jg(a,o,null,f)},_i.createRoot=function(a,o){if(!$s(a))throw Error(i(299));var f=!1,g="",S=iv;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=tv(a,1,!1,null,null,f,!1,g,S),a[zi]=o.current,ao(a.nodeType===8?a.parentNode:a),new np(o)},_i.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=vt(o),a=a===null?null:a.stateNode,a},_i.flushSync=function(a){return vo(a)},_i.hydrate=function(a,o,f){if(!rp(o))throw Error(i(200));return ap(null,a,o,!0,f)},_i.hydrateRoot=function(a,o,f){if(!$s(a))throw Error(i(405));var g=f!=null&&f.hydratedSources||null,S=!1,T="",M=iv;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(T=f.identifierPrefix),f.onRecoverableError!==void 0&&(M=f.onRecoverableError)),o=rv(o,null,a,1,f??null,S,!1,T,M),a[zi]=o.current,ao(a),g)for(a=0;a<g.length;a++)f=g[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new Cd(o)},_i.render=function(a,o,f){if(!rp(o))throw Error(i(200));return ap(null,a,o,!1,f)},_i.unmountComponentAtNode=function(a){if(!rp(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){ap(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},_i.unstable_batchedUpdates=Qh,_i.unstable_renderSubtreeIntoContainer=function(a,o,f,g){if(!rp(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return ap(a,o,f,!1,g)},_i.version="18.2.0-next-9e3b772b8-20220608",_i}var Ni={},KN;function Tz(){if(KN)return Ni;KN=1;var t={};/**
|
|
96
|
+
`+T.stack}return{value:a,source:o,stack:S,digest:null}}function Bh(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function sd(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var Ag=typeof WeakMap=="function"?WeakMap:Map;function jg(a,o,f){f=kn(-1,f),f.tag=3,f.payload={element:null};var g=o.value;return f.callback=function(){Wf||(Wf=!0,Zh=g),sd(a,o)},f}function Og(a,o,f){f=kn(-1,f),f.tag=3;var g=a.type.getDerivedStateFromError;if(typeof g=="function"){var S=o.value;f.payload=function(){return g(S)},f.callback=function(){sd(a,o)}}var T=a.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(f.callback=function(){sd(a,o),typeof g!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var M=o.stack;this.componentDidCatch(o.value,{componentStack:M!==null?M:""})}),f}function ld(a,o,f){var g=a.pingCache;if(g===null){g=a.pingCache=new Ag;var S=new Set;g.set(o,S)}else S=g.get(o),S===void 0&&(S=new Set,g.set(o,S));S.has(f)||(S.add(f),a=jC.bind(null,a,o,f),o.then(a,a))}function Dg(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function zh(a,o,f,g,S){return a.mode&1?(a.flags|=65536,a.lanes=S,a):(a===o?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(o=kn(-1,1),o.tag=2,Ds(f,o,1))),f.lanes|=1),a)}var kg=U.ReactCurrentOwner,Oa=!1;function ur(a,o,f,g){o.child=a===null?Ng(o,null,f,g):_u(o,a.child,f,g)}function Du(a,o,f,g,S){f=f.render;var T=o.ref;return or(o,S),g=El(a,o,f,g,T,S),f=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&f&&hf(o),o.flags|=1,ur(a,o,g,S),o.child)}function Fs(a,o,f,g,S){if(a===null){var T=f.type;return typeof T=="function"&&!ev(T)&&T.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=T,Mf(a,o,T,g,S)):(a=Qf(f.type,null,g,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(T=a.child,!(a.lanes&S)){var M=T.memoizedProps;if(f=f.compare,f=f!==null?f:yu,f(M,g)&&a.ref===o.ref)return cr(a,o,S)}return o.flags|=1,a=zs(T,g),a.ref=o.ref,a.return=o,o.child=a}function Mf(a,o,f,g,S){if(a!==null){var T=a.memoizedProps;if(yu(T,g)&&a.ref===o.ref)if(Oa=!1,o.pendingProps=g=T,(a.lanes&S)!==0)a.flags&131072&&(Oa=!0);else return o.lanes=a.lanes,cr(a,o,S)}return Dt(a,o,f,g,S)}function Da(a,o,f){var g=o.pendingProps,S=g.children,T=a!==null?a.memoizedState:null;if(g.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},nn(Uu,ka),ka|=f;else{if(!(f&1073741824))return a=T!==null?T.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,nn(Uu,ka),ka|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=T!==null?T.baseLanes:f,nn(Uu,ka),ka|=g}else T!==null?(g=T.baseLanes|f,o.memoizedState=null):g=f,nn(Uu,ka),ka|=g;return ur(a,o,S,f),o.child}function Il(a,o){var f=o.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(o.flags|=512,o.flags|=2097152)}function Dt(a,o,f,g,S){var T=vr(f)?aa:Ir.current;return T=Xa(o,T),or(o,S),f=El(a,o,f,g,T,S),g=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&g&&hf(o),o.flags|=1,ur(a,o,f,S),o.child)}function ud(a,o,f,g,S){if(vr(f)){var T=!0;yl(o)}else T=!1;if(or(o,S),o.stateNode===null)dd(a,o),wg(o,f,g),Mh(o,f,g,S),g=!0;else if(a===null){var M=o.stateNode,W=o.memoizedProps;M.props=W;var Q=M.context,me=f.contextType;typeof me=="object"&&me!==null?me=$e(me):(me=vr(f)?aa:Ir.current,me=Xa(o,me));var Me=f.getDerivedStateFromProps,Pe=typeof Me=="function"||typeof M.getSnapshotBeforeUpdate=="function";Pe||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(W!==g||Q!==me)&&Rg(o,M,g,me),Os=!1;var De=o.memoizedState;M.state=De,Jc(o,g,M,S),Q=o.memoizedState,W!==g||De!==Q||At.current||Os?(typeof Me=="function"&&(kh(o,f,Me,g),Q=o.memoizedState),(W=Os||Eg(o,f,W,g,De,Q,me))?(Pe||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(o.flags|=4194308)):(typeof M.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=g,o.memoizedState=Q),M.props=g,M.state=Q,M.context=me,g=W):(typeof M.componentDidMount=="function"&&(o.flags|=4194308),g=!1)}else{M=o.stateNode,xg(a,o),W=o.memoizedProps,me=o.type===o.elementType?W:Ia(o.type,W),M.props=me,Pe=o.pendingProps,De=M.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=$e(Q):(Q=vr(f)?aa:Ir.current,Q=Xa(o,Q));var qe=f.getDerivedStateFromProps;(Me=typeof qe=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(W!==Pe||De!==Q)&&Rg(o,M,g,Q),Os=!1,De=o.memoizedState,M.state=De,Jc(o,g,M,S);var rt=o.memoizedState;W!==Pe||De!==rt||At.current||Os?(typeof qe=="function"&&(kh(o,f,qe,g),rt=o.memoizedState),(me=Os||Eg(o,f,me,g,De,rt,Q)||!1)?(Me||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(g,rt,Q),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(g,rt,Q)),typeof M.componentDidUpdate=="function"&&(o.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof M.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=g,o.memoizedState=rt),M.props=g,M.state=rt,M.context=Q,g=me):(typeof M.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),g=!1)}return Lf(a,o,f,g,T,S)}function Lf(a,o,f,g,S,T){Il(a,o);var M=(o.flags&128)!==0;if(!g&&!M)return S&&gg(o,f,!1),cr(a,o,T);g=o.stateNode,kg.current=o;var W=M&&typeof f.getDerivedStateFromError!="function"?null:g.render();return o.flags|=1,a!==null&&M?(o.child=_u(o,a.child,null,T),o.child=_u(o,null,W,T)):ur(a,o,W,T),o.memoizedState=g.state,S&&gg(o,f,!0),o.child}function SC(a){var o=a.stateNode;o.pendingContext?oo(a,o.pendingContext,o.pendingContext!==o.context):o.context&&oo(a,o.context,!1),Lh(a,o.containerInfo)}function Mg(a,o,f,g,S){return Su(),mr(S),o.flags|=256,ur(a,o,f,g),o.child}var cd={dehydrated:null,treeContext:null,retryLane:0};function Al(a){return{baseLanes:a,cachePool:null,transitions:null}}function Lg(a,o,f){var g=o.pendingProps,S=ft.current,T=!1,M=(o.flags&128)!==0,W;if((W=M)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(T=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),nn(ft,S&1),a===null)return mf(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(M=g.children,a=g.fallback,T?(g=o.mode,T=o.child,M={mode:"hidden",children:M},!(g&1)&&T!==null?(T.childLanes=0,T.pendingProps=M):T=Kf(M,g,0,null),a=Ll(a,g,f,null),T.return=o,a.return=o,T.sibling=a,o.child=T,o.child.memoizedState=Al(f),o.memoizedState=cd,a):Pf(o,M));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return $h(a,o,M,g,W,S,f);if(T){T=g.fallback,M=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:g.children};return!(M&1)&&o.child!==S?(g=o.child,g.childLanes=0,g.pendingProps=Q,o.deletions=null):(g=zs(S,Q),g.subtreeFlags=S.subtreeFlags&14680064),W!==null?T=zs(W,T):(T=Ll(T,M,f,null),T.flags|=2),T.return=o,g.return=o,g.sibling=T,o.child=g,g=T,T=o.child,M=a.child.memoizedState,M=M===null?Al(f):{baseLanes:M.baseLanes|f,cachePool:null,transitions:M.transitions},T.memoizedState=M,T.childLanes=a.childLanes&~f,o.memoizedState=cd,g}return T=a.child,a=T.sibling,g=zs(T,{mode:"visible",children:g.children}),!(o.mode&1)&&(g.lanes=f),g.return=o,g.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=g,o.memoizedState=null,g}function Pf(a,o){return o=Kf({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Ff(a,o,f,g){return g!==null&&mr(g),_u(o,a.child,null,f),a=Pf(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function $h(a,o,f,g,S,T,M){if(f)return o.flags&256?(o.flags&=-257,g=Bh(Error(i(422))),Ff(a,o,M,g)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(T=g.fallback,S=o.mode,g=Kf({mode:"visible",children:g.children},S,0,null),T=Ll(T,S,M,null),T.flags|=2,g.return=o,T.return=o,g.sibling=T,o.child=g,o.mode&1&&_u(o,a.child,null,M),o.child.memoizedState=Al(M),o.memoizedState=cd,T);if(!(o.mode&1))return Ff(a,o,M,null);if(S.data==="$!"){if(g=S.nextSibling&&S.nextSibling.dataset,g)var W=g.dgst;return g=W,T=Error(i(419)),g=Bh(T,g,void 0),Ff(a,o,M,g)}if(W=(M&a.childLanes)!==0,Oa||W){if(g=rr,g!==null){switch(M&-M){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=S&(g.suspendedLanes|M)?0:S,S!==0&&S!==T.retryLane&&(T.retryLane=S,Go(a,S),Zn(g,a,S,-1))}return md(),g=Bh(Error(i(421))),Ff(a,o,M,g)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=Kh.bind(null,a),S._reactRetry=o,null):(a=T.treeContext,Za=Wa(S.nextSibling),Ya=o,Bn=!0,pi=null,a!==null&&(Ta[_a++]=Na,Ta[_a++]=Fr,Ta[_a++]=Ui,Na=a.id,Fr=a.overflow,Ui=o),o=Pf(o,g.children),o.flags|=4096,o)}function Pg(a,o,f){a.lanes|=o;var g=a.alternate;g!==null&&(g.lanes|=o),js(a.return,o,f)}function Vf(a,o,f,g,S){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:f,tailMode:S}:(T.isBackwards=o,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=f,T.tailMode=S)}function Uh(a,o,f){var g=o.pendingProps,S=g.revealOrder,T=g.tail;if(ur(a,o,g.children,f),g=ft.current,g&2)g=g&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Pg(a,f,o);else if(a.tag===19)Pg(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}if(nn(ft,g),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&Kt(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),Vf(o,!1,S,f,T);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Kt(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}Vf(o,!0,f,null,T);break;case"together":Vf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function dd(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function cr(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Ol|=o.lanes,!(f&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,f=zs(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=zs(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Xo(a,o,f){switch(o.tag){case 3:SC(o),Su();break;case 5:Cf(o);break;case 1:vr(o.type)&&yl(o);break;case 4:Lh(o,o.stateNode.containerInfo);break;case 10:var g=o.type._context,S=o.memoizedProps.value;nn(Eu,g._currentValue),g._currentValue=S;break;case 13:if(g=o.memoizedState,g!==null)return g.dehydrated!==null?(nn(ft,ft.current&1),o.flags|=128,null):f&o.child.childLanes?Lg(a,o,f):(nn(ft,ft.current&1),a=cr(a,o,f),a!==null?a.sibling:null);nn(ft,ft.current&1);break;case 19:if(g=(f&o.childLanes)!==0,a.flags&128){if(g)return Uh(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),nn(ft,ft.current),g)break;return null;case 22:case 23:return o.lanes=0,Da(a,o,f)}return cr(a,o,f)}var fo,ku,Mu,gi;fo=function(a,o){for(var f=o.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===o)break;for(;f.sibling===null;){if(f.return===null||f.return===o)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},ku=function(){},Mu=function(a,o,f,g){var S=a.memoizedProps;if(S!==g){a=o.stateNode,ks(uo.current);var T=null;switch(f){case"input":S=Rt(a,S),g=Rt(a,g),T=[];break;case"select":S=G({},S,{value:void 0}),g=G({},g,{value:void 0}),T=[];break;case"textarea":S=Qn(a,S),g=Qn(a,g),T=[];break;default:typeof S.onClick!="function"&&typeof g.onClick=="function"&&(a.onclick=df)}tn(f,g);var M;f=null;for(me in S)if(!g.hasOwnProperty(me)&&S.hasOwnProperty(me)&&S[me]!=null)if(me==="style"){var W=S[me];for(M in W)W.hasOwnProperty(M)&&(f||(f={}),f[M]="")}else me!=="dangerouslySetInnerHTML"&&me!=="children"&&me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&me!=="autoFocus"&&(u.hasOwnProperty(me)?T||(T=[]):(T=T||[]).push(me,null));for(me in g){var Q=g[me];if(W=S!=null?S[me]:void 0,g.hasOwnProperty(me)&&Q!==W&&(Q!=null||W!=null))if(me==="style")if(W){for(M in W)!W.hasOwnProperty(M)||Q&&Q.hasOwnProperty(M)||(f||(f={}),f[M]="");for(M in Q)Q.hasOwnProperty(M)&&W[M]!==Q[M]&&(f||(f={}),f[M]=Q[M])}else f||(T||(T=[]),T.push(me,f)),f=Q;else me==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(T=T||[]).push(me,Q)):me==="children"?typeof Q!="string"&&typeof Q!="number"||(T=T||[]).push(me,""+Q):me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&(u.hasOwnProperty(me)?(Q!=null&&me==="onScroll"&&_n("scroll",a),T||W===Q||(T=[])):(T=T||[]).push(me,Q))}f&&(T=T||[]).push("style",f);var me=T;(o.updateQueue=me)&&(o.flags|=4)}},gi=function(a,o,f,g){f!==g&&(o.flags|=4)};function nr(a,o){if(!Bn)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function Qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,g=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags&14680064,g|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=g,a.childLanes=f,o}function EC(a,o,f){var g=o.pendingProps;switch(vf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(o),null;case 1:return vr(o.type)&&Ra(),Qr(o),null;case 3:return g=o.stateNode,Iu(),ut(At),ut(Ir),hi(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(gf(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(qh(pi),pi=null))),ku(a,o),Qr(o),null;case 5:gt(o);var S=ks(ed.current);if(f=o.type,a!==null&&o.stateNode!=null)Mu(a,o,f,g,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!g){if(o.stateNode===null)throw Error(i(166));return Qr(o),null}if(a=ks(uo.current),gf(o)){g=o.stateNode,f=o.type;var T=o.memoizedProps;switch(g[ui]=o,g[Zc]=T,a=(o.mode&1)!==0,f){case"dialog":_n("cancel",g),_n("close",g);break;case"iframe":case"object":case"embed":_n("load",g);break;case"video":case"audio":for(S=0;S<Bo.length;S++)_n(Bo[S],g);break;case"source":_n("error",g);break;case"img":case"image":case"link":_n("error",g),_n("load",g);break;case"details":_n("toggle",g);break;case"input":dt(g,T),_n("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!T.multiple},_n("invalid",g);break;case"textarea":Tr(g,T),_n("invalid",g)}tn(f,T),S=null;for(var M in T)if(T.hasOwnProperty(M)){var W=T[M];M==="children"?typeof W=="string"?g.textContent!==W&&(T.suppressHydrationWarning!==!0&&Gc(g.textContent,W,a),S=["children",W]):typeof W=="number"&&g.textContent!==""+W&&(T.suppressHydrationWarning!==!0&&Gc(g.textContent,W,a),S=["children",""+W]):u.hasOwnProperty(M)&&W!=null&&M==="onScroll"&&_n("scroll",g)}switch(f){case"input":tt(g),ln(g,T,!0);break;case"textarea":tt(g),_r(g);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(g.onclick=df)}g=S,o.updateQueue=g,g!==null&&(o.flags|=4)}else{M=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=St(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=M.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof g.is=="string"?a=M.createElement(f,{is:g.is}):(a=M.createElement(f),f==="select"&&(M=a,g.multiple?M.multiple=!0:g.size&&(M.size=g.size))):a=M.createElementNS(a,f),a[ui]=o,a[Zc]=g,fo(a,o,!1,!1),o.stateNode=a;e:{switch(M=ir(f,g),f){case"dialog":_n("cancel",a),_n("close",a),S=g;break;case"iframe":case"object":case"embed":_n("load",a),S=g;break;case"video":case"audio":for(S=0;S<Bo.length;S++)_n(Bo[S],a);S=g;break;case"source":_n("error",a),S=g;break;case"img":case"image":case"link":_n("error",a),_n("load",a),S=g;break;case"details":_n("toggle",a),S=g;break;case"input":dt(a,g),S=Rt(a,g),_n("invalid",a);break;case"option":S=g;break;case"select":a._wrapperState={wasMultiple:!!g.multiple},S=G({},g,{value:void 0}),_n("invalid",a);break;case"textarea":Tr(a,g),S=Qn(a,g),_n("invalid",a);break;default:S=g}tn(f,S),W=S;for(T in W)if(W.hasOwnProperty(T)){var Q=W[T];T==="style"?Mt(a,Q):T==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&za(a,Q)):T==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&$a(a,Q):typeof Q=="number"&&$a(a,""+Q):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(u.hasOwnProperty(T)?Q!=null&&T==="onScroll"&&_n("scroll",a):Q!=null&&F(a,T,Q,M))}switch(f){case"input":tt(a),ln(a,g,!1);break;case"textarea":tt(a),_r(a);break;case"option":g.value!=null&&a.setAttribute("value",""+fe(g.value));break;case"select":a.multiple=!!g.multiple,T=g.value,T!=null?xn(a,!!g.multiple,T,!1):g.defaultValue!=null&&xn(a,!!g.multiple,g.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=df)}switch(f){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,g);else{if(typeof g!="string"&&o.stateNode===null)throw Error(i(166));if(f=ks(ed.current),ks(uo.current),gf(o)){if(g=o.stateNode,f=o.memoizedProps,g[ui]=o,(T=g.nodeValue!==f)&&(a=Ya,a!==null))switch(a.tag){case 3:Gc(g.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Gc(g.nodeValue,f,(a.mode&1)!==0)}T&&(o.flags|=4)}else g=(f.nodeType===9?f:f.ownerDocument).createTextNode(g),g[ui]=o,o.stateNode=g}return Qr(o),null;case 13:if(ut(ft),g=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Za!==null&&o.mode&1&&!(o.flags&128))bg(),Su(),o.flags|=98560,T=!1;else if(T=gf(o),g!==null&&g.dehydrated!==null){if(a===null){if(!T)throw Error(i(318));if(T=o.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(i(317));T[ui]=o}else Su(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Qr(o),T=!1}else pi!==null&&(qh(pi),pi=null),T=!0;if(!T)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(g=g!==null,g!==(a!==null&&a.memoizedState!==null)&&g&&(o.child.flags|=8192,o.mode&1&&(a===null||ft.current&1?xr===0&&(xr=3):md())),o.updateQueue!==null&&(o.flags|=4),Qr(o),null);case 4:return Iu(),ku(a,o),a===null&&ao(o.stateNode.containerInfo),Qr(o),null;case 10:return Oh(o.type._context),Qr(o),null;case 17:return vr(o.type)&&Ra(),Qr(o),null;case 19:if(ut(ft),T=o.memoizedState,T===null)return Qr(o),null;if(g=(o.flags&128)!==0,M=T.rendering,M===null)if(g)nr(T,!1);else{if(xr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(M=Kt(a),M!==null){for(o.flags|=128,nr(T,!1),g=M.updateQueue,g!==null&&(o.updateQueue=g,o.flags|=4),o.subtreeFlags=0,g=f,f=o.child;f!==null;)T=f,a=g,T.flags&=14680066,M=T.alternate,M===null?(T.childLanes=0,T.lanes=a,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=M.childLanes,T.lanes=M.lanes,T.child=M.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=M.memoizedProps,T.memoizedState=M.memoizedState,T.updateQueue=M.updateQueue,T.type=M.type,a=M.dependencies,T.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return nn(ft,ft.current&1|2),o.child}a=a.sibling}T.tail!==null&&Dn()>Gu&&(o.flags|=128,g=!0,nr(T,!1),o.lanes=4194304)}else{if(!g)if(a=Kt(M),a!==null){if(o.flags|=128,g=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),nr(T,!0),T.tail===null&&T.tailMode==="hidden"&&!M.alternate&&!Bn)return Qr(o),null}else 2*Dn()-T.renderingStartTime>Gu&&f!==1073741824&&(o.flags|=128,g=!0,nr(T,!1),o.lanes=4194304);T.isBackwards?(M.sibling=o.child,o.child=M):(f=T.last,f!==null?f.sibling=M:o.child=M,T.last=M)}return T.tail!==null?(o=T.tail,T.rendering=o,T.tail=o.sibling,T.renderingStartTime=Dn(),o.sibling=null,f=ft.current,nn(ft,g?f&1|2:f&1),o):(Qr(o),null);case 22:case 23:return qf(),g=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==g&&(o.flags|=8192),g&&o.mode&1?ka&1073741824&&(Qr(o),o.subtreeFlags&6&&(o.flags|=8192)):Qr(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function wC(a,o){switch(vf(o),o.tag){case 1:return vr(o.type)&&Ra(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Iu(),ut(At),ut(Ir),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return gt(o),null;case 13:if(ut(ft),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Su()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return ut(ft),null;case 4:return Iu(),null;case 10:return Oh(o.type._context),null;case 22:case 23:return qf(),null;case 24:return null;default:return null}}var Lu=!1,Vr=!1,Bf=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Pu(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(g){ar(a,o,g)}else f.current=null}function Hh(a,o,f){try{f()}catch(g){ar(a,o,g)}}var zf=!1;function RC(a,o){if(xh=fu,a=ig(),Vc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var g=f.getSelection&&f.getSelection();if(g&&g.rangeCount!==0){f=g.anchorNode;var S=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{f.nodeType,T.nodeType}catch{f=null;break e}var M=0,W=-1,Q=-1,me=0,Me=0,Pe=a,De=null;t:for(;;){for(var qe;Pe!==f||S!==0&&Pe.nodeType!==3||(W=M+S),Pe!==T||g!==0&&Pe.nodeType!==3||(Q=M+g),Pe.nodeType===3&&(M+=Pe.nodeValue.length),(qe=Pe.firstChild)!==null;)De=Pe,Pe=qe;for(;;){if(Pe===a)break t;if(De===f&&++me===S&&(W=M),De===T&&++Me===g&&(Q=M),(qe=Pe.nextSibling)!==null)break;Pe=De,De=Pe.parentNode}Pe=qe}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(Sh={focusedElem:a,selectionRange:f},fu=!1,nt=o;nt!==null;)if(o=nt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,nt=a;else for(;nt!==null;){o=nt;try{var rt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(rt!==null){var lt=rt.memoizedProps,dr=rt.memoizedState,ae=o.stateNode,ee=ae.getSnapshotBeforeUpdate(o.elementType===o.type?lt:Ia(o.type,lt),dr);ae.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var le=o.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ze){ar(o,o.return,ze)}if(a=o.sibling,a!==null){a.return=o.return,nt=a;break}nt=o.return}return rt=zf,zf=!1,rt}function Fu(a,o,f){var g=o.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var S=g=g.next;do{if((S.tag&a)===a){var T=S.destroy;S.destroy=void 0,T!==void 0&&Hh(o,f,T)}S=S.next}while(S!==g)}}function $f(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var f=o=o.next;do{if((f.tag&a)===a){var g=f.create;f.destroy=g()}f=f.next}while(f!==o)}}function Uf(a){var o=a.ref;if(o!==null){var f=a.stateNode;switch(a.tag){case 5:a=f;break;default:a=f}typeof o=="function"?o(a):o.current=a}}function Fg(a){var o=a.alternate;o!==null&&(a.alternate=null,Fg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[Zc],delete o[Th],delete o[mC],delete o[gC])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Gh(a){return a.tag===5||a.tag===3||a.tag===4}function Vg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Gh(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function fd(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.nodeType===8?f.parentNode.insertBefore(a,o):f.insertBefore(a,o):(f.nodeType===8?(o=f.parentNode,o.insertBefore(a,f)):(o=f,o.appendChild(a)),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=df));else if(g!==4&&(a=a.child,a!==null))for(fd(a,o,f),a=a.sibling;a!==null;)fd(a,o,f),a=a.sibling}function Vu(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(g!==4&&(a=a.child,a!==null))for(Vu(a,o,f),a=a.sibling;a!==null;)Vu(a,o,f),a=a.sibling}var Un=null,Ar=!1;function ia(a,o,f){for(f=f.child;f!==null;)Bu(a,o,f),f=f.sibling}function Bu(a,o,f){if(xa&&typeof xa.onCommitFiberUnmount=="function")try{xa.onCommitFiberUnmount(gs,f)}catch{}switch(f.tag){case 5:Vr||Pu(f,o);case 6:var g=Un,S=Ar;Un=null,ia(a,o,f),Un=g,Ar=S,Un!==null&&(Ar?(a=Un,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Un.removeChild(f.stateNode));break;case 18:Un!==null&&(Ar?(a=Un,f=f.stateNode,a.nodeType===8?Rh(a.parentNode,f):a.nodeType===1&&Rh(a,f),li(a)):Rh(Un,f.stateNode));break;case 4:g=Un,S=Ar,Un=f.stateNode.containerInfo,Ar=!0,ia(a,o,f),Un=g,Ar=S;break;case 0:case 11:case 14:case 15:if(!Vr&&(g=f.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){S=g=g.next;do{var T=S,M=T.destroy;T=T.tag,M!==void 0&&(T&2||T&4)&&Hh(f,o,M),S=S.next}while(S!==g)}ia(a,o,f);break;case 1:if(!Vr&&(Pu(f,o),g=f.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=f.memoizedProps,g.state=f.memoizedState,g.componentWillUnmount()}catch(W){ar(f,o,W)}ia(a,o,f);break;case 21:ia(a,o,f);break;case 22:f.mode&1?(Vr=(g=Vr)||f.memoizedState!==null,ia(a,o,f),Vr=g):ia(a,o,f);break;default:ia(a,o,f)}}function zu(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new Bf),o.forEach(function(g){var S=OC.bind(null,a,g);f.has(g)||(f.add(g),g.then(S,S))})}}function jr(a,o){var f=o.deletions;if(f!==null)for(var g=0;g<f.length;g++){var S=f[g];try{var T=a,M=o,W=M;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,Ar=!1;break e;case 3:Un=W.stateNode.containerInfo,Ar=!0;break e;case 4:Un=W.stateNode.containerInfo,Ar=!0;break e}W=W.return}if(Un===null)throw Error(i(160));Bu(T,M,S),Un=null,Ar=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(me){ar(S,o,me)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Bg(o,a),o=o.sibling}function Bg(a,o){var f=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(jr(o,a),po(a),g&4){try{Fu(3,a,a.return),$f(3,a)}catch(lt){ar(a,a.return,lt)}try{Fu(5,a,a.return)}catch(lt){ar(a,a.return,lt)}}break;case 1:jr(o,a),po(a),g&512&&f!==null&&Pu(f,f.return);break;case 5:if(jr(o,a),po(a),g&512&&f!==null&&Pu(f,f.return),a.flags&32){var S=a.stateNode;try{$a(S,"")}catch(lt){ar(a,a.return,lt)}}if(g&4&&(S=a.stateNode,S!=null)){var T=a.memoizedProps,M=f!==null?f.memoizedProps:T,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&T.type==="radio"&&T.name!=null&&en(S,T),ir(W,M);var me=ir(W,T);for(M=0;M<Q.length;M+=2){var Me=Q[M],Pe=Q[M+1];Me==="style"?Mt(S,Pe):Me==="dangerouslySetInnerHTML"?za(S,Pe):Me==="children"?$a(S,Pe):F(S,Me,Pe,me)}switch(W){case"input":sn(S,T);break;case"textarea":Hn(S,T);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!T.multiple;var qe=T.value;qe!=null?xn(S,!!T.multiple,qe,!1):De!==!!T.multiple&&(T.defaultValue!=null?xn(S,!!T.multiple,T.defaultValue,!0):xn(S,!!T.multiple,T.multiple?[]:"",!1))}S[Zc]=T}catch(lt){ar(a,a.return,lt)}}break;case 6:if(jr(o,a),po(a),g&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,T=a.memoizedProps;try{S.nodeValue=T}catch(lt){ar(a,a.return,lt)}}break;case 3:if(jr(o,a),po(a),g&4&&f!==null&&f.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(lt){ar(a,a.return,lt)}break;case 4:jr(o,a),po(a);break;case 13:jr(o,a),po(a),S=a.child,S.flags&8192&&(T=S.memoizedState!==null,S.stateNode.isHidden=T,!T||S.alternate!==null&&S.alternate.memoizedState!==null||(Gf=Dn())),g&4&&zu(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Vr=(me=Vr)||Me,jr(o,a),Vr=me):jr(o,a),po(a),g&8192){if(me=a.memoizedState!==null,(a.stateNode.isHidden=me)&&!Me&&a.mode&1)for(nt=a,Me=a.child;Me!==null;){for(Pe=nt=Me;nt!==null;){switch(De=nt,qe=De.child,De.tag){case 0:case 11:case 14:case 15:Fu(4,De,De.return);break;case 1:Pu(De,De.return);var rt=De.stateNode;if(typeof rt.componentWillUnmount=="function"){g=De,f=De.return;try{o=g,rt.props=o.memoizedProps,rt.state=o.memoizedState,rt.componentWillUnmount()}catch(lt){ar(g,f,lt)}}break;case 5:Pu(De,De.return);break;case 22:if(De.memoizedState!==null){zg(Pe);continue}}qe!==null?(qe.return=De,nt=qe):zg(Pe)}Me=Me.sibling}e:for(Me=null,Pe=a;;){if(Pe.tag===5){if(Me===null){Me=Pe;try{S=Pe.stateNode,me?(T=S.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(W=Pe.stateNode,Q=Pe.memoizedProps.style,M=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=ht("display",M))}catch(lt){ar(a,a.return,lt)}}}else if(Pe.tag===6){if(Me===null)try{Pe.stateNode.nodeValue=me?"":Pe.memoizedProps}catch(lt){ar(a,a.return,lt)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===a)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===a)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===a)break e;Me===Pe&&(Me=null),Pe=Pe.return}Me===Pe&&(Me=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:jr(o,a),po(a),g&4&&zu(a);break;case 21:break;default:jr(o,a),po(a)}}function po(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Gh(f)){var g=f;break e}f=f.return}throw Error(i(160))}switch(g.tag){case 5:var S=g.stateNode;g.flags&32&&($a(S,""),g.flags&=-33);var T=Vg(a);Vu(a,T,S);break;case 3:case 4:var M=g.stateNode.containerInfo,W=Vg(a);fd(a,W,M);break;default:throw Error(i(161))}}catch(Q){ar(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function TC(a,o,f){nt=a,Wh(a)}function Wh(a,o,f){for(var g=(a.mode&1)!==0;nt!==null;){var S=nt,T=S.child;if(S.tag===22&&g){var M=S.memoizedState!==null||Lu;if(!M){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Vr;W=Lu;var me=Vr;if(Lu=M,(Vr=Q)&&!me)for(nt=S;nt!==null;)M=nt,Q=M.child,M.tag===22&&M.memoizedState!==null?Xh(S):Q!==null?(Q.return=M,nt=Q):Xh(S);for(;T!==null;)nt=T,Wh(T),T=T.sibling;nt=S,Lu=W,Vr=me}$u(a)}else S.subtreeFlags&8772&&T!==null?(T.return=S,nt=T):$u(a)}}function $u(a){for(;nt!==null;){var o=nt;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Vr||$f(5,o);break;case 1:var g=o.stateNode;if(o.flags&4&&!Vr)if(f===null)g.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:Ia(o.type,f.memoizedProps);g.componentDidUpdate(S,f.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var T=o.updateQueue;T!==null&&Ru(o,T,g);break;case 3:var M=o.updateQueue;if(M!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}Ru(o,M,f)}break;case 5:var W=o.stateNode;if(f===null&&o.flags&4){f=W;var Q=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&f.focus();break;case"img":Q.src&&(f.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var me=o.alternate;if(me!==null){var Me=me.memoizedState;if(Me!==null){var Pe=Me.dehydrated;Pe!==null&&li(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Vr||o.flags&512&&Uf(o)}catch(De){ar(o,o.return,De)}}if(o===a){nt=null;break}if(f=o.sibling,f!==null){f.return=o.return,nt=f;break}nt=o.return}}function zg(a){for(;nt!==null;){var o=nt;if(o===a){nt=null;break}var f=o.sibling;if(f!==null){f.return=o.return,nt=f;break}nt=o.return}}function Xh(a){for(;nt!==null;){var o=nt;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{$f(4,o)}catch(Q){ar(o,f,Q)}break;case 1:var g=o.stateNode;if(typeof g.componentDidMount=="function"){var S=o.return;try{g.componentDidMount()}catch(Q){ar(o,S,Q)}}var T=o.return;try{Uf(o)}catch(Q){ar(o,T,Q)}break;case 5:var M=o.return;try{Uf(o)}catch(Q){ar(o,M,Q)}}}catch(Q){ar(o,o.return,Q)}if(o===a){nt=null;break}var W=o.sibling;if(W!==null){W.return=o.return,nt=W;break}nt=o.return}}var _C=Math.ceil,jl=U.ReactCurrentDispatcher,Hf=U.ReactCurrentOwner,yi=U.ReactCurrentBatchConfig,zt=0,rr=null,zn=null,Cr=0,ka=0,Uu=Nn(0),xr=0,pd=null,Ol=0,Hu=0,Yh=0,Vs=null,Kr=null,Gf=0,Gu=1/0,Yo=null,Wf=!1,Zh=null,bi=null,Wu=!1,Ci=null,Xf=0,hd=0,Yf=null,vd=-1,Dl=0;function Or(){return zt&6?Dn():vd!==-1?vd:vd=Dn()}function Zo(a){return a.mode&1?zt&2&&Cr!==0?Cr&-Cr:yC.transition!==null?(Dl===0&&(Dl=ul()),Dl):(a=Ut,a!==0||(a=window.event,a=a===void 0?16:jc(a.type)),a):1}function Zn(a,o,f,g){if(50<hd)throw hd=0,Yf=null,Error(i(185));bs(a,f,g),(!(zt&2)||a!==rr)&&(a===rr&&(!(zt&2)&&(Hu|=f),xr===4&&ho(a,Cr)),Sr(a,g),f===1&&zt===0&&!(o.mode&1)&&(Gu=Dn()+500,Ns&&so()))}function Sr(a,o){var f=a.callbackNode;ys(a,o);var g=to(a,a===rr?Cr:0);if(g===0)f!==null&&On(f),a.callbackNode=null,a.callbackPriority=0;else if(o=g&-g,a.callbackPriority!==o){if(f!=null&&On(f),o===1)a.tag===0?yg(Xu.bind(null,a)):pf(Xu.bind(null,a)),mg(function(){!(zt&6)&&so()}),f=null;else{switch(Nc(g)){case 1:f=xc;break;case 4:f=eo;break;case 16:f=Lt;break;case 536870912:f=jo;break;default:f=Lt}f=Zg(f,Zf.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function Zf(a,o){if(vd=-1,Dl=0,zt&6)throw Error(i(327));var f=a.callbackNode;if(Yu()&&a.callbackNode!==f)return null;var g=to(a,a===rr?Cr:0);if(g===0)return null;if(g&30||g&a.expiredLanes||o)o=Jf(a,g);else{o=g;var S=zt;zt|=2;var T=Ug();(rr!==a||Cr!==o)&&(Yo=null,Gu=Dn()+500,Ml(a,o));do try{IC();break}catch(W){$g(a,W)}while(!0);jh(),jl.current=T,zt=S,zn!==null?o=0:(rr=null,Cr=0,o=xr)}if(o!==0){if(o===2&&(S=no(a),S!==0&&(g=S,o=kl(a,S))),o===1)throw f=pd,Ml(a,0),ho(a,g),Sr(a,Dn()),f;if(o===6)ho(a,g);else{if(S=a.current.alternate,!(g&30)&&!Jh(S)&&(o=Jf(a,g),o===2&&(T=no(a),T!==0&&(g=T,o=kl(a,T))),o===1))throw f=pd,Ml(a,0),ho(a,g),Sr(a,Dn()),f;switch(a.finishedWork=S,a.finishedLanes=g,o){case 0:case 1:throw Error(i(345));case 2:Bs(a,Kr,Yo);break;case 3:if(ho(a,g),(g&130023424)===g&&(o=Gf+500-Dn(),10<o)){if(to(a,0)!==0)break;if(S=a.suspendedLanes,(S&g)!==g){Or(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=Wc(Bs.bind(null,a,Kr,Yo),o);break}Bs(a,Kr,Yo);break;case 4:if(ho(a,g),(g&4194240)===g)break;for(o=a.eventTimes,S=-1;0<g;){var M=31-ra(g);T=1<<M,M=o[M],M>S&&(S=M),g&=~T}if(g=S,g=Dn()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*_C(g/1960))-g,10<g){a.timeoutHandle=Wc(Bs.bind(null,a,Kr,Yo),g);break}Bs(a,Kr,Yo);break;case 5:Bs(a,Kr,Yo);break;default:throw Error(i(329))}}}return Sr(a,Dn()),a.callbackNode===f?Zf.bind(null,a):null}function kl(a,o){var f=Vs;return a.current.memoizedState.isDehydrated&&(Ml(a,o).flags|=256),a=Jf(a,o),a!==2&&(o=Kr,Kr=f,o!==null&&qh(o)),a}function qh(a){Kr===null?Kr=a:Kr.push.apply(Kr,a)}function Jh(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var g=0;g<f.length;g++){var S=f[g],T=S.getSnapshot;S=S.value;try{if(!Bi(T(),S))return!1}catch{return!1}}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ho(a,o){for(o&=~Yh,o&=~Hu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-ra(o),g=1<<f;a[f]=-1,o&=~g}}function Xu(a){if(zt&6)throw Error(i(327));Yu();var o=to(a,0);if(!(o&1))return Sr(a,Dn()),null;var f=Jf(a,o);if(a.tag!==0&&f===2){var g=no(a);g!==0&&(o=g,f=kl(a,g))}if(f===1)throw f=pd,Ml(a,0),ho(a,o),Sr(a,Dn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Bs(a,Kr,Yo),Sr(a,Dn()),null}function Qh(a,o){var f=zt;zt|=1;try{return a(o)}finally{zt=f,zt===0&&(Gu=Dn()+500,Ns&&so())}}function vo(a){Ci!==null&&Ci.tag===0&&!(zt&6)&&Yu();var o=zt;zt|=1;var f=yi.transition,g=Ut;try{if(yi.transition=null,Ut=1,a)return a()}finally{Ut=g,yi.transition=f,zt=o,!(zt&6)&&so()}}function qf(){ka=Uu.current,ut(Uu)}function Ml(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Xc(f)),zn!==null)for(f=zn.return;f!==null;){var g=f;switch(vf(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Ra();break;case 3:Iu(),ut(At),ut(Ir),hi();break;case 5:gt(g);break;case 4:Iu();break;case 13:ut(ft);break;case 19:ut(ft);break;case 10:Oh(g.type._context);break;case 22:case 23:qf()}f=f.return}if(rr=a,zn=a=zs(a.current,null),Cr=ka=o,xr=0,pd=null,Yh=Hu=Ol=0,Kr=Vs=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],g=f.interleaved,g!==null){f.interleaved=null;var S=g.next,T=f.pending;if(T!==null){var M=T.next;T.next=S,g.next=M}f.pending=g}Jr=null}return a}function $g(a,o){do{var f=zn;try{if(jh(),td.current=kf,lr){for(var g=Yn.memoizedState;g!==null;){var S=g.queue;S!==null&&(S.pending=null),g=g.next}lr=!1}if(Sl=0,Re=sr=Yn=null,Ct=!1,co=0,Hf.current=null,f===null||f.return===null){xr=1,pd=o,zn=null;break}e:{var T=a,M=f.return,W=f,Q=o;if(o=Cr,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var me=Q,Me=W,Pe=Me.tag;if(!(Me.mode&1)&&(Pe===0||Pe===11||Pe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var qe=Dg(M);if(qe!==null){qe.flags&=-257,zh(qe,M,W,T,o),qe.mode&1&&ld(T,me,o),o=qe,Q=me;var rt=o.updateQueue;if(rt===null){var lt=new Set;lt.add(Q),o.updateQueue=lt}else rt.add(Q);break e}else{if(!(o&1)){ld(T,me,o),md();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var dr=Dg(M);if(dr!==null){!(dr.flags&65536)&&(dr.flags|=256),zh(dr,M,W,T,o),mr(Ps(Q,W));break e}}T=Q=Ps(Q,W),xr!==4&&(xr=2),Vs===null?Vs=[T]:Vs.push(T),T=M;do{switch(T.tag){case 3:T.flags|=65536,o&=-o,T.lanes|=o;var ae=jg(T,Q,o);Sg(T,ae);break e;case 1:W=Q;var ee=T.type,le=T.stateNode;if(!(T.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(bi===null||!bi.has(le)))){T.flags|=65536,o&=-o,T.lanes|=o;var ze=Og(T,W,o);Sg(T,ze);break e}}T=T.return}while(T!==null)}Gg(f)}catch(ct){o=ct,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Ug(){var a=jl.current;return jl.current=kf,a===null?kf:a}function md(){(xr===0||xr===3||xr===2)&&(xr=4),rr===null||!(Ol&268435455)&&!(Hu&268435455)||ho(rr,Cr)}function Jf(a,o){var f=zt;zt|=2;var g=Ug();(rr!==a||Cr!==o)&&(Yo=null,Ml(a,o));do try{NC();break}catch(S){$g(a,S)}while(!0);if(jh(),zt=f,jl.current=g,zn!==null)throw Error(i(261));return rr=null,Cr=0,xr}function NC(){for(;zn!==null;)Hg(zn)}function IC(){for(;zn!==null&&!Zr();)Hg(zn)}function Hg(a){var o=Yg(a.alternate,a,ka);a.memoizedProps=a.pendingProps,o===null?Gg(a):zn=o,Hf.current=null}function Gg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=wC(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{xr=6,zn=null;return}}else if(f=EC(f,o,ka),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);xr===0&&(xr=5)}function Bs(a,o,f){var g=Ut,S=yi.transition;try{yi.transition=null,Ut=1,AC(a,o,f,g)}finally{yi.transition=S,Ut=g}return null}function AC(a,o,f,g){do Yu();while(Ci!==null);if(zt&6)throw Error(i(327));f=a.finishedWork;var S=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var T=f.lanes|f.childLanes;if(Tc(a,T),a===rr&&(zn=rr=null,Cr=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||Wu||(Wu=!0,Zg(Lt,function(){return Yu(),null})),T=(f.flags&15990)!==0,f.subtreeFlags&15990||T){T=yi.transition,yi.transition=null;var M=Ut;Ut=1;var W=zt;zt|=4,Hf.current=null,RC(a,f),Bg(f,a),hl(Sh),fu=!!xh,Sh=xh=null,a.current=f,TC(f),Ki(),zt=W,Ut=M,yi.transition=T}else a.current=f;if(Wu&&(Wu=!1,Ci=a,Xf=S),T=a.pendingLanes,T===0&&(bi=null),Sc(f.stateNode),Sr(a,Dn()),o!==null)for(g=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],g(S.value,{componentStack:S.stack,digest:S.digest});if(Wf)throw Wf=!1,a=Zh,Zh=null,a;return Xf&1&&a.tag!==0&&Yu(),T=a.pendingLanes,T&1?a===Yf?hd++:(hd=0,Yf=a):hd=0,so(),null}function Yu(){if(Ci!==null){var a=Nc(Xf),o=yi.transition,f=Ut;try{if(yi.transition=null,Ut=16>a?16:a,Ci===null)var g=!1;else{if(a=Ci,Ci=null,Xf=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,nt=a.current;nt!==null;){var T=nt,M=T.child;if(nt.flags&16){var W=T.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var me=W[Q];for(nt=me;nt!==null;){var Me=nt;switch(Me.tag){case 0:case 11:case 15:Fu(8,Me,T)}var Pe=Me.child;if(Pe!==null)Pe.return=Me,nt=Pe;else for(;nt!==null;){Me=nt;var De=Me.sibling,qe=Me.return;if(Fg(Me),Me===me){nt=null;break}if(De!==null){De.return=qe,nt=De;break}nt=qe}}}var rt=T.alternate;if(rt!==null){var lt=rt.child;if(lt!==null){rt.child=null;do{var dr=lt.sibling;lt.sibling=null,lt=dr}while(lt!==null)}}nt=T}}if(T.subtreeFlags&2064&&M!==null)M.return=T,nt=M;else e:for(;nt!==null;){if(T=nt,T.flags&2048)switch(T.tag){case 0:case 11:case 15:Fu(9,T,T.return)}var ae=T.sibling;if(ae!==null){ae.return=T.return,nt=ae;break e}nt=T.return}}var ee=a.current;for(nt=ee;nt!==null;){M=nt;var le=M.child;if(M.subtreeFlags&2064&&le!==null)le.return=M,nt=le;else e:for(M=ee;nt!==null;){if(W=nt,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:$f(9,W)}}catch(ct){ar(W,W.return,ct)}if(W===M){nt=null;break e}var ze=W.sibling;if(ze!==null){ze.return=W.return,nt=ze;break e}nt=W.return}}if(zt=S,so(),xa&&typeof xa.onPostCommitFiberRoot=="function")try{xa.onPostCommitFiberRoot(gs,a)}catch{}g=!0}return g}finally{Ut=f,yi.transition=o}}return!1}function Wg(a,o,f){o=Ps(f,o),o=jg(a,o,1),a=Ds(a,o,1),o=Or(),a!==null&&(bs(a,1,o),Sr(a,o))}function ar(a,o,f){if(a.tag===3)Wg(a,a,f);else for(;o!==null;){if(o.tag===3){Wg(o,a,f);break}else if(o.tag===1){var g=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(bi===null||!bi.has(g))){a=Ps(f,a),a=Og(o,a,1),o=Ds(o,a,1),a=Or(),o!==null&&(bs(o,1,a),Sr(o,a));break}}o=o.return}}function jC(a,o,f){var g=a.pingCache;g!==null&&g.delete(o),o=Or(),a.pingedLanes|=a.suspendedLanes&f,rr===a&&(Cr&f)===f&&(xr===4||xr===3&&(Cr&130023424)===Cr&&500>Dn()-Gf?Ml(a,0):Yh|=f),Sr(a,o)}function Xg(a,o){o===0&&(a.mode&1?(o=lu,lu<<=1,!(lu&130023424)&&(lu=4194304)):o=1);var f=Or();a=Go(a,o),a!==null&&(bs(a,o,f),Sr(a,f))}function Kh(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),Xg(a,f)}function OC(a,o){var f=0;switch(a.tag){case 13:var g=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:g=a.stateNode;break;default:throw Error(i(314))}g!==null&&g.delete(o),Xg(a,f)}var Yg;Yg=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||At.current)Oa=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Oa=!1,Xo(a,o,f);Oa=!!(a.flags&131072)}else Oa=!1,Bn&&o.flags&1048576&&As(o,bl,o.index);switch(o.lanes=0,o.tag){case 2:var g=o.type;dd(a,o),a=o.pendingProps;var S=Xa(o,Ir.current);or(o,f),S=El(null,o,g,a,S,f);var T=Ms();return o.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vr(g)?(T=!0,yl(o)):T=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Dh(o),S.updater=bf,o.stateNode=S,S._reactInternals=o,Mh(o,g,a,f),o=Lf(null,o,g,!0,T,f)):(o.tag=0,Bn&&T&&hf(o),ur(null,o,S,f),o=o.child),o;case 16:g=o.elementType;e:{switch(dd(a,o),a=o.pendingProps,S=g._init,g=S(g._payload),o.type=g,S=o.tag=DC(g),a=Ia(g,a),S){case 0:o=Dt(null,o,g,a,f);break e;case 1:o=ud(null,o,g,a,f);break e;case 11:o=Du(null,o,g,a,f);break e;case 14:o=Fs(null,o,g,Ia(g.type,a),f);break e}throw Error(i(306,g,""))}return o;case 0:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),Dt(a,o,g,S,f);case 1:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),ud(a,o,g,S,f);case 3:e:{if(SC(o),a===null)throw Error(i(387));g=o.pendingProps,T=o.memoizedState,S=T.element,xg(a,o),Jc(o,g,null,f);var M=o.memoizedState;if(g=M.element,T.isDehydrated)if(T={element:g,isDehydrated:!1,cache:M.cache,pendingSuspenseBoundaries:M.pendingSuspenseBoundaries,transitions:M.transitions},o.updateQueue.baseState=T,o.memoizedState=T,o.flags&256){S=Ps(Error(i(423)),o),o=Mg(a,o,g,f,S);break e}else if(g!==S){S=Ps(Error(i(424)),o),o=Mg(a,o,g,f,S);break e}else for(Za=Wa(o.stateNode.containerInfo.firstChild),Ya=o,Bn=!0,pi=null,f=Ng(o,null,g,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Su(),g===S){o=cr(a,o,f);break e}ur(a,o,g,f)}o=o.child}return o;case 5:return Cf(o),a===null&&mf(o),g=o.type,S=o.pendingProps,T=a!==null?a.memoizedProps:null,M=S.children,gl(g,S)?M=null:T!==null&&gl(g,T)&&(o.flags|=32),Il(a,o),ur(a,o,M,f),o.child;case 6:return a===null&&mf(o),null;case 13:return Lg(a,o,f);case 4:return Lh(o,o.stateNode.containerInfo),g=o.pendingProps,a===null?o.child=_u(o,null,g,f):ur(a,o,g,f),o.child;case 11:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),Du(a,o,g,S,f);case 7:return ur(a,o,o.pendingProps,f),o.child;case 8:return ur(a,o,o.pendingProps.children,f),o.child;case 12:return ur(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(g=o.type._context,S=o.pendingProps,T=o.memoizedProps,M=S.value,nn(Eu,g._currentValue),g._currentValue=M,T!==null)if(Bi(T.value,M)){if(T.children===S.children&&!At.current){o=cr(a,o,f);break e}}else for(T=o.child,T!==null&&(T.return=o);T!==null;){var W=T.dependencies;if(W!==null){M=T.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===g){if(T.tag===1){Q=kn(-1,f&-f),Q.tag=2;var me=T.updateQueue;if(me!==null){me=me.shared;var Me=me.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),me.pending=Q}}T.lanes|=f,Q=T.alternate,Q!==null&&(Q.lanes|=f),js(T.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(T.tag===10)M=T.type===o.type?null:T.child;else if(T.tag===18){if(M=T.return,M===null)throw Error(i(341));M.lanes|=f,W=M.alternate,W!==null&&(W.lanes|=f),js(M,f,o),M=T.sibling}else M=T.child;if(M!==null)M.return=T;else for(M=T;M!==null;){if(M===o){M=null;break}if(T=M.sibling,T!==null){T.return=M.return,M=T;break}M=M.return}T=M}ur(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,g=o.pendingProps.children,or(o,f),S=$e(S),g=g(S),o.flags|=1,ur(a,o,g,f),o.child;case 14:return g=o.type,S=Ia(g,o.pendingProps),S=Ia(g.type,S),Fs(a,o,g,S,f);case 15:return Mf(a,o,o.type,o.pendingProps,f);case 17:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),dd(a,o),o.tag=1,vr(g)?(a=!0,yl(o)):a=!1,or(o,f),wg(o,g,S),Mh(o,g,S,f),Lf(null,o,g,!0,a,f);case 19:return Uh(a,o,f);case 22:return Da(a,o,f)}throw Error(i(156,o.tag))};function Zg(a,o){return jn(a,o)}function qg(a,o,f,g){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(a,o,f,g){return new qg(a,o,f,g)}function ev(a){return a=a.prototype,!(!a||!a.isReactComponent)}function DC(a){if(typeof a=="function")return ev(a)?1:0;if(a!=null){if(a=a.$$typeof,a===de)return 11;if(a===Ce)return 14}return 2}function zs(a,o){var f=a.alternate;return f===null?(f=xi(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function Qf(a,o,f,g,S,T){var M=2;if(g=a,typeof a=="function")ev(a)&&(M=1);else if(typeof a=="string")M=5;else e:switch(a){case X:return Ll(f.children,S,T,o);case Z:M=8,S|=8;break;case ue:return a=xi(12,f,o,S|2),a.elementType=ue,a.lanes=T,a;case _e:return a=xi(13,f,o,S),a.elementType=_e,a.lanes=T,a;case Ee:return a=xi(19,f,o,S),a.elementType=Ee,a.lanes=T,a;case Le:return Kf(f,S,T,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ie:M=10;break e;case ge:M=9;break e;case de:M=11;break e;case Ce:M=14;break e;case je:M=16,g=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=xi(M,f,o,S),o.elementType=a,o.type=g,o.lanes=T,o}function Ll(a,o,f,g){return a=xi(7,a,g,o),a.lanes=f,a}function Kf(a,o,f,g){return a=xi(22,a,g,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function ep(a,o,f){return a=xi(6,a,null,o),a.lanes=f,a}function gd(a,o,f){return o=xi(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function yd(a,o,f,g,S){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=g,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function tv(a,o,f,g,S,T,M,W,Q){return a=new yd(a,o,f,W,Q),o===1?(o=1,T===!0&&(o|=8)):o=0,T=xi(3,null,null,o),a.current=T,T.stateNode=a,T.memoizedState={element:g,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dh(T),a}function Jg(a,o,f){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:g==null?null:""+g,children:a,containerInfo:o,implementation:f}}function nv(a){if(!a)return ci;a=a._reactInternals;e:{if(Ye(a)!==a||a.tag!==1)throw Error(i(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(a.tag===1){var f=a.type;if(vr(f))return _s(a,f,o)}return o}function rv(a,o,f,g,S,T,M,W,Q){return a=tv(f,g,!0,a,S,T,M,W,Q),a.context=nv(null),f=a.current,g=Or(),S=Zo(f),T=kn(g,S),T.callback=o??null,Ds(f,T,S),a.current.lanes=S,bs(a,S,g),Sr(a,g),a}function tp(a,o,f,g){var S=o.current,T=Or(),M=Zo(S);return f=nv(f),o.context===null?o.context=f:o.pendingContext=f,o=kn(T,M),o.payload={element:a},g=g===void 0?null:g,g!==null&&(o.callback=g),a=Ds(S,o,M),a!==null&&(Zn(a,S,M,T),yf(a,S,M)),M}function bd(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Qg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function av(a,o){Qg(a,o),(a=a.alternate)&&Qg(a,o)}function kC(){return null}var iv=typeof reportError=="function"?reportError:function(a){console.error(a)};function np(a){this._internalRoot=a}Cd.prototype.render=np.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));tp(a,o,null,null)},Cd.prototype.unmount=np.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){tp(null,a,null,null)}),o[zi]=null}};function Cd(a){this._internalRoot=a}Cd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Yt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Fn.length&&o!==0&&o<Fn[f].priority;f++);Fn.splice(f,0,a),f===0&&Fi(a)}};function $s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function rp(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Kg(){}function MC(a,o,f,g,S){if(S){if(typeof g=="function"){var T=g;g=function(){var me=bd(M);T.call(me)}}var M=rv(o,g,a,0,null,!1,!1,"",Kg);return a._reactRootContainer=M,a[zi]=M.current,ao(a.nodeType===8?a.parentNode:a),vo(),M}for(;S=a.lastChild;)a.removeChild(S);if(typeof g=="function"){var W=g;g=function(){var me=bd(Q);W.call(me)}}var Q=tv(a,0,!1,null,null,!1,!1,"",Kg);return a._reactRootContainer=Q,a[zi]=Q.current,ao(a.nodeType===8?a.parentNode:a),vo(function(){tp(o,Q,f,g)}),Q}function ap(a,o,f,g,S){var T=f._reactRootContainer;if(T){var M=T;if(typeof S=="function"){var W=S;S=function(){var Q=bd(M);W.call(Q)}}tp(o,M,a,S)}else M=MC(f,o,a,S,g);return bd(M)}uu=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Oo(o.pendingLanes);f!==0&&(_c(o,f|1),Sr(o,Dn()),!(zt&6)&&(Gu=Dn()+500,so()))}break;case 13:vo(function(){var g=Go(a,1);if(g!==null){var S=Or();Zn(g,a,1,S)}}),av(a,1)}},Cs=function(a){if(a.tag===13){var o=Go(a,134217728);if(o!==null){var f=Or();Zn(o,a,134217728,f)}av(a,134217728)}},Ic=function(a){if(a.tag===13){var o=Zo(a),f=Go(a,o);if(f!==null){var g=Or();Zn(f,a,o,g)}av(a,o)}},Yt=function(){return Ut},cu=function(a,o){var f=Ut;try{return Ut=a,o()}finally{Ut=f}},hn=function(a,o,f){switch(o){case"input":if(sn(a,f),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<f.length;o++){var g=f[o];if(g!==a&&g.form===a.form){var S=ff(g);if(!S)throw Error(i(90));ot(g),sn(g,S)}}}break;case"textarea":Hn(a,f);break;case"select":o=f.value,o!=null&&xn(a,!!f.multiple,o,!1)}},vs=Qh,il=vo;var LC={usingClientEntryPoint:!1,Events:[io,xu,ff,ki,ai,Qh]},xd={findFiberByHostInstance:Uo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ey={bundleType:xd.bundleType,version:xd.version,rendererPackageName:xd.rendererPackageName,rendererConfig:xd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=vt(a),a===null?null:a.stateNode},findFiberByHostInstance:xd.findFiberByHostInstance||kC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ip=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ip.isDisabled&&ip.supportsFiber)try{gs=ip.inject(ey),xa=ip}catch{}}return _i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LC,_i.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$s(o))throw Error(i(200));return Jg(a,o,null,f)},_i.createRoot=function(a,o){if(!$s(a))throw Error(i(299));var f=!1,g="",S=iv;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=tv(a,1,!1,null,null,f,!1,g,S),a[zi]=o.current,ao(a.nodeType===8?a.parentNode:a),new np(o)},_i.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=vt(o),a=a===null?null:a.stateNode,a},_i.flushSync=function(a){return vo(a)},_i.hydrate=function(a,o,f){if(!rp(o))throw Error(i(200));return ap(null,a,o,!0,f)},_i.hydrateRoot=function(a,o,f){if(!$s(a))throw Error(i(405));var g=f!=null&&f.hydratedSources||null,S=!1,T="",M=iv;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(T=f.identifierPrefix),f.onRecoverableError!==void 0&&(M=f.onRecoverableError)),o=rv(o,null,a,1,f??null,S,!1,T,M),a[zi]=o.current,ao(a),g)for(a=0;a<g.length;a++)f=g[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new Cd(o)},_i.render=function(a,o,f){if(!rp(o))throw Error(i(200));return ap(null,a,o,!1,f)},_i.unmountComponentAtNode=function(a){if(!rp(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){ap(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},_i.unstable_batchedUpdates=Qh,_i.unstable_renderSubtreeIntoContainer=function(a,o,f,g){if(!rp(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return ap(a,o,f,!1,g)},_i.version="18.2.0-next-9e3b772b8-20220608",_i}var Ni={},KN;function Tz(){if(KN)return Ni;KN=1;var t={};/**
|
|
97
97
|
* @license React
|
|
98
98
|
* react-dom.development.js
|
|
99
99
|
*
|
|
@@ -107,9 +107,9 @@ Error generating stack: `+T.message+`
|
|
|
107
107
|
`),V=N.length-1,H=O.length-1;V>=1&&H>=0&&N[V]!==O[H];)H--;for(;V>=1&&H>=0;V--,H--)if(N[V]!==O[H]){if(V!==1||H!==1)do if(V--,H--,H<0||N[V]!==O[H]){var te=`
|
|
108
108
|
`+N[V].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),typeof e=="function"&&no.set(e,te),te}while(V>=1&&H>=0);break}}}finally{ys=!1,Oo.current=b,lu(),Error.prepareStackTrace=p}var K=e?e.displayName||e.name:"",he=K?oi(K):"";return typeof e=="function"&&no.set(e,he),he}function bs(e,n,s){return cl(e,!0)}function Tc(e,n,s){return cl(e,!1)}function _c(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function Ut(e,n,s){if(e==null)return"";if(typeof e=="function")return cl(e,_c(e));if(typeof e=="string")return oi(e);switch(e){case Bt:return oi("Suspense");case Ht:return oi("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Ye:return Tc(e.render);case kt:return Ut(e.type,n,s);case vt:{var c=e,p=c._payload,b=c._init;try{return Ut(b(p),n,s)}catch{}}}return""}function Nc(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case I:return oi(e.type);case ue:return oi("Lazy");case z:return oi("Suspense");case de:return oi("SuspenseList");case C:case w:case Z:return Tc(e.type);case U:return Tc(e.type.render);case x:return bs(e.type);default:return""}}function uu(e){try{var n="",s=e;do n+=Nc(s),s=s.return;while(s);return n}catch(c){return`
|
|
109
109
|
Error generating stack: `+c.message+`
|
|
110
|
-
`+c.stack}}function Cs(e,n,s){var c=e.displayName;if(c)return c;var p=n.displayName||n.name||"";return p!==""?s+"("+p+")":s}function Ic(e){return e.displayName||"Context"}function
|
|
110
|
+
`+c.stack}}function Cs(e,n,s){var c=e.displayName;if(c)return c;var p=n.displayName||n.name||"";return p!==""?s+"("+p+")":s}function Ic(e){return e.displayName||"Context"}function Yt(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ha:return"Fragment";case ba:return"Portal";case J:return"Profiler";case Ao:return"StrictMode";case Bt:return"Suspense";case Ht:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case He:var n=e;return Ic(n)+".Consumer";case ke:var s=e;return Ic(s._context)+".Provider";case Ye:return Cs(e,e.render,"ForwardRef");case kt:var c=e.displayName||null;return c!==null?c:Yt(e.type)||"Memo";case vt:{var p=e,b=p._payload,E=p._init;try{return Yt(E(b))}catch{return null}}}return null}function cu(e,n,s){var c=n.displayName||n.name||"";return e.displayName||(c!==""?s+"("+c+")":s)}function dl(e){return e.displayName||"Context"}function It(e){var n=e.tag,s=e.type;switch(n){case je:return"Cache";case P:var c=s;return dl(c)+".Consumer";case F:var p=s;return dl(p._context)+".Provider";case ge:return"DehydratedFragment";case U:return cu(s,s.render,"ForwardRef");case A:return"Fragment";case I:return s;case j:return"Portal";case R:return"Root";case _:return"Text";case ue:return Yt(s);case L:return s===Ao?"StrictMode":"Mode";case Ee:return"Offscreen";case B:return"Profiler";case _e:return"Scope";case z:return"Suspense";case de:return"SuspenseList";case Le:return"TracingMarker";case x:case C:case ie:case w:case X:case Z:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var Pi=l.ReactDebugCurrentFrame,Wn=null,Sa=!1;function si(){{if(Wn===null)return null;var e=Wn._debugOwner;if(e!==null&&typeof e<"u")return It(e)}return null}function xs(){return Wn===null?"":uu(Wn)}function Fn(){Pi.getCurrentStack=null,Wn=null,Sa=!1}function Xn(e){Pi.getCurrentStack=e===null?null:xs,Wn=e,Sa=!1}function Ac(){return Wn}function Lr(e){Sa=e}function Ea(e){return""+e}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Hn(e),e;default:return""}}var du={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,n){du[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||h("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||h("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function pl(e){var n=e.type,s=e.nodeName;return s&&s.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ss(e){return e._valueTracker}function li(e){e._valueTracker=null}function Do(e){var n="";return e&&(pl(e)?n=e.checked?"true":"false":n=e.value),n}function fu(e){var n=pl(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);Hn(e[n]);var c=""+e[n];if(!(e.hasOwnProperty(n)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var p=s.get,b=s.set;Object.defineProperty(e,n,{configurable:!0,get:function(){return p.call(this)},set:function(N){Hn(N),c=""+N,b.call(this,N)}}),Object.defineProperty(e,n,{enumerable:s.enumerable});var E={getValue:function(){return c},setValue:function(N){Hn(N),c=""+N},stopTracking:function(){li(e),delete e[n]}};return E}}function ko(e){Ss(e)||(e._valueTracker=fu(e))}function pu(e){if(!e)return!1;var n=Ss(e);if(!n)return!0;var s=n.getValue(),c=Do(e);return c!==s?(n.setValue(c),!0):!1}function ro(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Mo=!1,hu=!1,jc=!1,Vi=!1;function vu(e){var n=e.type==="checkbox"||e.type==="radio";return n?e.checked!=null:e.value!=null}function D(e,n){var s=e,c=n.checked,p=Lt({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked});return p}function q(e,n){fl("input",n),n.checked!==void 0&&n.defaultChecked!==void 0&&!hu&&(h("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",si()||"A component",n.type),hu=!0),n.value!==void 0&&n.defaultValue!==void 0&&!Mo&&(h("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",si()||"A component",n.type),Mo=!0);var s=e,c=n.defaultValue==null?"":n.defaultValue;s._wrapperState={initialChecked:n.checked!=null?n.checked:n.defaultChecked,initialValue:Fi(n.value!=null?n.value:c),controlled:vu(n)}}function pe(e,n){var s=e,c=n.checked;c!=null&&Io(s,"checked",c,!1)}function ye(e,n){var s=e;{var c=vu(n);!s._wrapperState.controlled&&c&&!Vi&&(h("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Vi=!0),s._wrapperState.controlled&&!c&&!jc&&(h("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),jc=!0)}pe(e,n);var p=Fi(n.value),b=n.type;if(p!=null)b==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=Ea(p)):s.value!==Ea(p)&&(s.value=Ea(p));else if(b==="submit"||b==="reset"){s.removeAttribute("value");return}n.hasOwnProperty("value")?Tt(s,n.type,p):n.hasOwnProperty("defaultValue")&&Tt(s,n.type,Fi(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(s.defaultChecked=!!n.defaultChecked)}function Be(e,n,s){var c=e;if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var p=n.type,b=p==="submit"||p==="reset";if(b&&(n.value===void 0||n.value===null))return;var E=Ea(c._wrapperState.initialValue);s||E!==c.value&&(c.value=E),c.defaultValue=E}var N=c.name;N!==""&&(c.name=""),c.defaultChecked=!c.defaultChecked,c.defaultChecked=!!c._wrapperState.initialChecked,N!==""&&(c.name=N)}function st(e,n){var s=e;ye(s,n),Qe(s,n)}function Qe(e,n){var s=n.name;if(n.type==="radio"&&s!=null){for(var c=e;c.parentNode;)c=c.parentNode;In(s,"name");for(var p=c.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),b=0;b<p.length;b++){var E=p[b];if(!(E===e||E.form!==e.form)){var N=gy(E);if(!N)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");pu(E),ye(E,N)}}}}function Tt(e,n,s){(n!=="number"||ro(e.ownerDocument)!==e)&&(s==null?e.defaultValue=Ea(e._wrapperState.initialValue):e.defaultValue!==Ea(s)&&(e.defaultValue=Ea(s)))}var Pt=!1,fn=!1,vn=!1;function mn(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?r.Children.forEach(n.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||fn||(fn=!0,h("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):n.dangerouslySetInnerHTML!=null&&(vn||(vn=!0,h("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),n.selected!=null&&!Pt&&(h("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0)}function gn(e,n){n.value!=null&&e.setAttribute("value",Ea(Fi(n.value)))}var Vn=Array.isArray;function Zt(e){return Vn(e)}var Es;Es=!1;function mu(){var e=si();return e?`
|
|
111
111
|
|
|
112
|
-
Check the render method of \``+e+"`.":""}var Oc=["value","defaultValue"];function Dc(e){{fl("select",e);for(var n=0;n<Oc.length;n++){var s=Oc[n];if(e[s]!=null){var c=qt(e[s]);e.multiple&&!c?h("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,mu()):!e.multiple&&c&&h("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,mu())}}}}function Lo(e,n,s,c){var p=e.options;if(n){for(var b=s,E={},N=0;N<b.length;N++)E["$"+b[N]]=!0;for(var O=0;O<p.length;O++){var V=E.hasOwnProperty("$"+p[O].value);p[O].selected!==V&&(p[O].selected=V),V&&c&&(p[O].defaultSelected=!0)}}else{for(var H=Ea(Fi(s)),te=null,K=0;K<p.length;K++){if(p[K].value===H){p[K].selected=!0,c&&(p[K].defaultSelected=!0);return}te===null&&!p[K].disabled&&(te=p[K])}te!==null&&(te.selected=!0)}}function kc(e,n){return Lt({},n,{value:void 0})}function Mc(e,n){var s=e;Dc(n),s._wrapperState={wasMultiple:!!n.multiple},n.value!==void 0&&n.defaultValue!==void 0&&!Es&&(h("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Es=!0)}function oh(e,n){var s=e;s.multiple=!!n.multiple;var c=n.value;c!=null?Lo(s,!!n.multiple,c,!1):n.defaultValue!=null&&Lo(s,!!n.multiple,n.defaultValue,!0)}function rC(e,n){var s=e,c=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!n.multiple;var p=n.value;p!=null?Lo(s,!!n.multiple,p,!1):c!==!!n.multiple&&(n.defaultValue!=null?Lo(s,!!n.multiple,n.defaultValue,!0):Lo(s,!!n.multiple,n.multiple?[]:"",!1))}function $m(e,n){var s=e,c=n.value;c!=null&&Lo(s,!!n.multiple,c,!1)}var Um=!1;function sh(e,n){var s=e;if(n.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var c=Lt({},n,{value:void 0,defaultValue:void 0,children:Ea(s._wrapperState.initialValue)});return c}function Hm(e,n){var s=e;fl("textarea",n),n.value!==void 0&&n.defaultValue!==void 0&&!Um&&(h("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",si()||"A component"),Um=!0);var c=n.value;if(c==null){var p=n.children,b=n.defaultValue;if(p!=null){h("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(b!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}b=p}}b==null&&(b=""),c=b}s._wrapperState={initialValue:Fi(c)}}function Gm(e,n){var s=e,c=Fi(n.value),p=Fi(n.defaultValue);if(c!=null){var b=Ea(c);b!==s.value&&(s.value=b),n.defaultValue==null&&s.defaultValue!==b&&(s.defaultValue=b)}p!=null&&(s.defaultValue=Ea(p))}function tf(e,n){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function aC(e,n){Gm(e,n)}var Po="http://www.w3.org/1999/xhtml",iC="http://www.w3.org/1998/Math/MathML",nf="http://www.w3.org/2000/svg";function lh(e){switch(e){case"svg":return nf;case"math":return iC;default:return Po}}function uh(e,n){return e==null||e===Po?lh(n):e===nf&&n==="foreignObject"?Po:e}var oC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,p)})}:e},rf,Wm=oC(function(e,n){if(e.namespaceURI===nf&&!("innerHTML"in e)){rf=rf||document.createElement("div"),rf.innerHTML="<svg>"+n.valueOf().toString()+"</svg>";for(var s=rf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=n}),wa=1,Fo=3,Kn=8,Ga=9,ch=11,Lc=function(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Fo){s.nodeValue=n;return}}e.textContent=n},Xm={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},gu={animationIterationCount:!0,aspectRatio:!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};function Ym(e,n){return e+n.charAt(0).toUpperCase()+n.substring(1)}var Zm=["Webkit","ms","Moz","O"];Object.keys(gu).forEach(function(e){Zm.forEach(function(n){gu[Ym(n,e)]=gu[e]})});function ws(e,n,s){var c=n==null||typeof n=="boolean"||n==="";return c?"":!s&&typeof n=="number"&&n!==0&&!(gu.hasOwnProperty(e)&&gu[e])?n+"px":(Qn(n,e),(""+n).trim())}var sC=/([A-Z])/g,lC=/^ms-/;function uC(e){return e.replace(sC,"-$1").toLowerCase().replace(lC,"-ms-")}var dh=function(){};{var qm=/^(?:webkit|moz|o)[A-Z]/,Pc=/^-ms-/,Fc=/-(.)/g,Jm=/;\s*$/,Vo={},fh={},ph=!1,af=!1,hh=function(e){return e.replace(Fc,function(n,s){return s.toUpperCase()})},Qm=function(e){Vo.hasOwnProperty(e)&&Vo[e]||(Vo[e]=!0,h("Unsupported style property %s. Did you mean %s?",e,hh(e.replace(Pc,"ms-"))))},Km=function(e){Vo.hasOwnProperty(e)&&Vo[e]||(Vo[e]=!0,h("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},eg=function(e,n){fh.hasOwnProperty(n)&&fh[n]||(fh[n]=!0,h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Jm,"")))},cC=function(e,n){ph||(ph=!0,h("`NaN` is an invalid value for the `%s` css style property.",e))},dC=function(e,n){af||(af=!0,h("`Infinity` is an invalid value for the `%s` css style property.",e))};dh=function(e,n){e.indexOf("-")>-1?Qm(e):qm.test(e)?Km(e):Jm.test(n)&&eg(e,n),typeof n=="number"&&(isNaN(n)?cC(e,n):isFinite(n)||dC(e,n))}}var fC=dh;function pC(e){{var n="",s="";for(var c in e)if(e.hasOwnProperty(c)){var p=e[c];if(p!=null){var b=c.indexOf("--")===0;n+=s+(b?c:uC(c))+":",n+=ws(c,p,b),s=";"}}return n||null}}function tg(e,n){var s=e.style;for(var c in n)if(n.hasOwnProperty(c)){var p=c.indexOf("--")===0;p||fC(c,n[c]);var b=ws(c,n[c],p);c==="float"&&(c="cssFloat"),p?s.setProperty(c,b):s[c]=b}}function Bi(e){return e==null||typeof e=="boolean"||e===""}function yu(e){var n={};for(var s in e)for(var c=Xm[s]||[s],p=0;p<c.length;p++)n[c[p]]=s;return n}function ng(e,n){{if(!n)return;var s=yu(e),c=yu(n),p={};for(var b in s){var E=s[b],N=c[b];if(N&&E!==N){var O=E+","+N;if(p[O])continue;p[O]=!0,h("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Bi(e[E])?"Removing":"Updating",E,N)}}}}var rg={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},ag=Lt({menuitem:!0},rg),ig="__html";function Vc(e,n){if(n){if(ag[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof n.dangerouslySetInnerHTML!="object"||!(ig in n.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&h("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),n.style!=null&&typeof n.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function hl(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";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}}var of={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vl={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Rs={},Bc=new RegExp("^(aria)-["+ht+"]*$"),vh=new RegExp("^(aria)[A-Z]["+ht+"]*$");function og(e,n){{if(dt.call(Rs,n)&&Rs[n])return!0;if(vh.test(n)){var s="aria-"+n.slice(4).toLowerCase(),c=vl.hasOwnProperty(s)?s:null;if(c==null)return h("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Rs[n]=!0,!0;if(n!==c)return h("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,c),Rs[n]=!0,!0}if(Bc.test(n)){var p=n.toLowerCase(),b=vl.hasOwnProperty(p)?p:null;if(b==null)return Rs[n]=!0,!1;if(n!==b)return h("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,b),Rs[n]=!0,!0}}return!0}function sf(e,n){{var s=[];for(var c in n){var p=og(e,c);p||s.push(c)}var b=s.map(function(E){return"`"+E+"`"}).join(", ");s.length===1?h("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,e):s.length>1&&h("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,e)}}function bu(e,n){hl(e,n)||sf(e,n)}var lf=!1;function sg(e,n){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;n!=null&&n.value===null&&!lf&&(lf=!0,e==="select"&&n.multiple?h("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):h("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var zc=function(){};{var qr={},mh=/^on./,lg=/^on[^A-Z]/,ug=new RegExp("^(aria)-["+ht+"]*$"),cg=new RegExp("^(aria)[A-Z]["+ht+"]*$");zc=function(e,n,s,c){if(dt.call(qr,n)&&qr[n])return!0;var p=n.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return h("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),qr[n]=!0,!0;if(c!=null){var b=c.registrationNameDependencies,E=c.possibleRegistrationNames;if(b.hasOwnProperty(n))return!0;var N=E.hasOwnProperty(p)?E[p]:null;if(N!=null)return h("Invalid event handler property `%s`. Did you mean `%s`?",n,N),qr[n]=!0,!0;if(mh.test(n))return h("Unknown event handler property `%s`. It will be ignored.",n),qr[n]=!0,!0}else if(mh.test(n))return lg.test(n)&&h("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),qr[n]=!0,!0;if(ug.test(n)||cg.test(n))return!0;if(p==="innerhtml")return h("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),qr[n]=!0,!0;if(p==="aria")return h("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),qr[n]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return h("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),qr[n]=!0,!0;if(typeof s=="number"&&isNaN(s))return h("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),qr[n]=!0,!0;var O=Nr(n),V=O!==null&&O.type===_r;if(of.hasOwnProperty(p)){var H=of[p];if(H!==n)return h("Invalid DOM property `%s`. Did you mean `%s`?",n,H),qr[n]=!0,!0}else if(!V&&n!==p)return h("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,p),qr[n]=!0,!0;return typeof s=="boolean"&&Yr(n,s,O,!1)?(s?h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,n,n,s,n):h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,n,n,s,n,n,n),qr[n]=!0,!0):V?!0:Yr(n,s,O,!1)?(qr[n]=!0,!1):((s==="false"||s==="true")&&O!==null&&O.type===un&&(h("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,n,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,s),qr[n]=!0),!0)}}var dg=function(e,n,s){{var c=[];for(var p in n){var b=zc(e,p,n[p],s);b||c.push(p)}var E=c.map(function(N){return"`"+N+"`"}).join(", ");c.length===1?h("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e):c.length>1&&h("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e)}};function Ts(e,n,s){hl(e,n)||dg(e,n,s)}var uf=1,$c=2,Uc=4,hC=uf|$c|Uc,Bo=null;function vC(e){Bo!==null&&h("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Bo=e}function fg(){Bo===null&&h("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Bo=null}function pg(e){return e===Bo}function _n(e){var n=e.target||e.srcElement||window;return n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===Fo?n.parentNode:n}var Hc=null,zo=null,ao=null;function gh(e){var n=Ju(e);if(n){if(typeof Hc!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=n.stateNode;if(s){var c=gy(s);Hc(n.stateNode,n.type,c)}}}function yh(e){Hc=e}function Cu(e){zo?ao?ao.push(e):ao=[e]:zo=e}function cf(){return zo!==null||ao!==null}function ml(){if(zo){var e=zo,n=ao;if(zo=null,ao=null,gh(e),n)for(var s=0;s<n.length;s++)gh(n[s])}}var bh=function(e,n){return e(n)},hg=function(){},Ch=!1;function vg(){var e=cf();e&&(hg(),ml())}function Gc(e,n,s){if(Ch)return e(n,s);Ch=!0;try{return bh(e,n,s)}finally{Ch=!1,vg()}}function df(e,n,s){bh=e,hg=s}function xh(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Sh(e,n,s){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&xh(n));default:return!1}}function gl(e,n){var s=e.stateNode;if(s===null)return null;var c=gy(s);if(c===null)return null;var p=c[n];if(Sh(n,e.type,c))return null;if(p&&typeof p!="function")throw new Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var Wc=!1;if(Rt)try{var Xc={};Object.defineProperty(Xc,"passive",{get:function(){Wc=!0}}),window.addEventListener("test",Xc,Xc),window.removeEventListener("test",Xc,Xc)}catch{Wc=!1}function Eh(e,n,s,c,p,b,E,N,O){var V=Array.prototype.slice.call(arguments,3);try{n.apply(s,V)}catch(H){this.onError(H)}}var mg=Eh;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var wh=document.createElement("react");mg=function(n,s,c,p,b,E,N,O,V){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var H=document.createEvent("Event"),te=!1,K=!0,he=window.event,ve=Object.getOwnPropertyDescriptor(window,"event");function xe(){wh.removeEventListener(Se,yt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var Ke=Array.prototype.slice.call(arguments,3);function yt(){te=!0,xe(),s.apply(c,Ke),K=!1}var pt,Wt=!1,$t=!1;function oe(se){if(pt=se.error,Wt=!0,pt===null&&se.colno===0&&se.lineno===0&&($t=!0),se.defaultPrevented&&pt!=null&&typeof pt=="object")try{pt._suppressLogging=!0}catch{}}var Se="react-"+(n||"invokeguardedcallback");if(window.addEventListener("error",oe),wh.addEventListener(Se,yt,!1),H.initEvent(Se,!1,!1),wh.dispatchEvent(H),ve&&Object.defineProperty(window,"event",ve),te&&K&&(Wt?$t&&(pt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):pt=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.`),this.onError(pt)),window.removeEventListener("error",oe),!te)return xe(),Eh.apply(this,arguments)}}var Rh=mg,Wa=!1,Yc=null,$o=!1,ui=null,Zc={onError:function(e){Wa=!0,Yc=e}};function zi(e,n,s,c,p,b,E,N,O){Wa=!1,Yc=null,Rh.apply(Zc,arguments)}function Th(e,n,s,c,p,b,E,N,O){if(zi.apply(this,arguments),Wa){var V=Uo();$o||($o=!0,ui=V)}}function mC(){if($o){var e=ui;throw $o=!1,ui=null,e}}function gC(){return Wa}function Uo(){if(Wa){var e=Yc;return Wa=!1,Yc=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function io(e){return e._reactInternals}function xu(e){return e._reactInternals!==void 0}function ff(e,n){e._reactInternals=n}var mt=0,$i=1,Nn=2,ut=4,nn=16,ci=32,Ir=64,At=128,aa=256,Xa=512,vr=1024,Ra=2048,oo=4096,_s=8192,yl=16384,gg=Ra|ut|Ir|Xa|vr|yl,Ho=32767,Ns=32768,Pr=65536,pf=131072,yg=1048576,so=2097152,di=4194304,Is=8388608,fi=16777216,bl=33554432,Ta=ut|vr|0,_a=Nn|ut|nn|ci|Xa|oo|_s,Ui=ut|Ir|Xa|_s,Na=Ra|nn,Fr=di|Is|so,Cl=l.ReactCurrentOwner;function As(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{var c=n;do n=c,(n.flags&(Nn|oo))!==mt&&(s=n.return),c=n.return;while(c)}return n.tag===R?s:null}function hf(e){if(e.tag===z){var n=e.memoizedState;if(n===null){var s=e.alternate;s!==null&&(n=s.memoizedState)}if(n!==null)return n.dehydrated}return null}function vf(e){return e.tag===R?e.stateNode.containerInfo:null}function Ya(e){return As(e)===e}function Za(e){{var n=Cl.current;if(n!==null&&n.tag===x){var s=n,c=s.stateNode;c._warnedAboutRefsInRender||h("%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.",It(s)||"A component"),c._warnedAboutRefsInRender=!0}}var p=io(e);return p?As(p)===p:!1}function Bn(e){if(As(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function pi(e){var n=e.alternate;if(!n){var s=As(e);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==e?null:e}for(var c=e,p=n;;){var b=c.return;if(b===null)break;var E=b.alternate;if(E===null){var N=b.return;if(N!==null){c=p=N;continue}break}if(b.child===E.child){for(var O=b.child;O;){if(O===c)return Bn(b),e;if(O===p)return Bn(b),n;O=O.sibling}throw new Error("Unable to find node on an unmounted component.")}if(c.return!==p.return)c=b,p=E;else{for(var V=!1,H=b.child;H;){if(H===c){V=!0,c=b,p=E;break}if(H===p){V=!0,p=b,c=E;break}H=H.sibling}if(!V){for(H=E.child;H;){if(H===c){V=!0,c=E,p=b;break}if(H===p){V=!0,p=E,c=b;break}H=H.sibling}if(!V)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(c.alternate!==p)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(c.tag!==R)throw new Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?e:n}function _h(e){var n=pi(e);return n!==null?Nh(n):null}function Nh(e){if(e.tag===I||e.tag===_)return e;for(var n=e.child;n!==null;){var s=Nh(n);if(s!==null)return s;n=n.sibling}return null}function Ih(e){var n=pi(e);return n!==null?mf(n):null}function mf(e){if(e.tag===I||e.tag===_)return e;for(var n=e.child;n!==null;){if(n.tag!==j){var s=mf(n);if(s!==null)return s}n=n.sibling}return null}var Ah=i.unstable_scheduleCallback,gf=i.unstable_cancelCallback,bg=i.unstable_shouldYield,Su=i.unstable_requestPaint,mr=i.unstable_now,yC=i.unstable_getCurrentPriorityLevel,Ia=i.unstable_ImmediatePriority,Eu=i.unstable_UserBlockingPriority,lo=i.unstable_NormalPriority,wu=i.unstable_LowPriority,qc=i.unstable_IdlePriority,jh=i.unstable_yieldValue,Oh=i.unstable_setDisableYieldValue,js=null,or=null,$e=null,Jr=!1,qa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Cg(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return h("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Oe&&(e=Lt({},e,{getLaneLabelMap:yf,injectProfilingHooks:Ds})),js=n.inject(e),or=n}catch(s){h("React instrumentation encountered an error: %s.",s)}return!!n.checkDCE}function Go(e,n){if(or&&typeof or.onScheduleFiberRoot=="function")try{or.onScheduleFiberRoot(js,e,n)}catch(s){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",s))}}function Os(e,n){if(or&&typeof or.onCommitFiberRoot=="function")try{var s=(e.current.flags&At)===At;if(ce){var c;switch(n){case cr:c=Ia;break;case Xo:c=Eu;break;case fo:c=lo;break;case ku:c=qc;break;default:c=lo;break}or.onCommitFiberRoot(js,e,c,s)}}catch(p){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",p))}}function Dh(e){if(or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(js,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function xg(e){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(js,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function kn(e){if(typeof jh=="function"&&(Oh(e),d(e)),or&&typeof or.setStrictMode=="function")try{or.setStrictMode(js,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function Ds(e){$e=e}function yf(){{for(var e=new Map,n=1,s=0;s<sr;s++){var c=Ig(n);e.set(n,c),n*=2}return e}}function Sg(e){$e!==null&&typeof $e.markCommitStarted=="function"&&$e.markCommitStarted(e)}function Jc(){$e!==null&&typeof $e.markCommitStopped=="function"&&$e.markCommitStopped()}function Ru(e){$e!==null&&typeof $e.markComponentRenderStarted=="function"&&$e.markComponentRenderStarted(e)}function xl(){$e!==null&&typeof $e.markComponentRenderStopped=="function"&&$e.markComponentRenderStopped()}function kh(e){$e!==null&&typeof $e.markComponentPassiveEffectMountStarted=="function"&&$e.markComponentPassiveEffectMountStarted(e)}function bf(){$e!==null&&typeof $e.markComponentPassiveEffectMountStopped=="function"&&$e.markComponentPassiveEffectMountStopped()}function Eg(e){$e!==null&&typeof $e.markComponentPassiveEffectUnmountStarted=="function"&&$e.markComponentPassiveEffectUnmountStarted(e)}function wg(){$e!==null&&typeof $e.markComponentPassiveEffectUnmountStopped=="function"&&$e.markComponentPassiveEffectUnmountStopped()}function Rg(e){$e!==null&&typeof $e.markComponentLayoutEffectMountStarted=="function"&&$e.markComponentLayoutEffectMountStarted(e)}function Mh(){$e!==null&&typeof $e.markComponentLayoutEffectMountStopped=="function"&&$e.markComponentLayoutEffectMountStopped()}function Tu(e){$e!==null&&typeof $e.markComponentLayoutEffectUnmountStarted=="function"&&$e.markComponentLayoutEffectUnmountStarted(e)}function Qc(){$e!==null&&typeof $e.markComponentLayoutEffectUnmountStopped=="function"&&$e.markComponentLayoutEffectUnmountStopped()}function Tg(e,n,s){$e!==null&&typeof $e.markComponentErrored=="function"&&$e.markComponentErrored(e,n,s)}function _g(e,n,s){$e!==null&&typeof $e.markComponentSuspended=="function"&&$e.markComponentSuspended(e,n,s)}function _u(e){$e!==null&&typeof $e.markLayoutEffectsStarted=="function"&&$e.markLayoutEffectsStarted(e)}function Ng(){$e!==null&&typeof $e.markLayoutEffectsStopped=="function"&&$e.markLayoutEffectsStopped()}function Kc(e){$e!==null&&typeof $e.markPassiveEffectsStarted=="function"&&$e.markPassiveEffectsStarted(e)}function uo(){$e!==null&&typeof $e.markPassiveEffectsStopped=="function"&&$e.markPassiveEffectsStopped()}function Nu(e){$e!==null&&typeof $e.markRenderStarted=="function"&&$e.markRenderStarted(e)}function ed(){$e!==null&&typeof $e.markRenderYielded=="function"&&$e.markRenderYielded()}function ks(){$e!==null&&typeof $e.markRenderStopped=="function"&&$e.markRenderStopped()}function Lh(e){$e!==null&&typeof $e.markRenderScheduled=="function"&&$e.markRenderScheduled(e)}function Iu(e,n){$e!==null&&typeof $e.markForceUpdateScheduled=="function"&&$e.markForceUpdateScheduled(e,n)}function Cf(e,n){$e!==null&&typeof $e.markStateUpdateScheduled=="function"&&$e.markStateUpdateScheduled(e,n)}var gt=0,ft=1,Kt=2,er=8,hi=16,td=Math.clz32?Math.clz32:Yn,Ph=Math.log,Sl=Math.LN2;function Yn(e){var n=e>>>0;return n===0?32:31-(Ph(n)/Sl|0)|0}var sr=31,Re=0,lr=0,Ct=1,co=2,Wo=4,tr=8,mi=16,El=32,Ms=4194240,Aa=64,ja=128,wl=256,nd=512,rd=1024,xf=2048,Sf=4096,Ef=8192,wf=16384,Rf=32768,Tf=65536,_f=131072,Nf=262144,Rl=524288,If=1048576,Au=2097152,Tl=130023424,_l=4194304,ad=8388608,Af=16777216,jf=33554432,Of=67108864,Fh=_l,Nl=134217728,Vh=268435455,ju=268435456,Ls=536870912,Ja=1073741824;function Ig(e){{if(e&Ct)return"Sync";if(e&co)return"InputContinuousHydration";if(e&Wo)return"InputContinuous";if(e&tr)return"DefaultHydration";if(e&mi)return"Default";if(e&El)return"TransitionHydration";if(e&Ms)return"Transition";if(e&Tl)return"Retry";if(e&Nl)return"SelectiveHydration";if(e&ju)return"IdleHydration";if(e&Ls)return"Idle";if(e&Ja)return"Offscreen"}}var Mn=-1,Df=Aa,id=_l;function Ou(e){switch(ur(e)){case Ct:return Ct;case co:return co;case Wo:return Wo;case tr:return tr;case mi:return mi;case El:return El;case Aa:case ja:case wl:case nd:case rd:case xf:case Sf:case Ef:case wf:case Rf:case Tf:case _f:case Nf:case Rl:case If:case Au:return e&Ms;case _l:case ad:case Af:case jf:case Of:return e&Tl;case Nl:return Nl;case ju:return ju;case Ls:return Ls;case Ja:return Ja;default:return h("Should have found matching lanes. This is a bug in React."),e}}function od(e,n){var s=e.pendingLanes;if(s===Re)return Re;var c=Re,p=e.suspendedLanes,b=e.pingedLanes,E=s&Vh;if(E!==Re){var N=E&~p;if(N!==Re)c=Ou(N);else{var O=E&b;O!==Re&&(c=Ou(O))}}else{var V=s&~p;V!==Re?c=Ou(V):b!==Re&&(c=Ou(b))}if(c===Re)return Re;if(n!==Re&&n!==c&&(n&p)===Re){var H=ur(c),te=ur(n);if(H>=te||H===mi&&(te&Ms)!==Re)return n}(c&Wo)!==Re&&(c|=s&mi);var K=e.entangledLanes;if(K!==Re)for(var he=e.entanglements,ve=c&K;ve>0;){var xe=Fs(ve),Ke=1<<xe;c|=he[xe],ve&=~Ke}return c}function kf(e,n){for(var s=e.eventTimes,c=Mn;n>0;){var p=Fs(n),b=1<<p,E=s[p];E>c&&(c=E),n&=~b}return c}function bC(e,n){switch(e){case Ct:case co:case Wo:return n+250;case tr:case mi:case El:case Aa:case ja:case wl:case nd:case rd:case xf:case Sf:case Ef:case wf:case Rf:case Tf:case _f:case Nf:case Rl:case If:case Au:return n+5e3;case _l:case ad:case Af:case jf:case Of:return Mn;case Nl:case ju:case Ls:case Ja:return Mn;default:return h("Should have found matching lanes. This is a bug in React."),Mn}}function CC(e,n){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,b=e.expirationTimes,E=s;E>0;){var N=Fs(E),O=1<<N,V=b[N];V===Mn?((O&c)===Re||(O&p)!==Re)&&(b[N]=bC(O,n)):V<=n&&(e.expiredLanes|=O),E&=~O}}function xC(e){return Ou(e.pendingLanes)}function Ps(e){var n=e.pendingLanes&~Ja;return n!==Re?n:n&Ja?Ja:Re}function Bh(e){return(e&Ct)!==Re}function sd(e){return(e&Vh)!==Re}function Ag(e){return(e&Tl)===e}function jg(e){var n=Ct|Wo|mi;return(e&n)===Re}function Og(e){return(e&Ms)===e}function ld(e,n){var s=co|Wo|tr|mi;return(n&s)!==Re}function Dg(e,n){return(n&e.expiredLanes)!==Re}function zh(e){return(e&Ms)!==Re}function kg(){var e=Df;return Df<<=1,(Df&Ms)===Re&&(Df=Aa),e}function Oa(){var e=id;return id<<=1,(id&Tl)===Re&&(id=_l),e}function ur(e){return e&-e}function Du(e){return ur(e)}function Fs(e){return 31-td(e)}function Mf(e){return Fs(e)}function Da(e,n){return(e&n)!==Re}function Il(e,n){return(e&n)===n}function Dt(e,n){return e|n}function ud(e,n){return e&~n}function Lf(e,n){return e&n}function SC(e){return e}function Mg(e,n){return e!==lr&&e<n?e:n}function cd(e){for(var n=[],s=0;s<sr;s++)n.push(e);return n}function Al(e,n,s){e.pendingLanes|=n,n!==Ls&&(e.suspendedLanes=Re,e.pingedLanes=Re);var c=e.eventTimes,p=Mf(n);c[p]=s}function Lg(e,n){e.suspendedLanes|=n,e.pingedLanes&=~n;for(var s=e.expirationTimes,c=n;c>0;){var p=Fs(c),b=1<<p;s[p]=Mn,c&=~b}}function Pf(e,n,s){e.pingedLanes|=e.suspendedLanes&n}function Ff(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=Re,e.pingedLanes=Re,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n;for(var c=e.entanglements,p=e.eventTimes,b=e.expirationTimes,E=s;E>0;){var N=Fs(E),O=1<<N;c[N]=Re,p[N]=Mn,b[N]=Mn,E&=~O}}function $h(e,n){for(var s=e.entangledLanes|=n,c=e.entanglements,p=s;p;){var b=Fs(p),E=1<<b;E&n|c[b]&n&&(c[b]|=n),p&=~E}}function Pg(e,n){var s=ur(n),c;switch(s){case Wo:c=co;break;case mi:c=tr;break;case Aa:case ja:case wl:case nd:case rd:case xf:case Sf:case Ef:case wf:case Rf:case Tf:case _f:case Nf:case Rl:case If:case Au:case _l:case ad:case Af:case jf:case Of:c=El;break;case Ls:c=ju;break;default:c=lr;break}return(c&(e.suspendedLanes|n))!==lr?lr:c}function Vf(e,n,s){if(qa)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=Mf(s),b=1<<p,E=c[p];E.add(n),s&=~b}}function Uh(e,n){if(qa)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;n>0;){var p=Mf(n),b=1<<p,E=s[p];E.size>0&&(E.forEach(function(N){var O=N.alternate;(O===null||!c.has(O))&&c.add(N)}),E.clear()),n&=~b}}function dd(e,n){return null}var cr=Ct,Xo=Wo,fo=mi,ku=Ls,Mu=lr;function gi(){return Mu}function nr(e){Mu=e}function Qr(e,n){var s=Mu;try{return Mu=e,n()}finally{Mu=s}}function EC(e,n){return e!==0&&e<n?e:n}function wC(e,n){return e===0||e>n?e:n}function Lu(e,n){return e!==0&&e<n}function Vr(e){var n=ur(e);return Lu(cr,n)?Lu(Xo,n)?sd(n)?fo:ku:Xo:cr}function Bf(e){var n=e.current.memoizedState;return n.isDehydrated}var nt;function Pu(e){nt=e}function Hh(e){nt(e)}var zf;function RC(e){zf=e}var Fu;function $f(e){Fu=e}var Uf;function Fg(e){Uf=e}var Gh;function Vg(e){Gh=e}var fd=!1,Vu=[],Un=null,Ar=null,ia=null,Bu=new Map,zu=new Map,jr=[],Bg=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function po(e){return Bg.indexOf(e)>-1}function TC(e,n,s,c,p){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function Wh(e,n){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":{var s=n.pointerId;Bu.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=n.pointerId;zu.delete(c);break}}}function $u(e,n,s,c,p,b){if(e===null||e.nativeEvent!==b){var E=TC(n,s,c,p,b);if(n!==null){var N=Ju(n);N!==null&&zf(N)}return E}e.eventSystemFlags|=c;var O=e.targetContainers;return p!==null&&O.indexOf(p)===-1&&O.push(p),e}function zg(e,n,s,c,p){switch(n){case"focusin":{var b=p;return Un=$u(Un,e,n,s,c,b),!0}case"dragenter":{var E=p;return Ar=$u(Ar,e,n,s,c,E),!0}case"mouseover":{var N=p;return ia=$u(ia,e,n,s,c,N),!0}case"pointerover":{var O=p,V=O.pointerId;return Bu.set(V,$u(Bu.get(V)||null,e,n,s,c,O)),!0}case"gotpointercapture":{var H=p,te=H.pointerId;return zu.set(te,$u(zu.get(te)||null,e,n,s,c,H)),!0}}return!1}function Xh(e){var n=wd(e.target);if(n!==null){var s=As(n);if(s!==null){var c=s.tag;if(c===z){var p=hf(s);if(p!==null){e.blockedOn=p,Gh(e.priority,function(){Fu(s)});return}}else if(c===R){var b=s.stateNode;if(Bf(b)){e.blockedOn=vf(s);return}}}}e.blockedOn=null}function _C(e){for(var n=Uf(),s={blockedOn:null,target:e,priority:n},c=0;c<jr.length&&Lu(n,jr[c].priority);c++);jr.splice(c,0,s),c===0&&Xh(s)}function jl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;n.length>0;){var s=n[0],c=Kr(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(c===null){var p=e.nativeEvent,b=new p.constructor(p.type,p);vC(b),p.target.dispatchEvent(b),fg()}else{var E=Ju(c);return E!==null&&zf(E),e.blockedOn=c,!1}n.shift()}return!0}function Hf(e,n,s){jl(e)&&s.delete(n)}function yi(){fd=!1,Un!==null&&jl(Un)&&(Un=null),Ar!==null&&jl(Ar)&&(Ar=null),ia!==null&&jl(ia)&&(ia=null),Bu.forEach(Hf),zu.forEach(Hf)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,fd||(fd=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yi)))}function rr(e){if(Vu.length>0){zt(Vu[0],e);for(var n=1;n<Vu.length;n++){var s=Vu[n];s.blockedOn===e&&(s.blockedOn=null)}}Un!==null&&zt(Un,e),Ar!==null&&zt(Ar,e),ia!==null&&zt(ia,e);var c=function(N){return zt(N,e)};Bu.forEach(c),zu.forEach(c);for(var p=0;p<jr.length;p++){var b=jr[p];b.blockedOn===e&&(b.blockedOn=null)}for(;jr.length>0;){var E=jr[0];if(E.blockedOn!==null)break;Xh(E),E.blockedOn===null&&jr.shift()}}var zn=l.ReactCurrentBatchConfig,Cr=!0;function ka(e){Cr=!!e}function Uu(){return Cr}function xr(e,n,s){var c=Gf(n),p;switch(c){case cr:p=pd;break;case Xo:p=Ol;break;case fo:default:p=Hu;break}return p.bind(null,n,s,e)}function pd(e,n,s,c){var p=gi(),b=zn.transition;zn.transition=null;try{nr(cr),Hu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Ol(e,n,s,c){var p=gi(),b=zn.transition;zn.transition=null;try{nr(Xo),Hu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Hu(e,n,s,c){Cr&&Yh(e,n,s,c)}function Yh(e,n,s,c){var p=Kr(e,n,s,c);if(p===null){HC(e,n,c,Vs,s),Wh(e,c);return}if(zg(p,e,n,s,c)){c.stopPropagation();return}if(Wh(e,c),n&Uc&&po(e)){for(;p!==null;){var b=Ju(p);b!==null&&Hh(b);var E=Kr(e,n,s,c);if(E===null&&HC(e,n,c,Vs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}HC(e,n,c,null,s)}var Vs=null;function Kr(e,n,s,c){Vs=null;var p=_n(c),b=wd(p);if(b!==null){var E=As(b);if(E===null)b=null;else{var N=E.tag;if(N===z){var O=hf(E);if(O!==null)return O;b=null}else if(N===R){var V=E.stateNode;if(Bf(V))return vf(E);b=null}else E!==b&&(b=null)}}return Vs=b,null}function Gf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return cr;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Xo;case"message":{var n=yC();switch(n){case Ia:return cr;case Eu:return Xo;case lo:case wu:return fo;case qc:return ku;default:return fo}}default:return fo}}function Gu(e,n,s){return e.addEventListener(n,s,!1),s}function Yo(e,n,s){return e.addEventListener(n,s,!0),s}function Wf(e,n,s,c){return e.addEventListener(n,s,{capture:!0,passive:c}),s}function Zh(e,n,s,c){return e.addEventListener(n,s,{passive:c}),s}var bi=null,Wu=null,Ci=null;function Xf(e){return bi=e,Wu=vd(),!0}function hd(){bi=null,Wu=null,Ci=null}function Yf(){if(Ci)return Ci;var e,n=Wu,s=n.length,c,p=vd(),b=p.length;for(e=0;e<s&&n[e]===p[e];e++);var E=s-e;for(c=1;c<=E&&n[s-c]===p[b-c];c++);var N=c>1?1-c:void 0;return Ci=p.slice(e,N),Ci}function vd(){return"value"in bi?bi.value:bi.textContent}function Dl(e){var n,s=e.keyCode;return"charCode"in e?(n=e.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),n>=32||n===13?n:0}function Or(){return!0}function Zo(){return!1}function Zn(e){function n(s,c,p,b,E){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=b,this.target=E,this.currentTarget=null;for(var N in e)if(e.hasOwnProperty(N)){var O=e[N];O?this[N]=O(b):this[N]=b[N]}var V=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return V?this.isDefaultPrevented=Or:this.isDefaultPrevented=Zo,this.isPropagationStopped=Zo,this}return Lt(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Or)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Or)},persist:function(){},isPersistent:Or}),n}var Sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zf=Zn(Sr),kl=Lt({},Sr,{view:0,detail:0}),qh=Zn(kl),Jh,ho,Xu;function Qh(e){e!==Xu&&(Xu&&e.type==="mousemove"?(Jh=e.screenX-Xu.screenX,ho=e.screenY-Xu.screenY):(Jh=0,ho=0),Xu=e)}var vo=Lt({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(Qh(e),Jh)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),qf=Zn(vo),Ml=Lt({},vo,{dataTransfer:0}),$g=Zn(Ml),Ug=Lt({},kl,{relatedTarget:0}),md=Zn(Ug),Jf=Lt({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),NC=Zn(Jf),IC=Lt({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hg=Zn(IC),Gg=Lt({},Sr,{data:0}),Bs=Zn(Gg),AC=Bs,Yu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function ar(e){if(e.key){var n=Yu[e.key]||e.key;if(n!=="Unidentified")return n}if(e.type==="keypress"){var s=Dl(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?Wg[e.keyCode]||"Unidentified":""}var jC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xg(e){var n=this,s=n.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var c=jC[e];return c?!!s[c]:!1}function Kh(e){return Xg}var OC=Lt({},kl,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kh,charCode:function(e){return e.type==="keypress"?Dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yg=Zn(OC),Zg=Lt({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qg=Zn(Zg),xi=Lt({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kh}),ev=Zn(xi),DC=Lt({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),zs=Zn(DC),Qf=Lt({},vo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ll=Zn(Qf),Kf=[9,13,27,32],ep=229,gd=Rt&&"CompositionEvent"in window,yd=null;Rt&&"documentMode"in document&&(yd=document.documentMode);var tv=Rt&&"TextEvent"in window&&!yd,Jg=Rt&&(!gd||yd&&yd>8&&yd<=11),nv=32,rv=String.fromCharCode(nv);function tp(){ot("onBeforeInput",["compositionend","keypress","textInput","paste"]),ot("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),ot("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),ot("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var bd=!1;function Qg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function av(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function kC(e,n){return e==="keydown"&&n.keyCode===ep}function iv(e,n){switch(e){case"keyup":return Kf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==ep;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function np(e){var n=e.detail;return typeof n=="object"&&"data"in n?n.data:null}function Cd(e){return e.locale==="ko"}var $s=!1;function rp(e,n,s,c,p){var b,E;if(gd?b=av(n):$s?iv(n,c)&&(b="onCompositionEnd"):kC(n,c)&&(b="onCompositionStart"),!b)return null;Jg&&!Cd(c)&&(!$s&&b==="onCompositionStart"?$s=Xf(p):b==="onCompositionEnd"&&$s&&(E=Yf()));var N=ay(s,b);if(N.length>0){var O=new Bs(b,n,null,c,p);if(e.push({event:O,listeners:N}),E)O.data=E;else{var V=np(c);V!==null&&(O.data=V)}}}function Kg(e,n){switch(e){case"compositionend":return np(n);case"keypress":var s=n.which;return s!==nv?null:(bd=!0,rv);case"textInput":var c=n.data;return c===rv&&bd?null:c;default:return null}}function MC(e,n){if($s){if(e==="compositionend"||!gd&&iv(e,n)){var s=Yf();return hd(),$s=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!Qg(n)){if(n.char&&n.char.length>1)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Jg&&!Cd(n)?null:n.data;default:return null}}function ap(e,n,s,c,p){var b;if(tv?b=Kg(n,c):b=MC(n,c),!b)return null;var E=ay(s,"onBeforeInput");if(E.length>0){var N=new AC("onBeforeInput","beforeinput",null,c,p);e.push({event:N,listeners:E}),N.data=b}}function LC(e,n,s,c,p,b,E){rp(e,n,s,c,p),ap(e,n,s,c,p)}var xd={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 ey(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!xd[e.type]:n==="textarea"}/**
|
|
112
|
+
Check the render method of \``+e+"`.":""}var Oc=["value","defaultValue"];function Dc(e){{fl("select",e);for(var n=0;n<Oc.length;n++){var s=Oc[n];if(e[s]!=null){var c=Zt(e[s]);e.multiple&&!c?h("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,mu()):!e.multiple&&c&&h("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,mu())}}}}function Lo(e,n,s,c){var p=e.options;if(n){for(var b=s,E={},N=0;N<b.length;N++)E["$"+b[N]]=!0;for(var O=0;O<p.length;O++){var V=E.hasOwnProperty("$"+p[O].value);p[O].selected!==V&&(p[O].selected=V),V&&c&&(p[O].defaultSelected=!0)}}else{for(var H=Ea(Fi(s)),te=null,K=0;K<p.length;K++){if(p[K].value===H){p[K].selected=!0,c&&(p[K].defaultSelected=!0);return}te===null&&!p[K].disabled&&(te=p[K])}te!==null&&(te.selected=!0)}}function kc(e,n){return Lt({},n,{value:void 0})}function Mc(e,n){var s=e;Dc(n),s._wrapperState={wasMultiple:!!n.multiple},n.value!==void 0&&n.defaultValue!==void 0&&!Es&&(h("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Es=!0)}function oh(e,n){var s=e;s.multiple=!!n.multiple;var c=n.value;c!=null?Lo(s,!!n.multiple,c,!1):n.defaultValue!=null&&Lo(s,!!n.multiple,n.defaultValue,!0)}function rC(e,n){var s=e,c=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!n.multiple;var p=n.value;p!=null?Lo(s,!!n.multiple,p,!1):c!==!!n.multiple&&(n.defaultValue!=null?Lo(s,!!n.multiple,n.defaultValue,!0):Lo(s,!!n.multiple,n.multiple?[]:"",!1))}function $m(e,n){var s=e,c=n.value;c!=null&&Lo(s,!!n.multiple,c,!1)}var Um=!1;function sh(e,n){var s=e;if(n.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var c=Lt({},n,{value:void 0,defaultValue:void 0,children:Ea(s._wrapperState.initialValue)});return c}function Hm(e,n){var s=e;fl("textarea",n),n.value!==void 0&&n.defaultValue!==void 0&&!Um&&(h("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",si()||"A component"),Um=!0);var c=n.value;if(c==null){var p=n.children,b=n.defaultValue;if(p!=null){h("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(b!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}b=p}}b==null&&(b=""),c=b}s._wrapperState={initialValue:Fi(c)}}function Gm(e,n){var s=e,c=Fi(n.value),p=Fi(n.defaultValue);if(c!=null){var b=Ea(c);b!==s.value&&(s.value=b),n.defaultValue==null&&s.defaultValue!==b&&(s.defaultValue=b)}p!=null&&(s.defaultValue=Ea(p))}function tf(e,n){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function aC(e,n){Gm(e,n)}var Po="http://www.w3.org/1999/xhtml",iC="http://www.w3.org/1998/Math/MathML",nf="http://www.w3.org/2000/svg";function lh(e){switch(e){case"svg":return nf;case"math":return iC;default:return Po}}function uh(e,n){return e==null||e===Po?lh(n):e===nf&&n==="foreignObject"?Po:e}var oC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,p)})}:e},rf,Wm=oC(function(e,n){if(e.namespaceURI===nf&&!("innerHTML"in e)){rf=rf||document.createElement("div"),rf.innerHTML="<svg>"+n.valueOf().toString()+"</svg>";for(var s=rf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=n}),wa=1,Fo=3,Kn=8,Ga=9,ch=11,Lc=function(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Fo){s.nodeValue=n;return}}e.textContent=n},Xm={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},gu={animationIterationCount:!0,aspectRatio:!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};function Ym(e,n){return e+n.charAt(0).toUpperCase()+n.substring(1)}var Zm=["Webkit","ms","Moz","O"];Object.keys(gu).forEach(function(e){Zm.forEach(function(n){gu[Ym(n,e)]=gu[e]})});function ws(e,n,s){var c=n==null||typeof n=="boolean"||n==="";return c?"":!s&&typeof n=="number"&&n!==0&&!(gu.hasOwnProperty(e)&&gu[e])?n+"px":(Qn(n,e),(""+n).trim())}var sC=/([A-Z])/g,lC=/^ms-/;function uC(e){return e.replace(sC,"-$1").toLowerCase().replace(lC,"-ms-")}var dh=function(){};{var qm=/^(?:webkit|moz|o)[A-Z]/,Pc=/^-ms-/,Fc=/-(.)/g,Jm=/;\s*$/,Vo={},fh={},ph=!1,af=!1,hh=function(e){return e.replace(Fc,function(n,s){return s.toUpperCase()})},Qm=function(e){Vo.hasOwnProperty(e)&&Vo[e]||(Vo[e]=!0,h("Unsupported style property %s. Did you mean %s?",e,hh(e.replace(Pc,"ms-"))))},Km=function(e){Vo.hasOwnProperty(e)&&Vo[e]||(Vo[e]=!0,h("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},eg=function(e,n){fh.hasOwnProperty(n)&&fh[n]||(fh[n]=!0,h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Jm,"")))},cC=function(e,n){ph||(ph=!0,h("`NaN` is an invalid value for the `%s` css style property.",e))},dC=function(e,n){af||(af=!0,h("`Infinity` is an invalid value for the `%s` css style property.",e))};dh=function(e,n){e.indexOf("-")>-1?Qm(e):qm.test(e)?Km(e):Jm.test(n)&&eg(e,n),typeof n=="number"&&(isNaN(n)?cC(e,n):isFinite(n)||dC(e,n))}}var fC=dh;function pC(e){{var n="",s="";for(var c in e)if(e.hasOwnProperty(c)){var p=e[c];if(p!=null){var b=c.indexOf("--")===0;n+=s+(b?c:uC(c))+":",n+=ws(c,p,b),s=";"}}return n||null}}function tg(e,n){var s=e.style;for(var c in n)if(n.hasOwnProperty(c)){var p=c.indexOf("--")===0;p||fC(c,n[c]);var b=ws(c,n[c],p);c==="float"&&(c="cssFloat"),p?s.setProperty(c,b):s[c]=b}}function Bi(e){return e==null||typeof e=="boolean"||e===""}function yu(e){var n={};for(var s in e)for(var c=Xm[s]||[s],p=0;p<c.length;p++)n[c[p]]=s;return n}function ng(e,n){{if(!n)return;var s=yu(e),c=yu(n),p={};for(var b in s){var E=s[b],N=c[b];if(N&&E!==N){var O=E+","+N;if(p[O])continue;p[O]=!0,h("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Bi(e[E])?"Removing":"Updating",E,N)}}}}var rg={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},ag=Lt({menuitem:!0},rg),ig="__html";function Vc(e,n){if(n){if(ag[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof n.dangerouslySetInnerHTML!="object"||!(ig in n.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&h("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),n.style!=null&&typeof n.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function hl(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";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}}var of={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vl={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Rs={},Bc=new RegExp("^(aria)-["+ht+"]*$"),vh=new RegExp("^(aria)[A-Z]["+ht+"]*$");function og(e,n){{if(dt.call(Rs,n)&&Rs[n])return!0;if(vh.test(n)){var s="aria-"+n.slice(4).toLowerCase(),c=vl.hasOwnProperty(s)?s:null;if(c==null)return h("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Rs[n]=!0,!0;if(n!==c)return h("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,c),Rs[n]=!0,!0}if(Bc.test(n)){var p=n.toLowerCase(),b=vl.hasOwnProperty(p)?p:null;if(b==null)return Rs[n]=!0,!1;if(n!==b)return h("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,b),Rs[n]=!0,!0}}return!0}function sf(e,n){{var s=[];for(var c in n){var p=og(e,c);p||s.push(c)}var b=s.map(function(E){return"`"+E+"`"}).join(", ");s.length===1?h("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,e):s.length>1&&h("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,e)}}function bu(e,n){hl(e,n)||sf(e,n)}var lf=!1;function sg(e,n){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;n!=null&&n.value===null&&!lf&&(lf=!0,e==="select"&&n.multiple?h("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):h("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var zc=function(){};{var qr={},mh=/^on./,lg=/^on[^A-Z]/,ug=new RegExp("^(aria)-["+ht+"]*$"),cg=new RegExp("^(aria)[A-Z]["+ht+"]*$");zc=function(e,n,s,c){if(dt.call(qr,n)&&qr[n])return!0;var p=n.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return h("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),qr[n]=!0,!0;if(c!=null){var b=c.registrationNameDependencies,E=c.possibleRegistrationNames;if(b.hasOwnProperty(n))return!0;var N=E.hasOwnProperty(p)?E[p]:null;if(N!=null)return h("Invalid event handler property `%s`. Did you mean `%s`?",n,N),qr[n]=!0,!0;if(mh.test(n))return h("Unknown event handler property `%s`. It will be ignored.",n),qr[n]=!0,!0}else if(mh.test(n))return lg.test(n)&&h("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),qr[n]=!0,!0;if(ug.test(n)||cg.test(n))return!0;if(p==="innerhtml")return h("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),qr[n]=!0,!0;if(p==="aria")return h("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),qr[n]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return h("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),qr[n]=!0,!0;if(typeof s=="number"&&isNaN(s))return h("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),qr[n]=!0,!0;var O=Nr(n),V=O!==null&&O.type===_r;if(of.hasOwnProperty(p)){var H=of[p];if(H!==n)return h("Invalid DOM property `%s`. Did you mean `%s`?",n,H),qr[n]=!0,!0}else if(!V&&n!==p)return h("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,p),qr[n]=!0,!0;return typeof s=="boolean"&&Yr(n,s,O,!1)?(s?h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,n,n,s,n):h('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,n,n,s,n,n,n),qr[n]=!0,!0):V?!0:Yr(n,s,O,!1)?(qr[n]=!0,!1):((s==="false"||s==="true")&&O!==null&&O.type===un&&(h("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,n,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,s),qr[n]=!0),!0)}}var dg=function(e,n,s){{var c=[];for(var p in n){var b=zc(e,p,n[p],s);b||c.push(p)}var E=c.map(function(N){return"`"+N+"`"}).join(", ");c.length===1?h("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e):c.length>1&&h("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e)}};function Ts(e,n,s){hl(e,n)||dg(e,n,s)}var uf=1,$c=2,Uc=4,hC=uf|$c|Uc,Bo=null;function vC(e){Bo!==null&&h("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Bo=e}function fg(){Bo===null&&h("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Bo=null}function pg(e){return e===Bo}function _n(e){var n=e.target||e.srcElement||window;return n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===Fo?n.parentNode:n}var Hc=null,zo=null,ao=null;function gh(e){var n=Ju(e);if(n){if(typeof Hc!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=n.stateNode;if(s){var c=gy(s);Hc(n.stateNode,n.type,c)}}}function yh(e){Hc=e}function Cu(e){zo?ao?ao.push(e):ao=[e]:zo=e}function cf(){return zo!==null||ao!==null}function ml(){if(zo){var e=zo,n=ao;if(zo=null,ao=null,gh(e),n)for(var s=0;s<n.length;s++)gh(n[s])}}var bh=function(e,n){return e(n)},hg=function(){},Ch=!1;function vg(){var e=cf();e&&(hg(),ml())}function Gc(e,n,s){if(Ch)return e(n,s);Ch=!0;try{return bh(e,n,s)}finally{Ch=!1,vg()}}function df(e,n,s){bh=e,hg=s}function xh(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Sh(e,n,s){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&xh(n));default:return!1}}function gl(e,n){var s=e.stateNode;if(s===null)return null;var c=gy(s);if(c===null)return null;var p=c[n];if(Sh(n,e.type,c))return null;if(p&&typeof p!="function")throw new Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var Wc=!1;if(Rt)try{var Xc={};Object.defineProperty(Xc,"passive",{get:function(){Wc=!0}}),window.addEventListener("test",Xc,Xc),window.removeEventListener("test",Xc,Xc)}catch{Wc=!1}function Eh(e,n,s,c,p,b,E,N,O){var V=Array.prototype.slice.call(arguments,3);try{n.apply(s,V)}catch(H){this.onError(H)}}var mg=Eh;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var wh=document.createElement("react");mg=function(n,s,c,p,b,E,N,O,V){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var H=document.createEvent("Event"),te=!1,K=!0,he=window.event,ve=Object.getOwnPropertyDescriptor(window,"event");function xe(){wh.removeEventListener(Se,yt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var Ke=Array.prototype.slice.call(arguments,3);function yt(){te=!0,xe(),s.apply(c,Ke),K=!1}var pt,Wt=!1,$t=!1;function oe(se){if(pt=se.error,Wt=!0,pt===null&&se.colno===0&&se.lineno===0&&($t=!0),se.defaultPrevented&&pt!=null&&typeof pt=="object")try{pt._suppressLogging=!0}catch{}}var Se="react-"+(n||"invokeguardedcallback");if(window.addEventListener("error",oe),wh.addEventListener(Se,yt,!1),H.initEvent(Se,!1,!1),wh.dispatchEvent(H),ve&&Object.defineProperty(window,"event",ve),te&&K&&(Wt?$t&&(pt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):pt=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.`),this.onError(pt)),window.removeEventListener("error",oe),!te)return xe(),Eh.apply(this,arguments)}}var Rh=mg,Wa=!1,Yc=null,$o=!1,ui=null,Zc={onError:function(e){Wa=!0,Yc=e}};function zi(e,n,s,c,p,b,E,N,O){Wa=!1,Yc=null,Rh.apply(Zc,arguments)}function Th(e,n,s,c,p,b,E,N,O){if(zi.apply(this,arguments),Wa){var V=Uo();$o||($o=!0,ui=V)}}function mC(){if($o){var e=ui;throw $o=!1,ui=null,e}}function gC(){return Wa}function Uo(){if(Wa){var e=Yc;return Wa=!1,Yc=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function io(e){return e._reactInternals}function xu(e){return e._reactInternals!==void 0}function ff(e,n){e._reactInternals=n}var mt=0,$i=1,Nn=2,ut=4,nn=16,ci=32,Ir=64,At=128,aa=256,Xa=512,vr=1024,Ra=2048,oo=4096,_s=8192,yl=16384,gg=Ra|ut|Ir|Xa|vr|yl,Ho=32767,Ns=32768,Pr=65536,pf=131072,yg=1048576,so=2097152,di=4194304,Is=8388608,fi=16777216,bl=33554432,Ta=ut|vr|0,_a=Nn|ut|nn|ci|Xa|oo|_s,Ui=ut|Ir|Xa|_s,Na=Ra|nn,Fr=di|Is|so,Cl=l.ReactCurrentOwner;function As(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{var c=n;do n=c,(n.flags&(Nn|oo))!==mt&&(s=n.return),c=n.return;while(c)}return n.tag===R?s:null}function hf(e){if(e.tag===z){var n=e.memoizedState;if(n===null){var s=e.alternate;s!==null&&(n=s.memoizedState)}if(n!==null)return n.dehydrated}return null}function vf(e){return e.tag===R?e.stateNode.containerInfo:null}function Ya(e){return As(e)===e}function Za(e){{var n=Cl.current;if(n!==null&&n.tag===x){var s=n,c=s.stateNode;c._warnedAboutRefsInRender||h("%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.",It(s)||"A component"),c._warnedAboutRefsInRender=!0}}var p=io(e);return p?As(p)===p:!1}function Bn(e){if(As(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function pi(e){var n=e.alternate;if(!n){var s=As(e);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==e?null:e}for(var c=e,p=n;;){var b=c.return;if(b===null)break;var E=b.alternate;if(E===null){var N=b.return;if(N!==null){c=p=N;continue}break}if(b.child===E.child){for(var O=b.child;O;){if(O===c)return Bn(b),e;if(O===p)return Bn(b),n;O=O.sibling}throw new Error("Unable to find node on an unmounted component.")}if(c.return!==p.return)c=b,p=E;else{for(var V=!1,H=b.child;H;){if(H===c){V=!0,c=b,p=E;break}if(H===p){V=!0,p=b,c=E;break}H=H.sibling}if(!V){for(H=E.child;H;){if(H===c){V=!0,c=E,p=b;break}if(H===p){V=!0,p=E,c=b;break}H=H.sibling}if(!V)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(c.alternate!==p)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(c.tag!==R)throw new Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?e:n}function _h(e){var n=pi(e);return n!==null?Nh(n):null}function Nh(e){if(e.tag===I||e.tag===_)return e;for(var n=e.child;n!==null;){var s=Nh(n);if(s!==null)return s;n=n.sibling}return null}function Ih(e){var n=pi(e);return n!==null?mf(n):null}function mf(e){if(e.tag===I||e.tag===_)return e;for(var n=e.child;n!==null;){if(n.tag!==j){var s=mf(n);if(s!==null)return s}n=n.sibling}return null}var Ah=i.unstable_scheduleCallback,gf=i.unstable_cancelCallback,bg=i.unstable_shouldYield,Su=i.unstable_requestPaint,mr=i.unstable_now,yC=i.unstable_getCurrentPriorityLevel,Ia=i.unstable_ImmediatePriority,Eu=i.unstable_UserBlockingPriority,lo=i.unstable_NormalPriority,wu=i.unstable_LowPriority,qc=i.unstable_IdlePriority,jh=i.unstable_yieldValue,Oh=i.unstable_setDisableYieldValue,js=null,or=null,$e=null,Jr=!1,qa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Cg(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return h("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Oe&&(e=Lt({},e,{getLaneLabelMap:yf,injectProfilingHooks:Ds})),js=n.inject(e),or=n}catch(s){h("React instrumentation encountered an error: %s.",s)}return!!n.checkDCE}function Go(e,n){if(or&&typeof or.onScheduleFiberRoot=="function")try{or.onScheduleFiberRoot(js,e,n)}catch(s){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",s))}}function Os(e,n){if(or&&typeof or.onCommitFiberRoot=="function")try{var s=(e.current.flags&At)===At;if(ce){var c;switch(n){case cr:c=Ia;break;case Xo:c=Eu;break;case fo:c=lo;break;case ku:c=qc;break;default:c=lo;break}or.onCommitFiberRoot(js,e,c,s)}}catch(p){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",p))}}function Dh(e){if(or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(js,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function xg(e){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(js,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function kn(e){if(typeof jh=="function"&&(Oh(e),d(e)),or&&typeof or.setStrictMode=="function")try{or.setStrictMode(js,e)}catch(n){Jr||(Jr=!0,h("React instrumentation encountered an error: %s",n))}}function Ds(e){$e=e}function yf(){{for(var e=new Map,n=1,s=0;s<sr;s++){var c=Ig(n);e.set(n,c),n*=2}return e}}function Sg(e){$e!==null&&typeof $e.markCommitStarted=="function"&&$e.markCommitStarted(e)}function Jc(){$e!==null&&typeof $e.markCommitStopped=="function"&&$e.markCommitStopped()}function Ru(e){$e!==null&&typeof $e.markComponentRenderStarted=="function"&&$e.markComponentRenderStarted(e)}function xl(){$e!==null&&typeof $e.markComponentRenderStopped=="function"&&$e.markComponentRenderStopped()}function kh(e){$e!==null&&typeof $e.markComponentPassiveEffectMountStarted=="function"&&$e.markComponentPassiveEffectMountStarted(e)}function bf(){$e!==null&&typeof $e.markComponentPassiveEffectMountStopped=="function"&&$e.markComponentPassiveEffectMountStopped()}function Eg(e){$e!==null&&typeof $e.markComponentPassiveEffectUnmountStarted=="function"&&$e.markComponentPassiveEffectUnmountStarted(e)}function wg(){$e!==null&&typeof $e.markComponentPassiveEffectUnmountStopped=="function"&&$e.markComponentPassiveEffectUnmountStopped()}function Rg(e){$e!==null&&typeof $e.markComponentLayoutEffectMountStarted=="function"&&$e.markComponentLayoutEffectMountStarted(e)}function Mh(){$e!==null&&typeof $e.markComponentLayoutEffectMountStopped=="function"&&$e.markComponentLayoutEffectMountStopped()}function Tu(e){$e!==null&&typeof $e.markComponentLayoutEffectUnmountStarted=="function"&&$e.markComponentLayoutEffectUnmountStarted(e)}function Qc(){$e!==null&&typeof $e.markComponentLayoutEffectUnmountStopped=="function"&&$e.markComponentLayoutEffectUnmountStopped()}function Tg(e,n,s){$e!==null&&typeof $e.markComponentErrored=="function"&&$e.markComponentErrored(e,n,s)}function _g(e,n,s){$e!==null&&typeof $e.markComponentSuspended=="function"&&$e.markComponentSuspended(e,n,s)}function _u(e){$e!==null&&typeof $e.markLayoutEffectsStarted=="function"&&$e.markLayoutEffectsStarted(e)}function Ng(){$e!==null&&typeof $e.markLayoutEffectsStopped=="function"&&$e.markLayoutEffectsStopped()}function Kc(e){$e!==null&&typeof $e.markPassiveEffectsStarted=="function"&&$e.markPassiveEffectsStarted(e)}function uo(){$e!==null&&typeof $e.markPassiveEffectsStopped=="function"&&$e.markPassiveEffectsStopped()}function Nu(e){$e!==null&&typeof $e.markRenderStarted=="function"&&$e.markRenderStarted(e)}function ed(){$e!==null&&typeof $e.markRenderYielded=="function"&&$e.markRenderYielded()}function ks(){$e!==null&&typeof $e.markRenderStopped=="function"&&$e.markRenderStopped()}function Lh(e){$e!==null&&typeof $e.markRenderScheduled=="function"&&$e.markRenderScheduled(e)}function Iu(e,n){$e!==null&&typeof $e.markForceUpdateScheduled=="function"&&$e.markForceUpdateScheduled(e,n)}function Cf(e,n){$e!==null&&typeof $e.markStateUpdateScheduled=="function"&&$e.markStateUpdateScheduled(e,n)}var gt=0,ft=1,Kt=2,er=8,hi=16,td=Math.clz32?Math.clz32:Yn,Ph=Math.log,Sl=Math.LN2;function Yn(e){var n=e>>>0;return n===0?32:31-(Ph(n)/Sl|0)|0}var sr=31,Re=0,lr=0,Ct=1,co=2,Wo=4,tr=8,mi=16,El=32,Ms=4194240,Aa=64,ja=128,wl=256,nd=512,rd=1024,xf=2048,Sf=4096,Ef=8192,wf=16384,Rf=32768,Tf=65536,_f=131072,Nf=262144,Rl=524288,If=1048576,Au=2097152,Tl=130023424,_l=4194304,ad=8388608,Af=16777216,jf=33554432,Of=67108864,Fh=_l,Nl=134217728,Vh=268435455,ju=268435456,Ls=536870912,Ja=1073741824;function Ig(e){{if(e&Ct)return"Sync";if(e&co)return"InputContinuousHydration";if(e&Wo)return"InputContinuous";if(e&tr)return"DefaultHydration";if(e&mi)return"Default";if(e&El)return"TransitionHydration";if(e&Ms)return"Transition";if(e&Tl)return"Retry";if(e&Nl)return"SelectiveHydration";if(e&ju)return"IdleHydration";if(e&Ls)return"Idle";if(e&Ja)return"Offscreen"}}var Mn=-1,Df=Aa,id=_l;function Ou(e){switch(ur(e)){case Ct:return Ct;case co:return co;case Wo:return Wo;case tr:return tr;case mi:return mi;case El:return El;case Aa:case ja:case wl:case nd:case rd:case xf:case Sf:case Ef:case wf:case Rf:case Tf:case _f:case Nf:case Rl:case If:case Au:return e&Ms;case _l:case ad:case Af:case jf:case Of:return e&Tl;case Nl:return Nl;case ju:return ju;case Ls:return Ls;case Ja:return Ja;default:return h("Should have found matching lanes. This is a bug in React."),e}}function od(e,n){var s=e.pendingLanes;if(s===Re)return Re;var c=Re,p=e.suspendedLanes,b=e.pingedLanes,E=s&Vh;if(E!==Re){var N=E&~p;if(N!==Re)c=Ou(N);else{var O=E&b;O!==Re&&(c=Ou(O))}}else{var V=s&~p;V!==Re?c=Ou(V):b!==Re&&(c=Ou(b))}if(c===Re)return Re;if(n!==Re&&n!==c&&(n&p)===Re){var H=ur(c),te=ur(n);if(H>=te||H===mi&&(te&Ms)!==Re)return n}(c&Wo)!==Re&&(c|=s&mi);var K=e.entangledLanes;if(K!==Re)for(var he=e.entanglements,ve=c&K;ve>0;){var xe=Fs(ve),Ke=1<<xe;c|=he[xe],ve&=~Ke}return c}function kf(e,n){for(var s=e.eventTimes,c=Mn;n>0;){var p=Fs(n),b=1<<p,E=s[p];E>c&&(c=E),n&=~b}return c}function bC(e,n){switch(e){case Ct:case co:case Wo:return n+250;case tr:case mi:case El:case Aa:case ja:case wl:case nd:case rd:case xf:case Sf:case Ef:case wf:case Rf:case Tf:case _f:case Nf:case Rl:case If:case Au:return n+5e3;case _l:case ad:case Af:case jf:case Of:return Mn;case Nl:case ju:case Ls:case Ja:return Mn;default:return h("Should have found matching lanes. This is a bug in React."),Mn}}function CC(e,n){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,b=e.expirationTimes,E=s;E>0;){var N=Fs(E),O=1<<N,V=b[N];V===Mn?((O&c)===Re||(O&p)!==Re)&&(b[N]=bC(O,n)):V<=n&&(e.expiredLanes|=O),E&=~O}}function xC(e){return Ou(e.pendingLanes)}function Ps(e){var n=e.pendingLanes&~Ja;return n!==Re?n:n&Ja?Ja:Re}function Bh(e){return(e&Ct)!==Re}function sd(e){return(e&Vh)!==Re}function Ag(e){return(e&Tl)===e}function jg(e){var n=Ct|Wo|mi;return(e&n)===Re}function Og(e){return(e&Ms)===e}function ld(e,n){var s=co|Wo|tr|mi;return(n&s)!==Re}function Dg(e,n){return(n&e.expiredLanes)!==Re}function zh(e){return(e&Ms)!==Re}function kg(){var e=Df;return Df<<=1,(Df&Ms)===Re&&(Df=Aa),e}function Oa(){var e=id;return id<<=1,(id&Tl)===Re&&(id=_l),e}function ur(e){return e&-e}function Du(e){return ur(e)}function Fs(e){return 31-td(e)}function Mf(e){return Fs(e)}function Da(e,n){return(e&n)!==Re}function Il(e,n){return(e&n)===n}function Dt(e,n){return e|n}function ud(e,n){return e&~n}function Lf(e,n){return e&n}function SC(e){return e}function Mg(e,n){return e!==lr&&e<n?e:n}function cd(e){for(var n=[],s=0;s<sr;s++)n.push(e);return n}function Al(e,n,s){e.pendingLanes|=n,n!==Ls&&(e.suspendedLanes=Re,e.pingedLanes=Re);var c=e.eventTimes,p=Mf(n);c[p]=s}function Lg(e,n){e.suspendedLanes|=n,e.pingedLanes&=~n;for(var s=e.expirationTimes,c=n;c>0;){var p=Fs(c),b=1<<p;s[p]=Mn,c&=~b}}function Pf(e,n,s){e.pingedLanes|=e.suspendedLanes&n}function Ff(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=Re,e.pingedLanes=Re,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n;for(var c=e.entanglements,p=e.eventTimes,b=e.expirationTimes,E=s;E>0;){var N=Fs(E),O=1<<N;c[N]=Re,p[N]=Mn,b[N]=Mn,E&=~O}}function $h(e,n){for(var s=e.entangledLanes|=n,c=e.entanglements,p=s;p;){var b=Fs(p),E=1<<b;E&n|c[b]&n&&(c[b]|=n),p&=~E}}function Pg(e,n){var s=ur(n),c;switch(s){case Wo:c=co;break;case mi:c=tr;break;case Aa:case ja:case wl:case nd:case rd:case xf:case Sf:case Ef:case wf:case Rf:case Tf:case _f:case Nf:case Rl:case If:case Au:case _l:case ad:case Af:case jf:case Of:c=El;break;case Ls:c=ju;break;default:c=lr;break}return(c&(e.suspendedLanes|n))!==lr?lr:c}function Vf(e,n,s){if(qa)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=Mf(s),b=1<<p,E=c[p];E.add(n),s&=~b}}function Uh(e,n){if(qa)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;n>0;){var p=Mf(n),b=1<<p,E=s[p];E.size>0&&(E.forEach(function(N){var O=N.alternate;(O===null||!c.has(O))&&c.add(N)}),E.clear()),n&=~b}}function dd(e,n){return null}var cr=Ct,Xo=Wo,fo=mi,ku=Ls,Mu=lr;function gi(){return Mu}function nr(e){Mu=e}function Qr(e,n){var s=Mu;try{return Mu=e,n()}finally{Mu=s}}function EC(e,n){return e!==0&&e<n?e:n}function wC(e,n){return e===0||e>n?e:n}function Lu(e,n){return e!==0&&e<n}function Vr(e){var n=ur(e);return Lu(cr,n)?Lu(Xo,n)?sd(n)?fo:ku:Xo:cr}function Bf(e){var n=e.current.memoizedState;return n.isDehydrated}var nt;function Pu(e){nt=e}function Hh(e){nt(e)}var zf;function RC(e){zf=e}var Fu;function $f(e){Fu=e}var Uf;function Fg(e){Uf=e}var Gh;function Vg(e){Gh=e}var fd=!1,Vu=[],Un=null,Ar=null,ia=null,Bu=new Map,zu=new Map,jr=[],Bg=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function po(e){return Bg.indexOf(e)>-1}function TC(e,n,s,c,p){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function Wh(e,n){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":{var s=n.pointerId;Bu.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=n.pointerId;zu.delete(c);break}}}function $u(e,n,s,c,p,b){if(e===null||e.nativeEvent!==b){var E=TC(n,s,c,p,b);if(n!==null){var N=Ju(n);N!==null&&zf(N)}return E}e.eventSystemFlags|=c;var O=e.targetContainers;return p!==null&&O.indexOf(p)===-1&&O.push(p),e}function zg(e,n,s,c,p){switch(n){case"focusin":{var b=p;return Un=$u(Un,e,n,s,c,b),!0}case"dragenter":{var E=p;return Ar=$u(Ar,e,n,s,c,E),!0}case"mouseover":{var N=p;return ia=$u(ia,e,n,s,c,N),!0}case"pointerover":{var O=p,V=O.pointerId;return Bu.set(V,$u(Bu.get(V)||null,e,n,s,c,O)),!0}case"gotpointercapture":{var H=p,te=H.pointerId;return zu.set(te,$u(zu.get(te)||null,e,n,s,c,H)),!0}}return!1}function Xh(e){var n=wd(e.target);if(n!==null){var s=As(n);if(s!==null){var c=s.tag;if(c===z){var p=hf(s);if(p!==null){e.blockedOn=p,Gh(e.priority,function(){Fu(s)});return}}else if(c===R){var b=s.stateNode;if(Bf(b)){e.blockedOn=vf(s);return}}}}e.blockedOn=null}function _C(e){for(var n=Uf(),s={blockedOn:null,target:e,priority:n},c=0;c<jr.length&&Lu(n,jr[c].priority);c++);jr.splice(c,0,s),c===0&&Xh(s)}function jl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;n.length>0;){var s=n[0],c=Kr(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(c===null){var p=e.nativeEvent,b=new p.constructor(p.type,p);vC(b),p.target.dispatchEvent(b),fg()}else{var E=Ju(c);return E!==null&&zf(E),e.blockedOn=c,!1}n.shift()}return!0}function Hf(e,n,s){jl(e)&&s.delete(n)}function yi(){fd=!1,Un!==null&&jl(Un)&&(Un=null),Ar!==null&&jl(Ar)&&(Ar=null),ia!==null&&jl(ia)&&(ia=null),Bu.forEach(Hf),zu.forEach(Hf)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,fd||(fd=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yi)))}function rr(e){if(Vu.length>0){zt(Vu[0],e);for(var n=1;n<Vu.length;n++){var s=Vu[n];s.blockedOn===e&&(s.blockedOn=null)}}Un!==null&&zt(Un,e),Ar!==null&&zt(Ar,e),ia!==null&&zt(ia,e);var c=function(N){return zt(N,e)};Bu.forEach(c),zu.forEach(c);for(var p=0;p<jr.length;p++){var b=jr[p];b.blockedOn===e&&(b.blockedOn=null)}for(;jr.length>0;){var E=jr[0];if(E.blockedOn!==null)break;Xh(E),E.blockedOn===null&&jr.shift()}}var zn=l.ReactCurrentBatchConfig,Cr=!0;function ka(e){Cr=!!e}function Uu(){return Cr}function xr(e,n,s){var c=Gf(n),p;switch(c){case cr:p=pd;break;case Xo:p=Ol;break;case fo:default:p=Hu;break}return p.bind(null,n,s,e)}function pd(e,n,s,c){var p=gi(),b=zn.transition;zn.transition=null;try{nr(cr),Hu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Ol(e,n,s,c){var p=gi(),b=zn.transition;zn.transition=null;try{nr(Xo),Hu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Hu(e,n,s,c){Cr&&Yh(e,n,s,c)}function Yh(e,n,s,c){var p=Kr(e,n,s,c);if(p===null){HC(e,n,c,Vs,s),Wh(e,c);return}if(zg(p,e,n,s,c)){c.stopPropagation();return}if(Wh(e,c),n&Uc&&po(e)){for(;p!==null;){var b=Ju(p);b!==null&&Hh(b);var E=Kr(e,n,s,c);if(E===null&&HC(e,n,c,Vs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}HC(e,n,c,null,s)}var Vs=null;function Kr(e,n,s,c){Vs=null;var p=_n(c),b=wd(p);if(b!==null){var E=As(b);if(E===null)b=null;else{var N=E.tag;if(N===z){var O=hf(E);if(O!==null)return O;b=null}else if(N===R){var V=E.stateNode;if(Bf(V))return vf(E);b=null}else E!==b&&(b=null)}}return Vs=b,null}function Gf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return cr;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Xo;case"message":{var n=yC();switch(n){case Ia:return cr;case Eu:return Xo;case lo:case wu:return fo;case qc:return ku;default:return fo}}default:return fo}}function Gu(e,n,s){return e.addEventListener(n,s,!1),s}function Yo(e,n,s){return e.addEventListener(n,s,!0),s}function Wf(e,n,s,c){return e.addEventListener(n,s,{capture:!0,passive:c}),s}function Zh(e,n,s,c){return e.addEventListener(n,s,{passive:c}),s}var bi=null,Wu=null,Ci=null;function Xf(e){return bi=e,Wu=vd(),!0}function hd(){bi=null,Wu=null,Ci=null}function Yf(){if(Ci)return Ci;var e,n=Wu,s=n.length,c,p=vd(),b=p.length;for(e=0;e<s&&n[e]===p[e];e++);var E=s-e;for(c=1;c<=E&&n[s-c]===p[b-c];c++);var N=c>1?1-c:void 0;return Ci=p.slice(e,N),Ci}function vd(){return"value"in bi?bi.value:bi.textContent}function Dl(e){var n,s=e.keyCode;return"charCode"in e?(n=e.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),n>=32||n===13?n:0}function Or(){return!0}function Zo(){return!1}function Zn(e){function n(s,c,p,b,E){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=b,this.target=E,this.currentTarget=null;for(var N in e)if(e.hasOwnProperty(N)){var O=e[N];O?this[N]=O(b):this[N]=b[N]}var V=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return V?this.isDefaultPrevented=Or:this.isDefaultPrevented=Zo,this.isPropagationStopped=Zo,this}return Lt(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Or)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Or)},persist:function(){},isPersistent:Or}),n}var Sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zf=Zn(Sr),kl=Lt({},Sr,{view:0,detail:0}),qh=Zn(kl),Jh,ho,Xu;function Qh(e){e!==Xu&&(Xu&&e.type==="mousemove"?(Jh=e.screenX-Xu.screenX,ho=e.screenY-Xu.screenY):(Jh=0,ho=0),Xu=e)}var vo=Lt({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(Qh(e),Jh)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),qf=Zn(vo),Ml=Lt({},vo,{dataTransfer:0}),$g=Zn(Ml),Ug=Lt({},kl,{relatedTarget:0}),md=Zn(Ug),Jf=Lt({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),NC=Zn(Jf),IC=Lt({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hg=Zn(IC),Gg=Lt({},Sr,{data:0}),Bs=Zn(Gg),AC=Bs,Yu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function ar(e){if(e.key){var n=Yu[e.key]||e.key;if(n!=="Unidentified")return n}if(e.type==="keypress"){var s=Dl(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?Wg[e.keyCode]||"Unidentified":""}var jC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xg(e){var n=this,s=n.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var c=jC[e];return c?!!s[c]:!1}function Kh(e){return Xg}var OC=Lt({},kl,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kh,charCode:function(e){return e.type==="keypress"?Dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yg=Zn(OC),Zg=Lt({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qg=Zn(Zg),xi=Lt({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kh}),ev=Zn(xi),DC=Lt({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),zs=Zn(DC),Qf=Lt({},vo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ll=Zn(Qf),Kf=[9,13,27,32],ep=229,gd=Rt&&"CompositionEvent"in window,yd=null;Rt&&"documentMode"in document&&(yd=document.documentMode);var tv=Rt&&"TextEvent"in window&&!yd,Jg=Rt&&(!gd||yd&&yd>8&&yd<=11),nv=32,rv=String.fromCharCode(nv);function tp(){ot("onBeforeInput",["compositionend","keypress","textInput","paste"]),ot("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),ot("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),ot("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var bd=!1;function Qg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function av(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function kC(e,n){return e==="keydown"&&n.keyCode===ep}function iv(e,n){switch(e){case"keyup":return Kf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==ep;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function np(e){var n=e.detail;return typeof n=="object"&&"data"in n?n.data:null}function Cd(e){return e.locale==="ko"}var $s=!1;function rp(e,n,s,c,p){var b,E;if(gd?b=av(n):$s?iv(n,c)&&(b="onCompositionEnd"):kC(n,c)&&(b="onCompositionStart"),!b)return null;Jg&&!Cd(c)&&(!$s&&b==="onCompositionStart"?$s=Xf(p):b==="onCompositionEnd"&&$s&&(E=Yf()));var N=ay(s,b);if(N.length>0){var O=new Bs(b,n,null,c,p);if(e.push({event:O,listeners:N}),E)O.data=E;else{var V=np(c);V!==null&&(O.data=V)}}}function Kg(e,n){switch(e){case"compositionend":return np(n);case"keypress":var s=n.which;return s!==nv?null:(bd=!0,rv);case"textInput":var c=n.data;return c===rv&&bd?null:c;default:return null}}function MC(e,n){if($s){if(e==="compositionend"||!gd&&iv(e,n)){var s=Yf();return hd(),$s=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!Qg(n)){if(n.char&&n.char.length>1)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Jg&&!Cd(n)?null:n.data;default:return null}}function ap(e,n,s,c,p){var b;if(tv?b=Kg(n,c):b=MC(n,c),!b)return null;var E=ay(s,"onBeforeInput");if(E.length>0){var N=new AC("onBeforeInput","beforeinput",null,c,p);e.push({event:N,listeners:E}),N.data=b}}function LC(e,n,s,c,p,b,E){rp(e,n,s,c,p),ap(e,n,s,c,p)}var xd={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 ey(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!xd[e.type]:n==="textarea"}/**
|
|
113
113
|
* Checks if an event is supported in the current execution environment.
|
|
114
114
|
*
|
|
115
115
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
@@ -157,7 +157,7 @@ The old API will be supported in all 16.x releases, but applications using it sh
|
|
|
157
157
|
|
|
158
158
|
Please update the following components: %s
|
|
159
159
|
|
|
160
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{Fn()}}})},Ko.discardPendingWarnings=function(){Cv=[],xv=[],Sv=[],Ev=[],wv=[],Rv=[],Ny=new Map}}function es(e,n){if(e&&e.defaultProps){var s=Lt({},n),c=e.defaultProps;for(var p in c)s[p]===void 0&&(s[p]=c[p]);return s}return n}var bx=Qu(null),Cx;Cx={};var Iy=null,gp=null,xx=null,Ay=!1;function jy(){Iy=null,gp=null,xx=null,Ay=!1}function nT(){Ay=!0}function rT(){Ay=!1}function aT(e,n,s){La(bx,n._currentValue,e),n._currentValue=s,n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==Cx&&h("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=Cx}function Sx(e,n){var s=bx.current;Ma(bx,n),e._currentValue=s}function Ex(e,n,s){for(var c=e;c!==null;){var p=c.alternate;if(Il(c.childLanes,n)?p!==null&&!Il(p.childLanes,n)&&(p.childLanes=Dt(p.childLanes,n)):(c.childLanes=Dt(c.childLanes,n),p!==null&&(p.childLanes=Dt(p.childLanes,n))),c===s)break;c=c.return}c!==s&&h("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function UP(e,n,s){HP(e,n,s)}function HP(e,n,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var p=void 0,b=c.dependencies;if(b!==null){p=c.child;for(var E=b.firstContext;E!==null;){if(E.context===n){if(c.tag===x){var N=Du(s),O=$l(Mn,N);O.tag=Dy;var V=c.updateQueue;if(V!==null){var H=V.shared,te=H.pending;te===null?O.next=O:(O.next=te.next,te.next=O),H.pending=O}}c.lanes=Dt(c.lanes,s);var K=c.alternate;K!==null&&(K.lanes=Dt(K.lanes,s)),Ex(c.return,s,e),b.lanes=Dt(b.lanes,s);break}E=E.next}}else if(c.tag===F)p=c.type===e.type?null:c.child;else if(c.tag===ge){var he=c.return;if(he===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");he.lanes=Dt(he.lanes,s);var ve=he.alternate;ve!==null&&(ve.lanes=Dt(ve.lanes,s)),Ex(he,s,e),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===e){p=null;break}var xe=p.sibling;if(xe!==null){xe.return=p.return,p=xe;break}p=p.return}c=p}}function yp(e,n){Iy=e,gp=null,xx=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(Da(s.lanes,n)&&Vv(),s.firstContext=null)}}function Dr(e){Ay&&h("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var n=e._currentValue;if(xx!==e){var s={context:e,memoizedValue:n,next:null};if(gp===null){if(Iy===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");gp=s,Iy.dependencies={lanes:Re,firstContext:s}}else gp=gp.next=s}return n}var jd=null;function wx(e){jd===null?jd=[e]:jd.push(e)}function GP(){if(jd!==null){for(var e=0;e<jd.length;e++){var n=jd[e],s=n.interleaved;if(s!==null){n.interleaved=null;var c=s.next,p=n.pending;if(p!==null){var b=p.next;p.next=c,s.next=b}n.pending=s}}jd=null}}function iT(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wx(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function WP(e,n,s,c){var p=n.interleaved;p===null?(s.next=s,wx(n)):(s.next=p.next,p.next=s),n.interleaved=s}function XP(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wx(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function Ei(e,n){return Oy(e,n)}var YP=Oy;function Oy(e,n){e.lanes=Dt(e.lanes,n);var s=e.alternate;s!==null&&(s.lanes=Dt(s.lanes,n)),s===null&&(e.flags&(Nn|oo))!==mt&&oN(e);for(var c=e,p=e.return;p!==null;)p.childLanes=Dt(p.childLanes,n),s=p.alternate,s!==null?s.childLanes=Dt(s.childLanes,n):(p.flags&(Nn|oo))!==mt&&oN(e),c=p,p=p.return;if(c.tag===R){var b=c.stateNode;return b}else return null}var oT=0,sT=1,Dy=2,Rx=3,ky=!1,Tx,My;Tx=!1,My=null;function _x(e){var n={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Re},effects:null};e.updateQueue=n}function lT(e,n){var s=n.updateQueue,c=e.updateQueue;if(s===c){var p={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects};n.updateQueue=p}}function $l(e,n){var s={eventTime:e,lane:n,tag:oT,payload:null,callback:null,next:null};return s}function nc(e,n,s){var c=e.updateQueue;if(c===null)return null;var p=c.shared;if(My===p&&!Tx&&(h("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Tx=!0),YV()){var b=p.pending;return b===null?n.next=n:(n.next=b.next,b.next=n),p.pending=n,YP(e,s)}else return XP(e,p,n,s)}function Ly(e,n,s){var c=n.updateQueue;if(c!==null){var p=c.shared;if(zh(s)){var b=p.lanes;b=Lf(b,e.pendingLanes);var E=Dt(b,s);p.lanes=E,$h(e,E)}}}function Nx(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null){var p=c.updateQueue;if(s===p){var b=null,E=null,N=s.firstBaseUpdate;if(N!==null){var O=N;do{var V={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};E===null?b=E=V:(E.next=V,E=V),O=O.next}while(O!==null);E===null?b=E=n:(E.next=n,E=n)}else b=E=n;s={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:E,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var H=s.lastBaseUpdate;H===null?s.firstBaseUpdate=n:H.next=n,s.lastBaseUpdate=n}function ZP(e,n,s,c,p,b){switch(s.tag){case sT:{var E=s.payload;if(typeof E=="function"){nT();var N=E.call(b,c,p);{if(e.mode&er){kn(!0);try{E.call(b,c,p)}finally{kn(!1)}}rT()}return N}return E}case Rx:e.flags=e.flags&~Pr|At;case oT:{var O=s.payload,V;if(typeof O=="function"){nT(),V=O.call(b,c,p);{if(e.mode&er){kn(!0);try{O.call(b,c,p)}finally{kn(!1)}}rT()}}else V=O;return V==null?c:Lt({},c,V)}case Dy:return ky=!0,c}return c}function Py(e,n,s,c){var p=e.updateQueue;ky=!1,My=p.shared;var b=p.firstBaseUpdate,E=p.lastBaseUpdate,N=p.shared.pending;if(N!==null){p.shared.pending=null;var O=N,V=O.next;O.next=null,E===null?b=V:E.next=V,E=O;var H=e.alternate;if(H!==null){var te=H.updateQueue,K=te.lastBaseUpdate;K!==E&&(K===null?te.firstBaseUpdate=V:K.next=V,te.lastBaseUpdate=O)}}if(b!==null){var he=p.baseState,ve=Re,xe=null,Ke=null,yt=null,pt=b;do{var Wt=pt.lane,$t=pt.eventTime;if(Il(c,Wt)){if(yt!==null){var Se={eventTime:$t,lane:lr,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt=yt.next=Se}he=ZP(e,p,pt,he,n,s);var se=pt.callback;if(se!==null&&pt.lane!==lr){e.flags|=Ir;var Fe=p.effects;Fe===null?p.effects=[pt]:Fe.push(pt)}}else{var oe={eventTime:$t,lane:Wt,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt===null?(Ke=yt=oe,xe=he):yt=yt.next=oe,ve=Dt(ve,Wt)}if(pt=pt.next,pt===null){if(N=p.shared.pending,N===null)break;var et=N,Ze=et.next;et.next=null,pt=Ze,p.lastBaseUpdate=et,p.shared.pending=null}}while(!0);yt===null&&(xe=he),p.baseState=xe,p.firstBaseUpdate=Ke,p.lastBaseUpdate=yt;var Nt=p.shared.interleaved;if(Nt!==null){var Ot=Nt;do ve=Dt(ve,Ot.lane),Ot=Ot.next;while(Ot!==Nt)}else b===null&&(p.shared.lanes=Re);Jv(ve),e.lanes=ve,e.memoizedState=he}My=null}function qP(e,n){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(n)}function uT(){ky=!1}function Fy(){return ky}function cT(e,n,s){var c=n.effects;if(n.effects=null,c!==null)for(var p=0;p<c.length;p++){var b=c[p],E=b.callback;E!==null&&(b.callback=null,qP(E,s))}}var Ix={},dT=new r.Component().refs,Ax,jx,Ox,Dx,kx,fT,Vy,Mx,Lx,Px;{Ax=new Set,jx=new Set,Ox=new Set,Dx=new Set,Mx=new Set,kx=new Set,Lx=new Set,Px=new Set;var pT=new Set;Vy=function(e,n){if(!(e===null||typeof e=="function")){var s=n+"_"+e;pT.has(s)||(pT.add(s),h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e))}},fT=function(e,n){if(n===void 0){var s=Zt(e)||"Component";kx.has(s)||(kx.add(s),h("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(Ix,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Ix)}function Fx(e,n,s,c){var p=e.memoizedState,b=s(c,p);{if(e.mode&er){kn(!0);try{b=s(c,p)}finally{kn(!1)}}fT(n,b)}var E=b==null?p:Lt({},p,b);if(e.memoizedState=E,e.lanes===Re){var N=e.updateQueue;N.baseState=E}}var Vx={isMounted:Za,enqueueSetState:function(e,n,s){var c=io(e),p=ei(),b=cc(c),E=$l(p,b);E.payload=n,s!=null&&(Vy(s,"setState"),E.callback=s);var N=nc(c,E,b);N!==null&&(Xr(N,c,b,p),Ly(N,c,b)),Cf(c,b)},enqueueReplaceState:function(e,n,s){var c=io(e),p=ei(),b=cc(c),E=$l(p,b);E.tag=sT,E.payload=n,s!=null&&(Vy(s,"replaceState"),E.callback=s);var N=nc(c,E,b);N!==null&&(Xr(N,c,b,p),Ly(N,c,b)),Cf(c,b)},enqueueForceUpdate:function(e,n){var s=io(e),c=ei(),p=cc(s),b=$l(c,p);b.tag=Dy,n!=null&&(Vy(n,"forceUpdate"),b.callback=n);var E=nc(s,b,p);E!==null&&(Xr(E,s,p,c),Ly(E,s,p)),Iu(s,p)}};function hT(e,n,s,c,p,b,E){var N=e.stateNode;if(typeof N.shouldComponentUpdate=="function"){var O=N.shouldComponentUpdate(c,b,E);{if(e.mode&er){kn(!0);try{O=N.shouldComponentUpdate(c,b,E)}finally{kn(!1)}}O===void 0&&h("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Zt(n)||"Component")}return O}return n.prototype&&n.prototype.isPureReactComponent?!Et(s,c)||!Et(p,b):!0}function JP(e,n,s){var c=e.stateNode;{var p=Zt(n)||"Component",b=c.render;b||(n.prototype&&typeof n.prototype.render=="function"?h("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):h("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),c.getInitialState&&!c.getInitialState.isReactClassApproved&&!c.state&&h("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&h("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),c.propTypes&&h("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),c.contextType&&h("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),c.contextTypes&&h("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),n.contextType&&n.contextTypes&&!Lx.has(n)&&(Lx.add(n),h("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof c.componentShouldUpdate=="function"&&h("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),n.prototype&&n.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&h("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Zt(n)||"A pure component"),typeof c.componentDidUnmount=="function"&&h("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof c.componentDidReceiveProps=="function"&&h("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof c.componentWillRecieveProps=="function"&&h("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof c.UNSAFE_componentWillRecieveProps=="function"&&h("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var E=c.props!==s;c.props!==void 0&&E&&h("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),c.defaultProps&&h("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof c.getSnapshotBeforeUpdate=="function"&&typeof c.componentDidUpdate!="function"&&!Ox.has(n)&&(Ox.add(n),h("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Zt(n))),typeof c.getDerivedStateFromProps=="function"&&h("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof c.getDerivedStateFromError=="function"&&h("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof n.getSnapshotBeforeUpdate=="function"&&h("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var N=c.state;N&&(typeof N!="object"||qt(N))&&h("%s.state: must be set to an object or null",p),typeof c.getChildContext=="function"&&typeof n.childContextTypes!="object"&&h("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function vT(e,n){n.updater=Vx,e.stateNode=n,ff(n,e),n._reactInternalInstance=Ix}function mT(e,n,s){var c=!1,p=Hi,b=Hi,E=n.contextType;if("contextType"in n){var N=E===null||E!==void 0&&E.$$typeof===He&&E._context===void 0;if(!N&&!Px.has(n)){Px.add(n);var O="";E===void 0?O=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?O=" However, it is set to a "+typeof E+".":E.$$typeof===ke?O=" Did you accidentally pass the Context.Provider instead?":E._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",h("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Zt(n)||"Component",O)}}if(typeof E=="object"&&E!==null)b=Dr(E);else{p=fp(e,n,!0);var V=n.contextTypes;c=V!=null,b=c?pp(e,p):Hi}var H=new n(s,b);if(e.mode&er){kn(!0);try{H=new n(s,b)}finally{kn(!1)}}var te=e.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;vT(e,H);{if(typeof n.getDerivedStateFromProps=="function"&&te===null){var K=Zt(n)||"Component";jx.has(K)||(jx.add(K),h("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",K,H.state===null?"null":"undefined",K))}if(typeof n.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var he=null,ve=null,xe=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?he="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(he="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ve="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(ve="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?xe="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(xe="UNSAFE_componentWillUpdate"),he!==null||ve!==null||xe!==null){var Ke=Zt(n)||"Component",yt=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Dx.has(Ke)||(Dx.add(Ke),h(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
160
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{Fn()}}})},Ko.discardPendingWarnings=function(){Cv=[],xv=[],Sv=[],Ev=[],wv=[],Rv=[],Ny=new Map}}function es(e,n){if(e&&e.defaultProps){var s=Lt({},n),c=e.defaultProps;for(var p in c)s[p]===void 0&&(s[p]=c[p]);return s}return n}var bx=Qu(null),Cx;Cx={};var Iy=null,gp=null,xx=null,Ay=!1;function jy(){Iy=null,gp=null,xx=null,Ay=!1}function nT(){Ay=!0}function rT(){Ay=!1}function aT(e,n,s){La(bx,n._currentValue,e),n._currentValue=s,n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==Cx&&h("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=Cx}function Sx(e,n){var s=bx.current;Ma(bx,n),e._currentValue=s}function Ex(e,n,s){for(var c=e;c!==null;){var p=c.alternate;if(Il(c.childLanes,n)?p!==null&&!Il(p.childLanes,n)&&(p.childLanes=Dt(p.childLanes,n)):(c.childLanes=Dt(c.childLanes,n),p!==null&&(p.childLanes=Dt(p.childLanes,n))),c===s)break;c=c.return}c!==s&&h("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function UP(e,n,s){HP(e,n,s)}function HP(e,n,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var p=void 0,b=c.dependencies;if(b!==null){p=c.child;for(var E=b.firstContext;E!==null;){if(E.context===n){if(c.tag===x){var N=Du(s),O=$l(Mn,N);O.tag=Dy;var V=c.updateQueue;if(V!==null){var H=V.shared,te=H.pending;te===null?O.next=O:(O.next=te.next,te.next=O),H.pending=O}}c.lanes=Dt(c.lanes,s);var K=c.alternate;K!==null&&(K.lanes=Dt(K.lanes,s)),Ex(c.return,s,e),b.lanes=Dt(b.lanes,s);break}E=E.next}}else if(c.tag===F)p=c.type===e.type?null:c.child;else if(c.tag===ge){var he=c.return;if(he===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");he.lanes=Dt(he.lanes,s);var ve=he.alternate;ve!==null&&(ve.lanes=Dt(ve.lanes,s)),Ex(he,s,e),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===e){p=null;break}var xe=p.sibling;if(xe!==null){xe.return=p.return,p=xe;break}p=p.return}c=p}}function yp(e,n){Iy=e,gp=null,xx=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(Da(s.lanes,n)&&Vv(),s.firstContext=null)}}function Dr(e){Ay&&h("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var n=e._currentValue;if(xx!==e){var s={context:e,memoizedValue:n,next:null};if(gp===null){if(Iy===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");gp=s,Iy.dependencies={lanes:Re,firstContext:s}}else gp=gp.next=s}return n}var jd=null;function wx(e){jd===null?jd=[e]:jd.push(e)}function GP(){if(jd!==null){for(var e=0;e<jd.length;e++){var n=jd[e],s=n.interleaved;if(s!==null){n.interleaved=null;var c=s.next,p=n.pending;if(p!==null){var b=p.next;p.next=c,s.next=b}n.pending=s}}jd=null}}function iT(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wx(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function WP(e,n,s,c){var p=n.interleaved;p===null?(s.next=s,wx(n)):(s.next=p.next,p.next=s),n.interleaved=s}function XP(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wx(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function Ei(e,n){return Oy(e,n)}var YP=Oy;function Oy(e,n){e.lanes=Dt(e.lanes,n);var s=e.alternate;s!==null&&(s.lanes=Dt(s.lanes,n)),s===null&&(e.flags&(Nn|oo))!==mt&&oN(e);for(var c=e,p=e.return;p!==null;)p.childLanes=Dt(p.childLanes,n),s=p.alternate,s!==null?s.childLanes=Dt(s.childLanes,n):(p.flags&(Nn|oo))!==mt&&oN(e),c=p,p=p.return;if(c.tag===R){var b=c.stateNode;return b}else return null}var oT=0,sT=1,Dy=2,Rx=3,ky=!1,Tx,My;Tx=!1,My=null;function _x(e){var n={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Re},effects:null};e.updateQueue=n}function lT(e,n){var s=n.updateQueue,c=e.updateQueue;if(s===c){var p={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects};n.updateQueue=p}}function $l(e,n){var s={eventTime:e,lane:n,tag:oT,payload:null,callback:null,next:null};return s}function nc(e,n,s){var c=e.updateQueue;if(c===null)return null;var p=c.shared;if(My===p&&!Tx&&(h("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Tx=!0),YV()){var b=p.pending;return b===null?n.next=n:(n.next=b.next,b.next=n),p.pending=n,YP(e,s)}else return XP(e,p,n,s)}function Ly(e,n,s){var c=n.updateQueue;if(c!==null){var p=c.shared;if(zh(s)){var b=p.lanes;b=Lf(b,e.pendingLanes);var E=Dt(b,s);p.lanes=E,$h(e,E)}}}function Nx(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null){var p=c.updateQueue;if(s===p){var b=null,E=null,N=s.firstBaseUpdate;if(N!==null){var O=N;do{var V={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};E===null?b=E=V:(E.next=V,E=V),O=O.next}while(O!==null);E===null?b=E=n:(E.next=n,E=n)}else b=E=n;s={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:E,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var H=s.lastBaseUpdate;H===null?s.firstBaseUpdate=n:H.next=n,s.lastBaseUpdate=n}function ZP(e,n,s,c,p,b){switch(s.tag){case sT:{var E=s.payload;if(typeof E=="function"){nT();var N=E.call(b,c,p);{if(e.mode&er){kn(!0);try{E.call(b,c,p)}finally{kn(!1)}}rT()}return N}return E}case Rx:e.flags=e.flags&~Pr|At;case oT:{var O=s.payload,V;if(typeof O=="function"){nT(),V=O.call(b,c,p);{if(e.mode&er){kn(!0);try{O.call(b,c,p)}finally{kn(!1)}}rT()}}else V=O;return V==null?c:Lt({},c,V)}case Dy:return ky=!0,c}return c}function Py(e,n,s,c){var p=e.updateQueue;ky=!1,My=p.shared;var b=p.firstBaseUpdate,E=p.lastBaseUpdate,N=p.shared.pending;if(N!==null){p.shared.pending=null;var O=N,V=O.next;O.next=null,E===null?b=V:E.next=V,E=O;var H=e.alternate;if(H!==null){var te=H.updateQueue,K=te.lastBaseUpdate;K!==E&&(K===null?te.firstBaseUpdate=V:K.next=V,te.lastBaseUpdate=O)}}if(b!==null){var he=p.baseState,ve=Re,xe=null,Ke=null,yt=null,pt=b;do{var Wt=pt.lane,$t=pt.eventTime;if(Il(c,Wt)){if(yt!==null){var Se={eventTime:$t,lane:lr,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt=yt.next=Se}he=ZP(e,p,pt,he,n,s);var se=pt.callback;if(se!==null&&pt.lane!==lr){e.flags|=Ir;var Fe=p.effects;Fe===null?p.effects=[pt]:Fe.push(pt)}}else{var oe={eventTime:$t,lane:Wt,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt===null?(Ke=yt=oe,xe=he):yt=yt.next=oe,ve=Dt(ve,Wt)}if(pt=pt.next,pt===null){if(N=p.shared.pending,N===null)break;var et=N,Ze=et.next;et.next=null,pt=Ze,p.lastBaseUpdate=et,p.shared.pending=null}}while(!0);yt===null&&(xe=he),p.baseState=xe,p.firstBaseUpdate=Ke,p.lastBaseUpdate=yt;var Nt=p.shared.interleaved;if(Nt!==null){var Ot=Nt;do ve=Dt(ve,Ot.lane),Ot=Ot.next;while(Ot!==Nt)}else b===null&&(p.shared.lanes=Re);Jv(ve),e.lanes=ve,e.memoizedState=he}My=null}function qP(e,n){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(n)}function uT(){ky=!1}function Fy(){return ky}function cT(e,n,s){var c=n.effects;if(n.effects=null,c!==null)for(var p=0;p<c.length;p++){var b=c[p],E=b.callback;E!==null&&(b.callback=null,qP(E,s))}}var Ix={},dT=new r.Component().refs,Ax,jx,Ox,Dx,kx,fT,Vy,Mx,Lx,Px;{Ax=new Set,jx=new Set,Ox=new Set,Dx=new Set,Mx=new Set,kx=new Set,Lx=new Set,Px=new Set;var pT=new Set;Vy=function(e,n){if(!(e===null||typeof e=="function")){var s=n+"_"+e;pT.has(s)||(pT.add(s),h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e))}},fT=function(e,n){if(n===void 0){var s=Yt(e)||"Component";kx.has(s)||(kx.add(s),h("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(Ix,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Ix)}function Fx(e,n,s,c){var p=e.memoizedState,b=s(c,p);{if(e.mode&er){kn(!0);try{b=s(c,p)}finally{kn(!1)}}fT(n,b)}var E=b==null?p:Lt({},p,b);if(e.memoizedState=E,e.lanes===Re){var N=e.updateQueue;N.baseState=E}}var Vx={isMounted:Za,enqueueSetState:function(e,n,s){var c=io(e),p=ei(),b=cc(c),E=$l(p,b);E.payload=n,s!=null&&(Vy(s,"setState"),E.callback=s);var N=nc(c,E,b);N!==null&&(Xr(N,c,b,p),Ly(N,c,b)),Cf(c,b)},enqueueReplaceState:function(e,n,s){var c=io(e),p=ei(),b=cc(c),E=$l(p,b);E.tag=sT,E.payload=n,s!=null&&(Vy(s,"replaceState"),E.callback=s);var N=nc(c,E,b);N!==null&&(Xr(N,c,b,p),Ly(N,c,b)),Cf(c,b)},enqueueForceUpdate:function(e,n){var s=io(e),c=ei(),p=cc(s),b=$l(c,p);b.tag=Dy,n!=null&&(Vy(n,"forceUpdate"),b.callback=n);var E=nc(s,b,p);E!==null&&(Xr(E,s,p,c),Ly(E,s,p)),Iu(s,p)}};function hT(e,n,s,c,p,b,E){var N=e.stateNode;if(typeof N.shouldComponentUpdate=="function"){var O=N.shouldComponentUpdate(c,b,E);{if(e.mode&er){kn(!0);try{O=N.shouldComponentUpdate(c,b,E)}finally{kn(!1)}}O===void 0&&h("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Yt(n)||"Component")}return O}return n.prototype&&n.prototype.isPureReactComponent?!Et(s,c)||!Et(p,b):!0}function JP(e,n,s){var c=e.stateNode;{var p=Yt(n)||"Component",b=c.render;b||(n.prototype&&typeof n.prototype.render=="function"?h("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):h("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),c.getInitialState&&!c.getInitialState.isReactClassApproved&&!c.state&&h("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&h("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),c.propTypes&&h("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),c.contextType&&h("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),c.contextTypes&&h("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),n.contextType&&n.contextTypes&&!Lx.has(n)&&(Lx.add(n),h("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof c.componentShouldUpdate=="function"&&h("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),n.prototype&&n.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&h("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Yt(n)||"A pure component"),typeof c.componentDidUnmount=="function"&&h("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof c.componentDidReceiveProps=="function"&&h("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof c.componentWillRecieveProps=="function"&&h("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof c.UNSAFE_componentWillRecieveProps=="function"&&h("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var E=c.props!==s;c.props!==void 0&&E&&h("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),c.defaultProps&&h("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof c.getSnapshotBeforeUpdate=="function"&&typeof c.componentDidUpdate!="function"&&!Ox.has(n)&&(Ox.add(n),h("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Yt(n))),typeof c.getDerivedStateFromProps=="function"&&h("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof c.getDerivedStateFromError=="function"&&h("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof n.getSnapshotBeforeUpdate=="function"&&h("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var N=c.state;N&&(typeof N!="object"||Zt(N))&&h("%s.state: must be set to an object or null",p),typeof c.getChildContext=="function"&&typeof n.childContextTypes!="object"&&h("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function vT(e,n){n.updater=Vx,e.stateNode=n,ff(n,e),n._reactInternalInstance=Ix}function mT(e,n,s){var c=!1,p=Hi,b=Hi,E=n.contextType;if("contextType"in n){var N=E===null||E!==void 0&&E.$$typeof===He&&E._context===void 0;if(!N&&!Px.has(n)){Px.add(n);var O="";E===void 0?O=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?O=" However, it is set to a "+typeof E+".":E.$$typeof===ke?O=" Did you accidentally pass the Context.Provider instead?":E._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",h("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Yt(n)||"Component",O)}}if(typeof E=="object"&&E!==null)b=Dr(E);else{p=fp(e,n,!0);var V=n.contextTypes;c=V!=null,b=c?pp(e,p):Hi}var H=new n(s,b);if(e.mode&er){kn(!0);try{H=new n(s,b)}finally{kn(!1)}}var te=e.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;vT(e,H);{if(typeof n.getDerivedStateFromProps=="function"&&te===null){var K=Yt(n)||"Component";jx.has(K)||(jx.add(K),h("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",K,H.state===null?"null":"undefined",K))}if(typeof n.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var he=null,ve=null,xe=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?he="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(he="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ve="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(ve="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?xe="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(xe="UNSAFE_componentWillUpdate"),he!==null||ve!==null||xe!==null){var Ke=Yt(n)||"Component",yt=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Dx.has(Ke)||(Dx.add(Ke),h(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
161
161
|
|
|
162
162
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
163
163
|
|
|
@@ -165,11 +165,11 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
165
165
|
https://reactjs.org/link/unsafe-component-lifecycles`,Ke,yt,he!==null?`
|
|
166
166
|
`+he:"",ve!==null?`
|
|
167
167
|
`+ve:"",xe!==null?`
|
|
168
|
-
`+xe:""))}}}return c&&B1(e,p,b),H}function QP(e,n){var s=n.state;typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(h("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",It(e)||"Component"),Vx.enqueueReplaceState(n,n.state,null))}function gT(e,n,s,c){var p=n.state;if(typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,c),n.state!==p){{var b=It(e)||"Component";Ax.has(b)||(Ax.add(b),h("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}Vx.enqueueReplaceState(n,n.state,null)}}function Bx(e,n,s,c){JP(e,n,s);var p=e.stateNode;p.props=s,p.state=e.memoizedState,p.refs=dT,_x(e);var b=n.contextType;if(typeof b=="object"&&b!==null)p.context=Dr(b);else{var E=fp(e,n,!0);p.context=pp(e,E)}{if(p.state===s){var N=
|
|
168
|
+
`+xe:""))}}}return c&&B1(e,p,b),H}function QP(e,n){var s=n.state;typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(h("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",It(e)||"Component"),Vx.enqueueReplaceState(n,n.state,null))}function gT(e,n,s,c){var p=n.state;if(typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,c),n.state!==p){{var b=It(e)||"Component";Ax.has(b)||(Ax.add(b),h("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}Vx.enqueueReplaceState(n,n.state,null)}}function Bx(e,n,s,c){JP(e,n,s);var p=e.stateNode;p.props=s,p.state=e.memoizedState,p.refs=dT,_x(e);var b=n.contextType;if(typeof b=="object"&&b!==null)p.context=Dr(b);else{var E=fp(e,n,!0);p.context=pp(e,E)}{if(p.state===s){var N=Yt(n)||"Component";Mx.has(N)||(Mx.add(N),h("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",N))}e.mode&er&&Ko.recordLegacyContextWarning(e,p),Ko.recordUnsafeLifecycleWarnings(e,p)}p.state=e.memoizedState;var O=n.getDerivedStateFromProps;if(typeof O=="function"&&(Fx(e,n,O,s),p.state=e.memoizedState),typeof n.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(QP(e,p),Py(e,s,p,c),p.state=e.memoizedState),typeof p.componentDidMount=="function"){var V=ut;V|=di,(e.mode&hi)!==gt&&(V|=fi),e.flags|=V}}function KP(e,n,s,c){var p=e.stateNode,b=e.memoizedProps;p.props=b;var E=p.context,N=n.contextType,O=Hi;if(typeof N=="object"&&N!==null)O=Dr(N);else{var V=fp(e,n,!0);O=pp(e,V)}var H=n.getDerivedStateFromProps,te=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function";!te&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(b!==s||E!==O)&&gT(e,p,s,O),uT();var K=e.memoizedState,he=p.state=K;if(Py(e,s,p,c),he=e.memoizedState,b===s&&K===he&&!Cy()&&!Fy()){if(typeof p.componentDidMount=="function"){var ve=ut;ve|=di,(e.mode&hi)!==gt&&(ve|=fi),e.flags|=ve}return!1}typeof H=="function"&&(Fx(e,n,H,s),he=e.memoizedState);var xe=Fy()||hT(e,n,b,s,K,he,O);if(xe){if(!te&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"){var Ke=ut;Ke|=di,(e.mode&hi)!==gt&&(Ke|=fi),e.flags|=Ke}}else{if(typeof p.componentDidMount=="function"){var yt=ut;yt|=di,(e.mode&hi)!==gt&&(yt|=fi),e.flags|=yt}e.memoizedProps=s,e.memoizedState=he}return p.props=s,p.state=he,p.context=O,xe}function eF(e,n,s,c,p){var b=n.stateNode;lT(e,n);var E=n.memoizedProps,N=n.type===n.elementType?E:es(n.type,E);b.props=N;var O=n.pendingProps,V=b.context,H=s.contextType,te=Hi;if(typeof H=="object"&&H!==null)te=Dr(H);else{var K=fp(n,s,!0);te=pp(n,K)}var he=s.getDerivedStateFromProps,ve=typeof he=="function"||typeof b.getSnapshotBeforeUpdate=="function";!ve&&(typeof b.UNSAFE_componentWillReceiveProps=="function"||typeof b.componentWillReceiveProps=="function")&&(E!==O||V!==te)&&gT(n,b,c,te),uT();var xe=n.memoizedState,Ke=b.state=xe;if(Py(n,c,b,p),Ke=n.memoizedState,E===O&&xe===Ke&&!Cy()&&!Fy()&&!G)return typeof b.componentDidUpdate=="function"&&(E!==e.memoizedProps||xe!==e.memoizedState)&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||xe!==e.memoizedState)&&(n.flags|=vr),!1;typeof he=="function"&&(Fx(n,s,he,c),Ke=n.memoizedState);var yt=Fy()||hT(n,s,N,c,xe,Ke,te)||G;return yt?(!ve&&(typeof b.UNSAFE_componentWillUpdate=="function"||typeof b.componentWillUpdate=="function")&&(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,Ke,te),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,Ke,te)),typeof b.componentDidUpdate=="function"&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(n.flags|=vr)):(typeof b.componentDidUpdate=="function"&&(E!==e.memoizedProps||xe!==e.memoizedState)&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||xe!==e.memoizedState)&&(n.flags|=vr),n.memoizedProps=c,n.memoizedState=Ke),b.props=c,b.state=Ke,b.context=te,yt}var zx,$x,Ux,Hx,Gx,yT=function(e,n){};zx=!1,$x=!1,Ux={},Hx={},Gx={},yT=function(e,n){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var s=It(n)||"Component";Hx[s]||(Hx[s]=!0,h('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Tv(e,n,s){var c=s.ref;if(c!==null&&typeof c!="function"&&typeof c!="object"){if((e.mode&er||Ne)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)){var p=It(e)||"Component";Ux[p]||(h('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',c),Ux[p]=!0)}if(s._owner){var b=s._owner,E;if(b){var N=b;if(N.tag!==x)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");E=N.stateNode}if(!E)throw new Error("Missing owner for string ref "+c+". This error is likely caused by a bug in React. Please file an issue.");var O=E;xn(c,"ref");var V=""+c;if(n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===V)return n.ref;var H=function(te){var K=O.refs;K===dT&&(K=O.refs={}),te===null?delete K[V]:K[V]=te};return H._stringRef=V,H}else{if(typeof c!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!s._owner)throw new Error("Element ref was specified as a string ("+c+`) but no owner was set. This could happen for one of the following reasons:
|
|
169
169
|
1. You may be adding a ref to a function component
|
|
170
170
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
171
171
|
3. You have multiple copies of React loaded
|
|
172
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return c}function By(e,n){var s=Object.prototype.toString.call(n);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function zy(e){{var n=It(e)||"Component";if(Gx[n])return;Gx[n]=!0,h("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function bT(e){var n=e._payload,s=e._init;return s(n)}function CT(e){function n(oe,Se){if(e){var se=oe.deletions;se===null?(oe.deletions=[Se],oe.flags|=nn):se.push(Se)}}function s(oe,Se){if(!e)return null;for(var se=Se;se!==null;)n(oe,se),se=se.sibling;return null}function c(oe,Se){for(var se=new Map,Fe=Se;Fe!==null;)Fe.key!==null?se.set(Fe.key,Fe):se.set(Fe.index,Fe),Fe=Fe.sibling;return se}function p(oe,Se){var se=Vd(oe,Se);return se.index=0,se.sibling=null,se}function b(oe,Se,se){if(oe.index=se,!e)return oe.flags|=yg,Se;var Fe=oe.alternate;if(Fe!==null){var et=Fe.index;return et<Se?(oe.flags|=Nn,Se):et}else return oe.flags|=Nn,Se}function E(oe){return e&&oe.alternate===null&&(oe.flags|=Nn),oe}function N(oe,Se,se,Fe){if(Se===null||Se.tag!==_){var et=yE(se,oe.mode,Fe);return et.return=oe,et}else{var Ze=p(Se,se);return Ze.return=oe,Ze}}function O(oe,Se,se,Fe){var et=se.type;if(et===Ha)return H(oe,Se,se.props.children,Fe,se.key);if(Se!==null&&(Se.elementType===et||cN(Se,se)||typeof et=="object"&&et!==null&&et.$$typeof===vt&&bT(et)===Se.type)){var Ze=p(Se,se.props);return Ze.ref=Tv(oe,Se,se),Ze.return=oe,Ze._debugSource=se._source,Ze._debugOwner=se._owner,Ze}var Nt=gE(se,oe.mode,Fe);return Nt.ref=Tv(oe,Se,se),Nt.return=oe,Nt}function V(oe,Se,se,Fe){if(Se===null||Se.tag!==j||Se.stateNode.containerInfo!==se.containerInfo||Se.stateNode.implementation!==se.implementation){var et=bE(se,oe.mode,Fe);return et.return=oe,et}else{var Ze=p(Se,se.children||[]);return Ze.return=oe,Ze}}function H(oe,Se,se,Fe,et){if(Se===null||Se.tag!==A){var Ze=fc(se,oe.mode,Fe,et);return Ze.return=oe,Ze}else{var Nt=p(Se,se);return Nt.return=oe,Nt}}function te(oe,Se,se){if(typeof Se=="string"&&Se!==""||typeof Se=="number"){var Fe=yE(""+Se,oe.mode,se);return Fe.return=oe,Fe}if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case ya:{var et=gE(Se,oe.mode,se);return et.ref=Tv(oe,null,Se),et.return=oe,et}case ba:{var Ze=bE(Se,oe.mode,se);return Ze.return=oe,Ze}case vt:{var Nt=Se._payload,Ot=Se._init;return te(oe,Ot(Nt),se)}}if(qt(Se)||eo(Se)){var En=fc(Se,oe.mode,se,null);return En.return=oe,En}By(oe,Se)}return typeof Se=="function"&&zy(oe),null}function K(oe,Se,se,Fe){var et=Se!==null?Se.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return et!==null?null:N(oe,Se,""+se,Fe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case ya:return se.key===et?O(oe,Se,se,Fe):null;case ba:return se.key===et?V(oe,Se,se,Fe):null;case vt:{var Ze=se._payload,Nt=se._init;return K(oe,Se,Nt(Ze),Fe)}}if(qt(se)||eo(se))return et!==null?null:H(oe,Se,se,Fe,null);By(oe,se)}return typeof se=="function"&&zy(oe),null}function he(oe,Se,se,Fe,et){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var Ze=oe.get(se)||null;return N(Se,Ze,""+Fe,et)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case ya:{var Nt=oe.get(Fe.key===null?se:Fe.key)||null;return O(Se,Nt,Fe,et)}case ba:{var Ot=oe.get(Fe.key===null?se:Fe.key)||null;return V(Se,Ot,Fe,et)}case vt:var En=Fe._payload,an=Fe._init;return he(oe,Se,se,an(En),et)}if(qt(Fe)||eo(Fe)){var wr=oe.get(se)||null;return H(Se,wr,Fe,et,null)}By(Se,Fe)}return typeof Fe=="function"&&zy(Se),null}function ve(oe,Se,se){{if(typeof oe!="object"||oe===null)return Se;switch(oe.$$typeof){case ya:case ba:yT(oe,se);var Fe=oe.key;if(typeof Fe!="string")break;if(Se===null){Se=new Set,Se.add(Fe);break}if(!Se.has(Fe)){Se.add(Fe);break}h("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Fe);break;case vt:var et=oe._payload,Ze=oe._init;ve(Ze(et),Se,se);break}}return Se}function xe(oe,Se,se,Fe){for(var et=null,Ze=0;Ze<se.length;Ze++){var Nt=se[Ze];et=ve(Nt,et,oe)}for(var Ot=null,En=null,an=Se,wr=0,on=0,gr=null;an!==null&&on<se.length;on++){an.index>on?(gr=an,an=null):gr=an.sibling;var Fa=K(oe,an,se[on],Fe);if(Fa===null){an===null&&(an=gr);break}e&&an&&Fa.alternate===null&&n(oe,an),wr=b(Fa,wr,on),En===null?Ot=Fa:En.sibling=Fa,En=Fa,an=gr}if(on===se.length){if(s(oe,an),sa()){var ha=on;Td(oe,ha)}return Ot}if(an===null){for(;on<se.length;on++){var Wi=te(oe,se[on],Fe);Wi!==null&&(wr=b(Wi,wr,on),En===null?Ot=Wi:En.sibling=Wi,En=Wi)}if(sa()){var ti=on;Td(oe,ti)}return Ot}for(var ni=c(oe,an);on<se.length;on++){var Va=he(ni,oe,on,se[on],Fe);Va!==null&&(e&&Va.alternate!==null&&ni.delete(Va.key===null?on:Va.key),wr=b(Va,wr,on),En===null?Ot=Va:En.sibling=Va,En=Va)}if(e&&ni.forEach(function(Mp){return n(oe,Mp)}),sa()){var Yl=on;Td(oe,Yl)}return Ot}function Ke(oe,Se,se,Fe){var et=eo(se);if(typeof et!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&se[Symbol.toStringTag]==="Generator"&&($x||h("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),$x=!0),se.entries===et&&(zx||h("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zx=!0);var Ze=et.call(se);if(Ze)for(var Nt=null,Ot=Ze.next();!Ot.done;Ot=Ze.next()){var En=Ot.value;Nt=ve(En,Nt,oe)}}var an=et.call(se);if(an==null)throw new Error("An iterable object provided no iterator.");for(var wr=null,on=null,gr=Se,Fa=0,ha=0,Wi=null,ti=an.next();gr!==null&&!ti.done;ha++,ti=an.next()){gr.index>ha?(Wi=gr,gr=null):Wi=gr.sibling;var ni=K(oe,gr,ti.value,Fe);if(ni===null){gr===null&&(gr=Wi);break}e&&gr&&ni.alternate===null&&n(oe,gr),Fa=b(ni,Fa,ha),on===null?wr=ni:on.sibling=ni,on=ni,gr=Wi}if(ti.done){if(s(oe,gr),sa()){var Va=ha;Td(oe,Va)}return wr}if(gr===null){for(;!ti.done;ha++,ti=an.next()){var Yl=te(oe,ti.value,Fe);Yl!==null&&(Fa=b(Yl,Fa,ha),on===null?wr=Yl:on.sibling=Yl,on=Yl)}if(sa()){var Mp=ha;Td(oe,Mp)}return wr}for(var nm=c(oe,gr);!ti.done;ha++,ti=an.next()){var Qs=he(nm,oe,ha,ti.value,Fe);Qs!==null&&(e&&Qs.alternate!==null&&nm.delete(Qs.key===null?ha:Qs.key),Fa=b(Qs,Fa,ha),on===null?wr=Qs:on.sibling=Qs,on=Qs)}if(e&&nm.forEach(function(hz){return n(oe,hz)}),sa()){var pz=ha;Td(oe,pz)}return wr}function yt(oe,Se,se,Fe){if(Se!==null&&Se.tag===_){s(oe,Se.sibling);var et=p(Se,se);return et.return=oe,et}s(oe,Se);var Ze=yE(se,oe.mode,Fe);return Ze.return=oe,Ze}function pt(oe,Se,se,Fe){for(var et=se.key,Ze=Se;Ze!==null;){if(Ze.key===et){var Nt=se.type;if(Nt===Ha){if(Ze.tag===A){s(oe,Ze.sibling);var Ot=p(Ze,se.props.children);return Ot.return=oe,Ot._debugSource=se._source,Ot._debugOwner=se._owner,Ot}}else if(Ze.elementType===Nt||cN(Ze,se)||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===vt&&bT(Nt)===Ze.type){s(oe,Ze.sibling);var En=p(Ze,se.props);return En.ref=Tv(oe,Ze,se),En.return=oe,En._debugSource=se._source,En._debugOwner=se._owner,En}s(oe,Ze);break}else n(oe,Ze);Ze=Ze.sibling}if(se.type===Ha){var an=fc(se.props.children,oe.mode,Fe,se.key);return an.return=oe,an}else{var wr=gE(se,oe.mode,Fe);return wr.ref=Tv(oe,Se,se),wr.return=oe,wr}}function Wt(oe,Se,se,Fe){for(var et=se.key,Ze=Se;Ze!==null;){if(Ze.key===et)if(Ze.tag===j&&Ze.stateNode.containerInfo===se.containerInfo&&Ze.stateNode.implementation===se.implementation){s(oe,Ze.sibling);var Nt=p(Ze,se.children||[]);return Nt.return=oe,Nt}else{s(oe,Ze);break}else n(oe,Ze);Ze=Ze.sibling}var Ot=bE(se,oe.mode,Fe);return Ot.return=oe,Ot}function $t(oe,Se,se,Fe){var et=typeof se=="object"&&se!==null&&se.type===Ha&&se.key===null;if(et&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case ya:return E(pt(oe,Se,se,Fe));case ba:return E(Wt(oe,Se,se,Fe));case vt:var Ze=se._payload,Nt=se._init;return $t(oe,Se,Nt(Ze),Fe)}if(qt(se))return xe(oe,Se,se,Fe);if(eo(se))return Ke(oe,Se,se,Fe);By(oe,se)}return typeof se=="string"&&se!==""||typeof se=="number"?E(yt(oe,Se,""+se,Fe)):(typeof se=="function"&&zy(oe),s(oe,Se))}return $t}var bp=CT(!0),xT=CT(!1);function tF(e,n){if(e!==null&&n.child!==e.child)throw new Error("Resuming work not yet implemented.");if(n.child!==null){var s=n.child,c=Vd(s,s.pendingProps);for(n.child=c,c.return=n;s.sibling!==null;)s=s.sibling,c=c.sibling=Vd(s,s.pendingProps),c.return=n;c.sibling=null}}function nF(e,n){for(var s=e.child;s!==null;)jB(s,n),s=s.sibling}var _v={},rc=Qu(_v),Nv=Qu(_v),$y=Qu(_v);function Uy(e){if(e===_v)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function ST(){var e=Uy($y.current);return e}function Wx(e,n){La($y,n,e),La(Nv,e,e),La(rc,_v,e);var s=mL(n);Ma(rc,e),La(rc,s,e)}function Cp(e){Ma(rc,e),Ma(Nv,e),Ma($y,e)}function Xx(){var e=Uy(rc.current);return e}function ET(e){Uy($y.current);var n=Uy(rc.current),s=gL(n,e.type);n!==s&&(La(Nv,e,e),La(rc,s,e))}function Yx(e){Nv.current===e&&(Ma(rc,e),Ma(Nv,e))}var rF=0,wT=1,RT=1,Iv=2,ts=Qu(rF);function Zx(e,n){return(e&n)!==0}function xp(e){return e&wT}function qx(e,n){return e&wT|n}function aF(e,n){return e|n}function ac(e,n){La(ts,n,e)}function Sp(e){Ma(ts,e)}function iF(e,n){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function Hy(e){for(var n=e;n!==null;){if(n.tag===z){var s=n.memoizedState;if(s!==null){var c=s.dehydrated;if(c===null||M1(c)||nx(c))return n}}else if(n.tag===de&&n.memoizedProps.revealOrder!==void 0){var p=(n.flags&At)!==mt;if(p)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return null;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var wi=0,Br=1,Gs=2,zr=4,la=8,Jx=[];function Qx(){for(var e=0;e<Jx.length;e++){var n=Jx[e];n._workInProgressVersionPrimary=null}Jx.length=0}function oF(e,n){var s=n._getVersion,c=s(n._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,c]:e.mutableSourceEagerHydrationData.push(n,c)}var Je=l.ReactCurrentDispatcher,Av=l.ReactCurrentBatchConfig,Kx,Ep;Kx=new Set;var Od=Re,Sn=null,$r=null,Ur=null,Gy=!1,jv=!1,Ov=0,sF=0,lF=25,Te=null,bo=null,ic=-1,eS=!1;function pn(){{var e=Te;bo===null?bo=[e]:bo.push(e)}}function We(){{var e=Te;bo!==null&&(ic++,bo[ic]!==e&&uF(e))}}function wp(e){e!=null&&!qt(e)&&h("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Te,typeof e)}function uF(e){{var n=It(Sn);if(!Kx.has(n)&&(Kx.add(n),bo!==null)){for(var s="",c=30,p=0;p<=ic;p++){for(var b=bo[p],E=p===ic?e:b,N=p+1+". "+b;N.length<c;)N+=" ";N+=E+`
|
|
172
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return c}function By(e,n){var s=Object.prototype.toString.call(n);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function zy(e){{var n=It(e)||"Component";if(Gx[n])return;Gx[n]=!0,h("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function bT(e){var n=e._payload,s=e._init;return s(n)}function CT(e){function n(oe,Se){if(e){var se=oe.deletions;se===null?(oe.deletions=[Se],oe.flags|=nn):se.push(Se)}}function s(oe,Se){if(!e)return null;for(var se=Se;se!==null;)n(oe,se),se=se.sibling;return null}function c(oe,Se){for(var se=new Map,Fe=Se;Fe!==null;)Fe.key!==null?se.set(Fe.key,Fe):se.set(Fe.index,Fe),Fe=Fe.sibling;return se}function p(oe,Se){var se=Vd(oe,Se);return se.index=0,se.sibling=null,se}function b(oe,Se,se){if(oe.index=se,!e)return oe.flags|=yg,Se;var Fe=oe.alternate;if(Fe!==null){var et=Fe.index;return et<Se?(oe.flags|=Nn,Se):et}else return oe.flags|=Nn,Se}function E(oe){return e&&oe.alternate===null&&(oe.flags|=Nn),oe}function N(oe,Se,se,Fe){if(Se===null||Se.tag!==_){var et=yE(se,oe.mode,Fe);return et.return=oe,et}else{var Ze=p(Se,se);return Ze.return=oe,Ze}}function O(oe,Se,se,Fe){var et=se.type;if(et===Ha)return H(oe,Se,se.props.children,Fe,se.key);if(Se!==null&&(Se.elementType===et||cN(Se,se)||typeof et=="object"&&et!==null&&et.$$typeof===vt&&bT(et)===Se.type)){var Ze=p(Se,se.props);return Ze.ref=Tv(oe,Se,se),Ze.return=oe,Ze._debugSource=se._source,Ze._debugOwner=se._owner,Ze}var Nt=gE(se,oe.mode,Fe);return Nt.ref=Tv(oe,Se,se),Nt.return=oe,Nt}function V(oe,Se,se,Fe){if(Se===null||Se.tag!==j||Se.stateNode.containerInfo!==se.containerInfo||Se.stateNode.implementation!==se.implementation){var et=bE(se,oe.mode,Fe);return et.return=oe,et}else{var Ze=p(Se,se.children||[]);return Ze.return=oe,Ze}}function H(oe,Se,se,Fe,et){if(Se===null||Se.tag!==A){var Ze=fc(se,oe.mode,Fe,et);return Ze.return=oe,Ze}else{var Nt=p(Se,se);return Nt.return=oe,Nt}}function te(oe,Se,se){if(typeof Se=="string"&&Se!==""||typeof Se=="number"){var Fe=yE(""+Se,oe.mode,se);return Fe.return=oe,Fe}if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case ya:{var et=gE(Se,oe.mode,se);return et.ref=Tv(oe,null,Se),et.return=oe,et}case ba:{var Ze=bE(Se,oe.mode,se);return Ze.return=oe,Ze}case vt:{var Nt=Se._payload,Ot=Se._init;return te(oe,Ot(Nt),se)}}if(Zt(Se)||eo(Se)){var En=fc(Se,oe.mode,se,null);return En.return=oe,En}By(oe,Se)}return typeof Se=="function"&&zy(oe),null}function K(oe,Se,se,Fe){var et=Se!==null?Se.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return et!==null?null:N(oe,Se,""+se,Fe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case ya:return se.key===et?O(oe,Se,se,Fe):null;case ba:return se.key===et?V(oe,Se,se,Fe):null;case vt:{var Ze=se._payload,Nt=se._init;return K(oe,Se,Nt(Ze),Fe)}}if(Zt(se)||eo(se))return et!==null?null:H(oe,Se,se,Fe,null);By(oe,se)}return typeof se=="function"&&zy(oe),null}function he(oe,Se,se,Fe,et){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var Ze=oe.get(se)||null;return N(Se,Ze,""+Fe,et)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case ya:{var Nt=oe.get(Fe.key===null?se:Fe.key)||null;return O(Se,Nt,Fe,et)}case ba:{var Ot=oe.get(Fe.key===null?se:Fe.key)||null;return V(Se,Ot,Fe,et)}case vt:var En=Fe._payload,an=Fe._init;return he(oe,Se,se,an(En),et)}if(Zt(Fe)||eo(Fe)){var wr=oe.get(se)||null;return H(Se,wr,Fe,et,null)}By(Se,Fe)}return typeof Fe=="function"&&zy(Se),null}function ve(oe,Se,se){{if(typeof oe!="object"||oe===null)return Se;switch(oe.$$typeof){case ya:case ba:yT(oe,se);var Fe=oe.key;if(typeof Fe!="string")break;if(Se===null){Se=new Set,Se.add(Fe);break}if(!Se.has(Fe)){Se.add(Fe);break}h("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Fe);break;case vt:var et=oe._payload,Ze=oe._init;ve(Ze(et),Se,se);break}}return Se}function xe(oe,Se,se,Fe){for(var et=null,Ze=0;Ze<se.length;Ze++){var Nt=se[Ze];et=ve(Nt,et,oe)}for(var Ot=null,En=null,an=Se,wr=0,on=0,gr=null;an!==null&&on<se.length;on++){an.index>on?(gr=an,an=null):gr=an.sibling;var Fa=K(oe,an,se[on],Fe);if(Fa===null){an===null&&(an=gr);break}e&&an&&Fa.alternate===null&&n(oe,an),wr=b(Fa,wr,on),En===null?Ot=Fa:En.sibling=Fa,En=Fa,an=gr}if(on===se.length){if(s(oe,an),sa()){var ha=on;Td(oe,ha)}return Ot}if(an===null){for(;on<se.length;on++){var Wi=te(oe,se[on],Fe);Wi!==null&&(wr=b(Wi,wr,on),En===null?Ot=Wi:En.sibling=Wi,En=Wi)}if(sa()){var ti=on;Td(oe,ti)}return Ot}for(var ni=c(oe,an);on<se.length;on++){var Va=he(ni,oe,on,se[on],Fe);Va!==null&&(e&&Va.alternate!==null&&ni.delete(Va.key===null?on:Va.key),wr=b(Va,wr,on),En===null?Ot=Va:En.sibling=Va,En=Va)}if(e&&ni.forEach(function(Mp){return n(oe,Mp)}),sa()){var Yl=on;Td(oe,Yl)}return Ot}function Ke(oe,Se,se,Fe){var et=eo(se);if(typeof et!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&se[Symbol.toStringTag]==="Generator"&&($x||h("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),$x=!0),se.entries===et&&(zx||h("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zx=!0);var Ze=et.call(se);if(Ze)for(var Nt=null,Ot=Ze.next();!Ot.done;Ot=Ze.next()){var En=Ot.value;Nt=ve(En,Nt,oe)}}var an=et.call(se);if(an==null)throw new Error("An iterable object provided no iterator.");for(var wr=null,on=null,gr=Se,Fa=0,ha=0,Wi=null,ti=an.next();gr!==null&&!ti.done;ha++,ti=an.next()){gr.index>ha?(Wi=gr,gr=null):Wi=gr.sibling;var ni=K(oe,gr,ti.value,Fe);if(ni===null){gr===null&&(gr=Wi);break}e&&gr&&ni.alternate===null&&n(oe,gr),Fa=b(ni,Fa,ha),on===null?wr=ni:on.sibling=ni,on=ni,gr=Wi}if(ti.done){if(s(oe,gr),sa()){var Va=ha;Td(oe,Va)}return wr}if(gr===null){for(;!ti.done;ha++,ti=an.next()){var Yl=te(oe,ti.value,Fe);Yl!==null&&(Fa=b(Yl,Fa,ha),on===null?wr=Yl:on.sibling=Yl,on=Yl)}if(sa()){var Mp=ha;Td(oe,Mp)}return wr}for(var nm=c(oe,gr);!ti.done;ha++,ti=an.next()){var Qs=he(nm,oe,ha,ti.value,Fe);Qs!==null&&(e&&Qs.alternate!==null&&nm.delete(Qs.key===null?ha:Qs.key),Fa=b(Qs,Fa,ha),on===null?wr=Qs:on.sibling=Qs,on=Qs)}if(e&&nm.forEach(function(hz){return n(oe,hz)}),sa()){var pz=ha;Td(oe,pz)}return wr}function yt(oe,Se,se,Fe){if(Se!==null&&Se.tag===_){s(oe,Se.sibling);var et=p(Se,se);return et.return=oe,et}s(oe,Se);var Ze=yE(se,oe.mode,Fe);return Ze.return=oe,Ze}function pt(oe,Se,se,Fe){for(var et=se.key,Ze=Se;Ze!==null;){if(Ze.key===et){var Nt=se.type;if(Nt===Ha){if(Ze.tag===A){s(oe,Ze.sibling);var Ot=p(Ze,se.props.children);return Ot.return=oe,Ot._debugSource=se._source,Ot._debugOwner=se._owner,Ot}}else if(Ze.elementType===Nt||cN(Ze,se)||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===vt&&bT(Nt)===Ze.type){s(oe,Ze.sibling);var En=p(Ze,se.props);return En.ref=Tv(oe,Ze,se),En.return=oe,En._debugSource=se._source,En._debugOwner=se._owner,En}s(oe,Ze);break}else n(oe,Ze);Ze=Ze.sibling}if(se.type===Ha){var an=fc(se.props.children,oe.mode,Fe,se.key);return an.return=oe,an}else{var wr=gE(se,oe.mode,Fe);return wr.ref=Tv(oe,Se,se),wr.return=oe,wr}}function Wt(oe,Se,se,Fe){for(var et=se.key,Ze=Se;Ze!==null;){if(Ze.key===et)if(Ze.tag===j&&Ze.stateNode.containerInfo===se.containerInfo&&Ze.stateNode.implementation===se.implementation){s(oe,Ze.sibling);var Nt=p(Ze,se.children||[]);return Nt.return=oe,Nt}else{s(oe,Ze);break}else n(oe,Ze);Ze=Ze.sibling}var Ot=bE(se,oe.mode,Fe);return Ot.return=oe,Ot}function $t(oe,Se,se,Fe){var et=typeof se=="object"&&se!==null&&se.type===Ha&&se.key===null;if(et&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case ya:return E(pt(oe,Se,se,Fe));case ba:return E(Wt(oe,Se,se,Fe));case vt:var Ze=se._payload,Nt=se._init;return $t(oe,Se,Nt(Ze),Fe)}if(Zt(se))return xe(oe,Se,se,Fe);if(eo(se))return Ke(oe,Se,se,Fe);By(oe,se)}return typeof se=="string"&&se!==""||typeof se=="number"?E(yt(oe,Se,""+se,Fe)):(typeof se=="function"&&zy(oe),s(oe,Se))}return $t}var bp=CT(!0),xT=CT(!1);function tF(e,n){if(e!==null&&n.child!==e.child)throw new Error("Resuming work not yet implemented.");if(n.child!==null){var s=n.child,c=Vd(s,s.pendingProps);for(n.child=c,c.return=n;s.sibling!==null;)s=s.sibling,c=c.sibling=Vd(s,s.pendingProps),c.return=n;c.sibling=null}}function nF(e,n){for(var s=e.child;s!==null;)jB(s,n),s=s.sibling}var _v={},rc=Qu(_v),Nv=Qu(_v),$y=Qu(_v);function Uy(e){if(e===_v)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function ST(){var e=Uy($y.current);return e}function Wx(e,n){La($y,n,e),La(Nv,e,e),La(rc,_v,e);var s=mL(n);Ma(rc,e),La(rc,s,e)}function Cp(e){Ma(rc,e),Ma(Nv,e),Ma($y,e)}function Xx(){var e=Uy(rc.current);return e}function ET(e){Uy($y.current);var n=Uy(rc.current),s=gL(n,e.type);n!==s&&(La(Nv,e,e),La(rc,s,e))}function Yx(e){Nv.current===e&&(Ma(rc,e),Ma(Nv,e))}var rF=0,wT=1,RT=1,Iv=2,ts=Qu(rF);function Zx(e,n){return(e&n)!==0}function xp(e){return e&wT}function qx(e,n){return e&wT|n}function aF(e,n){return e|n}function ac(e,n){La(ts,n,e)}function Sp(e){Ma(ts,e)}function iF(e,n){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function Hy(e){for(var n=e;n!==null;){if(n.tag===z){var s=n.memoizedState;if(s!==null){var c=s.dehydrated;if(c===null||M1(c)||nx(c))return n}}else if(n.tag===de&&n.memoizedProps.revealOrder!==void 0){var p=(n.flags&At)!==mt;if(p)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return null;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var wi=0,Br=1,Gs=2,zr=4,la=8,Jx=[];function Qx(){for(var e=0;e<Jx.length;e++){var n=Jx[e];n._workInProgressVersionPrimary=null}Jx.length=0}function oF(e,n){var s=n._getVersion,c=s(n._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,c]:e.mutableSourceEagerHydrationData.push(n,c)}var Je=l.ReactCurrentDispatcher,Av=l.ReactCurrentBatchConfig,Kx,Ep;Kx=new Set;var Od=Re,Sn=null,$r=null,Ur=null,Gy=!1,jv=!1,Ov=0,sF=0,lF=25,Te=null,bo=null,ic=-1,eS=!1;function pn(){{var e=Te;bo===null?bo=[e]:bo.push(e)}}function We(){{var e=Te;bo!==null&&(ic++,bo[ic]!==e&&uF(e))}}function wp(e){e!=null&&!Zt(e)&&h("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Te,typeof e)}function uF(e){{var n=It(Sn);if(!Kx.has(n)&&(Kx.add(n),bo!==null)){for(var s="",c=30,p=0;p<=ic;p++){for(var b=bo[p],E=p===ic?e:b,N=p+1+". "+b;N.length<c;)N+=" ";N+=E+`
|
|
173
173
|
`,s+=N}h(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
174
174
|
|
|
175
175
|
Previous render Next render
|
|
@@ -186,9 +186,9 @@ Incoming: %s`,Te,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<n.leng
|
|
|
186
186
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var H=It(e)||"Anonymous";V="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var te=O+`
|
|
187
187
|
`+E+`
|
|
188
188
|
|
|
189
|
-
`+(""+V);console.error(te)}catch(K){setTimeout(function(){throw K})}}var bF=typeof WeakMap=="function"?WeakMap:Map;function e_(e,n,s){var c=$l(Mn,s);c.tag=Rx,c.payload={element:null};var p=n.value;return c.callback=function(){dB(p),RS(e,n)},c}function TS(e,n,s){var c=$l(Mn,s);c.tag=Rx;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var b=n.value;c.payload=function(){return p(b)},c.callback=function(){dN(e),RS(e,n)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){dN(e),RS(e,n),typeof p!="function"&&uB(this);var O=n.value,V=n.stack;this.componentDidCatch(O,{componentStack:V!==null?V:""}),typeof p!="function"&&(Da(e.lanes,Ct)||h("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",It(e)||"Unknown"))}),c}function t_(e,n,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new bF,p=new Set,c.set(n,p)):(p=c.get(n),p===void 0&&(p=new Set,c.set(n,p))),!p.has(s)){p.add(s);var b=fB.bind(null,e,n,s);qa&&Qv(e,s),n.then(b,b)}}function CF(e,n,s,c){var p=e.updateQueue;if(p===null){var b=new Set;b.add(s),e.updateQueue=b}else p.add(s)}function xF(e,n){var s=e.tag;if((e.mode&ft)===gt&&(s===C||s===U||s===Z)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function n_(e){var n=e;do{if(n.tag===z&&iF(n))return n;n=n.return}while(n!==null);return null}function r_(e,n,s,c,p){if((e.mode&ft)===gt){if(e===n)e.flags|=Pr;else{if(e.flags|=At,s.flags|=pf,s.flags&=~(gg|Ns),s.tag===x){var b=s.alternate;if(b===null)s.tag=ie;else{var E=$l(Mn,Ct);E.tag=Dy,nc(s,E,Ct)}}s.lanes=Dt(s.lanes,Ct)}return e}return e.flags|=Pr,e.lanes=p,e}function SF(e,n,s,c,p){if(s.flags|=Ns,qa&&Qv(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var b=c;xF(s),sa()&&s.mode&ft&&X1();var E=n_(n);if(E!==null){E.flags&=~aa,r_(E,n,s,e,p),E.mode&ft&&t_(e,b,p),CF(E,e,b);return}else{if(!Bh(p)){t_(e,b,p),iE();return}var N=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");c=N}}else if(sa()&&s.mode&ft){X1();var O=n_(n);if(O!==null){(O.flags&Pr)===mt&&(O.flags|=aa),r_(O,n,s,e,p),yx(Dd(c,s));return}}c=Dd(c,s),tB(c);var V=n;do{switch(V.tag){case R:{var H=c;V.flags|=Pr;var te=Du(p);V.lanes=Dt(V.lanes,te);var K=e_(V,H,te);Nx(V,K);return}case x:var he=c,ve=V.type,xe=V.stateNode;if((V.flags&At)===mt&&(typeof ve.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&!nN(xe))){V.flags|=Pr;var Ke=Du(p);V.lanes=Dt(V.lanes,Ke);var yt=TS(V,he,Ke);Nx(V,yt);return}break}V=V.return}while(V!==null)}function EF(){return null}var Pv=l.ReactCurrentOwner,rs=!1,_S,Fv,NS,IS,AS,kd,jS,cb;_S={},Fv={},NS={},IS={},AS={},kd=!1,jS={},cb={};function Qa(e,n,s,c){e===null?n.child=xT(n,null,s,c):n.child=bp(n,e.child,s,c)}function wF(e,n,s,c){n.child=bp(n,e.child,null,c),n.child=bp(n,null,s,c)}function a_(e,n,s,c,p){if(n.type!==n.elementType){var b=s.propTypes;b&&Jo(b,c,"prop",Zt(s))}var E=s.render,N=n.ref,O,V;yp(n,p),Ru(n);{if(Pv.current=n,Lr(!0),O=Rp(e,n,E,c,N,p),V=Tp(),n.mode&er){kn(!0);try{O=Rp(e,n,E,c,N,p),V=Tp()}finally{kn(!1)}}Lr(!1)}return xl(),e!==null&&!rs?(TT(e,n,p),Ul(e,n,p)):(sa()&&V&&fx(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function i_(e,n,s,c,p){if(e===null){var b=s.type;if(IB(b)&&s.compare===null&&s.defaultProps===void 0){var E=b;return E=kp(b),n.tag=Z,n.type=E,kS(n,b),o_(e,n,E,c,p)}{var N=b.propTypes;N&&Jo(N,c,"prop",Zt(b))}var O=mE(s.type,null,c,n,n.mode,p);return O.ref=n.ref,O.return=n,n.child=O,O}{var V=s.type,H=V.propTypes;H&&Jo(H,c,"prop",Zt(V))}var te=e.child,K=BS(e,p);if(!K){var he=te.memoizedProps,ve=s.compare;if(ve=ve!==null?ve:Et,ve(he,c)&&e.ref===n.ref)return Ul(e,n,p)}n.flags|=$i;var xe=Vd(te,c);return xe.ref=n.ref,xe.return=n,n.child=xe,xe}function o_(e,n,s,c,p){if(n.type!==n.elementType){var b=n.elementType;if(b.$$typeof===vt){var E=b,N=E._payload,O=E._init;try{b=O(N)}catch{b=null}var V=b&&b.propTypes;V&&Jo(V,c,"prop",Zt(b))}}if(e!==null){var H=e.memoizedProps;if(Et(H,c)&&e.ref===n.ref&&n.type===e.type)if(rs=!1,n.pendingProps=c=H,BS(e,p))(e.flags&pf)!==mt&&(rs=!0);else return n.lanes=e.lanes,Ul(e,n,p)}return OS(e,n,s,c,p)}function s_(e,n,s){var c=n.pendingProps,p=c.children,b=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Y)if((n.mode&ft)===gt){var E={baseLanes:Re,cachePool:null,transitions:null};n.memoizedState=E,Eb(n,s)}else if(Da(s,Ja)){var te={baseLanes:Re,cachePool:null,transitions:null};n.memoizedState=te;var K=b!==null?b.baseLanes:s;Eb(n,K)}else{var N=null,O;if(b!==null){var V=b.baseLanes;O=Dt(V,s)}else O=s;n.lanes=n.childLanes=Ja;var H={baseLanes:O,cachePool:N,transitions:null};return n.memoizedState=H,n.updateQueue=null,Eb(n,O),null}else{var he;b!==null?(he=Dt(b.baseLanes,s),n.memoizedState=null):he=s,Eb(n,he)}return Qa(e,n,p,s),n.child}function RF(e,n,s){var c=n.pendingProps;return Qa(e,n,c,s),n.child}function TF(e,n,s){var c=n.pendingProps.children;return Qa(e,n,c,s),n.child}function _F(e,n,s){{n.flags|=ut;{var c=n.stateNode;c.effectDuration=0,c.passiveEffectDuration=0}}var p=n.pendingProps,b=p.children;return Qa(e,n,b,s),n.child}function l_(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=Xa,n.flags|=so)}function OS(e,n,s,c,p){if(n.type!==n.elementType){var b=s.propTypes;b&&Jo(b,c,"prop",Zt(s))}var E;{var N=fp(n,s,!0);E=pp(n,N)}var O,V;yp(n,p),Ru(n);{if(Pv.current=n,Lr(!0),O=Rp(e,n,s,c,E,p),V=Tp(),n.mode&er){kn(!0);try{O=Rp(e,n,s,c,E,p),V=Tp()}finally{kn(!1)}}Lr(!1)}return xl(),e!==null&&!rs?(TT(e,n,p),Ul(e,n,p)):(sa()&&V&&fx(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function u_(e,n,s,c,p){{switch(HB(n)){case!1:{var b=n.stateNode,E=n.type,N=new E(n.memoizedProps,b.context),O=N.state;b.updater.enqueueSetState(b,O,null);break}case!0:{n.flags|=At,n.flags|=Pr;var V=new Error("Simulated error coming from DevTools"),H=Du(p);n.lanes=Dt(n.lanes,H);var te=TS(n,Dd(V,n),H);Nx(n,te);break}}if(n.type!==n.elementType){var K=s.propTypes;K&&Jo(K,c,"prop",Zt(s))}}var he;Hs(s)?(he=!0,Sy(n)):he=!1,yp(n,p);var ve=n.stateNode,xe;ve===null?(fb(e,n),mT(n,s,c),Bx(n,s,c,p),xe=!0):e===null?xe=KP(n,s,c,p):xe=eF(e,n,s,c,p);var Ke=DS(e,n,s,xe,he,p);{var yt=n.stateNode;xe&&yt.props!==c&&(kd||h("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",It(n)||"a component"),kd=!0)}return Ke}function DS(e,n,s,c,p,b){l_(e,n);var E=(n.flags&At)!==mt;if(!c&&!E)return p&&U1(n,s,!1),Ul(e,n,b);var N=n.stateNode;Pv.current=n;var O;if(E&&typeof s.getDerivedStateFromError!="function")O=null,KT();else{Ru(n);{if(Lr(!0),O=N.render(),n.mode&er){kn(!0);try{N.render()}finally{kn(!1)}}Lr(!1)}xl()}return n.flags|=$i,e!==null&&E?wF(e,n,O,b):Qa(e,n,O,b),n.memoizedState=N.state,p&&U1(n,s,!0),n.child}function c_(e){var n=e.stateNode;n.pendingContext?z1(e,n.pendingContext,n.pendingContext!==n.context):n.context&&z1(e,n.context,!1),Wx(e,n.containerInfo)}function NF(e,n,s){if(c_(n),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var c=n.pendingProps,p=n.memoizedState,b=p.element;lT(e,n),Py(n,c,null,s);var E=n.memoizedState;n.stateNode;var N=E.element;if(p.isDehydrated){var O={element:N,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},V=n.updateQueue;if(V.baseState=O,n.memoizedState=O,n.flags&aa){var H=Dd(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),n);return d_(e,n,N,s,H)}else if(N!==b){var te=Dd(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n);return d_(e,n,N,s,te)}else{OP(n);var K=xT(n,null,N,s);n.child=K;for(var he=K;he;)he.flags=he.flags&~Nn|oo,he=he.sibling}}else{if(mp(),N===b)return Ul(e,n,s);Qa(e,n,N,s)}return n.child}function d_(e,n,s,c,p){return mp(),yx(p),n.flags|=aa,Qa(e,n,s,c),n.child}function IF(e,n,s){ET(n),e===null&&gx(n);var c=n.type,p=n.pendingProps,b=e!==null?e.memoizedProps:null,E=p.children,N=QC(c,p);return N?E=null:b!==null&&QC(c,b)&&(n.flags|=ci),l_(e,n),Qa(e,n,E,s),n.child}function AF(e,n){return e===null&&gx(n),null}function jF(e,n,s,c){fb(e,n);var p=n.pendingProps,b=s,E=b._payload,N=b._init,O=N(E);n.type=O;var V=n.tag=AB(O),H=es(O,p),te;switch(V){case C:return kS(n,O),n.type=O=kp(O),te=OS(null,n,O,H,c),te;case x:return n.type=O=cE(O),te=u_(null,n,O,H,c),te;case U:return n.type=O=dE(O),te=a_(null,n,O,H,c),te;case X:{if(n.type!==n.elementType){var K=O.propTypes;K&&Jo(K,H,"prop",Zt(O))}return te=i_(null,n,O,es(O.type,H),c),te}}var he="";throw O!==null&&typeof O=="object"&&O.$$typeof===vt&&(he=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+O+". "+("Lazy element type must resolve to a class or function."+he))}function OF(e,n,s,c,p){fb(e,n),n.tag=x;var b;return Hs(s)?(b=!0,Sy(n)):b=!1,yp(n,p),mT(n,s,c),Bx(n,s,c,p),DS(null,n,s,!0,b,p)}function DF(e,n,s,c){fb(e,n);var p=n.pendingProps,b;{var E=fp(n,s,!1);b=pp(n,E)}yp(n,c);var N,O;Ru(n);{if(s.prototype&&typeof s.prototype.render=="function"){var V=Zt(s)||"Unknown";_S[V]||(h("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",V,V),_S[V]=!0)}n.mode&er&&Ko.recordLegacyContextWarning(n,null),Lr(!0),Pv.current=n,N=Rp(null,n,s,p,b,c),O=Tp(),Lr(!1)}if(xl(),n.flags|=$i,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){var H=Zt(s)||"Unknown";Fv[H]||(h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),Fv[H]=!0)}if(typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){{var te=Zt(s)||"Unknown";Fv[te]||(h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",te,te,te),Fv[te]=!0)}n.tag=x,n.memoizedState=null,n.updateQueue=null;var K=!1;return Hs(s)?(K=!0,Sy(n)):K=!1,n.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,_x(n),vT(n,N),Bx(n,s,p,c),DS(null,n,s,!0,K,c)}else{if(n.tag=C,n.mode&er){kn(!0);try{N=Rp(null,n,s,p,b,c),O=Tp()}finally{kn(!1)}}return sa()&&O&&fx(n),Qa(null,n,N,c),kS(n,s),n.child}}function kS(e,n){{if(n&&n.childContextTypes&&h("%s(...): childContextTypes cannot be defined on a function component.",n.displayName||n.name||"Component"),e.ref!==null){var s="",c=si();c&&(s+=`
|
|
189
|
+
`+(""+V);console.error(te)}catch(K){setTimeout(function(){throw K})}}var bF=typeof WeakMap=="function"?WeakMap:Map;function e_(e,n,s){var c=$l(Mn,s);c.tag=Rx,c.payload={element:null};var p=n.value;return c.callback=function(){dB(p),RS(e,n)},c}function TS(e,n,s){var c=$l(Mn,s);c.tag=Rx;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var b=n.value;c.payload=function(){return p(b)},c.callback=function(){dN(e),RS(e,n)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){dN(e),RS(e,n),typeof p!="function"&&uB(this);var O=n.value,V=n.stack;this.componentDidCatch(O,{componentStack:V!==null?V:""}),typeof p!="function"&&(Da(e.lanes,Ct)||h("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",It(e)||"Unknown"))}),c}function t_(e,n,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new bF,p=new Set,c.set(n,p)):(p=c.get(n),p===void 0&&(p=new Set,c.set(n,p))),!p.has(s)){p.add(s);var b=fB.bind(null,e,n,s);qa&&Qv(e,s),n.then(b,b)}}function CF(e,n,s,c){var p=e.updateQueue;if(p===null){var b=new Set;b.add(s),e.updateQueue=b}else p.add(s)}function xF(e,n){var s=e.tag;if((e.mode&ft)===gt&&(s===C||s===U||s===Z)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function n_(e){var n=e;do{if(n.tag===z&&iF(n))return n;n=n.return}while(n!==null);return null}function r_(e,n,s,c,p){if((e.mode&ft)===gt){if(e===n)e.flags|=Pr;else{if(e.flags|=At,s.flags|=pf,s.flags&=~(gg|Ns),s.tag===x){var b=s.alternate;if(b===null)s.tag=ie;else{var E=$l(Mn,Ct);E.tag=Dy,nc(s,E,Ct)}}s.lanes=Dt(s.lanes,Ct)}return e}return e.flags|=Pr,e.lanes=p,e}function SF(e,n,s,c,p){if(s.flags|=Ns,qa&&Qv(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var b=c;xF(s),sa()&&s.mode&ft&&X1();var E=n_(n);if(E!==null){E.flags&=~aa,r_(E,n,s,e,p),E.mode&ft&&t_(e,b,p),CF(E,e,b);return}else{if(!Bh(p)){t_(e,b,p),iE();return}var N=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");c=N}}else if(sa()&&s.mode&ft){X1();var O=n_(n);if(O!==null){(O.flags&Pr)===mt&&(O.flags|=aa),r_(O,n,s,e,p),yx(Dd(c,s));return}}c=Dd(c,s),tB(c);var V=n;do{switch(V.tag){case R:{var H=c;V.flags|=Pr;var te=Du(p);V.lanes=Dt(V.lanes,te);var K=e_(V,H,te);Nx(V,K);return}case x:var he=c,ve=V.type,xe=V.stateNode;if((V.flags&At)===mt&&(typeof ve.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&!nN(xe))){V.flags|=Pr;var Ke=Du(p);V.lanes=Dt(V.lanes,Ke);var yt=TS(V,he,Ke);Nx(V,yt);return}break}V=V.return}while(V!==null)}function EF(){return null}var Pv=l.ReactCurrentOwner,rs=!1,_S,Fv,NS,IS,AS,kd,jS,cb;_S={},Fv={},NS={},IS={},AS={},kd=!1,jS={},cb={};function Qa(e,n,s,c){e===null?n.child=xT(n,null,s,c):n.child=bp(n,e.child,s,c)}function wF(e,n,s,c){n.child=bp(n,e.child,null,c),n.child=bp(n,null,s,c)}function a_(e,n,s,c,p){if(n.type!==n.elementType){var b=s.propTypes;b&&Jo(b,c,"prop",Yt(s))}var E=s.render,N=n.ref,O,V;yp(n,p),Ru(n);{if(Pv.current=n,Lr(!0),O=Rp(e,n,E,c,N,p),V=Tp(),n.mode&er){kn(!0);try{O=Rp(e,n,E,c,N,p),V=Tp()}finally{kn(!1)}}Lr(!1)}return xl(),e!==null&&!rs?(TT(e,n,p),Ul(e,n,p)):(sa()&&V&&fx(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function i_(e,n,s,c,p){if(e===null){var b=s.type;if(IB(b)&&s.compare===null&&s.defaultProps===void 0){var E=b;return E=kp(b),n.tag=Z,n.type=E,kS(n,b),o_(e,n,E,c,p)}{var N=b.propTypes;N&&Jo(N,c,"prop",Yt(b))}var O=mE(s.type,null,c,n,n.mode,p);return O.ref=n.ref,O.return=n,n.child=O,O}{var V=s.type,H=V.propTypes;H&&Jo(H,c,"prop",Yt(V))}var te=e.child,K=BS(e,p);if(!K){var he=te.memoizedProps,ve=s.compare;if(ve=ve!==null?ve:Et,ve(he,c)&&e.ref===n.ref)return Ul(e,n,p)}n.flags|=$i;var xe=Vd(te,c);return xe.ref=n.ref,xe.return=n,n.child=xe,xe}function o_(e,n,s,c,p){if(n.type!==n.elementType){var b=n.elementType;if(b.$$typeof===vt){var E=b,N=E._payload,O=E._init;try{b=O(N)}catch{b=null}var V=b&&b.propTypes;V&&Jo(V,c,"prop",Yt(b))}}if(e!==null){var H=e.memoizedProps;if(Et(H,c)&&e.ref===n.ref&&n.type===e.type)if(rs=!1,n.pendingProps=c=H,BS(e,p))(e.flags&pf)!==mt&&(rs=!0);else return n.lanes=e.lanes,Ul(e,n,p)}return OS(e,n,s,c,p)}function s_(e,n,s){var c=n.pendingProps,p=c.children,b=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Y)if((n.mode&ft)===gt){var E={baseLanes:Re,cachePool:null,transitions:null};n.memoizedState=E,Eb(n,s)}else if(Da(s,Ja)){var te={baseLanes:Re,cachePool:null,transitions:null};n.memoizedState=te;var K=b!==null?b.baseLanes:s;Eb(n,K)}else{var N=null,O;if(b!==null){var V=b.baseLanes;O=Dt(V,s)}else O=s;n.lanes=n.childLanes=Ja;var H={baseLanes:O,cachePool:N,transitions:null};return n.memoizedState=H,n.updateQueue=null,Eb(n,O),null}else{var he;b!==null?(he=Dt(b.baseLanes,s),n.memoizedState=null):he=s,Eb(n,he)}return Qa(e,n,p,s),n.child}function RF(e,n,s){var c=n.pendingProps;return Qa(e,n,c,s),n.child}function TF(e,n,s){var c=n.pendingProps.children;return Qa(e,n,c,s),n.child}function _F(e,n,s){{n.flags|=ut;{var c=n.stateNode;c.effectDuration=0,c.passiveEffectDuration=0}}var p=n.pendingProps,b=p.children;return Qa(e,n,b,s),n.child}function l_(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=Xa,n.flags|=so)}function OS(e,n,s,c,p){if(n.type!==n.elementType){var b=s.propTypes;b&&Jo(b,c,"prop",Yt(s))}var E;{var N=fp(n,s,!0);E=pp(n,N)}var O,V;yp(n,p),Ru(n);{if(Pv.current=n,Lr(!0),O=Rp(e,n,s,c,E,p),V=Tp(),n.mode&er){kn(!0);try{O=Rp(e,n,s,c,E,p),V=Tp()}finally{kn(!1)}}Lr(!1)}return xl(),e!==null&&!rs?(TT(e,n,p),Ul(e,n,p)):(sa()&&V&&fx(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function u_(e,n,s,c,p){{switch(HB(n)){case!1:{var b=n.stateNode,E=n.type,N=new E(n.memoizedProps,b.context),O=N.state;b.updater.enqueueSetState(b,O,null);break}case!0:{n.flags|=At,n.flags|=Pr;var V=new Error("Simulated error coming from DevTools"),H=Du(p);n.lanes=Dt(n.lanes,H);var te=TS(n,Dd(V,n),H);Nx(n,te);break}}if(n.type!==n.elementType){var K=s.propTypes;K&&Jo(K,c,"prop",Yt(s))}}var he;Hs(s)?(he=!0,Sy(n)):he=!1,yp(n,p);var ve=n.stateNode,xe;ve===null?(fb(e,n),mT(n,s,c),Bx(n,s,c,p),xe=!0):e===null?xe=KP(n,s,c,p):xe=eF(e,n,s,c,p);var Ke=DS(e,n,s,xe,he,p);{var yt=n.stateNode;xe&&yt.props!==c&&(kd||h("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",It(n)||"a component"),kd=!0)}return Ke}function DS(e,n,s,c,p,b){l_(e,n);var E=(n.flags&At)!==mt;if(!c&&!E)return p&&U1(n,s,!1),Ul(e,n,b);var N=n.stateNode;Pv.current=n;var O;if(E&&typeof s.getDerivedStateFromError!="function")O=null,KT();else{Ru(n);{if(Lr(!0),O=N.render(),n.mode&er){kn(!0);try{N.render()}finally{kn(!1)}}Lr(!1)}xl()}return n.flags|=$i,e!==null&&E?wF(e,n,O,b):Qa(e,n,O,b),n.memoizedState=N.state,p&&U1(n,s,!0),n.child}function c_(e){var n=e.stateNode;n.pendingContext?z1(e,n.pendingContext,n.pendingContext!==n.context):n.context&&z1(e,n.context,!1),Wx(e,n.containerInfo)}function NF(e,n,s){if(c_(n),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var c=n.pendingProps,p=n.memoizedState,b=p.element;lT(e,n),Py(n,c,null,s);var E=n.memoizedState;n.stateNode;var N=E.element;if(p.isDehydrated){var O={element:N,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},V=n.updateQueue;if(V.baseState=O,n.memoizedState=O,n.flags&aa){var H=Dd(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),n);return d_(e,n,N,s,H)}else if(N!==b){var te=Dd(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n);return d_(e,n,N,s,te)}else{OP(n);var K=xT(n,null,N,s);n.child=K;for(var he=K;he;)he.flags=he.flags&~Nn|oo,he=he.sibling}}else{if(mp(),N===b)return Ul(e,n,s);Qa(e,n,N,s)}return n.child}function d_(e,n,s,c,p){return mp(),yx(p),n.flags|=aa,Qa(e,n,s,c),n.child}function IF(e,n,s){ET(n),e===null&&gx(n);var c=n.type,p=n.pendingProps,b=e!==null?e.memoizedProps:null,E=p.children,N=QC(c,p);return N?E=null:b!==null&&QC(c,b)&&(n.flags|=ci),l_(e,n),Qa(e,n,E,s),n.child}function AF(e,n){return e===null&&gx(n),null}function jF(e,n,s,c){fb(e,n);var p=n.pendingProps,b=s,E=b._payload,N=b._init,O=N(E);n.type=O;var V=n.tag=AB(O),H=es(O,p),te;switch(V){case C:return kS(n,O),n.type=O=kp(O),te=OS(null,n,O,H,c),te;case x:return n.type=O=cE(O),te=u_(null,n,O,H,c),te;case U:return n.type=O=dE(O),te=a_(null,n,O,H,c),te;case X:{if(n.type!==n.elementType){var K=O.propTypes;K&&Jo(K,H,"prop",Yt(O))}return te=i_(null,n,O,es(O.type,H),c),te}}var he="";throw O!==null&&typeof O=="object"&&O.$$typeof===vt&&(he=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+O+". "+("Lazy element type must resolve to a class or function."+he))}function OF(e,n,s,c,p){fb(e,n),n.tag=x;var b;return Hs(s)?(b=!0,Sy(n)):b=!1,yp(n,p),mT(n,s,c),Bx(n,s,c,p),DS(null,n,s,!0,b,p)}function DF(e,n,s,c){fb(e,n);var p=n.pendingProps,b;{var E=fp(n,s,!1);b=pp(n,E)}yp(n,c);var N,O;Ru(n);{if(s.prototype&&typeof s.prototype.render=="function"){var V=Yt(s)||"Unknown";_S[V]||(h("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",V,V),_S[V]=!0)}n.mode&er&&Ko.recordLegacyContextWarning(n,null),Lr(!0),Pv.current=n,N=Rp(null,n,s,p,b,c),O=Tp(),Lr(!1)}if(xl(),n.flags|=$i,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){var H=Yt(s)||"Unknown";Fv[H]||(h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),Fv[H]=!0)}if(typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){{var te=Yt(s)||"Unknown";Fv[te]||(h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",te,te,te),Fv[te]=!0)}n.tag=x,n.memoizedState=null,n.updateQueue=null;var K=!1;return Hs(s)?(K=!0,Sy(n)):K=!1,n.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,_x(n),vT(n,N),Bx(n,s,p,c),DS(null,n,s,!0,K,c)}else{if(n.tag=C,n.mode&er){kn(!0);try{N=Rp(null,n,s,p,b,c),O=Tp()}finally{kn(!1)}}return sa()&&O&&fx(n),Qa(null,n,N,c),kS(n,s),n.child}}function kS(e,n){{if(n&&n.childContextTypes&&h("%s(...): childContextTypes cannot be defined on a function component.",n.displayName||n.name||"Component"),e.ref!==null){var s="",c=si();c&&(s+=`
|
|
190
190
|
|
|
191
|
-
Check the render method of \``+c+"`.");var p=c||"",b=e._debugSource;b&&(p=b.fileName+":"+b.lineNumber),AS[p]||(AS[p]=!0,h("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof n.getDerivedStateFromProps=="function"){var E=Zt(n)||"Unknown";IS[E]||(h("%s: Function components do not support getDerivedStateFromProps.",E),IS[E]=!0)}if(typeof n.contextType=="object"&&n.contextType!==null){var N=Zt(n)||"Unknown";NS[N]||(h("%s: Function components do not support contextType.",N),NS[N]=!0)}}}var MS={dehydrated:null,treeContext:null,retryLane:lr};function LS(e){return{baseLanes:e,cachePool:EF(),transitions:null}}function kF(e,n){var s=null;return{baseLanes:Dt(e.baseLanes,n),cachePool:s,transitions:e.transitions}}function MF(e,n,s,c){if(n!==null){var p=n.memoizedState;if(p===null)return!1}return Zx(e,Iv)}function LF(e,n){return ud(e.childLanes,n)}function f_(e,n,s){var c=n.pendingProps;GB(n)&&(n.flags|=At);var p=ts.current,b=!1,E=(n.flags&At)!==mt;if(E||MF(p,e)?(b=!0,n.flags&=~At):(e===null||e.memoizedState!==null)&&(p=aF(p,RT)),p=xp(p),ac(n,p),e===null){gx(n);var N=n.memoizedState;if(N!==null){var O=N.dehydrated;if(O!==null)return zF(n,O)}var V=c.children,H=c.fallback;if(b){var te=PF(n,V,H,s),K=n.child;return K.memoizedState=LS(s),n.memoizedState=MS,te}else return PS(n,V)}else{var he=e.memoizedState;if(he!==null){var ve=he.dehydrated;if(ve!==null)return $F(e,n,E,c,ve,he,s)}if(b){var xe=c.fallback,Ke=c.children,yt=VF(e,n,Ke,xe,s),pt=n.child,Wt=e.child.memoizedState;return pt.memoizedState=Wt===null?LS(s):kF(Wt,s),pt.childLanes=LF(e,s),n.memoizedState=MS,yt}else{var $t=c.children,oe=FF(e,n,$t,s);return n.memoizedState=null,oe}}}function PS(e,n,s){var c=e.mode,p={mode:"visible",children:n},b=FS(p,c);return b.return=e,e.child=b,b}function PF(e,n,s,c){var p=e.mode,b=e.child,E={mode:"hidden",children:n},N,O;return(p&ft)===gt&&b!==null?(N=b,N.childLanes=Re,N.pendingProps=E,e.mode&Kt&&(N.actualDuration=0,N.actualStartTime=-1,N.selfBaseDuration=0,N.treeBaseDuration=0),O=fc(s,p,c,null)):(N=FS(E,p),O=fc(s,p,c,null)),N.return=e,O.return=e,N.sibling=O,e.child=N,O}function FS(e,n,s){return pN(e,n,Re,null)}function p_(e,n){return Vd(e,n)}function FF(e,n,s,c){var p=e.child,b=p.sibling,E=p_(p,{mode:"visible",children:s});if((n.mode&ft)===gt&&(E.lanes=c),E.return=n,E.sibling=null,b!==null){var N=n.deletions;N===null?(n.deletions=[b],n.flags|=nn):N.push(b)}return n.child=E,E}function VF(e,n,s,c,p){var b=n.mode,E=e.child,N=E.sibling,O={mode:"hidden",children:s},V;if((b&ft)===gt&&n.child!==E){var H=n.child;V=H,V.childLanes=Re,V.pendingProps=O,n.mode&Kt&&(V.actualDuration=0,V.actualStartTime=-1,V.selfBaseDuration=E.selfBaseDuration,V.treeBaseDuration=E.treeBaseDuration),n.deletions=null}else V=p_(E,O),V.subtreeFlags=E.subtreeFlags&Fr;var te;return N!==null?te=Vd(N,c):(te=fc(c,b,p,null),te.flags|=Nn),te.return=n,V.return=n,V.sibling=te,n.child=V,te}function db(e,n,s,c){c!==null&&yx(c),bp(n,e.child,null,s);var p=n.pendingProps,b=p.children,E=PS(n,b);return E.flags|=Nn,n.memoizedState=null,E}function BF(e,n,s,c,p){var b=n.mode,E={mode:"visible",children:s},N=FS(E,b),O=fc(c,b,p,null);return O.flags|=Nn,N.return=n,O.return=n,N.sibling=O,n.child=N,(n.mode&ft)!==gt&&bp(n,e.child,null,p),O}function zF(e,n,s){return(e.mode&ft)===gt?(h("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Ct):nx(n)?e.lanes=tr:e.lanes=Ja,null}function $F(e,n,s,c,p,b,E){if(s)if(n.flags&aa){n.flags&=~aa;var oe=wS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return db(e,n,E,oe)}else{if(n.memoizedState!==null)return n.child=e.child,n.flags|=At,null;var Se=c.children,se=c.fallback,Fe=BF(e,n,Se,se,E),et=n.child;return et.memoizedState=LS(E),n.memoizedState=MS,Fe}else{if(AP(),(n.mode&ft)===gt)return db(e,n,E,null);if(nx(p)){var N,O,V;{var H=XL(p);N=H.digest,O=H.message,V=H.stack}var te;O?te=new Error(O):te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var K=wS(te,N,V);return db(e,n,E,K)}var he=Da(E,e.childLanes);if(rs||he){var ve=Sb();if(ve!==null){var xe=Pg(ve,E);if(xe!==lr&&xe!==b.retryLane){b.retryLane=xe;var Ke=Mn;Ei(e,xe),Xr(ve,e,xe,Ke)}}iE();var yt=wS(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return db(e,n,E,yt)}else if(M1(p)){n.flags|=At,n.child=e.child;var pt=pB.bind(null,e);return YL(p,pt),null}else{DP(n,p,b.treeContext);var Wt=c.children,$t=PS(n,Wt);return $t.flags|=oo,$t}}}function h_(e,n,s){e.lanes=Dt(e.lanes,n);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,n)),Ex(e.return,n,s)}function UF(e,n,s){for(var c=n;c!==null;){if(c.tag===z){var p=c.memoizedState;p!==null&&h_(c,s,e)}else if(c.tag===de)h_(c,s,e);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;c=c.return}c.sibling.return=c.return,c=c.sibling}}function HF(e){for(var n=e,s=null;n!==null;){var c=n.alternate;c!==null&&Hy(c)===null&&(s=n),n=n.sibling}return s}function GF(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!jS[e])if(jS[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{h('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{h('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:h('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else h('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function WF(e,n){e!==void 0&&!cb[e]&&(e!=="collapsed"&&e!=="hidden"?(cb[e]=!0,h('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):n!=="forwards"&&n!=="backwards"&&(cb[e]=!0,h('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function v_(e,n){{var s=qt(e),c=!s&&typeof eo(e)=="function";if(s||c){var p=s?"array":"iterable";return h("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,n,p),!1}}return!0}function XF(e,n){if((n==="forwards"||n==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(qt(e)){for(var s=0;s<e.length;s++)if(!v_(e[s],s))return}else{var c=eo(e);if(typeof c=="function"){var p=c.call(e);if(p)for(var b=p.next(),E=0;!b.done;b=p.next()){if(!v_(b.value,E))return;E++}}else h('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',n)}}function VS(e,n,s,c,p){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=s,b.tailMode=p)}function m_(e,n,s){var c=n.pendingProps,p=c.revealOrder,b=c.tail,E=c.children;GF(p),WF(b,p),XF(E,p),Qa(e,n,E,s);var N=ts.current,O=Zx(N,Iv);if(O)N=qx(N,Iv),n.flags|=At;else{var V=e!==null&&(e.flags&At)!==mt;V&&UF(n,n.child,s),N=xp(N)}if(ac(n,N),(n.mode&ft)===gt)n.memoizedState=null;else switch(p){case"forwards":{var H=HF(n.child),te;H===null?(te=n.child,n.child=null):(te=H.sibling,H.sibling=null),VS(n,!1,te,H,b);break}case"backwards":{var K=null,he=n.child;for(n.child=null;he!==null;){var ve=he.alternate;if(ve!==null&&Hy(ve)===null){n.child=he;break}var xe=he.sibling;he.sibling=K,K=he,he=xe}VS(n,!0,K,null,b);break}case"together":{VS(n,!1,null,null,void 0);break}default:n.memoizedState=null}return n.child}function YF(e,n,s){Wx(n,n.stateNode.containerInfo);var c=n.pendingProps;return e===null?n.child=bp(n,null,c,s):Qa(e,n,c,s),n.child}var g_=!1;function ZF(e,n,s){var c=n.type,p=c._context,b=n.pendingProps,E=n.memoizedProps,N=b.value;{"value"in b||g_||(g_=!0,h("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var O=n.type.propTypes;O&&Jo(O,b,"prop","Context.Provider")}if(aT(n,p,N),E!==null){var V=E.value;if(at(V,N)){if(E.children===b.children&&!Cy())return Ul(e,n,s)}else UP(n,p,s)}var H=b.children;return Qa(e,n,H,s),n.child}var y_=!1;function qF(e,n,s){var c=n.type;c._context===void 0?c!==c.Consumer&&(y_||(y_=!0,h("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var p=n.pendingProps,b=p.children;typeof b!="function"&&h("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),yp(n,s);var E=Dr(c);Ru(n);var N;return Pv.current=n,Lr(!0),N=b(E),Lr(!1),xl(),n.flags|=$i,Qa(e,n,N,s),n.child}function Vv(){rs=!0}function fb(e,n){(n.mode&ft)===gt&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=Nn)}function Ul(e,n,s){return e!==null&&(n.dependencies=e.dependencies),KT(),Jv(n.lanes),Da(s,n.childLanes)?(tF(e,n),n.child):null}function JF(e,n,s){{var c=n.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,s.index=n.index,s.sibling=n.sibling,s.return=n.return,s.ref=n.ref,n===c.child)c.child=s;else{var p=c.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==n;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var b=c.deletions;return b===null?(c.deletions=[e],c.flags|=nn):b.push(e),s.flags|=Nn,s}}function BS(e,n){var s=e.lanes;return!!Da(s,n)}function QF(e,n,s){switch(n.tag){case R:c_(n),n.stateNode,mp();break;case I:ET(n);break;case x:{var c=n.type;Hs(c)&&Sy(n);break}case j:Wx(n,n.stateNode.containerInfo);break;case F:{var p=n.memoizedProps.value,b=n.type._context;aT(n,b,p);break}case B:{var E=Da(s,n.childLanes);E&&(n.flags|=ut);{var N=n.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}}break;case z:{var O=n.memoizedState;if(O!==null){if(O.dehydrated!==null)return ac(n,xp(ts.current)),n.flags|=At,null;var V=n.child,H=V.childLanes;if(Da(s,H))return f_(e,n,s);ac(n,xp(ts.current));var te=Ul(e,n,s);return te!==null?te.sibling:null}else ac(n,xp(ts.current));break}case de:{var K=(e.flags&At)!==mt,he=Da(s,n.childLanes);if(K){if(he)return m_(e,n,s);n.flags|=At}var ve=n.memoizedState;if(ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),ac(n,ts.current),he)break;return null}case Ee:case Ce:return n.lanes=Re,s_(e,n,s)}return Ul(e,n,s)}function b_(e,n,s){if(n._debugNeedsRemount&&e!==null)return JF(e,n,mE(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes));if(e!==null){var c=e.memoizedProps,p=n.pendingProps;if(c!==p||Cy()||n.type!==e.type)rs=!0;else{var b=BS(e,s);if(!b&&(n.flags&At)===mt)return rs=!1,QF(e,n,s);(e.flags&pf)!==mt?rs=!0:rs=!1}}else if(rs=!1,sa()&&wP(n)){var E=n.index,N=RP();W1(n,N,E)}switch(n.lanes=Re,n.tag){case w:return DF(e,n,n.type,s);case ue:{var O=n.elementType;return jF(e,n,O,s)}case C:{var V=n.type,H=n.pendingProps,te=n.elementType===V?H:es(V,H);return OS(e,n,V,te,s)}case x:{var K=n.type,he=n.pendingProps,ve=n.elementType===K?he:es(K,he);return u_(e,n,K,ve,s)}case R:return NF(e,n,s);case I:return IF(e,n,s);case _:return AF(e,n);case z:return f_(e,n,s);case j:return YF(e,n,s);case U:{var xe=n.type,Ke=n.pendingProps,yt=n.elementType===xe?Ke:es(xe,Ke);return a_(e,n,xe,yt,s)}case A:return RF(e,n,s);case L:return TF(e,n,s);case B:return _F(e,n,s);case F:return ZF(e,n,s);case P:return qF(e,n,s);case X:{var pt=n.type,Wt=n.pendingProps,$t=es(pt,Wt);if(n.type!==n.elementType){var oe=pt.propTypes;oe&&Jo(oe,$t,"prop",Zt(pt))}return $t=es(pt.type,$t),i_(e,n,pt,$t,s)}case Z:return o_(e,n,n.type,n.pendingProps,s);case ie:{var Se=n.type,se=n.pendingProps,Fe=n.elementType===Se?se:es(Se,se);return OF(e,n,Se,Fe,s)}case de:return m_(e,n,s);case _e:break;case Ee:return s_(e,n,s)}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function _p(e){e.flags|=ut}function C_(e){e.flags|=Xa,e.flags|=so}var x_,zS,S_,E_;x_=function(e,n,s,c){for(var p=n.child;p!==null;){if(p.tag===I||p.tag===_)xL(e,p.stateNode);else if(p.tag!==j){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===n)return;for(;p.sibling===null;){if(p.return===null||p.return===n)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},zS=function(e,n){},S_=function(e,n,s,c,p){var b=e.memoizedProps;if(b!==c){var E=n.stateNode,N=Xx(),O=EL(E,s,b,c,p,N);n.updateQueue=O,O&&_p(n)}},E_=function(e,n,s,c){s!==c&&_p(n)};function Bv(e,n){if(!sa())switch(e.tailMode){case"hidden":{for(var s=e.tail,c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?e.tail=null:c.sibling=null;break}case"collapsed":{for(var p=e.tail,b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?!n&&e.tail!==null?e.tail.sibling=null:e.tail=null:b.sibling=null;break}}}function ua(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=Re,c=mt;if(n){if((e.mode&Kt)!==gt){for(var O=e.selfBaseDuration,V=e.child;V!==null;)s=Dt(s,Dt(V.lanes,V.childLanes)),c|=V.subtreeFlags&Fr,c|=V.flags&Fr,O+=V.treeBaseDuration,V=V.sibling;e.treeBaseDuration=O}else for(var H=e.child;H!==null;)s=Dt(s,Dt(H.lanes,H.childLanes)),c|=H.subtreeFlags&Fr,c|=H.flags&Fr,H.return=e,H=H.sibling;e.subtreeFlags|=c}else{if((e.mode&Kt)!==gt){for(var p=e.actualDuration,b=e.selfBaseDuration,E=e.child;E!==null;)s=Dt(s,Dt(E.lanes,E.childLanes)),c|=E.subtreeFlags,c|=E.flags,p+=E.actualDuration,b+=E.treeBaseDuration,E=E.sibling;e.actualDuration=p,e.treeBaseDuration=b}else for(var N=e.child;N!==null;)s=Dt(s,Dt(N.lanes,N.childLanes)),c|=N.subtreeFlags,c|=N.flags,N.return=e,N=N.sibling;e.subtreeFlags|=c}return e.childLanes=s,n}function KF(e,n,s){if(FP()&&(n.mode&ft)!==gt&&(n.flags&At)===mt)return K1(n),mp(),n.flags|=aa|Ns|Pr,!1;var c=_y(n);if(s!==null&&s.dehydrated!==null)if(e===null){if(!c)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(LP(n),ua(n),(n.mode&Kt)!==gt){var p=s!==null;if(p){var b=n.child;b!==null&&(n.treeBaseDuration-=b.treeBaseDuration)}}return!1}else{if(mp(),(n.flags&At)===mt&&(n.memoizedState=null),n.flags|=ut,ua(n),(n.mode&Kt)!==gt){var E=s!==null;if(E){var N=n.child;N!==null&&(n.treeBaseDuration-=N.treeBaseDuration)}}return!1}else return eT(),!0}function w_(e,n,s){var c=n.pendingProps;switch(px(n),n.tag){case w:case ue:case Z:case C:case U:case A:case L:case B:case P:case X:return ua(n),null;case x:{var p=n.type;return Hs(p)&&xy(n),ua(n),null}case R:{var b=n.stateNode;if(Cp(n),ux(n),Qx(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),e===null||e.child===null){var E=_y(n);if(E)_p(n);else if(e!==null){var N=e.memoizedState;(!N.isDehydrated||(n.flags&aa)!==mt)&&(n.flags|=vr,eT())}}return zS(e,n),ua(n),null}case I:{Yx(n);var O=ST(),V=n.type;if(e!==null&&n.stateNode!=null)S_(e,n,V,c,O),e.ref!==n.ref&&C_(n);else{if(!c){if(n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ua(n),null}var H=Xx(),te=_y(n);if(te)kP(n,O,H)&&_p(n);else{var K=CL(V,c,O,H,n);x_(K,n,!1,!1),n.stateNode=K,SL(K,V,c,O)&&_p(n)}n.ref!==null&&C_(n)}return ua(n),null}case _:{var he=c;if(e&&n.stateNode!=null){var ve=e.memoizedProps;E_(e,n,ve,he)}else{if(typeof he!="string"&&n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var xe=ST(),Ke=Xx(),yt=_y(n);yt?MP(n)&&_p(n):n.stateNode=wL(he,xe,Ke,n)}return ua(n),null}case z:{Sp(n);var pt=n.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=KF(e,n,pt);if(!Wt)return n.flags&Pr?n:null}if((n.flags&At)!==mt)return n.lanes=s,(n.mode&Kt)!==gt&&ES(n),n;var $t=pt!==null,oe=e!==null&&e.memoizedState!==null;if($t!==oe&&$t){var Se=n.child;if(Se.flags|=_s,(n.mode&ft)!==gt){var se=e===null&&(n.memoizedProps.unstable_avoidThisFallback!==!0||!ne);se||Zx(ts.current,RT)?eB():iE()}}var Fe=n.updateQueue;if(Fe!==null&&(n.flags|=ut),ua(n),(n.mode&Kt)!==gt&&$t){var et=n.child;et!==null&&(n.treeBaseDuration-=et.treeBaseDuration)}return null}case j:return Cp(n),zS(e,n),e===null&&gP(n.stateNode.containerInfo),ua(n),null;case F:var Ze=n.type._context;return Sx(Ze,n),ua(n),null;case ie:{var Nt=n.type;return Hs(Nt)&&xy(n),ua(n),null}case de:{Sp(n);var Ot=n.memoizedState;if(Ot===null)return ua(n),null;var En=(n.flags&At)!==mt,an=Ot.rendering;if(an===null)if(En)Bv(Ot,!1);else{var wr=nB()&&(e===null||(e.flags&At)===mt);if(!wr)for(var on=n.child;on!==null;){var gr=Hy(on);if(gr!==null){En=!0,n.flags|=At,Bv(Ot,!1);var Fa=gr.updateQueue;return Fa!==null&&(n.updateQueue=Fa,n.flags|=ut),n.subtreeFlags=mt,nF(n,s),ac(n,qx(ts.current,Iv)),n.child}on=on.sibling}Ot.tail!==null&&mr()>G_()&&(n.flags|=At,En=!0,Bv(Ot,!1),n.lanes=Fh)}else{if(!En){var ha=Hy(an);if(ha!==null){n.flags|=At,En=!0;var Wi=ha.updateQueue;if(Wi!==null&&(n.updateQueue=Wi,n.flags|=ut),Bv(Ot,!0),Ot.tail===null&&Ot.tailMode==="hidden"&&!an.alternate&&!sa())return ua(n),null}else mr()*2-Ot.renderingStartTime>G_()&&s!==Ja&&(n.flags|=At,En=!0,Bv(Ot,!1),n.lanes=Fh)}if(Ot.isBackwards)an.sibling=n.child,n.child=an;else{var ti=Ot.last;ti!==null?ti.sibling=an:n.child=an,Ot.last=an}}if(Ot.tail!==null){var ni=Ot.tail;Ot.rendering=ni,Ot.tail=ni.sibling,Ot.renderingStartTime=mr(),ni.sibling=null;var Va=ts.current;return En?Va=qx(Va,Iv):Va=xp(Va),ac(n,Va),ni}return ua(n),null}case _e:break;case Ee:case Ce:{aE(n);var Yl=n.memoizedState,Mp=Yl!==null;if(e!==null){var nm=e.memoizedState,Qs=nm!==null;Qs!==Mp&&!Y&&(n.flags|=_s)}return!Mp||(n.mode&ft)===gt?ua(n):Da(Js,Ja)&&(ua(n),n.subtreeFlags&(Nn|ut)&&(n.flags|=_s)),null}case je:return null;case Le:return null}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function eV(e,n,s){switch(px(n),n.tag){case x:{var c=n.type;Hs(c)&&xy(n);var p=n.flags;return p&Pr?(n.flags=p&~Pr|At,(n.mode&Kt)!==gt&&ES(n),n):null}case R:{n.stateNode,Cp(n),ux(n),Qx();var b=n.flags;return(b&Pr)!==mt&&(b&At)===mt?(n.flags=b&~Pr|At,n):null}case I:return Yx(n),null;case z:{Sp(n);var E=n.memoizedState;if(E!==null&&E.dehydrated!==null){if(n.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");mp()}var N=n.flags;return N&Pr?(n.flags=N&~Pr|At,(n.mode&Kt)!==gt&&ES(n),n):null}case de:return Sp(n),null;case j:return Cp(n),null;case F:var O=n.type._context;return Sx(O,n),null;case Ee:case Ce:return aE(n),null;case je:return null;default:return null}}function R_(e,n,s){switch(px(n),n.tag){case x:{var c=n.type.childContextTypes;c!=null&&xy(n);break}case R:{n.stateNode,Cp(n),ux(n),Qx();break}case I:{Yx(n);break}case j:Cp(n);break;case z:Sp(n);break;case de:Sp(n);break;case F:var p=n.type._context;Sx(p,n);break;case Ee:case Ce:aE(n);break}}var T_=null;T_=new Set;var pb=!1,ca=!1,tV=typeof WeakSet=="function"?WeakSet:Set,it=null,Np=null,Ip=null;function nV(e){zi(null,function(){throw e}),Uo()}var rV=function(e,n){if(n.props=e.memoizedProps,n.state=e.memoizedState,e.mode&Kt)try{Zs(),n.componentWillUnmount()}finally{Ys(e)}else n.componentWillUnmount()};function __(e,n){try{sc(zr,e)}catch(s){$n(e,n,s)}}function $S(e,n,s){try{rV(e,s)}catch(c){$n(e,n,c)}}function aV(e,n,s){try{s.componentDidMount()}catch(c){$n(e,n,c)}}function N_(e,n){try{A_(e)}catch(s){$n(e,n,s)}}function Ap(e,n){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ce&&fe&&e.mode&Kt)try{Zs(),c=s(null)}finally{Ys(e)}else c=s(null)}catch(p){$n(e,n,p)}typeof c=="function"&&h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(e))}else s.current=null}function hb(e,n,s){try{s()}catch(c){$n(e,n,c)}}var I_=!1;function iV(e,n){yL(e.containerInfo),it=n,oV();var s=I_;return I_=!1,s}function oV(){for(;it!==null;){var e=it,n=e.child;(e.subtreeFlags&Ta)!==mt&&n!==null?(n.return=e,it=n):sV()}}function sV(){for(;it!==null;){var e=it;Xn(e);try{lV(e)}catch(s){$n(e,e.return,s)}Fn();var n=e.sibling;if(n!==null){n.return=e.return,it=n;return}it=e.return}}function lV(e){var n=e.alternate,s=e.flags;if((s&vr)!==mt){switch(Xn(e),e.tag){case C:case U:case Z:break;case x:{if(n!==null){var c=n.memoizedProps,p=n.memoizedState,b=e.stateNode;e.type===e.elementType&&!kd&&(b.props!==e.memoizedProps&&h("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(e)||"instance"),b.state!==e.memoizedState&&h("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(e)||"instance"));var E=b.getSnapshotBeforeUpdate(e.elementType===e.type?c:es(e.type,c),p);{var N=T_;E===void 0&&!N.has(e.type)&&(N.add(e.type),h("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",It(e)))}b.__reactInternalSnapshotBeforeUpdate=E}break}case R:{{var O=e.stateNode;UL(O.containerInfo)}break}case I:case _:case j:case ie:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Fn()}}function as(e,n,s){var c=n.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var b=p.next,E=b;do{if((E.tag&e)===e){var N=E.destroy;E.destroy=void 0,N!==void 0&&((e&la)!==wi?Eg(n):(e&zr)!==wi&&Tu(n),(e&Gs)!==wi&&Kv(!0),hb(n,s,N),(e&Gs)!==wi&&Kv(!1),(e&la)!==wi?wg():(e&zr)!==wi&&Qc())}E=E.next}while(E!==b)}}function sc(e,n){var s=n.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next,b=p;do{if((b.tag&e)===e){(e&la)!==wi?kh(n):(e&zr)!==wi&&Rg(n);var E=b.create;(e&Gs)!==wi&&Kv(!0),b.destroy=E(),(e&Gs)!==wi&&Kv(!1),(e&la)!==wi?bf():(e&zr)!==wi&&Mh();{var N=b.destroy;if(N!==void 0&&typeof N!="function"){var O=void 0;(b.tag&zr)!==mt?O="useLayoutEffect":(b.tag&Gs)!==mt?O="useInsertionEffect":O="useEffect";var V=void 0;N===null?V=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof N.then=="function"?V=`
|
|
191
|
+
Check the render method of \``+c+"`.");var p=c||"",b=e._debugSource;b&&(p=b.fileName+":"+b.lineNumber),AS[p]||(AS[p]=!0,h("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof n.getDerivedStateFromProps=="function"){var E=Yt(n)||"Unknown";IS[E]||(h("%s: Function components do not support getDerivedStateFromProps.",E),IS[E]=!0)}if(typeof n.contextType=="object"&&n.contextType!==null){var N=Yt(n)||"Unknown";NS[N]||(h("%s: Function components do not support contextType.",N),NS[N]=!0)}}}var MS={dehydrated:null,treeContext:null,retryLane:lr};function LS(e){return{baseLanes:e,cachePool:EF(),transitions:null}}function kF(e,n){var s=null;return{baseLanes:Dt(e.baseLanes,n),cachePool:s,transitions:e.transitions}}function MF(e,n,s,c){if(n!==null){var p=n.memoizedState;if(p===null)return!1}return Zx(e,Iv)}function LF(e,n){return ud(e.childLanes,n)}function f_(e,n,s){var c=n.pendingProps;GB(n)&&(n.flags|=At);var p=ts.current,b=!1,E=(n.flags&At)!==mt;if(E||MF(p,e)?(b=!0,n.flags&=~At):(e===null||e.memoizedState!==null)&&(p=aF(p,RT)),p=xp(p),ac(n,p),e===null){gx(n);var N=n.memoizedState;if(N!==null){var O=N.dehydrated;if(O!==null)return zF(n,O)}var V=c.children,H=c.fallback;if(b){var te=PF(n,V,H,s),K=n.child;return K.memoizedState=LS(s),n.memoizedState=MS,te}else return PS(n,V)}else{var he=e.memoizedState;if(he!==null){var ve=he.dehydrated;if(ve!==null)return $F(e,n,E,c,ve,he,s)}if(b){var xe=c.fallback,Ke=c.children,yt=VF(e,n,Ke,xe,s),pt=n.child,Wt=e.child.memoizedState;return pt.memoizedState=Wt===null?LS(s):kF(Wt,s),pt.childLanes=LF(e,s),n.memoizedState=MS,yt}else{var $t=c.children,oe=FF(e,n,$t,s);return n.memoizedState=null,oe}}}function PS(e,n,s){var c=e.mode,p={mode:"visible",children:n},b=FS(p,c);return b.return=e,e.child=b,b}function PF(e,n,s,c){var p=e.mode,b=e.child,E={mode:"hidden",children:n},N,O;return(p&ft)===gt&&b!==null?(N=b,N.childLanes=Re,N.pendingProps=E,e.mode&Kt&&(N.actualDuration=0,N.actualStartTime=-1,N.selfBaseDuration=0,N.treeBaseDuration=0),O=fc(s,p,c,null)):(N=FS(E,p),O=fc(s,p,c,null)),N.return=e,O.return=e,N.sibling=O,e.child=N,O}function FS(e,n,s){return pN(e,n,Re,null)}function p_(e,n){return Vd(e,n)}function FF(e,n,s,c){var p=e.child,b=p.sibling,E=p_(p,{mode:"visible",children:s});if((n.mode&ft)===gt&&(E.lanes=c),E.return=n,E.sibling=null,b!==null){var N=n.deletions;N===null?(n.deletions=[b],n.flags|=nn):N.push(b)}return n.child=E,E}function VF(e,n,s,c,p){var b=n.mode,E=e.child,N=E.sibling,O={mode:"hidden",children:s},V;if((b&ft)===gt&&n.child!==E){var H=n.child;V=H,V.childLanes=Re,V.pendingProps=O,n.mode&Kt&&(V.actualDuration=0,V.actualStartTime=-1,V.selfBaseDuration=E.selfBaseDuration,V.treeBaseDuration=E.treeBaseDuration),n.deletions=null}else V=p_(E,O),V.subtreeFlags=E.subtreeFlags&Fr;var te;return N!==null?te=Vd(N,c):(te=fc(c,b,p,null),te.flags|=Nn),te.return=n,V.return=n,V.sibling=te,n.child=V,te}function db(e,n,s,c){c!==null&&yx(c),bp(n,e.child,null,s);var p=n.pendingProps,b=p.children,E=PS(n,b);return E.flags|=Nn,n.memoizedState=null,E}function BF(e,n,s,c,p){var b=n.mode,E={mode:"visible",children:s},N=FS(E,b),O=fc(c,b,p,null);return O.flags|=Nn,N.return=n,O.return=n,N.sibling=O,n.child=N,(n.mode&ft)!==gt&&bp(n,e.child,null,p),O}function zF(e,n,s){return(e.mode&ft)===gt?(h("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Ct):nx(n)?e.lanes=tr:e.lanes=Ja,null}function $F(e,n,s,c,p,b,E){if(s)if(n.flags&aa){n.flags&=~aa;var oe=wS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return db(e,n,E,oe)}else{if(n.memoizedState!==null)return n.child=e.child,n.flags|=At,null;var Se=c.children,se=c.fallback,Fe=BF(e,n,Se,se,E),et=n.child;return et.memoizedState=LS(E),n.memoizedState=MS,Fe}else{if(AP(),(n.mode&ft)===gt)return db(e,n,E,null);if(nx(p)){var N,O,V;{var H=XL(p);N=H.digest,O=H.message,V=H.stack}var te;O?te=new Error(O):te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var K=wS(te,N,V);return db(e,n,E,K)}var he=Da(E,e.childLanes);if(rs||he){var ve=Sb();if(ve!==null){var xe=Pg(ve,E);if(xe!==lr&&xe!==b.retryLane){b.retryLane=xe;var Ke=Mn;Ei(e,xe),Xr(ve,e,xe,Ke)}}iE();var yt=wS(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return db(e,n,E,yt)}else if(M1(p)){n.flags|=At,n.child=e.child;var pt=pB.bind(null,e);return YL(p,pt),null}else{DP(n,p,b.treeContext);var Wt=c.children,$t=PS(n,Wt);return $t.flags|=oo,$t}}}function h_(e,n,s){e.lanes=Dt(e.lanes,n);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,n)),Ex(e.return,n,s)}function UF(e,n,s){for(var c=n;c!==null;){if(c.tag===z){var p=c.memoizedState;p!==null&&h_(c,s,e)}else if(c.tag===de)h_(c,s,e);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;c=c.return}c.sibling.return=c.return,c=c.sibling}}function HF(e){for(var n=e,s=null;n!==null;){var c=n.alternate;c!==null&&Hy(c)===null&&(s=n),n=n.sibling}return s}function GF(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!jS[e])if(jS[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{h('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{h('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:h('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else h('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function WF(e,n){e!==void 0&&!cb[e]&&(e!=="collapsed"&&e!=="hidden"?(cb[e]=!0,h('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):n!=="forwards"&&n!=="backwards"&&(cb[e]=!0,h('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function v_(e,n){{var s=Zt(e),c=!s&&typeof eo(e)=="function";if(s||c){var p=s?"array":"iterable";return h("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,n,p),!1}}return!0}function XF(e,n){if((n==="forwards"||n==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Zt(e)){for(var s=0;s<e.length;s++)if(!v_(e[s],s))return}else{var c=eo(e);if(typeof c=="function"){var p=c.call(e);if(p)for(var b=p.next(),E=0;!b.done;b=p.next()){if(!v_(b.value,E))return;E++}}else h('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',n)}}function VS(e,n,s,c,p){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=s,b.tailMode=p)}function m_(e,n,s){var c=n.pendingProps,p=c.revealOrder,b=c.tail,E=c.children;GF(p),WF(b,p),XF(E,p),Qa(e,n,E,s);var N=ts.current,O=Zx(N,Iv);if(O)N=qx(N,Iv),n.flags|=At;else{var V=e!==null&&(e.flags&At)!==mt;V&&UF(n,n.child,s),N=xp(N)}if(ac(n,N),(n.mode&ft)===gt)n.memoizedState=null;else switch(p){case"forwards":{var H=HF(n.child),te;H===null?(te=n.child,n.child=null):(te=H.sibling,H.sibling=null),VS(n,!1,te,H,b);break}case"backwards":{var K=null,he=n.child;for(n.child=null;he!==null;){var ve=he.alternate;if(ve!==null&&Hy(ve)===null){n.child=he;break}var xe=he.sibling;he.sibling=K,K=he,he=xe}VS(n,!0,K,null,b);break}case"together":{VS(n,!1,null,null,void 0);break}default:n.memoizedState=null}return n.child}function YF(e,n,s){Wx(n,n.stateNode.containerInfo);var c=n.pendingProps;return e===null?n.child=bp(n,null,c,s):Qa(e,n,c,s),n.child}var g_=!1;function ZF(e,n,s){var c=n.type,p=c._context,b=n.pendingProps,E=n.memoizedProps,N=b.value;{"value"in b||g_||(g_=!0,h("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var O=n.type.propTypes;O&&Jo(O,b,"prop","Context.Provider")}if(aT(n,p,N),E!==null){var V=E.value;if(at(V,N)){if(E.children===b.children&&!Cy())return Ul(e,n,s)}else UP(n,p,s)}var H=b.children;return Qa(e,n,H,s),n.child}var y_=!1;function qF(e,n,s){var c=n.type;c._context===void 0?c!==c.Consumer&&(y_||(y_=!0,h("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var p=n.pendingProps,b=p.children;typeof b!="function"&&h("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),yp(n,s);var E=Dr(c);Ru(n);var N;return Pv.current=n,Lr(!0),N=b(E),Lr(!1),xl(),n.flags|=$i,Qa(e,n,N,s),n.child}function Vv(){rs=!0}function fb(e,n){(n.mode&ft)===gt&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=Nn)}function Ul(e,n,s){return e!==null&&(n.dependencies=e.dependencies),KT(),Jv(n.lanes),Da(s,n.childLanes)?(tF(e,n),n.child):null}function JF(e,n,s){{var c=n.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,s.index=n.index,s.sibling=n.sibling,s.return=n.return,s.ref=n.ref,n===c.child)c.child=s;else{var p=c.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==n;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var b=c.deletions;return b===null?(c.deletions=[e],c.flags|=nn):b.push(e),s.flags|=Nn,s}}function BS(e,n){var s=e.lanes;return!!Da(s,n)}function QF(e,n,s){switch(n.tag){case R:c_(n),n.stateNode,mp();break;case I:ET(n);break;case x:{var c=n.type;Hs(c)&&Sy(n);break}case j:Wx(n,n.stateNode.containerInfo);break;case F:{var p=n.memoizedProps.value,b=n.type._context;aT(n,b,p);break}case B:{var E=Da(s,n.childLanes);E&&(n.flags|=ut);{var N=n.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}}break;case z:{var O=n.memoizedState;if(O!==null){if(O.dehydrated!==null)return ac(n,xp(ts.current)),n.flags|=At,null;var V=n.child,H=V.childLanes;if(Da(s,H))return f_(e,n,s);ac(n,xp(ts.current));var te=Ul(e,n,s);return te!==null?te.sibling:null}else ac(n,xp(ts.current));break}case de:{var K=(e.flags&At)!==mt,he=Da(s,n.childLanes);if(K){if(he)return m_(e,n,s);n.flags|=At}var ve=n.memoizedState;if(ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),ac(n,ts.current),he)break;return null}case Ee:case Ce:return n.lanes=Re,s_(e,n,s)}return Ul(e,n,s)}function b_(e,n,s){if(n._debugNeedsRemount&&e!==null)return JF(e,n,mE(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes));if(e!==null){var c=e.memoizedProps,p=n.pendingProps;if(c!==p||Cy()||n.type!==e.type)rs=!0;else{var b=BS(e,s);if(!b&&(n.flags&At)===mt)return rs=!1,QF(e,n,s);(e.flags&pf)!==mt?rs=!0:rs=!1}}else if(rs=!1,sa()&&wP(n)){var E=n.index,N=RP();W1(n,N,E)}switch(n.lanes=Re,n.tag){case w:return DF(e,n,n.type,s);case ue:{var O=n.elementType;return jF(e,n,O,s)}case C:{var V=n.type,H=n.pendingProps,te=n.elementType===V?H:es(V,H);return OS(e,n,V,te,s)}case x:{var K=n.type,he=n.pendingProps,ve=n.elementType===K?he:es(K,he);return u_(e,n,K,ve,s)}case R:return NF(e,n,s);case I:return IF(e,n,s);case _:return AF(e,n);case z:return f_(e,n,s);case j:return YF(e,n,s);case U:{var xe=n.type,Ke=n.pendingProps,yt=n.elementType===xe?Ke:es(xe,Ke);return a_(e,n,xe,yt,s)}case A:return RF(e,n,s);case L:return TF(e,n,s);case B:return _F(e,n,s);case F:return ZF(e,n,s);case P:return qF(e,n,s);case X:{var pt=n.type,Wt=n.pendingProps,$t=es(pt,Wt);if(n.type!==n.elementType){var oe=pt.propTypes;oe&&Jo(oe,$t,"prop",Yt(pt))}return $t=es(pt.type,$t),i_(e,n,pt,$t,s)}case Z:return o_(e,n,n.type,n.pendingProps,s);case ie:{var Se=n.type,se=n.pendingProps,Fe=n.elementType===Se?se:es(Se,se);return OF(e,n,Se,Fe,s)}case de:return m_(e,n,s);case _e:break;case Ee:return s_(e,n,s)}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function _p(e){e.flags|=ut}function C_(e){e.flags|=Xa,e.flags|=so}var x_,zS,S_,E_;x_=function(e,n,s,c){for(var p=n.child;p!==null;){if(p.tag===I||p.tag===_)xL(e,p.stateNode);else if(p.tag!==j){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===n)return;for(;p.sibling===null;){if(p.return===null||p.return===n)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},zS=function(e,n){},S_=function(e,n,s,c,p){var b=e.memoizedProps;if(b!==c){var E=n.stateNode,N=Xx(),O=EL(E,s,b,c,p,N);n.updateQueue=O,O&&_p(n)}},E_=function(e,n,s,c){s!==c&&_p(n)};function Bv(e,n){if(!sa())switch(e.tailMode){case"hidden":{for(var s=e.tail,c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?e.tail=null:c.sibling=null;break}case"collapsed":{for(var p=e.tail,b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?!n&&e.tail!==null?e.tail.sibling=null:e.tail=null:b.sibling=null;break}}}function ua(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=Re,c=mt;if(n){if((e.mode&Kt)!==gt){for(var O=e.selfBaseDuration,V=e.child;V!==null;)s=Dt(s,Dt(V.lanes,V.childLanes)),c|=V.subtreeFlags&Fr,c|=V.flags&Fr,O+=V.treeBaseDuration,V=V.sibling;e.treeBaseDuration=O}else for(var H=e.child;H!==null;)s=Dt(s,Dt(H.lanes,H.childLanes)),c|=H.subtreeFlags&Fr,c|=H.flags&Fr,H.return=e,H=H.sibling;e.subtreeFlags|=c}else{if((e.mode&Kt)!==gt){for(var p=e.actualDuration,b=e.selfBaseDuration,E=e.child;E!==null;)s=Dt(s,Dt(E.lanes,E.childLanes)),c|=E.subtreeFlags,c|=E.flags,p+=E.actualDuration,b+=E.treeBaseDuration,E=E.sibling;e.actualDuration=p,e.treeBaseDuration=b}else for(var N=e.child;N!==null;)s=Dt(s,Dt(N.lanes,N.childLanes)),c|=N.subtreeFlags,c|=N.flags,N.return=e,N=N.sibling;e.subtreeFlags|=c}return e.childLanes=s,n}function KF(e,n,s){if(FP()&&(n.mode&ft)!==gt&&(n.flags&At)===mt)return K1(n),mp(),n.flags|=aa|Ns|Pr,!1;var c=_y(n);if(s!==null&&s.dehydrated!==null)if(e===null){if(!c)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(LP(n),ua(n),(n.mode&Kt)!==gt){var p=s!==null;if(p){var b=n.child;b!==null&&(n.treeBaseDuration-=b.treeBaseDuration)}}return!1}else{if(mp(),(n.flags&At)===mt&&(n.memoizedState=null),n.flags|=ut,ua(n),(n.mode&Kt)!==gt){var E=s!==null;if(E){var N=n.child;N!==null&&(n.treeBaseDuration-=N.treeBaseDuration)}}return!1}else return eT(),!0}function w_(e,n,s){var c=n.pendingProps;switch(px(n),n.tag){case w:case ue:case Z:case C:case U:case A:case L:case B:case P:case X:return ua(n),null;case x:{var p=n.type;return Hs(p)&&xy(n),ua(n),null}case R:{var b=n.stateNode;if(Cp(n),ux(n),Qx(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),e===null||e.child===null){var E=_y(n);if(E)_p(n);else if(e!==null){var N=e.memoizedState;(!N.isDehydrated||(n.flags&aa)!==mt)&&(n.flags|=vr,eT())}}return zS(e,n),ua(n),null}case I:{Yx(n);var O=ST(),V=n.type;if(e!==null&&n.stateNode!=null)S_(e,n,V,c,O),e.ref!==n.ref&&C_(n);else{if(!c){if(n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ua(n),null}var H=Xx(),te=_y(n);if(te)kP(n,O,H)&&_p(n);else{var K=CL(V,c,O,H,n);x_(K,n,!1,!1),n.stateNode=K,SL(K,V,c,O)&&_p(n)}n.ref!==null&&C_(n)}return ua(n),null}case _:{var he=c;if(e&&n.stateNode!=null){var ve=e.memoizedProps;E_(e,n,ve,he)}else{if(typeof he!="string"&&n.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var xe=ST(),Ke=Xx(),yt=_y(n);yt?MP(n)&&_p(n):n.stateNode=wL(he,xe,Ke,n)}return ua(n),null}case z:{Sp(n);var pt=n.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=KF(e,n,pt);if(!Wt)return n.flags&Pr?n:null}if((n.flags&At)!==mt)return n.lanes=s,(n.mode&Kt)!==gt&&ES(n),n;var $t=pt!==null,oe=e!==null&&e.memoizedState!==null;if($t!==oe&&$t){var Se=n.child;if(Se.flags|=_s,(n.mode&ft)!==gt){var se=e===null&&(n.memoizedProps.unstable_avoidThisFallback!==!0||!ne);se||Zx(ts.current,RT)?eB():iE()}}var Fe=n.updateQueue;if(Fe!==null&&(n.flags|=ut),ua(n),(n.mode&Kt)!==gt&&$t){var et=n.child;et!==null&&(n.treeBaseDuration-=et.treeBaseDuration)}return null}case j:return Cp(n),zS(e,n),e===null&&gP(n.stateNode.containerInfo),ua(n),null;case F:var Ze=n.type._context;return Sx(Ze,n),ua(n),null;case ie:{var Nt=n.type;return Hs(Nt)&&xy(n),ua(n),null}case de:{Sp(n);var Ot=n.memoizedState;if(Ot===null)return ua(n),null;var En=(n.flags&At)!==mt,an=Ot.rendering;if(an===null)if(En)Bv(Ot,!1);else{var wr=nB()&&(e===null||(e.flags&At)===mt);if(!wr)for(var on=n.child;on!==null;){var gr=Hy(on);if(gr!==null){En=!0,n.flags|=At,Bv(Ot,!1);var Fa=gr.updateQueue;return Fa!==null&&(n.updateQueue=Fa,n.flags|=ut),n.subtreeFlags=mt,nF(n,s),ac(n,qx(ts.current,Iv)),n.child}on=on.sibling}Ot.tail!==null&&mr()>G_()&&(n.flags|=At,En=!0,Bv(Ot,!1),n.lanes=Fh)}else{if(!En){var ha=Hy(an);if(ha!==null){n.flags|=At,En=!0;var Wi=ha.updateQueue;if(Wi!==null&&(n.updateQueue=Wi,n.flags|=ut),Bv(Ot,!0),Ot.tail===null&&Ot.tailMode==="hidden"&&!an.alternate&&!sa())return ua(n),null}else mr()*2-Ot.renderingStartTime>G_()&&s!==Ja&&(n.flags|=At,En=!0,Bv(Ot,!1),n.lanes=Fh)}if(Ot.isBackwards)an.sibling=n.child,n.child=an;else{var ti=Ot.last;ti!==null?ti.sibling=an:n.child=an,Ot.last=an}}if(Ot.tail!==null){var ni=Ot.tail;Ot.rendering=ni,Ot.tail=ni.sibling,Ot.renderingStartTime=mr(),ni.sibling=null;var Va=ts.current;return En?Va=qx(Va,Iv):Va=xp(Va),ac(n,Va),ni}return ua(n),null}case _e:break;case Ee:case Ce:{aE(n);var Yl=n.memoizedState,Mp=Yl!==null;if(e!==null){var nm=e.memoizedState,Qs=nm!==null;Qs!==Mp&&!Y&&(n.flags|=_s)}return!Mp||(n.mode&ft)===gt?ua(n):Da(Js,Ja)&&(ua(n),n.subtreeFlags&(Nn|ut)&&(n.flags|=_s)),null}case je:return null;case Le:return null}throw new Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function eV(e,n,s){switch(px(n),n.tag){case x:{var c=n.type;Hs(c)&&xy(n);var p=n.flags;return p&Pr?(n.flags=p&~Pr|At,(n.mode&Kt)!==gt&&ES(n),n):null}case R:{n.stateNode,Cp(n),ux(n),Qx();var b=n.flags;return(b&Pr)!==mt&&(b&At)===mt?(n.flags=b&~Pr|At,n):null}case I:return Yx(n),null;case z:{Sp(n);var E=n.memoizedState;if(E!==null&&E.dehydrated!==null){if(n.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");mp()}var N=n.flags;return N&Pr?(n.flags=N&~Pr|At,(n.mode&Kt)!==gt&&ES(n),n):null}case de:return Sp(n),null;case j:return Cp(n),null;case F:var O=n.type._context;return Sx(O,n),null;case Ee:case Ce:return aE(n),null;case je:return null;default:return null}}function R_(e,n,s){switch(px(n),n.tag){case x:{var c=n.type.childContextTypes;c!=null&&xy(n);break}case R:{n.stateNode,Cp(n),ux(n),Qx();break}case I:{Yx(n);break}case j:Cp(n);break;case z:Sp(n);break;case de:Sp(n);break;case F:var p=n.type._context;Sx(p,n);break;case Ee:case Ce:aE(n);break}}var T_=null;T_=new Set;var pb=!1,ca=!1,tV=typeof WeakSet=="function"?WeakSet:Set,it=null,Np=null,Ip=null;function nV(e){zi(null,function(){throw e}),Uo()}var rV=function(e,n){if(n.props=e.memoizedProps,n.state=e.memoizedState,e.mode&Kt)try{Zs(),n.componentWillUnmount()}finally{Ys(e)}else n.componentWillUnmount()};function __(e,n){try{sc(zr,e)}catch(s){$n(e,n,s)}}function $S(e,n,s){try{rV(e,s)}catch(c){$n(e,n,c)}}function aV(e,n,s){try{s.componentDidMount()}catch(c){$n(e,n,c)}}function N_(e,n){try{A_(e)}catch(s){$n(e,n,s)}}function Ap(e,n){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ce&&fe&&e.mode&Kt)try{Zs(),c=s(null)}finally{Ys(e)}else c=s(null)}catch(p){$n(e,n,p)}typeof c=="function"&&h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(e))}else s.current=null}function hb(e,n,s){try{s()}catch(c){$n(e,n,c)}}var I_=!1;function iV(e,n){yL(e.containerInfo),it=n,oV();var s=I_;return I_=!1,s}function oV(){for(;it!==null;){var e=it,n=e.child;(e.subtreeFlags&Ta)!==mt&&n!==null?(n.return=e,it=n):sV()}}function sV(){for(;it!==null;){var e=it;Xn(e);try{lV(e)}catch(s){$n(e,e.return,s)}Fn();var n=e.sibling;if(n!==null){n.return=e.return,it=n;return}it=e.return}}function lV(e){var n=e.alternate,s=e.flags;if((s&vr)!==mt){switch(Xn(e),e.tag){case C:case U:case Z:break;case x:{if(n!==null){var c=n.memoizedProps,p=n.memoizedState,b=e.stateNode;e.type===e.elementType&&!kd&&(b.props!==e.memoizedProps&&h("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(e)||"instance"),b.state!==e.memoizedState&&h("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(e)||"instance"));var E=b.getSnapshotBeforeUpdate(e.elementType===e.type?c:es(e.type,c),p);{var N=T_;E===void 0&&!N.has(e.type)&&(N.add(e.type),h("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",It(e)))}b.__reactInternalSnapshotBeforeUpdate=E}break}case R:{{var O=e.stateNode;UL(O.containerInfo)}break}case I:case _:case j:case ie:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Fn()}}function as(e,n,s){var c=n.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var b=p.next,E=b;do{if((E.tag&e)===e){var N=E.destroy;E.destroy=void 0,N!==void 0&&((e&la)!==wi?Eg(n):(e&zr)!==wi&&Tu(n),(e&Gs)!==wi&&Kv(!0),hb(n,s,N),(e&Gs)!==wi&&Kv(!1),(e&la)!==wi?wg():(e&zr)!==wi&&Qc())}E=E.next}while(E!==b)}}function sc(e,n){var s=n.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next,b=p;do{if((b.tag&e)===e){(e&la)!==wi?kh(n):(e&zr)!==wi&&Rg(n);var E=b.create;(e&Gs)!==wi&&Kv(!0),b.destroy=E(),(e&Gs)!==wi&&Kv(!1),(e&la)!==wi?bf():(e&zr)!==wi&&Mh();{var N=b.destroy;if(N!==void 0&&typeof N!="function"){var O=void 0;(b.tag&zr)!==mt?O="useLayoutEffect":(b.tag&Gs)!==mt?O="useInsertionEffect":O="useEffect";var V=void 0;N===null?V=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof N.then=="function"?V=`
|
|
192
192
|
|
|
193
193
|
It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
194
194
|
|
|
@@ -227,10 +227,10 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
227
227
|
|
|
228
228
|
Check the render method of \``+V+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+O))}}var H=Gi(E,s,n,p);return H.elementType=e,H.type=N,H.lanes=b,H._debugOwner=c,H}function gE(e,n,s){var c=null;c=e._owner;var p=e.type,b=e.key,E=e.props,N=mE(p,b,E,c,n,s);return N._debugSource=e._source,N._debugOwner=e._owner,N}function fc(e,n,s,c){var p=Gi(A,e,c,n);return p.lanes=s,p}function DB(e,n,s,c){typeof e.id!="string"&&h('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var p=Gi(B,e,c,n|Kt);return p.elementType=J,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function kB(e,n,s,c){var p=Gi(z,e,c,n);return p.elementType=Bt,p.lanes=s,p}function MB(e,n,s,c){var p=Gi(de,e,c,n);return p.elementType=Ht,p.lanes=s,p}function pN(e,n,s,c){var p=Gi(Ee,e,c,n);p.elementType=On,p.lanes=s;var b={isHidden:!1};return p.stateNode=b,p}function yE(e,n,s){var c=Gi(_,e,null,n);return c.lanes=s,c}function LB(){var e=Gi(I,null,null,gt);return e.elementType="DELETED",e}function PB(e){var n=Gi(ge,null,null,gt);return n.stateNode=e,n}function bE(e,n,s){var c=e.children!==null?e.children:[],p=Gi(j,c,e.key,n);return p.lanes=s,p.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},p}function hN(e,n){return e===null&&(e=Gi(w,null,null,gt)),e.tag=n.tag,e.key=n.key,e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.return=n.return,e.child=n.child,e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e.pendingProps=n.pendingProps,e.memoizedProps=n.memoizedProps,e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.dependencies=n.dependencies,e.mode=n.mode,e.flags=n.flags,e.subtreeFlags=n.subtreeFlags,e.deletions=n.deletions,e.lanes=n.lanes,e.childLanes=n.childLanes,e.alternate=n.alternate,e.actualDuration=n.actualDuration,e.actualStartTime=n.actualStartTime,e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration,e._debugSource=n._debugSource,e._debugOwner=n._debugOwner,e._debugNeedsRemount=n._debugNeedsRemount,e._debugHookTypes=n._debugHookTypes,e}function FB(e,n,s,c,p){this.tag=n,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=ex,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=lr,this.eventTimes=cd(Re),this.expirationTimes=cd(Mn),this.pendingLanes=Re,this.suspendedLanes=Re,this.pingedLanes=Re,this.expiredLanes=Re,this.mutableReadLanes=Re,this.finishedLanes=Re,this.entangledLanes=Re,this.entanglements=cd(Re),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var b=this.pendingUpdatersLaneMap=[],E=0;E<sr;E++)b.push(new Set)}switch(n){case Ey:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case Ku:this._debugRootType=s?"hydrate()":"render()";break}}function vN(e,n,s,c,p,b,E,N,O,V){var H=new FB(e,n,s,N,O),te=OB(n,b);H.current=te,te.stateNode=H;{var K={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};te.memoizedState=K}return _x(te),H}var CE="18.2.0";function VB(e,n,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Vt(c),{$$typeof:ba,key:c==null?null:""+c,children:e,containerInfo:n,implementation:s}}var xE,SE;xE=!1,SE={};function mN(e){if(!e)return Hi;var n=io(e),s=SP(n);if(n.tag===x){var c=n.type;if(Hs(c))return $1(n,c,s)}return s}function BB(e,n){{var s=io(e);if(s===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var c=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+c)}var p=_h(s);if(p===null)return null;if(p.mode&er){var b=It(s)||"Component";if(!SE[b]){SE[b]=!0;var E=Wn;try{Xn(p),s.mode&er?h("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",n,n,b):h("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",n,n,b)}finally{E?Xn(E):Fn()}}}return p.stateNode}}function gN(e,n,s,c,p,b,E,N){var O=!1,V=null;return vN(e,n,O,V,s,c,p,b,E)}function yN(e,n,s,c,p,b,E,N,O,V){var H=!0,te=vN(s,c,H,e,p,b,E,N,O);te.context=mN(null);var K=te.current,he=ei(),ve=cc(K),xe=$l(he,ve);return xe.callback=n??null,nc(K,xe,ve),XV(te,ve,he),te}function em(e,n,s,c){Go(n,e);var p=n.current,b=ei(),E=cc(p);Lh(E);var N=mN(s);n.context===null?n.context=N:n.pendingContext=N,Sa&&Wn!==null&&!xE&&(xE=!0,h(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
229
229
|
|
|
230
|
-
Check the render method of %s.`,It(Wn)||"Unknown"));var O=$l(b,E);O.payload={element:e},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&h("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c),O.callback=c);var V=nc(p,O,E);return V!==null&&(Xr(V,p,E,b),Ly(V,p,E)),E}function _b(e){var n=e.current;if(!n.child)return null;switch(n.child.tag){case I:return n.child.stateNode;default:return n.child.stateNode}}function zB(e){switch(e.tag){case R:{var n=e.stateNode;if(Bf(n)){var s=xC(n);JV(n,s)}break}case z:{Wl(function(){var p=Ei(e,Ct);if(p!==null){var b=ei();Xr(p,e,Ct,b)}});var c=Ct;EE(e,c);break}}}function bN(e,n){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=Mg(s.retryLane,n))}function EE(e,n){bN(e,n);var s=e.alternate;s&&bN(s,n)}function $B(e){if(e.tag===z){var n=Nl,s=Ei(e,n);if(s!==null){var c=ei();Xr(s,e,n,c)}EE(e,n)}}function UB(e){if(e.tag===z){var n=cc(e),s=Ei(e,n);if(s!==null){var c=ei();Xr(s,e,n,c)}EE(e,n)}}function CN(e){var n=Ih(e);return n===null?null:n.stateNode}var xN=function(e){return null};function HB(e){return xN(e)}var SN=function(e){return!1};function GB(e){return SN(e)}var EN=null,wN=null,RN=null,TN=null,_N=null,NN=null,IN=null,AN=null,jN=null;{var ON=function(e,n,s){var c=n[s],p=
|
|
230
|
+
Check the render method of %s.`,It(Wn)||"Unknown"));var O=$l(b,E);O.payload={element:e},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&h("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c),O.callback=c);var V=nc(p,O,E);return V!==null&&(Xr(V,p,E,b),Ly(V,p,E)),E}function _b(e){var n=e.current;if(!n.child)return null;switch(n.child.tag){case I:return n.child.stateNode;default:return n.child.stateNode}}function zB(e){switch(e.tag){case R:{var n=e.stateNode;if(Bf(n)){var s=xC(n);JV(n,s)}break}case z:{Wl(function(){var p=Ei(e,Ct);if(p!==null){var b=ei();Xr(p,e,Ct,b)}});var c=Ct;EE(e,c);break}}}function bN(e,n){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=Mg(s.retryLane,n))}function EE(e,n){bN(e,n);var s=e.alternate;s&&bN(s,n)}function $B(e){if(e.tag===z){var n=Nl,s=Ei(e,n);if(s!==null){var c=ei();Xr(s,e,n,c)}EE(e,n)}}function UB(e){if(e.tag===z){var n=cc(e),s=Ei(e,n);if(s!==null){var c=ei();Xr(s,e,n,c)}EE(e,n)}}function CN(e){var n=Ih(e);return n===null?null:n.stateNode}var xN=function(e){return null};function HB(e){return xN(e)}var SN=function(e){return!1};function GB(e){return SN(e)}var EN=null,wN=null,RN=null,TN=null,_N=null,NN=null,IN=null,AN=null,jN=null;{var ON=function(e,n,s){var c=n[s],p=Zt(e)?e.slice():Lt({},e);return s+1===n.length?(Zt(p)?p.splice(c,1):delete p[c],p):(p[c]=ON(e[c],n,s+1),p)},DN=function(e,n){return ON(e,n,0)},kN=function(e,n,s,c){var p=n[c],b=Zt(e)?e.slice():Lt({},e);if(c+1===n.length){var E=s[c];b[E]=b[p],Zt(b)?b.splice(p,1):delete b[p]}else b[p]=kN(e[p],n,s,c+1);return b},MN=function(e,n,s){if(n.length!==s.length){v("copyWithRename() expects paths of the same length");return}else for(var c=0;c<s.length-1;c++)if(n[c]!==s[c]){v("copyWithRename() expects paths to be the same except for the deepest key");return}return kN(e,n,s,0)},LN=function(e,n,s,c){if(s>=n.length)return c;var p=n[s],b=Zt(e)?e.slice():Lt({},e);return b[p]=LN(e[p],n,s+1,c),b},PN=function(e,n,s){return LN(e,n,0,s)},wE=function(e,n){for(var s=e.memoizedState;s!==null&&n>0;)s=s.next,n--;return s};EN=function(e,n,s,c){var p=wE(e,n);if(p!==null){var b=PN(p.memoizedState,s,c);p.memoizedState=b,p.baseState=b,e.memoizedProps=Lt({},e.memoizedProps);var E=Ei(e,Ct);E!==null&&Xr(E,e,Ct,Mn)}},wN=function(e,n,s){var c=wE(e,n);if(c!==null){var p=DN(c.memoizedState,s);c.memoizedState=p,c.baseState=p,e.memoizedProps=Lt({},e.memoizedProps);var b=Ei(e,Ct);b!==null&&Xr(b,e,Ct,Mn)}},RN=function(e,n,s,c){var p=wE(e,n);if(p!==null){var b=MN(p.memoizedState,s,c);p.memoizedState=b,p.baseState=b,e.memoizedProps=Lt({},e.memoizedProps);var E=Ei(e,Ct);E!==null&&Xr(E,e,Ct,Mn)}},TN=function(e,n,s){e.pendingProps=PN(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,Ct);c!==null&&Xr(c,e,Ct,Mn)},_N=function(e,n){e.pendingProps=DN(e.memoizedProps,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Ei(e,Ct);s!==null&&Xr(s,e,Ct,Mn)},NN=function(e,n,s){e.pendingProps=MN(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,Ct);c!==null&&Xr(c,e,Ct,Mn)},IN=function(e){var n=Ei(e,Ct);n!==null&&Xr(n,e,Ct,Mn)},AN=function(e){xN=e},jN=function(e){SN=e}}function WB(e){var n=_h(e);return n===null?null:n.stateNode}function XB(e){return null}function YB(){return Wn}function ZB(e){var n=e.findFiberByHostInstance,s=l.ReactCurrentDispatcher;return Cg({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:EN,overrideHookStateDeletePath:wN,overrideHookStateRenamePath:RN,overrideProps:TN,overridePropsDeletePath:_N,overridePropsRenamePath:NN,setErrorHandler:AN,setSuspenseHandler:jN,scheduleUpdate:IN,currentDispatcherRef:s,findHostInstanceByFiber:WB,findFiberByHostInstance:n||XB,findHostInstancesForRefresh:RB,scheduleRefresh:EB,scheduleRoot:wB,setRefreshHandler:SB,getCurrentFiber:YB,reconcilerVersion:CE})}var FN=typeof reportError=="function"?reportError:function(e){console.error(e)};function RE(e){this._internalRoot=e}Nb.prototype.render=RE.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?h("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Ib(arguments[1])?h("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&h("You passed a second argument to root.render(...) but it only accepts one argument.");var s=n.containerInfo;if(s.nodeType!==Kn){var c=CN(n.current);c&&c.parentNode!==s&&h("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}em(e,n,null,null)},Nb.prototype.unmount=RE.prototype.unmount=function(){typeof arguments[0]=="function"&&h("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;q_()&&h("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Wl(function(){em(null,e,null,null)}),P1(n)}};function qB(e,n){if(!Ib(e))throw new Error("createRoot(...): Target container is not a DOM element.");VN(e);var s=!1,c=!1,p="",b=FN;n!=null&&(n.hydrate?v("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===ya&&h(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
231
231
|
|
|
232
232
|
let root = createRoot(domContainer);
|
|
233
|
-
root.render(<App />);`),n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(p=n.identifierPrefix),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.transitionCallbacks!==void 0&&n.transitionCallbacks);var E=gN(e,Ey,null,s,c,p,b);my(E.current,e);var N=e.nodeType===Kn?e.parentNode:e;return lv(N),new RE(E)}function Nb(e){this._internalRoot=e}function JB(e){e&&_C(e)}Nb.prototype.unstable_scheduleHydration=JB;function QB(e,n,s){if(!Ib(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");VN(e),n===void 0&&h("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=s??null,p=s!=null&&s.hydratedSources||null,b=!1,E=!1,N="",O=FN;s!=null&&(s.unstable_strictMode===!0&&(b=!0),s.identifierPrefix!==void 0&&(N=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError));var V=yN(n,null,e,Ey,c,b,E,N,O);if(my(V.current,e),lv(e),p)for(var H=0;H<p.length;H++){var te=p[H];oF(V,te)}return new Nb(V)}function Ib(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===ch||!be))}function tm(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===ch||e.nodeType===Kn&&e.nodeValue===" react-mount-point-unstable "))}function VN(e){e.nodeType===wa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&h("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),bv(e)&&(e._reactRootContainer?h("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):h("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var KB=l.ReactCurrentOwner,BN;BN=function(e){if(e._reactRootContainer&&e.nodeType!==Kn){var n=CN(e._reactRootContainer.current);n&&n.parentNode!==e&&h("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,c=TE(e),p=!!(c&&Ju(c));p&&!s&&h("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===wa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&h("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function TE(e){return e?e.nodeType===Ga?e.documentElement:e.firstChild:null}function zN(){}function ez(e,n,s,c,p){if(p){if(typeof c=="function"){var b=c;c=function(){var K=_b(E);b.call(K)}}var E=yN(n,c,e,Ku,null,!1,!1,"",zN);e._reactRootContainer=E,my(E.current,e);var N=e.nodeType===Kn?e.parentNode:e;return lv(N),Wl(),E}else{for(var O;O=e.lastChild;)e.removeChild(O);if(typeof c=="function"){var V=c;c=function(){var K=_b(H);V.call(K)}}var H=gN(e,Ku,null,!1,!1,"",zN);e._reactRootContainer=H,my(H.current,e);var te=e.nodeType===Kn?e.parentNode:e;return lv(te),Wl(function(){em(n,H,s,c)}),H}}function tz(e,n){e!==null&&typeof e!="function"&&h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e)}function Ab(e,n,s,c,p){BN(s),tz(p===void 0?null:p,"render");var b=s._reactRootContainer,E;if(!b)E=ez(s,n,e,p,c);else{if(E=b,typeof p=="function"){var N=p;p=function(){var O=_b(E);N.call(O)}}em(n,E,e,p)}return _b(E)}function nz(e){{var n=KB.current;if(n!==null&&n.stateNode!==null){var s=n.stateNode._warnedAboutRefsInRender;s||h("%s is accessing findDOMNode inside its render(). 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.",
|
|
233
|
+
root.render(<App />);`),n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(p=n.identifierPrefix),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.transitionCallbacks!==void 0&&n.transitionCallbacks);var E=gN(e,Ey,null,s,c,p,b);my(E.current,e);var N=e.nodeType===Kn?e.parentNode:e;return lv(N),new RE(E)}function Nb(e){this._internalRoot=e}function JB(e){e&&_C(e)}Nb.prototype.unstable_scheduleHydration=JB;function QB(e,n,s){if(!Ib(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");VN(e),n===void 0&&h("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=s??null,p=s!=null&&s.hydratedSources||null,b=!1,E=!1,N="",O=FN;s!=null&&(s.unstable_strictMode===!0&&(b=!0),s.identifierPrefix!==void 0&&(N=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError));var V=yN(n,null,e,Ey,c,b,E,N,O);if(my(V.current,e),lv(e),p)for(var H=0;H<p.length;H++){var te=p[H];oF(V,te)}return new Nb(V)}function Ib(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===ch||!be))}function tm(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===ch||e.nodeType===Kn&&e.nodeValue===" react-mount-point-unstable "))}function VN(e){e.nodeType===wa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&h("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),bv(e)&&(e._reactRootContainer?h("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):h("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var KB=l.ReactCurrentOwner,BN;BN=function(e){if(e._reactRootContainer&&e.nodeType!==Kn){var n=CN(e._reactRootContainer.current);n&&n.parentNode!==e&&h("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,c=TE(e),p=!!(c&&Ju(c));p&&!s&&h("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===wa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&h("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function TE(e){return e?e.nodeType===Ga?e.documentElement:e.firstChild:null}function zN(){}function ez(e,n,s,c,p){if(p){if(typeof c=="function"){var b=c;c=function(){var K=_b(E);b.call(K)}}var E=yN(n,c,e,Ku,null,!1,!1,"",zN);e._reactRootContainer=E,my(E.current,e);var N=e.nodeType===Kn?e.parentNode:e;return lv(N),Wl(),E}else{for(var O;O=e.lastChild;)e.removeChild(O);if(typeof c=="function"){var V=c;c=function(){var K=_b(H);V.call(K)}}var H=gN(e,Ku,null,!1,!1,"",zN);e._reactRootContainer=H,my(H.current,e);var te=e.nodeType===Kn?e.parentNode:e;return lv(te),Wl(function(){em(n,H,s,c)}),H}}function tz(e,n){e!==null&&typeof e!="function"&&h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e)}function Ab(e,n,s,c,p){BN(s),tz(p===void 0?null:p,"render");var b=s._reactRootContainer,E;if(!b)E=ez(s,n,e,p,c);else{if(E=b,typeof p=="function"){var N=p;p=function(){var O=_b(E);N.call(O)}}em(n,E,e,p)}return _b(E)}function nz(e){{var n=KB.current;if(n!==null&&n.stateNode!==null){var s=n.stateNode._warnedAboutRefsInRender;s||h("%s is accessing findDOMNode inside its render(). 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.",Yt(n.type)||"A component"),n.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===wa?e:BB(e,"findDOMNode")}function rz(e,n,s){if(h("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!tm(n))throw new Error("Target container is not a DOM element.");{var c=bv(n)&&n._reactRootContainer===void 0;c&&h("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Ab(null,e,n,!0,s)}function az(e,n,s){if(h("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!tm(n))throw new Error("Target container is not a DOM element.");{var c=bv(n)&&n._reactRootContainer===void 0;c&&h("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Ab(null,e,n,!1,s)}function iz(e,n,s,c){if(h("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!tm(s))throw new Error("Target container is not a DOM element.");if(e==null||!xu(e))throw new Error("parentComponent must be a valid React Component");return Ab(e,n,s,!1,c)}function oz(e){if(!tm(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var n=bv(e)&&e._reactRootContainer===void 0;n&&h("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=TE(e),c=s&&!Ju(s);c&&h("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Wl(function(){Ab(null,null,e,!1,function(){e._reactRootContainer=null,P1(e)})}),!0}else{{var p=TE(e),b=!!(p&&Ju(p)),E=e.nodeType===wa&&tm(e.parentNode)&&!!e.parentNode._reactRootContainer;b&&h("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",E?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Pu(zB),RC($B),$f(UB),Fg(gi),Vg(Qr),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&h("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),yh(uL),df(rE,QV,Wl);function sz(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ib(n))throw new Error("Target container is not a DOM element.");return VB(e,n,null,s)}function lz(e,n,s,c){return iz(e,n,s,c)}var _E={usingClientEntryPoint:!1,Events:[Ju,dp,gy,Cu,ml,rE]};function uz(e,n){return _E.usingClientEntryPoint||h('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),qB(e,n)}function cz(e,n,s){return _E.usingClientEntryPoint||h('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),QB(e,n,s)}function dz(e){return q_()&&h("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Wl(e)}var fz=ZB({findFiberByHostInstance:wd,bundleType:1,version:CE,rendererPackageName:"react-dom"});if(!fz&&Rt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var $N=window.location.protocol;/^(https?|file):$/.test($N)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+($N==="file:"?`
|
|
234
234
|
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_E,Ni.createPortal=sz,Ni.createRoot=uz,Ni.findDOMNode=nz,Ni.flushSync=dz,Ni.hydrate=rz,Ni.hydrateRoot=cz,Ni.render=az,Ni.unmountComponentAtNode=oz,Ni.unstable_batchedUpdates=rE,Ni.unstable_renderSubtreeIntoContainer=lz,Ni.version=CE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var pj={};function hj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(pj.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hj)}catch(t){console.error(t)}}}pj.NODE_ENV==="production"?(hj(),dw.exports=Rz()):dw.exports=Tz();var rR=dw.exports;const zd=Qp(rR);var _z={},im=rR;if(_z.NODE_ENV==="production")Xi.createRoot=im.createRoot,Xi.hydrateRoot=im.hydrateRoot;else{var Db=im.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xi.createRoot=function(t,r){Db.usingClientEntryPoint=!0;try{return im.createRoot(t,r)}finally{Db.usingClientEntryPoint=!1}},Xi.hydrateRoot=function(t,r,i){Db.usingClientEntryPoint=!0;try{return im.hydrateRoot(t,r,i)}finally{Db.usingClientEntryPoint=!1}}}var Rr={};function va(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Nz=typeof Symbol=="function"&&Symbol.observable||"@@observable",eI=Nz,jE=()=>Math.random().toString(36).substring(7).split("").join("."),Iz={INIT:`@@redux/INIT${jE()}`,REPLACE:`@@redux/REPLACE${jE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jE()}`},$d=Iz;function Mm(t){if(typeof t!="object"||t===null)return!1;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r||Object.getPrototypeOf(t)===null}function Az(t){if(t===void 0)return"undefined";if(t===null)return"null";const r=typeof t;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(t))return"array";if(Dz(t))return"date";if(Oz(t))return"error";const i=jz(t);switch(i){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return i}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function jz(t){return typeof t.constructor=="function"?t.constructor.name:null}function Oz(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Dz(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function hc(t){let r=typeof t;return Rr.NODE_ENV!=="production"&&(r=Az(t)),r}function vj(t,r,i){if(typeof t!="function")throw new Error(Rr.NODE_ENV==="production"?va(2):`Expected the root reducer to be a function. Instead, received: '${hc(t)}'`);if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Rr.NODE_ENV==="production"?va(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Rr.NODE_ENV==="production"?va(1):`Expected the enhancer to be a function. Instead, received: '${hc(i)}'`);return i(vj)(t,r)}let l=t,u=r,d=new Map,v=d,h=0,y=!1;function C(){v===d&&(v=new Map,d.forEach((A,L)=>{v.set(L,A)}))}function x(){if(y)throw new Error(Rr.NODE_ENV==="production"?va(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function w(A){if(typeof A!="function")throw new Error(Rr.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${hc(A)}'`);if(y)throw new Error(Rr.NODE_ENV==="production"?va(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let L=!0;C();const P=h++;return v.set(P,A),function(){if(L){if(y)throw new Error(Rr.NODE_ENV==="production"?va(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");L=!1,C(),v.delete(P),d=null}}}function R(A){if(!Mm(A))throw new Error(Rr.NODE_ENV==="production"?va(7):`Actions must be plain objects. Instead, the actual type was: '${hc(A)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof A.type>"u")throw new Error(Rr.NODE_ENV==="production"?va(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof A.type!="string")throw new Error(Rr.NODE_ENV==="production"?va(17):`Action "type" property must be a string. Instead, the actual type was: '${hc(A.type)}'. Value was: '${A.type}' (stringified)`);if(y)throw new Error(Rr.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{y=!0,u=l(u,A)}finally{y=!1}return(d=v).forEach(P=>{P()}),A}function j(A){if(typeof A!="function")throw new Error(Rr.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${hc(A)}`);l=A,R({type:$d.REPLACE})}function I(){const A=w;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(Rr.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${hc(L)}'`);function P(){const U=L;U.next&&U.next(x())}return P(),{unsubscribe:A(P)}},[eI](){return this}}}return R({type:$d.INIT}),{dispatch:R,subscribe:w,getState:x,replaceReducer:j,[eI]:I}}function tI(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function kz(t,r,i,l){const u=Object.keys(r),d=i&&i.type===$d.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(u.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Mm(t))return`The ${d} has unexpected type of "${hc(t)}". Expected argument to be an object with the following keys: "${u.join('", "')}"`;const v=Object.keys(t).filter(h=>!r.hasOwnProperty(h)&&!l[h]);if(v.forEach(h=>{l[h]=!0}),!(i&&i.type===$d.REPLACE)&&v.length>0)return`Unexpected ${v.length>1?"keys":"key"} "${v.join('", "')}" found in ${d}. Expected to find one of the known reducer keys instead: "${u.join('", "')}". Unexpected keys will be ignored.`}function Mz(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:$d.INIT})>"u")throw new Error(Rr.NODE_ENV==="production"?va(12):`The slice reducer for key "${r}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof i(void 0,{type:$d.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rr.NODE_ENV==="production"?va(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${$d.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Lz(t){const r=Object.keys(t),i={};for(let v=0;v<r.length;v++){const h=r[v];Rr.NODE_ENV!=="production"&&typeof t[h]>"u"&&tI(`No reducer provided for key "${h}"`),typeof t[h]=="function"&&(i[h]=t[h])}const l=Object.keys(i);let u;Rr.NODE_ENV!=="production"&&(u={});let d;try{Mz(i)}catch(v){d=v}return function(h={},y){if(d)throw d;if(Rr.NODE_ENV!=="production"){const w=kz(h,i,y,u);w&&tI(w)}let C=!1;const x={};for(let w=0;w<l.length;w++){const R=l[w],j=i[R],I=h[R],_=j(I,y);if(typeof _>"u"){const A=y&&y.type;throw new Error(Rr.NODE_ENV==="production"?va(14):`When called with an action of type ${A?`"${String(A)}"`:"(unknown type)"}, the slice reducer for key "${R}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}x[R]=_,C=C||_!==I}return C=C||l.length!==Object.keys(h).length,C?x:h}}function f0(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...l)=>r(i(...l)))}function Pz(...t){return r=>(i,l)=>{const u=r(i,l);let d=()=>{throw new Error(Rr.NODE_ENV==="production"?va(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const v={getState:u.getState,dispatch:(y,...C)=>d(y,...C)},h=t.map(y=>y(v));return d=f0(...h)(u.dispatch),{...u,dispatch:d}}}function mj(t){return Mm(t)&&"type"in t&&typeof t.type=="string"}var Lm={},gj=Symbol.for("immer-nothing"),nI=Symbol.for("immer-draftable"),Zi=Symbol.for("immer-state"),Fz=Lm.NODE_ENV!=="production"?[function(t){return`The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`},function(t){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${t}'`},"This object has been frozen and should not be mutated",function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(t){return`'current' expects a draft, got: ${t}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(t){return`'original' expects a draft, got: ${t}`}]:[];function Ii(t,...r){if(Lm.NODE_ENV!=="production"){const i=Fz[t],l=typeof i=="function"?i.apply(null,r):i;throw new Error(`[Immer] ${l}`)}throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Hp=Object.getPrototypeOf;function gc(t){return!!t&&!!t[Zi]}function nu(t){var r;return t?yj(t)||Array.isArray(t)||!!t[nI]||!!((r=t.constructor)!=null&&r[nI])||F0(t)||V0(t):!1}var Vz=Object.prototype.constructor.toString();function yj(t){if(!t||typeof t!="object")return!1;const r=Hp(t);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===Vz}function Sm(t,r){P0(t)===0?Object.entries(t).forEach(([i,l])=>{r(i,l,t)}):t.forEach((i,l)=>r(l,i,t))}function P0(t){const r=t[Zi];return r?r.type_:Array.isArray(t)?1:F0(t)?2:V0(t)?3:0}function fw(t,r){return P0(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function bj(t,r,i){const l=P0(t);l===2?t.set(r,i):l===3?t.add(i):t[r]=i}function Bz(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function F0(t){return t instanceof Map}function V0(t){return t instanceof Set}function Bd(t){return t.copy_||t.base_}function pw(t,r){if(F0(t))return new Map(t);if(V0(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!r&&yj(t))return Hp(t)?{...t}:Object.assign(Object.create(null),t);const i=Object.getOwnPropertyDescriptors(t);delete i[Zi];let l=Reflect.ownKeys(i);for(let u=0;u<l.length;u++){const d=l[u],v=i[d];v.writable===!1&&(v.writable=!0,v.configurable=!0),(v.get||v.set)&&(i[d]={configurable:!0,writable:!0,enumerable:v.enumerable,value:t[d]})}return Object.create(Hp(t),i)}function aR(t,r=!1){return B0(t)||gc(t)||!nu(t)||(P0(t)>1&&(t.set=t.add=t.clear=t.delete=zz),Object.freeze(t),r&&Sm(t,(i,l)=>aR(l,!0))),t}function zz(){Ii(2)}function B0(t){return Object.isFrozen(t)}var $z={};function Yd(t){const r=$z[t];return r||Ii(0,t),r}var Em;function Cj(){return Em}function Uz(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function rI(t,r){r&&(Yd("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function hw(t){vw(t),t.drafts_.forEach(Hz),t.drafts_=null}function vw(t){t===Em&&(Em=t.parent_)}function aI(t){return Em=Uz(Em,t)}function Hz(t){const r=t[Zi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function iI(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[Zi].modified_&&(hw(r),Ii(4)),nu(t)&&(t=p0(r,t),r.parent_||h0(r,t)),r.patches_&&Yd("Patches").generateReplacementPatches_(i[Zi].base_,t,r.patches_,r.inversePatches_)):t=p0(r,i,[]),hw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==gj?t:void 0}function p0(t,r,i){if(B0(r))return r;const l=r[Zi];if(!l)return Sm(r,(u,d)=>oI(t,l,r,u,d,i)),r;if(l.scope_!==t)return r;if(!l.modified_)return h0(t,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const u=l.copy_;let d=u,v=!1;l.type_===3&&(d=new Set(u),u.clear(),v=!0),Sm(d,(h,y)=>oI(t,l,u,h,y,i,v)),h0(t,u,!1),i&&t.patches_&&Yd("Patches").generatePatches_(l,i,t.patches_,t.inversePatches_)}return l.copy_}function oI(t,r,i,l,u,d,v){if(Lm.NODE_ENV!=="production"&&u===i&&Ii(5),gc(u)){const h=d&&r&&r.type_!==3&&!fw(r.assigned_,l)?d.concat(l):void 0,y=p0(t,u,h);if(bj(i,l,y),gc(y))t.canAutoFreeze_=!1;else return}else v&&i.add(u);if(nu(u)&&!B0(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;p0(t,u),(!r||!r.scope_.parent_)&&h0(t,u)}}function h0(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&aR(r,i)}function Gz(t,r){const i=Array.isArray(t),l={type_:i?1:0,scope_:r?r.scope_:Cj(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,d=iR;i&&(u=[l],d=wm);const{revoke:v,proxy:h}=Proxy.revocable(u,d);return l.draft_=h,l.revoke_=v,h}var iR={get(t,r){if(r===Zi)return t;const i=Bd(t);if(!fw(i,r))return Wz(t,i,r);const l=i[r];return t.finalized_||!nu(l)?l:l===OE(t.base_,r)?(DE(t),t.copy_[r]=gw(l,t)):l},has(t,r){return r in Bd(t)},ownKeys(t){return Reflect.ownKeys(Bd(t))},set(t,r,i){const l=xj(Bd(t),r);if(l!=null&&l.set)return l.set.call(t.draft_,i),!0;if(!t.modified_){const u=OE(Bd(t),r),d=u==null?void 0:u[Zi];if(d&&d.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(Bz(i,u)&&(i!==void 0||fw(t.base_,r)))return!0;DE(t),mw(t)}return t.copy_[r]===i&&(i!==void 0||r in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[r])||(t.copy_[r]=i,t.assigned_[r]=!0),!0},deleteProperty(t,r){return OE(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,DE(t),mw(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=Bd(t),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){Ii(11)},getPrototypeOf(t){return Hp(t.base_)},setPrototypeOf(){Ii(12)}},wm={};Sm(iR,(t,r)=>{wm[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});wm.deleteProperty=function(t,r){return Lm.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Ii(13),wm.set.call(this,t,r,void 0)};wm.set=function(t,r,i){return Lm.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Ii(14),iR.set.call(this,t[0],r,i,t[0])};function OE(t,r){const i=t[Zi];return(i?Bd(i):t)[r]}function Wz(t,r,i){var u;const l=xj(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(t.draft_):void 0}function xj(t,r){if(!(r in t))return;let i=Hp(t);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=Hp(i)}}function mw(t){t.modified_||(t.modified_=!0,t.parent_&&mw(t.parent_))}function DE(t){t.copy_||(t.copy_=pw(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Xz=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,l)=>{if(typeof r=="function"&&typeof i!="function"){const d=i;i=r;const v=this;return function(y=d,...C){return v.produce(y,x=>i.call(this,x,...C))}}typeof i!="function"&&Ii(6),l!==void 0&&typeof l!="function"&&Ii(7);let u;if(nu(r)){const d=aI(this),v=gw(r,void 0);let h=!0;try{u=i(v),h=!1}finally{h?hw(d):vw(d)}return rI(d,l),iI(u,d)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===gj&&(u=void 0),this.autoFreeze_&&aR(u,!0),l){const d=[],v=[];Yd("Patches").generateReplacementPatches_(r,u,d,v),l(d,v)}return u}else Ii(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(v,...h)=>this.produceWithPatches(v,y=>r(y,...h));let l,u;return[this.produce(r,i,(v,h)=>{l=v,u=h}),l,u]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){nu(t)||Ii(8),gc(t)&&(t=Sj(t));const r=aI(this),i=gw(t,void 0);return i[Zi].isManual_=!0,vw(r),i}finishDraft(t,r){const i=t&&t[Zi];(!i||!i.isManual_)&&Ii(9);const{scope_:l}=i;return rI(l,r),iI(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){t=u.value;break}}i>-1&&(r=r.slice(i+1));const l=Yd("Patches").applyPatches_;return gc(t)?l(t,r):this.produce(t,u=>l(u,r))}};function gw(t,r){const i=F0(t)?Yd("MapSet").proxyMap_(t,r):V0(t)?Yd("MapSet").proxySet_(t,r):Gz(t,r);return(r?r.scope_:Cj()).drafts_.push(i),i}function Sj(t){return gc(t)||Ii(10,t),Ej(t)}function Ej(t){if(!nu(t)||B0(t))return t;const r=t[Zi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=pw(t,r.scope_.immer_.useStrictShallowCopy_)}else i=pw(t,!0);return Sm(i,(l,u)=>{bj(i,l,Ej(u))}),r&&(r.finalized_=!1),i}var qi=new Xz,Eo=qi.produce;qi.produceWithPatches.bind(qi);qi.setAutoFreeze.bind(qi);qi.setUseStrictShallowCopy.bind(qi);qi.applyPatches.bind(qi);qi.createDraft.bind(qi);qi.finishDraft.bind(qi);var Yz={},Zz=(t,r,i)=>{if(r.length===1&&r[0]===i){let l=!1;try{const u={};t(u)===u&&(l=!0)}catch{}if(l){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
235
235
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
236
236
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
@@ -261,13 +261,13 @@ Take a look at the reducer(s) handling this action type: ${j.type}.
|
|
|
261
261
|
*
|
|
262
262
|
* This source code is licensed under the MIT license found in the
|
|
263
263
|
* LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/return t.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=ef();function i(x,w){return x===w&&(x!==0||1/x===1/w)||x!==x&&w!==w}var l=typeof Object.is=="function"?Object.is:i,u=r.useSyncExternalStore,d=r.useRef,v=r.useEffect,h=r.useMemo,y=r.useDebugValue;function C(x,w,R,j,I){var _=d(null),A;_.current===null?(A={hasValue:!1,value:null},_.current=A):A=_.current;var L=h(function(){var B=!1,z,X,Z=function(de){if(!B){B=!0,z=de;var _e=j(de);if(I!==void 0&&A.hasValue){var Ee=A.value;if(I(Ee,_e))return X=Ee,Ee}return X=_e,_e}var Ce=z,je=X;if(l(Ce,de))return je;var Le=j(de);return I!==void 0&&I(je,Le)?je:(z=de,X=Le,Le)},ue=R===void 0?null:R,ie=function(){return Z(w())},ge=ue===null?void 0:function(){return Z(ue())};return[ie,ge]},[w,R,j,I]),P=L[0],F=L[1],U=u(x,P,F);return v(function(){A.hasValue=!0,A.value=U},[U]),y(U),U}LE.useSyncExternalStoreWithSelector=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),LE}var Z$={};Z$.NODE_ENV==="production"?bw.exports=X$():bw.exports=Y$();var q$=bw.exports,ds={},
|
|
264
|
+
*/return t.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=ef();function i(x,w){return x===w&&(x!==0||1/x===1/w)||x!==x&&w!==w}var l=typeof Object.is=="function"?Object.is:i,u=r.useSyncExternalStore,d=r.useRef,v=r.useEffect,h=r.useMemo,y=r.useDebugValue;function C(x,w,R,j,I){var _=d(null),A;_.current===null?(A={hasValue:!1,value:null},_.current=A):A=_.current;var L=h(function(){var B=!1,z,X,Z=function(de){if(!B){B=!0,z=de;var _e=j(de);if(I!==void 0&&A.hasValue){var Ee=A.value;if(I(Ee,_e))return X=Ee,Ee}return X=_e,_e}var Ce=z,je=X;if(l(Ce,de))return je;var Le=j(de);return I!==void 0&&I(je,Le)?je:(z=de,X=Le,Le)},ue=R===void 0?null:R,ie=function(){return Z(w())},ge=ue===null?void 0:function(){return Z(ue())};return[ie,ge]},[w,R,j,I]),P=L[0],F=L[1],U=u(x,P,F);return v(function(){A.hasValue=!0,A.value=U},[U]),y(U),U}LE.useSyncExternalStoreWithSelector=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),LE}var Z$={};Z$.NODE_ENV==="production"?bw.exports=X$():bw.exports=Y$();var q$=bw.exports,ds={},qt="default"in v0?pr:v0,vI=Symbol.for("react-redux-context"),mI=typeof globalThis<"u"?globalThis:{};function J$(){if(!qt.createContext)return{};const t=mI[vI]??(mI[vI]=new Map);let r=t.get(qt.createContext);return r||(r=qt.createContext(null),ds.NODE_ENV!=="production"&&(r.displayName="ReactRedux"),t.set(qt.createContext,r)),r}var ru=J$(),Lj=()=>{throw new Error("uSES not initialized!")};function lR(t=ru){return function(){const i=qt.useContext(t);if(ds.NODE_ENV!=="production"&&!i)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return i}}var Pj=lR(),Fj=Lj,Q$=t=>{Fj=t},K$=(t,r)=>t===r;function eU(t=ru){const r=t===ru?Pj:lR(t),i=(l,u={})=>{const{equalityFn:d=K$,devModeChecks:v={}}=typeof u=="function"?{equalityFn:u}:u;if(ds.NODE_ENV!=="production"){if(!l)throw new Error("You must pass a selector to useSelector");if(typeof l!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof d!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:h,subscription:y,getServerState:C,stabilityCheck:x,identityFunctionCheck:w}=r(),R=qt.useRef(!0),j=qt.useCallback({[l.name](_){const A=l(_);if(ds.NODE_ENV!=="production"){const{identityFunctionCheck:L,stabilityCheck:P}={stabilityCheck:x,identityFunctionCheck:w,...v};if(P==="always"||P==="once"&&R.current){const F=l(_);if(!d(A,F)){let U;try{throw new Error}catch(B){({stack:U}=B)}console.warn("Selector "+(l.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
265
265
|
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:_,selected:A,selected2:F,stack:U})}}if((L==="always"||L==="once"&&R.current)&&A===_){let F;try{throw new Error}catch(U){({stack:F}=U)}console.warn("Selector "+(l.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
266
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:F})}R.current&&(R.current=!1)}return A}}[l.name],[l,x,v.stabilityCheck]),I=Fj(y.addNestedSub,h.getState,C||h.getState,j,d);return
|
|
266
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:F})}R.current&&(R.current=!1)}return A}}[l.name],[l,x,v.stabilityCheck]),I=Fj(y.addNestedSub,h.getState,C||h.getState,j,d);return qt.useDebugValue(I),I};return Object.assign(i,{withTypes:()=>i}),i}var Jn=eU(),tU=Symbol.for("react.element"),nU=Symbol.for("react.portal"),Vj=Symbol.for("react.fragment"),Bj=Symbol.for("react.strict_mode"),zj=Symbol.for("react.profiler"),$j=Symbol.for("react.provider"),uR=Symbol.for("react.context"),rU=Symbol.for("react.server_context"),cR=Symbol.for("react.forward_ref"),Uj=Symbol.for("react.suspense"),Hj=Symbol.for("react.suspense_list"),$0=Symbol.for("react.memo"),Gj=Symbol.for("react.lazy"),aU=Symbol.for("react.offscreen"),iU=Symbol.for("react.client.reference"),oU=cR,sU=$0;function lU(t){return typeof t=="string"||typeof t=="function"||t===Vj||t===zj||t===Bj||t===Uj||t===Hj||t===aU||typeof t=="object"&&t!==null&&(t.$$typeof===Gj||t.$$typeof===$0||t.$$typeof===$j||t.$$typeof===uR||t.$$typeof===cR||t.$$typeof===iU||t.getModuleId!==void 0)}function Wj(t){if(typeof t=="object"&&t!==null){const r=t.$$typeof;switch(r){case tU:{const i=t.type;switch(i){case Vj:case zj:case Bj:case Uj:case Hj:return i;default:{const l=i&&i.$$typeof;switch(l){case rU:case uR:case cR:case Gj:case $0:case $j:return l;default:return r}}}}case nU:return r}}}function uU(t){return Wj(t)===uR}function cU(t){return Wj(t)===$0}function dR(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function PE(t,r){if(t)(r==="mapStateToProps"||r==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(t,"dependsOnOwnProps")||dR(`The selector for ${r} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${r} in connect.`)}function dU(t,r,i){PE(t,"mapStateToProps"),PE(r,"mapDispatchToProps"),PE(i,"mergeProps")}function fU(t,r,i,l,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:v}){let h=!1,y,C,x,w,R;function j(P,F){return y=P,C=F,x=t(y,C),w=r(l,C),R=i(x,w,C),h=!0,R}function I(){return x=t(y,C),r.dependsOnOwnProps&&(w=r(l,C)),R=i(x,w,C),R}function _(){return t.dependsOnOwnProps&&(x=t(y,C)),r.dependsOnOwnProps&&(w=r(l,C)),R=i(x,w,C),R}function A(){const P=t(y,C),F=!v(P,x);return x=P,F&&(R=i(x,w,C)),R}function L(P,F){const U=!d(F,C),B=!u(P,y,F,C);return y=P,C=F,U&&B?I():U?_():B?A():R}return function(F,U){return h?L(F,U):j(F,U)}}function pU(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const d=r(t,u),v=i(t,u),h=l(t,u);return ds.NODE_ENV!=="production"&&dU(d,v,h),fU(d,v,h,t,u)}function hU(t,r){const i={};for(const l in t){const u=t[l];typeof u=="function"&&(i[l]=(...d)=>r(u(...d)))}return i}function vU(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);if(r===null)return!0;let i=r;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return r===i}function Xj(t,r,i){vU(t)||dR(`${i}() in ${r} must return a plain object. Instead received ${t}.`)}function Cw(t){return function(i){const l=t(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function gI(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function Yj(t,r){return function(l,{displayName:u}){const d=function(h,y){return d.dependsOnOwnProps?d.mapToProps(h,y):d.mapToProps(h,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(h,y){d.mapToProps=t,d.dependsOnOwnProps=gI(t);let C=d(h,y);return typeof C=="function"&&(d.mapToProps=C,d.dependsOnOwnProps=gI(C),C=d(h,y)),ds.NODE_ENV!=="production"&&Xj(C,u,r),C},d}}function fR(t,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function mU(t){return t&&typeof t=="object"?Cw(r=>hU(t,r)):t?typeof t=="function"?Yj(t,"mapDispatchToProps"):fR(t,"mapDispatchToProps"):Cw(r=>({dispatch:r}))}function gU(t){return t?typeof t=="function"?Yj(t,"mapStateToProps"):fR(t,"mapStateToProps"):Cw(()=>({}))}function yU(t,r,i){return{...i,...t,...r}}function bU(t){return function(i,{displayName:l,areMergedPropsEqual:u}){let d=!1,v;return function(y,C,x){const w=t(y,C,x);return d?u(w,v)||(v=w):(d=!0,v=w,ds.NODE_ENV!=="production"&&Xj(v,l,"mergeProps")),v}}}function CU(t){return t?typeof t=="function"?bU(t):fR(t,"mergeProps"):()=>yU}function xU(t){t()}function SU(){let t=null,r=null;return{clear(){t=null,r=null},notify(){xU(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let l=t;for(;l;)i.push(l),l=l.next;return i},subscribe(i){let l=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:t=u,function(){!l||t===null||(l=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}var yI={notify(){},get:()=>[]};function Zj(t,r){let i,l=yI,u=0,d=!1;function v(_){x();const A=l.subscribe(_);let L=!1;return()=>{L||(L=!0,A(),w())}}function h(){l.notify()}function y(){I.onStateChange&&I.onStateChange()}function C(){return d}function x(){u++,i||(i=r?r.addNestedSub(y):t.subscribe(y),l=SU())}function w(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=yI)}function R(){d||(d=!0,x())}function j(){d&&(d=!1,w())}const I={addNestedSub:v,notifyNestedSubs:h,handleChangeWrapper:y,isSubscribed:C,trySubscribe:R,tryUnsubscribe:j,getListeners:()=>l};return I}var EU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m0=EU?qt.useLayoutEffect:qt.useEffect;function bI(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function FE(t,r){if(bI(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;const i=Object.keys(t),l=Object.keys(r);if(i.length!==l.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!bI(t[i[u]],r[i[u]]))return!1;return!0}var wU={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},RU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_U={[oU]:TU,[sU]:qj};function CI(t){return cU(t)?qj:_U[t.$$typeof]||wU}var NU=Object.defineProperty,IU=Object.getOwnPropertyNames,xI=Object.getOwnPropertySymbols,AU=Object.getOwnPropertyDescriptor,jU=Object.getPrototypeOf,SI=Object.prototype;function xw(t,r){if(typeof r!="string"){if(SI){const d=jU(r);d&&d!==SI&&xw(t,d)}let i=IU(r);xI&&(i=i.concat(xI(r)));const l=CI(t),u=CI(r);for(let d=0;d<i.length;++d){const v=i[d];if(!RU[v]&&!(u&&u[v])&&!(l&&l[v])){const h=AU(r,v);try{NU(t,v,h)}catch{}}}}return t}var Jj=Lj,OU=t=>{Jj=t},DU=[null,null],kU=t=>{try{return JSON.stringify(t)}catch{return String(t)}};function MU(t,r,i){m0(()=>t(...r),i)}function LU(t,r,i,l,u,d){t.current=l,i.current=!1,u.current&&(u.current=null,d())}function PU(t,r,i,l,u,d,v,h,y,C,x){if(!t)return()=>{};let w=!1,R=null;const j=()=>{if(w||!h.current)return;const _=r.getState();let A,L;try{A=l(_,u.current)}catch(P){L=P,R=P}L||(R=null),A===d.current?v.current||C():(d.current=A,y.current=A,v.current=!0,x())};return i.onStateChange=j,i.trySubscribe(),j(),()=>{if(w=!0,i.tryUnsubscribe(),i.onStateChange=null,R)throw R}}function FU(t,r){return t===r}var EI=!1;function VU(t,r,i,{pure:l,areStatesEqual:u=FU,areOwnPropsEqual:d=FE,areStatePropsEqual:v=FE,areMergedPropsEqual:h=FE,forwardRef:y=!1,context:C=ru}={}){ds.NODE_ENV!=="production"&&l!==void 0&&!EI&&(EI=!0,dR('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const x=C,w=gU(t),R=mU(r),j=CU(i),I=!!t;return A=>{if(ds.NODE_ENV!=="production"&&!lU(A))throw new Error(`You must pass a component to the function returned by connect. Instead received ${kU(A)}`);const L=A.displayName||A.name||"Component",P=`Connect(${L})`,F={shouldHandleStateChanges:I,displayName:P,wrappedComponentName:L,WrappedComponent:A,initMapStateToProps:w,initMapDispatchToProps:R,initMergeProps:j,areStatesEqual:u,areStatePropsEqual:v,areOwnPropsEqual:d,areMergedPropsEqual:h};function U(X){const[Z,ue,ie]=qt.useMemo(()=>{const{reactReduxForwardedRef:ot,...Ae}=X;return[X.context,ot,Ae]},[X]),ge=qt.useMemo(()=>{let ot=x;if(Z!=null&&Z.Consumer&&ds.NODE_ENV!=="production"){if(!uU(qt.createElement(Z.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");ot=Z}return ot},[Z,x]),de=qt.useContext(ge),_e=!!X.store&&!!X.store.getState&&!!X.store.dispatch,Ee=!!de&&!!de.store;if(ds.NODE_ENV!=="production"&&!_e&&!Ee)throw new Error(`Could not find "store" in the context of "${P}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${P} in connect options.`);const Ce=_e?X.store:de.store,je=Ee?de.getServerState:Ce.getState,Le=qt.useMemo(()=>pU(Ce.dispatch,F),[Ce]),[re,Ie]=qt.useMemo(()=>{if(!I)return DU;const ot=Zj(Ce,_e?void 0:de.subscription),Ae=ot.notifyNestedSubs.bind(ot);return[ot,Ae]},[Ce,_e,de]),G=qt.useMemo(()=>_e?de:{...de,subscription:re},[_e,de,re]),Y=qt.useRef(),ne=qt.useRef(ie),be=qt.useRef(),we=qt.useRef(!1);qt.useRef(!1);const Ne=qt.useRef(!1),Oe=qt.useRef();m0(()=>(Ne.current=!0,()=>{Ne.current=!1}),[]);const ce=qt.useMemo(()=>()=>be.current&&ie===ne.current?be.current:Le(Ce.getState(),ie),[Ce,ie]),fe=qt.useMemo(()=>Ae=>re?PU(I,Ce,re,Le,ne,Y,we,Ne,be,Ie,Ae):()=>{},[re]);MU(LU,[ne,Y,we,ie,be,Ie]);let Ve;try{Ve=Jj(fe,ce,je?()=>Le(je(),ie):ce)}catch(ot){throw Oe.current&&(ot.message+=`
|
|
267
267
|
The error may be correlated with this previous error:
|
|
268
268
|
${Oe.current.stack}
|
|
269
269
|
|
|
270
|
-
`),ot}m0(()=>{Oe.current=void 0,be.current=void 0,Y.current=Ve});const Ge=Jt.useMemo(()=>Jt.createElement(A,{...Ve,ref:ue}),[ue,A,Ve]);return Jt.useMemo(()=>I?Jt.createElement(ge.Provider,{value:G},Ge):Ge,[ge,Ge,G])}const z=Jt.memo(U);if(z.WrappedComponent=A,z.displayName=U.displayName=P,y){const Z=Jt.forwardRef(function(ie,ge){return Jt.createElement(z,{...ie,reactReduxForwardedRef:ge})});return Z.displayName=P,Z.WrappedComponent=A,xw(Z,A)}return xw(z,A)}}var ps=VU;function BU({store:t,context:r,children:i,serverState:l,stabilityCheck:u="once",identityFunctionCheck:d="once"}){const v=Jt.useMemo(()=>{const C=Zj(t);return{store:t,subscription:C,getServerState:l?()=>l:void 0,stabilityCheck:u,identityFunctionCheck:d}},[t,l,u,d]),h=Jt.useMemo(()=>t.getState(),[t]);m0(()=>{const{subscription:C}=v;return C.onStateChange=C.notifyNestedSubs,C.trySubscribe(),h!==t.getState()&&C.notifyNestedSubs(),()=>{C.tryUnsubscribe(),C.onStateChange=void 0}},[v,h]);const y=r||ru;return Jt.createElement(y.Provider,{value:v},i)}var Kp=BU;function Qj(t=ru){const r=t===ru?Pj:lR(t),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var zU=Qj();function $U(t=ru){const r=t===ru?zU:Qj(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var No=$U();Q$(q$.useSyncExternalStoreWithSelector);OU(k.useSyncExternalStore);const Zl="https://allocations.access-ci.org",Yt={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(t,r)=>`/requests/${t}/actions/${r}/edit`,edit_request_path:t=>`/requests/${t}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${Zl}/get-your-first-project`,project_types_path:()=>`${Zl}/project-types`,projects_path:()=>`${Zl}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:t=>`${Zl}/requests/${t}/renew`,request_action_path:(t,r)=>`${Zl}/requests/${t}/actions/${r}`,request_actions_path:t=>`${Zl}/requests/${t}/actions`,request_path:t=>`${Zl}/requests/${t}`,resources_path:()=>`${Zl}/resources`,search_people_path:()=>`${Zl}/search/people`,usage_detail_path:(t,r)=>`/usage/${t}/${r}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}},zp=(t,r,i="round")=>{const l=Math.pow(10,r||0);return Math[i](t*l)/l},UU=t=>new Date(`${t}T00:00:00`),HU={year:"numeric",month:"short",day:"numeric"},Ud=(t,r)=>UU(t).toLocaleString("en-us",r||HU),ga=(t,{abbreviate:r=!1,decimalPlaces:i=void 0}={})=>{if(r){let l=0;for(;Math.abs(t)/Math.pow(1e3,l)>=1e3;)l+=1;const u=["","K","M","B","T","Q"][l];return`${(t/Math.pow(1e3,l)).toLocaleString("en-US",{maximumSignificantDigits:3})}${u}`}return t.toLocaleString("en-US",{maximumFractionDigits:i,minimumFractionDigits:i})},pR=(t,r)=>{if(t.startDate&&t.endDate){const u=Ud(t.startDate,r),d=Ud(t.endDate,r);return`${t.allocationType}: ${u} to ${d}`}const i=Ud(t.entryDate,r),l=t.status=="Incomplete"?"Started":"Submitted";return`${t.allocationType}: ${l} ${i}`},yc=t=>m.jsx("i",{className:`bi bi-${t}`}),U0=t=>{const r=t.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:t,short:r&&r[3]||null}},wI=t=>{const r=U0(t.name);return r.short||r.full},g0=(t,r)=>t.isCredit>r.isCredit||t.isActive>r.isActive||wI(t)<wI(r)?-1:1,RI=(...t)=>{for(let r of t)if(r!=null)return r;return null},Kj=(t,r="and",i=", ")=>t.reduce((l,u,d)=>m.jsxs(m.Fragment,{children:[l,t.length-1>d?i:` ${r} `,u]})),hR=t=>t?m.jsxs(m.Fragment,{children:[yc("check-circle")," Yes"]}):m.jsxs(m.Fragment,{children:[yc("x-circle")," No"]}),vR=t=>Kj(t.users.filter(({role:r})=>["pi","co_pi","allocation_manager"].includes(r)).map(r=>`${r.firstName} ${r.lastName}`),"or"),y0=(t,r)=>r==1&&t.endsWith("s")?t.slice(0,-1):t,eO=(t,r,i)=>`1 ${y0(t,1)} = ${ga(r)} ${y0(i,r)}`,tO=t=>{let r=0,i=0;for(let l of t.resources){if(l.isBoolean)continue;let{unitCost:u}=l.exchangeRates.base;r+=l.allocated*u,i+=Math.min(l.used,l.allocated)*u}return r>0?i/r:0},H0=[{role:"pi",name:"PI",xrasRole:"PI"},{role:"co_pi",name:"Co-PI",xrasRole:"CoPI"},{role:"allocation_manager",name:"Allocation Manager",xrasRole:"Allocation Manager"},{role:"user",name:"User",xrasRole:"User"}],nO={};for(let t of H0)nO[t.role]=t;const Sw={};for(let{role:t,xrasRole:r}of H0)Sw[t]=r;const Ew=["info","success","secondary","warning","danger"];function ww(t,r="total"){const i=t.exchangeRates[t.requested<=t.allocated?"base":"current"].unitCost;let l=(t.requested-t.allocated)*i;return r!="total"?l:l+t.allocated*t.exchangeRates.base.unitCost}function mR(t){t&&(Yt.routes={...Yt.routes,...t})}const Rw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},VE={};function rO(t,r=3){let i=0;for(;t/Math.pow(1e3,i)>1e3;)i+=1;const l=t.toString().length,u=Math.pow(10,l-r);return(Math.round(t/u)*u/Math.pow(1e3,i)).toString()+["","K","M","B","T"][i]}async function GU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function WU(t){if(VE[t])return VE[t];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,u=await(await fetch(`${i}/${t}`)).json();return VE[t]=u,u}function XU(t){const r=[...t.creditLines.features.map(l=>l.properties.credits)],i=[...t.rpPoints.features.map(l=>l.properties.rpCredits),...t.userPoints.features.map(l=>l.properties.userCredits)];return{lines:_I(r),points:_I(i)}}function TI({activeOrg:t,basemapStyle:r,creditLevels:i,creditType:l,geoJSON:u,organizationType:d}){const v={},h=[];if(u&&i){const C=d==="user"?"rp":"user",x=u[`${d}Points`],w=u[`${C}Points`],R=`${d}Credits`,j=`${C}Credits`;v.organizations={type:"geojson",data:x};const I={user:[],rp:[]},_=[];i.points.forEach((L,P)=>{Object.keys(Rw).forEach(F=>{I[F].push(L[1],Rw[F].colors[P])}),_.push(L[1],5*(P+1))});const A=[];if(i.lines.forEach((L,P)=>{A.push(L[1],1*(P+1))}),h.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",R],..._],"circle-color":["interpolate",["linear"],["get",R],...I[d]],"circle-opacity":t?["match",["id"],t.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),t&&l!=="allocated"){v.opp={type:"geojson",data:w};const L=["get",t.id.toString(),["get",`${j}Map`]];h.push({id:"opp",type:"circle",source:"opp",filter:["has",t.id.toString(),["get",`${j}Map`]],paint:{"circle-radius":["interpolate",["linear"],L,..._],"circle-color":["interpolate",["linear"],L,...I[C]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),v.credits={type:"geojson",data:u.creditLines},h.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${d}_organization_id`],t.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],...A]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...v},layers:[...y.layers.filter(C=>C.id!=="Marine waterbody/label/2x large"),...h]}}function YU(t,r,i,l,u=20){return[...Array(u+1).keys()].map(d=>d/u).map(d=>{let v=d*(i-t)+t,h=d*(l-r)+r+Math.abs(Math.sin(d*Math.PI)*(i-t)*.1);return[v,h]})}function ZU(t,r,i){const l={};return t.features.forEach(d=>l[d.id]={type:d.type,geometry:d.geometry,id:d.id,properties:{name:d.properties.name,abbr:d.properties.abbr,userCredits:0,userCreditsMap:{},rpCredits:0,rpCreditsMap:{}}},{}),{creditLines:{type:"FeatureCollection",features:r.result.filter(d=>l[d.user_organization_id]!==void 0&&(i==="allocated"||l[d.rp_organization_id]!==void 0)).map(d=>{const v=l[d.user_organization_id],h=l[d.rp_organization_id];if(v.properties.userCredits+=d.credits,h&&(h.properties.rpCredits+=d.credits),v.properties.userCreditsMap[d.rp_organization_id]=(v.properties.userCreditsMap[d.rp_organization_id]||0)+d.credits,h&&(h.properties.rpCreditsMap[d.user_organization_id]=(h.properties.rpCreditsMap[d.user_organization_id]||0)+d.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:YU(...l[d.user_organization_id].geometry.coordinates,...l[d.rp_organization_id].geometry.coordinates)},properties:d}}).filter(d=>d!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(l).filter(d=>d.properties.userCredits>0).sort((d,v)=>d.properties.userCredits>v.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(l).filter(d=>d.properties.rpCredits>0).sort((d,v)=>d.properties.rpCredits>v.properties.rpCredits?-1:1)}}}function _I(t,r=[0,.3,.6,.9]){return r.map((i,l)=>{const u=qU(t,i),d=l===r.length-1?"+":"";return[`${rO(Math.round(u))}${d}`,u]})}function qU(t,r){t.sort((d,v)=>d-v);const i=(t.length-1)*r,l=Math.floor(i),u=i-l;return t[l+1]!==void 0?t[l]+u*(t[l+1]-t[l]):t[l]}const JU="_fullscreen_1iid9_6",QU="_map_1iid9_14",Pb={"allocations-map":"_allocations-map_1iid9_1",fullscreen:JU,map:QU},KU="_group_11k83_1",eH="_button_11k83_6",tH="_icon_11k83_16",BE={group:KU,button:eH,icon:tH};function NI({choices:t,disabledValues:r=[],label:i,value:l,setValue:u}){const d=[];return t.forEach(([v,h])=>d.push(m.jsx("input",{type:"radio",className:"btn-check",name:v,id:v,autoComplete:"off",checked:l===v,onChange:()=>u(v),disabled:r.includes(v)},v),m.jsxs("label",{className:`btn btn-outline-primary ${BE.button}`,htmlFor:v,disabled:r.includes(v),children:[l===v?m.jsx("i",{className:`bi bi-check ${BE.icon}`}):null," ",h]},`${v}-label`))),m.jsx("div",{className:"mb-2",children:m.jsx("div",{className:`btn-group ${BE.group}`,role:"group","aria-label":i,children:d})})}const nH="_controls_1be4t_1",rH={controls:nH};function aH({creditType:t,organizationType:r,setCreditType:i,setOrganizationType:l}){return m.jsxs("div",{className:rH.controls,children:[m.jsx("h2",{children:"ACCESS Allocations"}),m.jsx(NI,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:t,setValue:i}),m.jsx(NI,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:t==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:l})]})}const iH="_legend_odgg9_1",oH="_symbols_odgg9_17",sH="_symbol_odgg9_17",Jb={legend:iH,symbols:oH,symbol:sH};function lH(t,r){const i=2*t+2;return m.jsx("svg",{viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:i,width:i,children:m.jsx("circle",{fill:r,cx:t+1,cy:t+1,r:t})})}function uH({activeOrg:t,creditLevels:r,organizationType:i}){if(t||!r)return;const l=r.points.map((u,d)=>m.jsxs("div",{className:Jb.symbol,children:[lH(5*(d+1),Rw[i].colors[d]),m.jsx("br",{}),m.jsx("span",{className:"label",children:u[0]})]},u[0]));return m.jsxs("div",{className:Jb.legend,children:[m.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",m.jsx("small",{children:"or credit equivalents"})]}),m.jsx("div",{className:Jb.symbols,children:l})]})}const cH="_info_oxxoh_1",dH="_user_oxxoh_7",fH="_rp_oxxoh_10",pH="_credits_oxxoh_15",Qb={info:cH,user:dH,rp:fH,credits:pH};function II(t,r,i){t.sort((u,d)=>d[1]-u[1]);const l=t.slice(0,3).map(u=>u[0]);return t.length>3&&(l[2]=`${t.length-2} other ${i}s`),l.reduce((u,d,v,h)=>[u,m.jsx("span",{className:`name ${Qb[r]}`,children:d},d),[""," and ",", "][h.length-v-1]],[])}function hH({activeOrg:t,creditType:r,organizationMap:i,organizationType:l}){if(!t||!i)return;const u=t.properties,d=u[`${l}Credits`],v=l==="rp"?"user":"rp",h=JSON.parse(u[`${l}CreditsMap`]),y={user:[],rp:[]};return y[l].push([u.name,d]),Object.keys(h).forEach(C=>y[v].push([i[C],h[C]])),m.jsx("div",{className:`${Jb.legend} ${Qb.info}`,children:m.jsxs("p",{className:Qb[l],children:["Researchers at ",II(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",m.jsxs("span",{className:Qb.credits,children:[rO(d)," ACCESS Credits"]}),r!=="allocated"?m.jsxs(m.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",II(y.rp,"rp","resource provider")]}):"","."]})})}function vH(){const t=k.useRef(null),r=k.useRef(null),[i,l]=k.useState(null),[u,d]=k.useState(null),[v,h]=k.useState(null),[y,C]=k.useState(!1),[x,w]=k.useState(null),[R,j]=k.useState(null),[I,_]=k.useState(null),[A,L]=k.useState("user"),[P,F]=k.useState("exchanged");return k.useEffect(()=>{(async()=>d(await GU()))()},[]),k.useEffect(()=>{(async U=>{const[B,z]=await Promise.all(["organizations",`credits_${U}`].map(WU));if(!I){const Z={};B.features.forEach(ue=>Z[ue.id.toString()]=ue.properties.name),_(Z)}const X=ZU(B,z,P);w(X),U==="exchanged"&&!v&&h(XU(X))})(P)},[P]),k.useEffect(()=>{R&&R.setStyle(TI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,geoJSON:x,organizationType:A}))},[i,x,R,A]),k.useEffect(()=>{R&&(R.on("mousemove","organizations",U=>l(U.features.length?U.features[0]:null)),R.on("mouseleave","organizations",()=>l(null)))},[R]),k.useEffect(()=>{R&&R.resize()},[y]),k.useEffect(()=>{P==="allocated"&&L("user")},[P]),k.useLayoutEffect(()=>j(new maplibregl.Map({container:r.current,style:TI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,geoJSON:x,organizationType:A}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),k.useLayoutEffect(()=>t.current.addEventListener("keydown",U=>{U.key==="Escape"&&C(!1)}),[]),m.jsxs("section",{className:`${Pb["allocations-map"]} ${y?Pb.fullscreen:"border border-3 border-primary"}`,ref:t,children:[m.jsx("div",{className:Pb.map,ref:r}),m.jsx(aH,{creditType:P,fullscreen:y,organizationType:A,setCreditType:F,setFullscreen:C,setOrganizationType:L}),m.jsx(uH,{activeOrg:i,creditLevels:v,organizationType:A}),m.jsx(hH,{activeOrg:i,creditType:P,organizationMap:I,organizationType:A}),m.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Pb.fullscreen,onClick:()=>C(!y),children:m.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const mH="_dragging_1vb1t_45",ls={"resources-container":"_resources-container_1vb1t_1","drag-instruction":"_drag-instruction_1vb1t_6","resources-list":"_resources-list_1vb1t_12","resources-header":"_resources-header_1vb1t_18","resources-item":"_resources-item_1vb1t_28",dragging:mH,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"},gH=async(t,r)=>{try{const i=await fetch(`${t}/resources`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resources:r.map((u,d)=>({resource_id:u.resource_id,relative_order:d+1}))})});if(!i.ok){const u=await i.json();throw new Error(u.error||"Failed to update resource order")}const l=await i.json();console.log(l.message)}catch(i){console.error("Error updating resource order:",i)}},yH=t=>[...t].sort((r,i)=>r.relative_order===null&&i.relative_order===null?r.display_resource_name.localeCompare(i.display_resource_name):r.relative_order===null?1:i.relative_order===null?-1:r.relative_order-i.relative_order),AI=(t,r)=>{r.current||(r.current=setInterval(()=>{window.scrollBy(0,t*10)},16))},zE=t=>{t.current&&(clearInterval(t.current),t.current=null)};function bH({availableResources:t,relativeUrlRoot:r}){const i=k.useMemo(()=>yH(t),[t]),[l,u]=k.useState(i),d=k.useRef(null),v=k.useRef(null);k.useEffect(()=>{u(i)},[i]);const h=(x,w)=>{d.current=w},y=(x,w)=>{if(x.preventDefault(),d.current===w)return;const R=[...l],j=R[d.current];R.splice(d.current,1),R.splice(w,0,j),d.current=w,u(R);const{clientY:I}=x,_=130;I<_?AI(-1,v):window.innerHeight-I<_?AI(1,v):zE(v)},C=()=>{d.current=null,zE(v),gH(r,l)};return k.useEffect(()=>()=>zE(v),[]),m.jsxs("div",{className:ls["resources-container"],children:[m.jsx("h2",{children:"Select a resource from the list to modify"}),m.jsx("p",{className:ls["drag-instruction"],children:"Drag items to reorder the list."}),m.jsxs("div",{className:ls["resources-list"],children:[m.jsxs("div",{className:ls["resources-header"],children:[m.jsx("span",{className:ls["header-name"],children:"Resource Name"}),m.jsx("span",{className:ls["header-repo"],children:"Repository Key"})]}),l.map((x,w)=>m.jsxs("div",{className:`${ls["resources-item"]}`,draggable:!0,onDragStart:R=>h(R,w),onDragOver:R=>y(R,w),onDrop:C,children:[m.jsx("span",{className:ls["drag-handle"]}),m.jsx("span",{className:ls["resource-name"],children:m.jsx("a",{href:`${r}/resources/${x.resource_id}`,className:ls["resource-link"],children:x.display_resource_name})}),m.jsx("span",{className:ls["resource-repo"],children:x.resource_repository_key||"N/A"})]},x.resource_id))]})]})}var Tw={exports:{}},Fb={exports:{}},wn={};/** @license React v16.13.1
|
|
270
|
+
`),ot}m0(()=>{Oe.current=void 0,be.current=void 0,Y.current=Ve});const Ge=qt.useMemo(()=>qt.createElement(A,{...Ve,ref:ue}),[ue,A,Ve]);return qt.useMemo(()=>I?qt.createElement(ge.Provider,{value:G},Ge):Ge,[ge,Ge,G])}const z=qt.memo(U);if(z.WrappedComponent=A,z.displayName=U.displayName=P,y){const Z=qt.forwardRef(function(ie,ge){return qt.createElement(z,{...ie,reactReduxForwardedRef:ge})});return Z.displayName=P,Z.WrappedComponent=A,xw(Z,A)}return xw(z,A)}}var ps=VU;function BU({store:t,context:r,children:i,serverState:l,stabilityCheck:u="once",identityFunctionCheck:d="once"}){const v=qt.useMemo(()=>{const C=Zj(t);return{store:t,subscription:C,getServerState:l?()=>l:void 0,stabilityCheck:u,identityFunctionCheck:d}},[t,l,u,d]),h=qt.useMemo(()=>t.getState(),[t]);m0(()=>{const{subscription:C}=v;return C.onStateChange=C.notifyNestedSubs,C.trySubscribe(),h!==t.getState()&&C.notifyNestedSubs(),()=>{C.tryUnsubscribe(),C.onStateChange=void 0}},[v,h]);const y=r||ru;return qt.createElement(y.Provider,{value:v},i)}var Kp=BU;function Qj(t=ru){const r=t===ru?Pj:lR(t),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var zU=Qj();function $U(t=ru){const r=t===ru?zU:Qj(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var No=$U();Q$(q$.useSyncExternalStoreWithSelector);OU(k.useSyncExternalStore);const Zl="https://allocations.access-ci.org",Jt={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(t,r)=>`/requests/${t}/actions/${r}/edit`,edit_request_path:t=>`/requests/${t}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${Zl}/get-your-first-project`,project_types_path:()=>`${Zl}/project-types`,projects_path:()=>`${Zl}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:t=>`${Zl}/requests/${t}/renew`,request_action_path:(t,r)=>`${Zl}/requests/${t}/actions/${r}`,request_actions_path:t=>`${Zl}/requests/${t}/actions`,request_path:t=>`${Zl}/requests/${t}`,resources_path:()=>`${Zl}/resources`,search_people_path:()=>`${Zl}/search/people`,usage_detail_path:(t,r)=>`/usage/${t}/${r}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}},zp=(t,r,i="round")=>{const l=Math.pow(10,r||0);return Math[i](t*l)/l},UU=t=>new Date(`${t}T00:00:00`),HU={year:"numeric",month:"short",day:"numeric"},Ud=(t,r)=>UU(t).toLocaleString("en-us",r||HU),ga=(t,{abbreviate:r=!1,decimalPlaces:i=void 0}={})=>{if(r){let l=0;for(;Math.abs(t)/Math.pow(1e3,l)>=1e3;)l+=1;const u=["","K","M","B","T","Q"][l];return`${(t/Math.pow(1e3,l)).toLocaleString("en-US",{maximumSignificantDigits:3})}${u}`}return t.toLocaleString("en-US",{maximumFractionDigits:i,minimumFractionDigits:i})},pR=(t,r)=>{if(t.startDate&&t.endDate){const u=Ud(t.startDate,r),d=Ud(t.endDate,r);return`${t.allocationType}: ${u} to ${d}`}const i=Ud(t.entryDate,r),l=t.status=="Incomplete"?"Started":"Submitted";return`${t.allocationType}: ${l} ${i}`},yc=t=>m.jsx("i",{className:`bi bi-${t}`}),U0=t=>{const r=t.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:t,short:r&&r[3]||null}},wI=t=>{const r=U0(t.name);return r.short||r.full},g0=(t,r)=>t.isCredit>r.isCredit||t.isActive>r.isActive||wI(t)<wI(r)?-1:1,RI=(...t)=>{for(let r of t)if(r!=null)return r;return null},Kj=(t,r="and",i=", ")=>t.reduce((l,u,d)=>m.jsxs(m.Fragment,{children:[l,t.length-1>d?i:` ${r} `,u]})),hR=t=>t?m.jsxs(m.Fragment,{children:[yc("check-circle")," Yes"]}):m.jsxs(m.Fragment,{children:[yc("x-circle")," No"]}),vR=t=>Kj(t.users.filter(({role:r})=>["pi","co_pi","allocation_manager"].includes(r)).map(r=>`${r.firstName} ${r.lastName}`),"or"),y0=(t,r)=>r==1&&t.endsWith("s")?t.slice(0,-1):t,eO=(t,r,i)=>`1 ${y0(t,1)} = ${ga(r)} ${y0(i,r)}`,tO=t=>{let r=0,i=0;for(let l of t.resources){if(l.isBoolean)continue;let{unitCost:u}=l.exchangeRates.base;r+=l.allocated*u,i+=Math.min(l.used,l.allocated)*u}return r>0?i/r:0},H0=[{role:"pi",name:"PI",xrasRole:"PI"},{role:"co_pi",name:"Co-PI",xrasRole:"CoPI"},{role:"allocation_manager",name:"Allocation Manager",xrasRole:"Allocation Manager"},{role:"user",name:"User",xrasRole:"User"}],nO={};for(let t of H0)nO[t.role]=t;const Sw={};for(let{role:t,xrasRole:r}of H0)Sw[t]=r;const Ew=["info","success","secondary","warning","danger"];function ww(t,r="total"){const i=t.exchangeRates[t.requested<=t.allocated?"base":"current"].unitCost;let l=(t.requested-t.allocated)*i;return r!="total"?l:l+t.allocated*t.exchangeRates.base.unitCost}function mR(t){t&&(Jt.routes={...Jt.routes,...t})}const Rw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},VE={};function rO(t,r=3){let i=0;for(;t/Math.pow(1e3,i)>1e3;)i+=1;const l=t.toString().length,u=Math.pow(10,l-r);return(Math.round(t/u)*u/Math.pow(1e3,i)).toString()+["","K","M","B","T"][i]}async function GU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function WU(t){if(VE[t])return VE[t];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,u=await(await fetch(`${i}/${t}`)).json();return VE[t]=u,u}function XU(t){const r=[...t.creditLines.features.map(l=>l.properties.credits)],i=[...t.rpPoints.features.map(l=>l.properties.rpCredits),...t.userPoints.features.map(l=>l.properties.userCredits)];return{lines:_I(r),points:_I(i)}}function TI({activeOrg:t,basemapStyle:r,creditLevels:i,creditType:l,geoJSON:u,organizationType:d}){const v={},h=[];if(u&&i){const C=d==="user"?"rp":"user",x=u[`${d}Points`],w=u[`${C}Points`],R=`${d}Credits`,j=`${C}Credits`;v.organizations={type:"geojson",data:x};const I={user:[],rp:[]},_=[];i.points.forEach((L,P)=>{Object.keys(Rw).forEach(F=>{I[F].push(L[1],Rw[F].colors[P])}),_.push(L[1],5*(P+1))});const A=[];if(i.lines.forEach((L,P)=>{A.push(L[1],1*(P+1))}),h.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",R],..._],"circle-color":["interpolate",["linear"],["get",R],...I[d]],"circle-opacity":t?["match",["id"],t.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),t&&l!=="allocated"){v.opp={type:"geojson",data:w};const L=["get",t.id.toString(),["get",`${j}Map`]];h.push({id:"opp",type:"circle",source:"opp",filter:["has",t.id.toString(),["get",`${j}Map`]],paint:{"circle-radius":["interpolate",["linear"],L,..._],"circle-color":["interpolate",["linear"],L,...I[C]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),v.credits={type:"geojson",data:u.creditLines},h.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${d}_organization_id`],t.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],...A]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...v},layers:[...y.layers.filter(C=>C.id!=="Marine waterbody/label/2x large"),...h]}}function YU(t,r,i,l,u=20){return[...Array(u+1).keys()].map(d=>d/u).map(d=>{let v=d*(i-t)+t,h=d*(l-r)+r+Math.abs(Math.sin(d*Math.PI)*(i-t)*.1);return[v,h]})}function ZU(t,r,i){const l={};return t.features.forEach(d=>l[d.id]={type:d.type,geometry:d.geometry,id:d.id,properties:{name:d.properties.name,abbr:d.properties.abbr,userCredits:0,userCreditsMap:{},rpCredits:0,rpCreditsMap:{}}},{}),{creditLines:{type:"FeatureCollection",features:r.result.filter(d=>l[d.user_organization_id]!==void 0&&(i==="allocated"||l[d.rp_organization_id]!==void 0)).map(d=>{const v=l[d.user_organization_id],h=l[d.rp_organization_id];if(v.properties.userCredits+=d.credits,h&&(h.properties.rpCredits+=d.credits),v.properties.userCreditsMap[d.rp_organization_id]=(v.properties.userCreditsMap[d.rp_organization_id]||0)+d.credits,h&&(h.properties.rpCreditsMap[d.user_organization_id]=(h.properties.rpCreditsMap[d.user_organization_id]||0)+d.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:YU(...l[d.user_organization_id].geometry.coordinates,...l[d.rp_organization_id].geometry.coordinates)},properties:d}}).filter(d=>d!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(l).filter(d=>d.properties.userCredits>0).sort((d,v)=>d.properties.userCredits>v.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(l).filter(d=>d.properties.rpCredits>0).sort((d,v)=>d.properties.rpCredits>v.properties.rpCredits?-1:1)}}}function _I(t,r=[0,.3,.6,.9]){return r.map((i,l)=>{const u=qU(t,i),d=l===r.length-1?"+":"";return[`${rO(Math.round(u))}${d}`,u]})}function qU(t,r){t.sort((d,v)=>d-v);const i=(t.length-1)*r,l=Math.floor(i),u=i-l;return t[l+1]!==void 0?t[l]+u*(t[l+1]-t[l]):t[l]}const JU="_fullscreen_1iid9_6",QU="_map_1iid9_14",Pb={"allocations-map":"_allocations-map_1iid9_1",fullscreen:JU,map:QU},KU="_group_11k83_1",eH="_button_11k83_6",tH="_icon_11k83_16",BE={group:KU,button:eH,icon:tH};function NI({choices:t,disabledValues:r=[],label:i,value:l,setValue:u}){const d=[];return t.forEach(([v,h])=>d.push(m.jsx("input",{type:"radio",className:"btn-check",name:v,id:v,autoComplete:"off",checked:l===v,onChange:()=>u(v),disabled:r.includes(v)},v),m.jsxs("label",{className:`btn btn-outline-primary ${BE.button}`,htmlFor:v,disabled:r.includes(v),children:[l===v?m.jsx("i",{className:`bi bi-check ${BE.icon}`}):null," ",h]},`${v}-label`))),m.jsx("div",{className:"mb-2",children:m.jsx("div",{className:`btn-group ${BE.group}`,role:"group","aria-label":i,children:d})})}const nH="_controls_1be4t_1",rH={controls:nH};function aH({creditType:t,organizationType:r,setCreditType:i,setOrganizationType:l}){return m.jsxs("div",{className:rH.controls,children:[m.jsx("h2",{children:"ACCESS Allocations"}),m.jsx(NI,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:t,setValue:i}),m.jsx(NI,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:t==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:l})]})}const iH="_legend_odgg9_1",oH="_symbols_odgg9_17",sH="_symbol_odgg9_17",Jb={legend:iH,symbols:oH,symbol:sH};function lH(t,r){const i=2*t+2;return m.jsx("svg",{viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:i,width:i,children:m.jsx("circle",{fill:r,cx:t+1,cy:t+1,r:t})})}function uH({activeOrg:t,creditLevels:r,organizationType:i}){if(t||!r)return;const l=r.points.map((u,d)=>m.jsxs("div",{className:Jb.symbol,children:[lH(5*(d+1),Rw[i].colors[d]),m.jsx("br",{}),m.jsx("span",{className:"label",children:u[0]})]},u[0]));return m.jsxs("div",{className:Jb.legend,children:[m.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",m.jsx("small",{children:"or credit equivalents"})]}),m.jsx("div",{className:Jb.symbols,children:l})]})}const cH="_info_oxxoh_1",dH="_user_oxxoh_7",fH="_rp_oxxoh_10",pH="_credits_oxxoh_15",Qb={info:cH,user:dH,rp:fH,credits:pH};function II(t,r,i){t.sort((u,d)=>d[1]-u[1]);const l=t.slice(0,3).map(u=>u[0]);return t.length>3&&(l[2]=`${t.length-2} other ${i}s`),l.reduce((u,d,v,h)=>[u,m.jsx("span",{className:`name ${Qb[r]}`,children:d},d),[""," and ",", "][h.length-v-1]],[])}function hH({activeOrg:t,creditType:r,organizationMap:i,organizationType:l}){if(!t||!i)return;const u=t.properties,d=u[`${l}Credits`],v=l==="rp"?"user":"rp",h=JSON.parse(u[`${l}CreditsMap`]),y={user:[],rp:[]};return y[l].push([u.name,d]),Object.keys(h).forEach(C=>y[v].push([i[C],h[C]])),m.jsx("div",{className:`${Jb.legend} ${Qb.info}`,children:m.jsxs("p",{className:Qb[l],children:["Researchers at ",II(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",m.jsxs("span",{className:Qb.credits,children:[rO(d)," ACCESS Credits"]}),r!=="allocated"?m.jsxs(m.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",II(y.rp,"rp","resource provider")]}):"","."]})})}function vH(){const t=k.useRef(null),r=k.useRef(null),[i,l]=k.useState(null),[u,d]=k.useState(null),[v,h]=k.useState(null),[y,C]=k.useState(!1),[x,w]=k.useState(null),[R,j]=k.useState(null),[I,_]=k.useState(null),[A,L]=k.useState("user"),[P,F]=k.useState("exchanged");return k.useEffect(()=>{(async()=>d(await GU()))()},[]),k.useEffect(()=>{(async U=>{const[B,z]=await Promise.all(["organizations",`credits_${U}`].map(WU));if(!I){const Z={};B.features.forEach(ue=>Z[ue.id.toString()]=ue.properties.name),_(Z)}const X=ZU(B,z,P);w(X),U==="exchanged"&&!v&&h(XU(X))})(P)},[P]),k.useEffect(()=>{R&&R.setStyle(TI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,geoJSON:x,organizationType:A}))},[i,x,R,A]),k.useEffect(()=>{R&&(R.on("mousemove","organizations",U=>l(U.features.length?U.features[0]:null)),R.on("mouseleave","organizations",()=>l(null)))},[R]),k.useEffect(()=>{R&&R.resize()},[y]),k.useEffect(()=>{P==="allocated"&&L("user")},[P]),k.useLayoutEffect(()=>j(new maplibregl.Map({container:r.current,style:TI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,geoJSON:x,organizationType:A}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),k.useLayoutEffect(()=>t.current.addEventListener("keydown",U=>{U.key==="Escape"&&C(!1)}),[]),m.jsxs("section",{className:`${Pb["allocations-map"]} ${y?Pb.fullscreen:"border border-3 border-primary"}`,ref:t,children:[m.jsx("div",{className:Pb.map,ref:r}),m.jsx(aH,{creditType:P,fullscreen:y,organizationType:A,setCreditType:F,setFullscreen:C,setOrganizationType:L}),m.jsx(uH,{activeOrg:i,creditLevels:v,organizationType:A}),m.jsx(hH,{activeOrg:i,creditType:P,organizationMap:I,organizationType:A}),m.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Pb.fullscreen,onClick:()=>C(!y),children:m.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const mH="_dragging_1vb1t_45",ls={"resources-container":"_resources-container_1vb1t_1","drag-instruction":"_drag-instruction_1vb1t_6","resources-list":"_resources-list_1vb1t_12","resources-header":"_resources-header_1vb1t_18","resources-item":"_resources-item_1vb1t_28",dragging:mH,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"},gH=async(t,r)=>{try{const i=await fetch(`${t}/resources`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resources:r.map((u,d)=>({resource_id:u.resource_id,relative_order:d+1}))})});if(!i.ok){const u=await i.json();throw new Error(u.error||"Failed to update resource order")}const l=await i.json();console.log(l.message)}catch(i){console.error("Error updating resource order:",i)}},yH=t=>[...t].sort((r,i)=>r.relative_order===null&&i.relative_order===null?r.display_resource_name.localeCompare(i.display_resource_name):r.relative_order===null?1:i.relative_order===null?-1:r.relative_order-i.relative_order),AI=(t,r)=>{r.current||(r.current=setInterval(()=>{window.scrollBy(0,t*10)},16))},zE=t=>{t.current&&(clearInterval(t.current),t.current=null)};function bH({availableResources:t,relativeUrlRoot:r}){const i=k.useMemo(()=>yH(t),[t]),[l,u]=k.useState(i),d=k.useRef(null),v=k.useRef(null);k.useEffect(()=>{u(i)},[i]);const h=(x,w)=>{d.current=w},y=(x,w)=>{if(x.preventDefault(),d.current===w)return;const R=[...l],j=R[d.current];R.splice(d.current,1),R.splice(w,0,j),d.current=w,u(R);const{clientY:I}=x,_=130;I<_?AI(-1,v):window.innerHeight-I<_?AI(1,v):zE(v)},C=()=>{d.current=null,zE(v),gH(r,l)};return k.useEffect(()=>()=>zE(v),[]),m.jsxs("div",{className:ls["resources-container"],children:[m.jsx("h2",{children:"Select a resource from the list to modify"}),m.jsx("p",{className:ls["drag-instruction"],children:"Drag items to reorder the list."}),m.jsxs("div",{className:ls["resources-list"],children:[m.jsxs("div",{className:ls["resources-header"],children:[m.jsx("span",{className:ls["header-name"],children:"Resource Name"}),m.jsx("span",{className:ls["header-repo"],children:"Repository Key"})]}),l.map((x,w)=>m.jsxs("div",{className:`${ls["resources-item"]}`,draggable:!0,onDragStart:R=>h(R,w),onDragOver:R=>y(R,w),onDrop:C,children:[m.jsx("span",{className:ls["drag-handle"]}),m.jsx("span",{className:ls["resource-name"],children:m.jsx("a",{href:`${r}/resources/${x.resource_id}`,className:ls["resource-link"],children:x.display_resource_name})}),m.jsx("span",{className:ls["resource-repo"],children:x.resource_repository_key||"N/A"})]},x.resource_id))]})]})}var Tw={exports:{}},Fb={exports:{}},wn={};/** @license React v16.13.1
|
|
271
271
|
* react-is.production.min.js
|
|
272
272
|
*
|
|
273
273
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -286,11 +286,11 @@ object-assign
|
|
|
286
286
|
(c) Sindre Sorhus
|
|
287
287
|
@license MIT
|
|
288
288
|
*/var $E,kI;function SH(){if(kI)return $E;kI=1;var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function u(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var v={},h=0;h<10;h++)v["_"+String.fromCharCode(h)]=h;var y=Object.getOwnPropertyNames(v).map(function(x){return v[x]});if(y.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function(x){C[x]=x}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $E=u()?Object.assign:function(d,v){for(var h,y=l(d),C,x=1;x<arguments.length;x++){h=Object(arguments[x]);for(var w in h)r.call(h,w)&&(y[w]=h[w]);if(t){C=t(h);for(var R=0;R<C.length;R++)i.call(h,C[R])&&(y[C[R]]=h[C[R]])}}return y},$E}var UE,MI;function yR(){if(MI)return UE;MI=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return UE=t,UE}var HE,LI;function aO(){return LI||(LI=1,HE=Function.call.bind(Object.prototype.hasOwnProperty)),HE}var GE,PI;function EH(){if(PI)return GE;PI=1;var t={},r=function(){};if(t.NODE_ENV!=="production"){var i=yR(),l={},u=aO();r=function(v){var h="Warning: "+v;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}}}function d(v,h,y,C,x){if(t.NODE_ENV!=="production"){for(var w in v)if(u(v,w)){var R;try{if(typeof v[w]!="function"){var j=Error((C||"React class")+": "+y+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}R=v[w](h,w,C,y,null,i)}catch(_){R=_}if(R&&!(R instanceof Error)&&r((C||"React class")+": type specification of "+y+" `"+w+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof R+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),R instanceof Error&&!(R.message in l)){l[R.message]=!0;var I=x?x():"";r("Failed "+y+" type: "+R.message+(I??""))}}}}return d.resetWarningCache=function(){t.NODE_ENV!=="production"&&(l={})},GE=d,GE}var WE,FI;function wH(){if(FI)return WE;FI=1;var t={},r=gR(),i=SH(),l=yR(),u=aO(),d=EH(),v=function(){};t.NODE_ENV!=="production"&&(v=function(y){var C="Warning: "+y;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function h(){return null}return WE=function(y,C){var x=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function R(Y){var ne=Y&&(x&&Y[x]||Y[w]);if(typeof ne=="function")return ne}var j="<<anonymous>>",I={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:F(),arrayOf:U,element:B(),elementType:z(),instanceOf:X,node:ge(),objectOf:ue,oneOf:Z,oneOfType:ie,shape:_e,exact:Ee};function _(Y,ne){return Y===ne?Y!==0||1/Y===1/ne:Y!==Y&&ne!==ne}function A(Y,ne){this.message=Y,this.data=ne&&typeof ne=="object"?ne:{},this.stack=""}A.prototype=Error.prototype;function L(Y){if(t.NODE_ENV!=="production")var ne={},be=0;function we(Oe,ce,fe,Ve,Ge,tt,ot){if(Ve=Ve||j,tt=tt||fe,ot!==l){if(C){var Ae=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 Ae.name="Invariant Violation",Ae}else if(t.NODE_ENV!=="production"&&typeof console<"u"){var Rt=Ve+":"+fe;!ne[Rt]&&be<3&&(v("You are manually calling a React.PropTypes validation function for the `"+tt+"` prop on `"+Ve+"`. 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."),ne[Rt]=!0,be++)}}return ce[fe]==null?Oe?ce[fe]===null?new A("The "+Ge+" `"+tt+"` is marked as required "+("in `"+Ve+"`, but its value is `null`.")):new A("The "+Ge+" `"+tt+"` is marked as required in "+("`"+Ve+"`, but its value is `undefined`.")):null:Y(ce,fe,Ve,Ge,tt)}var Ne=we.bind(null,!1);return Ne.isRequired=we.bind(null,!0),Ne}function P(Y){function ne(be,we,Ne,Oe,ce,fe){var Ve=be[we],Ge=Le(Ve);if(Ge!==Y){var tt=re(Ve);return new A("Invalid "+Oe+" `"+ce+"` of type "+("`"+tt+"` supplied to `"+Ne+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return L(ne)}function F(){return L(h)}function U(Y){function ne(be,we,Ne,Oe,ce){if(typeof Y!="function")return new A("Property `"+ce+"` of component `"+Ne+"` has invalid PropType notation inside arrayOf.");var fe=be[we];if(!Array.isArray(fe)){var Ve=Le(fe);return new A("Invalid "+Oe+" `"+ce+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected an array."))}for(var Ge=0;Ge<fe.length;Ge++){var tt=Y(fe,Ge,Ne,Oe,ce+"["+Ge+"]",l);if(tt instanceof Error)return tt}return null}return L(ne)}function B(){function Y(ne,be,we,Ne,Oe){var ce=ne[be];if(!y(ce)){var fe=Le(ce);return new A("Invalid "+Ne+" `"+Oe+"` of type "+("`"+fe+"` supplied to `"+we+"`, expected a single ReactElement."))}return null}return L(Y)}function z(){function Y(ne,be,we,Ne,Oe){var ce=ne[be];if(!r.isValidElementType(ce)){var fe=Le(ce);return new A("Invalid "+Ne+" `"+Oe+"` of type "+("`"+fe+"` supplied to `"+we+"`, expected a single ReactElement type."))}return null}return L(Y)}function X(Y){function ne(be,we,Ne,Oe,ce){if(!(be[we]instanceof Y)){var fe=Y.name||j,Ve=G(be[we]);return new A("Invalid "+Oe+" `"+ce+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected ")+("instance of `"+fe+"`."))}return null}return L(ne)}function Z(Y){if(!Array.isArray(Y))return t.NODE_ENV!=="production"&&(arguments.length>1?v("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])."):v("Invalid argument supplied to oneOf, expected an array.")),h;function ne(be,we,Ne,Oe,ce){for(var fe=be[we],Ve=0;Ve<Y.length;Ve++)if(_(fe,Y[Ve]))return null;var Ge=JSON.stringify(Y,function(ot,Ae){var Rt=re(Ae);return Rt==="symbol"?String(Ae):Ae});return new A("Invalid "+Oe+" `"+ce+"` of value `"+String(fe)+"` "+("supplied to `"+Ne+"`, expected one of "+Ge+"."))}return L(ne)}function ue(Y){function ne(be,we,Ne,Oe,ce){if(typeof Y!="function")return new A("Property `"+ce+"` of component `"+Ne+"` has invalid PropType notation inside objectOf.");var fe=be[we],Ve=Le(fe);if(Ve!=="object")return new A("Invalid "+Oe+" `"+ce+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected an object."));for(var Ge in fe)if(u(fe,Ge)){var tt=Y(fe,Ge,Ne,Oe,ce+"."+Ge,l);if(tt instanceof Error)return tt}return null}return L(ne)}function ie(Y){if(!Array.isArray(Y))return t.NODE_ENV!=="production"&&v("Invalid argument supplied to oneOfType, expected an instance of array."),h;for(var ne=0;ne<Y.length;ne++){var be=Y[ne];if(typeof be!="function")return v("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(be)+" at index "+ne+"."),h}function we(Ne,Oe,ce,fe,Ve){for(var Ge=[],tt=0;tt<Y.length;tt++){var ot=Y[tt],Ae=ot(Ne,Oe,ce,fe,Ve,l);if(Ae==null)return null;Ae.data&&u(Ae.data,"expectedType")&&Ge.push(Ae.data.expectedType)}var Rt=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new A("Invalid "+fe+" `"+Ve+"` supplied to "+("`"+ce+"`"+Rt+"."))}return L(we)}function ge(){function Y(ne,be,we,Ne,Oe){return Ce(ne[be])?null:new A("Invalid "+Ne+" `"+Oe+"` supplied to "+("`"+we+"`, expected a ReactNode."))}return L(Y)}function de(Y,ne,be,we,Ne){return new A((Y||"React class")+": "+ne+" type `"+be+"."+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ne+"`.")}function _e(Y){function ne(be,we,Ne,Oe,ce){var fe=be[we],Ve=Le(fe);if(Ve!=="object")return new A("Invalid "+Oe+" `"+ce+"` of type `"+Ve+"` "+("supplied to `"+Ne+"`, expected `object`."));for(var Ge in Y){var tt=Y[Ge];if(typeof tt!="function")return de(Ne,Oe,ce,Ge,re(tt));var ot=tt(fe,Ge,Ne,Oe,ce+"."+Ge,l);if(ot)return ot}return null}return L(ne)}function Ee(Y){function ne(be,we,Ne,Oe,ce){var fe=be[we],Ve=Le(fe);if(Ve!=="object")return new A("Invalid "+Oe+" `"+ce+"` of type `"+Ve+"` "+("supplied to `"+Ne+"`, expected `object`."));var Ge=i({},be[we],Y);for(var tt in Ge){var ot=Y[tt];if(u(Y,tt)&&typeof ot!="function")return de(Ne,Oe,ce,tt,re(ot));if(!ot)return new A("Invalid "+Oe+" `"+ce+"` key `"+tt+"` supplied to `"+Ne+"`.\nBad object: "+JSON.stringify(be[we],null," ")+`
|
|
289
|
-
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Ae=ot(fe,tt,Ne,Oe,ce+"."+tt,l);if(Ae)return Ae}return null}return L(ne)}function Ce(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(Ce);if(Y===null||y(Y))return!0;var ne=R(Y);if(ne){var be=ne.call(Y),we;if(ne!==Y.entries){for(;!(we=be.next()).done;)if(!Ce(we.value))return!1}else for(;!(we=be.next()).done;){var Ne=we.value;if(Ne&&!Ce(Ne[1]))return!1}}else return!1;return!0;default:return!1}}function je(Y,ne){return Y==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function Le(Y){var ne=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":je(ne,Y)?"symbol":ne}function re(Y){if(typeof Y>"u"||Y===null)return""+Y;var ne=Le(Y);if(ne==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return ne}function Ie(Y){var ne=re(Y);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function G(Y){return!Y.constructor||!Y.constructor.name?j:Y.constructor.name}return I.checkPropTypes=d,I.resetWarningCache=d.resetWarningCache,I.PropTypes=I,I},WE}var XE,VI;function RH(){if(VI)return XE;VI=1;var t=yR();function r(){}function i(){}return i.resetWarningCache=r,XE=function(){function l(v,h,y,C,x,w){if(w!==t){var R=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 R.name="Invariant Violation",R}}l.isRequired=l;function u(){return l}var d={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:u,element:l,elementType:l,instanceOf:u,node:l,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:i,resetWarningCache:r};return d.PropTypes=d,d},XE}var TH={};if(TH.NODE_ENV!=="production"){var _H=gR(),NH=!0;Tw.exports=wH()(_H.isElement,NH)}else Tw.exports=RH()();var IH=Tw.exports;const Ue=Qp(IH);function eh(){return m.jsx("div",{className:"spinner-border",role:"status",children:m.jsx("span",{className:"visually-hidden",children:"Loading..."})})}const Rm=({label:t,options:r,value:i,onChange:l,...u})=>m.jsxs("div",{className:"form-group",children:[t&&m.jsx("label",{children:t}),m.jsx("select",{className:"form-control",value:i,onChange:l,...u,children:r.map(d=>m.jsxs("option",{value:d.value,children:[d.label,d.additionalInfo&&` - ${d.additionalInfo}`]},d.value))})]});Rm.propTypes={label:Ue.string,options:Ue.arrayOf(Ue.shape({value:Ue.oneOfType([Ue.string,Ue.number]).isRequired,label:Ue.string.isRequired,additionalInfo:Ue.string})).isRequired,value:Ue.oneOfType([Ue.string,Ue.number]),onChange:Ue.func.isRequired};function gm({label:t,type:r="text",value:i,onChange:l,disabled:u=!1,infoText:d="",style:v,inputClassName:h,inputAddon:y}){return m.jsxs(m.Fragment,{children:[t&&m.jsx("label",{children:t}),d&&m.jsx("small",{className:"form-text help-block",children:d}),r==="textarea"?m.jsx("textarea",{className:`form-control ${h||""}`,value:i,onChange:l,disabled:u,rows:"6"}):y?m.jsxs("div",{className:"input-prepend",children:[m.jsx("span",{className:"add-on",children:y}),m.jsx("input",{type:r,className:`form-control ${h||""}`,style:v,value:i,onChange:l,disabled:u})]}):m.jsx("input",{type:r,className:`form-control ${h||""}`,style:v,value:i,onChange:l,disabled:u})]})}const _w=t=>({type:"SET_RESOURCE_DATA",payload:t}),AH=t=>({type:"SET_LOADING",payload:t}),BI=(t,r)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:t,color:r}}),om=(t,r)=>({type:"UPDATE_RESOURCE_FIELD",field:t,value:r}),YE=(t,r)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:t,updates:r}}),iO=pr.memo(function({resourceDetails:r,resourceTypesOptions:i,unitTypesOptions:l,dispatch:u}){return m.jsxs(m.Fragment,{children:[m.jsx(gm,{label:"Resource Name",value:r.resource_name,onChange:d=>u(om("resource_name",d.target.value)),inputClassName:"span8"}),m.jsx(gm,{label:"Resource ID",value:r.resource_id,disabled:!0,inputClassName:"span8"}),m.jsx(gm,{label:"Dollar Value",value:r.dollar_value,onChange:d=>u(om("dollar_value",d.target.value)),type:"number",inputAddon:"$",inputClassName:"span4"}),m.jsx(gm,{label:"Allocations Description",type:"textarea",value:r.description,infoText:"Appears below the resource name in the form when making a new request, as well as under the header Allocations Description in resource catalogs",onChange:d=>u(om("description",d.target.value)),inputClassName:"span8"}),m.jsx(Rm,{label:"Resource Type",options:i,value:r.resource_type_id,onChange:d=>u(om("resource_type_id",d.target.value)),className:"span8"}),m.jsx(Rm,{label:"Unit Type",options:l,value:r.unit_type_id,onChange:d=>u(om("unit_type_id",d.target.value)),className:"span8"})]})});iO.propTypes={resourceDetails:Ue.object.isRequired,resourceTypesOptions:Ue.array.isRequired,unitTypesOptions:Ue.array.isRequired,dispatch:Ue.func.isRequired};const jH="_grid_afccc_1",OH="_important_afccc_30",DH="_input_afccc_34",kH="_edited_afccc_38",MH="_disabled_afccc_46",LH="_scroll_afccc_59",Hd={grid:jH,important:OH,input:DH,edited:kH,disabled:MH,scroll:LH};function PH({column:t,row:r,style:i={}}){const l=t.format?t.format(r[t.key],r):r[t.key],u=["cell"];return t.class&&u.push(t.class),t.rowClass&&u.push(t.rowClass(r)),m.jsx("td",{className:u.join(" "),style:i,children:l})}const bR=({title:t,placement:r,children:i})=>(k.useEffect(()=>($('[data-toggle="tooltip"]').tooltip(),()=>{$('[data-toggle="tooltip"]').tooltip("destroy")}),[]),m.jsx("span",{"data-toggle":"tooltip","data-placement":r,title:t,style:{margin:"10px"},children:i}));bR.propTypes={title:Ue.string.isRequired,placement:Ue.oneOf(["top","bottom","left","right"]),children:Ue.node.isRequired};bR.defaultProps={placement:"top"};const FH="_datepicker_19wnv_1",VH="_error_19wnv_1",zI={datepicker:FH,error:VH},BH=({value:t,onChange:r,disabled:i=!1,style:l,className:u="",minDate:d="",maxDate:v="",error:h=""})=>{const y=h;return m.jsx("div",{className:`w-full ${u}`,children:m.jsx("input",{type:"date",style:l,className:`${zI.datepicker} ${y?zI.error:""}`,value:t||"",onChange:C=>r(C.target.value),disabled:i,min:d||"1900-01-01",max:v||"2100-12-31"})})},sm=(t,r,i)=>{if(r.onChange){r.onChange(i,t);return}const l=t[r.key];l!=null&&l.onChange&&l.onChange(i)},zH={text:PH,select:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx(Rm,{label:"",options:r[t.key].options,value:r[t.key].value,onChange:l=>sm(r,t,l.target.value),style:{width:"100%",margin:0}})}),input:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx(gm,{label:"",type:"text",disabled:r[t.key].disabled,value:r[t.key].value,onChange:l=>sm(r,t,l.target.value),style:{width:"92%",margin:0}})}),checkbox:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx("input",{type:"checkbox",checked:r[t.key].checked,onChange:l=>sm(r,t,l.target.checked)})}),date:({column:t,row:r,style:i})=>{const l=r[t.key];return!(l!=null&&l.value)&&typeof l!="object"?m.jsx("td",{style:i,children:l||""}):m.jsx("td",{style:i,children:m.jsx(BH,{value:l.value,onChange:u=>sm(r,t,u),disabled:l.disabled,style:{width:"92%",margin:0},minDate:t.minDate,maxDate:t.maxDate,error:l.error})})},action:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:r.rate_type==="Discount"&&m.jsx("button",{className:"btn btn-link text-danger",onClick:()=>{var l;return sm(r,t,(l=r[t.key])==null?void 0:l.id)},children:m.jsx("i",{className:"fa fa-trash"})})})};function ou({columns:t,rows:r,classes:i,frozenColumns:l=0,minWidth:u,rowClasses:d=[],scroll:v=!0,scrollBehavior:h="smooth",scrollRowIndex:y=0}){const C=k.useRef();k.useLayoutEffect(()=>{if(!v||!C.current)return;const _=C.current.querySelector(`tbody tr:nth-child(${y+1})`);_&&_.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,y,h]);const x=[0];for(let _=0;_<l;_++)x[_+1]=x[_]+(t[_].width||100);const w=(_,A)=>_<l?{position:"sticky",left:`${x[_]}px`,minWidth:`${t[_].width||100}px`,width:`${t[_].width||100}px`,zIndex:A||1}:{},R=t.map((_,A)=>m.jsxs("th",{className:_.headerClass||_.class||"",style:w(A,100),children:[_.formatHeader?_.formatHeader(_.name,_):_.name,_.tooltip&&m.jsx(bR,{title:_.tooltip,placement:"bottom",children:m.jsx("i",{className:"icon-info-sign"})})]},_.key)),j=r.map((_,A)=>{const L=t.map((P,F)=>{const U=zH[P.type||"text"];return m.jsx(U,{column:P,row:_,style:w(F)},P.key)});return m.jsx("tr",{className:d[A]||"",children:L},A)}),I={};return u&&(I.minWidth=u),m.jsx("div",{className:`${Hd.grid} ${v?Hd.scroll:""} ${i||""}`,ref:C,children:m.jsxs("table",{className:"table table-bordered",style:I,children:[m.jsx("thead",{children:m.jsx("tr",{children:R})}),m.jsx("tbody",{children:j})]})})}const lm={"header-container":"_header-container_cdj2i_1","header-buttons":"_header-buttons_cdj2i_8","allocation-types-grid":"_allocation-types-grid_cdj2i_13","vertical-align-center":"_vertical-align-center_cdj2i_18"},oO=pr.memo(function({columns:r,rows:i,onAddRequiredResource:l,onAddAllocationType:u}){return m.jsxs("div",{className:lm["allocation-types-grid"],children:[m.jsxs("div",{className:lm["header-container"],children:[m.jsx("h2",{className:lm["header-title"],children:"Allocation Types"}),m.jsxs("div",{className:lm["header-buttons"],children:[m.jsxs("button",{className:"btn btn-primary",onClick:u,children:[m.jsx("i",{className:"fa fa-plus"})," Add Allocation Type"]}),m.jsxs("button",{className:"btn btn-primary",onClick:l,children:[m.jsx("i",{className:"fa fa-plus"})," Add Required Resource"]})]})]}),m.jsx(ou,{columns:r,rows:i,rowClasses:Array(i.length).fill(lm["vertical-align-center"]),scroll:!1})]})});oO.propTypes={columns:Ue.array.isRequired,rows:Ue.array.isRequired,onAddRequiredResource:Ue.func.isRequired,onAddAllocationType:Ue.func.isRequired};const Nw=({show:t,onClose:r,title:i,children:l,onSave:u})=>t?m.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",alignItems:"center",zIndex:1050},children:m.jsx("div",{className:"modal fade in",tabIndex:"-1",role:"dialog","aria-hidden":"true",style:{width:"90%",maxWidth:"600px",maxHeight:"90%",overflow:"auto",backgroundColor:"white",position:"relative"},children:m.jsx("div",{className:"modal-dialog",role:"document",children:m.jsxs("div",{className:"modal-content",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("button",{type:"button",className:"close","data-dismiss":"modal",onClick:r,"aria-label":"Close",children:m.jsx("h3",{"aria-hidden":"true",className:"text-danger",children:"×"})}),m.jsx("h3",{className:"modal-title",children:i})]}),m.jsx("div",{className:"modal-body",children:l}),m.jsx("div",{className:"modal-footer",style:{padding:"15px",textAlign:"right",borderTop:"1px solid #e5e5e5",backgroundColor:"#f8f9fa"},children:m.jsx("button",{className:"btn btn-success",onClick:u,children:"Save"})})]})})})}):null;Nw.propTypes={show:Ue.bool.isRequired,onClose:Ue.func.isRequired,title:Ue.string.isRequired,children:Ue.node.isRequired,onSave:Ue.func.isRequired};const Lp={"exchange-rates-grid":"_exchange-rates-grid_eqttg_1","header-container":"_header-container_eqttg_5","header-buttons":"_header-buttons_eqttg_11","vertical-align-center":"_vertical-align-center_eqttg_18","error-summary":"_error-summary_eqttg_35"},sO=pr.memo(function({columns:r,rows:i,onAddDiscountRate:l,dateErrors:u=[]}){return m.jsxs("div",{className:Lp["exchange-rates-grid"],children:[m.jsxs("div",{className:Lp["header-container"],children:[m.jsx("h2",{className:Lp["header-title"],children:"Exchange Rates"}),m.jsx("div",{className:Lp["header-buttons"],children:m.jsxs("button",{className:"btn btn-primary",onClick:l,children:[m.jsx("i",{className:"fa fa-plus"})," Add Discount Rate"]})})]}),m.jsx(ou,{columns:r,rows:i,rowClasses:Array(i.length).fill(Lp["vertical-align-center"]),scroll:!1}),u.length>0&&m.jsx("div",{className:Lp["error-summary"],children:m.jsx("ul",{children:u.map((d,v)=>m.jsx("li",{children:d},v))})})]})});sO.propTypes={columns:Ue.array.isRequired,rows:Ue.array.isRequired,onAddDiscountRate:Ue.func.isRequired,dateErrors:Ue.array};const Mr=({children:t,color:r})=>m.jsxs("div",{className:`alert alert-${r} mt-3 alert-dismissible show`,role:"alert",children:[t,m.jsx("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close",children:m.jsx("span",{"aria-hidden":"true",children:"×"})})]}),$H=(t,r)=>{switch(r.type){case"SET_RESOURCE_DATA":return{...t,resourceData:r.payload,loading:!1};case"SET_LOADING":return{...t,loading:r.payload};case"SET_SUCCESS_MESSAGE":return{...t,successMessage:r.payload};case"SET_ERRORS":return{...t,errors:Array.isArray(r.payload)?r.payload:[r.payload],loading:!1};case"UPDATE_RESOURCE_FIELD":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,[r.field]:r.value}}};case"UPDATE_ALLOCATION":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,allocation_types:t.resourceData.resource_details.allocation_types.map(i=>i.allocation_type_id===r.payload.allocationTypeId?{...i,...r.payload.updates}:i)}}};case"UPDATE_BASE_RATE":return console.log("Reducer: Updating base rate to:",r.payload),{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,base_rate:r.payload}}}};case"UPDATE_EXCHANGE_RATE":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:t.resourceData.resource_details.exchange_rates.discount_rates.map(i=>i.id===r.payload.rateId?{...i,...r.payload.changes}:i)}}}};case"ADD_EXCHANGE_RATE":return console.log("Reducer: Adding new discount rate:",r.payload),{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:[...t.resourceData.resource_details.exchange_rates.discount_rates||[],r.payload]}}}};case"DELETE_EXCHANGE_RATE":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:t.resourceData.resource_details.exchange_rates.discount_rates.filter(i=>i.id!==r.payload)}}}};default:return t}},UH=async(t,r)=>await(await fetch(`${r}/resources/${t}.json`)).json(),HH=async(t,r,i,l)=>(console.log("update resource",i),await fetch(`${r}/resources/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resource:i,required_resources:l})})),GH=(t,r)=>{const[i,l]=k.useReducer($H,{resourceData:null,loading:!0,errors:[],successMessage:{message:"",color:""}}),u=k.useCallback(async(v,h)=>{let y=[h];try{const C=await v.json();C.errors?y=C.errors:C.message&&(y=[C.message])}catch(C){console.error("Error parsing error response:",C)}l({type:"SET_ERRORS",payload:y})},[]),d=k.useCallback(async()=>{l(AH(!0));try{const v=await UH(t,r);l(_w(v))}catch(v){console.error("Failed to fetch resource data:",v),l({type:"SET_ERRORS",payload:"Failed to fetch resource data. Please try again later."})}},[t,r]);return k.useEffect(()=>{d()},[d]),{state:i,dispatch:l,handleError:u,fetchData:d}},lO=t=>{var r,i,l;return{allowedActionsOptions:((r=t==null?void 0:t.resource_state_types_available)==null?void 0:r.map(u=>({value:u.resource_state_type_id,label:u.display_resource_state_type,additionalInfo:u.action_types.map(d=>d.display_action_type).join(", ")})))||[],resourceTypesOptions:((i=t==null?void 0:t.resource_types_available)==null?void 0:i.map(u=>({value:u.resource_type_id,label:u.display_resource_type})))||[],unitTypesOptions:((l=t==null?void 0:t.unit_types_available)==null?void 0:l.map(u=>({value:u.unit_type_id,label:u.display_unit_type})))||[],availableResources:(t==null?void 0:t.required_resources_available)||[],availableAllocationTypes:(t==null?void 0:t.unassigned_allocation_types)||[]}},WH=(t,r,i,l,u,d,v)=>{const y=(()=>{var R;if(!t)return[];const w=new Set;return(R=t.allocation_types)==null||R.forEach(j=>{var I;(I=j.required_resources)==null||I.forEach(_=>{w.add(_.resource_name)})}),Array.from(w).sort((j,I)=>j.localeCompare(I)).map(j=>({key:j,name:`Require ${j}`,width:150,type:"checkbox"}))})();return{allocationColumns:[{key:"display_name",name:"Allocation Type",width:200},{key:"allowed_actions",name:"Allowed Actions",width:200,type:"select"},{key:"comment",name:"Descriptive Text",width:200,type:"input",tooltip:"Appears below the resource name and allocations description in the form when making a new request"},...y],allocationRows:t!=null&&t.allocation_types?t.allocation_types.map(w=>{var R;return{display_name:w.display_name,allocation_type_id:w.allocation_type_id,allowed_actions:{options:l,value:((R=w.allowed_action)==null?void 0:R.resource_state_type_id)||"",onChange:j=>u(w.allocation_type_id,j)},comment:{value:w.comment||"",onChange:j=>d(w.allocation_type_id,j)},...Object.fromEntries(y.map(j=>{var I;return[j.key,{checked:((I=w.required_resources)==null?void 0:I.some(_=>_.resource_name===j.key))||!1,onChange:_=>v(w.allocation_type_id,j.key,_,w)}]}))}}):[],requiredResourcesColumns:y}},XH=(t,r,i)=>{const{availableResources:l,availableAllocationTypes:u,allowedActionsOptions:d}=lO(t),[v,h]=k.useState(!1),[y,C]=k.useState(!1),[x,w]=k.useState([]),[R,j]=k.useState(""),I=k.useCallback((B,z)=>{i(YE(B,{allowed_action:{resource_state_type_id:z}}))},[i]),_=k.useCallback((B,z)=>{i(YE(B,{comment:z}))},[i]),A=k.useCallback((B,z,X,Z)=>{const ue=X?[...Z.required_resources||[],{resource_name:z,required_resource_id:t.required_resources_available.find(ie=>ie.resource_name===z).resource_id}]:(Z.required_resources||[]).filter(ie=>ie.resource_name!==z);i(YE(B,{required_resources:ue}))},[t,i]);k.useEffect(()=>{if(v&&r){const B=r.allocation_types.flatMap(z=>z.required_resources||[]).map(z=>z.required_resource_id);w(B)}},[v,r]);const L=k.useCallback((B,z)=>{w(X=>z?[...X,B]:X.filter(Z=>Z!==B))},[]),P=k.useCallback(()=>{const B=r.allocation_types.flatMap(ue=>ue.required_resources||[]).map(ue=>ue.required_resource_id),z=x.filter(ue=>!B.includes(ue)),X=B.filter(ue=>!x.includes(ue)),Z=r.allocation_types.map(ue=>{const ie=ue.required_resources||[],ge=z.map(_e=>{const Ee=l.find(Ce=>Ce.resource_id===_e);return{resource_name:Ee.resource_name,required_resource_id:Ee.resource_id}}),de=ie.filter(_e=>!X.includes(_e.required_resource_id)).concat(ge.filter(_e=>!ie.some(Ee=>Ee.required_resource_id===_e.required_resource_id)));return{...ue,required_resources:de}});i(_w({...t,resource_details:{...r,allocation_types:Z}})),w([]),h(!1)},[x,l,r,t,i]),F=k.useCallback(B=>{const z=B.target.value;j(z)},[]),U=k.useCallback(()=>{var X,Z;if(!R)return;const B=u.find(ue=>ue.allocation_type_id.toString()===R),z=(X=r.allocation_types)==null?void 0:X.some(ue=>ue.allocation_type_id===B.allocation_type_id);if(B&&!z){const ue=(Z=d[0])==null?void 0:Z.value,ie=[...r.allocation_types||[],{allocation_type_id:B.allocation_type_id,display_name:B.display_name,allowed_action:{resource_state_type_id:ue},comment:"",required_resources:[]}];i(_w({...t,resource_details:{...r,allocation_types:ie}})),C(!1)}},[R,u,r,t,i,d]);return{showAddResourceModal:v,setShowAddResourceModal:h,showAddAllocationTypeModal:y,setShowAddAllocationTypeModal:C,selectedNewResource:x,handleSelectNewResource:L,handleSaveResources:P,selectedNewAllocationType:R,handleSelectNewAllocationType:F,handleSaveAllocationType:U,handleAllowedActionChange:I,handleCommentChange:_,handleRequiredResourceChange:A}},YH=(t,r,i,l,u,d)=>k.useCallback(async()=>{var y,C,x;if(!t)return;const v={resource_name:t.resource_name,description:t.description,resource_type_id:t.resource_type_id,unit_type_id:t.unit_type_id,dollar_value:t.dollar_value,allocation_types:t.allocation_types.map(w=>{var R;return{allocation_type_id:w.allocation_type_id,allowed_action:{resource_state_type_id:(R=w.allowed_action)==null?void 0:R.resource_state_type_id},comment:w.comment||""}}),exchange_rates:{base_rate:(y=t.exchange_rates)==null?void 0:y.base_rate,discount_rates:(x=(C=t.exchange_rates)==null?void 0:C.discount_rates)==null?void 0:x.map(w=>({id:w.id,exchange_rate:w.exchange_rate,begin_date:w.begin_date,end_date:w.end_date}))}},h={};t.allocation_types.forEach(w=>{w.required_resources.forEach(R=>{h[R.required_resource_id]||(h[R.required_resource_id]=[]),h[R.required_resource_id].push(w.allocation_type_id)})});try{const w=await HH(r,i,v,h);if(w.ok){const R=await w.json();return d(BI(R.message||"Resource updated successfully!","success")),await l(),!0}else return await u(w,"Failed to update resource"),!1}catch{return d(BI("Error updating resource. Please try again later.","danger")),!1}},[t,r,i,l,u]),ZH=(t,r)=>{const i=k.useCallback(x=>{r({type:"DELETE_EXCHANGE_RATE",payload:x})},[r]),l=[{key:"rate_type",name:"Rate Type",width:150},{key:"rate",name:"Exchange Rate",width:100,type:"input",tooltip:"Exchange rate is the cost in ACCESS Credits of one resource unit. ACCESS Credits / exchange rate = resource units"},{key:"start_date",name:"Start Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"end_date",name:"End Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"actions",name:"",width:80,type:"action",onChange:i}],u=x=>{r({type:"UPDATE_BASE_RATE",payload:x})},d=(x,w)=>{const R={exchange_rate:w},j={};w?j.rate_error="":j.rate_error="Exchange Rate cannot be empty",r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:x,changes:{...R,...j}}})},v=()=>{var R,j;const x=[];return(((j=(R=t==null?void 0:t.resource_details)==null?void 0:R.exchange_rates)==null?void 0:j.discount_rates)||[]).forEach(I=>{I.start_date_error&&x.push(I.start_date_error),I.end_date_error&&x.push(I.end_date_error),I.rate_error&&x.push(I.rate_error)}),x.filter(I=>I&&I!=="")},h=(x,w,R)=>{var X,Z;const j={start_date:"begin_date",end_date:"end_date"},I=ue=>{const ie=new Date(ue);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(ie)},_=(Z=(X=t==null?void 0:t.resource_details)==null?void 0:X.exchange_rates)==null?void 0:Z.discount_rates.find(ue=>ue.id===x);if(!_)return;const A=l.find(ue=>ue.key===w),L={[j[w]]:R},P={};if(!R){P[`${w}_error`]="Date cannot be empty or invalid",r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:x,changes:{...L,...P}}});return}const F=(A==null?void 0:A.minDate)||"1900-01-01",U=(A==null?void 0:A.maxDate)||"2100-12-31",z=w==="end_date"&&_.begin_date?_.begin_date:F;if(R<z?P[`${w}_error`]=`${w.replace("_"," ")} cannot be before ${I(z)}`:R>U?P[`${w}_error`]=`${w.replace("_"," ")} cannot be after ${I(U)}`:P[`${w}_error`]="",w==="start_date"){const ue=_.end_date;ue&&R>ue?P.end_date_error=`End date (${I(ue)}) cannot be before start date (${I(R)})`:P.end_date_error=""}r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:x,changes:{...L,...P}}})},y=()=>{const x=new Date,w=x.toISOString().split("T")[0],R=new Date(x.setUTCDate(x.getUTCDate()+15)).toISOString().split("T")[0],j={id:Date.now(),exchange_rate:"1.0",begin_date:w,end_date:R,is_new:!0};r({type:"ADD_EXCHANGE_RATE",payload:j})};return{exchangeRateColumns:l,exchangeRateRows:(()=>{var I;const x=(I=t==null?void 0:t.resource_details)==null?void 0:I.exchange_rates,w=(x==null?void 0:x.base_rate)??"",R=(x==null?void 0:x.discount_rates)||[],j=new Date().toISOString().split("T")[0];return[{rate_type:"Base Rate",rate:{value:w.toString(),onChange:_=>u(_)}},...R.map(_=>{var F;const A=_.is_new||_.begin_date>j,L=A||_.begin_date==="",P=_.is_new||_.end_date>=j||_.end_date==="";return{rate_type:"Discount",rate:{value:((F=_.exchange_rate)==null?void 0:F.toString())||"",onChange:A?U=>d(_.id,U):null,disabled:!A},start_date:{value:_.begin_date||"",onChange:U=>h(_.id,"start_date",U),error:_.start_date_error,disabled:!L},end_date:{value:_.end_date||"",onChange:U=>h(_.id,"end_date",U),error:_.end_date_error,disabled:!P},actions:{id:_.id}}})]})(),handleAddDiscountRate:y,handleDeleteRate:i,dateErrors:v()}};function uO({resourceId:t,relativeUrlRoot:r,setExternalSubmit:i}){const{state:l,dispatch:u,handleError:d,fetchData:v}=GH(t,r),{resourceData:h,loading:y,errors:C,successMessage:x}=l,w=h==null?void 0:h.resource_details,R=h==null?void 0:h.uses_exchange_rates,{allowedActionsOptions:j,resourceTypesOptions:I,unitTypesOptions:_,availableResources:A,availableAllocationTypes:L}=lO(h),{showAddResourceModal:P,setShowAddResourceModal:F,showAddAllocationTypeModal:U,setShowAddAllocationTypeModal:B,selectedNewResource:z,handleSelectNewResource:X,handleSaveResources:Z,selectedNewAllocationType:ue,handleSelectNewAllocationType:ie,handleSaveAllocationType:ge,handleAllowedActionChange:de,handleCommentChange:_e,handleRequiredResourceChange:Ee}=XH(h,w,u),{exchangeRateColumns:Ce,exchangeRateRows:je,handleAddDiscountRate:Le,dateErrors:re}=ZH(h,u),Ie=YH(w,t,r,v,d,u);k.useEffect(()=>{i&&re.length==0?i(Ie):i(null)},[Ie,i,re]);const{allocationColumns:G,allocationRows:Y}=WH(w,A,z,j,de,_e,Ee);return y?m.jsx(eh,{}):C.length>0?m.jsx("div",{children:C.map((ne,be)=>m.jsx(Mr,{color:"danger",children:ne},be))}):h?m.jsxs("div",{className:"edit-resource",children:[x.message&&m.jsx(Mr,{color:x.color,children:x.message}),m.jsxs("div",{children:[m.jsx("h2",{children:"Edit Resource"}),m.jsx(iO,{resourceDetails:w,resourceTypesOptions:I,unitTypesOptions:_,dispatch:u})]}),m.jsx(oO,{columns:G,rows:Y,onAddRequiredResource:()=>F(!0),onAddAllocationType:()=>B(!0)}),m.jsx(Nw,{show:P,onClose:()=>F(!1),title:"Add Required Resource",onSave:Z,children:m.jsx("div",{children:A.map(ne=>m.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[m.jsx("input",{type:"checkbox",style:{margin:0},checked:z.includes(ne.resource_id),onChange:be=>X(ne.resource_id,be.target.checked)}),ne.resource_name]},ne.resource_id))})}),m.jsx(Nw,{show:U,onClose:()=>B(!1),title:"Add Allocation Type",onSave:ge,children:m.jsx(Rm,{label:"Select Allocation Type",options:[{value:"",label:"Select an allocation type to add",disabled:!0},...L.map(ne=>({value:ne.allocation_type_id,label:ne.display_name}))],value:ue,onChange:ie})}),R&&m.jsx(sO,{columns:Ce,rows:je,onAddDiscountRate:Le,dateErrors:re})]}):m.jsx("div",{children:"No resource data available."})}uO.propTypes={resourceId:Ue.number.isRequired,relativeUrlRoot:Ue.string.isRequired,setExternalSubmit:Ue.func};const ta={error:"error",pending:"pending",success:"success"},b0=t=>t.endDate||t.startDate||(t.actions[0]||{}).entryDate,$I=t=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[t.role]||"04"} ${t.lastName}, ${t.firstName}`,qH=(t,{grantNumber:r,projectManager:i,requestMasterId:l,requests:u,title:d,users:v},h)=>{r=r||l,u.sort((x,w)=>b0(x)>b0(w)?-1:1);const y=u.find(x=>x.timeStatus=="current"),C=y?y.requestId:null;t.projects[r]={currentRequestId:C,grantNumber:r,isManager:i,requestsList:u.map(x=>{const{actions:w,allocationType:R,endDate:j,requestId:I,startDate:_,status:A}=x,L=w.map(({entryDate:P})=>P).sort()[0].split("T")[0];return JH(t,x,{entryDate:L,grantNumber:r}),{allocationType:R,endDate:j,entryDate:L,requestId:I,startDate:_,status:A}}),selectedRequestId:C||u[0].requestId,status:h,tab:"overview",title:d,users:v.map(({email:x,firstName:w,lastName:R,organization:j,resources:I,role:_,username:A})=>{const L=I.filter(z=>z.userAccountState=="active"&&z.unitType!="ACCESS Credits"),P=L.map(z=>z.xrasResourceId),F=L.filter(z=>z.resourceProviderState=="pending-active").map(z=>z.xrasResourceId),U=I.filter(z=>z.userAccountState!="active").map(z=>z.xrasResourceId),B={};for(let z of L)B[z.xrasResourceId]=z.resourceUsername;return{email:x,firstName:w,initialResourceIds:[...P],initialRole:_,lastName:R,organization:j,resourceAccountPendingIds:F,resourceAccountInactiveIds:U,resourceIds:P,resourceUsernames:B,role:_,username:A}}).sort((x,w)=>$I(x)<$I(w)?-1:1),usersNewRowIndex:0,usersStatus:null},t.projects[r].currentUser=t.projects[r].users.find(({username:x})=>x==t.username)},JH=(t,{actions:r,allocationType:i,allowedActions:l,endDate:u,requestId:d,requestType:v,resources:h,startDate:y,status:C,timeStatus:x},{entryDate:w,grantNumber:R})=>{h=h||[];const j={actions:r.map(({actionId:A,actionStatusType:L,actionType:P,allowedOperations:F,approvedStartDate:U,detailAvailable:B,entryDate:z,isRequest:X,requestedStartDate:Z,resources:ue})=>({actionId:A,allowedOperations:F,detailAvailable:B,date:(z||U||Z).split("T")[0],deleteStatus:null,isRequest:X,resources:ue.map(Iw).sort(g0),showDeleteModal:!1,status:L,type:P})),allocationType:i,allowedActions:QH(l),endDate:u,entryDate:w,exchangeActionId:null,exchangeStatus:null,grantNumber:R,isMaximize:i=="Maximize",requestId:d,resources:h.map(Iw).filter(A=>A.isCredit||A.allocated>0).sort(g0),resourcesReason:"",returnedForCorrections:!!r.find(A=>A.returnedForCorrections),returnedForCorrectionsNotes:r.map(A=>A.adminComments).join(","),showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:C,timeStatus:x,type:v,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let I={};for(let A of j.actions)if(["Exchange","Transfer"].includes(A.type)&&["Submitted","Under Review"].includes(A.status)){j.exchangeActionId=A.actionId;for(let L of A.resources)I[L.resourceId]=L;for(let L of j.resources)L.resourceId in I&&(L.requested+=I[L.resourceId].requested,delete I[L.resourceId]);j.resources.push(...Object.values(I).map(L=>({...L,isNew:!0})));break}const _=j.allowedActions.Exchange||j.allowedActions.Transfer;if(_){I={};for(let A of _.resources)I[A.resourceId]=A;for(let A of j.resources)A.resourceId in I&&(A.questions=I[A.resourceId].questions||[])}!j.usesCredits&&h.length&&j.resources.push({allocated:0,decimalPlaces:0,exchangeRates:{base:{type:"base",unitCost:1},current:{type:"base",unitCost:1}},icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",used:0}),t.requests[d]=j},QH=t=>{const r={};for(let{actionType:i,allowedResources:l,opportunityId:u,opportunityName:d}of t){let v={name:i,resources:l.map(Iw).sort(g0),opportunityId:u,opportunityName:d};i in r?(Array.isArray(r[i])||(r[i]=[r[i]]),r[i].push(v)):r[i]=v}return"Transfer"in r&&!("Exchange"in r)&&(r.Exchange=r.Transfer),r},UI=(t,r)=>t.relativeOrder<r.relativeOrder?-1:1,Iw=({allocationState:t,amountAllocated:r,amountApproved:i,amountRequested:l,amountUsed:u,attributeSets:d,baseExchangeRate:v,currentExchangeRate:h,currentExchangeRateEndDate:y,currentExchangeRateType:C,dependentResourceXrasIds:x,displayResourceName:w,endDate:R,exchangeRate:j,organizationId:I,organizationFaviconUrl:_,organizationName:A,resourceRepositoryKey:L,resourceType:P,startDate:F,unitType:U,userGuideUrl:B,xrasResourceId:z})=>{const X=U=="[Yes = 1, No = 0]",Z=U=="ACCESS Credits";return{allocated:zp(RI(r,i)||0,0,"floor"),decimalPlaces:0,endDate:R,exchangeRates:{base:{type:"base",unitCost:X?0:v||j},current:{endDate:y,type:(C||"base").toLowerCase(),unitCost:X?0:h||j}},icon:Z?"credit":P.toLowerCase(),isActive:t=="active",isBoolean:X,isCredit:Z,isFake:!1,isUnderReview:!1,isNew:!1,name:w.trim(),questions:(d||[]).filter(({isActive:ue})=>ue).sort(UI).map(ue=>({attributeSetId:ue.attributeSetId,attributes:ue.attributes.sort(UI).map(ie=>({required:ie.isRequired,resourceAttributeId:ie.resourceAttributeId,label:ie.attributeName})),fieldType:ue.attributeSetRelationType,label:ue.attributeSetName,resourceId:z,values:[]})),resourceProvider:{organizationId:I,name:A,favicon:_},requested:zp(RI(l,r)||0,0,"floor"),requires:x||[],resourceId:z,resourceRepositoryKey:L,startDate:F,type:P,unit:U,used:zp(u||0,0,"ceil"),userGuideUrl:B}},cO=(t,r)=>(t=[...t].sort(),r=[...r].sort(),t.length===r.length&&t.every((i,l)=>i===r[l])),Vb=(t,r)=>{const i=ea(t,r);for(let l of i.actions)if(l.actionId==r.payload.actionId)return l},Ks=(t,r)=>t.projects[r.payload.grantNumber],ea=(t,r)=>t.requests[r.payload.requestId],KH=(t,r)=>Ks(t,r).users.find(({username:i})=>i==r.payload.username),Aw=({allocated:t,isActive:r,isCredit:i})=>t>0&&r&&!i,HI=t=>t.hasChanges=t.isNew||t.role!=t.initialRole||!cO(t.resourceIds,t.initialResourceIds),dO=()=>document.querySelector("meta[name=csrf-token]").content,eG=async t=>{const r=new URLSearchParams({q:t});return(await(await fetch(`${Yt.routes.search_people_path()}?${r}`)).json()).map(({email:l,first_name:u,last_name:d,username:v,organization:h})=>({email:l,firstName:u,lastName:d,username:v,organization:h}))},Kb=Di("api/fetchProjectsList",async(t,{rejectWithValue:r})=>{const i=await fetch(`${Yt.routes.projects_path()}.json`);return i.status==200?{username:t,projectsList:(await i.json()).result}:r({})}),fO=Di("api/fetchProjectDetail",async({grantNumber:t},{rejectWithValue:r})=>r({grantNumber:t})),pO=Di("api/fetchRequestDetail",async({grantNumber:t,requestId:r},{rejectWithValue:i})=>i({grantNumber:t,requestId:r})),e0=Di("api/fetchUsageDetail",async({grantNumber:t,requestId:r,resourceRepositoryKey:i},{rejectWithValue:l})=>{const u=await fetch(`${Yt.routes.usage_detail_path(t,i)}.json`);return u.status==200?{grantNumber:t,requestId:r,resourceRepositoryKey:i,usageDetail:(await u.json()).usage}:l({grantNumber:t,requestId:r,resourceRepositoryKey:i})}),t0=Di("api/deleteAction",async({actionId:t,requestId:r},{getState:i,rejectWithValue:l})=>{const u=i().api.requests[r],d=u.actions.find(C=>C.actionId==t);if(!d||!d.allowedOperations||!d.allowedOperations.includes("Delete"))return l({actionId:t,requestId:r});const v=Yt.routes.request_action_path(u.requestId,d.actionId),h={_method:"delete",authenticity_token:dO()};return(await fetch(v,{body:Object.keys(h).map(C=>`${encodeURIComponent(C)}=${encodeURIComponent(h[C])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:t,requestId:r}:l({actionId:t,requestId:r})}),n0=Di("api/saveResources",async({requestId:t},{getState:r,rejectWithValue:i})=>{const l=r().api.requests[t],u={},d={};for(let{allocated:C,isFake:x,questions:w,requested:R,resourceId:j}of l.resources)if(R!=C&&!x){u[j]={resource_id:j,requested:1,amount:R-C};for(let{attributes:I,values:_,fieldType:A}of w)if(_.length){let L=I[0].resourceAttributeId,P=["drop_down","single_sel","multi_sel"].includes(A),U={resource_attribute_id:A=="multi_sel"?_:P?_[0]:L};P||(U.attribute_value=_[0]),d[L]=U}}const v={authenticity_token:dO(),request_action:{action_type:l.allowedActions.Exchange.name,user_comments:l.resourcesReason,resource_attributes:d},requested_resources:u},h=l.exchangeActionId?Yt.routes.request_action_path(l.requestId,l.exchangeActionId):Yt.routes.request_actions_path(l.requestId),y=await fetch(`${h}.json`,{body:JSON.stringify(v),headers:{"Content-Type":"application/json"},method:l.exchangeActionId?"PUT":"POST"});if(y.status==200){const C=parseInt(y.url.split("/").pop(),10);return{requestId:t,exchangeActionId:C}}return i({requestId:t})}),r0=Di("api/saveUsers",async({grantNumber:t},{getState:r,rejectWithValue:i})=>{const u=r().api.projects[t].users,d=u.filter(C=>!cO(C.resourceIds,C.initialResourceIds)||C.isNew).length==0?[]:u.map(C=>({username:C.username,resources:C.resourceIds})),v=u.filter(C=>C.role!=C.initialRole).map(C=>({username:C.username,role:Sw[C.role],initialRole:Sw[C.initialRole]})),h={grantNumber:t,resourceChanges:d,roleChanges:v,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(Yt.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(h),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:t}:i({grantNumber:t})}),hO=z0({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(t,r)=>{const{resourceId:i}=r.payload,l=ea(t,r),u=l.allowedActions.Exchange;if(!u)return;const d={};for(let y of u.resources)d[y.resourceId]=y;const v=l.resources.map(y=>y.resourceId),h=[i,...d[i].requires||[]].filter(y=>y in d&&!v.includes(y));l.resources.push(...h.map(y=>({...d[y],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(t,r)=>{const i=Ks(t,r),l=t.requests[i.currentRequestId],{user:u}=r.payload;i.users.map(({username:d})=>d).includes(u.username)||(i.users.push({...u,resourceIds:l.resources.filter(Aw).map(d=>d.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),i.usersNewRowIndex=i.users.length-1)},closeUsageDetailModal:(t,r)=>{const i=ea(t,r);i.usageDetail=null,i.usageDetailStatus=null},resetResources:(t,r)=>{const i=ea(t,r);i.resourcesReason="",i.resources=i.resources.filter(l=>l.isCredit||l.allocated).map(l=>({...l,requested:l.allocated}))},resetUsers:(t,r)=>{const i=Ks(t,r);i.users=i.users.filter(({isNew:l})=>!l).map(l=>({...l,resourceIds:[...l.initialResourceIds],role:l.initialRole,hasChanges:!1}))},setRequest:(t,r)=>{const i=Ks(t,r);i&&(i.selectedRequestId=r.payload.requestId,i.tab=="users"&&i.currentRequestId!=i.selectedRequestId&&(i.tab="overview"))},setResourceQuestionValues:(t,r)=>{const{attributeSetId:i,resourceId:l,values:u}=r.payload,d=ea(t,r);for(let v of d.resources)if(v.resourceId==l){for(let h of v.questions)if(h.attributeSetId==i){h.values=u;break}break}},setResourceRequest:(t,r)=>{const{resourceId:i,requested:l}=r.payload,u=ea(t,r);let d,v=0;for(let h of u.resources)h.resourceId==i&&(h.requested=l),h.isCredit?(d=h,v+=h.allocated*h.exchangeRates.base.unitCost):v-=ww(h,"difference");d&&(d.requested=zp(v,d.decimalPlaces,"floor"))},setResourcesReason:(t,r)=>{const i=ea(t,r);i.resourcesReason=r.payload.reason},setTab:(t,r)=>{const i=Ks(t,r);i&&(i.tab=r.payload.tab)},setUserRole:(t,r)=>{const i=KH(t,r);i.role=r.payload.role,HI(i)},toggleActionsModal:(t,r)=>{const i=ea(t,r);i.showActionsModal=!i.showActionsModal},toggleConfirmModal:(t,r)=>{const i=ea(t,r);i.showConfirmModal=!i.showConfirmModal},toggleDeleteModal:(t,r)=>{const i=Vb(t,r);i.showDeleteModal=!i.showDeleteModal},toggleResourcesModal:(t,r)=>{const i=ea(t,r);i.showResourcesModal=!i.showResourcesModal},toggleUsersResources:(t,r)=>{const i=Ks(t,r),l=t.requests[i.currentRequestId],{username:u,resourceId:d,checked:v}=r.payload,h=u?[i.users.find(y=>y.username==u)]:i.users;for(let y of h){if(d){let C=y.resourceIds.indexOf(d);v&&C==-1?y.resourceIds.push(d):!v&&C>=0&&y.resourceIds.splice(C,1)}else y.resourceIds=v?l.resources.filter(Aw).map(({resourceId:C})=>C):[];HI(y)}}},extraReducers:t=>{t.addCase(Kb.pending,r=>{r.projectListLoading=!0}).addCase(Kb.fulfilled,(r,i)=>{i.payload.projectsList.sort((l,u)=>b0(l.requests[0])>b0(u.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(l=>{const{grantNumber:u,requestMasterId:d,requests:v,status:h,title:y}=l,x=l.requests.filter(w=>w.actions.filter(R=>R.returnedForCorrections).length>0).length>0?"Returned for Corrections":h||v&&(v.find(({timeStatus:w})=>w=="current")?"Active":v[0].timeStatus=="past"?"Inactive":v[0].status);return v&&qH(r,l,x),{grantNumber:u||d,status:x,title:y}}),r.projectListLoading=!1}).addCase(Kb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(fO.rejected,(r,i)=>{const{grantNumber:l}=i.payload;r.projects[l]={error:"Failed to load project data."}}).addCase(pO.rejected,(r,i)=>{const{requestId:l}=i.payload;r.requests[l]={error:"Failed to load request data."}}).addCase(e0.pending,(r,i)=>{const l=ea(r,{payload:i.meta.arg});l.usageDetailStatus=ta.pending}).addCase(e0.fulfilled,(r,i)=>{const l=ea(r,i);l.usageDetail=i.payload.usageDetail,l.usageDetailStatus=ta.success}).addCase(e0.rejected,(r,i)=>{const l=ea(r,i);l.usageDetailStatus=ta.error}).addCase(t0.pending,(r,i)=>{const l=Vb(r,{payload:i.meta.arg});l.deleteStatus=ta.pending}).addCase(t0.fulfilled,(r,i)=>{const l=ea(r,i),u=Vb(r,i);u.isRequest?(l.error="This request has been deleted.",u.allowedOperations=[]):l.actions=l.actions.filter(d=>d.actionId!=u.actionId),u.deleteStatus=ta.success,u.showDeleteModal=!1}).addCase(t0.rejected,(r,i)=>{const l=Vb(r,i);l.deleteStatus=ta.error}).addCase(n0.pending,(r,i)=>{const l=ea(r,{payload:i.meta.arg});l.exchangeStatus=ta.pending,l.showResourcesModal=!1}).addCase(n0.fulfilled,(r,i)=>{const l=ea(r,i);l.exchangeActionId=i.payload.exchangeActionId,l.exchangeStatus=ta.success}).addCase(n0.rejected,(r,i)=>{const l=ea(r,i);l.exchangeStatus=ta.error}).addCase(r0.pending,(r,i)=>{const l=Ks(r,{payload:i.meta.arg});l.usersStatus=ta.pending}).addCase(r0.fulfilled,(r,i)=>{const l=Ks(r,i);l.users=l.users.map(u=>({...u,initialResourceIds:[...u.resourceIds],initialRole:u.role,hasChanges:!1,isNew:!1})),l.usersStatus=ta.success}).addCase(r0.rejected,(r,i)=>{const l=Ks(r,i);l.usersStatus=ta.error})}}),tG=t=>t.api.error,nG=t=>t.api.projectsList,rG=t=>t.api.projectListLoading,aG=(t,r)=>Ks(t.api,{payload:{grantNumber:r}}),iG=(t,r)=>ea(t.api,{payload:{requestId:r}}),oG=t=>t.api.username,{addResource:sG,addUser:lG,closeUsageDetailModal:uG,hideAlert:Bq,resetResources:cG,resetUsers:dG,setRequest:fG,setResourceQuestionValues:pG,setResourceRequest:hG,setResourcesReason:vG,setTab:mG,setUserRole:gG,toggleActionsModal:yG,toggleConfirmModal:bG,toggleDeleteModal:CG,toggleResourcesModal:xG,toggleUsersResources:SG}=hO.actions,EG=hO.reducer,wG=t=>{const r=Jn(tG),i=Jn(rG),l=Jn(nG),u=No();return k.useEffect(()=>{u(Kb(t))},[]),{error:r,loading:i,projects:l}},Ji=(t,r)=>{const i=Jn(d=>aG(d,t)),l=Jn(oG),u=No();return k.useEffect(()=>{!i&&!r&&u(fO({grantNumber:t}))},[r]),{project:i,addUser:d=>u(lG({grantNumber:t,user:d})),resetUsers:()=>u(dG({grantNumber:t})),saveUsers:()=>u(r0({grantNumber:t})),setRequest:d=>u(fG({grantNumber:t,requestId:d})),setTab:d=>u(mG({grantNumber:t,tab:d})),setUserRole:(d,v)=>u(gG({grantNumber:t,username:d,role:v})),statuses:ta,toggleUsersResources:(d,v,h)=>u(SG({grantNumber:t,username:v,resourceId:h,checked:d})),username:l}},ri=(t,r)=>{const i=Jn(u=>iG(u,t)),l=No();return k.useEffect(()=>{i||l(pO({grantNumber:r,requestId:t}))},[r,t]),{request:i,addResource:u=>l(sG({requestId:t,resourceId:u})),closeUsageDetailModal:()=>l(uG({requestId:t})),deleteAction:u=>l(t0({actionId:u,requestId:t})),openUsageDetailModal:u=>l(e0({grantNumber:i.grantNumber,requestId:t,resourceRepositoryKey:u})),resetResources:()=>l(cG({requestId:t})),saveResources:()=>l(n0({requestId:t})),setResourceQuestionValues:(u,d,v)=>l(pG({requestId:t,resourceId:u,attributeSetId:d,values:v})),setResourceRequest:(u,d)=>l(hG({requestId:t,resourceId:u,requested:d})),setResourcesReason:u=>l(vG({requestId:t,reason:u})),statuses:ta,toggleActionsModal:()=>l(yG({requestId:t})),toggleConfirmModal:()=>l(bG({requestId:t})),toggleDeleteModal:u=>l(CG({requestId:t,actionId:u})),toggleResourcesModal:()=>l(xG({requestId:t}))}},RG="_project_qqnbz_1",TG="_expand_qqnbz_5",GI={project:RG,expand:TG},_G="_returnedForCorrectionsNotes_jujbd_1",NG={returnedForCorrectionsNotes:_G};function vO(t,r,i){const l=k.useRef(t!==void 0),[u,d]=k.useState(r),v=t!==void 0,h=l.current;return l.current=v,!v&&h&&u!==r&&d(r),[v?t:u,k.useCallback((...y)=>{const[C,...x]=y;let w=i==null?void 0:i(C,...x);return d(C),w},[i])]}var mO={};const C0={prefix:String(Math.round(Math.random()*1e10)),current:0},gO=pr.createContext(C0),IG=pr.createContext(!1);let AG=!!(typeof window<"u"&&window.document&&window.document.createElement),ZE=new WeakMap;function jG(t=!1){let r=k.useContext(gO),i=k.useRef(null);if(i.current===null&&!t){var l,u;let d=(u=pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||u===void 0||(l=u.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(d){let v=ZE.get(d);v==null?ZE.set(d,{id:r.current,state:d.memoizedState}):d.memoizedState!==v.state&&(r.current=v.id,ZE.delete(d))}i.current=++r.current}return i.current}function OG(t){let r=k.useContext(gO);r===C0&&!AG&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let i=jG(!!t),l=r===C0&&mO.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${l}-${i}`}function DG(t){let r=pr.useId(),[i]=k.useState(PG()),l=i||mO.NODE_ENV==="test"?"react-aria":`react-aria${C0.prefix}`;return t||`${l}-${r}`}const yO=typeof pr.useId=="function"?DG:OG;function kG(){return!1}function MG(){return!0}function LG(t){return()=>{}}function PG(){return typeof pr.useSyncExternalStore=="function"?pr.useSyncExternalStore(LG,kG,MG):k.useContext(IG)}const FG=k.createContext(null),th=FG,VG=k.createContext(null),Zd=(t,r=null)=>t!=null?String(t):r||null,au=VG;function BG(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t},[t]),r}function yr(t){const r=BG(t);return k.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const WI=t=>!t||typeof t=="function"?t:r=>{t.current=r};function zG(t,r){const i=WI(t),l=WI(r);return u=>{i&&i(u),l&&l(u)}}function hs(t,r){return k.useMemo(()=>zG(t,r),[t,r])}function CR({children:t,in:r,onExited:i,mountOnEnter:l,unmountOnExit:u}){const d=k.useRef(null),v=k.useRef(r),h=yr(i);k.useEffect(()=>{r?v.current=!0:h(d.current)},[r,h]);const y=hs(d,t.ref),C=k.cloneElement(t,{ref:y});return r?C:u||!v.current&&l?null:C}const $G=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],UG=["activeKey","getControlledId","getControllerId"],HG=["as"];function jw(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function bO(t){let{active:r,eventKey:i,mountOnEnter:l,transition:u,unmountOnExit:d,role:v="tabpanel",onEnter:h,onEntering:y,onEntered:C,onExit:x,onExiting:w,onExited:R}=t,j=jw(t,$G);const I=k.useContext(th);if(!I)return[Object.assign({},j,{role:v}),{eventKey:i,isActive:r,mountOnEnter:l,transition:u,unmountOnExit:d,onEnter:h,onEntering:y,onEntered:C,onExit:x,onExiting:w,onExited:R}];const{activeKey:_,getControlledId:A,getControllerId:L}=I,P=jw(I,UG),F=Zd(i);return[Object.assign({},j,{role:v,id:A(i),"aria-labelledby":L(i)}),{eventKey:i,isActive:r==null&&F!=null?Zd(_)===F:r,transition:u||P.transition,mountOnEnter:l??P.mountOnEnter,unmountOnExit:d??P.unmountOnExit,onEnter:h,onEntering:y,onEntered:C,onExit:x,onExiting:w,onExited:R}]}const CO=k.forwardRef((t,r)=>{let{as:i="div"}=t,l=jw(t,HG);const[u,{isActive:d,onEnter:v,onEntering:h,onEntered:y,onExit:C,onExiting:x,onExited:w,mountOnEnter:R,unmountOnExit:j,transition:I=CR}]=bO(l);return m.jsx(th.Provider,{value:null,children:m.jsx(au.Provider,{value:null,children:m.jsx(I,{in:d,onEnter:v,onEntering:h,onEntered:y,onExit:C,onExiting:x,onExited:w,mountOnEnter:R,unmountOnExit:j,children:m.jsx(i,Object.assign({},u,{ref:r,hidden:!d,"aria-hidden":!d}))})})})});CO.displayName="TabPanel";const xO=t=>{const{id:r,generateChildId:i,onSelect:l,activeKey:u,defaultActiveKey:d,transition:v,mountOnEnter:h,unmountOnExit:y,children:C}=t,[x,w]=vO(u,d,l),R=yO(r),j=k.useMemo(()=>i||((_,A)=>R?`${R}-${A}-${_}`:null),[R,i]),I=k.useMemo(()=>({onSelect:w,activeKey:x,transition:v,mountOnEnter:h||!1,unmountOnExit:y||!1,getControlledId:_=>j(_,"tabpane"),getControllerId:_=>j(_,"tab")}),[w,x,v,h,y,j]);return m.jsx(th.Provider,{value:I,children:m.jsx(au.Provider,{value:w||null,children:C})})};xO.Panel=CO;const SO=xO;var EO={exports:{}};/*!
|
|
289
|
+
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Ae=ot(fe,tt,Ne,Oe,ce+"."+tt,l);if(Ae)return Ae}return null}return L(ne)}function Ce(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(Ce);if(Y===null||y(Y))return!0;var ne=R(Y);if(ne){var be=ne.call(Y),we;if(ne!==Y.entries){for(;!(we=be.next()).done;)if(!Ce(we.value))return!1}else for(;!(we=be.next()).done;){var Ne=we.value;if(Ne&&!Ce(Ne[1]))return!1}}else return!1;return!0;default:return!1}}function je(Y,ne){return Y==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function Le(Y){var ne=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":je(ne,Y)?"symbol":ne}function re(Y){if(typeof Y>"u"||Y===null)return""+Y;var ne=Le(Y);if(ne==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return ne}function Ie(Y){var ne=re(Y);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function G(Y){return!Y.constructor||!Y.constructor.name?j:Y.constructor.name}return I.checkPropTypes=d,I.resetWarningCache=d.resetWarningCache,I.PropTypes=I,I},WE}var XE,VI;function RH(){if(VI)return XE;VI=1;var t=yR();function r(){}function i(){}return i.resetWarningCache=r,XE=function(){function l(v,h,y,C,x,w){if(w!==t){var R=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 R.name="Invariant Violation",R}}l.isRequired=l;function u(){return l}var d={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:u,element:l,elementType:l,instanceOf:u,node:l,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:i,resetWarningCache:r};return d.PropTypes=d,d},XE}var TH={};if(TH.NODE_ENV!=="production"){var _H=gR(),NH=!0;Tw.exports=wH()(_H.isElement,NH)}else Tw.exports=RH()();var IH=Tw.exports;const Ue=Qp(IH);function eh(){return m.jsx("div",{className:"spinner-border",role:"status",children:m.jsx("span",{className:"visually-hidden",children:"Loading..."})})}const Rm=({label:t,options:r,value:i,onChange:l,...u})=>m.jsxs("div",{className:"form-group",children:[t&&m.jsx("label",{children:t}),m.jsx("select",{className:"form-control",value:i,onChange:l,...u,children:r.map(d=>m.jsxs("option",{value:d.value,children:[d.label,d.additionalInfo&&` - ${d.additionalInfo}`]},d.value))})]});Rm.propTypes={label:Ue.string,options:Ue.arrayOf(Ue.shape({value:Ue.oneOfType([Ue.string,Ue.number]).isRequired,label:Ue.string.isRequired,additionalInfo:Ue.string})).isRequired,value:Ue.oneOfType([Ue.string,Ue.number]),onChange:Ue.func.isRequired};function gm({label:t,type:r="text",value:i,onChange:l,disabled:u=!1,infoText:d="",style:v,inputClassName:h,inputAddon:y}){return m.jsxs(m.Fragment,{children:[t&&m.jsx("label",{children:t}),d&&m.jsx("small",{className:"form-text help-block",children:d}),r==="textarea"?m.jsx("textarea",{className:`form-control ${h||""}`,value:i,onChange:l,disabled:u,rows:"6"}):y?m.jsxs("div",{className:"input-prepend",children:[m.jsx("span",{className:"add-on",children:y}),m.jsx("input",{type:r,className:`form-control ${h||""}`,style:v,value:i,onChange:l,disabled:u})]}):m.jsx("input",{type:r,className:`form-control ${h||""}`,style:v,value:i,onChange:l,disabled:u})]})}const _w=t=>({type:"SET_RESOURCE_DATA",payload:t}),AH=t=>({type:"SET_LOADING",payload:t}),BI=(t,r)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:t,color:r}}),om=(t,r)=>({type:"UPDATE_RESOURCE_FIELD",field:t,value:r}),YE=(t,r)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:t,updates:r}}),iO=pr.memo(function({resourceDetails:r,resourceTypesOptions:i,unitTypesOptions:l,dispatch:u}){return m.jsxs(m.Fragment,{children:[m.jsx(gm,{label:"Resource Name",value:r.resource_name,onChange:d=>u(om("resource_name",d.target.value)),inputClassName:"span8"}),m.jsx(gm,{label:"Resource ID",value:r.resource_id,disabled:!0,inputClassName:"span8"}),m.jsx(gm,{label:"Dollar Value",value:r.dollar_value,onChange:d=>u(om("dollar_value",d.target.value)),type:"number",inputAddon:"$",inputClassName:"span4"}),m.jsx(gm,{label:"Allocations Description",type:"textarea",value:r.description,infoText:"Appears below the resource name in the form when making a new request, as well as under the header Allocations Description in resource catalogs",onChange:d=>u(om("description",d.target.value)),inputClassName:"span8"}),m.jsx(Rm,{label:"Resource Type",options:i,value:r.resource_type_id,onChange:d=>u(om("resource_type_id",d.target.value)),className:"span8"}),m.jsx(Rm,{label:"Unit Type",options:l,value:r.unit_type_id,onChange:d=>u(om("unit_type_id",d.target.value)),className:"span8"})]})});iO.propTypes={resourceDetails:Ue.object.isRequired,resourceTypesOptions:Ue.array.isRequired,unitTypesOptions:Ue.array.isRequired,dispatch:Ue.func.isRequired};const jH="_grid_afccc_1",OH="_important_afccc_30",DH="_input_afccc_34",kH="_edited_afccc_38",MH="_disabled_afccc_46",LH="_scroll_afccc_59",Hd={grid:jH,important:OH,input:DH,edited:kH,disabled:MH,scroll:LH};function PH({column:t,row:r,style:i={}}){const l=t.format?t.format(r[t.key],r):r[t.key],u=["cell"];return t.class&&u.push(t.class),t.rowClass&&u.push(t.rowClass(r)),m.jsx("td",{className:u.join(" "),style:i,children:l})}const bR=({title:t,placement:r,children:i})=>(k.useEffect(()=>($('[data-toggle="tooltip"]').tooltip(),()=>{$('[data-toggle="tooltip"]').tooltip("destroy")}),[]),m.jsx("span",{"data-toggle":"tooltip","data-placement":r,title:t,style:{margin:"10px"},children:i}));bR.propTypes={title:Ue.string.isRequired,placement:Ue.oneOf(["top","bottom","left","right"]),children:Ue.node.isRequired};bR.defaultProps={placement:"top"};const FH="_datepicker_19wnv_1",VH="_error_19wnv_1",zI={datepicker:FH,error:VH},BH=({value:t,onChange:r,disabled:i=!1,style:l,className:u="",minDate:d="",maxDate:v="",error:h=""})=>{const y=h;return m.jsx("div",{className:`w-full ${u}`,children:m.jsx("input",{type:"date",style:l,className:`${zI.datepicker} ${y?zI.error:""}`,value:t||"",onChange:C=>r(C.target.value),disabled:i,min:d||"1900-01-01",max:v||"2100-12-31"})})},sm=(t,r,i)=>{if(r.onChange){r.onChange(i,t);return}const l=t[r.key];l!=null&&l.onChange&&l.onChange(i)},zH={text:PH,select:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx(Rm,{label:"",options:r[t.key].options,value:r[t.key].value,onChange:l=>sm(r,t,l.target.value),style:{width:"100%",margin:0}})}),input:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx(gm,{label:"",type:"text",disabled:r[t.key].disabled,value:r[t.key].value,onChange:l=>sm(r,t,l.target.value),style:{width:"92%",margin:0}})}),checkbox:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx("input",{type:"checkbox",checked:r[t.key].checked,onChange:l=>sm(r,t,l.target.checked)})}),date:({column:t,row:r,style:i})=>{const l=r[t.key];return!(l!=null&&l.value)&&typeof l!="object"?m.jsx("td",{style:i,children:l||""}):m.jsx("td",{style:i,children:m.jsx(BH,{value:l.value,onChange:u=>sm(r,t,u),disabled:l.disabled,style:{width:"92%",margin:0},minDate:t.minDate,maxDate:t.maxDate,error:l.error})})},action:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:r.rate_type==="Discount"&&m.jsx("button",{className:"btn btn-link text-danger",onClick:()=>{var l;return sm(r,t,(l=r[t.key])==null?void 0:l.id)},children:m.jsx("i",{className:"fa fa-trash"})})})};function ou({columns:t,rows:r,classes:i,frozenColumns:l=0,minWidth:u,rowClasses:d=[],scroll:v=!0,scrollBehavior:h="smooth",scrollRowIndex:y=0}){const C=k.useRef();k.useLayoutEffect(()=>{if(!v||!C.current)return;const _=C.current.querySelector(`tbody tr:nth-child(${y+1})`);_&&_.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,y,h]);const x=[0];for(let _=0;_<l;_++)x[_+1]=x[_]+(t[_].width||100);const w=(_,A)=>_<l?{position:"sticky",left:`${x[_]}px`,minWidth:`${t[_].width||100}px`,width:`${t[_].width||100}px`,zIndex:A||1}:{},R=t.map((_,A)=>m.jsxs("th",{className:_.headerClass||_.class||"",style:w(A,100),children:[_.formatHeader?_.formatHeader(_.name,_):_.name,_.tooltip&&m.jsx(bR,{title:_.tooltip,placement:"bottom",children:m.jsx("i",{className:"icon-info-sign"})})]},_.key)),j=r.map((_,A)=>{const L=t.map((P,F)=>{const U=zH[P.type||"text"];return m.jsx(U,{column:P,row:_,style:w(F)},P.key)});return m.jsx("tr",{className:d[A]||"",children:L},A)}),I={};return u&&(I.minWidth=u),m.jsx("div",{className:`${Hd.grid} ${v?Hd.scroll:""} ${i||""}`,ref:C,children:m.jsxs("table",{className:"table table-bordered",style:I,children:[m.jsx("thead",{children:m.jsx("tr",{children:R})}),m.jsx("tbody",{children:j})]})})}const lm={"header-container":"_header-container_cdj2i_1","header-buttons":"_header-buttons_cdj2i_8","allocation-types-grid":"_allocation-types-grid_cdj2i_13","vertical-align-center":"_vertical-align-center_cdj2i_18"},oO=pr.memo(function({columns:r,rows:i,onAddRequiredResource:l,onAddAllocationType:u}){return m.jsxs("div",{className:lm["allocation-types-grid"],children:[m.jsxs("div",{className:lm["header-container"],children:[m.jsx("h2",{className:lm["header-title"],children:"Allocation Types"}),m.jsxs("div",{className:lm["header-buttons"],children:[m.jsxs("button",{className:"btn btn-primary",onClick:u,children:[m.jsx("i",{className:"fa fa-plus"})," Add Allocation Type"]}),m.jsxs("button",{className:"btn btn-primary",onClick:l,children:[m.jsx("i",{className:"fa fa-plus"})," Add Required Resource"]})]})]}),m.jsx(ou,{columns:r,rows:i,rowClasses:Array(i.length).fill(lm["vertical-align-center"]),scroll:!1})]})});oO.propTypes={columns:Ue.array.isRequired,rows:Ue.array.isRequired,onAddRequiredResource:Ue.func.isRequired,onAddAllocationType:Ue.func.isRequired};const Nw=({show:t,onClose:r,title:i,children:l,onSave:u})=>t?m.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",alignItems:"center",zIndex:1050},children:m.jsx("div",{className:"modal fade in",tabIndex:"-1",role:"dialog","aria-hidden":"true",style:{width:"90%",maxWidth:"600px",maxHeight:"90%",overflow:"auto",backgroundColor:"white",position:"relative"},children:m.jsx("div",{className:"modal-dialog",role:"document",children:m.jsxs("div",{className:"modal-content",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("button",{type:"button",className:"close","data-dismiss":"modal",onClick:r,"aria-label":"Close",children:m.jsx("h3",{"aria-hidden":"true",className:"text-danger",children:"×"})}),m.jsx("h3",{className:"modal-title",children:i})]}),m.jsx("div",{className:"modal-body",children:l}),m.jsx("div",{className:"modal-footer",style:{padding:"15px",textAlign:"right",borderTop:"1px solid #e5e5e5",backgroundColor:"#f8f9fa"},children:m.jsx("button",{className:"btn btn-success",onClick:u,children:"Save"})})]})})})}):null;Nw.propTypes={show:Ue.bool.isRequired,onClose:Ue.func.isRequired,title:Ue.string.isRequired,children:Ue.node.isRequired,onSave:Ue.func.isRequired};const Lp={"exchange-rates-grid":"_exchange-rates-grid_eqttg_1","header-container":"_header-container_eqttg_5","header-buttons":"_header-buttons_eqttg_11","vertical-align-center":"_vertical-align-center_eqttg_18","error-summary":"_error-summary_eqttg_35"},sO=pr.memo(function({columns:r,rows:i,onAddDiscountRate:l,dateErrors:u=[]}){return m.jsxs("div",{className:Lp["exchange-rates-grid"],children:[m.jsxs("div",{className:Lp["header-container"],children:[m.jsx("h2",{className:Lp["header-title"],children:"Exchange Rates"}),m.jsx("div",{className:Lp["header-buttons"],children:m.jsxs("button",{className:"btn btn-primary",onClick:l,children:[m.jsx("i",{className:"fa fa-plus"})," Add Discount Rate"]})})]}),m.jsx(ou,{columns:r,rows:i,rowClasses:Array(i.length).fill(Lp["vertical-align-center"]),scroll:!1}),u.length>0&&m.jsx("div",{className:Lp["error-summary"],children:m.jsx("ul",{children:u.map((d,v)=>m.jsx("li",{children:d},v))})})]})});sO.propTypes={columns:Ue.array.isRequired,rows:Ue.array.isRequired,onAddDiscountRate:Ue.func.isRequired,dateErrors:Ue.array};const Mr=({children:t,color:r})=>m.jsxs("div",{className:`alert alert-${r} mt-3 alert-dismissible show`,role:"alert",children:[t,m.jsx("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close",children:m.jsx("span",{"aria-hidden":"true",children:"×"})})]}),$H=(t,r)=>{switch(r.type){case"SET_RESOURCE_DATA":return{...t,resourceData:r.payload,loading:!1};case"SET_LOADING":return{...t,loading:r.payload};case"SET_SUCCESS_MESSAGE":return{...t,successMessage:r.payload};case"SET_ERRORS":return{...t,errors:Array.isArray(r.payload)?r.payload:[r.payload],loading:!1};case"UPDATE_RESOURCE_FIELD":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,[r.field]:r.value}}};case"UPDATE_ALLOCATION":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,allocation_types:t.resourceData.resource_details.allocation_types.map(i=>i.allocation_type_id===r.payload.allocationTypeId?{...i,...r.payload.updates}:i)}}};case"UPDATE_BASE_RATE":return console.log("Reducer: Updating base rate to:",r.payload),{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,base_rate:r.payload}}}};case"UPDATE_EXCHANGE_RATE":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:t.resourceData.resource_details.exchange_rates.discount_rates.map(i=>i.id===r.payload.rateId?{...i,...r.payload.changes}:i)}}}};case"ADD_EXCHANGE_RATE":return console.log("Reducer: Adding new discount rate:",r.payload),{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:[...t.resourceData.resource_details.exchange_rates.discount_rates||[],r.payload]}}}};case"DELETE_EXCHANGE_RATE":return{...t,resourceData:{...t.resourceData,resource_details:{...t.resourceData.resource_details,exchange_rates:{...t.resourceData.resource_details.exchange_rates,discount_rates:t.resourceData.resource_details.exchange_rates.discount_rates.filter(i=>i.id!==r.payload)}}}};default:return t}},UH=async(t,r)=>await(await fetch(`${r}/resources/${t}.json`)).json(),HH=async(t,r,i,l)=>(console.log("update resource",i),await fetch(`${r}/resources/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({resource:i,required_resources:l})})),GH=(t,r)=>{const[i,l]=k.useReducer($H,{resourceData:null,loading:!0,errors:[],successMessage:{message:"",color:""}}),u=k.useCallback(async(v,h)=>{let y=[h];try{const C=await v.json();C.errors?y=C.errors:C.message&&(y=[C.message])}catch(C){console.error("Error parsing error response:",C)}l({type:"SET_ERRORS",payload:y})},[]),d=k.useCallback(async()=>{l(AH(!0));try{const v=await UH(t,r);l(_w(v))}catch(v){console.error("Failed to fetch resource data:",v),l({type:"SET_ERRORS",payload:"Failed to fetch resource data. Please try again later."})}},[t,r]);return k.useEffect(()=>{d()},[d]),{state:i,dispatch:l,handleError:u,fetchData:d}},lO=t=>{var r,i,l;return{allowedActionsOptions:((r=t==null?void 0:t.resource_state_types_available)==null?void 0:r.map(u=>({value:u.resource_state_type_id,label:u.display_resource_state_type,additionalInfo:u.action_types.map(d=>d.display_action_type).join(", ")})))||[],resourceTypesOptions:((i=t==null?void 0:t.resource_types_available)==null?void 0:i.map(u=>({value:u.resource_type_id,label:u.display_resource_type})))||[],unitTypesOptions:((l=t==null?void 0:t.unit_types_available)==null?void 0:l.map(u=>({value:u.unit_type_id,label:u.display_unit_type})))||[],availableResources:(t==null?void 0:t.required_resources_available)||[],availableAllocationTypes:(t==null?void 0:t.unassigned_allocation_types)||[]}},WH=(t,r,i,l,u,d,v)=>{const y=(()=>{var R;if(!t)return[];const w=new Set;return(R=t.allocation_types)==null||R.forEach(j=>{var I;(I=j.required_resources)==null||I.forEach(_=>{w.add(_.resource_name)})}),Array.from(w).sort((j,I)=>j.localeCompare(I)).map(j=>({key:j,name:`Require ${j}`,width:150,type:"checkbox"}))})();return{allocationColumns:[{key:"display_name",name:"Allocation Type",width:200},{key:"allowed_actions",name:"Allowed Actions",width:200,type:"select"},{key:"comment",name:"Descriptive Text",width:200,type:"input",tooltip:"Appears below the resource name and allocations description in the form when making a new request"},...y],allocationRows:t!=null&&t.allocation_types?t.allocation_types.map(w=>{var R;return{display_name:w.display_name,allocation_type_id:w.allocation_type_id,allowed_actions:{options:l,value:((R=w.allowed_action)==null?void 0:R.resource_state_type_id)||"",onChange:j=>u(w.allocation_type_id,j)},comment:{value:w.comment||"",onChange:j=>d(w.allocation_type_id,j)},...Object.fromEntries(y.map(j=>{var I;return[j.key,{checked:((I=w.required_resources)==null?void 0:I.some(_=>_.resource_name===j.key))||!1,onChange:_=>v(w.allocation_type_id,j.key,_,w)}]}))}}):[],requiredResourcesColumns:y}},XH=(t,r,i)=>{const{availableResources:l,availableAllocationTypes:u,allowedActionsOptions:d}=lO(t),[v,h]=k.useState(!1),[y,C]=k.useState(!1),[x,w]=k.useState([]),[R,j]=k.useState(""),I=k.useCallback((B,z)=>{i(YE(B,{allowed_action:{resource_state_type_id:z}}))},[i]),_=k.useCallback((B,z)=>{i(YE(B,{comment:z}))},[i]),A=k.useCallback((B,z,X,Z)=>{const ue=X?[...Z.required_resources||[],{resource_name:z,required_resource_id:t.required_resources_available.find(ie=>ie.resource_name===z).resource_id}]:(Z.required_resources||[]).filter(ie=>ie.resource_name!==z);i(YE(B,{required_resources:ue}))},[t,i]);k.useEffect(()=>{if(v&&r){const B=r.allocation_types.flatMap(z=>z.required_resources||[]).map(z=>z.required_resource_id);w(B)}},[v,r]);const L=k.useCallback((B,z)=>{w(X=>z?[...X,B]:X.filter(Z=>Z!==B))},[]),P=k.useCallback(()=>{const B=r.allocation_types.flatMap(ue=>ue.required_resources||[]).map(ue=>ue.required_resource_id),z=x.filter(ue=>!B.includes(ue)),X=B.filter(ue=>!x.includes(ue)),Z=r.allocation_types.map(ue=>{const ie=ue.required_resources||[],ge=z.map(_e=>{const Ee=l.find(Ce=>Ce.resource_id===_e);return{resource_name:Ee.resource_name,required_resource_id:Ee.resource_id}}),de=ie.filter(_e=>!X.includes(_e.required_resource_id)).concat(ge.filter(_e=>!ie.some(Ee=>Ee.required_resource_id===_e.required_resource_id)));return{...ue,required_resources:de}});i(_w({...t,resource_details:{...r,allocation_types:Z}})),w([]),h(!1)},[x,l,r,t,i]),F=k.useCallback(B=>{const z=B.target.value;j(z)},[]),U=k.useCallback(()=>{var X,Z;if(!R)return;const B=u.find(ue=>ue.allocation_type_id.toString()===R),z=(X=r.allocation_types)==null?void 0:X.some(ue=>ue.allocation_type_id===B.allocation_type_id);if(B&&!z){const ue=(Z=d[0])==null?void 0:Z.value,ie=[...r.allocation_types||[],{allocation_type_id:B.allocation_type_id,display_name:B.display_name,allowed_action:{resource_state_type_id:ue},comment:"",required_resources:[]}];i(_w({...t,resource_details:{...r,allocation_types:ie}})),C(!1)}},[R,u,r,t,i,d]);return{showAddResourceModal:v,setShowAddResourceModal:h,showAddAllocationTypeModal:y,setShowAddAllocationTypeModal:C,selectedNewResource:x,handleSelectNewResource:L,handleSaveResources:P,selectedNewAllocationType:R,handleSelectNewAllocationType:F,handleSaveAllocationType:U,handleAllowedActionChange:I,handleCommentChange:_,handleRequiredResourceChange:A}},YH=(t,r,i,l,u,d)=>k.useCallback(async()=>{var y,C,x;if(!t)return;const v={resource_name:t.resource_name,description:t.description,resource_type_id:t.resource_type_id,unit_type_id:t.unit_type_id,dollar_value:t.dollar_value,allocation_types:t.allocation_types.map(w=>{var R;return{allocation_type_id:w.allocation_type_id,allowed_action:{resource_state_type_id:(R=w.allowed_action)==null?void 0:R.resource_state_type_id},comment:w.comment||""}}),exchange_rates:{base_rate:(y=t.exchange_rates)==null?void 0:y.base_rate,discount_rates:(x=(C=t.exchange_rates)==null?void 0:C.discount_rates)==null?void 0:x.map(w=>({id:w.id,exchange_rate:w.exchange_rate,begin_date:w.begin_date,end_date:w.end_date}))}},h={};t.allocation_types.forEach(w=>{w.required_resources.forEach(R=>{h[R.required_resource_id]||(h[R.required_resource_id]=[]),h[R.required_resource_id].push(w.allocation_type_id)})});try{const w=await HH(r,i,v,h);if(w.ok){const R=await w.json();return d(BI(R.message||"Resource updated successfully!","success")),await l(),!0}else return await u(w,"Failed to update resource"),!1}catch{return d(BI("Error updating resource. Please try again later.","danger")),!1}},[t,r,i,l,u]),ZH=(t,r)=>{const i=k.useCallback(x=>{r({type:"DELETE_EXCHANGE_RATE",payload:x})},[r]),l=[{key:"rate_type",name:"Rate Type",width:150},{key:"rate",name:"Exchange Rate",width:100,type:"input",tooltip:"Exchange rate is the cost in ACCESS Credits of one resource unit. ACCESS Credits / exchange rate = resource units"},{key:"start_date",name:"Start Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"end_date",name:"End Date",width:150,type:"date",minDate:new Date().toISOString().split("T")[0]},{key:"actions",name:"",width:80,type:"action",onChange:i}],u=x=>{r({type:"UPDATE_BASE_RATE",payload:x})},d=(x,w)=>{const R={exchange_rate:w},j={};w?j.rate_error="":j.rate_error="Exchange Rate cannot be empty",r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:x,changes:{...R,...j}}})},v=()=>{var R,j;const x=[];return(((j=(R=t==null?void 0:t.resource_details)==null?void 0:R.exchange_rates)==null?void 0:j.discount_rates)||[]).forEach(I=>{I.start_date_error&&x.push(I.start_date_error),I.end_date_error&&x.push(I.end_date_error),I.rate_error&&x.push(I.rate_error)}),x.filter(I=>I&&I!=="")},h=(x,w,R)=>{var X,Z;const j={start_date:"begin_date",end_date:"end_date"},I=ue=>{const ie=new Date(ue);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(ie)},_=(Z=(X=t==null?void 0:t.resource_details)==null?void 0:X.exchange_rates)==null?void 0:Z.discount_rates.find(ue=>ue.id===x);if(!_)return;const A=l.find(ue=>ue.key===w),L={[j[w]]:R},P={};if(!R){P[`${w}_error`]="Date cannot be empty or invalid",r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:x,changes:{...L,...P}}});return}const F=(A==null?void 0:A.minDate)||"1900-01-01",U=(A==null?void 0:A.maxDate)||"2100-12-31",z=w==="end_date"&&_.begin_date?_.begin_date:F;if(R<z?P[`${w}_error`]=`${w.replace("_"," ")} cannot be before ${I(z)}`:R>U?P[`${w}_error`]=`${w.replace("_"," ")} cannot be after ${I(U)}`:P[`${w}_error`]="",w==="start_date"){const ue=_.end_date;ue&&R>ue?P.end_date_error=`End date (${I(ue)}) cannot be before start date (${I(R)})`:P.end_date_error=""}r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:x,changes:{...L,...P}}})},y=()=>{const x=new Date,w=x.toISOString().split("T")[0],R=new Date(x.setUTCDate(x.getUTCDate()+15)).toISOString().split("T")[0],j={id:Date.now(),exchange_rate:"1.0",begin_date:w,end_date:R,is_new:!0};r({type:"ADD_EXCHANGE_RATE",payload:j})};return{exchangeRateColumns:l,exchangeRateRows:(()=>{var I;const x=(I=t==null?void 0:t.resource_details)==null?void 0:I.exchange_rates,w=(x==null?void 0:x.base_rate)??"",R=(x==null?void 0:x.discount_rates)||[],j=new Date().toISOString().split("T")[0];return[{rate_type:"Base Rate",rate:{value:w.toString(),onChange:_=>u(_)}},...R.map(_=>{var F;const A=_.is_new||_.begin_date>j,L=A||_.begin_date==="",P=_.is_new||_.end_date>=j||_.end_date==="";return{rate_type:"Discount",rate:{value:((F=_.exchange_rate)==null?void 0:F.toString())||"",onChange:A?U=>d(_.id,U):null,disabled:!A},start_date:{value:_.begin_date||"",onChange:U=>h(_.id,"start_date",U),error:_.start_date_error,disabled:!L},end_date:{value:_.end_date||"",onChange:U=>h(_.id,"end_date",U),error:_.end_date_error,disabled:!P},actions:{id:_.id}}})]})(),handleAddDiscountRate:y,handleDeleteRate:i,dateErrors:v()}};function uO({resourceId:t,relativeUrlRoot:r,setExternalSubmit:i}){const{state:l,dispatch:u,handleError:d,fetchData:v}=GH(t,r),{resourceData:h,loading:y,errors:C,successMessage:x}=l,w=h==null?void 0:h.resource_details,R=h==null?void 0:h.uses_exchange_rates,{allowedActionsOptions:j,resourceTypesOptions:I,unitTypesOptions:_,availableResources:A,availableAllocationTypes:L}=lO(h),{showAddResourceModal:P,setShowAddResourceModal:F,showAddAllocationTypeModal:U,setShowAddAllocationTypeModal:B,selectedNewResource:z,handleSelectNewResource:X,handleSaveResources:Z,selectedNewAllocationType:ue,handleSelectNewAllocationType:ie,handleSaveAllocationType:ge,handleAllowedActionChange:de,handleCommentChange:_e,handleRequiredResourceChange:Ee}=XH(h,w,u),{exchangeRateColumns:Ce,exchangeRateRows:je,handleAddDiscountRate:Le,dateErrors:re}=ZH(h,u),Ie=YH(w,t,r,v,d,u);k.useEffect(()=>{i&&re.length==0?i(Ie):i(null)},[Ie,i,re]);const{allocationColumns:G,allocationRows:Y}=WH(w,A,z,j,de,_e,Ee);return y?m.jsx(eh,{}):C.length>0?m.jsx("div",{children:C.map((ne,be)=>m.jsx(Mr,{color:"danger",children:ne},be))}):h?m.jsxs("div",{className:"edit-resource",children:[x.message&&m.jsx(Mr,{color:x.color,children:x.message}),m.jsxs("div",{children:[m.jsx("h2",{children:"Edit Resource"}),m.jsx(iO,{resourceDetails:w,resourceTypesOptions:I,unitTypesOptions:_,dispatch:u})]}),m.jsx(oO,{columns:G,rows:Y,onAddRequiredResource:()=>F(!0),onAddAllocationType:()=>B(!0)}),m.jsx(Nw,{show:P,onClose:()=>F(!1),title:"Add Required Resource",onSave:Z,children:m.jsx("div",{children:A.map(ne=>m.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[m.jsx("input",{type:"checkbox",style:{margin:0},checked:z.includes(ne.resource_id),onChange:be=>X(ne.resource_id,be.target.checked)}),ne.resource_name]},ne.resource_id))})}),m.jsx(Nw,{show:U,onClose:()=>B(!1),title:"Add Allocation Type",onSave:ge,children:m.jsx(Rm,{label:"Select Allocation Type",options:[{value:"",label:"Select an allocation type to add",disabled:!0},...L.map(ne=>({value:ne.allocation_type_id,label:ne.display_name}))],value:ue,onChange:ie})}),R&&m.jsx(sO,{columns:Ce,rows:je,onAddDiscountRate:Le,dateErrors:re})]}):m.jsx("div",{children:"No resource data available."})}uO.propTypes={resourceId:Ue.number.isRequired,relativeUrlRoot:Ue.string.isRequired,setExternalSubmit:Ue.func};const ta={error:"error",pending:"pending",success:"success"},b0=t=>t.endDate||t.startDate||(t.actions[0]||{}).entryDate,$I=t=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[t.role]||"04"} ${t.lastName}, ${t.firstName}`,qH=(t,{grantNumber:r,projectManager:i,requestMasterId:l,requests:u,title:d,users:v},h)=>{r=r||l,u.sort((x,w)=>b0(x)>b0(w)?-1:1);const y=u.find(x=>x.timeStatus=="current"),C=y?y.requestId:null;t.projects[r]={currentRequestId:C,grantNumber:r,isManager:i,requestsList:u.map(x=>{const{actions:w,allocationType:R,endDate:j,requestId:I,startDate:_,status:A}=x,L=w.map(({entryDate:P})=>P).sort()[0].split("T")[0];return JH(t,x,{entryDate:L,grantNumber:r}),{allocationType:R,endDate:j,entryDate:L,requestId:I,startDate:_,status:A}}),selectedRequestId:C||u[0].requestId,status:h,tab:"overview",title:d,users:v.map(({email:x,firstName:w,lastName:R,organization:j,resources:I,role:_,username:A})=>{const L=I.filter(z=>z.userAccountState=="active"&&z.unitType!="ACCESS Credits"),P=L.map(z=>z.xrasResourceId),F=L.filter(z=>z.resourceProviderState=="pending-active").map(z=>z.xrasResourceId),U=I.filter(z=>z.userAccountState!="active").map(z=>z.xrasResourceId),B={};for(let z of L)B[z.xrasResourceId]=z.resourceUsername;return{email:x,firstName:w,initialResourceIds:[...P],initialRole:_,lastName:R,organization:j,resourceAccountPendingIds:F,resourceAccountInactiveIds:U,resourceIds:P,resourceUsernames:B,role:_,username:A}}).sort((x,w)=>$I(x)<$I(w)?-1:1),usersNewRowIndex:0,usersStatus:null},t.projects[r].currentUser=t.projects[r].users.find(({username:x})=>x==t.username)},JH=(t,{actions:r,allocationType:i,allowedActions:l,endDate:u,requestId:d,requestType:v,resources:h,startDate:y,status:C,timeStatus:x},{entryDate:w,grantNumber:R})=>{h=h||[];const j={actions:r.map(({actionId:A,actionStatusType:L,actionType:P,allowedOperations:F,approvedStartDate:U,detailAvailable:B,entryDate:z,isRequest:X,requestedStartDate:Z,resources:ue})=>({actionId:A,allowedOperations:F,detailAvailable:B,date:(z||U||Z).split("T")[0],deleteStatus:null,isRequest:X,resources:ue.map(Iw).sort(g0),showDeleteModal:!1,status:L,type:P})),allocationType:i,allowedActions:QH(l),endDate:u,entryDate:w,exchangeActionId:null,exchangeStatus:null,grantNumber:R,isMaximize:i=="Maximize",requestId:d,resources:h.map(Iw).filter(A=>A.isCredit||A.allocated>0).sort(g0),resourcesReason:"",returnedForCorrections:!!r.find(A=>A.returnedForCorrections),returnedForCorrectionsNotes:r.map(A=>A.adminComments).join(","),showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:C,timeStatus:x,type:v,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let I={};for(let A of j.actions)if(["Exchange","Transfer"].includes(A.type)&&["Submitted","Under Review"].includes(A.status)){j.exchangeActionId=A.actionId;for(let L of A.resources)I[L.resourceId]=L;for(let L of j.resources)L.resourceId in I&&(L.requested+=I[L.resourceId].requested,delete I[L.resourceId]);j.resources.push(...Object.values(I).map(L=>({...L,isNew:!0})));break}const _=j.allowedActions.Exchange||j.allowedActions.Transfer;if(_){I={};for(let A of _.resources)I[A.resourceId]=A;for(let A of j.resources)A.resourceId in I&&(A.questions=I[A.resourceId].questions||[])}!j.usesCredits&&h.length&&j.resources.push({allocated:0,decimalPlaces:0,exchangeRates:{base:{type:"base",unitCost:1},current:{type:"base",unitCost:1}},icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",used:0}),t.requests[d]=j},QH=t=>{const r={};for(let{actionType:i,allowedResources:l,opportunityId:u,opportunityName:d}of t){let v={name:i,resources:l.map(Iw).sort(g0),opportunityId:u,opportunityName:d};i in r?(Array.isArray(r[i])||(r[i]=[r[i]]),r[i].push(v)):r[i]=v}return"Transfer"in r&&!("Exchange"in r)&&(r.Exchange=r.Transfer),r},UI=(t,r)=>t.relativeOrder<r.relativeOrder?-1:1,Iw=({allocationState:t,amountAllocated:r,amountApproved:i,amountRequested:l,amountUsed:u,attributeSets:d,baseExchangeRate:v,currentExchangeRate:h,currentExchangeRateEndDate:y,currentExchangeRateType:C,dependentResourceXrasIds:x,displayResourceName:w,endDate:R,exchangeRate:j,organizationId:I,organizationFaviconUrl:_,organizationName:A,resourceRepositoryKey:L,resourceType:P,startDate:F,unitType:U,userGuideUrl:B,xrasResourceId:z})=>{const X=U=="[Yes = 1, No = 0]",Z=U=="ACCESS Credits";return{allocated:zp(RI(r,i)||0,0,"floor"),decimalPlaces:0,endDate:R,exchangeRates:{base:{type:"base",unitCost:X?0:v||j},current:{endDate:y,type:(C||"base").toLowerCase(),unitCost:X?0:h||j}},icon:Z?"credit":P.toLowerCase(),isActive:t=="active",isBoolean:X,isCredit:Z,isFake:!1,isUnderReview:!1,isNew:!1,name:w.trim(),questions:(d||[]).filter(({isActive:ue})=>ue).sort(UI).map(ue=>({attributeSetId:ue.attributeSetId,attributes:ue.attributes.sort(UI).map(ie=>({required:ie.isRequired,resourceAttributeId:ie.resourceAttributeId,label:ie.attributeName})),fieldType:ue.attributeSetRelationType,label:ue.attributeSetName,resourceId:z,values:[]})),resourceProvider:{organizationId:I,name:A,favicon:_},requested:zp(RI(l,r)||0,0,"floor"),requires:x||[],resourceId:z,resourceRepositoryKey:L,startDate:F,type:P,unit:U,used:zp(u||0,0,"ceil"),userGuideUrl:B}},cO=(t,r)=>(t=[...t].sort(),r=[...r].sort(),t.length===r.length&&t.every((i,l)=>i===r[l])),Vb=(t,r)=>{const i=ea(t,r);for(let l of i.actions)if(l.actionId==r.payload.actionId)return l},Ks=(t,r)=>t.projects[r.payload.grantNumber],ea=(t,r)=>t.requests[r.payload.requestId],KH=(t,r)=>Ks(t,r).users.find(({username:i})=>i==r.payload.username),Aw=({allocated:t,isActive:r,isCredit:i})=>t>0&&r&&!i,HI=t=>t.hasChanges=t.isNew||t.role!=t.initialRole||!cO(t.resourceIds,t.initialResourceIds),dO=()=>document.querySelector("meta[name=csrf-token]").content,eG=async t=>{const r=new URLSearchParams({q:t});return(await(await fetch(`${Jt.routes.search_people_path()}?${r}`)).json()).map(({email:l,first_name:u,last_name:d,username:v,organization:h})=>({email:l,firstName:u,lastName:d,username:v,organization:h}))},Kb=Di("api/fetchProjectsList",async(t,{rejectWithValue:r})=>{const i=await fetch(`${Jt.routes.projects_path()}.json`);return i.status==200?{username:t,projectsList:(await i.json()).result}:r({})}),fO=Di("api/fetchProjectDetail",async({grantNumber:t},{rejectWithValue:r})=>r({grantNumber:t})),pO=Di("api/fetchRequestDetail",async({grantNumber:t,requestId:r},{rejectWithValue:i})=>i({grantNumber:t,requestId:r})),e0=Di("api/fetchUsageDetail",async({grantNumber:t,requestId:r,resourceRepositoryKey:i},{rejectWithValue:l})=>{const u=await fetch(`${Jt.routes.usage_detail_path(t,i)}.json`);return u.status==200?{grantNumber:t,requestId:r,resourceRepositoryKey:i,usageDetail:(await u.json()).usage}:l({grantNumber:t,requestId:r,resourceRepositoryKey:i})}),t0=Di("api/deleteAction",async({actionId:t,requestId:r},{getState:i,rejectWithValue:l})=>{const u=i().api.requests[r],d=u.actions.find(C=>C.actionId==t);if(!d||!d.allowedOperations||!d.allowedOperations.includes("Delete"))return l({actionId:t,requestId:r});const v=Jt.routes.request_action_path(u.requestId,d.actionId),h={_method:"delete",authenticity_token:dO()};return(await fetch(v,{body:Object.keys(h).map(C=>`${encodeURIComponent(C)}=${encodeURIComponent(h[C])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:t,requestId:r}:l({actionId:t,requestId:r})}),n0=Di("api/saveResources",async({requestId:t},{getState:r,rejectWithValue:i})=>{const l=r().api.requests[t],u={},d={};for(let{allocated:C,isFake:x,questions:w,requested:R,resourceId:j}of l.resources)if(R!=C&&!x){u[j]={resource_id:j,requested:1,amount:R-C};for(let{attributes:I,values:_,fieldType:A}of w)if(_.length){let L=I[0].resourceAttributeId,P=["drop_down","single_sel","multi_sel"].includes(A),U={resource_attribute_id:A=="multi_sel"?_:P?_[0]:L};P||(U.attribute_value=_[0]),d[L]=U}}const v={authenticity_token:dO(),request_action:{action_type:l.allowedActions.Exchange.name,user_comments:l.resourcesReason,resource_attributes:d},requested_resources:u},h=l.exchangeActionId?Jt.routes.request_action_path(l.requestId,l.exchangeActionId):Jt.routes.request_actions_path(l.requestId),y=await fetch(`${h}.json`,{body:JSON.stringify(v),headers:{"Content-Type":"application/json"},method:l.exchangeActionId?"PUT":"POST"});if(y.status==200){const C=parseInt(y.url.split("/").pop(),10);return{requestId:t,exchangeActionId:C}}return i({requestId:t})}),r0=Di("api/saveUsers",async({grantNumber:t},{getState:r,rejectWithValue:i})=>{const u=r().api.projects[t].users,d=u.filter(C=>!cO(C.resourceIds,C.initialResourceIds)||C.isNew).length==0?[]:u.map(C=>({username:C.username,resources:C.resourceIds})),v=u.filter(C=>C.role!=C.initialRole).map(C=>({username:C.username,role:Sw[C.role],initialRole:Sw[C.initialRole]})),h={grantNumber:t,resourceChanges:d,roleChanges:v,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(Jt.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(h),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:t}:i({grantNumber:t})}),hO=z0({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(t,r)=>{const{resourceId:i}=r.payload,l=ea(t,r),u=l.allowedActions.Exchange;if(!u)return;const d={};for(let y of u.resources)d[y.resourceId]=y;const v=l.resources.map(y=>y.resourceId),h=[i,...d[i].requires||[]].filter(y=>y in d&&!v.includes(y));l.resources.push(...h.map(y=>({...d[y],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(t,r)=>{const i=Ks(t,r),l=t.requests[i.currentRequestId],{user:u}=r.payload;i.users.map(({username:d})=>d).includes(u.username)||(i.users.push({...u,resourceIds:l.resources.filter(Aw).map(d=>d.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),i.usersNewRowIndex=i.users.length-1)},closeUsageDetailModal:(t,r)=>{const i=ea(t,r);i.usageDetail=null,i.usageDetailStatus=null},resetResources:(t,r)=>{const i=ea(t,r);i.resourcesReason="",i.resources=i.resources.filter(l=>l.isCredit||l.allocated).map(l=>({...l,requested:l.allocated}))},resetUsers:(t,r)=>{const i=Ks(t,r);i.users=i.users.filter(({isNew:l})=>!l).map(l=>({...l,resourceIds:[...l.initialResourceIds],role:l.initialRole,hasChanges:!1}))},setRequest:(t,r)=>{const i=Ks(t,r);i&&(i.selectedRequestId=r.payload.requestId,i.tab=="users"&&i.currentRequestId!=i.selectedRequestId&&(i.tab="overview"))},setResourceQuestionValues:(t,r)=>{const{attributeSetId:i,resourceId:l,values:u}=r.payload,d=ea(t,r);for(let v of d.resources)if(v.resourceId==l){for(let h of v.questions)if(h.attributeSetId==i){h.values=u;break}break}},setResourceRequest:(t,r)=>{const{resourceId:i,requested:l}=r.payload,u=ea(t,r);let d,v=0;for(let h of u.resources)h.resourceId==i&&(h.requested=l),h.isCredit?(d=h,v+=h.allocated*h.exchangeRates.base.unitCost):v-=ww(h,"difference");d&&(d.requested=zp(v,d.decimalPlaces,"floor"))},setResourcesReason:(t,r)=>{const i=ea(t,r);i.resourcesReason=r.payload.reason},setTab:(t,r)=>{const i=Ks(t,r);i&&(i.tab=r.payload.tab)},setUserRole:(t,r)=>{const i=KH(t,r);i.role=r.payload.role,HI(i)},toggleActionsModal:(t,r)=>{const i=ea(t,r);i.showActionsModal=!i.showActionsModal},toggleConfirmModal:(t,r)=>{const i=ea(t,r);i.showConfirmModal=!i.showConfirmModal},toggleDeleteModal:(t,r)=>{const i=Vb(t,r);i.showDeleteModal=!i.showDeleteModal},toggleResourcesModal:(t,r)=>{const i=ea(t,r);i.showResourcesModal=!i.showResourcesModal},toggleUsersResources:(t,r)=>{const i=Ks(t,r),l=t.requests[i.currentRequestId],{username:u,resourceId:d,checked:v}=r.payload,h=u?[i.users.find(y=>y.username==u)]:i.users;for(let y of h){if(d){let C=y.resourceIds.indexOf(d);v&&C==-1?y.resourceIds.push(d):!v&&C>=0&&y.resourceIds.splice(C,1)}else y.resourceIds=v?l.resources.filter(Aw).map(({resourceId:C})=>C):[];HI(y)}}},extraReducers:t=>{t.addCase(Kb.pending,r=>{r.projectListLoading=!0}).addCase(Kb.fulfilled,(r,i)=>{i.payload.projectsList.sort((l,u)=>b0(l.requests[0])>b0(u.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(l=>{const{grantNumber:u,requestMasterId:d,requests:v,status:h,title:y}=l,x=l.requests.filter(w=>w.actions.filter(R=>R.returnedForCorrections).length>0).length>0?"Returned for Corrections":h||v&&(v.find(({timeStatus:w})=>w=="current")?"Active":v[0].timeStatus=="past"?"Inactive":v[0].status);return v&&qH(r,l,x),{grantNumber:u||d,status:x,title:y}}),r.projectListLoading=!1}).addCase(Kb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(fO.rejected,(r,i)=>{const{grantNumber:l}=i.payload;r.projects[l]={error:"Failed to load project data."}}).addCase(pO.rejected,(r,i)=>{const{requestId:l}=i.payload;r.requests[l]={error:"Failed to load request data."}}).addCase(e0.pending,(r,i)=>{const l=ea(r,{payload:i.meta.arg});l.usageDetailStatus=ta.pending}).addCase(e0.fulfilled,(r,i)=>{const l=ea(r,i);l.usageDetail=i.payload.usageDetail,l.usageDetailStatus=ta.success}).addCase(e0.rejected,(r,i)=>{const l=ea(r,i);l.usageDetailStatus=ta.error}).addCase(t0.pending,(r,i)=>{const l=Vb(r,{payload:i.meta.arg});l.deleteStatus=ta.pending}).addCase(t0.fulfilled,(r,i)=>{const l=ea(r,i),u=Vb(r,i);u.isRequest?(l.error="This request has been deleted.",u.allowedOperations=[]):l.actions=l.actions.filter(d=>d.actionId!=u.actionId),u.deleteStatus=ta.success,u.showDeleteModal=!1}).addCase(t0.rejected,(r,i)=>{const l=Vb(r,i);l.deleteStatus=ta.error}).addCase(n0.pending,(r,i)=>{const l=ea(r,{payload:i.meta.arg});l.exchangeStatus=ta.pending,l.showResourcesModal=!1}).addCase(n0.fulfilled,(r,i)=>{const l=ea(r,i);l.exchangeActionId=i.payload.exchangeActionId,l.exchangeStatus=ta.success}).addCase(n0.rejected,(r,i)=>{const l=ea(r,i);l.exchangeStatus=ta.error}).addCase(r0.pending,(r,i)=>{const l=Ks(r,{payload:i.meta.arg});l.usersStatus=ta.pending}).addCase(r0.fulfilled,(r,i)=>{const l=Ks(r,i);l.users=l.users.map(u=>({...u,initialResourceIds:[...u.resourceIds],initialRole:u.role,hasChanges:!1,isNew:!1})),l.usersStatus=ta.success}).addCase(r0.rejected,(r,i)=>{const l=Ks(r,i);l.usersStatus=ta.error})}}),tG=t=>t.api.error,nG=t=>t.api.projectsList,rG=t=>t.api.projectListLoading,aG=(t,r)=>Ks(t.api,{payload:{grantNumber:r}}),iG=(t,r)=>ea(t.api,{payload:{requestId:r}}),oG=t=>t.api.username,{addResource:sG,addUser:lG,closeUsageDetailModal:uG,hideAlert:Bq,resetResources:cG,resetUsers:dG,setRequest:fG,setResourceQuestionValues:pG,setResourceRequest:hG,setResourcesReason:vG,setTab:mG,setUserRole:gG,toggleActionsModal:yG,toggleConfirmModal:bG,toggleDeleteModal:CG,toggleResourcesModal:xG,toggleUsersResources:SG}=hO.actions,EG=hO.reducer,wG=t=>{const r=Jn(tG),i=Jn(rG),l=Jn(nG),u=No();return k.useEffect(()=>{u(Kb(t))},[]),{error:r,loading:i,projects:l}},Ji=(t,r)=>{const i=Jn(d=>aG(d,t)),l=Jn(oG),u=No();return k.useEffect(()=>{!i&&!r&&u(fO({grantNumber:t}))},[r]),{project:i,addUser:d=>u(lG({grantNumber:t,user:d})),resetUsers:()=>u(dG({grantNumber:t})),saveUsers:()=>u(r0({grantNumber:t})),setRequest:d=>u(fG({grantNumber:t,requestId:d})),setTab:d=>u(mG({grantNumber:t,tab:d})),setUserRole:(d,v)=>u(gG({grantNumber:t,username:d,role:v})),statuses:ta,toggleUsersResources:(d,v,h)=>u(SG({grantNumber:t,username:v,resourceId:h,checked:d})),username:l}},ri=(t,r)=>{const i=Jn(u=>iG(u,t)),l=No();return k.useEffect(()=>{i||l(pO({grantNumber:r,requestId:t}))},[r,t]),{request:i,addResource:u=>l(sG({requestId:t,resourceId:u})),closeUsageDetailModal:()=>l(uG({requestId:t})),deleteAction:u=>l(t0({actionId:u,requestId:t})),openUsageDetailModal:u=>l(e0({grantNumber:i.grantNumber,requestId:t,resourceRepositoryKey:u})),resetResources:()=>l(cG({requestId:t})),saveResources:()=>l(n0({requestId:t})),setResourceQuestionValues:(u,d,v)=>l(pG({requestId:t,resourceId:u,attributeSetId:d,values:v})),setResourceRequest:(u,d)=>l(hG({requestId:t,resourceId:u,requested:d})),setResourcesReason:u=>l(vG({requestId:t,reason:u})),statuses:ta,toggleActionsModal:()=>l(yG({requestId:t})),toggleConfirmModal:()=>l(bG({requestId:t})),toggleDeleteModal:u=>l(CG({requestId:t,actionId:u})),toggleResourcesModal:()=>l(xG({requestId:t}))}},RG="_project_qqnbz_1",TG="_expand_qqnbz_5",GI={project:RG,expand:TG},_G="_returnedForCorrectionsNotes_jujbd_1",NG={returnedForCorrectionsNotes:_G};function vO(t,r,i){const l=k.useRef(t!==void 0),[u,d]=k.useState(r),v=t!==void 0,h=l.current;return l.current=v,!v&&h&&u!==r&&d(r),[v?t:u,k.useCallback((...y)=>{const[C,...x]=y;let w=i==null?void 0:i(C,...x);return d(C),w},[i])]}var mO={};const C0={prefix:String(Math.round(Math.random()*1e10)),current:0},gO=pr.createContext(C0),IG=pr.createContext(!1);let AG=!!(typeof window<"u"&&window.document&&window.document.createElement),ZE=new WeakMap;function jG(t=!1){let r=k.useContext(gO),i=k.useRef(null);if(i.current===null&&!t){var l,u;let d=(u=pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||u===void 0||(l=u.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(d){let v=ZE.get(d);v==null?ZE.set(d,{id:r.current,state:d.memoizedState}):d.memoizedState!==v.state&&(r.current=v.id,ZE.delete(d))}i.current=++r.current}return i.current}function OG(t){let r=k.useContext(gO);r===C0&&!AG&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let i=jG(!!t),l=r===C0&&mO.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${l}-${i}`}function DG(t){let r=pr.useId(),[i]=k.useState(PG()),l=i||mO.NODE_ENV==="test"?"react-aria":`react-aria${C0.prefix}`;return t||`${l}-${r}`}const yO=typeof pr.useId=="function"?DG:OG;function kG(){return!1}function MG(){return!0}function LG(t){return()=>{}}function PG(){return typeof pr.useSyncExternalStore=="function"?pr.useSyncExternalStore(LG,kG,MG):k.useContext(IG)}const FG=k.createContext(null),th=FG,VG=k.createContext(null),Zd=(t,r=null)=>t!=null?String(t):r||null,au=VG;function BG(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t},[t]),r}function yr(t){const r=BG(t);return k.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const WI=t=>!t||typeof t=="function"?t:r=>{t.current=r};function zG(t,r){const i=WI(t),l=WI(r);return u=>{i&&i(u),l&&l(u)}}function hs(t,r){return k.useMemo(()=>zG(t,r),[t,r])}function CR({children:t,in:r,onExited:i,mountOnEnter:l,unmountOnExit:u}){const d=k.useRef(null),v=k.useRef(r),h=yr(i);k.useEffect(()=>{r?v.current=!0:h(d.current)},[r,h]);const y=hs(d,t.ref),C=k.cloneElement(t,{ref:y});return r?C:u||!v.current&&l?null:C}const $G=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],UG=["activeKey","getControlledId","getControllerId"],HG=["as"];function jw(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function bO(t){let{active:r,eventKey:i,mountOnEnter:l,transition:u,unmountOnExit:d,role:v="tabpanel",onEnter:h,onEntering:y,onEntered:C,onExit:x,onExiting:w,onExited:R}=t,j=jw(t,$G);const I=k.useContext(th);if(!I)return[Object.assign({},j,{role:v}),{eventKey:i,isActive:r,mountOnEnter:l,transition:u,unmountOnExit:d,onEnter:h,onEntering:y,onEntered:C,onExit:x,onExiting:w,onExited:R}];const{activeKey:_,getControlledId:A,getControllerId:L}=I,P=jw(I,UG),F=Zd(i);return[Object.assign({},j,{role:v,id:A(i),"aria-labelledby":L(i)}),{eventKey:i,isActive:r==null&&F!=null?Zd(_)===F:r,transition:u||P.transition,mountOnEnter:l??P.mountOnEnter,unmountOnExit:d??P.unmountOnExit,onEnter:h,onEntering:y,onEntered:C,onExit:x,onExiting:w,onExited:R}]}const CO=k.forwardRef((t,r)=>{let{as:i="div"}=t,l=jw(t,HG);const[u,{isActive:d,onEnter:v,onEntering:h,onEntered:y,onExit:C,onExiting:x,onExited:w,mountOnEnter:R,unmountOnExit:j,transition:I=CR}]=bO(l);return m.jsx(th.Provider,{value:null,children:m.jsx(au.Provider,{value:null,children:m.jsx(I,{in:d,onEnter:v,onEntering:h,onEntered:y,onExit:C,onExiting:x,onExited:w,mountOnEnter:R,unmountOnExit:j,children:m.jsx(i,Object.assign({},u,{ref:r,hidden:!d,"aria-hidden":!d}))})})})});CO.displayName="TabPanel";const xO=t=>{const{id:r,generateChildId:i,onSelect:l,activeKey:u,defaultActiveKey:d,transition:v,mountOnEnter:h,unmountOnExit:y,children:C}=t,[x,w]=vO(u,d,l),R=yO(r),j=k.useMemo(()=>i||((_,A)=>R?`${R}-${A}-${_}`:null),[R,i]),I=k.useMemo(()=>({onSelect:w,activeKey:x,transition:v,mountOnEnter:h||!1,unmountOnExit:y||!1,getControlledId:_=>j(_,"tabpane"),getControllerId:_=>j(_,"tab")}),[w,x,v,h,y,j]);return m.jsx(th.Provider,{value:I,children:m.jsx(au.Provider,{value:w||null,children:C})})};xO.Panel=CO;const SO=xO;var EO={exports:{}};/*!
|
|
290
290
|
Copyright (c) 2018 Jed Watson.
|
|
291
291
|
Licensed under the MIT License (MIT), see
|
|
292
292
|
http://jedwatson.github.io/classnames
|
|
293
|
-
*/(function(t){(function(){var r={}.hasOwnProperty;function i(){for(var d="",v=0;v<arguments.length;v++){var h=arguments[v];h&&(d=u(d,l(h)))}return d}function l(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return i.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var v="";for(var h in d)r.call(d,h)&&d[h]&&(v=u(v,h));return v}function u(d,v){return v?d?d+" "+v:d+v:d}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(EO);var GG=EO.exports;const Qt=Qp(GG);function xR(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function x0(t,r){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},x0(t,r)}function WG(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,x0(t,r)}const XI={disabled:!1};var wO={},XG=wO.NODE_ENV!=="production"?Ue.oneOfType([Ue.number,Ue.shape({enter:Ue.number,exit:Ue.number,appear:Ue.number}).isRequired]):null;wO.NODE_ENV!=="production"&&Ue.oneOfType([Ue.string,Ue.shape({enter:Ue.string,exit:Ue.string,active:Ue.string}),Ue.shape({enter:Ue.string,enterDone:Ue.string,enterActive:Ue.string,exit:Ue.string,exitDone:Ue.string,exitActive:Ue.string})]);const RO=pr.createContext(null);var YG=function(r){return r.scrollTop},ZG={},ym="unmounted",vc="exited",Jl="entering",mc="entered",S0="exiting",su=function(t){WG(r,t);function r(l,u){var d;d=t.call(this,l,u)||this;var v=u,h=v&&!v.isMounting?l.enter:l.appear,y;return d.appearStatus=null,l.in?h?(y=vc,d.appearStatus=Jl):y=mc:l.unmountOnExit||l.mountOnEnter?y=ym:y=vc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(u,d){var v=u.in;return v&&d.status===ym?{status:vc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(u){var d=null;if(u!==this.props){var v=this.state.status;this.props.in?v!==Jl&&v!==mc&&(d=Jl):(v===Jl||v===mc)&&(d=S0)}this.updateStatus(!1,d)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var u=this.props.timeout,d,v,h;return d=v=h=u,u!=null&&typeof u!="number"&&(d=u.exit,v=u.enter,h=u.appear!==void 0?u.appear:v),{exit:d,enter:v,appear:h}},i.updateStatus=function(u,d){if(u===void 0&&(u=!1),d!==null)if(this.cancelNextCallback(),d===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var v=this.props.nodeRef?this.props.nodeRef.current:zd.findDOMNode(this);v&&YG(v)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vc&&this.setState({status:ym})},i.performEnter=function(u){var d=this,v=this.props.enter,h=this.context?this.context.isMounting:u,y=this.props.nodeRef?[h]:[zd.findDOMNode(this),h],C=y[0],x=y[1],w=this.getTimeouts(),R=h?w.appear:w.enter;if(!u&&!v||XI.disabled){this.safeSetState({status:mc},function(){d.props.onEntered(C)});return}this.props.onEnter(C,x),this.safeSetState({status:Jl},function(){d.props.onEntering(C,x),d.onTransitionEnd(R,function(){d.safeSetState({status:mc},function(){d.props.onEntered(C,x)})})})},i.performExit=function(){var u=this,d=this.props.exit,v=this.getTimeouts(),h=this.props.nodeRef?void 0:zd.findDOMNode(this);if(!d||XI.disabled){this.safeSetState({status:vc},function(){u.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:S0},function(){u.props.onExiting(h),u.onTransitionEnd(v.exit,function(){u.safeSetState({status:vc},function(){u.props.onExited(h)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(u,d){d=this.setNextCallback(d),this.setState(u,d)},i.setNextCallback=function(u){var d=this,v=!0;return this.nextCallback=function(h){v&&(v=!1,d.nextCallback=null,u(h))},this.nextCallback.cancel=function(){v=!1},this.nextCallback},i.onTransitionEnd=function(u,d){this.setNextCallback(d);var v=this.props.nodeRef?this.props.nodeRef.current:zd.findDOMNode(this),h=u==null&&!this.props.addEndListener;if(!v||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[v,this.nextCallback],C=y[0],x=y[1];this.props.addEndListener(C,x)}u!=null&&setTimeout(this.nextCallback,u)},i.render=function(){var u=this.state.status;if(u===ym)return null;var d=this.props,v=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var h=xR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(RO.Provider,{value:null},typeof v=="function"?v(u,h):pr.cloneElement(pr.Children.only(v),h))},r}(pr.Component);su.contextType=RO;su.propTypes=ZG.NODE_ENV!=="production"?{nodeRef:Ue.shape({current:typeof Element>"u"?Ue.any:function(t,r,i,l,u,d){var v=t[r];return Ue.instanceOf(v&&"ownerDocument"in v?v.ownerDocument.defaultView.Element:Element)(t,r,i,l,u,d)}}),children:Ue.oneOfType([Ue.func.isRequired,Ue.element.isRequired]).isRequired,in:Ue.bool,mountOnEnter:Ue.bool,unmountOnExit:Ue.bool,appear:Ue.bool,enter:Ue.bool,exit:Ue.bool,timeout:function(r){var i=XG;r.addEndListener||(i=i.isRequired);for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];return i.apply(void 0,[r].concat(u))},addEndListener:Ue.func,onEnter:Ue.func,onEntering:Ue.func,onEntered:Ue.func,onExit:Ue.func,onExiting:Ue.func,onExited:Ue.func}:{};function Pp(){}su.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pp,onEntering:Pp,onEntered:Pp,onExit:Pp,onExiting:Pp,onExited:Pp};su.UNMOUNTED=ym;su.EXITED=vc;su.ENTERING=Jl;su.ENTERED=mc;su.EXITING=S0;const qG=su;function nh(t){return t&&t.ownerDocument||document}function JG(t){var r=nh(t);return r&&r.defaultView||window}function QG(t,r){return JG(t).getComputedStyle(t,r)}var KG=/([A-Z])/g;function e3(t){return t.replace(KG,"-$1").toLowerCase()}var t3=/^ms-/;function Bb(t){return e3(t).replace(t3,"-ms-")}var n3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function r3(t){return!!(t&&n3.test(t))}function tu(t,r){var i="",l="";if(typeof r=="string")return t.style.getPropertyValue(Bb(r))||QG(t).getPropertyValue(Bb(r));Object.keys(r).forEach(function(u){var d=r[u];!d&&d!==0?t.style.removeProperty(Bb(u)):r3(u)?l+=u+"("+d+") ":i+=Bb(u)+": "+d+";"}),l&&(i+="transform: "+l+";"),t.style.cssText+=";"+i}const rh=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ow=!1,Dw=!1;try{var qE={get passive(){return Ow=!0},get once(){return Dw=Ow=!0}};rh&&(window.addEventListener("test",qE,qE),window.removeEventListener("test",qE,!0))}catch{}function SR(t,r,i,l){if(l&&typeof l!="boolean"&&!Dw){var u=l.once,d=l.capture,v=i;!Dw&&u&&(v=i.__once||function h(y){this.removeEventListener(r,h,d),i.call(this,y)},i.__once=v),t.addEventListener(r,v,Ow?l:d)}t.addEventListener(r,i,l)}function kw(t,r,i,l){var u=l&&typeof l!="boolean"?l.capture:l;t.removeEventListener(r,i,u),i.__once&&t.removeEventListener(r,i.__once,u)}function Kl(t,r,i,l){return SR(t,r,i,l),function(){kw(t,r,i,l)}}function a3(t,r,i,l){if(i===void 0&&(i=!1),l===void 0&&(l=!0),t){var u=document.createEvent("HTMLEvents");u.initEvent(r,i,l),t.dispatchEvent(u)}}function i3(t){var r=tu(t,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function o3(t,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||a3(t,"transitionend",!0)},r+i),d=Kl(t,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),d()}}function TO(t,r,i,l){i==null&&(i=i3(t)||0);var u=o3(t,i,l),d=Kl(t,"transitionend",r);return function(){u(),d()}}function YI(t,r){const i=tu(t,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function _O(t,r){const i=YI(t,"transitionDuration"),l=YI(t,"transitionDelay"),u=TO(t,d=>{d.target===t&&(u(),r(d))},i+l)}function NO(t){t.offsetHeight}function E0(t){return t&&"setState"in t?zd.findDOMNode(t):t??null}const s3=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:d,addEndListener:v,children:h,childRef:y,...C},x)=>{const w=k.useRef(null),R=hs(w,y),j=z=>{R(E0(z))},I=z=>X=>{z&&w.current&&z(w.current,X)},_=k.useCallback(I(t),[t]),A=k.useCallback(I(r),[r]),L=k.useCallback(I(i),[i]),P=k.useCallback(I(l),[l]),F=k.useCallback(I(u),[u]),U=k.useCallback(I(d),[d]),B=k.useCallback(I(v),[v]);return m.jsx(qG,{ref:x,...C,onEnter:_,onEntered:L,onEntering:A,onExit:P,onExited:U,onExiting:F,addEndListener:B,nodeRef:w,children:typeof h=="function"?(z,X)=>h(z,{...X,ref:j}):pr.cloneElement(h,{ref:j})})}),IO=s3,l3={[Jl]:"show",[mc]:"show"},AO=k.forwardRef(({className:t,children:r,transitionClasses:i={},onEnter:l,...u},d)=>{const v={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},h=k.useCallback((y,C)=>{NO(y),l==null||l(y,C)},[l]);return m.jsx(IO,{ref:d,addEndListener:_O,...v,onEnter:h,childRef:r.ref,children:(y,C)=>k.cloneElement(r,{...C,className:Qt("fade",t,r.props.className,l3[y],i[y])})})});AO.displayName="Fade";const Gp=AO;function ER(t){return typeof t=="boolean"?t?Gp:CR:t}const jO=({transition:t,...r})=>m.jsx(SO,{...r,transition:ER(t)});jO.displayName="TabContainer";const u3=jO,c3=["xxl","xl","lg","md","sm","xs"],d3="xs",OO=k.createContext({prefixes:{},breakpoints:c3,minBreakpoint:d3});function Cn(t,r){const{prefixes:i}=k.useContext(OO);return t||i[r]||r}function G0(){const{dir:t}=k.useContext(OO);return t==="rtl"}const DO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"tab-content"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));DO.displayName="TabContent";const kO=DO,MO=k.forwardRef(({bsPrefix:t,transition:r,...i},l)=>{const[{className:u,as:d="div",...v},{isActive:h,onEnter:y,onEntering:C,onEntered:x,onExit:w,onExiting:R,onExited:j,mountOnEnter:I,unmountOnExit:_,transition:A=Gp}]=bO({...i,transition:ER(r)}),L=Cn(t,"tab-pane");return m.jsx(th.Provider,{value:null,children:m.jsx(au.Provider,{value:null,children:m.jsx(A,{in:h,onEnter:y,onEntering:C,onEntered:x,onExit:w,onExiting:R,onExited:j,mountOnEnter:I,unmountOnExit:_,children:m.jsx(d,{...v,ref:l,className:Qt(u,L,h&&"active")})})})})});MO.displayName="TabPane";const LO=MO,f3={eventKey:Ue.oneOfType([Ue.string,Ue.number]),title:Ue.node.isRequired,disabled:Ue.bool,tabClassName:Ue.string,tabAttrs:Ue.object},PO=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};PO.propTypes=f3;const zb=Object.assign(PO,{Container:u3,Content:kO,Pane:LO});function _t(){return _t=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},_t.apply(this,arguments)}var p3={},h3=function(t,r,i,l,u,d,v,h){if(p3.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!t){var y;if(r===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var C=[i,l,u,d,v,h],x=0;y=new Error(r.replace(/%s/g,function(){return C[x++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},v3=h3;const ZI=Qp(v3);function qI(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function m3(t){var r=g3(t,"string");return typeof r=="symbol"?r:String(r)}function g3(t,r){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function FO(t,r,i){var l=k.useRef(t!==void 0),u=k.useState(r),d=u[0],v=u[1],h=t!==void 0,y=l.current;return l.current=h,!h&&y&&d!==r&&v(r),[h?t:d,k.useCallback(function(C){for(var x=arguments.length,w=new Array(x>1?x-1:0),R=1;R<x;R++)w[R-1]=arguments[R];i&&i.apply(void 0,[C].concat(w)),v(C)},[i])]}function W0(t,r){return Object.keys(r).reduce(function(i,l){var u,d=i,v=d[qI(l)],h=d[l],y=xR(d,[qI(l),l].map(m3)),C=r[l],x=FO(h,v,t[C]),w=x[0],R=x[1];return _t({},y,(u={},u[l]=w,u[C]=R,u))},t)}var JI={exports:{}},Mw={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(l){function u(v,h,y,C,x,w){var R=C||"<<anonymous>>",j=w||y;if(h[y]==null)return v?new Error("Required "+x+" `"+j+"` was not specified "+("in `"+R+"`.")):null;for(var I=arguments.length,_=Array(I>6?I-6:0),A=6;A<I;A++)_[A-6]=arguments[A];return l.apply(void 0,[h,y,R,x,j].concat(_))}var d=u.bind(null,!1);return d.isRequired=u.bind(null,!0),d}t.exports=r.default})(Mw,Mw.exports);var y3=Mw.exports;(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=y3,l=u(i);function u(v){return v&&v.__esModule?v:{default:v}}function d(){for(var v=arguments.length,h=Array(v),y=0;y<v;y++)h[y]=arguments[y];function C(){for(var x=arguments.length,w=Array(x),R=0;R<x;R++)w[R]=arguments[R];var j=null;return h.forEach(function(I){if(j==null){var _=I.apply(void 0,w);_!=null&&(j=_)}}),j}return(0,l.default)(C)}t.exports=r.default})(JI,JI.exports);var b3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Ql(t,r){return b3(t.querySelectorAll(r))}function VO(){const[,t]=k.useReducer(r=>!r,!1);return t}const BO=k.createContext(null);BO.displayName="NavContext";const wR=BO,C3="data-rr-ui-",x3="rrUi";function ah(t){return`${C3}${t}`}function S3(t){return`${x3}${t}`}const E3=["as","disabled"];function w3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function R3(t){return!t||t.trim()==="#"}function RR({tagName:t,disabled:r,href:i,target:l,rel:u,role:d,onClick:v,tabIndex:h=0,type:y}){t||(i!=null||l!=null||u!=null?t="a":t="button");const C={tagName:t};if(t==="button")return[{type:y||"button",disabled:r},C];const x=R=>{if((r||t==="a"&&R3(i))&&R.preventDefault(),r){R.stopPropagation();return}v==null||v(R)},w=R=>{R.key===" "&&(R.preventDefault(),x(R))};return t==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:d??"button",disabled:void 0,tabIndex:r?void 0:h,href:i,target:t==="a"?l:void 0,"aria-disabled":r||void 0,rel:t==="a"?u:void 0,onClick:x,onKeyDown:w},C]}const TR=k.forwardRef((t,r)=>{let{as:i,disabled:l}=t,u=w3(t,E3);const[d,{tagName:v}]=RR(Object.assign({tagName:i,disabled:l},u));return m.jsx(v,Object.assign({},u,d,{ref:r}))});TR.displayName="Button";const T3=["as","active","eventKey"];function _3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function zO({key:t,onClick:r,active:i,id:l,role:u,disabled:d}){const v=k.useContext(au),h=k.useContext(wR),y=k.useContext(th);let C=i;const x={role:u};if(h){!u&&h.role==="tablist"&&(x.role="tab");const w=h.getControllerId(t??null),R=h.getControlledId(t??null);x[ah("event-key")]=t,x.id=w||l,C=i==null&&t!=null?h.activeKey===t:i,(C||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(x["aria-controls"]=R)}return x.role==="tab"&&(x["aria-selected"]=C,C||(x.tabIndex=-1),d&&(x.tabIndex=-1,x["aria-disabled"]=!0)),x.onClick=yr(w=>{d||(r==null||r(w),t!=null&&v&&!w.isPropagationStopped()&&v(t,w))}),[x,{isActive:C}]}const $O=k.forwardRef((t,r)=>{let{as:i=TR,active:l,eventKey:u}=t,d=_3(t,T3);const[v,h]=zO(Object.assign({key:Zd(u,d.href),active:l},d));return v[ah("active")]=h.isActive,m.jsx(i,Object.assign({},d,v,{ref:r}))});$O.displayName="NavItem";const N3=$O,I3=["as","onSelect","activeKey","role","onKeyDown"];function A3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const QI=()=>{},KI=ah("event-key"),UO=k.forwardRef((t,r)=>{let{as:i="div",onSelect:l,activeKey:u,role:d,onKeyDown:v}=t,h=A3(t,I3);const y=VO(),C=k.useRef(!1),x=k.useContext(au),w=k.useContext(th);let R,j;w&&(d=d||"tablist",u=w.activeKey,R=w.getControlledId,j=w.getControllerId);const I=k.useRef(null),_=F=>{const U=I.current;if(!U)return null;const B=Ql(U,`[${KI}]:not([aria-disabled=true])`),z=U.querySelector("[aria-selected=true]");if(!z||z!==document.activeElement)return null;const X=B.indexOf(z);if(X===-1)return null;let Z=X+F;return Z>=B.length&&(Z=0),Z<0&&(Z=B.length-1),B[Z]},A=(F,U)=>{F!=null&&(l==null||l(F,U),x==null||x(F,U))},L=F=>{if(v==null||v(F),!w)return;let U;switch(F.key){case"ArrowLeft":case"ArrowUp":U=_(-1);break;case"ArrowRight":case"ArrowDown":U=_(1);break;default:return}U&&(F.preventDefault(),A(U.dataset[S3("EventKey")]||null,F),C.current=!0,y())};k.useEffect(()=>{if(I.current&&C.current){const F=I.current.querySelector(`[${KI}][aria-selected=true]`);F==null||F.focus()}C.current=!1});const P=hs(r,I);return m.jsx(au.Provider,{value:A,children:m.jsx(wR.Provider,{value:{role:d,activeKey:Zd(u),getControlledId:R||QI,getControllerId:j||QI},children:m.jsx(i,Object.assign({},h,{onKeyDown:L,ref:P,role:d}))})})});UO.displayName="Nav";const j3=Object.assign(UO,{Item:N3}),HO=k.createContext(null);HO.displayName="NavbarContext";const GO=HO,WO=k.createContext(null);WO.displayName="CardHeaderContext";const O3=WO,XO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"nav-item"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));XO.displayName="NavItem";const YO=XO;function w0(){return k.useState(null)}function D3(t,r,i,l=!1){const u=yr(i);k.useEffect(()=>{const d=typeof t=="function"?t():t;return d.addEventListener(r,u,l),()=>d.removeEventListener(r,u,l)},[t])}function _R(){const t=k.useRef(!0),r=k.useRef(()=>t.current);return k.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),r.current}function ZO(t){const r=k.useRef(null);return k.useEffect(()=>{r.current=t}),r.current}const k3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",M3=typeof document<"u",R0=M3||k3?k.useLayoutEffect:k.useEffect,L3=["onKeyDown"];function P3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function F3(t){return!t||t.trim()==="#"}const qO=k.forwardRef((t,r)=>{let{onKeyDown:i}=t,l=P3(t,L3);const[u]=RR(Object.assign({tagName:"a"},l)),d=yr(v=>{u.onKeyDown(v),i==null||i(v)});return F3(l.href)||l.role==="button"?m.jsx("a",Object.assign({ref:r},l,u,{onKeyDown:d})):m.jsx("a",Object.assign({ref:r},l,{onKeyDown:i}))});qO.displayName="Anchor";const JO=qO,QO=k.forwardRef(({bsPrefix:t,className:r,as:i=JO,active:l,eventKey:u,disabled:d=!1,...v},h)=>{t=Cn(t,"nav-link");const[y,C]=zO({key:Zd(u,v.href),active:l,disabled:d,...v});return m.jsx(i,{...v,...y,ref:h,disabled:d,className:Qt(r,t,d&&"disabled",C.isActive&&"active")})});QO.displayName="NavLink";const KO=QO,eD=k.forwardRef((t,r)=>{const{as:i="div",bsPrefix:l,variant:u,fill:d=!1,justify:v=!1,navbar:h,navbarScroll:y,className:C,activeKey:x,...w}=W0(t,{activeKey:"onSelect"}),R=Cn(l,"nav");let j,I,_=!1;const A=k.useContext(GO),L=k.useContext(O3);return A?(j=A.bsPrefix,_=h??!0):L&&({cardHeaderBsPrefix:I}=L),m.jsx(j3,{as:i,ref:r,activeKey:x,className:Qt(C,{[R]:!_,[`${j}-nav`]:_,[`${j}-nav-scroll`]:_&&y,[`${I}-${u}`]:!!I,[`${R}-${u}`]:!!u,[`${R}-fill`]:d,[`${R}-justified`]:v}),...w})});eD.displayName="Nav";const V3=Object.assign(eD,{Item:YO,Link:KO});function eA(t,r){let i=0;return k.Children.map(t,l=>k.isValidElement(l)?r(l,i++):l)}function B3(t,r){let i=0;k.Children.forEach(t,l=>{k.isValidElement(l)&&r(l,i++)})}function z3(t){let r;return B3(t,i=>{r==null&&(r=i.props.eventKey)}),r}function $3(t){const{title:r,eventKey:i,disabled:l,tabClassName:u,tabAttrs:d,id:v}=t.props;return r==null?null:m.jsx(YO,{as:"li",role:"presentation",children:m.jsx(KO,{as:"button",type:"button",eventKey:i,disabled:l,id:v,className:u,...d,children:r})})}const tD=t=>{const{id:r,onSelect:i,transition:l,mountOnEnter:u=!1,unmountOnExit:d=!1,variant:v="tabs",children:h,activeKey:y=z3(h),...C}=W0(t,{activeKey:"onSelect"});return m.jsxs(SO,{id:r,activeKey:y,onSelect:i,transition:ER(l),mountOnEnter:u,unmountOnExit:d,children:[m.jsx(V3,{...C,role:"tablist",as:"ul",variant:v,children:eA(h,$3)}),m.jsx(kO,{children:eA(h,x=>{const w={...x.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,m.jsx(LO,{...w})})})]})};tD.displayName="Tabs";const U3=tD,H3=k.createContext(null),X0=H3;var tA=Object.prototype.hasOwnProperty;function nA(t,r,i){for(i of t.keys())if(bm(i,r))return i}function bm(t,r){var i,l,u;if(t===r)return!0;if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((l=t.length)===r.length)for(;l--&&bm(t[l],r[l]););return l===-1}if(i===Set){if(t.size!==r.size)return!1;for(l of t)if(u=l,u&&typeof u=="object"&&(u=nA(r,u),!u)||!r.has(u))return!1;return!0}if(i===Map){if(t.size!==r.size)return!1;for(l of t)if(u=l[0],u&&typeof u=="object"&&(u=nA(r,u),!u)||!bm(l[1],r.get(u)))return!1;return!0}if(i===ArrayBuffer)t=new Uint8Array(t),r=new Uint8Array(r);else if(i===DataView){if((l=t.byteLength)===r.byteLength)for(;l--&&t.getInt8(l)===r.getInt8(l););return l===-1}if(ArrayBuffer.isView(t)){if((l=t.byteLength)===r.byteLength)for(;l--&&t[l]===r[l];);return l===-1}if(!i||typeof t=="object"){l=0;for(i in t)if(tA.call(t,i)&&++l&&!tA.call(r,i)||!(i in r)||!bm(t[i],r[i]))return!1;return Object.keys(r).length===l}}return t!==t&&r!==r}function G3(t){const r=_R();return[t[0],k.useCallback(i=>{if(r())return t[1](i)},[r,t[1]])]}var Ai="top",To="bottom",_o="right",ji="left",NR="auto",Fm=[Ai,To,_o,ji],Wp="start",Tm="end",W3="clippingParents",nD="viewport",um="popper",X3="reference",rA=Fm.reduce(function(t,r){return t.concat([r+"-"+Wp,r+"-"+Tm])},[]),rD=[].concat(Fm,[NR]).reduce(function(t,r){return t.concat([r,r+"-"+Wp,r+"-"+Tm])},[]),Y3="beforeRead",Z3="read",q3="afterRead",J3="beforeMain",Q3="main",K3="afterMain",e9="beforeWrite",t9="write",n9="afterWrite",r9=[Y3,Z3,q3,J3,Q3,K3,e9,t9,n9];function tl(t){return t.split("-")[0]}function Qi(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function qd(t){var r=Qi(t).Element;return t instanceof r||t instanceof Element}function nl(t){var r=Qi(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function IR(t){if(typeof ShadowRoot>"u")return!1;var r=Qi(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}var Gd=Math.max,T0=Math.min,Xp=Math.round;function Lw(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function aD(){return!/^((?!chrome|android).)*safari/i.test(Lw())}function Yp(t,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var l=t.getBoundingClientRect(),u=1,d=1;r&&nl(t)&&(u=t.offsetWidth>0&&Xp(l.width)/t.offsetWidth||1,d=t.offsetHeight>0&&Xp(l.height)/t.offsetHeight||1);var v=qd(t)?Qi(t):window,h=v.visualViewport,y=!aD()&&i,C=(l.left+(y&&h?h.offsetLeft:0))/u,x=(l.top+(y&&h?h.offsetTop:0))/d,w=l.width/u,R=l.height/d;return{width:w,height:R,top:x,right:C+w,bottom:x+R,left:C,x:C,y:x}}function AR(t){var r=Yp(t),i=t.offsetWidth,l=t.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-l)<=1&&(l=r.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:l}}function iD(t,r){var i=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(i&&IR(i)){var l=r;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function bc(t){return t?(t.nodeName||"").toLowerCase():null}function iu(t){return Qi(t).getComputedStyle(t)}function a9(t){return["table","td","th"].indexOf(bc(t))>=0}function Cc(t){return((qd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Y0(t){return bc(t)==="html"?t:t.assignedSlot||t.parentNode||(IR(t)?t.host:null)||Cc(t)}function aA(t){return!nl(t)||iu(t).position==="fixed"?null:t.offsetParent}function i9(t){var r=/firefox/i.test(Lw()),i=/Trident/i.test(Lw());if(i&&nl(t)){var l=iu(t);if(l.position==="fixed")return null}var u=Y0(t);for(IR(u)&&(u=u.host);nl(u)&&["html","body"].indexOf(bc(u))<0;){var d=iu(u);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||r&&d.willChange==="filter"||r&&d.filter&&d.filter!=="none")return u;u=u.parentNode}return null}function Vm(t){for(var r=Qi(t),i=aA(t);i&&a9(i)&&iu(i).position==="static";)i=aA(i);return i&&(bc(i)==="html"||bc(i)==="body"&&iu(i).position==="static")?r:i||i9(t)||r}function jR(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Cm(t,r,i){return Gd(t,T0(r,i))}function o9(t,r,i){var l=Cm(t,r,i);return l>i?i:l}function oD(){return{top:0,right:0,bottom:0,left:0}}function sD(t){return Object.assign({},oD(),t)}function lD(t,r){return r.reduce(function(i,l){return i[l]=t,i},{})}var s9=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,sD(typeof r!="number"?r:lD(r,Fm))};function l9(t){var r,i=t.state,l=t.name,u=t.options,d=i.elements.arrow,v=i.modifiersData.popperOffsets,h=tl(i.placement),y=jR(h),C=[ji,_o].indexOf(h)>=0,x=C?"height":"width";if(!(!d||!v)){var w=s9(u.padding,i),R=AR(d),j=y==="y"?Ai:ji,I=y==="y"?To:_o,_=i.rects.reference[x]+i.rects.reference[y]-v[y]-i.rects.popper[x],A=v[y]-i.rects.reference[y],L=Vm(d),P=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0,F=_/2-A/2,U=w[j],B=P-R[x]-w[I],z=P/2-R[x]/2+F,X=Cm(U,z,B),Z=y;i.modifiersData[l]=(r={},r[Z]=X,r.centerOffset=X-z,r)}}function u9(t){var r=t.state,i=t.options,l=i.element,u=l===void 0?"[data-popper-arrow]":l;u!=null&&(typeof u=="string"&&(u=r.elements.popper.querySelector(u),!u)||iD(r.elements.popper,u)&&(r.elements.arrow=u))}const c9={name:"arrow",enabled:!0,phase:"main",fn:l9,effect:u9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zp(t){return t.split("-")[1]}var d9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f9(t,r){var i=t.x,l=t.y,u=r.devicePixelRatio||1;return{x:Xp(i*u)/u||0,y:Xp(l*u)/u||0}}function iA(t){var r,i=t.popper,l=t.popperRect,u=t.placement,d=t.variation,v=t.offsets,h=t.position,y=t.gpuAcceleration,C=t.adaptive,x=t.roundOffsets,w=t.isFixed,R=v.x,j=R===void 0?0:R,I=v.y,_=I===void 0?0:I,A=typeof x=="function"?x({x:j,y:_}):{x:j,y:_};j=A.x,_=A.y;var L=v.hasOwnProperty("x"),P=v.hasOwnProperty("y"),F=ji,U=Ai,B=window;if(C){var z=Vm(i),X="clientHeight",Z="clientWidth";if(z===Qi(i)&&(z=Cc(i),iu(z).position!=="static"&&h==="absolute"&&(X="scrollHeight",Z="scrollWidth")),z=z,u===Ai||(u===ji||u===_o)&&d===Tm){U=To;var ue=w&&z===B&&B.visualViewport?B.visualViewport.height:z[X];_-=ue-l.height,_*=y?1:-1}if(u===ji||(u===Ai||u===To)&&d===Tm){F=_o;var ie=w&&z===B&&B.visualViewport?B.visualViewport.width:z[Z];j-=ie-l.width,j*=y?1:-1}}var ge=Object.assign({position:h},C&&d9),de=x===!0?f9({x:j,y:_},Qi(i)):{x:j,y:_};if(j=de.x,_=de.y,y){var _e;return Object.assign({},ge,(_e={},_e[U]=P?"0":"",_e[F]=L?"0":"",_e.transform=(B.devicePixelRatio||1)<=1?"translate("+j+"px, "+_+"px)":"translate3d("+j+"px, "+_+"px, 0)",_e))}return Object.assign({},ge,(r={},r[U]=P?_+"px":"",r[F]=L?j+"px":"",r.transform="",r))}function p9(t){var r=t.state,i=t.options,l=i.gpuAcceleration,u=l===void 0?!0:l,d=i.adaptive,v=d===void 0?!0:d,h=i.roundOffsets,y=h===void 0?!0:h,C={placement:tl(r.placement),variation:Zp(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:u,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,iA(Object.assign({},C,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:v,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,iA(Object.assign({},C,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const h9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p9,data:{}};var $b={passive:!0};function v9(t){var r=t.state,i=t.instance,l=t.options,u=l.scroll,d=u===void 0?!0:u,v=l.resize,h=v===void 0?!0:v,y=Qi(r.elements.popper),C=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&C.forEach(function(x){x.addEventListener("scroll",i.update,$b)}),h&&y.addEventListener("resize",i.update,$b),function(){d&&C.forEach(function(x){x.removeEventListener("scroll",i.update,$b)}),h&&y.removeEventListener("resize",i.update,$b)}}const m9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v9,data:{}};var g9={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(r){return g9[r]})}var y9={start:"end",end:"start"};function oA(t){return t.replace(/start|end/g,function(r){return y9[r]})}function OR(t){var r=Qi(t),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function DR(t){return Yp(Cc(t)).left+OR(t).scrollLeft}function b9(t,r){var i=Qi(t),l=Cc(t),u=i.visualViewport,d=l.clientWidth,v=l.clientHeight,h=0,y=0;if(u){d=u.width,v=u.height;var C=aD();(C||!C&&r==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}return{width:d,height:v,x:h+DR(t),y}}function C9(t){var r,i=Cc(t),l=OR(t),u=(r=t.ownerDocument)==null?void 0:r.body,d=Gd(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),v=Gd(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),h=-l.scrollLeft+DR(t),y=-l.scrollTop;return iu(u||i).direction==="rtl"&&(h+=Gd(i.clientWidth,u?u.clientWidth:0)-d),{width:d,height:v,x:h,y}}function kR(t){var r=iu(t),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function uD(t){return["html","body","#document"].indexOf(bc(t))>=0?t.ownerDocument.body:nl(t)&&kR(t)?t:uD(Y0(t))}function xm(t,r){var i;r===void 0&&(r=[]);var l=uD(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),d=Qi(l),v=u?[d].concat(d.visualViewport||[],kR(l)?l:[]):l,h=r.concat(v);return u?h:h.concat(xm(Y0(v)))}function Pw(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function x9(t,r){var i=Yp(t,!1,r==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function sA(t,r,i){return r===nD?Pw(b9(t,i)):qd(r)?x9(r,i):Pw(C9(Cc(t)))}function S9(t){var r=xm(Y0(t)),i=["absolute","fixed"].indexOf(iu(t).position)>=0,l=i&&nl(t)?Vm(t):t;return qd(l)?r.filter(function(u){return qd(u)&&iD(u,l)&&bc(u)!=="body"}):[]}function E9(t,r,i,l){var u=r==="clippingParents"?S9(t):[].concat(r),d=[].concat(u,[i]),v=d[0],h=d.reduce(function(y,C){var x=sA(t,C,l);return y.top=Gd(x.top,y.top),y.right=T0(x.right,y.right),y.bottom=T0(x.bottom,y.bottom),y.left=Gd(x.left,y.left),y},sA(t,v,l));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function cD(t){var r=t.reference,i=t.element,l=t.placement,u=l?tl(l):null,d=l?Zp(l):null,v=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,y;switch(u){case Ai:y={x:v,y:r.y-i.height};break;case To:y={x:v,y:r.y+r.height};break;case _o:y={x:r.x+r.width,y:h};break;case ji:y={x:r.x-i.width,y:h};break;default:y={x:r.x,y:r.y}}var C=u?jR(u):null;if(C!=null){var x=C==="y"?"height":"width";switch(d){case Wp:y[C]=y[C]-(r[x]/2-i[x]/2);break;case Tm:y[C]=y[C]+(r[x]/2-i[x]/2);break}}return y}function _m(t,r){r===void 0&&(r={});var i=r,l=i.placement,u=l===void 0?t.placement:l,d=i.strategy,v=d===void 0?t.strategy:d,h=i.boundary,y=h===void 0?W3:h,C=i.rootBoundary,x=C===void 0?nD:C,w=i.elementContext,R=w===void 0?um:w,j=i.altBoundary,I=j===void 0?!1:j,_=i.padding,A=_===void 0?0:_,L=sD(typeof A!="number"?A:lD(A,Fm)),P=R===um?X3:um,F=t.rects.popper,U=t.elements[I?P:R],B=E9(qd(U)?U:U.contextElement||Cc(t.elements.popper),y,x,v),z=Yp(t.elements.reference),X=cD({reference:z,element:F,strategy:"absolute",placement:u}),Z=Pw(Object.assign({},F,X)),ue=R===um?Z:z,ie={top:B.top-ue.top+L.top,bottom:ue.bottom-B.bottom+L.bottom,left:B.left-ue.left+L.left,right:ue.right-B.right+L.right},ge=t.modifiersData.offset;if(R===um&&ge){var de=ge[u];Object.keys(ie).forEach(function(_e){var Ee=[_o,To].indexOf(_e)>=0?1:-1,Ce=[Ai,To].indexOf(_e)>=0?"y":"x";ie[_e]+=de[Ce]*Ee})}return ie}function w9(t,r){r===void 0&&(r={});var i=r,l=i.placement,u=i.boundary,d=i.rootBoundary,v=i.padding,h=i.flipVariations,y=i.allowedAutoPlacements,C=y===void 0?rD:y,x=Zp(l),w=x?h?rA:rA.filter(function(I){return Zp(I)===x}):Fm,R=w.filter(function(I){return C.indexOf(I)>=0});R.length===0&&(R=w);var j=R.reduce(function(I,_){return I[_]=_m(t,{placement:_,boundary:u,rootBoundary:d,padding:v})[tl(_)],I},{});return Object.keys(j).sort(function(I,_){return j[I]-j[_]})}function R9(t){if(tl(t)===NR)return[];var r=a0(t);return[oA(t),r,oA(r)]}function T9(t){var r=t.state,i=t.options,l=t.name;if(!r.modifiersData[l]._skip){for(var u=i.mainAxis,d=u===void 0?!0:u,v=i.altAxis,h=v===void 0?!0:v,y=i.fallbackPlacements,C=i.padding,x=i.boundary,w=i.rootBoundary,R=i.altBoundary,j=i.flipVariations,I=j===void 0?!0:j,_=i.allowedAutoPlacements,A=r.options.placement,L=tl(A),P=L===A,F=y||(P||!I?[a0(A)]:R9(A)),U=[A].concat(F).reduce(function(we,Ne){return we.concat(tl(Ne)===NR?w9(r,{placement:Ne,boundary:x,rootBoundary:w,padding:C,flipVariations:I,allowedAutoPlacements:_}):Ne)},[]),B=r.rects.reference,z=r.rects.popper,X=new Map,Z=!0,ue=U[0],ie=0;ie<U.length;ie++){var ge=U[ie],de=tl(ge),_e=Zp(ge)===Wp,Ee=[Ai,To].indexOf(de)>=0,Ce=Ee?"width":"height",je=_m(r,{placement:ge,boundary:x,rootBoundary:w,altBoundary:R,padding:C}),Le=Ee?_e?_o:ji:_e?To:Ai;B[Ce]>z[Ce]&&(Le=a0(Le));var re=a0(Le),Ie=[];if(d&&Ie.push(je[de]<=0),h&&Ie.push(je[Le]<=0,je[re]<=0),Ie.every(function(we){return we})){ue=ge,Z=!1;break}X.set(ge,Ie)}if(Z)for(var G=I?3:1,Y=function(Ne){var Oe=U.find(function(ce){var fe=X.get(ce);if(fe)return fe.slice(0,Ne).every(function(Ve){return Ve})});if(Oe)return ue=Oe,"break"},ne=G;ne>0;ne--){var be=Y(ne);if(be==="break")break}r.placement!==ue&&(r.modifiersData[l]._skip=!0,r.placement=ue,r.reset=!0)}}const _9={name:"flip",enabled:!0,phase:"main",fn:T9,requiresIfExists:["offset"],data:{_skip:!1}};function lA(t,r,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-r.height-i.y,right:t.right-r.width+i.x,bottom:t.bottom-r.height+i.y,left:t.left-r.width-i.x}}function uA(t){return[Ai,_o,To,ji].some(function(r){return t[r]>=0})}function N9(t){var r=t.state,i=t.name,l=r.rects.reference,u=r.rects.popper,d=r.modifiersData.preventOverflow,v=_m(r,{elementContext:"reference"}),h=_m(r,{altBoundary:!0}),y=lA(v,l),C=lA(h,u,d),x=uA(y),w=uA(C);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:C,isReferenceHidden:x,hasPopperEscaped:w},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":w})}const I9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N9};function A9(t,r,i){var l=tl(t),u=[ji,Ai].indexOf(l)>=0?-1:1,d=typeof i=="function"?i(Object.assign({},r,{placement:t})):i,v=d[0],h=d[1];return v=v||0,h=(h||0)*u,[ji,_o].indexOf(l)>=0?{x:h,y:v}:{x:v,y:h}}function j9(t){var r=t.state,i=t.options,l=t.name,u=i.offset,d=u===void 0?[0,0]:u,v=rD.reduce(function(x,w){return x[w]=A9(w,r.rects,d),x},{}),h=v[r.placement],y=h.x,C=h.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=C),r.modifiersData[l]=v}const O9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j9};function D9(t){var r=t.state,i=t.name;r.modifiersData[i]=cD({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const k9={name:"popperOffsets",enabled:!0,phase:"read",fn:D9,data:{}};function M9(t){return t==="x"?"y":"x"}function L9(t){var r=t.state,i=t.options,l=t.name,u=i.mainAxis,d=u===void 0?!0:u,v=i.altAxis,h=v===void 0?!1:v,y=i.boundary,C=i.rootBoundary,x=i.altBoundary,w=i.padding,R=i.tether,j=R===void 0?!0:R,I=i.tetherOffset,_=I===void 0?0:I,A=_m(r,{boundary:y,rootBoundary:C,padding:w,altBoundary:x}),L=tl(r.placement),P=Zp(r.placement),F=!P,U=jR(L),B=M9(U),z=r.modifiersData.popperOffsets,X=r.rects.reference,Z=r.rects.popper,ue=typeof _=="function"?_(Object.assign({},r.rects,{placement:r.placement})):_,ie=typeof ue=="number"?{mainAxis:ue,altAxis:ue}:Object.assign({mainAxis:0,altAxis:0},ue),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,de={x:0,y:0};if(z){if(d){var _e,Ee=U==="y"?Ai:ji,Ce=U==="y"?To:_o,je=U==="y"?"height":"width",Le=z[U],re=Le+A[Ee],Ie=Le-A[Ce],G=j?-Z[je]/2:0,Y=P===Wp?X[je]:Z[je],ne=P===Wp?-Z[je]:-X[je],be=r.elements.arrow,we=j&&be?AR(be):{width:0,height:0},Ne=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:oD(),Oe=Ne[Ee],ce=Ne[Ce],fe=Cm(0,X[je],we[je]),Ve=F?X[je]/2-G-fe-Oe-ie.mainAxis:Y-fe-Oe-ie.mainAxis,Ge=F?-X[je]/2+G+fe+ce+ie.mainAxis:ne+fe+ce+ie.mainAxis,tt=r.elements.arrow&&Vm(r.elements.arrow),ot=tt?U==="y"?tt.clientTop||0:tt.clientLeft||0:0,Ae=(_e=ge==null?void 0:ge[U])!=null?_e:0,Rt=Le+Ve-Ae-ot,dt=Le+Ge-Ae,en=Cm(j?T0(re,Rt):re,Le,j?Gd(Ie,dt):Ie);z[U]=en,de[U]=en-Le}if(h){var sn,ln=U==="x"?Ai:ji,In=U==="x"?To:_o,Vt=z[B],xn=B==="y"?"height":"width",Qn=Vt+A[ln],Tr=Vt-A[In],Hn=[Ai,ji].indexOf(L)!==-1,_r=(sn=ge==null?void 0:ge[B])!=null?sn:0,St=Hn?Qn:Vt-X[xn]-Z[xn]-_r+ie.altAxis,Pn=Hn?Vt+X[xn]+Z[xn]-_r-ie.altAxis:Tr,un=j&&Hn?o9(St,Vt,Pn):Cm(j?St:Qn,Vt,j?Pn:Tr);z[B]=un,de[B]=un-Vt}r.modifiersData[l]=de}}const P9={name:"preventOverflow",enabled:!0,phase:"main",fn:L9,requiresIfExists:["offset"]};function F9(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function V9(t){return t===Qi(t)||!nl(t)?OR(t):F9(t)}function B9(t){var r=t.getBoundingClientRect(),i=Xp(r.width)/t.offsetWidth||1,l=Xp(r.height)/t.offsetHeight||1;return i!==1||l!==1}function z9(t,r,i){i===void 0&&(i=!1);var l=nl(r),u=nl(r)&&B9(r),d=Cc(r),v=Yp(t,u,i),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(l||!l&&!i)&&((bc(r)!=="body"||kR(d))&&(h=V9(r)),nl(r)?(y=Yp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=DR(d))),{x:v.left+h.scrollLeft-y.x,y:v.top+h.scrollTop-y.y,width:v.width,height:v.height}}function $9(t){var r=new Map,i=new Set,l=[];t.forEach(function(d){r.set(d.name,d)});function u(d){i.add(d.name);var v=[].concat(d.requires||[],d.requiresIfExists||[]);v.forEach(function(h){if(!i.has(h)){var y=r.get(h);y&&u(y)}}),l.push(d)}return t.forEach(function(d){i.has(d.name)||u(d)}),l}function U9(t){var r=$9(t);return r9.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function H9(t){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(t())})})),r}}function G9(t){var r=t.reduce(function(i,l){var u=i[l.name];return i[l.name]=u?Object.assign({},u,l,{options:Object.assign({},u.options,l.options),data:Object.assign({},u.data,l.data)}):l,i},{});return Object.keys(r).map(function(i){return r[i]})}var cA={placement:"bottom",modifiers:[],strategy:"absolute"};function dA(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return!r.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function W9(t){t===void 0&&(t={});var r=t,i=r.defaultModifiers,l=i===void 0?[]:i,u=r.defaultOptions,d=u===void 0?cA:u;return function(h,y,C){C===void 0&&(C=d);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},cA,d),modifiersData:{},elements:{reference:h,popper:y},attributes:{},styles:{}},w=[],R=!1,j={state:x,setOptions:function(L){var P=typeof L=="function"?L(x.options):L;_(),x.options=Object.assign({},d,x.options,P),x.scrollParents={reference:qd(h)?xm(h):h.contextElement?xm(h.contextElement):[],popper:xm(y)};var F=U9(G9([].concat(l,x.options.modifiers)));return x.orderedModifiers=F.filter(function(U){return U.enabled}),I(),j.update()},forceUpdate:function(){if(!R){var L=x.elements,P=L.reference,F=L.popper;if(dA(P,F)){x.rects={reference:z9(P,Vm(F),x.options.strategy==="fixed"),popper:AR(F)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(ie){return x.modifiersData[ie.name]=Object.assign({},ie.data)});for(var U=0;U<x.orderedModifiers.length;U++){if(x.reset===!0){x.reset=!1,U=-1;continue}var B=x.orderedModifiers[U],z=B.fn,X=B.options,Z=X===void 0?{}:X,ue=B.name;typeof z=="function"&&(x=z({state:x,options:Z,name:ue,instance:j})||x)}}}},update:H9(function(){return new Promise(function(A){j.forceUpdate(),A(x)})}),destroy:function(){_(),R=!0}};if(!dA(h,y))return j;j.setOptions(C).then(function(A){!R&&C.onFirstUpdate&&C.onFirstUpdate(A)});function I(){x.orderedModifiers.forEach(function(A){var L=A.name,P=A.options,F=P===void 0?{}:P,U=A.effect;if(typeof U=="function"){var B=U({state:x,name:L,instance:j,options:F}),z=function(){};w.push(B||z)}})}function _(){w.forEach(function(A){return A()}),w=[]}return j}}const X9=W9({defaultModifiers:[I9,k9,h9,m9,O9,_9,P9,c9]}),Y9=["enabled","placement","strategy","modifiers"];function Z9(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const q9={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},J9={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:r,popper:i}=t.elements;if("removeAttribute"in r){const l=(r.getAttribute("aria-describedby")||"").split(",").filter(u=>u.trim()!==i.id);l.length?r.setAttribute("aria-describedby",l.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:t})=>{var r;const{popper:i,reference:l}=t.elements,u=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&u==="tooltip"&&"setAttribute"in l){const d=l.getAttribute("aria-describedby");if(d&&d.split(",").indexOf(i.id)!==-1)return;l.setAttribute("aria-describedby",d?`${d},${i.id}`:i.id)}}},Q9=[];function dD(t,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:d="absolute",modifiers:v=Q9}=i,h=Z9(i,Y9);const y=k.useRef(v),C=k.useRef(),x=k.useCallback(()=>{var A;(A=C.current)==null||A.update()},[]),w=k.useCallback(()=>{var A;(A=C.current)==null||A.forceUpdate()},[]),[R,j]=G3(k.useState({placement:u,update:x,forceUpdate:w,attributes:{},styles:{popper:{},arrow:{}}})),I=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:A})=>{const L={},P={};Object.keys(A.elements).forEach(F=>{L[F]=A.styles[F],P[F]=A.attributes[F]}),j({state:A,styles:L,attributes:P,update:x,forceUpdate:w,placement:A.placement})}}),[x,w,j]),_=k.useMemo(()=>(bm(y.current,v)||(y.current=v),y.current),[v]);return k.useEffect(()=>{!C.current||!l||C.current.setOptions({placement:u,strategy:d,modifiers:[..._,I,q9]})},[d,u,I,l,_]),k.useEffect(()=>{if(!(!l||t==null||r==null))return C.current=X9(t,r,Object.assign({},h,{placement:u,strategy:d,modifiers:[..._,J9,I]})),()=>{C.current!=null&&(C.current.destroy(),C.current=void 0,j(A=>Object.assign({},A,{attributes:{},styles:{popper:{}}})))}},[l,t,r]),R}function Nm(t,r){if(t.contains)return t.contains(r);if(t.compareDocumentPosition)return t===r||!!(t.compareDocumentPosition(r)&16)}var K9={},e4=K9.NODE_ENV!=="production",fD=function(){};if(e4){var t4=function(r,i){var l=arguments.length;i=new Array(l>1?l-1:0);for(var u=1;u<l;u++)i[u-1]=arguments[u];var d=0,v="Warning: "+r.replace(/%s/g,function(){return i[d++]});typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}};fD=function(t,r,i){var l=arguments.length;i=new Array(l>2?l-2:0);for(var u=2;u<l;u++)i[u-2]=arguments[u];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||t4.apply(null,[r].concat(i))}}var n4=fD;const MR=Qp(n4),fA=()=>{};function r4(t){return t.button===0}function a4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const i0=t=>t&&("current"in t?t.current:t),pA={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function pD(t,r=fA,{disabled:i,clickTrigger:l="click"}={}){const u=k.useRef(!1),d=k.useRef(!1),v=k.useCallback(C=>{const x=i0(t);MR(!!x,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),u.current=!x||a4(C)||!r4(C)||!!Nm(x,C.target)||d.current,d.current=!1},[t]),h=yr(C=>{const x=i0(t);x&&Nm(x,C.target)&&(d.current=!0)}),y=yr(C=>{u.current||r(C)});k.useEffect(()=>{var C,x;if(i||t==null)return;const w=nh(i0(t)),R=w.defaultView||window;let j=(C=R.event)!=null?C:(x=R.parent)==null?void 0:x.event,I=null;pA[l]&&(I=Kl(w,pA[l],h,!0));const _=Kl(w,l,v,!0),A=Kl(w,l,P=>{if(P===j){j=void 0;return}y(P)});let L=[];return"ontouchstart"in w.documentElement&&(L=[].slice.call(w.body.children).map(P=>Kl(P,"mousemove",fA))),()=>{I==null||I(),_(),A(),L.forEach(P=>P())}},[t,i,l,v,h,y])}function i4(t){const r={};return Array.isArray(t)?(t==null||t.forEach(i=>{r[i.name]=i}),r):t||r}function o4(t={}){return Array.isArray(t)?t:Object.keys(t).map(r=>(t[r].name=r,t[r]))}function hD({enabled:t,enableEvents:r,placement:i,flip:l,offset:u,fixed:d,containerPadding:v,arrowElement:h,popperConfig:y={}}){var C,x,w,R,j;const I=i4(y.modifiers);return Object.assign({},y,{placement:i,enabled:t,strategy:d?"fixed":y.strategy,modifiers:o4(Object.assign({},I,{eventListeners:{enabled:r,options:(C=I.eventListeners)==null?void 0:C.options},preventOverflow:Object.assign({},I.preventOverflow,{options:v?Object.assign({padding:v},(x=I.preventOverflow)==null?void 0:x.options):(w=I.preventOverflow)==null?void 0:w.options}),offset:{options:Object.assign({offset:u},(R=I.offset)==null?void 0:R.options)},arrow:Object.assign({},I.arrow,{enabled:!!h,options:Object.assign({},(j=I.arrow)==null?void 0:j.options,{element:h})}),flip:Object.assign({enabled:!!l},I.flip)}))})}const s4=["children"];function l4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const u4=()=>{};function vD(t={}){const r=k.useContext(X0),[i,l]=w0(),u=k.useRef(!1),{flip:d,offset:v,rootCloseEvent:h,fixed:y=!1,placement:C,popperConfig:x={},enableEventListeners:w=!0,usePopper:R=!!r}=t,j=(r==null?void 0:r.show)==null?!!t.show:r.show;j&&!u.current&&(u.current=!0);const I=z=>{r==null||r.toggle(!1,z)},{placement:_,setMenu:A,menuElement:L,toggleElement:P}=r||{},F=dD(P,L,hD({placement:C||_||"bottom-start",enabled:R,enableEvents:w??j,offset:v,flip:d,fixed:y,arrowElement:i,popperConfig:x})),U=Object.assign({ref:A||u4,"aria-labelledby":P==null?void 0:P.id},F.attributes.popper,{style:F.styles.popper}),B={show:j,placement:_,hasShown:u.current,toggle:r==null?void 0:r.toggle,popper:R?F:null,arrowProps:R?Object.assign({ref:l},F.attributes.arrow,{style:F.styles.arrow}):{}};return pD(L,I,{clickTrigger:h,disabled:!j}),[U,B]}const c4={usePopper:!0};function LR(t){let{children:r}=t,i=l4(t,s4);const[l,u]=vD(i);return m.jsx(m.Fragment,{children:r(l,u)})}LR.displayName="DropdownMenu";LR.defaultProps=c4;const mD=t=>{var r;return((r=t.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},hA=()=>{};function gD(){const t=yO(),{show:r=!1,toggle:i=hA,setToggle:l,menuElement:u}=k.useContext(X0)||{},d=k.useCallback(h=>{i(!r,h)},[r,i]),v={id:t,ref:l||hA,onClick:d,"aria-expanded":!!r};return u&&mD(u)&&(v["aria-haspopup"]=!0),[v,{show:r,toggle:i}]}function yD({children:t}){const[r,i]=gD();return m.jsx(m.Fragment,{children:t(r,i)})}yD.displayName="DropdownToggle";const d4=["eventKey","disabled","onClick","active","as"];function f4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function bD({key:t,href:r,active:i,disabled:l,onClick:u}){const d=k.useContext(au),v=k.useContext(wR),{activeKey:h}=v||{},y=Zd(t,r),C=i==null&&t!=null?Zd(h)===y:i;return[{onClick:yr(w=>{l||(u==null||u(w),d&&!w.isPropagationStopped()&&d(y,w))}),"aria-disabled":l||void 0,"aria-selected":C,[ah("dropdown-item")]:""},{isActive:C}]}const CD=k.forwardRef((t,r)=>{let{eventKey:i,disabled:l,onClick:u,active:d,as:v=TR}=t,h=f4(t,d4);const[y]=bD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,Object.assign({},h,{ref:r},y))});CD.displayName="DropdownItem";const xD=k.createContext(rh?window:void 0);xD.Provider;function Z0(){return k.useContext(xD)}function vA(){const t=VO(),r=k.useRef(null),i=k.useCallback(l=>{r.current=l,t()},[t]);return[r,i]}function Bm({defaultShow:t,show:r,onSelect:i,onToggle:l,itemSelector:u=`* [${ah("dropdown-item")}]`,focusFirstItemOnShow:d,placement:v="bottom-start",children:h}){const y=Z0(),[C,x]=vO(r,t,l),[w,R]=vA(),j=w.current,[I,_]=vA(),A=I.current,L=ZO(C),P=k.useRef(null),F=k.useRef(!1),U=k.useContext(au),B=k.useCallback((ge,de,_e=de==null?void 0:de.type)=>{x(ge,{originalEvent:de,source:_e})},[x]),z=yr((ge,de)=>{i==null||i(ge,de),B(!1,de,"select"),de.isPropagationStopped()||U==null||U(ge,de)}),X=k.useMemo(()=>({toggle:B,placement:v,show:C,menuElement:j,toggleElement:A,setMenu:R,setToggle:_}),[B,v,C,j,A,R,_]);j&&L&&!C&&(F.current=j.contains(j.ownerDocument.activeElement));const Z=yr(()=>{A&&A.focus&&A.focus()}),ue=yr(()=>{const ge=P.current;let de=d;if(de==null&&(de=w.current&&mD(w.current)?"keyboard":!1),de===!1||de==="keyboard"&&!/^key.+$/.test(ge))return;const _e=Ql(w.current,u)[0];_e&&_e.focus&&_e.focus()});k.useEffect(()=>{C?ue():F.current&&(F.current=!1,Z())},[C,F,Z,ue]),k.useEffect(()=>{P.current=null});const ie=(ge,de)=>{if(!w.current)return null;const _e=Ql(w.current,u);let Ee=_e.indexOf(ge)+de;return Ee=Math.max(0,Math.min(Ee,_e.length)),_e[Ee]};return D3(k.useCallback(()=>y.document,[y]),"keydown",ge=>{var de,_e;const{key:Ee}=ge,Ce=ge.target,je=(de=w.current)==null?void 0:de.contains(Ce),Le=(_e=I.current)==null?void 0:_e.contains(Ce);if(/input|textarea/i.test(Ce.tagName)&&(Ee===" "||Ee!=="Escape"&&je||Ee==="Escape"&&Ce.type==="search")||!je&&!Le||Ee==="Tab"&&(!w.current||!C))return;P.current=ge.type;const Ie={originalEvent:ge,source:ge.type};switch(Ee){case"ArrowUp":{const G=ie(Ce,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!C)x(!0,Ie);else{const G=ie(Ce,1);G&&G.focus&&G.focus()}return;case"Tab":SR(Ce.ownerDocument,"keyup",G=>{var Y;(G.key==="Tab"&&!G.target||!((Y=w.current)!=null&&Y.contains(G.target)))&&x(!1,Ie)},{once:!0});break;case"Escape":Ee==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),x(!1,Ie);break}}),m.jsx(au.Provider,{value:z,children:m.jsx(X0.Provider,{value:X,children:h})})}Bm.displayName="Dropdown";Bm.Menu=LR;Bm.Toggle=yD;Bm.Item=CD;const SD=k.createContext({});SD.displayName="DropdownContext";const ED=SD,wD=k.forwardRef(({className:t,bsPrefix:r,as:i="hr",role:l="separator",...u},d)=>(r=Cn(r,"dropdown-divider"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));wD.displayName="DropdownDivider";const p4=wD,RD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",role:l="heading",...u},d)=>(r=Cn(r,"dropdown-header"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));RD.displayName="DropdownHeader";const h4=RD,TD=k.forwardRef(({bsPrefix:t,className:r,eventKey:i,disabled:l=!1,onClick:u,active:d,as:v=JO,...h},y)=>{const C=Cn(t,"dropdown-item"),[x,w]=bD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,{...h,...x,ref:y,className:Qt(r,C,w.isActive&&"active",l&&"disabled")})});TD.displayName="DropdownItem";const v4=TD,_D=k.forwardRef(({className:t,bsPrefix:r,as:i="span",...l},u)=>(r=Cn(r,"dropdown-item-text"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));_D.displayName="DropdownItemText";const m4=_D,ND=k.createContext(null);ND.displayName="InputGroupContext";const ID=ND;var mA={};function AD(t,r){if(mA.NODE_ENV==="production")return t;const i=k.useCallback(l=>{l==null||!l.isReactComponent||(mA.NODE_ENV!=="production"?ZI(!1,`${r} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):ZI(!1))},[r]);return hs(i,t)}var g4={};function jD(t,r,i){const l=i?"top-end":"top-start",u=i?"top-start":"top-end",d=i?"bottom-end":"bottom-start",v=i?"bottom-start":"bottom-end",h=i?"right-start":"left-start",y=i?"right-end":"left-end",C=i?"left-start":"right-start",x=i?"left-end":"right-end";let w=t?v:d;return r==="up"?w=t?u:l:r==="end"?w=t?x:C:r==="start"?w=t?y:h:r==="down-centered"?w="bottom":r==="up-centered"&&(w="top"),w}const OD=k.forwardRef(({bsPrefix:t,className:r,align:i,rootCloseEvent:l,flip:u=!0,show:d,renderOnMount:v,as:h="div",popperConfig:y,variant:C,...x},w)=>{let R=!1;const j=k.useContext(GO),I=Cn(t,"dropdown-menu"),{align:_,drop:A,isRTL:L}=k.useContext(ED);i=i||_;const P=k.useContext(ID),F=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(g4.NODE_ENV!=="production"&&MR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const de=ge[0],_e=i[de];R=_e==="start",F.push(`${I}-${de}-${_e}`)}}else i==="end"&&(R=!0);const U=jD(R,A,L),[B,{hasShown:z,popper:X,show:Z,toggle:ue}]=vD({flip:u,rootCloseEvent:l,show:d,usePopper:!j&&F.length===0,offset:[0,2],popperConfig:y,placement:U});if(B.ref=hs(AD(w,"DropdownMenu"),B.ref),R0(()=>{Z&&(X==null||X.update())},[Z]),!z&&!v&&!P)return null;typeof h!="string"&&(B.show=Z,B.close=()=>ue==null?void 0:ue(!1),B.align=i);let ie=x.style;return X!=null&&X.placement&&(ie={...x.style,...B.style},x["x-placement"]=X.placement),m.jsx(h,{...x,...B,style:ie,...(F.length||j)&&{"data-bs-popper":"static"},className:Qt(r,I,Z&&"show",R&&`${I}-end`,C&&`${I}-${C}`,...F)})});OD.displayName="DropdownMenu";const y4=OD,DD=k.forwardRef(({as:t,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:d=!1,className:v,...h},y)=>{const C=Cn(r,"btn"),[x,{tagName:w}]=RR({tagName:t,disabled:d,...h}),R=w;return m.jsx(R,{...x,...h,ref:y,disabled:d,className:Qt(v,C,u&&"active",i&&`${C}-${i}`,l&&`${C}-${l}`,h.href&&d&&"disabled")})});DD.displayName="Button";const b4=DD,kD=k.forwardRef(({bsPrefix:t,split:r,className:i,childBsPrefix:l,as:u=b4,...d},v)=>{const h=Cn(t,"dropdown-toggle"),y=k.useContext(X0);l!==void 0&&(d.bsPrefix=l);const[C]=gD();return C.ref=hs(C.ref,AD(v,"DropdownToggle")),m.jsx(u,{className:Qt(i,h,r&&`${h}-split`,(y==null?void 0:y.show)&&"show"),...C,...d})});kD.displayName="DropdownToggle";const C4=kD,MD=k.forwardRef((t,r)=>{const{bsPrefix:i,drop:l="down",show:u,className:d,align:v="start",onSelect:h,onToggle:y,focusFirstItemOnShow:C,as:x="div",navbar:w,autoClose:R=!0,...j}=W0(t,{show:"onToggle"}),I=k.useContext(ID),_=Cn(i,"dropdown"),A=G0(),L=X=>R===!1?X==="click":R==="inside"?X!=="rootClose":R==="outside"?X!=="select":!0,P=yr((X,Z)=>{var ue,ie;!((ue=Z.originalEvent)==null||(ie=ue.target)==null)&&ie.classList.contains("dropdown-toggle")&&Z.source==="mousedown"||(Z.originalEvent.currentTarget===document&&(Z.source!=="keydown"||Z.originalEvent.key==="Escape")&&(Z.source="rootClose"),L(Z.source)&&(y==null||y(X,Z)))}),U=jD(v==="end",l,A),B=k.useMemo(()=>({align:v,drop:l,isRTL:A}),[v,l,A]),z={down:_,"down-centered":`${_}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return m.jsx(ED.Provider,{value:B,children:m.jsx(Bm,{placement:U,show:u,onSelect:h,onToggle:P,focusFirstItemOnShow:C,itemSelector:`.${_}-item:not(.disabled):not(:disabled)`,children:I?j.children:m.jsx(x,{...j,ref:r,className:Qt(d,u&&"show",z[l])})})})});MD.displayName="Dropdown";const Ub=Object.assign(MD,{Toggle:C4,Menu:y4,Item:v4,ItemText:m4,Divider:p4,Header:h4});var Hb;function gA(t){if((!Hb&&Hb!==0||t)&&rh){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),Hb=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Hb}function x4(t){const r=k.useRef(t);return r.current=t,r}function PR(t){const r=x4(t);k.useEffect(()=>()=>r.current(),[])}function JE(t){t===void 0&&(t=nh());try{var r=t.activeElement;return!r||!r.nodeName?null:r}catch{return t.body}}function S4(t=document){const r=t.defaultView;return Math.abs(r.innerWidth-t.documentElement.clientWidth)}const yA=ah("modal-open");class E4{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return S4(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();r.style={overflow:u.style.overflow,[l]:u.style[l]},r.scrollBarWidth&&(i[l]=`${parseInt(tu(u,l)||"0",10)+r.scrollBarWidth}px`),u.setAttribute(yA,""),tu(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(yA),Object.assign(i.style,r.style)}add(r){let i=this.modals.indexOf(r);return i!==-1||(i=this.modals.length,this.modals.push(r),this.setModalAttributes(r),i!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),i}remove(r){const i=this.modals.indexOf(r);i!==-1&&(this.modals.splice(i,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(r))}isTopModal(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r}}const FR=E4,QE=(t,r)=>rh?t==null?(r||nh()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function Fw(t,r){const i=Z0(),[l,u]=k.useState(()=>QE(t,i==null?void 0:i.document));if(!l){const d=QE(t);d&&u(d)}return k.useEffect(()=>{r&&l&&r(l)},[r,l]),k.useEffect(()=>{const d=QE(t);d!==l&&u(d)},[t,l]),l}function w4({in:t,onTransition:r}){const i=k.useRef(null),l=k.useRef(!0),u=yr(r);return R0(()=>{if(!i.current)return;let d=!1;return u({in:t,element:i.current,initial:l.current,isStale:()=>d}),()=>{d=!0}},[t,u]),R0(()=>(l.current=!1,()=>{l.current=!0}),[]),i}function R4({children:t,in:r,onExited:i,onEntered:l,transition:u}){const[d,v]=k.useState(!r);r&&d&&v(!1);const h=w4({in:!!r,onTransition:C=>{const x=()=>{C.isStale()||(C.in?l==null||l(C.element,C.initial):(v(!0),i==null||i(C.element)))};Promise.resolve(u(C)).then(x,w=>{throw C.in||v(!0),w})}}),y=hs(h,t.ref);return d&&!r?null:k.cloneElement(t,{ref:y})}function Vw(t,r,i){return t?m.jsx(t,Object.assign({},i)):r?m.jsx(R4,Object.assign({},i,{transition:r})):m.jsx(CR,Object.assign({},i))}function LD(t){return t.code==="Escape"||t.keyCode===27}const T4=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function _4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}let KE;function N4(t){return KE||(KE=new FR({ownerDocument:t==null?void 0:t.document})),KE}function I4(t){const r=Z0(),i=t||N4(r),l=k.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>i.add(l.current),remove:()=>i.remove(l.current),isTopModal:()=>i.isTopModal(l.current),setDialogRef:k.useCallback(u=>{l.current.dialog=u},[]),setBackdropRef:k.useCallback(u=>{l.current.backdrop=u},[])})}const PD=k.forwardRef((t,r)=>{let{show:i=!1,role:l="dialog",className:u,style:d,children:v,backdrop:h=!0,keyboard:y=!0,onBackdropClick:C,onEscapeKeyDown:x,transition:w,runTransition:R,backdropTransition:j,runBackdropTransition:I,autoFocus:_=!0,enforceFocus:A=!0,restoreFocus:L=!0,restoreFocusOptions:P,renderDialog:F,renderBackdrop:U=dt=>m.jsx("div",Object.assign({},dt)),manager:B,container:z,onShow:X,onHide:Z=()=>{},onExit:ue,onExited:ie,onExiting:ge,onEnter:de,onEntering:_e,onEntered:Ee}=t,Ce=_4(t,T4);const je=Z0(),Le=Fw(z),re=I4(B),Ie=_R(),G=ZO(i),[Y,ne]=k.useState(!i),be=k.useRef(null);k.useImperativeHandle(r,()=>re,[re]),rh&&!G&&i&&(be.current=JE(je==null?void 0:je.document)),i&&Y&&ne(!1);const we=yr(()=>{if(re.add(),Ge.current=Kl(document,"keydown",fe),Ve.current=Kl(document,"focus",()=>setTimeout(Oe),!0),X&&X(),_){var dt,en;const sn=JE((dt=(en=re.dialog)==null?void 0:en.ownerDocument)!=null?dt:je==null?void 0:je.document);re.dialog&&sn&&!Nm(re.dialog,sn)&&(be.current=sn,re.dialog.focus())}}),Ne=yr(()=>{if(re.remove(),Ge.current==null||Ge.current(),Ve.current==null||Ve.current(),L){var dt;(dt=be.current)==null||dt.focus==null||dt.focus(P),be.current=null}});k.useEffect(()=>{!i||!Le||we()},[i,Le,we]),k.useEffect(()=>{Y&&Ne()},[Y,Ne]),PR(()=>{Ne()});const Oe=yr(()=>{if(!A||!Ie()||!re.isTopModal())return;const dt=JE(je==null?void 0:je.document);re.dialog&&dt&&!Nm(re.dialog,dt)&&re.dialog.focus()}),ce=yr(dt=>{dt.target===dt.currentTarget&&(C==null||C(dt),h===!0&&Z())}),fe=yr(dt=>{y&&LD(dt)&&re.isTopModal()&&(x==null||x(dt),dt.defaultPrevented||Z())}),Ve=k.useRef(),Ge=k.useRef(),tt=(...dt)=>{ne(!0),ie==null||ie(...dt)};if(!Le)return null;const ot=Object.assign({role:l,ref:re.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},Ce,{style:d,className:u,tabIndex:-1});let Ae=F?F(ot):m.jsx("div",Object.assign({},ot,{children:k.cloneElement(v,{role:"document"})}));Ae=Vw(w,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:ue,onExiting:ge,onExited:tt,onEnter:de,onEntering:_e,onEntered:Ee,children:Ae});let Rt=null;return h&&(Rt=U({ref:re.setBackdropRef,onClick:ce}),Rt=Vw(j,I,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Rt})),m.jsx(m.Fragment,{children:zd.createPortal(m.jsxs(m.Fragment,{children:[Rt,Ae]}),Le)})});PD.displayName="Modal";const A4=Object.assign(PD,{Manager:FR});function Bw(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function j4(t,r){t.classList?t.classList.add(r):Bw(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function bA(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function O4(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=bA(t.className,r):t.setAttribute("class",bA(t.className&&t.className.baseVal||"",r))}const Fp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class D4 extends FR{adjustAndStore(r,i,l){const u=i.style[r];i.dataset[r]=u,tu(i,{[r]:`${parseFloat(tu(i,r))+l}px`})}restore(r,i){const l=i.dataset[r];l!==void 0&&(delete i.dataset[r],tu(i,{[r]:l}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(j4(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Ql(i,Fp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth)),Ql(i,Fp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(u,d,-r.scrollBarWidth)),Ql(i,Fp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();O4(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Ql(i,Fp.FIXED_CONTENT).forEach(d=>this.restore(l,d)),Ql(i,Fp.STICKY_CONTENT).forEach(d=>this.restore(u,d)),Ql(i,Fp.NAVBAR_TOGGLER).forEach(d=>this.restore(u,d))}}let ew;function k4(t){return ew||(ew=new D4(t)),ew}const FD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"modal-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));FD.displayName="ModalBody";const M4=FD,L4=k.createContext({onHide(){}}),VD=L4,BD=k.forwardRef(({bsPrefix:t,className:r,contentClassName:i,centered:l,size:u,fullscreen:d,children:v,scrollable:h,...y},C)=>{t=Cn(t,"modal");const x=`${t}-dialog`,w=typeof d=="string"?`${t}-fullscreen-${d}`:`${t}-fullscreen`;return m.jsx("div",{...y,ref:C,className:Qt(x,r,u&&`${t}-${u}`,l&&`${x}-centered`,h&&`${x}-scrollable`,d&&w),children:m.jsx("div",{className:Qt(`${t}-content`,i),children:v})})});BD.displayName="ModalDialog";const zD=BD,$D=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"modal-footer"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));$D.displayName="ModalFooter";const P4=$D,F4={"aria-label":Ue.string,onClick:Ue.func,variant:Ue.oneOf(["white"])},VR=k.forwardRef(({className:t,variant:r,"aria-label":i="Close",...l},u)=>m.jsx("button",{ref:u,type:"button",className:Qt("btn-close",r&&`btn-close-${r}`,t),"aria-label":i,...l}));VR.displayName="CloseButton";VR.propTypes=F4;const V4=VR,B4=k.forwardRef(({closeLabel:t="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...d},v)=>{const h=k.useContext(VD),y=yr(()=>{h==null||h.onHide(),l==null||l()});return m.jsxs("div",{ref:v,...d,children:[u,i&&m.jsx(V4,{"aria-label":t,variant:r,onClick:y})]})}),z4=B4,UD=k.forwardRef(({bsPrefix:t,className:r,closeLabel:i="Close",closeButton:l=!1,...u},d)=>(t=Cn(t,"modal-header"),m.jsx(z4,{ref:d,...u,className:Qt(r,t),closeLabel:i,closeButton:l})));UD.displayName="ModalHeader";const $4=UD,U4=t=>k.forwardRef((r,i)=>m.jsx("div",{...r,ref:i,className:Qt(r.className,t)})),H4=U4("h4"),HD=k.forwardRef(({className:t,bsPrefix:r,as:i=H4,...l},u)=>(r=Cn(r,"modal-title"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));HD.displayName="ModalTitle";const G4=HD;function W4(t){return m.jsx(Gp,{...t,timeout:null})}function X4(t){return m.jsx(Gp,{...t,timeout:null})}const GD=k.forwardRef(({bsPrefix:t,className:r,style:i,dialogClassName:l,contentClassName:u,children:d,dialogAs:v=zD,"data-bs-theme":h,"aria-labelledby":y,"aria-describedby":C,"aria-label":x,show:w=!1,animation:R=!0,backdrop:j=!0,keyboard:I=!0,onEscapeKeyDown:_,onShow:A,onHide:L,container:P,autoFocus:F=!0,enforceFocus:U=!0,restoreFocus:B=!0,restoreFocusOptions:z,onEntered:X,onExit:Z,onExiting:ue,onEnter:ie,onEntering:ge,onExited:de,backdropClassName:_e,manager:Ee,...Ce},je)=>{const[Le,re]=k.useState({}),[Ie,G]=k.useState(!1),Y=k.useRef(!1),ne=k.useRef(!1),be=k.useRef(null),[we,Ne]=w0(),Oe=hs(je,Ne),ce=yr(L),fe=G0();t=Cn(t,"modal");const Ve=k.useMemo(()=>({onHide:ce}),[ce]);function Ge(){return Ee||k4({isRTL:fe})}function tt(St){if(!rh)return;const Pn=Ge().getScrollbarWidth()>0,un=St.scrollHeight>nh(St).documentElement.clientHeight;re({paddingRight:Pn&&!un?gA():void 0,paddingLeft:!Pn&&un?gA():void 0})}const ot=yr(()=>{we&&tt(we.dialog)});PR(()=>{kw(window,"resize",ot),be.current==null||be.current()});const Ae=()=>{Y.current=!0},Rt=St=>{Y.current&&we&&St.target===we.dialog&&(ne.current=!0),Y.current=!1},dt=()=>{G(!0),be.current=TO(we.dialog,()=>{G(!1)})},en=St=>{St.target===St.currentTarget&&dt()},sn=St=>{if(j==="static"){en(St);return}if(ne.current||St.target!==St.currentTarget){ne.current=!1;return}L==null||L()},ln=St=>{I?_==null||_(St):(St.preventDefault(),j==="static"&&dt())},In=(St,Pn)=>{St&&tt(St),ie==null||ie(St,Pn)},Vt=St=>{be.current==null||be.current(),Z==null||Z(St)},xn=(St,Pn)=>{ge==null||ge(St,Pn),SR(window,"resize",ot)},Qn=St=>{St&&(St.style.display=""),de==null||de(St),kw(window,"resize",ot)},Tr=k.useCallback(St=>m.jsx("div",{...St,className:Qt(`${t}-backdrop`,_e,!R&&"show")}),[R,_e,t]),Hn={...i,...Le};Hn.display="block";const _r=St=>m.jsx("div",{role:"dialog",...St,style:Hn,className:Qt(r,t,Ie&&`${t}-static`,!R&&"show"),onClick:j?sn:void 0,onMouseUp:Rt,"data-bs-theme":h,"aria-label":x,"aria-labelledby":y,"aria-describedby":C,children:m.jsx(v,{...Ce,onMouseDown:Ae,className:l,contentClassName:u,children:d})});return m.jsx(VD.Provider,{value:Ve,children:m.jsx(A4,{show:w,ref:Oe,backdrop:j,container:P,keyboard:!0,autoFocus:F,enforceFocus:U,restoreFocus:B,restoreFocusOptions:z,onEscapeKeyDown:ln,onShow:A,onHide:L,onEnter:In,onEntering:xn,onEntered:X,onExit:Vt,onExiting:ue,onExited:Qn,manager:Ge(),transition:R?W4:void 0,backdropTransition:R?X4:void 0,renderBackdrop:Tr,renderDialog:_r})})});GD.displayName="Modal";const Ln=Object.assign(GD,{Body:M4,Header:$4,Title:G4,Footer:P4,Dialog:zD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Y4=pr.forwardRef(({children:t,onClick:r},i)=>m.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:i,onClick:l=>{l.preventDefault(),r(l)},children:m.jsx("span",{className:"dropdown-toggle",children:t})}));function Z4({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l}=ri(t,r),{project:u}=Ji(r||i.grantNumber);if(!i||!u||i.error||u.error)return;const d=Yt.routes.request_action_path(t,"new"),v=i.allowedActions.Renewal?Array.isArray(i.allowedActions.Renewal)?[...i.allowedActions.Renewal]:[i.allowedActions.Renewal]:[];v.sort((C,x)=>C.opportunityId<x.opportunityId?-1:1);const h=[{id:"extension",action:`${d}?action_type=Extension`,isEnabled:"Extension"in i.allowedActions,button:"Request an Extension",enabled:i.usesCredits?m.jsx("p",{children:"Need more time to use your current credits and allocations? You can extend your project's end date up to six months past your funding end date, or up to 12 months at a time for projects not supported by a funding award."}):m.jsx("p",{children:"Need more time to use your current allocations? A one-time extension can extend your project end date by up to six months."}),disabled:m.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",i.usesCredits?m.jsxs(m.Fragment,{children:[" ","Extensions can be requested starting 90 days before your project's current end date."]}):null]})},{id:"supplement",action:`${d}?action_type=Supplement`,isEnabled:"Supplement"in i.allowedActions,button:"Request a Supplement",enabled:i.usesCredits?m.jsxs("p",{children:["Need more credits to complete your project? Great news! Your"," ",i.allocationType," project is eligible for a supplement of"," ",{Explore:"200,000",Discover:"750,000",Accelerate:"1,500,000"}[i.allocationType]," ","additional ACCESS credits."]}):m.jsxs("p",{children:["Need more units to complete your research? Great news! Your"," ",i.allocationType," project is eligible for a supplement of additional units."]}),disabled:m.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",i.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:v.map(C=>[C.opportunityName,`${Yt.routes.renew_request_path(t)}?opportunity_id=${C.opportunityId}`,"post"]),isEnabled:"Renewal"in i.allowedActions,button:"Request a Renewal",enabled:m.jsxs("p",{children:["Your ",i.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",m.jsx("a",{href:Yt.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:m.jsxs("p",{children:["Your project is not currently eligible for renewal.",i.usesCredits&&m.jsxs(m.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),i.isMaximize&&m.jsxs(m.Fragment,{children:[" ","You can submit a renewal request to the Maximize ACCESS opportunity closest to your project's current end date."]})]})},{id:"help",action:[["Learn How to Manage Allocations",Yt.routes.how_to_path(),"get"],["Open a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:m.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",m.jsxs("em",{children:["grant number ",u.grantNumber]})," and a detailed description of the problem."]})}];h.sort((C,x)=>C.isEnabled<x.isEnabled?1:-1);const y=h.map(({id:C,action:x,isEnabled:w,button:R,enabled:j,disabled:I})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(x)&&x.length?m.jsxs(Ub,{className:"d-flex flex-column",children:[m.jsx(Ub.Toggle,{as:Y4,children:R}),m.jsx(Ub.Menu,{children:x.map(([_,A,L])=>m.jsx(Ub.Item,{href:A,onClick:P=>{L!=="get"&&(P.preventDefault(),P.target.dataset.method=L,$&&$.rails&&$.rails.handleMethod($(P.target)))},children:_},A))})]}):m.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${w?"":"disabled"}`,href:w?x:"",children:m.jsx("span",{children:R})})}),m.jsx("div",{className:"col-sm-8 mb-2",children:w?j:I})]},C));return m.jsxs(Ln,{size:"lg",show:i.showActionsModal,onHide:l,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Manage Your Project"})}),m.jsxs(Ln.Body,{children:[m.jsxs("p",{children:["Please select an action to manage your project"," ",m.jsxs("strong",{children:[u.grantNumber,": ",u.title]}),"."]}),y]})]})}function q4({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleConfirmModal:u}=ri(t,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const v=i.usesCredits?"credits":"units",h=(1-tO(i))*100;return m.jsxs(Ln,{size:"lg",show:i.showConfirmModal,onHide:u,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Consider Requesting an Exchange"})}),m.jsx(Ln.Body,{children:m.jsxs("p",{children:[m.jsxs("strong",{children:[Math.round(h),"% of your allocation is unused."]})," ","Are you sure you want to request more ",v,"? You can exchange"," ",i.usesCredits?"credits for resources or ":""," one resource for another by changing the ",m.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:u,children:"Return to Exchange"}),m.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{u(),l()},children:["Request More ",v]})]})})]})}function J4({requestId:t,grantNumber:r,actionId:i}){const{deleteAction:l,request:u,toggleDeleteModal:d}=ri(t,r);if(!u||u.error)return;const v=u.actions.find(R=>R.actionId==i);if(!v)return;const{deleteStatus:h,isRequest:y}=v,C=h==ta.pending,x=h==ta.error,w=()=>d(i);return m.jsxs(Ln,{show:v.showDeleteModal,onHide:w,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Confirm Deletion"})}),m.jsxs(Ln.Body,{children:[x&&m.jsxs(Mr,{color:"danger",children:["Deletion of the ",y?"request":"action"," failed."]}),m.jsxs("p",{children:["Are you sure you want to delete"," ",!y&&m.jsxs(m.Fragment,{children:["action"," ",m.jsxs("strong",{children:[v.type,": ",Ud(v.date)]})," ","on"," "]}),"request ",m.jsx("strong",{children:pR(u)}),"? Deletions cannot be undone."]})]}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:w,disabled:C,children:"Cancel"}),m.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>l(i),disabled:C,children:C?"Deleting...":"Delete"})]})})]})}function _0({color:t="primary",href:r,icon:i,onClick:l,target:u,title:d}){const v=m.jsx("i",{className:`bi bi-${i}`}),h={className:`btn btn-sm ms-1 text-${t}`,href:r,onClick:l,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:u,title:d};return r?m.jsx("a",{...h,children:v}):m.jsx("button",{...h,children:v})}function WD({action:t,request:r,toggleDeleteModal:i}){const l=t.allowedOperations||[],u=[];l.includes("Edit")&&u.push(m.jsx(_0,{href:t.isRequest?Yt.routes.edit_request_path(r.requestId):Yt.routes.edit_request_action_path(r.requestId,t.actionId),icon:"pencil",title:"Edit action"},"edit")),l.includes("Delete")&&u.push(m.jsx(_0,{color:"danger",icon:"trash",onClick:()=>i(t.actionId),title:"Edit action"},"delete"));const d=`${t.type}: ${Ud(t.date)}`;return m.jsxs(m.Fragment,{children:[t.detailAvailable?m.jsx("a",{href:Yt.routes.request_action_path(r.requestId,t.actionId),children:d}):d,u]})}function Wd({resource:t,userGuide:r=!0}){const{full:i,short:l}=U0(t.name),u=l?m.jsx("abbr",{title:i,children:l}):i;return m.jsxs(m.Fragment,{children:[yc(Yt.resourceTypeIcons[t.icon])," ",u,!t.isCredit&&t.userGuideUrl&&r?m.jsx(_0,{icon:"book",href:t.userGuideUrl,target:"_blank",title:`${t.name} User Guide`}):null]})}function qp({status:t,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[t]||"dark";return m.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:t})}const Q4=t=>m.jsx("span",{className:t<0?"text-danger":"",children:t===0?"":t.toLocaleString()});function K4({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ri(t,r),{project:u,setRequest:d}=Ji(r||i.grantNumber);if(!i||!u)return;const v=u.requestsList;let h=0;for(;h<v.length&&v[h].requestId!==t;)h++;const y=v[h+1],C=v[h-1],x=(_,A)=>_?m.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(_.requestId),children:[A=="prev"?m.jsx("i",{className:"bi bi-chevron-left"}):null,pR(_),A=="next"?m.jsx("i",{className:"bi bi-chevron-right"}):null]}):m.jsx("span",{}),w=new Set,R=[];for(let _ of i.actions)for(let A of _.resources)w.has(A.resourceId)||(w.add(A.resourceId),R.push(A));R.sort(g0);const j=[{key:"action",name:"Action Details",format:(_,A)=>m.jsx(WD,{action:A,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:_=>m.jsx(qp,{status:_})},...R.map(_=>({key:`resource${_.resourceId}`,name:_.name,icon:_.icon,class:"text-end",format:_.isBoolean?A=>A?hR(A):null:Q4,formatHeader:(A,L)=>m.jsx(Wd,{resource:L,userGuide:!1})}))],I=i.actions.map(_=>{const A={..._};for(let{resourceId:L}of R)A[`resource${L}`]=0;for(let{resourceId:L,approved:P,requested:F}of _.resources)A[`resource${L}`]=P||F||0;return A});return m.jsxs("div",{className:"history",children:[m.jsx(ou,{columns:j,rows:I}),m.jsxs("div",{className:"buttons d-flex justify-content-between",children:[x(y,"prev"),x(C,"next")]})]})}function eW({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ri(t,r);if(!i)return;const u=[{key:"type",name:"Action Details",format:(d,v)=>m.jsx(WD,{action:v,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:d=>m.jsx(qp,{status:d})}];if(i.actions&&i.actions.length)return m.jsx(ou,{rows:i.actions,columns:u})}function cm(...t){return t.filter(r=>r!=null).reduce((r,i)=>{if(typeof i!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return r===null?i:function(...u){r.apply(this,u),i.apply(this,u)}},null)}const tW={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function nW(t,r){const i=`offset${t[0].toUpperCase()}${t.slice(1)}`,l=r[i],u=tW[t];return l+parseInt(tu(r,u[0]),10)+parseInt(tu(r,u[1]),10)}const rW={[vc]:"collapse",[S0]:"collapsing",[Jl]:"collapsing",[mc]:"collapse show"},aW=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:d,children:v,dimension:h="height",in:y=!1,timeout:C=300,mountOnEnter:x=!1,unmountOnExit:w=!1,appear:R=!1,getDimensionValue:j=nW,...I},_)=>{const A=typeof h=="function"?h():h,L=k.useMemo(()=>cm(z=>{z.style[A]="0"},t),[A,t]),P=k.useMemo(()=>cm(z=>{const X=`scroll${A[0].toUpperCase()}${A.slice(1)}`;z.style[A]=`${z[X]}px`},r),[A,r]),F=k.useMemo(()=>cm(z=>{z.style[A]=null},i),[A,i]),U=k.useMemo(()=>cm(z=>{z.style[A]=`${j(A,z)}px`,NO(z)},l),[l,j,A]),B=k.useMemo(()=>cm(z=>{z.style[A]=null},u),[A,u]);return m.jsx(IO,{ref:_,addEndListener:_O,...I,"aria-expanded":I.role?y:null,onEnter:L,onEntering:P,onEntered:F,onExit:U,onExiting:B,childRef:v.ref,in:y,timeout:C,mountOnEnter:x,unmountOnExit:w,appear:R,children:(z,X)=>pr.cloneElement(v,{...X,className:Qt(d,v.props.className,rW[z],A==="width"&&"collapse-horizontal")})})}),iW=aW;function XD(t,r){return Array.isArray(t)?t.includes(r):t===r}const YD=k.createContext({});YD.displayName="AccordionContext";const q0=YD,ZD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,children:l,eventKey:u,...d},v)=>{const{activeEventKey:h}=k.useContext(q0);return r=Cn(r,"accordion-collapse"),m.jsx(iW,{ref:v,in:XD(h,u),...d,className:Qt(i,r),children:m.jsx(t,{children:k.Children.only(l)})})});ZD.displayName="AccordionCollapse";const qD=ZD,JD=k.createContext({eventKey:""});JD.displayName="AccordionItemContext";const BR=JD,QD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,...C},x)=>{r=Cn(r,"accordion-body");const{eventKey:w}=k.useContext(BR);return m.jsx(qD,{eventKey:w,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,children:m.jsx(t,{ref:x,...C,className:Qt(i,r)})})});QD.displayName="AccordionBody";const oW=QD;function sW(t,r){const{activeEventKey:i,onSelect:l,alwaysOpen:u}=k.useContext(q0);return d=>{let v=t===i?null:t;u&&(Array.isArray(i)?i.includes(t)?v=i.filter(h=>h!==t):v=[...i,t]:v=[t]),l==null||l(v,d),r==null||r(d)}}const KD=k.forwardRef(({as:t="button",bsPrefix:r,className:i,onClick:l,...u},d)=>{r=Cn(r,"accordion-button");const{eventKey:v}=k.useContext(BR),h=sW(v,l),{activeEventKey:y}=k.useContext(q0);return t==="button"&&(u.type="button"),m.jsx(t,{ref:d,onClick:h,...u,"aria-expanded":Array.isArray(y)?y.includes(v):v===y,className:Qt(i,r,!XD(y,v)&&"collapsed")})});KD.displayName="AccordionButton";const ek=KD,tk=k.forwardRef(({as:t="h2",bsPrefix:r,className:i,children:l,onClick:u,...d},v)=>(r=Cn(r,"accordion-header"),m.jsx(t,{ref:v,...d,className:Qt(i,r),children:m.jsx(ek,{onClick:u,children:l})})));tk.displayName="AccordionHeader";const lW=tk,nk=k.forwardRef(({as:t="div",bsPrefix:r,className:i,eventKey:l,...u},d)=>{r=Cn(r,"accordion-item");const v=k.useMemo(()=>({eventKey:l}),[l]);return m.jsx(BR.Provider,{value:v,children:m.jsx(t,{ref:d,...u,className:Qt(i,r)})})});nk.displayName="AccordionItem";const uW=nk,rk=k.forwardRef((t,r)=>{const{as:i="div",activeKey:l,bsPrefix:u,className:d,onSelect:v,flush:h,alwaysOpen:y,...C}=W0(t,{activeKey:"onSelect"}),x=Cn(u,"accordion"),w=k.useMemo(()=>({activeEventKey:l,onSelect:v,alwaysOpen:y}),[l,v,y]);return m.jsx(q0.Provider,{value:w,children:m.jsx(i,{ref:r,...C,className:Qt(d,x,h&&`${x}-flush`)})})});rk.displayName="Accordion";const us=Object.assign(rk,{Button:ek,Collapse:qD,Item:uW,Header:lW,Body:oW}),zw=2**31-1;function ak(t,r,i){const l=i-Date.now();t.current=l<=zw?setTimeout(r,l):setTimeout(()=>ak(t,r,i),zw)}function cW(){const t=_R(),r=k.useRef();return PR(()=>clearTimeout(r.current)),k.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,d=0){t()&&(i(),d<=zw?r.current=setTimeout(u,d):ak(r,u,Date.now()+d))}return{set:l,clear:i,handleRef:r}},[])}const dW=()=>{};function fW(t,r,{disabled:i,clickTrigger:l}={}){const u=r||dW;pD(t,u,{disabled:i,clickTrigger:l});const d=yr(v=>{LD(v)&&u(v)});k.useEffect(()=>{if(i||t==null)return;const v=nh(i0(t));let h=(v.defaultView||window).event;const y=Kl(v,"keyup",C=>{if(C===h){h=void 0;return}d(C)});return()=>{y()}},[t,i,d])}const ik=k.forwardRef((t,r)=>{const{flip:i,offset:l,placement:u,containerPadding:d,popperConfig:v={},transition:h,runTransition:y}=t,[C,x]=w0(),[w,R]=w0(),j=hs(x,r),I=Fw(t.container),_=Fw(t.target),[A,L]=k.useState(!t.show),P=dD(_,C,hD({placement:u,enableEvents:!!t.show,containerPadding:d||5,flip:i,offset:l,arrowElement:w,popperConfig:v}));t.show&&A&&L(!1);const F=(...ge)=>{L(!0),t.onExited&&t.onExited(...ge)},U=t.show||!A;if(fW(C,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!U)return null;const{onExit:B,onExiting:z,onEnter:X,onEntering:Z,onEntered:ue}=t;let ie=t.children(Object.assign({},P.attributes.popper,{style:P.styles.popper,ref:j}),{popper:P,placement:u,show:!!t.show,arrowProps:Object.assign({},P.attributes.arrow,{style:P.styles.arrow,ref:R})});return ie=Vw(h,y,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ie,onExit:B,onExiting:z,onExited:F,onEnter:X,onEntering:Z,onEntered:ue}),I?zd.createPortal(ie,I):null});ik.displayName="Overlay";const pW=ik,ok=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"popover-header"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));ok.displayName="PopoverHeader";const hW=ok,sk=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"popover-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));sk.displayName="PopoverBody";const lk=sk;function uk(t,r){let i=t;return t==="left"?i=r?"end":"start":t==="right"&&(i=r?"start":"end"),i}function ck(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const vW=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,body:d,arrowProps:v,hasDoneInitialMeasure:h,popper:y,show:C,...x},w)=>{const R=Cn(t,"popover"),j=G0(),[I]=(r==null?void 0:r.split("-"))||[],_=uk(I,j);let A=l;return C&&!h&&(A={...l,...ck(y==null?void 0:y.strategy)}),m.jsxs("div",{ref:w,role:"tooltip",style:A,"x-placement":I,className:Qt(i,R,I&&`bs-popover-${_}`),...x,children:[m.jsx("div",{className:"popover-arrow",...v}),d?m.jsx(lk,{children:u}):u]})}),mW=Object.assign(vW,{Header:hW,Body:lk,POPPER_OFFSET:[0,8]}),dk=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,arrowProps:d,hasDoneInitialMeasure:v,popper:h,show:y,...C},x)=>{t=Cn(t,"tooltip");const w=G0(),[R]=(r==null?void 0:r.split("-"))||[],j=uk(R,w);let I=l;return y&&!v&&(I={...l,...ck(h==null?void 0:h.strategy)}),m.jsxs("div",{ref:x,style:I,role:"tooltip","x-placement":R,className:Qt(i,t,`bs-tooltip-${j}`),...C,children:[m.jsx("div",{className:"tooltip-arrow",...d}),m.jsx("div",{className:`${t}-inner`,children:u})]})});dk.displayName="Tooltip";const J0=Object.assign(dk,{TOOLTIP_OFFSET:[0,6]});function gW(t){const r=k.useRef(null),i=Cn(void 0,"popover"),l=Cn(void 0,"tooltip"),u=k.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(r.current){if(Bw(r.current,i))return mW.POPPER_OFFSET;if(Bw(r.current,l))return J0.TOOLTIP_OFFSET}return[0,0]}}}),[t,i,l]);return[r,[u]]}function yW(t,r){const{ref:i}=t,{ref:l}=r;t.ref=i.__wrapped||(i.__wrapped=u=>i(E0(u))),r.ref=l.__wrapped||(l.__wrapped=u=>l(E0(u)))}const fk=k.forwardRef(({children:t,transition:r=Gp,popperConfig:i={},rootClose:l=!1,placement:u="top",show:d=!1,...v},h)=>{const y=k.useRef({}),[C,x]=k.useState(null),[w,R]=gW(v.offset),j=hs(h,w),I=r===!0?Gp:r||void 0,_=yr(A=>{x(A),i==null||i.onFirstUpdate==null||i.onFirstUpdate(A)});return R0(()=>{C&&v.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[C,v.target]),k.useEffect(()=>{d||x(null)},[d]),m.jsx(pW,{...v,ref:j,popperConfig:{...i,modifiers:R.concat(i.modifiers||[]),onFirstUpdate:_},transition:I,rootClose:l,placement:u,show:d,children:(A,{arrowProps:L,popper:P,show:F})=>{var U,B;yW(A,L);const z=P==null?void 0:P.placement,X=Object.assign(y.current,{state:P==null?void 0:P.state,scheduleUpdate:P==null?void 0:P.update,placement:z,outOfBoundaries:(P==null||(U=P.state)==null||(B=U.modifiersData.hide)==null?void 0:B.isReferenceHidden)||!1,strategy:i.strategy}),Z=!!C;return typeof t=="function"?t({...A,placement:z,show:F,...!r&&F&&{className:"show"},popper:X,arrowProps:L,hasDoneInitialMeasure:Z}):k.cloneElement(t,{...A,placement:z,arrowProps:L,popper:X,hasDoneInitialMeasure:Z,className:Qt(t.props.className,!r&&F&&"show"),style:{...t.props.style,...A.style}})}})});fk.displayName="Overlay";const pk=fk;var bW={};function CW(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function CA(t,r,i){const[l]=r,u=l.currentTarget,d=l.relatedTarget||l.nativeEvent[i];(!d||d!==u)&&!Nm(u,d)&&t(...r)}Ue.oneOf(["click","hover","focus"]);const xW=({trigger:t=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:d=!1,onToggle:v,delay:h,placement:y,flip:C=y&&y.indexOf("auto")!==-1,...x})=>{const w=k.useRef(null),R=hs(w,i.ref),j=cW(),I=k.useRef(""),[_,A]=FO(u,d,v),L=CW(h),{onFocus:P,onBlur:F,onClick:U}=typeof i!="function"?k.Children.only(i).props:{},B=Ce=>{R(E0(Ce))},z=k.useCallback(()=>{if(j.clear(),I.current="show",!L.show){A(!0);return}j.set(()=>{I.current==="show"&&A(!0)},L.show)},[L.show,A,j]),X=k.useCallback(()=>{if(j.clear(),I.current="hide",!L.hide){A(!1);return}j.set(()=>{I.current==="hide"&&A(!1)},L.hide)},[L.hide,A,j]),Z=k.useCallback((...Ce)=>{z(),P==null||P(...Ce)},[z,P]),ue=k.useCallback((...Ce)=>{X(),F==null||F(...Ce)},[X,F]),ie=k.useCallback((...Ce)=>{A(!_),U==null||U(...Ce)},[U,A,_]),ge=k.useCallback((...Ce)=>{CA(z,Ce,"fromElement")},[z]),de=k.useCallback((...Ce)=>{CA(X,Ce,"toElement")},[X]),_e=t==null?[]:[].concat(t),Ee={ref:B};return _e.indexOf("click")!==-1&&(Ee.onClick=ie),_e.indexOf("focus")!==-1&&(Ee.onFocus=Z,Ee.onBlur=ue),_e.indexOf("hover")!==-1&&(bW.NODE_ENV!=="production"&&MR(_e.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),Ee.onMouseOver=ge,Ee.onMouseOut=de),m.jsxs(m.Fragment,{children:[typeof i=="function"?i(Ee):k.cloneElement(i,Ee),m.jsx(pk,{...x,show:_,onHide:X,flip:C,placement:y,popperConfig:l,target:w.current,children:r})]})},zR=xW;function SW({requestId:t,grantNumber:r}){const{request:i}=ri(t,r),{project:l}=Ji(r||i.grantNumber),{setTab:u}=Ji(r||i.grantNumber);if(!i||!l)return;let d;const v={};for(let R of l.users||[])for(let j of R.resourceIds)v[j]=v[j]||0,v[j]+=1;const h=(i.resources||[]).filter(R=>R.isCredit?(d=R,!1):R.allocated>0).map((R,j)=>({...R,userCount:v[R.resourceId]||0,color:Ew[j%Ew.length]})),y=d?d.allocated:0,C="Exchange"in i.allowedActions,x=i.exchangeActionId!==null,w=[{key:"name",name:"Resource",format:(R,j)=>m.jsx(Wd,{resource:j})},{key:"isActive",name:"Status",format:R=>m.jsx(qp,{status:R?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(R,j)=>{if(j.isBoolean)return hR(j.allocated);const I=j.allocated-R,_=Math.max(I,0)*100/j.allocated;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:`usage bg-${j.color}`,style:{width:`${Math.min(_,100)}%`}}),ga(I,{abbreviate:!0})," of"," ",ga(j.allocated,{abbreviate:!0})," ",j.unit," ","remaining (",Math.round(_),"%)"]})}},{key:"endDate",name:"End Date",format:R=>Ud(R)}];return l.isManager&&w.push({key:"userCount",name:"Users",class:"text-end",format:ga}),l.currentUser&&w.push({key:"resourceUsername",name:"My Username",format:(R,j)=>{const I=l.currentUser.resourceUsernames[j.resourceId];if(I)return I;if(l.currentUser.resourceAccountPendingIds.includes(j.resourceId))return m.jsx(qp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(l.currentUser.resourceIds.includes(j.resourceId)||!j.isActive)return m.jsx(m.Fragment,{children:"—"});if(l.isManager)return m.jsx("a",{href:"#",onClick:A=>{A.preventDefault(),u("users")},children:"Grant access"});const _=m.jsxs(J0,{children:["Please contact ",vR(l)," to request access to this resource."]});return m.jsx(zR,{overlay:_,children:m.jsx("a",{href:"#",onClick:A=>{A.preventDefault()},children:"Request access"})})}}),m.jsxs("div",{className:"overview",children:[C&&!x&&y>Yt.creditAlertThreshold?m.jsxs("button",{onClick:()=>u("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[m.jsxs("span",{children:[m.jsxs("span",{className:"fs-3",children:[yc(Yt.resourceTypeIcons[d.icon])," ",ga(y)]})," ",d.unit," available"]}),m.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",m.jsx("span",{className:"fs-3",children:yc("chevron-right")})]})]}):null,h.length?m.jsx(ou,{columns:w,rows:h}):null]})}const EW=[{key:"role",name:"Role",format:t=>m.jsxs(m.Fragment,{children:[yc(Yt.roleIcons[t])," ",t]})},{key:"users",name:"Users",format:t=>{const r=t.slice(0,3);return t.length>4&&(r[2]=`${ga(t.length-3)} others`),r.map((i,l)=>{const u=r.length-l;return`${i}${u>2?",":u==2&&r.length>1?" and":""}`}).join(" ")}}],wW=({requestId:t,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const l=H0.map(({role:u,name:d})=>({role:d,users:(i.users||[]).filter(v=>v.role===u).map(v=>`${v.firstName} ${v.lastName}`)})).filter(u=>u.users.length>0);return l.length?m.jsx(ou,{rows:l,columns:EW}):null};function RW({requestId:t,grantNumber:r}){const{request:i}=ri(t,r),{project:l,username:u}=Ji(r||i.grantNumber);if(!(!i||!l||i.error||l.error)&&i)return m.jsxs("div",{className:"overview",children:[m.jsx(SW,{requestId:t,grantNumber:r}),l.isManager?m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(wW,{requestId:t,grantNumber:r})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(eW,{requestId:t})})]}):null]})}function Jd(t){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jd(t)}function TW(t,r){if(Jd(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(Jd(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function hk(t){var r=TW(t,"string");return Jd(r)=="symbol"?r:String(r)}function Bp(t,r,i){return r=hk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function xA(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),i.push.apply(i,l)}return i}function bt(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?xA(Object(i),!0).forEach(function(l){Bp(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):xA(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function _W(t){if(Array.isArray(t))return t}function NW(t,r){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var l,u,d,v,h=[],y=!0,C=!1;try{if(d=(i=i.call(t)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(l=d.call(i)).done)&&(h.push(l.value),h.length!==r);y=!0);}catch(x){C=!0,u=x}finally{try{if(!y&&i.return!=null&&(v=i.return(),Object(v)!==v))return}finally{if(C)throw u}}return h}}function $w(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,l=new Array(r);i<r;i++)l[i]=t[i];return l}function vk(t,r){if(t){if(typeof t=="string")return $w(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return $w(t,r)}}function IW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
293
|
+
*/(function(t){(function(){var r={}.hasOwnProperty;function i(){for(var d="",v=0;v<arguments.length;v++){var h=arguments[v];h&&(d=u(d,l(h)))}return d}function l(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return i.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var v="";for(var h in d)r.call(d,h)&&d[h]&&(v=u(v,h));return v}function u(d,v){return v?d?d+" "+v:d+v:d}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(EO);var GG=EO.exports;const Qt=Qp(GG);function xR(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function x0(t,r){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},x0(t,r)}function WG(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,x0(t,r)}const XI={disabled:!1};var wO={},XG=wO.NODE_ENV!=="production"?Ue.oneOfType([Ue.number,Ue.shape({enter:Ue.number,exit:Ue.number,appear:Ue.number}).isRequired]):null;wO.NODE_ENV!=="production"&&Ue.oneOfType([Ue.string,Ue.shape({enter:Ue.string,exit:Ue.string,active:Ue.string}),Ue.shape({enter:Ue.string,enterDone:Ue.string,enterActive:Ue.string,exit:Ue.string,exitDone:Ue.string,exitActive:Ue.string})]);const RO=pr.createContext(null);var YG=function(r){return r.scrollTop},ZG={},ym="unmounted",vc="exited",Jl="entering",mc="entered",S0="exiting",su=function(t){WG(r,t);function r(l,u){var d;d=t.call(this,l,u)||this;var v=u,h=v&&!v.isMounting?l.enter:l.appear,y;return d.appearStatus=null,l.in?h?(y=vc,d.appearStatus=Jl):y=mc:l.unmountOnExit||l.mountOnEnter?y=ym:y=vc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(u,d){var v=u.in;return v&&d.status===ym?{status:vc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(u){var d=null;if(u!==this.props){var v=this.state.status;this.props.in?v!==Jl&&v!==mc&&(d=Jl):(v===Jl||v===mc)&&(d=S0)}this.updateStatus(!1,d)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var u=this.props.timeout,d,v,h;return d=v=h=u,u!=null&&typeof u!="number"&&(d=u.exit,v=u.enter,h=u.appear!==void 0?u.appear:v),{exit:d,enter:v,appear:h}},i.updateStatus=function(u,d){if(u===void 0&&(u=!1),d!==null)if(this.cancelNextCallback(),d===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var v=this.props.nodeRef?this.props.nodeRef.current:zd.findDOMNode(this);v&&YG(v)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vc&&this.setState({status:ym})},i.performEnter=function(u){var d=this,v=this.props.enter,h=this.context?this.context.isMounting:u,y=this.props.nodeRef?[h]:[zd.findDOMNode(this),h],C=y[0],x=y[1],w=this.getTimeouts(),R=h?w.appear:w.enter;if(!u&&!v||XI.disabled){this.safeSetState({status:mc},function(){d.props.onEntered(C)});return}this.props.onEnter(C,x),this.safeSetState({status:Jl},function(){d.props.onEntering(C,x),d.onTransitionEnd(R,function(){d.safeSetState({status:mc},function(){d.props.onEntered(C,x)})})})},i.performExit=function(){var u=this,d=this.props.exit,v=this.getTimeouts(),h=this.props.nodeRef?void 0:zd.findDOMNode(this);if(!d||XI.disabled){this.safeSetState({status:vc},function(){u.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:S0},function(){u.props.onExiting(h),u.onTransitionEnd(v.exit,function(){u.safeSetState({status:vc},function(){u.props.onExited(h)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(u,d){d=this.setNextCallback(d),this.setState(u,d)},i.setNextCallback=function(u){var d=this,v=!0;return this.nextCallback=function(h){v&&(v=!1,d.nextCallback=null,u(h))},this.nextCallback.cancel=function(){v=!1},this.nextCallback},i.onTransitionEnd=function(u,d){this.setNextCallback(d);var v=this.props.nodeRef?this.props.nodeRef.current:zd.findDOMNode(this),h=u==null&&!this.props.addEndListener;if(!v||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[v,this.nextCallback],C=y[0],x=y[1];this.props.addEndListener(C,x)}u!=null&&setTimeout(this.nextCallback,u)},i.render=function(){var u=this.state.status;if(u===ym)return null;var d=this.props,v=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var h=xR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(RO.Provider,{value:null},typeof v=="function"?v(u,h):pr.cloneElement(pr.Children.only(v),h))},r}(pr.Component);su.contextType=RO;su.propTypes=ZG.NODE_ENV!=="production"?{nodeRef:Ue.shape({current:typeof Element>"u"?Ue.any:function(t,r,i,l,u,d){var v=t[r];return Ue.instanceOf(v&&"ownerDocument"in v?v.ownerDocument.defaultView.Element:Element)(t,r,i,l,u,d)}}),children:Ue.oneOfType([Ue.func.isRequired,Ue.element.isRequired]).isRequired,in:Ue.bool,mountOnEnter:Ue.bool,unmountOnExit:Ue.bool,appear:Ue.bool,enter:Ue.bool,exit:Ue.bool,timeout:function(r){var i=XG;r.addEndListener||(i=i.isRequired);for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];return i.apply(void 0,[r].concat(u))},addEndListener:Ue.func,onEnter:Ue.func,onEntering:Ue.func,onEntered:Ue.func,onExit:Ue.func,onExiting:Ue.func,onExited:Ue.func}:{};function Pp(){}su.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pp,onEntering:Pp,onEntered:Pp,onExit:Pp,onExiting:Pp,onExited:Pp};su.UNMOUNTED=ym;su.EXITED=vc;su.ENTERING=Jl;su.ENTERED=mc;su.EXITING=S0;const qG=su;function nh(t){return t&&t.ownerDocument||document}function JG(t){var r=nh(t);return r&&r.defaultView||window}function QG(t,r){return JG(t).getComputedStyle(t,r)}var KG=/([A-Z])/g;function e3(t){return t.replace(KG,"-$1").toLowerCase()}var t3=/^ms-/;function Bb(t){return e3(t).replace(t3,"-ms-")}var n3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function r3(t){return!!(t&&n3.test(t))}function tu(t,r){var i="",l="";if(typeof r=="string")return t.style.getPropertyValue(Bb(r))||QG(t).getPropertyValue(Bb(r));Object.keys(r).forEach(function(u){var d=r[u];!d&&d!==0?t.style.removeProperty(Bb(u)):r3(u)?l+=u+"("+d+") ":i+=Bb(u)+": "+d+";"}),l&&(i+="transform: "+l+";"),t.style.cssText+=";"+i}const rh=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ow=!1,Dw=!1;try{var qE={get passive(){return Ow=!0},get once(){return Dw=Ow=!0}};rh&&(window.addEventListener("test",qE,qE),window.removeEventListener("test",qE,!0))}catch{}function SR(t,r,i,l){if(l&&typeof l!="boolean"&&!Dw){var u=l.once,d=l.capture,v=i;!Dw&&u&&(v=i.__once||function h(y){this.removeEventListener(r,h,d),i.call(this,y)},i.__once=v),t.addEventListener(r,v,Ow?l:d)}t.addEventListener(r,i,l)}function kw(t,r,i,l){var u=l&&typeof l!="boolean"?l.capture:l;t.removeEventListener(r,i,u),i.__once&&t.removeEventListener(r,i.__once,u)}function Kl(t,r,i,l){return SR(t,r,i,l),function(){kw(t,r,i,l)}}function a3(t,r,i,l){if(i===void 0&&(i=!1),l===void 0&&(l=!0),t){var u=document.createEvent("HTMLEvents");u.initEvent(r,i,l),t.dispatchEvent(u)}}function i3(t){var r=tu(t,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function o3(t,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||a3(t,"transitionend",!0)},r+i),d=Kl(t,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),d()}}function TO(t,r,i,l){i==null&&(i=i3(t)||0);var u=o3(t,i,l),d=Kl(t,"transitionend",r);return function(){u(),d()}}function YI(t,r){const i=tu(t,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function _O(t,r){const i=YI(t,"transitionDuration"),l=YI(t,"transitionDelay"),u=TO(t,d=>{d.target===t&&(u(),r(d))},i+l)}function NO(t){t.offsetHeight}function E0(t){return t&&"setState"in t?zd.findDOMNode(t):t??null}const s3=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:d,addEndListener:v,children:h,childRef:y,...C},x)=>{const w=k.useRef(null),R=hs(w,y),j=z=>{R(E0(z))},I=z=>X=>{z&&w.current&&z(w.current,X)},_=k.useCallback(I(t),[t]),A=k.useCallback(I(r),[r]),L=k.useCallback(I(i),[i]),P=k.useCallback(I(l),[l]),F=k.useCallback(I(u),[u]),U=k.useCallback(I(d),[d]),B=k.useCallback(I(v),[v]);return m.jsx(qG,{ref:x,...C,onEnter:_,onEntered:L,onEntering:A,onExit:P,onExited:U,onExiting:F,addEndListener:B,nodeRef:w,children:typeof h=="function"?(z,X)=>h(z,{...X,ref:j}):pr.cloneElement(h,{ref:j})})}),IO=s3,l3={[Jl]:"show",[mc]:"show"},AO=k.forwardRef(({className:t,children:r,transitionClasses:i={},onEnter:l,...u},d)=>{const v={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},h=k.useCallback((y,C)=>{NO(y),l==null||l(y,C)},[l]);return m.jsx(IO,{ref:d,addEndListener:_O,...v,onEnter:h,childRef:r.ref,children:(y,C)=>k.cloneElement(r,{...C,className:Qt("fade",t,r.props.className,l3[y],i[y])})})});AO.displayName="Fade";const Gp=AO;function ER(t){return typeof t=="boolean"?t?Gp:CR:t}const jO=({transition:t,...r})=>m.jsx(SO,{...r,transition:ER(t)});jO.displayName="TabContainer";const u3=jO,c3=["xxl","xl","lg","md","sm","xs"],d3="xs",OO=k.createContext({prefixes:{},breakpoints:c3,minBreakpoint:d3});function Cn(t,r){const{prefixes:i}=k.useContext(OO);return t||i[r]||r}function G0(){const{dir:t}=k.useContext(OO);return t==="rtl"}const DO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"tab-content"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));DO.displayName="TabContent";const kO=DO,MO=k.forwardRef(({bsPrefix:t,transition:r,...i},l)=>{const[{className:u,as:d="div",...v},{isActive:h,onEnter:y,onEntering:C,onEntered:x,onExit:w,onExiting:R,onExited:j,mountOnEnter:I,unmountOnExit:_,transition:A=Gp}]=bO({...i,transition:ER(r)}),L=Cn(t,"tab-pane");return m.jsx(th.Provider,{value:null,children:m.jsx(au.Provider,{value:null,children:m.jsx(A,{in:h,onEnter:y,onEntering:C,onEntered:x,onExit:w,onExiting:R,onExited:j,mountOnEnter:I,unmountOnExit:_,children:m.jsx(d,{...v,ref:l,className:Qt(u,L,h&&"active")})})})})});MO.displayName="TabPane";const LO=MO,f3={eventKey:Ue.oneOfType([Ue.string,Ue.number]),title:Ue.node.isRequired,disabled:Ue.bool,tabClassName:Ue.string,tabAttrs:Ue.object},PO=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};PO.propTypes=f3;const zb=Object.assign(PO,{Container:u3,Content:kO,Pane:LO});function _t(){return _t=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},_t.apply(this,arguments)}var p3={},h3=function(t,r,i,l,u,d,v,h){if(p3.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!t){var y;if(r===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var C=[i,l,u,d,v,h],x=0;y=new Error(r.replace(/%s/g,function(){return C[x++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},v3=h3;const ZI=Qp(v3);function qI(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function m3(t){var r=g3(t,"string");return typeof r=="symbol"?r:String(r)}function g3(t,r){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function FO(t,r,i){var l=k.useRef(t!==void 0),u=k.useState(r),d=u[0],v=u[1],h=t!==void 0,y=l.current;return l.current=h,!h&&y&&d!==r&&v(r),[h?t:d,k.useCallback(function(C){for(var x=arguments.length,w=new Array(x>1?x-1:0),R=1;R<x;R++)w[R-1]=arguments[R];i&&i.apply(void 0,[C].concat(w)),v(C)},[i])]}function W0(t,r){return Object.keys(r).reduce(function(i,l){var u,d=i,v=d[qI(l)],h=d[l],y=xR(d,[qI(l),l].map(m3)),C=r[l],x=FO(h,v,t[C]),w=x[0],R=x[1];return _t({},y,(u={},u[l]=w,u[C]=R,u))},t)}var JI={exports:{}},Mw={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(l){function u(v,h,y,C,x,w){var R=C||"<<anonymous>>",j=w||y;if(h[y]==null)return v?new Error("Required "+x+" `"+j+"` was not specified "+("in `"+R+"`.")):null;for(var I=arguments.length,_=Array(I>6?I-6:0),A=6;A<I;A++)_[A-6]=arguments[A];return l.apply(void 0,[h,y,R,x,j].concat(_))}var d=u.bind(null,!1);return d.isRequired=u.bind(null,!0),d}t.exports=r.default})(Mw,Mw.exports);var y3=Mw.exports;(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=y3,l=u(i);function u(v){return v&&v.__esModule?v:{default:v}}function d(){for(var v=arguments.length,h=Array(v),y=0;y<v;y++)h[y]=arguments[y];function C(){for(var x=arguments.length,w=Array(x),R=0;R<x;R++)w[R]=arguments[R];var j=null;return h.forEach(function(I){if(j==null){var _=I.apply(void 0,w);_!=null&&(j=_)}}),j}return(0,l.default)(C)}t.exports=r.default})(JI,JI.exports);var b3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Ql(t,r){return b3(t.querySelectorAll(r))}function VO(){const[,t]=k.useReducer(r=>!r,!1);return t}const BO=k.createContext(null);BO.displayName="NavContext";const wR=BO,C3="data-rr-ui-",x3="rrUi";function ah(t){return`${C3}${t}`}function S3(t){return`${x3}${t}`}const E3=["as","disabled"];function w3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function R3(t){return!t||t.trim()==="#"}function RR({tagName:t,disabled:r,href:i,target:l,rel:u,role:d,onClick:v,tabIndex:h=0,type:y}){t||(i!=null||l!=null||u!=null?t="a":t="button");const C={tagName:t};if(t==="button")return[{type:y||"button",disabled:r},C];const x=R=>{if((r||t==="a"&&R3(i))&&R.preventDefault(),r){R.stopPropagation();return}v==null||v(R)},w=R=>{R.key===" "&&(R.preventDefault(),x(R))};return t==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:d??"button",disabled:void 0,tabIndex:r?void 0:h,href:i,target:t==="a"?l:void 0,"aria-disabled":r||void 0,rel:t==="a"?u:void 0,onClick:x,onKeyDown:w},C]}const TR=k.forwardRef((t,r)=>{let{as:i,disabled:l}=t,u=w3(t,E3);const[d,{tagName:v}]=RR(Object.assign({tagName:i,disabled:l},u));return m.jsx(v,Object.assign({},u,d,{ref:r}))});TR.displayName="Button";const T3=["as","active","eventKey"];function _3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function zO({key:t,onClick:r,active:i,id:l,role:u,disabled:d}){const v=k.useContext(au),h=k.useContext(wR),y=k.useContext(th);let C=i;const x={role:u};if(h){!u&&h.role==="tablist"&&(x.role="tab");const w=h.getControllerId(t??null),R=h.getControlledId(t??null);x[ah("event-key")]=t,x.id=w||l,C=i==null&&t!=null?h.activeKey===t:i,(C||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(x["aria-controls"]=R)}return x.role==="tab"&&(x["aria-selected"]=C,C||(x.tabIndex=-1),d&&(x.tabIndex=-1,x["aria-disabled"]=!0)),x.onClick=yr(w=>{d||(r==null||r(w),t!=null&&v&&!w.isPropagationStopped()&&v(t,w))}),[x,{isActive:C}]}const $O=k.forwardRef((t,r)=>{let{as:i=TR,active:l,eventKey:u}=t,d=_3(t,T3);const[v,h]=zO(Object.assign({key:Zd(u,d.href),active:l},d));return v[ah("active")]=h.isActive,m.jsx(i,Object.assign({},d,v,{ref:r}))});$O.displayName="NavItem";const N3=$O,I3=["as","onSelect","activeKey","role","onKeyDown"];function A3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const QI=()=>{},KI=ah("event-key"),UO=k.forwardRef((t,r)=>{let{as:i="div",onSelect:l,activeKey:u,role:d,onKeyDown:v}=t,h=A3(t,I3);const y=VO(),C=k.useRef(!1),x=k.useContext(au),w=k.useContext(th);let R,j;w&&(d=d||"tablist",u=w.activeKey,R=w.getControlledId,j=w.getControllerId);const I=k.useRef(null),_=F=>{const U=I.current;if(!U)return null;const B=Ql(U,`[${KI}]:not([aria-disabled=true])`),z=U.querySelector("[aria-selected=true]");if(!z||z!==document.activeElement)return null;const X=B.indexOf(z);if(X===-1)return null;let Z=X+F;return Z>=B.length&&(Z=0),Z<0&&(Z=B.length-1),B[Z]},A=(F,U)=>{F!=null&&(l==null||l(F,U),x==null||x(F,U))},L=F=>{if(v==null||v(F),!w)return;let U;switch(F.key){case"ArrowLeft":case"ArrowUp":U=_(-1);break;case"ArrowRight":case"ArrowDown":U=_(1);break;default:return}U&&(F.preventDefault(),A(U.dataset[S3("EventKey")]||null,F),C.current=!0,y())};k.useEffect(()=>{if(I.current&&C.current){const F=I.current.querySelector(`[${KI}][aria-selected=true]`);F==null||F.focus()}C.current=!1});const P=hs(r,I);return m.jsx(au.Provider,{value:A,children:m.jsx(wR.Provider,{value:{role:d,activeKey:Zd(u),getControlledId:R||QI,getControllerId:j||QI},children:m.jsx(i,Object.assign({},h,{onKeyDown:L,ref:P,role:d}))})})});UO.displayName="Nav";const j3=Object.assign(UO,{Item:N3}),HO=k.createContext(null);HO.displayName="NavbarContext";const GO=HO,WO=k.createContext(null);WO.displayName="CardHeaderContext";const O3=WO,XO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"nav-item"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));XO.displayName="NavItem";const YO=XO;function w0(){return k.useState(null)}function D3(t,r,i,l=!1){const u=yr(i);k.useEffect(()=>{const d=typeof t=="function"?t():t;return d.addEventListener(r,u,l),()=>d.removeEventListener(r,u,l)},[t])}function _R(){const t=k.useRef(!0),r=k.useRef(()=>t.current);return k.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),r.current}function ZO(t){const r=k.useRef(null);return k.useEffect(()=>{r.current=t}),r.current}const k3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",M3=typeof document<"u",R0=M3||k3?k.useLayoutEffect:k.useEffect,L3=["onKeyDown"];function P3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function F3(t){return!t||t.trim()==="#"}const qO=k.forwardRef((t,r)=>{let{onKeyDown:i}=t,l=P3(t,L3);const[u]=RR(Object.assign({tagName:"a"},l)),d=yr(v=>{u.onKeyDown(v),i==null||i(v)});return F3(l.href)||l.role==="button"?m.jsx("a",Object.assign({ref:r},l,u,{onKeyDown:d})):m.jsx("a",Object.assign({ref:r},l,{onKeyDown:i}))});qO.displayName="Anchor";const JO=qO,QO=k.forwardRef(({bsPrefix:t,className:r,as:i=JO,active:l,eventKey:u,disabled:d=!1,...v},h)=>{t=Cn(t,"nav-link");const[y,C]=zO({key:Zd(u,v.href),active:l,disabled:d,...v});return m.jsx(i,{...v,...y,ref:h,disabled:d,className:Qt(r,t,d&&"disabled",C.isActive&&"active")})});QO.displayName="NavLink";const KO=QO,eD=k.forwardRef((t,r)=>{const{as:i="div",bsPrefix:l,variant:u,fill:d=!1,justify:v=!1,navbar:h,navbarScroll:y,className:C,activeKey:x,...w}=W0(t,{activeKey:"onSelect"}),R=Cn(l,"nav");let j,I,_=!1;const A=k.useContext(GO),L=k.useContext(O3);return A?(j=A.bsPrefix,_=h??!0):L&&({cardHeaderBsPrefix:I}=L),m.jsx(j3,{as:i,ref:r,activeKey:x,className:Qt(C,{[R]:!_,[`${j}-nav`]:_,[`${j}-nav-scroll`]:_&&y,[`${I}-${u}`]:!!I,[`${R}-${u}`]:!!u,[`${R}-fill`]:d,[`${R}-justified`]:v}),...w})});eD.displayName="Nav";const V3=Object.assign(eD,{Item:YO,Link:KO});function eA(t,r){let i=0;return k.Children.map(t,l=>k.isValidElement(l)?r(l,i++):l)}function B3(t,r){let i=0;k.Children.forEach(t,l=>{k.isValidElement(l)&&r(l,i++)})}function z3(t){let r;return B3(t,i=>{r==null&&(r=i.props.eventKey)}),r}function $3(t){const{title:r,eventKey:i,disabled:l,tabClassName:u,tabAttrs:d,id:v}=t.props;return r==null?null:m.jsx(YO,{as:"li",role:"presentation",children:m.jsx(KO,{as:"button",type:"button",eventKey:i,disabled:l,id:v,className:u,...d,children:r})})}const tD=t=>{const{id:r,onSelect:i,transition:l,mountOnEnter:u=!1,unmountOnExit:d=!1,variant:v="tabs",children:h,activeKey:y=z3(h),...C}=W0(t,{activeKey:"onSelect"});return m.jsxs(SO,{id:r,activeKey:y,onSelect:i,transition:ER(l),mountOnEnter:u,unmountOnExit:d,children:[m.jsx(V3,{...C,role:"tablist",as:"ul",variant:v,children:eA(h,$3)}),m.jsx(kO,{children:eA(h,x=>{const w={...x.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,m.jsx(LO,{...w})})})]})};tD.displayName="Tabs";const U3=tD,H3=k.createContext(null),X0=H3;var tA=Object.prototype.hasOwnProperty;function nA(t,r,i){for(i of t.keys())if(bm(i,r))return i}function bm(t,r){var i,l,u;if(t===r)return!0;if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((l=t.length)===r.length)for(;l--&&bm(t[l],r[l]););return l===-1}if(i===Set){if(t.size!==r.size)return!1;for(l of t)if(u=l,u&&typeof u=="object"&&(u=nA(r,u),!u)||!r.has(u))return!1;return!0}if(i===Map){if(t.size!==r.size)return!1;for(l of t)if(u=l[0],u&&typeof u=="object"&&(u=nA(r,u),!u)||!bm(l[1],r.get(u)))return!1;return!0}if(i===ArrayBuffer)t=new Uint8Array(t),r=new Uint8Array(r);else if(i===DataView){if((l=t.byteLength)===r.byteLength)for(;l--&&t.getInt8(l)===r.getInt8(l););return l===-1}if(ArrayBuffer.isView(t)){if((l=t.byteLength)===r.byteLength)for(;l--&&t[l]===r[l];);return l===-1}if(!i||typeof t=="object"){l=0;for(i in t)if(tA.call(t,i)&&++l&&!tA.call(r,i)||!(i in r)||!bm(t[i],r[i]))return!1;return Object.keys(r).length===l}}return t!==t&&r!==r}function G3(t){const r=_R();return[t[0],k.useCallback(i=>{if(r())return t[1](i)},[r,t[1]])]}var Ai="top",To="bottom",_o="right",ji="left",NR="auto",Fm=[Ai,To,_o,ji],Wp="start",Tm="end",W3="clippingParents",nD="viewport",um="popper",X3="reference",rA=Fm.reduce(function(t,r){return t.concat([r+"-"+Wp,r+"-"+Tm])},[]),rD=[].concat(Fm,[NR]).reduce(function(t,r){return t.concat([r,r+"-"+Wp,r+"-"+Tm])},[]),Y3="beforeRead",Z3="read",q3="afterRead",J3="beforeMain",Q3="main",K3="afterMain",e9="beforeWrite",t9="write",n9="afterWrite",r9=[Y3,Z3,q3,J3,Q3,K3,e9,t9,n9];function tl(t){return t.split("-")[0]}function Qi(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function qd(t){var r=Qi(t).Element;return t instanceof r||t instanceof Element}function nl(t){var r=Qi(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function IR(t){if(typeof ShadowRoot>"u")return!1;var r=Qi(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}var Gd=Math.max,T0=Math.min,Xp=Math.round;function Lw(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function aD(){return!/^((?!chrome|android).)*safari/i.test(Lw())}function Yp(t,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var l=t.getBoundingClientRect(),u=1,d=1;r&&nl(t)&&(u=t.offsetWidth>0&&Xp(l.width)/t.offsetWidth||1,d=t.offsetHeight>0&&Xp(l.height)/t.offsetHeight||1);var v=qd(t)?Qi(t):window,h=v.visualViewport,y=!aD()&&i,C=(l.left+(y&&h?h.offsetLeft:0))/u,x=(l.top+(y&&h?h.offsetTop:0))/d,w=l.width/u,R=l.height/d;return{width:w,height:R,top:x,right:C+w,bottom:x+R,left:C,x:C,y:x}}function AR(t){var r=Yp(t),i=t.offsetWidth,l=t.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-l)<=1&&(l=r.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:l}}function iD(t,r){var i=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(i&&IR(i)){var l=r;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function bc(t){return t?(t.nodeName||"").toLowerCase():null}function iu(t){return Qi(t).getComputedStyle(t)}function a9(t){return["table","td","th"].indexOf(bc(t))>=0}function Cc(t){return((qd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Y0(t){return bc(t)==="html"?t:t.assignedSlot||t.parentNode||(IR(t)?t.host:null)||Cc(t)}function aA(t){return!nl(t)||iu(t).position==="fixed"?null:t.offsetParent}function i9(t){var r=/firefox/i.test(Lw()),i=/Trident/i.test(Lw());if(i&&nl(t)){var l=iu(t);if(l.position==="fixed")return null}var u=Y0(t);for(IR(u)&&(u=u.host);nl(u)&&["html","body"].indexOf(bc(u))<0;){var d=iu(u);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||r&&d.willChange==="filter"||r&&d.filter&&d.filter!=="none")return u;u=u.parentNode}return null}function Vm(t){for(var r=Qi(t),i=aA(t);i&&a9(i)&&iu(i).position==="static";)i=aA(i);return i&&(bc(i)==="html"||bc(i)==="body"&&iu(i).position==="static")?r:i||i9(t)||r}function jR(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Cm(t,r,i){return Gd(t,T0(r,i))}function o9(t,r,i){var l=Cm(t,r,i);return l>i?i:l}function oD(){return{top:0,right:0,bottom:0,left:0}}function sD(t){return Object.assign({},oD(),t)}function lD(t,r){return r.reduce(function(i,l){return i[l]=t,i},{})}var s9=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,sD(typeof r!="number"?r:lD(r,Fm))};function l9(t){var r,i=t.state,l=t.name,u=t.options,d=i.elements.arrow,v=i.modifiersData.popperOffsets,h=tl(i.placement),y=jR(h),C=[ji,_o].indexOf(h)>=0,x=C?"height":"width";if(!(!d||!v)){var w=s9(u.padding,i),R=AR(d),j=y==="y"?Ai:ji,I=y==="y"?To:_o,_=i.rects.reference[x]+i.rects.reference[y]-v[y]-i.rects.popper[x],A=v[y]-i.rects.reference[y],L=Vm(d),P=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0,F=_/2-A/2,U=w[j],B=P-R[x]-w[I],z=P/2-R[x]/2+F,X=Cm(U,z,B),Z=y;i.modifiersData[l]=(r={},r[Z]=X,r.centerOffset=X-z,r)}}function u9(t){var r=t.state,i=t.options,l=i.element,u=l===void 0?"[data-popper-arrow]":l;u!=null&&(typeof u=="string"&&(u=r.elements.popper.querySelector(u),!u)||iD(r.elements.popper,u)&&(r.elements.arrow=u))}const c9={name:"arrow",enabled:!0,phase:"main",fn:l9,effect:u9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zp(t){return t.split("-")[1]}var d9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f9(t,r){var i=t.x,l=t.y,u=r.devicePixelRatio||1;return{x:Xp(i*u)/u||0,y:Xp(l*u)/u||0}}function iA(t){var r,i=t.popper,l=t.popperRect,u=t.placement,d=t.variation,v=t.offsets,h=t.position,y=t.gpuAcceleration,C=t.adaptive,x=t.roundOffsets,w=t.isFixed,R=v.x,j=R===void 0?0:R,I=v.y,_=I===void 0?0:I,A=typeof x=="function"?x({x:j,y:_}):{x:j,y:_};j=A.x,_=A.y;var L=v.hasOwnProperty("x"),P=v.hasOwnProperty("y"),F=ji,U=Ai,B=window;if(C){var z=Vm(i),X="clientHeight",Z="clientWidth";if(z===Qi(i)&&(z=Cc(i),iu(z).position!=="static"&&h==="absolute"&&(X="scrollHeight",Z="scrollWidth")),z=z,u===Ai||(u===ji||u===_o)&&d===Tm){U=To;var ue=w&&z===B&&B.visualViewport?B.visualViewport.height:z[X];_-=ue-l.height,_*=y?1:-1}if(u===ji||(u===Ai||u===To)&&d===Tm){F=_o;var ie=w&&z===B&&B.visualViewport?B.visualViewport.width:z[Z];j-=ie-l.width,j*=y?1:-1}}var ge=Object.assign({position:h},C&&d9),de=x===!0?f9({x:j,y:_},Qi(i)):{x:j,y:_};if(j=de.x,_=de.y,y){var _e;return Object.assign({},ge,(_e={},_e[U]=P?"0":"",_e[F]=L?"0":"",_e.transform=(B.devicePixelRatio||1)<=1?"translate("+j+"px, "+_+"px)":"translate3d("+j+"px, "+_+"px, 0)",_e))}return Object.assign({},ge,(r={},r[U]=P?_+"px":"",r[F]=L?j+"px":"",r.transform="",r))}function p9(t){var r=t.state,i=t.options,l=i.gpuAcceleration,u=l===void 0?!0:l,d=i.adaptive,v=d===void 0?!0:d,h=i.roundOffsets,y=h===void 0?!0:h,C={placement:tl(r.placement),variation:Zp(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:u,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,iA(Object.assign({},C,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:v,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,iA(Object.assign({},C,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const h9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p9,data:{}};var $b={passive:!0};function v9(t){var r=t.state,i=t.instance,l=t.options,u=l.scroll,d=u===void 0?!0:u,v=l.resize,h=v===void 0?!0:v,y=Qi(r.elements.popper),C=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&C.forEach(function(x){x.addEventListener("scroll",i.update,$b)}),h&&y.addEventListener("resize",i.update,$b),function(){d&&C.forEach(function(x){x.removeEventListener("scroll",i.update,$b)}),h&&y.removeEventListener("resize",i.update,$b)}}const m9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v9,data:{}};var g9={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(r){return g9[r]})}var y9={start:"end",end:"start"};function oA(t){return t.replace(/start|end/g,function(r){return y9[r]})}function OR(t){var r=Qi(t),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function DR(t){return Yp(Cc(t)).left+OR(t).scrollLeft}function b9(t,r){var i=Qi(t),l=Cc(t),u=i.visualViewport,d=l.clientWidth,v=l.clientHeight,h=0,y=0;if(u){d=u.width,v=u.height;var C=aD();(C||!C&&r==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}return{width:d,height:v,x:h+DR(t),y}}function C9(t){var r,i=Cc(t),l=OR(t),u=(r=t.ownerDocument)==null?void 0:r.body,d=Gd(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),v=Gd(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),h=-l.scrollLeft+DR(t),y=-l.scrollTop;return iu(u||i).direction==="rtl"&&(h+=Gd(i.clientWidth,u?u.clientWidth:0)-d),{width:d,height:v,x:h,y}}function kR(t){var r=iu(t),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function uD(t){return["html","body","#document"].indexOf(bc(t))>=0?t.ownerDocument.body:nl(t)&&kR(t)?t:uD(Y0(t))}function xm(t,r){var i;r===void 0&&(r=[]);var l=uD(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),d=Qi(l),v=u?[d].concat(d.visualViewport||[],kR(l)?l:[]):l,h=r.concat(v);return u?h:h.concat(xm(Y0(v)))}function Pw(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function x9(t,r){var i=Yp(t,!1,r==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function sA(t,r,i){return r===nD?Pw(b9(t,i)):qd(r)?x9(r,i):Pw(C9(Cc(t)))}function S9(t){var r=xm(Y0(t)),i=["absolute","fixed"].indexOf(iu(t).position)>=0,l=i&&nl(t)?Vm(t):t;return qd(l)?r.filter(function(u){return qd(u)&&iD(u,l)&&bc(u)!=="body"}):[]}function E9(t,r,i,l){var u=r==="clippingParents"?S9(t):[].concat(r),d=[].concat(u,[i]),v=d[0],h=d.reduce(function(y,C){var x=sA(t,C,l);return y.top=Gd(x.top,y.top),y.right=T0(x.right,y.right),y.bottom=T0(x.bottom,y.bottom),y.left=Gd(x.left,y.left),y},sA(t,v,l));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function cD(t){var r=t.reference,i=t.element,l=t.placement,u=l?tl(l):null,d=l?Zp(l):null,v=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,y;switch(u){case Ai:y={x:v,y:r.y-i.height};break;case To:y={x:v,y:r.y+r.height};break;case _o:y={x:r.x+r.width,y:h};break;case ji:y={x:r.x-i.width,y:h};break;default:y={x:r.x,y:r.y}}var C=u?jR(u):null;if(C!=null){var x=C==="y"?"height":"width";switch(d){case Wp:y[C]=y[C]-(r[x]/2-i[x]/2);break;case Tm:y[C]=y[C]+(r[x]/2-i[x]/2);break}}return y}function _m(t,r){r===void 0&&(r={});var i=r,l=i.placement,u=l===void 0?t.placement:l,d=i.strategy,v=d===void 0?t.strategy:d,h=i.boundary,y=h===void 0?W3:h,C=i.rootBoundary,x=C===void 0?nD:C,w=i.elementContext,R=w===void 0?um:w,j=i.altBoundary,I=j===void 0?!1:j,_=i.padding,A=_===void 0?0:_,L=sD(typeof A!="number"?A:lD(A,Fm)),P=R===um?X3:um,F=t.rects.popper,U=t.elements[I?P:R],B=E9(qd(U)?U:U.contextElement||Cc(t.elements.popper),y,x,v),z=Yp(t.elements.reference),X=cD({reference:z,element:F,strategy:"absolute",placement:u}),Z=Pw(Object.assign({},F,X)),ue=R===um?Z:z,ie={top:B.top-ue.top+L.top,bottom:ue.bottom-B.bottom+L.bottom,left:B.left-ue.left+L.left,right:ue.right-B.right+L.right},ge=t.modifiersData.offset;if(R===um&&ge){var de=ge[u];Object.keys(ie).forEach(function(_e){var Ee=[_o,To].indexOf(_e)>=0?1:-1,Ce=[Ai,To].indexOf(_e)>=0?"y":"x";ie[_e]+=de[Ce]*Ee})}return ie}function w9(t,r){r===void 0&&(r={});var i=r,l=i.placement,u=i.boundary,d=i.rootBoundary,v=i.padding,h=i.flipVariations,y=i.allowedAutoPlacements,C=y===void 0?rD:y,x=Zp(l),w=x?h?rA:rA.filter(function(I){return Zp(I)===x}):Fm,R=w.filter(function(I){return C.indexOf(I)>=0});R.length===0&&(R=w);var j=R.reduce(function(I,_){return I[_]=_m(t,{placement:_,boundary:u,rootBoundary:d,padding:v})[tl(_)],I},{});return Object.keys(j).sort(function(I,_){return j[I]-j[_]})}function R9(t){if(tl(t)===NR)return[];var r=a0(t);return[oA(t),r,oA(r)]}function T9(t){var r=t.state,i=t.options,l=t.name;if(!r.modifiersData[l]._skip){for(var u=i.mainAxis,d=u===void 0?!0:u,v=i.altAxis,h=v===void 0?!0:v,y=i.fallbackPlacements,C=i.padding,x=i.boundary,w=i.rootBoundary,R=i.altBoundary,j=i.flipVariations,I=j===void 0?!0:j,_=i.allowedAutoPlacements,A=r.options.placement,L=tl(A),P=L===A,F=y||(P||!I?[a0(A)]:R9(A)),U=[A].concat(F).reduce(function(we,Ne){return we.concat(tl(Ne)===NR?w9(r,{placement:Ne,boundary:x,rootBoundary:w,padding:C,flipVariations:I,allowedAutoPlacements:_}):Ne)},[]),B=r.rects.reference,z=r.rects.popper,X=new Map,Z=!0,ue=U[0],ie=0;ie<U.length;ie++){var ge=U[ie],de=tl(ge),_e=Zp(ge)===Wp,Ee=[Ai,To].indexOf(de)>=0,Ce=Ee?"width":"height",je=_m(r,{placement:ge,boundary:x,rootBoundary:w,altBoundary:R,padding:C}),Le=Ee?_e?_o:ji:_e?To:Ai;B[Ce]>z[Ce]&&(Le=a0(Le));var re=a0(Le),Ie=[];if(d&&Ie.push(je[de]<=0),h&&Ie.push(je[Le]<=0,je[re]<=0),Ie.every(function(we){return we})){ue=ge,Z=!1;break}X.set(ge,Ie)}if(Z)for(var G=I?3:1,Y=function(Ne){var Oe=U.find(function(ce){var fe=X.get(ce);if(fe)return fe.slice(0,Ne).every(function(Ve){return Ve})});if(Oe)return ue=Oe,"break"},ne=G;ne>0;ne--){var be=Y(ne);if(be==="break")break}r.placement!==ue&&(r.modifiersData[l]._skip=!0,r.placement=ue,r.reset=!0)}}const _9={name:"flip",enabled:!0,phase:"main",fn:T9,requiresIfExists:["offset"],data:{_skip:!1}};function lA(t,r,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-r.height-i.y,right:t.right-r.width+i.x,bottom:t.bottom-r.height+i.y,left:t.left-r.width-i.x}}function uA(t){return[Ai,_o,To,ji].some(function(r){return t[r]>=0})}function N9(t){var r=t.state,i=t.name,l=r.rects.reference,u=r.rects.popper,d=r.modifiersData.preventOverflow,v=_m(r,{elementContext:"reference"}),h=_m(r,{altBoundary:!0}),y=lA(v,l),C=lA(h,u,d),x=uA(y),w=uA(C);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:C,isReferenceHidden:x,hasPopperEscaped:w},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":w})}const I9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N9};function A9(t,r,i){var l=tl(t),u=[ji,Ai].indexOf(l)>=0?-1:1,d=typeof i=="function"?i(Object.assign({},r,{placement:t})):i,v=d[0],h=d[1];return v=v||0,h=(h||0)*u,[ji,_o].indexOf(l)>=0?{x:h,y:v}:{x:v,y:h}}function j9(t){var r=t.state,i=t.options,l=t.name,u=i.offset,d=u===void 0?[0,0]:u,v=rD.reduce(function(x,w){return x[w]=A9(w,r.rects,d),x},{}),h=v[r.placement],y=h.x,C=h.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=C),r.modifiersData[l]=v}const O9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j9};function D9(t){var r=t.state,i=t.name;r.modifiersData[i]=cD({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const k9={name:"popperOffsets",enabled:!0,phase:"read",fn:D9,data:{}};function M9(t){return t==="x"?"y":"x"}function L9(t){var r=t.state,i=t.options,l=t.name,u=i.mainAxis,d=u===void 0?!0:u,v=i.altAxis,h=v===void 0?!1:v,y=i.boundary,C=i.rootBoundary,x=i.altBoundary,w=i.padding,R=i.tether,j=R===void 0?!0:R,I=i.tetherOffset,_=I===void 0?0:I,A=_m(r,{boundary:y,rootBoundary:C,padding:w,altBoundary:x}),L=tl(r.placement),P=Zp(r.placement),F=!P,U=jR(L),B=M9(U),z=r.modifiersData.popperOffsets,X=r.rects.reference,Z=r.rects.popper,ue=typeof _=="function"?_(Object.assign({},r.rects,{placement:r.placement})):_,ie=typeof ue=="number"?{mainAxis:ue,altAxis:ue}:Object.assign({mainAxis:0,altAxis:0},ue),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,de={x:0,y:0};if(z){if(d){var _e,Ee=U==="y"?Ai:ji,Ce=U==="y"?To:_o,je=U==="y"?"height":"width",Le=z[U],re=Le+A[Ee],Ie=Le-A[Ce],G=j?-Z[je]/2:0,Y=P===Wp?X[je]:Z[je],ne=P===Wp?-Z[je]:-X[je],be=r.elements.arrow,we=j&&be?AR(be):{width:0,height:0},Ne=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:oD(),Oe=Ne[Ee],ce=Ne[Ce],fe=Cm(0,X[je],we[je]),Ve=F?X[je]/2-G-fe-Oe-ie.mainAxis:Y-fe-Oe-ie.mainAxis,Ge=F?-X[je]/2+G+fe+ce+ie.mainAxis:ne+fe+ce+ie.mainAxis,tt=r.elements.arrow&&Vm(r.elements.arrow),ot=tt?U==="y"?tt.clientTop||0:tt.clientLeft||0:0,Ae=(_e=ge==null?void 0:ge[U])!=null?_e:0,Rt=Le+Ve-Ae-ot,dt=Le+Ge-Ae,en=Cm(j?T0(re,Rt):re,Le,j?Gd(Ie,dt):Ie);z[U]=en,de[U]=en-Le}if(h){var sn,ln=U==="x"?Ai:ji,In=U==="x"?To:_o,Vt=z[B],xn=B==="y"?"height":"width",Qn=Vt+A[ln],Tr=Vt-A[In],Hn=[Ai,ji].indexOf(L)!==-1,_r=(sn=ge==null?void 0:ge[B])!=null?sn:0,St=Hn?Qn:Vt-X[xn]-Z[xn]-_r+ie.altAxis,Pn=Hn?Vt+X[xn]+Z[xn]-_r-ie.altAxis:Tr,un=j&&Hn?o9(St,Vt,Pn):Cm(j?St:Qn,Vt,j?Pn:Tr);z[B]=un,de[B]=un-Vt}r.modifiersData[l]=de}}const P9={name:"preventOverflow",enabled:!0,phase:"main",fn:L9,requiresIfExists:["offset"]};function F9(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function V9(t){return t===Qi(t)||!nl(t)?OR(t):F9(t)}function B9(t){var r=t.getBoundingClientRect(),i=Xp(r.width)/t.offsetWidth||1,l=Xp(r.height)/t.offsetHeight||1;return i!==1||l!==1}function z9(t,r,i){i===void 0&&(i=!1);var l=nl(r),u=nl(r)&&B9(r),d=Cc(r),v=Yp(t,u,i),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(l||!l&&!i)&&((bc(r)!=="body"||kR(d))&&(h=V9(r)),nl(r)?(y=Yp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=DR(d))),{x:v.left+h.scrollLeft-y.x,y:v.top+h.scrollTop-y.y,width:v.width,height:v.height}}function $9(t){var r=new Map,i=new Set,l=[];t.forEach(function(d){r.set(d.name,d)});function u(d){i.add(d.name);var v=[].concat(d.requires||[],d.requiresIfExists||[]);v.forEach(function(h){if(!i.has(h)){var y=r.get(h);y&&u(y)}}),l.push(d)}return t.forEach(function(d){i.has(d.name)||u(d)}),l}function U9(t){var r=$9(t);return r9.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function H9(t){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(t())})})),r}}function G9(t){var r=t.reduce(function(i,l){var u=i[l.name];return i[l.name]=u?Object.assign({},u,l,{options:Object.assign({},u.options,l.options),data:Object.assign({},u.data,l.data)}):l,i},{});return Object.keys(r).map(function(i){return r[i]})}var cA={placement:"bottom",modifiers:[],strategy:"absolute"};function dA(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return!r.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function W9(t){t===void 0&&(t={});var r=t,i=r.defaultModifiers,l=i===void 0?[]:i,u=r.defaultOptions,d=u===void 0?cA:u;return function(h,y,C){C===void 0&&(C=d);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},cA,d),modifiersData:{},elements:{reference:h,popper:y},attributes:{},styles:{}},w=[],R=!1,j={state:x,setOptions:function(L){var P=typeof L=="function"?L(x.options):L;_(),x.options=Object.assign({},d,x.options,P),x.scrollParents={reference:qd(h)?xm(h):h.contextElement?xm(h.contextElement):[],popper:xm(y)};var F=U9(G9([].concat(l,x.options.modifiers)));return x.orderedModifiers=F.filter(function(U){return U.enabled}),I(),j.update()},forceUpdate:function(){if(!R){var L=x.elements,P=L.reference,F=L.popper;if(dA(P,F)){x.rects={reference:z9(P,Vm(F),x.options.strategy==="fixed"),popper:AR(F)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(ie){return x.modifiersData[ie.name]=Object.assign({},ie.data)});for(var U=0;U<x.orderedModifiers.length;U++){if(x.reset===!0){x.reset=!1,U=-1;continue}var B=x.orderedModifiers[U],z=B.fn,X=B.options,Z=X===void 0?{}:X,ue=B.name;typeof z=="function"&&(x=z({state:x,options:Z,name:ue,instance:j})||x)}}}},update:H9(function(){return new Promise(function(A){j.forceUpdate(),A(x)})}),destroy:function(){_(),R=!0}};if(!dA(h,y))return j;j.setOptions(C).then(function(A){!R&&C.onFirstUpdate&&C.onFirstUpdate(A)});function I(){x.orderedModifiers.forEach(function(A){var L=A.name,P=A.options,F=P===void 0?{}:P,U=A.effect;if(typeof U=="function"){var B=U({state:x,name:L,instance:j,options:F}),z=function(){};w.push(B||z)}})}function _(){w.forEach(function(A){return A()}),w=[]}return j}}const X9=W9({defaultModifiers:[I9,k9,h9,m9,O9,_9,P9,c9]}),Y9=["enabled","placement","strategy","modifiers"];function Z9(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const q9={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},J9={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:r,popper:i}=t.elements;if("removeAttribute"in r){const l=(r.getAttribute("aria-describedby")||"").split(",").filter(u=>u.trim()!==i.id);l.length?r.setAttribute("aria-describedby",l.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:t})=>{var r;const{popper:i,reference:l}=t.elements,u=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&u==="tooltip"&&"setAttribute"in l){const d=l.getAttribute("aria-describedby");if(d&&d.split(",").indexOf(i.id)!==-1)return;l.setAttribute("aria-describedby",d?`${d},${i.id}`:i.id)}}},Q9=[];function dD(t,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:d="absolute",modifiers:v=Q9}=i,h=Z9(i,Y9);const y=k.useRef(v),C=k.useRef(),x=k.useCallback(()=>{var A;(A=C.current)==null||A.update()},[]),w=k.useCallback(()=>{var A;(A=C.current)==null||A.forceUpdate()},[]),[R,j]=G3(k.useState({placement:u,update:x,forceUpdate:w,attributes:{},styles:{popper:{},arrow:{}}})),I=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:A})=>{const L={},P={};Object.keys(A.elements).forEach(F=>{L[F]=A.styles[F],P[F]=A.attributes[F]}),j({state:A,styles:L,attributes:P,update:x,forceUpdate:w,placement:A.placement})}}),[x,w,j]),_=k.useMemo(()=>(bm(y.current,v)||(y.current=v),y.current),[v]);return k.useEffect(()=>{!C.current||!l||C.current.setOptions({placement:u,strategy:d,modifiers:[..._,I,q9]})},[d,u,I,l,_]),k.useEffect(()=>{if(!(!l||t==null||r==null))return C.current=X9(t,r,Object.assign({},h,{placement:u,strategy:d,modifiers:[..._,J9,I]})),()=>{C.current!=null&&(C.current.destroy(),C.current=void 0,j(A=>Object.assign({},A,{attributes:{},styles:{popper:{}}})))}},[l,t,r]),R}function Nm(t,r){if(t.contains)return t.contains(r);if(t.compareDocumentPosition)return t===r||!!(t.compareDocumentPosition(r)&16)}var K9={},e4=K9.NODE_ENV!=="production",fD=function(){};if(e4){var t4=function(r,i){var l=arguments.length;i=new Array(l>1?l-1:0);for(var u=1;u<l;u++)i[u-1]=arguments[u];var d=0,v="Warning: "+r.replace(/%s/g,function(){return i[d++]});typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}};fD=function(t,r,i){var l=arguments.length;i=new Array(l>2?l-2:0);for(var u=2;u<l;u++)i[u-2]=arguments[u];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||t4.apply(null,[r].concat(i))}}var n4=fD;const MR=Qp(n4),fA=()=>{};function r4(t){return t.button===0}function a4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const i0=t=>t&&("current"in t?t.current:t),pA={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function pD(t,r=fA,{disabled:i,clickTrigger:l="click"}={}){const u=k.useRef(!1),d=k.useRef(!1),v=k.useCallback(C=>{const x=i0(t);MR(!!x,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),u.current=!x||a4(C)||!r4(C)||!!Nm(x,C.target)||d.current,d.current=!1},[t]),h=yr(C=>{const x=i0(t);x&&Nm(x,C.target)&&(d.current=!0)}),y=yr(C=>{u.current||r(C)});k.useEffect(()=>{var C,x;if(i||t==null)return;const w=nh(i0(t)),R=w.defaultView||window;let j=(C=R.event)!=null?C:(x=R.parent)==null?void 0:x.event,I=null;pA[l]&&(I=Kl(w,pA[l],h,!0));const _=Kl(w,l,v,!0),A=Kl(w,l,P=>{if(P===j){j=void 0;return}y(P)});let L=[];return"ontouchstart"in w.documentElement&&(L=[].slice.call(w.body.children).map(P=>Kl(P,"mousemove",fA))),()=>{I==null||I(),_(),A(),L.forEach(P=>P())}},[t,i,l,v,h,y])}function i4(t){const r={};return Array.isArray(t)?(t==null||t.forEach(i=>{r[i.name]=i}),r):t||r}function o4(t={}){return Array.isArray(t)?t:Object.keys(t).map(r=>(t[r].name=r,t[r]))}function hD({enabled:t,enableEvents:r,placement:i,flip:l,offset:u,fixed:d,containerPadding:v,arrowElement:h,popperConfig:y={}}){var C,x,w,R,j;const I=i4(y.modifiers);return Object.assign({},y,{placement:i,enabled:t,strategy:d?"fixed":y.strategy,modifiers:o4(Object.assign({},I,{eventListeners:{enabled:r,options:(C=I.eventListeners)==null?void 0:C.options},preventOverflow:Object.assign({},I.preventOverflow,{options:v?Object.assign({padding:v},(x=I.preventOverflow)==null?void 0:x.options):(w=I.preventOverflow)==null?void 0:w.options}),offset:{options:Object.assign({offset:u},(R=I.offset)==null?void 0:R.options)},arrow:Object.assign({},I.arrow,{enabled:!!h,options:Object.assign({},(j=I.arrow)==null?void 0:j.options,{element:h})}),flip:Object.assign({enabled:!!l},I.flip)}))})}const s4=["children"];function l4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const u4=()=>{};function vD(t={}){const r=k.useContext(X0),[i,l]=w0(),u=k.useRef(!1),{flip:d,offset:v,rootCloseEvent:h,fixed:y=!1,placement:C,popperConfig:x={},enableEventListeners:w=!0,usePopper:R=!!r}=t,j=(r==null?void 0:r.show)==null?!!t.show:r.show;j&&!u.current&&(u.current=!0);const I=z=>{r==null||r.toggle(!1,z)},{placement:_,setMenu:A,menuElement:L,toggleElement:P}=r||{},F=dD(P,L,hD({placement:C||_||"bottom-start",enabled:R,enableEvents:w??j,offset:v,flip:d,fixed:y,arrowElement:i,popperConfig:x})),U=Object.assign({ref:A||u4,"aria-labelledby":P==null?void 0:P.id},F.attributes.popper,{style:F.styles.popper}),B={show:j,placement:_,hasShown:u.current,toggle:r==null?void 0:r.toggle,popper:R?F:null,arrowProps:R?Object.assign({ref:l},F.attributes.arrow,{style:F.styles.arrow}):{}};return pD(L,I,{clickTrigger:h,disabled:!j}),[U,B]}const c4={usePopper:!0};function LR(t){let{children:r}=t,i=l4(t,s4);const[l,u]=vD(i);return m.jsx(m.Fragment,{children:r(l,u)})}LR.displayName="DropdownMenu";LR.defaultProps=c4;const mD=t=>{var r;return((r=t.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},hA=()=>{};function gD(){const t=yO(),{show:r=!1,toggle:i=hA,setToggle:l,menuElement:u}=k.useContext(X0)||{},d=k.useCallback(h=>{i(!r,h)},[r,i]),v={id:t,ref:l||hA,onClick:d,"aria-expanded":!!r};return u&&mD(u)&&(v["aria-haspopup"]=!0),[v,{show:r,toggle:i}]}function yD({children:t}){const[r,i]=gD();return m.jsx(m.Fragment,{children:t(r,i)})}yD.displayName="DropdownToggle";const d4=["eventKey","disabled","onClick","active","as"];function f4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function bD({key:t,href:r,active:i,disabled:l,onClick:u}){const d=k.useContext(au),v=k.useContext(wR),{activeKey:h}=v||{},y=Zd(t,r),C=i==null&&t!=null?Zd(h)===y:i;return[{onClick:yr(w=>{l||(u==null||u(w),d&&!w.isPropagationStopped()&&d(y,w))}),"aria-disabled":l||void 0,"aria-selected":C,[ah("dropdown-item")]:""},{isActive:C}]}const CD=k.forwardRef((t,r)=>{let{eventKey:i,disabled:l,onClick:u,active:d,as:v=TR}=t,h=f4(t,d4);const[y]=bD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,Object.assign({},h,{ref:r},y))});CD.displayName="DropdownItem";const xD=k.createContext(rh?window:void 0);xD.Provider;function Z0(){return k.useContext(xD)}function vA(){const t=VO(),r=k.useRef(null),i=k.useCallback(l=>{r.current=l,t()},[t]);return[r,i]}function Bm({defaultShow:t,show:r,onSelect:i,onToggle:l,itemSelector:u=`* [${ah("dropdown-item")}]`,focusFirstItemOnShow:d,placement:v="bottom-start",children:h}){const y=Z0(),[C,x]=vO(r,t,l),[w,R]=vA(),j=w.current,[I,_]=vA(),A=I.current,L=ZO(C),P=k.useRef(null),F=k.useRef(!1),U=k.useContext(au),B=k.useCallback((ge,de,_e=de==null?void 0:de.type)=>{x(ge,{originalEvent:de,source:_e})},[x]),z=yr((ge,de)=>{i==null||i(ge,de),B(!1,de,"select"),de.isPropagationStopped()||U==null||U(ge,de)}),X=k.useMemo(()=>({toggle:B,placement:v,show:C,menuElement:j,toggleElement:A,setMenu:R,setToggle:_}),[B,v,C,j,A,R,_]);j&&L&&!C&&(F.current=j.contains(j.ownerDocument.activeElement));const Z=yr(()=>{A&&A.focus&&A.focus()}),ue=yr(()=>{const ge=P.current;let de=d;if(de==null&&(de=w.current&&mD(w.current)?"keyboard":!1),de===!1||de==="keyboard"&&!/^key.+$/.test(ge))return;const _e=Ql(w.current,u)[0];_e&&_e.focus&&_e.focus()});k.useEffect(()=>{C?ue():F.current&&(F.current=!1,Z())},[C,F,Z,ue]),k.useEffect(()=>{P.current=null});const ie=(ge,de)=>{if(!w.current)return null;const _e=Ql(w.current,u);let Ee=_e.indexOf(ge)+de;return Ee=Math.max(0,Math.min(Ee,_e.length)),_e[Ee]};return D3(k.useCallback(()=>y.document,[y]),"keydown",ge=>{var de,_e;const{key:Ee}=ge,Ce=ge.target,je=(de=w.current)==null?void 0:de.contains(Ce),Le=(_e=I.current)==null?void 0:_e.contains(Ce);if(/input|textarea/i.test(Ce.tagName)&&(Ee===" "||Ee!=="Escape"&&je||Ee==="Escape"&&Ce.type==="search")||!je&&!Le||Ee==="Tab"&&(!w.current||!C))return;P.current=ge.type;const Ie={originalEvent:ge,source:ge.type};switch(Ee){case"ArrowUp":{const G=ie(Ce,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!C)x(!0,Ie);else{const G=ie(Ce,1);G&&G.focus&&G.focus()}return;case"Tab":SR(Ce.ownerDocument,"keyup",G=>{var Y;(G.key==="Tab"&&!G.target||!((Y=w.current)!=null&&Y.contains(G.target)))&&x(!1,Ie)},{once:!0});break;case"Escape":Ee==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),x(!1,Ie);break}}),m.jsx(au.Provider,{value:z,children:m.jsx(X0.Provider,{value:X,children:h})})}Bm.displayName="Dropdown";Bm.Menu=LR;Bm.Toggle=yD;Bm.Item=CD;const SD=k.createContext({});SD.displayName="DropdownContext";const ED=SD,wD=k.forwardRef(({className:t,bsPrefix:r,as:i="hr",role:l="separator",...u},d)=>(r=Cn(r,"dropdown-divider"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));wD.displayName="DropdownDivider";const p4=wD,RD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",role:l="heading",...u},d)=>(r=Cn(r,"dropdown-header"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));RD.displayName="DropdownHeader";const h4=RD,TD=k.forwardRef(({bsPrefix:t,className:r,eventKey:i,disabled:l=!1,onClick:u,active:d,as:v=JO,...h},y)=>{const C=Cn(t,"dropdown-item"),[x,w]=bD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,{...h,...x,ref:y,className:Qt(r,C,w.isActive&&"active",l&&"disabled")})});TD.displayName="DropdownItem";const v4=TD,_D=k.forwardRef(({className:t,bsPrefix:r,as:i="span",...l},u)=>(r=Cn(r,"dropdown-item-text"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));_D.displayName="DropdownItemText";const m4=_D,ND=k.createContext(null);ND.displayName="InputGroupContext";const ID=ND;var mA={};function AD(t,r){if(mA.NODE_ENV==="production")return t;const i=k.useCallback(l=>{l==null||!l.isReactComponent||(mA.NODE_ENV!=="production"?ZI(!1,`${r} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):ZI(!1))},[r]);return hs(i,t)}var g4={};function jD(t,r,i){const l=i?"top-end":"top-start",u=i?"top-start":"top-end",d=i?"bottom-end":"bottom-start",v=i?"bottom-start":"bottom-end",h=i?"right-start":"left-start",y=i?"right-end":"left-end",C=i?"left-start":"right-start",x=i?"left-end":"right-end";let w=t?v:d;return r==="up"?w=t?u:l:r==="end"?w=t?x:C:r==="start"?w=t?y:h:r==="down-centered"?w="bottom":r==="up-centered"&&(w="top"),w}const OD=k.forwardRef(({bsPrefix:t,className:r,align:i,rootCloseEvent:l,flip:u=!0,show:d,renderOnMount:v,as:h="div",popperConfig:y,variant:C,...x},w)=>{let R=!1;const j=k.useContext(GO),I=Cn(t,"dropdown-menu"),{align:_,drop:A,isRTL:L}=k.useContext(ED);i=i||_;const P=k.useContext(ID),F=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(g4.NODE_ENV!=="production"&&MR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const de=ge[0],_e=i[de];R=_e==="start",F.push(`${I}-${de}-${_e}`)}}else i==="end"&&(R=!0);const U=jD(R,A,L),[B,{hasShown:z,popper:X,show:Z,toggle:ue}]=vD({flip:u,rootCloseEvent:l,show:d,usePopper:!j&&F.length===0,offset:[0,2],popperConfig:y,placement:U});if(B.ref=hs(AD(w,"DropdownMenu"),B.ref),R0(()=>{Z&&(X==null||X.update())},[Z]),!z&&!v&&!P)return null;typeof h!="string"&&(B.show=Z,B.close=()=>ue==null?void 0:ue(!1),B.align=i);let ie=x.style;return X!=null&&X.placement&&(ie={...x.style,...B.style},x["x-placement"]=X.placement),m.jsx(h,{...x,...B,style:ie,...(F.length||j)&&{"data-bs-popper":"static"},className:Qt(r,I,Z&&"show",R&&`${I}-end`,C&&`${I}-${C}`,...F)})});OD.displayName="DropdownMenu";const y4=OD,DD=k.forwardRef(({as:t,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:d=!1,className:v,...h},y)=>{const C=Cn(r,"btn"),[x,{tagName:w}]=RR({tagName:t,disabled:d,...h}),R=w;return m.jsx(R,{...x,...h,ref:y,disabled:d,className:Qt(v,C,u&&"active",i&&`${C}-${i}`,l&&`${C}-${l}`,h.href&&d&&"disabled")})});DD.displayName="Button";const b4=DD,kD=k.forwardRef(({bsPrefix:t,split:r,className:i,childBsPrefix:l,as:u=b4,...d},v)=>{const h=Cn(t,"dropdown-toggle"),y=k.useContext(X0);l!==void 0&&(d.bsPrefix=l);const[C]=gD();return C.ref=hs(C.ref,AD(v,"DropdownToggle")),m.jsx(u,{className:Qt(i,h,r&&`${h}-split`,(y==null?void 0:y.show)&&"show"),...C,...d})});kD.displayName="DropdownToggle";const C4=kD,MD=k.forwardRef((t,r)=>{const{bsPrefix:i,drop:l="down",show:u,className:d,align:v="start",onSelect:h,onToggle:y,focusFirstItemOnShow:C,as:x="div",navbar:w,autoClose:R=!0,...j}=W0(t,{show:"onToggle"}),I=k.useContext(ID),_=Cn(i,"dropdown"),A=G0(),L=X=>R===!1?X==="click":R==="inside"?X!=="rootClose":R==="outside"?X!=="select":!0,P=yr((X,Z)=>{var ue,ie;!((ue=Z.originalEvent)==null||(ie=ue.target)==null)&&ie.classList.contains("dropdown-toggle")&&Z.source==="mousedown"||(Z.originalEvent.currentTarget===document&&(Z.source!=="keydown"||Z.originalEvent.key==="Escape")&&(Z.source="rootClose"),L(Z.source)&&(y==null||y(X,Z)))}),U=jD(v==="end",l,A),B=k.useMemo(()=>({align:v,drop:l,isRTL:A}),[v,l,A]),z={down:_,"down-centered":`${_}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return m.jsx(ED.Provider,{value:B,children:m.jsx(Bm,{placement:U,show:u,onSelect:h,onToggle:P,focusFirstItemOnShow:C,itemSelector:`.${_}-item:not(.disabled):not(:disabled)`,children:I?j.children:m.jsx(x,{...j,ref:r,className:Qt(d,u&&"show",z[l])})})})});MD.displayName="Dropdown";const Ub=Object.assign(MD,{Toggle:C4,Menu:y4,Item:v4,ItemText:m4,Divider:p4,Header:h4});var Hb;function gA(t){if((!Hb&&Hb!==0||t)&&rh){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),Hb=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Hb}function x4(t){const r=k.useRef(t);return r.current=t,r}function PR(t){const r=x4(t);k.useEffect(()=>()=>r.current(),[])}function JE(t){t===void 0&&(t=nh());try{var r=t.activeElement;return!r||!r.nodeName?null:r}catch{return t.body}}function S4(t=document){const r=t.defaultView;return Math.abs(r.innerWidth-t.documentElement.clientWidth)}const yA=ah("modal-open");class E4{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return S4(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();r.style={overflow:u.style.overflow,[l]:u.style[l]},r.scrollBarWidth&&(i[l]=`${parseInt(tu(u,l)||"0",10)+r.scrollBarWidth}px`),u.setAttribute(yA,""),tu(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(yA),Object.assign(i.style,r.style)}add(r){let i=this.modals.indexOf(r);return i!==-1||(i=this.modals.length,this.modals.push(r),this.setModalAttributes(r),i!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),i}remove(r){const i=this.modals.indexOf(r);i!==-1&&(this.modals.splice(i,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(r))}isTopModal(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r}}const FR=E4,QE=(t,r)=>rh?t==null?(r||nh()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function Fw(t,r){const i=Z0(),[l,u]=k.useState(()=>QE(t,i==null?void 0:i.document));if(!l){const d=QE(t);d&&u(d)}return k.useEffect(()=>{r&&l&&r(l)},[r,l]),k.useEffect(()=>{const d=QE(t);d!==l&&u(d)},[t,l]),l}function w4({in:t,onTransition:r}){const i=k.useRef(null),l=k.useRef(!0),u=yr(r);return R0(()=>{if(!i.current)return;let d=!1;return u({in:t,element:i.current,initial:l.current,isStale:()=>d}),()=>{d=!0}},[t,u]),R0(()=>(l.current=!1,()=>{l.current=!0}),[]),i}function R4({children:t,in:r,onExited:i,onEntered:l,transition:u}){const[d,v]=k.useState(!r);r&&d&&v(!1);const h=w4({in:!!r,onTransition:C=>{const x=()=>{C.isStale()||(C.in?l==null||l(C.element,C.initial):(v(!0),i==null||i(C.element)))};Promise.resolve(u(C)).then(x,w=>{throw C.in||v(!0),w})}}),y=hs(h,t.ref);return d&&!r?null:k.cloneElement(t,{ref:y})}function Vw(t,r,i){return t?m.jsx(t,Object.assign({},i)):r?m.jsx(R4,Object.assign({},i,{transition:r})):m.jsx(CR,Object.assign({},i))}function LD(t){return t.code==="Escape"||t.keyCode===27}const T4=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function _4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}let KE;function N4(t){return KE||(KE=new FR({ownerDocument:t==null?void 0:t.document})),KE}function I4(t){const r=Z0(),i=t||N4(r),l=k.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>i.add(l.current),remove:()=>i.remove(l.current),isTopModal:()=>i.isTopModal(l.current),setDialogRef:k.useCallback(u=>{l.current.dialog=u},[]),setBackdropRef:k.useCallback(u=>{l.current.backdrop=u},[])})}const PD=k.forwardRef((t,r)=>{let{show:i=!1,role:l="dialog",className:u,style:d,children:v,backdrop:h=!0,keyboard:y=!0,onBackdropClick:C,onEscapeKeyDown:x,transition:w,runTransition:R,backdropTransition:j,runBackdropTransition:I,autoFocus:_=!0,enforceFocus:A=!0,restoreFocus:L=!0,restoreFocusOptions:P,renderDialog:F,renderBackdrop:U=dt=>m.jsx("div",Object.assign({},dt)),manager:B,container:z,onShow:X,onHide:Z=()=>{},onExit:ue,onExited:ie,onExiting:ge,onEnter:de,onEntering:_e,onEntered:Ee}=t,Ce=_4(t,T4);const je=Z0(),Le=Fw(z),re=I4(B),Ie=_R(),G=ZO(i),[Y,ne]=k.useState(!i),be=k.useRef(null);k.useImperativeHandle(r,()=>re,[re]),rh&&!G&&i&&(be.current=JE(je==null?void 0:je.document)),i&&Y&&ne(!1);const we=yr(()=>{if(re.add(),Ge.current=Kl(document,"keydown",fe),Ve.current=Kl(document,"focus",()=>setTimeout(Oe),!0),X&&X(),_){var dt,en;const sn=JE((dt=(en=re.dialog)==null?void 0:en.ownerDocument)!=null?dt:je==null?void 0:je.document);re.dialog&&sn&&!Nm(re.dialog,sn)&&(be.current=sn,re.dialog.focus())}}),Ne=yr(()=>{if(re.remove(),Ge.current==null||Ge.current(),Ve.current==null||Ve.current(),L){var dt;(dt=be.current)==null||dt.focus==null||dt.focus(P),be.current=null}});k.useEffect(()=>{!i||!Le||we()},[i,Le,we]),k.useEffect(()=>{Y&&Ne()},[Y,Ne]),PR(()=>{Ne()});const Oe=yr(()=>{if(!A||!Ie()||!re.isTopModal())return;const dt=JE(je==null?void 0:je.document);re.dialog&&dt&&!Nm(re.dialog,dt)&&re.dialog.focus()}),ce=yr(dt=>{dt.target===dt.currentTarget&&(C==null||C(dt),h===!0&&Z())}),fe=yr(dt=>{y&&LD(dt)&&re.isTopModal()&&(x==null||x(dt),dt.defaultPrevented||Z())}),Ve=k.useRef(),Ge=k.useRef(),tt=(...dt)=>{ne(!0),ie==null||ie(...dt)};if(!Le)return null;const ot=Object.assign({role:l,ref:re.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},Ce,{style:d,className:u,tabIndex:-1});let Ae=F?F(ot):m.jsx("div",Object.assign({},ot,{children:k.cloneElement(v,{role:"document"})}));Ae=Vw(w,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:ue,onExiting:ge,onExited:tt,onEnter:de,onEntering:_e,onEntered:Ee,children:Ae});let Rt=null;return h&&(Rt=U({ref:re.setBackdropRef,onClick:ce}),Rt=Vw(j,I,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Rt})),m.jsx(m.Fragment,{children:zd.createPortal(m.jsxs(m.Fragment,{children:[Rt,Ae]}),Le)})});PD.displayName="Modal";const A4=Object.assign(PD,{Manager:FR});function Bw(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function j4(t,r){t.classList?t.classList.add(r):Bw(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function bA(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function O4(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=bA(t.className,r):t.setAttribute("class",bA(t.className&&t.className.baseVal||"",r))}const Fp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class D4 extends FR{adjustAndStore(r,i,l){const u=i.style[r];i.dataset[r]=u,tu(i,{[r]:`${parseFloat(tu(i,r))+l}px`})}restore(r,i){const l=i.dataset[r];l!==void 0&&(delete i.dataset[r],tu(i,{[r]:l}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(j4(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Ql(i,Fp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth)),Ql(i,Fp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(u,d,-r.scrollBarWidth)),Ql(i,Fp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();O4(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Ql(i,Fp.FIXED_CONTENT).forEach(d=>this.restore(l,d)),Ql(i,Fp.STICKY_CONTENT).forEach(d=>this.restore(u,d)),Ql(i,Fp.NAVBAR_TOGGLER).forEach(d=>this.restore(u,d))}}let ew;function k4(t){return ew||(ew=new D4(t)),ew}const FD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"modal-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));FD.displayName="ModalBody";const M4=FD,L4=k.createContext({onHide(){}}),VD=L4,BD=k.forwardRef(({bsPrefix:t,className:r,contentClassName:i,centered:l,size:u,fullscreen:d,children:v,scrollable:h,...y},C)=>{t=Cn(t,"modal");const x=`${t}-dialog`,w=typeof d=="string"?`${t}-fullscreen-${d}`:`${t}-fullscreen`;return m.jsx("div",{...y,ref:C,className:Qt(x,r,u&&`${t}-${u}`,l&&`${x}-centered`,h&&`${x}-scrollable`,d&&w),children:m.jsx("div",{className:Qt(`${t}-content`,i),children:v})})});BD.displayName="ModalDialog";const zD=BD,$D=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"modal-footer"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));$D.displayName="ModalFooter";const P4=$D,F4={"aria-label":Ue.string,onClick:Ue.func,variant:Ue.oneOf(["white"])},VR=k.forwardRef(({className:t,variant:r,"aria-label":i="Close",...l},u)=>m.jsx("button",{ref:u,type:"button",className:Qt("btn-close",r&&`btn-close-${r}`,t),"aria-label":i,...l}));VR.displayName="CloseButton";VR.propTypes=F4;const V4=VR,B4=k.forwardRef(({closeLabel:t="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...d},v)=>{const h=k.useContext(VD),y=yr(()=>{h==null||h.onHide(),l==null||l()});return m.jsxs("div",{ref:v,...d,children:[u,i&&m.jsx(V4,{"aria-label":t,variant:r,onClick:y})]})}),z4=B4,UD=k.forwardRef(({bsPrefix:t,className:r,closeLabel:i="Close",closeButton:l=!1,...u},d)=>(t=Cn(t,"modal-header"),m.jsx(z4,{ref:d,...u,className:Qt(r,t),closeLabel:i,closeButton:l})));UD.displayName="ModalHeader";const $4=UD,U4=t=>k.forwardRef((r,i)=>m.jsx("div",{...r,ref:i,className:Qt(r.className,t)})),H4=U4("h4"),HD=k.forwardRef(({className:t,bsPrefix:r,as:i=H4,...l},u)=>(r=Cn(r,"modal-title"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));HD.displayName="ModalTitle";const G4=HD;function W4(t){return m.jsx(Gp,{...t,timeout:null})}function X4(t){return m.jsx(Gp,{...t,timeout:null})}const GD=k.forwardRef(({bsPrefix:t,className:r,style:i,dialogClassName:l,contentClassName:u,children:d,dialogAs:v=zD,"data-bs-theme":h,"aria-labelledby":y,"aria-describedby":C,"aria-label":x,show:w=!1,animation:R=!0,backdrop:j=!0,keyboard:I=!0,onEscapeKeyDown:_,onShow:A,onHide:L,container:P,autoFocus:F=!0,enforceFocus:U=!0,restoreFocus:B=!0,restoreFocusOptions:z,onEntered:X,onExit:Z,onExiting:ue,onEnter:ie,onEntering:ge,onExited:de,backdropClassName:_e,manager:Ee,...Ce},je)=>{const[Le,re]=k.useState({}),[Ie,G]=k.useState(!1),Y=k.useRef(!1),ne=k.useRef(!1),be=k.useRef(null),[we,Ne]=w0(),Oe=hs(je,Ne),ce=yr(L),fe=G0();t=Cn(t,"modal");const Ve=k.useMemo(()=>({onHide:ce}),[ce]);function Ge(){return Ee||k4({isRTL:fe})}function tt(St){if(!rh)return;const Pn=Ge().getScrollbarWidth()>0,un=St.scrollHeight>nh(St).documentElement.clientHeight;re({paddingRight:Pn&&!un?gA():void 0,paddingLeft:!Pn&&un?gA():void 0})}const ot=yr(()=>{we&&tt(we.dialog)});PR(()=>{kw(window,"resize",ot),be.current==null||be.current()});const Ae=()=>{Y.current=!0},Rt=St=>{Y.current&&we&&St.target===we.dialog&&(ne.current=!0),Y.current=!1},dt=()=>{G(!0),be.current=TO(we.dialog,()=>{G(!1)})},en=St=>{St.target===St.currentTarget&&dt()},sn=St=>{if(j==="static"){en(St);return}if(ne.current||St.target!==St.currentTarget){ne.current=!1;return}L==null||L()},ln=St=>{I?_==null||_(St):(St.preventDefault(),j==="static"&&dt())},In=(St,Pn)=>{St&&tt(St),ie==null||ie(St,Pn)},Vt=St=>{be.current==null||be.current(),Z==null||Z(St)},xn=(St,Pn)=>{ge==null||ge(St,Pn),SR(window,"resize",ot)},Qn=St=>{St&&(St.style.display=""),de==null||de(St),kw(window,"resize",ot)},Tr=k.useCallback(St=>m.jsx("div",{...St,className:Qt(`${t}-backdrop`,_e,!R&&"show")}),[R,_e,t]),Hn={...i,...Le};Hn.display="block";const _r=St=>m.jsx("div",{role:"dialog",...St,style:Hn,className:Qt(r,t,Ie&&`${t}-static`,!R&&"show"),onClick:j?sn:void 0,onMouseUp:Rt,"data-bs-theme":h,"aria-label":x,"aria-labelledby":y,"aria-describedby":C,children:m.jsx(v,{...Ce,onMouseDown:Ae,className:l,contentClassName:u,children:d})});return m.jsx(VD.Provider,{value:Ve,children:m.jsx(A4,{show:w,ref:Oe,backdrop:j,container:P,keyboard:!0,autoFocus:F,enforceFocus:U,restoreFocus:B,restoreFocusOptions:z,onEscapeKeyDown:ln,onShow:A,onHide:L,onEnter:In,onEntering:xn,onEntered:X,onExit:Vt,onExiting:ue,onExited:Qn,manager:Ge(),transition:R?W4:void 0,backdropTransition:R?X4:void 0,renderBackdrop:Tr,renderDialog:_r})})});GD.displayName="Modal";const Ln=Object.assign(GD,{Body:M4,Header:$4,Title:G4,Footer:P4,Dialog:zD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Y4=pr.forwardRef(({children:t,onClick:r},i)=>m.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:i,onClick:l=>{l.preventDefault(),r(l)},children:m.jsx("span",{className:"dropdown-toggle",children:t})}));function Z4({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l}=ri(t,r),{project:u}=Ji(r||i.grantNumber);if(!i||!u||i.error||u.error)return;const d=Jt.routes.request_action_path(t,"new"),v=i.allowedActions.Renewal?Array.isArray(i.allowedActions.Renewal)?[...i.allowedActions.Renewal]:[i.allowedActions.Renewal]:[];v.sort((C,x)=>C.opportunityId<x.opportunityId?-1:1);const h=[{id:"extension",action:`${d}?action_type=Extension`,isEnabled:"Extension"in i.allowedActions,button:"Request an Extension",enabled:i.usesCredits?m.jsx("p",{children:"Need more time to use your current credits and allocations? You can extend your project's end date up to six months past your funding end date, or up to 12 months at a time for projects not supported by a funding award."}):m.jsx("p",{children:"Need more time to use your current allocations? A one-time extension can extend your project end date by up to six months."}),disabled:m.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",i.usesCredits?m.jsxs(m.Fragment,{children:[" ","Extensions can be requested starting 90 days before your project's current end date."]}):null]})},{id:"supplement",action:`${d}?action_type=Supplement`,isEnabled:"Supplement"in i.allowedActions,button:"Request a Supplement",enabled:i.usesCredits?m.jsxs("p",{children:["Need more credits to complete your project? Great news! Your"," ",i.allocationType," project is eligible for a supplement of"," ",{Explore:"200,000",Discover:"750,000",Accelerate:"1,500,000"}[i.allocationType]," ","additional ACCESS credits."]}):m.jsxs("p",{children:["Need more units to complete your research? Great news! Your"," ",i.allocationType," project is eligible for a supplement of additional units."]}),disabled:m.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",i.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:v.map(C=>[C.opportunityName,`${Jt.routes.renew_request_path(t)}?opportunity_id=${C.opportunityId}`,"post"]),isEnabled:"Renewal"in i.allowedActions,button:"Request a Renewal",enabled:m.jsxs("p",{children:["Your ",i.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",m.jsx("a",{href:Jt.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:m.jsxs("p",{children:["Your project is not currently eligible for renewal.",i.usesCredits&&m.jsxs(m.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),i.isMaximize&&m.jsxs(m.Fragment,{children:[" ","You can submit a renewal request to the Maximize ACCESS opportunity closest to your project's current end date."]})]})},{id:"help",action:[["Learn How to Manage Allocations",Jt.routes.how_to_path(),"get"],["Open a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:m.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",m.jsxs("em",{children:["grant number ",u.grantNumber]})," and a detailed description of the problem."]})}];h.sort((C,x)=>C.isEnabled<x.isEnabled?1:-1);const y=h.map(({id:C,action:x,isEnabled:w,button:R,enabled:j,disabled:I})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(x)&&x.length?m.jsxs(Ub,{className:"d-flex flex-column",children:[m.jsx(Ub.Toggle,{as:Y4,children:R}),m.jsx(Ub.Menu,{children:x.map(([_,A,L])=>m.jsx(Ub.Item,{href:A,onClick:P=>{L!=="get"&&(P.preventDefault(),P.target.dataset.method=L,$&&$.rails&&$.rails.handleMethod($(P.target)))},children:_},A))})]}):m.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${w?"":"disabled"}`,href:w?x:"",children:m.jsx("span",{children:R})})}),m.jsx("div",{className:"col-sm-8 mb-2",children:w?j:I})]},C));return m.jsxs(Ln,{size:"lg",show:i.showActionsModal,onHide:l,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Manage Your Project"})}),m.jsxs(Ln.Body,{children:[m.jsxs("p",{children:["Please select an action to manage your project"," ",m.jsxs("strong",{children:[u.grantNumber,": ",u.title]}),"."]}),y]})]})}function q4({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleConfirmModal:u}=ri(t,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const v=i.usesCredits?"credits":"units",h=(1-tO(i))*100;return m.jsxs(Ln,{size:"lg",show:i.showConfirmModal,onHide:u,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Consider Requesting an Exchange"})}),m.jsx(Ln.Body,{children:m.jsxs("p",{children:[m.jsxs("strong",{children:[Math.round(h),"% of your allocation is unused."]})," ","Are you sure you want to request more ",v,"? You can exchange"," ",i.usesCredits?"credits for resources or ":""," one resource for another by changing the ",m.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:u,children:"Return to Exchange"}),m.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{u(),l()},children:["Request More ",v]})]})})]})}function J4({requestId:t,grantNumber:r,actionId:i}){const{deleteAction:l,request:u,toggleDeleteModal:d}=ri(t,r);if(!u||u.error)return;const v=u.actions.find(R=>R.actionId==i);if(!v)return;const{deleteStatus:h,isRequest:y}=v,C=h==ta.pending,x=h==ta.error,w=()=>d(i);return m.jsxs(Ln,{show:v.showDeleteModal,onHide:w,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Confirm Deletion"})}),m.jsxs(Ln.Body,{children:[x&&m.jsxs(Mr,{color:"danger",children:["Deletion of the ",y?"request":"action"," failed."]}),m.jsxs("p",{children:["Are you sure you want to delete"," ",!y&&m.jsxs(m.Fragment,{children:["action"," ",m.jsxs("strong",{children:[v.type,": ",Ud(v.date)]})," ","on"," "]}),"request ",m.jsx("strong",{children:pR(u)}),"? Deletions cannot be undone."]})]}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:w,disabled:C,children:"Cancel"}),m.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>l(i),disabled:C,children:C?"Deleting...":"Delete"})]})})]})}function _0({color:t="primary",href:r,icon:i,onClick:l,target:u,title:d}){const v=m.jsx("i",{className:`bi bi-${i}`}),h={className:`btn btn-sm ms-1 text-${t}`,href:r,onClick:l,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:u,title:d};return r?m.jsx("a",{...h,children:v}):m.jsx("button",{...h,children:v})}function WD({action:t,request:r,toggleDeleteModal:i}){const l=t.allowedOperations||[],u=[];l.includes("Edit")&&u.push(m.jsx(_0,{href:t.isRequest?Jt.routes.edit_request_path(r.requestId):Jt.routes.edit_request_action_path(r.requestId,t.actionId),icon:"pencil",title:"Edit action"},"edit")),l.includes("Delete")&&u.push(m.jsx(_0,{color:"danger",icon:"trash",onClick:()=>i(t.actionId),title:"Edit action"},"delete"));const d=`${t.type}: ${Ud(t.date)}`;return m.jsxs(m.Fragment,{children:[t.detailAvailable?m.jsx("a",{href:Jt.routes.request_action_path(r.requestId,t.actionId),children:d}):d,u]})}function Wd({resource:t,userGuide:r=!0}){const{full:i,short:l}=U0(t.name),u=l?m.jsx("abbr",{title:i,children:l}):i;return m.jsxs(m.Fragment,{children:[yc(Jt.resourceTypeIcons[t.icon])," ",u,!t.isCredit&&t.userGuideUrl&&r?m.jsx(_0,{icon:"book",href:t.userGuideUrl,target:"_blank",title:`${t.name} User Guide`}):null]})}function qp({status:t,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[t]||"dark";return m.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:t})}const Q4=t=>m.jsx("span",{className:t<0?"text-danger":"",children:t===0?"":t.toLocaleString()});function K4({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ri(t,r),{project:u,setRequest:d}=Ji(r||i.grantNumber);if(!i||!u)return;const v=u.requestsList;let h=0;for(;h<v.length&&v[h].requestId!==t;)h++;const y=v[h+1],C=v[h-1],x=(_,A)=>_?m.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(_.requestId),children:[A=="prev"?m.jsx("i",{className:"bi bi-chevron-left"}):null,pR(_),A=="next"?m.jsx("i",{className:"bi bi-chevron-right"}):null]}):m.jsx("span",{}),w=new Set,R=[];for(let _ of i.actions)for(let A of _.resources)w.has(A.resourceId)||(w.add(A.resourceId),R.push(A));R.sort(g0);const j=[{key:"action",name:"Action Details",format:(_,A)=>m.jsx(WD,{action:A,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:_=>m.jsx(qp,{status:_})},...R.map(_=>({key:`resource${_.resourceId}`,name:_.name,icon:_.icon,class:"text-end",format:_.isBoolean?A=>A?hR(A):null:Q4,formatHeader:(A,L)=>m.jsx(Wd,{resource:L,userGuide:!1})}))],I=i.actions.map(_=>{const A={..._};for(let{resourceId:L}of R)A[`resource${L}`]=0;for(let{resourceId:L,approved:P,requested:F}of _.resources)A[`resource${L}`]=P||F||0;return A});return m.jsxs("div",{className:"history",children:[m.jsx(ou,{columns:j,rows:I}),m.jsxs("div",{className:"buttons d-flex justify-content-between",children:[x(y,"prev"),x(C,"next")]})]})}function eW({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ri(t,r);if(!i)return;const u=[{key:"type",name:"Action Details",format:(d,v)=>m.jsx(WD,{action:v,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:d=>m.jsx(qp,{status:d})}];if(i.actions&&i.actions.length)return m.jsx(ou,{rows:i.actions,columns:u})}function cm(...t){return t.filter(r=>r!=null).reduce((r,i)=>{if(typeof i!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return r===null?i:function(...u){r.apply(this,u),i.apply(this,u)}},null)}const tW={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function nW(t,r){const i=`offset${t[0].toUpperCase()}${t.slice(1)}`,l=r[i],u=tW[t];return l+parseInt(tu(r,u[0]),10)+parseInt(tu(r,u[1]),10)}const rW={[vc]:"collapse",[S0]:"collapsing",[Jl]:"collapsing",[mc]:"collapse show"},aW=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:d,children:v,dimension:h="height",in:y=!1,timeout:C=300,mountOnEnter:x=!1,unmountOnExit:w=!1,appear:R=!1,getDimensionValue:j=nW,...I},_)=>{const A=typeof h=="function"?h():h,L=k.useMemo(()=>cm(z=>{z.style[A]="0"},t),[A,t]),P=k.useMemo(()=>cm(z=>{const X=`scroll${A[0].toUpperCase()}${A.slice(1)}`;z.style[A]=`${z[X]}px`},r),[A,r]),F=k.useMemo(()=>cm(z=>{z.style[A]=null},i),[A,i]),U=k.useMemo(()=>cm(z=>{z.style[A]=`${j(A,z)}px`,NO(z)},l),[l,j,A]),B=k.useMemo(()=>cm(z=>{z.style[A]=null},u),[A,u]);return m.jsx(IO,{ref:_,addEndListener:_O,...I,"aria-expanded":I.role?y:null,onEnter:L,onEntering:P,onEntered:F,onExit:U,onExiting:B,childRef:v.ref,in:y,timeout:C,mountOnEnter:x,unmountOnExit:w,appear:R,children:(z,X)=>pr.cloneElement(v,{...X,className:Qt(d,v.props.className,rW[z],A==="width"&&"collapse-horizontal")})})}),iW=aW;function XD(t,r){return Array.isArray(t)?t.includes(r):t===r}const YD=k.createContext({});YD.displayName="AccordionContext";const q0=YD,ZD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,children:l,eventKey:u,...d},v)=>{const{activeEventKey:h}=k.useContext(q0);return r=Cn(r,"accordion-collapse"),m.jsx(iW,{ref:v,in:XD(h,u),...d,className:Qt(i,r),children:m.jsx(t,{children:k.Children.only(l)})})});ZD.displayName="AccordionCollapse";const qD=ZD,JD=k.createContext({eventKey:""});JD.displayName="AccordionItemContext";const BR=JD,QD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,...C},x)=>{r=Cn(r,"accordion-body");const{eventKey:w}=k.useContext(BR);return m.jsx(qD,{eventKey:w,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,children:m.jsx(t,{ref:x,...C,className:Qt(i,r)})})});QD.displayName="AccordionBody";const oW=QD;function sW(t,r){const{activeEventKey:i,onSelect:l,alwaysOpen:u}=k.useContext(q0);return d=>{let v=t===i?null:t;u&&(Array.isArray(i)?i.includes(t)?v=i.filter(h=>h!==t):v=[...i,t]:v=[t]),l==null||l(v,d),r==null||r(d)}}const KD=k.forwardRef(({as:t="button",bsPrefix:r,className:i,onClick:l,...u},d)=>{r=Cn(r,"accordion-button");const{eventKey:v}=k.useContext(BR),h=sW(v,l),{activeEventKey:y}=k.useContext(q0);return t==="button"&&(u.type="button"),m.jsx(t,{ref:d,onClick:h,...u,"aria-expanded":Array.isArray(y)?y.includes(v):v===y,className:Qt(i,r,!XD(y,v)&&"collapsed")})});KD.displayName="AccordionButton";const ek=KD,tk=k.forwardRef(({as:t="h2",bsPrefix:r,className:i,children:l,onClick:u,...d},v)=>(r=Cn(r,"accordion-header"),m.jsx(t,{ref:v,...d,className:Qt(i,r),children:m.jsx(ek,{onClick:u,children:l})})));tk.displayName="AccordionHeader";const lW=tk,nk=k.forwardRef(({as:t="div",bsPrefix:r,className:i,eventKey:l,...u},d)=>{r=Cn(r,"accordion-item");const v=k.useMemo(()=>({eventKey:l}),[l]);return m.jsx(BR.Provider,{value:v,children:m.jsx(t,{ref:d,...u,className:Qt(i,r)})})});nk.displayName="AccordionItem";const uW=nk,rk=k.forwardRef((t,r)=>{const{as:i="div",activeKey:l,bsPrefix:u,className:d,onSelect:v,flush:h,alwaysOpen:y,...C}=W0(t,{activeKey:"onSelect"}),x=Cn(u,"accordion"),w=k.useMemo(()=>({activeEventKey:l,onSelect:v,alwaysOpen:y}),[l,v,y]);return m.jsx(q0.Provider,{value:w,children:m.jsx(i,{ref:r,...C,className:Qt(d,x,h&&`${x}-flush`)})})});rk.displayName="Accordion";const us=Object.assign(rk,{Button:ek,Collapse:qD,Item:uW,Header:lW,Body:oW}),zw=2**31-1;function ak(t,r,i){const l=i-Date.now();t.current=l<=zw?setTimeout(r,l):setTimeout(()=>ak(t,r,i),zw)}function cW(){const t=_R(),r=k.useRef();return PR(()=>clearTimeout(r.current)),k.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,d=0){t()&&(i(),d<=zw?r.current=setTimeout(u,d):ak(r,u,Date.now()+d))}return{set:l,clear:i,handleRef:r}},[])}const dW=()=>{};function fW(t,r,{disabled:i,clickTrigger:l}={}){const u=r||dW;pD(t,u,{disabled:i,clickTrigger:l});const d=yr(v=>{LD(v)&&u(v)});k.useEffect(()=>{if(i||t==null)return;const v=nh(i0(t));let h=(v.defaultView||window).event;const y=Kl(v,"keyup",C=>{if(C===h){h=void 0;return}d(C)});return()=>{y()}},[t,i,d])}const ik=k.forwardRef((t,r)=>{const{flip:i,offset:l,placement:u,containerPadding:d,popperConfig:v={},transition:h,runTransition:y}=t,[C,x]=w0(),[w,R]=w0(),j=hs(x,r),I=Fw(t.container),_=Fw(t.target),[A,L]=k.useState(!t.show),P=dD(_,C,hD({placement:u,enableEvents:!!t.show,containerPadding:d||5,flip:i,offset:l,arrowElement:w,popperConfig:v}));t.show&&A&&L(!1);const F=(...ge)=>{L(!0),t.onExited&&t.onExited(...ge)},U=t.show||!A;if(fW(C,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!U)return null;const{onExit:B,onExiting:z,onEnter:X,onEntering:Z,onEntered:ue}=t;let ie=t.children(Object.assign({},P.attributes.popper,{style:P.styles.popper,ref:j}),{popper:P,placement:u,show:!!t.show,arrowProps:Object.assign({},P.attributes.arrow,{style:P.styles.arrow,ref:R})});return ie=Vw(h,y,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ie,onExit:B,onExiting:z,onExited:F,onEnter:X,onEntering:Z,onEntered:ue}),I?zd.createPortal(ie,I):null});ik.displayName="Overlay";const pW=ik,ok=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"popover-header"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));ok.displayName="PopoverHeader";const hW=ok,sk=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=Cn(r,"popover-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));sk.displayName="PopoverBody";const lk=sk;function uk(t,r){let i=t;return t==="left"?i=r?"end":"start":t==="right"&&(i=r?"start":"end"),i}function ck(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const vW=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,body:d,arrowProps:v,hasDoneInitialMeasure:h,popper:y,show:C,...x},w)=>{const R=Cn(t,"popover"),j=G0(),[I]=(r==null?void 0:r.split("-"))||[],_=uk(I,j);let A=l;return C&&!h&&(A={...l,...ck(y==null?void 0:y.strategy)}),m.jsxs("div",{ref:w,role:"tooltip",style:A,"x-placement":I,className:Qt(i,R,I&&`bs-popover-${_}`),...x,children:[m.jsx("div",{className:"popover-arrow",...v}),d?m.jsx(lk,{children:u}):u]})}),mW=Object.assign(vW,{Header:hW,Body:lk,POPPER_OFFSET:[0,8]}),dk=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,arrowProps:d,hasDoneInitialMeasure:v,popper:h,show:y,...C},x)=>{t=Cn(t,"tooltip");const w=G0(),[R]=(r==null?void 0:r.split("-"))||[],j=uk(R,w);let I=l;return y&&!v&&(I={...l,...ck(h==null?void 0:h.strategy)}),m.jsxs("div",{ref:x,style:I,role:"tooltip","x-placement":R,className:Qt(i,t,`bs-tooltip-${j}`),...C,children:[m.jsx("div",{className:"tooltip-arrow",...d}),m.jsx("div",{className:`${t}-inner`,children:u})]})});dk.displayName="Tooltip";const J0=Object.assign(dk,{TOOLTIP_OFFSET:[0,6]});function gW(t){const r=k.useRef(null),i=Cn(void 0,"popover"),l=Cn(void 0,"tooltip"),u=k.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(r.current){if(Bw(r.current,i))return mW.POPPER_OFFSET;if(Bw(r.current,l))return J0.TOOLTIP_OFFSET}return[0,0]}}}),[t,i,l]);return[r,[u]]}function yW(t,r){const{ref:i}=t,{ref:l}=r;t.ref=i.__wrapped||(i.__wrapped=u=>i(E0(u))),r.ref=l.__wrapped||(l.__wrapped=u=>l(E0(u)))}const fk=k.forwardRef(({children:t,transition:r=Gp,popperConfig:i={},rootClose:l=!1,placement:u="top",show:d=!1,...v},h)=>{const y=k.useRef({}),[C,x]=k.useState(null),[w,R]=gW(v.offset),j=hs(h,w),I=r===!0?Gp:r||void 0,_=yr(A=>{x(A),i==null||i.onFirstUpdate==null||i.onFirstUpdate(A)});return R0(()=>{C&&v.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[C,v.target]),k.useEffect(()=>{d||x(null)},[d]),m.jsx(pW,{...v,ref:j,popperConfig:{...i,modifiers:R.concat(i.modifiers||[]),onFirstUpdate:_},transition:I,rootClose:l,placement:u,show:d,children:(A,{arrowProps:L,popper:P,show:F})=>{var U,B;yW(A,L);const z=P==null?void 0:P.placement,X=Object.assign(y.current,{state:P==null?void 0:P.state,scheduleUpdate:P==null?void 0:P.update,placement:z,outOfBoundaries:(P==null||(U=P.state)==null||(B=U.modifiersData.hide)==null?void 0:B.isReferenceHidden)||!1,strategy:i.strategy}),Z=!!C;return typeof t=="function"?t({...A,placement:z,show:F,...!r&&F&&{className:"show"},popper:X,arrowProps:L,hasDoneInitialMeasure:Z}):k.cloneElement(t,{...A,placement:z,arrowProps:L,popper:X,hasDoneInitialMeasure:Z,className:Qt(t.props.className,!r&&F&&"show"),style:{...t.props.style,...A.style}})}})});fk.displayName="Overlay";const pk=fk;var bW={};function CW(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function CA(t,r,i){const[l]=r,u=l.currentTarget,d=l.relatedTarget||l.nativeEvent[i];(!d||d!==u)&&!Nm(u,d)&&t(...r)}Ue.oneOf(["click","hover","focus"]);const xW=({trigger:t=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:d=!1,onToggle:v,delay:h,placement:y,flip:C=y&&y.indexOf("auto")!==-1,...x})=>{const w=k.useRef(null),R=hs(w,i.ref),j=cW(),I=k.useRef(""),[_,A]=FO(u,d,v),L=CW(h),{onFocus:P,onBlur:F,onClick:U}=typeof i!="function"?k.Children.only(i).props:{},B=Ce=>{R(E0(Ce))},z=k.useCallback(()=>{if(j.clear(),I.current="show",!L.show){A(!0);return}j.set(()=>{I.current==="show"&&A(!0)},L.show)},[L.show,A,j]),X=k.useCallback(()=>{if(j.clear(),I.current="hide",!L.hide){A(!1);return}j.set(()=>{I.current==="hide"&&A(!1)},L.hide)},[L.hide,A,j]),Z=k.useCallback((...Ce)=>{z(),P==null||P(...Ce)},[z,P]),ue=k.useCallback((...Ce)=>{X(),F==null||F(...Ce)},[X,F]),ie=k.useCallback((...Ce)=>{A(!_),U==null||U(...Ce)},[U,A,_]),ge=k.useCallback((...Ce)=>{CA(z,Ce,"fromElement")},[z]),de=k.useCallback((...Ce)=>{CA(X,Ce,"toElement")},[X]),_e=t==null?[]:[].concat(t),Ee={ref:B};return _e.indexOf("click")!==-1&&(Ee.onClick=ie),_e.indexOf("focus")!==-1&&(Ee.onFocus=Z,Ee.onBlur=ue),_e.indexOf("hover")!==-1&&(bW.NODE_ENV!=="production"&&MR(_e.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),Ee.onMouseOver=ge,Ee.onMouseOut=de),m.jsxs(m.Fragment,{children:[typeof i=="function"?i(Ee):k.cloneElement(i,Ee),m.jsx(pk,{...x,show:_,onHide:X,flip:C,placement:y,popperConfig:l,target:w.current,children:r})]})},zR=xW;function SW({requestId:t,grantNumber:r}){const{request:i}=ri(t,r),{project:l}=Ji(r||i.grantNumber),{setTab:u}=Ji(r||i.grantNumber);if(!i||!l)return;let d;const v={};for(let R of l.users||[])for(let j of R.resourceIds)v[j]=v[j]||0,v[j]+=1;const h=(i.resources||[]).filter(R=>R.isCredit?(d=R,!1):R.allocated>0).map((R,j)=>({...R,userCount:v[R.resourceId]||0,color:Ew[j%Ew.length]})),y=d?d.allocated:0,C="Exchange"in i.allowedActions,x=i.exchangeActionId!==null,w=[{key:"name",name:"Resource",format:(R,j)=>m.jsx(Wd,{resource:j})},{key:"isActive",name:"Status",format:R=>m.jsx(qp,{status:R?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(R,j)=>{if(j.isBoolean)return hR(j.allocated);const I=j.allocated-R,_=Math.max(I,0)*100/j.allocated;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:`usage bg-${j.color}`,style:{width:`${Math.min(_,100)}%`}}),ga(I,{abbreviate:!0})," of"," ",ga(j.allocated,{abbreviate:!0})," ",j.unit," ","remaining (",Math.round(_),"%)"]})}},{key:"endDate",name:"End Date",format:R=>Ud(R)}];return l.isManager&&w.push({key:"userCount",name:"Users",class:"text-end",format:ga}),l.currentUser&&w.push({key:"resourceUsername",name:"My Username",format:(R,j)=>{const I=l.currentUser.resourceUsernames[j.resourceId];if(I)return I;if(l.currentUser.resourceAccountPendingIds.includes(j.resourceId))return m.jsx(qp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(l.currentUser.resourceIds.includes(j.resourceId)||!j.isActive)return m.jsx(m.Fragment,{children:"—"});if(l.isManager)return m.jsx("a",{href:"#",onClick:A=>{A.preventDefault(),u("users")},children:"Grant access"});const _=m.jsxs(J0,{children:["Please contact ",vR(l)," to request access to this resource."]});return m.jsx(zR,{overlay:_,children:m.jsx("a",{href:"#",onClick:A=>{A.preventDefault()},children:"Request access"})})}}),m.jsxs("div",{className:"overview",children:[C&&!x&&y>Jt.creditAlertThreshold?m.jsxs("button",{onClick:()=>u("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[m.jsxs("span",{children:[m.jsxs("span",{className:"fs-3",children:[yc(Jt.resourceTypeIcons[d.icon])," ",ga(y)]})," ",d.unit," available"]}),m.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",m.jsx("span",{className:"fs-3",children:yc("chevron-right")})]})]}):null,h.length?m.jsx(ou,{columns:w,rows:h}):null]})}const EW=[{key:"role",name:"Role",format:t=>m.jsxs(m.Fragment,{children:[yc(Jt.roleIcons[t])," ",t]})},{key:"users",name:"Users",format:t=>{const r=t.slice(0,3);return t.length>4&&(r[2]=`${ga(t.length-3)} others`),r.map((i,l)=>{const u=r.length-l;return`${i}${u>2?",":u==2&&r.length>1?" and":""}`}).join(" ")}}],wW=({requestId:t,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const l=H0.map(({role:u,name:d})=>({role:d,users:(i.users||[]).filter(v=>v.role===u).map(v=>`${v.firstName} ${v.lastName}`)})).filter(u=>u.users.length>0);return l.length?m.jsx(ou,{rows:l,columns:EW}):null};function RW({requestId:t,grantNumber:r}){const{request:i}=ri(t,r),{project:l,username:u}=Ji(r||i.grantNumber);if(!(!i||!l||i.error||l.error)&&i)return m.jsxs("div",{className:"overview",children:[m.jsx(SW,{requestId:t,grantNumber:r}),l.isManager?m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(wW,{requestId:t,grantNumber:r})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(eW,{requestId:t})})]}):null]})}function Jd(t){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jd(t)}function TW(t,r){if(Jd(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(Jd(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function hk(t){var r=TW(t,"string");return Jd(r)=="symbol"?r:String(r)}function Bp(t,r,i){return r=hk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function xA(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),i.push.apply(i,l)}return i}function bt(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?xA(Object(i),!0).forEach(function(l){Bp(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):xA(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function _W(t){if(Array.isArray(t))return t}function NW(t,r){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var l,u,d,v,h=[],y=!0,C=!1;try{if(d=(i=i.call(t)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(l=d.call(i)).done)&&(h.push(l.value),h.length!==r);y=!0);}catch(x){C=!0,u=x}finally{try{if(!y&&i.return!=null&&(v=i.return(),Object(v)!==v))return}finally{if(C)throw u}}return h}}function $w(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,l=new Array(r);i<r;i++)l[i]=t[i];return l}function vk(t,r){if(t){if(typeof t=="string")return $w(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return $w(t,r)}}function IW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
294
294
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function na(t,r){return _W(t)||NW(t,r)||vk(t,r)||IW()}function al(t,r){if(t==null)return{};var i=xR(t,r),l,u;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(u=0;u<d.length;u++)l=d[u],!(r.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(t,l)&&(i[l]=t[l])}return i}var AW=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function mk(t){var r=t.defaultInputValue,i=r===void 0?"":r,l=t.defaultMenuIsOpen,u=l===void 0?!1:l,d=t.defaultValue,v=d===void 0?null:d,h=t.inputValue,y=t.menuIsOpen,C=t.onChange,x=t.onInputChange,w=t.onMenuClose,R=t.onMenuOpen,j=t.value,I=al(t,AW),_=k.useState(h!==void 0?h:i),A=na(_,2),L=A[0],P=A[1],F=k.useState(y!==void 0?y:u),U=na(F,2),B=U[0],z=U[1],X=k.useState(j!==void 0?j:v),Z=na(X,2),ue=Z[0],ie=Z[1],ge=k.useCallback(function(re,Ie){typeof C=="function"&&C(re,Ie),ie(re)},[C]),de=k.useCallback(function(re,Ie){var G;typeof x=="function"&&(G=x(re,Ie)),P(G!==void 0?G:re)},[x]),_e=k.useCallback(function(){typeof R=="function"&&R(),z(!0)},[R]),Ee=k.useCallback(function(){typeof w=="function"&&w(),z(!1)},[w]),Ce=h!==void 0?h:L,je=y!==void 0?y:B,Le=j!==void 0?j:ue;return bt(bt({},I),{},{inputValue:Ce,menuIsOpen:je,onChange:ge,onInputChange:de,onMenuClose:Ee,onMenuOpen:_e,value:Le})}function jW(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function SA(t,r){for(var i=0;i<r.length;i++){var l=r[i];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,hk(l.key),l)}}function OW(t,r,i){return r&&SA(t.prototype,r),i&&SA(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function DW(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&x0(t,r)}function N0(t){return N0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},N0(t)}function gk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gk=function(){return!!t})()}function kW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function MW(t,r){if(r&&(Jd(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kW(t)}function LW(t){var r=gk();return function(){var l=N0(t),u;if(r){var d=N0(this).constructor;u=Reflect.construct(l,arguments,d)}else u=l.apply(this,arguments);return MW(this,u)}}function PW(t){if(Array.isArray(t))return $w(t)}function FW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function VW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
295
295
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $R(t){return PW(t)||FW(t)||vk(t)||VW()}var Gb={};function BW(t){if(t.sheet)return t.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===t)return document.styleSheets[r]}function zW(t){var r=document.createElement("style");return r.setAttribute("data-emotion",t.key),t.nonce!==void 0&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var $W=function(){function t(i){var l=this;this._insertTag=function(u){var d;l.tags.length===0?l.insertionPoint?d=l.insertionPoint.nextSibling:l.prepend?d=l.container.firstChild:d=l.before:d=l.tags[l.tags.length-1].nextSibling,l.container.insertBefore(u,d),l.tags.push(u)},this.isSpeedy=i.speedy===void 0?Gb.NODE_ENV==="production":i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var r=t.prototype;return r.hydrate=function(l){l.forEach(this._insertTag)},r.insert=function(l){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zW(this));var u=this.tags[this.tags.length-1];if(Gb.NODE_ENV!=="production"){var d=l.charCodeAt(0)===64&&l.charCodeAt(1)===105;d&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
296
296
|
`+l+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!d}if(this.isSpeedy){var v=BW(u);try{v.insertRule(l,v.cssRules.length)}catch(h){Gb.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(l)&&console.error('There was a problem inserting the following rule: "'+l+'"',h)}}else u.appendChild(document.createTextNode(l));this.ctr++},r.flush=function(){this.tags.forEach(function(l){return l.parentNode&&l.parentNode.removeChild(l)}),this.tags=[],this.ctr=0,Gb.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),Ba="-ms-",I0="-moz-",yn="-webkit-",UR="comm",HR="rule",GR="decl",UW="@import",yk="@keyframes",HW="@layer",GW=Math.abs,Q0=String.fromCharCode,WW=Object.assign;function XW(t,r){return ma(t,0)^45?(((r<<2^ma(t,0))<<2^ma(t,1))<<2^ma(t,2))<<2^ma(t,3):0}function bk(t){return t.trim()}function YW(t,r){return(t=r.exec(t))?t[0]:t}function bn(t,r,i){return t.replace(r,i)}function Uw(t,r){return t.indexOf(r)}function ma(t,r){return t.charCodeAt(r)|0}function Im(t,r,i){return t.slice(r,i)}function el(t){return t.length}function WR(t){return t.length}function Wb(t,r){return r.push(t),t}function ZW(t,r){return t.map(r).join("")}var K0=1,Jp=1,Ck=0,Oi=0,kr=0,ih="";function eC(t,r,i,l,u,d,v){return{value:t,root:r,parent:i,type:l,props:u,children:d,line:K0,column:Jp,length:v,return:""}}function dm(t,r){return WW(eC("",null,null,"",null,null,0),t,{length:-t.length},r)}function qW(){return kr}function JW(){return kr=Oi>0?ma(ih,--Oi):0,Jp--,kr===10&&(Jp=1,K0--),kr}function Yi(){return kr=Oi<Ck?ma(ih,Oi++):0,Jp++,kr===10&&(Jp=1,K0++),kr}function rl(){return ma(ih,Oi)}function o0(){return Oi}function zm(t,r){return Im(ih,t,r)}function Am(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xk(t){return K0=Jp=1,Ck=el(ih=t),Oi=0,[]}function Sk(t){return ih="",t}function s0(t){return bk(zm(Oi-1,Hw(t===91?t+2:t===40?t+1:t)))}function QW(t){for(;(kr=rl())&&kr<33;)Yi();return Am(t)>2||Am(kr)>3?"":" "}function KW(t,r){for(;--r&&Yi()&&!(kr<48||kr>102||kr>57&&kr<65||kr>70&&kr<97););return zm(t,o0()+(r<6&&rl()==32&&Yi()==32))}function Hw(t){for(;Yi();)switch(kr){case t:return Oi;case 34:case 39:t!==34&&t!==39&&Hw(kr);break;case 40:t===41&&Hw(t);break;case 92:Yi();break}return Oi}function e5(t,r){for(;Yi()&&t+kr!==57;)if(t+kr===84&&rl()===47)break;return"/*"+zm(r,Oi-1)+"*"+Q0(t===47?t:Yi())}function t5(t){for(;!Am(rl());)Yi();return zm(t,Oi)}function n5(t){return Sk(l0("",null,null,null,[""],t=xk(t),0,[0],t))}function l0(t,r,i,l,u,d,v,h,y){for(var C=0,x=0,w=v,R=0,j=0,I=0,_=1,A=1,L=1,P=0,F="",U=u,B=d,z=l,X=F;A;)switch(I=P,P=Yi()){case 40:if(I!=108&&ma(X,w-1)==58){Uw(X+=bn(s0(P),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:X+=s0(P);break;case 9:case 10:case 13:case 32:X+=QW(I);break;case 92:X+=KW(o0()-1,7);continue;case 47:switch(rl()){case 42:case 47:Wb(r5(e5(Yi(),o0()),r,i),y);break;default:X+="/"}break;case 123*_:h[C++]=el(X)*L;case 125*_:case 59:case 0:switch(P){case 0:case 125:A=0;case 59+x:L==-1&&(X=bn(X,/\f/g,"")),j>0&&el(X)-w&&Wb(j>32?wA(X+";",l,i,w-1):wA(bn(X," ","")+";",l,i,w-2),y);break;case 59:X+=";";default:if(Wb(z=EA(X,r,i,C,x,u,h,F,U=[],B=[],w),d),P===123)if(x===0)l0(X,r,z,z,U,d,w,h,B);else switch(R===99&&ma(X,3)===110?100:R){case 100:case 108:case 109:case 115:l0(t,z,z,l&&Wb(EA(t,z,z,0,0,u,h,F,u,U=[],w),B),u,B,w,h,l?U:B);break;default:l0(X,z,z,z,[""],B,0,h,B)}}C=x=j=0,_=L=1,F=X="",w=v;break;case 58:w=1+el(X),j=I;default:if(_<1){if(P==123)--_;else if(P==125&&_++==0&&JW()==125)continue}switch(X+=Q0(P),P*_){case 38:L=x>0?1:(X+="\f",-1);break;case 44:h[C++]=(el(X)-1)*L,L=1;break;case 64:rl()===45&&(X+=s0(Yi())),R=rl(),x=w=el(F=X+=t5(o0())),P++;break;case 45:I===45&&el(X)==2&&(_=0)}}return d}function EA(t,r,i,l,u,d,v,h,y,C,x){for(var w=u-1,R=u===0?d:[""],j=WR(R),I=0,_=0,A=0;I<l;++I)for(var L=0,P=Im(t,w+1,w=GW(_=v[I])),F=t;L<j;++L)(F=bk(_>0?R[L]+" "+P:bn(P,/&\f/g,R[L])))&&(y[A++]=F);return eC(t,r,i,u===0?HR:h,y,C,x)}function r5(t,r,i){return eC(t,r,i,UR,Q0(qW()),Im(t,2,-2),0)}function wA(t,r,i,l){return eC(t,r,i,GR,Im(t,0,l),Im(t,l+1,-1),l)}function $p(t,r){for(var i="",l=WR(t),u=0;u<l;u++)i+=r(t[u],u,t,r)||"";return i}function a5(t,r,i,l){switch(t.type){case HW:if(t.children.length)break;case UW:case GR:return t.return=t.return||t.value;case UR:return"";case yk:return t.return=t.value+"{"+$p(t.children,l)+"}";case HR:t.value=t.props.join(",")}return el(i=$p(t.children,l))?t.return=t.value+"{"+i+"}":""}function i5(t){var r=WR(t);return function(i,l,u,d){for(var v="",h=0;h<r;h++)v+=t[h](i,l,u,d)||"";return v}}function o5(t){return function(r){r.root||(r=r.return)&&t(r)}}function s5(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var fm={},l5=function(r,i,l){for(var u=0,d=0;u=d,d=rl(),u===38&&d===12&&(i[l]=1),!Am(d);)Yi();return zm(r,Oi)},u5=function(r,i){var l=-1,u=44;do switch(Am(u)){case 0:u===38&&rl()===12&&(i[l]=1),r[l]+=l5(Oi-1,i,l);break;case 2:r[l]+=s0(u);break;case 4:if(u===44){r[++l]=rl()===58?"&\f":"",i[l]=r[l].length;break}default:r[l]+=Q0(u)}while(u=Yi());return r},c5=function(r,i){return Sk(u5(xk(r),i))},RA=new WeakMap,d5=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,l=r.parent,u=r.column===l.column&&r.line===l.line;l.type!=="rule";)if(l=l.parent,!l)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!RA.get(l))&&!u){RA.set(r,!0);for(var d=[],v=c5(i,d),h=l.props,y=0,C=0;y<v.length;y++)for(var x=0;x<h.length;x++,C++)r.props[C]=d[y]?v[y].replace(/&\f/g,h[x]):h[x]+" "+v[y]}}},f5=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},p5="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",h5=function(r){return r.type==="comm"&&r.children.indexOf(p5)>-1},v5=function(r){return function(i,l,u){if(!(i.type!=="rule"||r.compat)){var d=i.value.match(/(:first|:nth|:nth-last)-child/g);if(d){for(var v=!!i.parent,h=v?i.parent.children:u,y=h.length-1;y>=0;y--){var C=h[y];if(C.line<i.line)break;if(C.column<i.column){if(h5(C))return;break}}d.forEach(function(x){console.error('The pseudo class "'+x+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+x.split("-child")[0]+'-of-type".')})}}}},Ek=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},m5=function(r,i){for(var l=r-1;l>=0;l--)if(!Ek(i[l]))return!0;return!1},TA=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},g5=function(r,i,l){Ek(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),TA(r)):m5(i,l)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),TA(r)))};function wk(t,r){switch(XW(t,r)){case 5103:return yn+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yn+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return yn+t+I0+t+Ba+t+t;case 6828:case 4268:return yn+t+Ba+t+t;case 6165:return yn+t+Ba+"flex-"+t+t;case 5187:return yn+t+bn(t,/(\w+).+(:[^]+)/,yn+"box-$1$2"+Ba+"flex-$1$2")+t;case 5443:return yn+t+Ba+"flex-item-"+bn(t,/flex-|-self/,"")+t;case 4675:return yn+t+Ba+"flex-line-pack"+bn(t,/align-content|flex-|-self/,"")+t;case 5548:return yn+t+Ba+bn(t,"shrink","negative")+t;case 5292:return yn+t+Ba+bn(t,"basis","preferred-size")+t;case 6060:return yn+"box-"+bn(t,"-grow","")+yn+t+Ba+bn(t,"grow","positive")+t;case 4554:return yn+bn(t,/([^-])(transform)/g,"$1"+yn+"$2")+t;case 6187:return bn(bn(bn(t,/(zoom-|grab)/,yn+"$1"),/(image-set)/,yn+"$1"),t,"")+t;case 5495:case 3959:return bn(t,/(image-set\([^]*)/,yn+"$1$`$1");case 4968:return bn(bn(t,/(.+:)(flex-)?(.*)/,yn+"box-pack:$3"+Ba+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yn+t+t;case 4095:case 3583:case 4068:case 2532:return bn(t,/(.+)-inline(.+)/,yn+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(el(t)-1-r>6)switch(ma(t,r+1)){case 109:if(ma(t,r+4)!==45)break;case 102:return bn(t,/(.+:)(.+)-([^]+)/,"$1"+yn+"$2-$3$1"+I0+(ma(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~Uw(t,"stretch")?wk(bn(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(ma(t,r+1)!==115)break;case 6444:switch(ma(t,el(t)-3-(~Uw(t,"!important")&&10))){case 107:return bn(t,":",":"+yn)+t;case 101:return bn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yn+(ma(t,14)===45?"inline-":"")+"box$3$1"+yn+"$2$3$1"+Ba+"$2box$3")+t}break;case 5936:switch(ma(t,r+11)){case 114:return yn+t+Ba+bn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return yn+t+Ba+bn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return yn+t+Ba+bn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return yn+t+Ba+t+t}return t}var y5=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case GR:r.return=wk(r.value,r.length);break;case yk:return $p([dm(r,{value:bn(r.value,"@","@"+yn)})],u);case HR:if(r.length)return ZW(r.props,function(d){switch(YW(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $p([dm(r,{props:[bn(d,/:(read-\w+)/,":"+I0+"$1")]})],u);case"::placeholder":return $p([dm(r,{props:[bn(d,/:(plac\w+)/,":"+yn+"input-$1")]}),dm(r,{props:[bn(d,/:(plac\w+)/,":"+I0+"$1")]}),dm(r,{props:[bn(d,/:(plac\w+)/,Ba+"input-$1")]})],u)}return""})}},b5=[y5],C5=function(r){var i=r.key;if(fm.NODE_ENV!=="production"&&!i)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
@@ -306,4 +306,4 @@ You should wrap it with \`css\` like this:
|
|
|
306
306
|
`),l=0;l<i.length;l++){var u=M5(i[l]);if(u){if(L5.has(u))break;if(/^[A-Z]/.test(u))return P5(u)}}},Gw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ww="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",V5=function(r,i){if(Qd.NODE_ENV!=="production"&&typeof i.css=="string"&&i.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+i.css+"`");var l={};for(var u in i)qR.call(i,u)&&(l[u]=i[u]);if(l[Gw]=r,Qd.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=F5(new Error().stack);d&&(l[Ww]=d)}return l},B5=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return XR(i,l,u),Ok(function(){return YR(i,l,u)}),null},Dk=QR(function(t,r,i){var l=t.css;typeof l=="string"&&r.registered[l]!==void 0&&(l=r.registered[l]);var u=t[Gw],d=[l],v="";typeof t.className=="string"?v=_k(r.registered,d,t.className):t.className!=null&&(v=t.className+" ");var h=Om(d,void 0,k.useContext(tC));if(Qd.NODE_ENV!=="production"&&h.name.indexOf("-")===-1){var y=t[Ww];y&&(h=Om([h,"label:"+y+";"]))}v+=r.key+"-"+h.name;var C={};for(var x in t)qR.call(t,x)&&x!=="css"&&x!==Gw&&(Qd.NODE_ENV==="production"||x!==Ww)&&(C[x]=t[x]);return C.ref=i,C.className=v,k.createElement(k.Fragment,null,k.createElement(B5,{cache:r,serialized:h,isStringTag:typeof u=="string"}),k.createElement(u,C))});Qd.NODE_ENV!=="production"&&(Dk.displayName="EmotionCssPropInternal");var z5=Dk,Kd={},$5={name:"@emotion/react",version:"11.11.3",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},wt=function(r,i){var l=arguments;if(i==null||!qR.call(i,"css"))return k.createElement.apply(void 0,l);var u=l.length,d=new Array(u);d[0]=z5,d[1]=V5(r,i);for(var v=2;v<u;v++)d[v]=l[v];return k.createElement.apply(null,d)},DA=!1,U5=QR(function(t,r){Kd.NODE_ENV!=="production"&&!DA&&(t.className||t.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),DA=!0);var i=t.styles,l=Om([i],void 0,k.useContext(tC)),u=k.useRef();return jA(function(){var d=r.key+"-global",v=new r.sheet.constructor({key:d,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),h=!1,y=document.querySelector('style[data-emotion="'+d+" "+l.name+'"]');return r.sheet.tags.length&&(v.before=r.sheet.tags[0]),y!==null&&(h=!0,y.setAttribute("data-emotion",d),v.hydrate([y])),u.current=[v,h],function(){v.flush()}},[r]),jA(function(){var d=u.current,v=d[0],h=d[1];if(h){d[1]=!1;return}if(l.next!==void 0&&YR(r,l.next,!0),v.tags.length){var y=v.tags[v.tags.length-1].nextElementSibling;v.before=y,v.flush()}r.insert("",l,v,!1)},[r,l.name]),null});Kd.NODE_ENV!=="production"&&(U5.displayName="EmotionGlobal");function KR(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Om(r)}var H5=function(){var r=KR.apply(void 0,arguments),i="animation-"+r.name;return{name:i,styles:"@keyframes "+i+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},G5=function t(r){for(var i=r.length,l=0,u="";l<i;l++){var d=r[l];if(d!=null){var v=void 0;switch(typeof d){case"boolean":break;case"object":{if(Array.isArray(d))v=t(d);else{Kd.NODE_ENV!=="production"&&d.styles!==void 0&&d.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),v="";for(var h in d)d[h]&&h&&(v&&(v+=" "),v+=h)}break}default:v=d}v&&(u&&(u+=" "),u+=v)}}return u};function W5(t,r,i){var l=[],u=_k(t,l,i);return l.length<2?i:u+r(l)}var X5=function(r){var i=r.cache,l=r.serializedArr;return Ok(function(){for(var u=0;u<l.length;u++)YR(i,l[u],!1)}),null},Y5=QR(function(t,r){var i=!1,l=[],u=function(){if(i&&Kd.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var C=arguments.length,x=new Array(C),w=0;w<C;w++)x[w]=arguments[w];var R=Om(x,r.registered);return l.push(R),XR(r,R,!1),r.key+"-"+R.name},d=function(){if(i&&Kd.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var C=arguments.length,x=new Array(C),w=0;w<C;w++)x[w]=arguments[w];return W5(r.registered,u,G5(x))},v={css:u,cx:d,theme:k.useContext(tC)},h=t.children(v);return i=!0,k.createElement(k.Fragment,null,k.createElement(X5,{cache:r,serializedArr:l}),h)});Kd.NODE_ENV!=="production"&&(Y5.displayName="EmotionClassNames");if(Kd.NODE_ENV!=="production"){var kA=!0,Z5=typeof jest<"u"||typeof vi<"u";if(kA&&!Z5){var MA=typeof globalThis<"u"?globalThis:kA?window:global,LA="__EMOTION_REACT_"+$5.version.split(".")[0]+"__";MA[LA]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),MA[LA]=!0}}function q5(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}const J5=Math.min,Q5=Math.max,j0=Math.round,Xb=Math.floor,O0=t=>({x:t,y:t});function K5(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function kk(t){return Lk(t)?(t.nodeName||"").toLowerCase():"#document"}function fs(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Mk(t){var r;return(r=(Lk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Lk(t){return t instanceof Node||t instanceof fs(t).Node}function Xw(t){return t instanceof Element||t instanceof fs(t).Element}function e1(t){return t instanceof HTMLElement||t instanceof fs(t).HTMLElement}function PA(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fs(t).ShadowRoot}function Pk(t){const{overflow:r,overflowX:i,overflowY:l,display:u}=t1(t);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!["inline","contents"].includes(u)}function eX(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tX(t){return["html","body","#document"].includes(kk(t))}function t1(t){return fs(t).getComputedStyle(t)}function nX(t){if(kk(t)==="html")return t;const r=t.assignedSlot||t.parentNode||PA(t)&&t.host||Mk(t);return PA(r)?r.host:r}function Fk(t){const r=nX(t);return tX(r)?t.ownerDocument?t.ownerDocument.body:t.body:e1(r)&&Pk(r)?r:Fk(r)}function D0(t,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const u=Fk(t),d=u===((l=t.ownerDocument)==null?void 0:l.body),v=fs(u);return d?r.concat(v,v.visualViewport||[],Pk(u)?u:[],v.frameElement&&i?D0(v.frameElement):[]):r.concat(u,D0(u,[],i))}function rX(t){const r=t1(t);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const u=e1(t),d=u?t.offsetWidth:i,v=u?t.offsetHeight:l,h=j0(i)!==d||j0(l)!==v;return h&&(i=d,l=v),{width:i,height:l,$:h}}function n1(t){return Xw(t)?t:t.contextElement}function nw(t){const r=n1(t);if(!e1(r))return O0(1);const i=r.getBoundingClientRect(),{width:l,height:u,$:d}=rX(r);let v=(d?j0(i.width):i.width)/l,h=(d?j0(i.height):i.height)/u;return(!v||!Number.isFinite(v))&&(v=1),(!h||!Number.isFinite(h))&&(h=1),{x:v,y:h}}const aX=O0(0);function iX(t){const r=fs(t);return!eX()||!r.visualViewport?aX:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function oX(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(t)?!1:r}function FA(t,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const u=t.getBoundingClientRect(),d=n1(t);let v=O0(1);r&&(l?Xw(l)&&(v=nw(l)):v=nw(t));const h=oX(d,i,l)?iX(d):O0(0);let y=(u.left+h.x)/v.x,C=(u.top+h.y)/v.y,x=u.width/v.x,w=u.height/v.y;if(d){const R=fs(d),j=l&&Xw(l)?fs(l):l;let I=R.frameElement;for(;I&&l&&j!==R;){const _=nw(I),A=I.getBoundingClientRect(),L=t1(I),P=A.left+(I.clientLeft+parseFloat(L.paddingLeft))*_.x,F=A.top+(I.clientTop+parseFloat(L.paddingTop))*_.y;y*=_.x,C*=_.y,x*=_.x,w*=_.y,y+=P,C+=F,I=fs(I).frameElement}}return K5({width:x,height:w,x:y,y:C})}function sX(t,r){let i=null,l;const u=Mk(t);function d(){var h;clearTimeout(l),(h=i)==null||h.disconnect(),i=null}function v(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),d();const{left:C,top:x,width:w,height:R}=t.getBoundingClientRect();if(h||r(),!w||!R)return;const j=Xb(x),I=Xb(u.clientWidth-(C+w)),_=Xb(u.clientHeight-(x+R)),A=Xb(C),P={rootMargin:-j+"px "+-I+"px "+-_+"px "+-A+"px",threshold:Q5(0,J5(1,y))||1};let F=!0;function U(B){const z=B[0].intersectionRatio;if(z!==y){if(!F)return v();z?v(!1,z):l=setTimeout(()=>{v(!1,1e-7)},100)}F=!1}try{i=new IntersectionObserver(U,{...P,root:u.ownerDocument})}catch{i=new IntersectionObserver(U,P)}i.observe(t)}return v(!0),d}function lX(t,r,i,l){l===void 0&&(l={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:v=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=l,C=n1(t),x=u||d?[...C?D0(C):[],...D0(r)]:[];x.forEach(L=>{u&&L.addEventListener("scroll",i,{passive:!0}),d&&L.addEventListener("resize",i)});const w=C&&h?sX(C,i):null;let R=-1,j=null;v&&(j=new ResizeObserver(L=>{let[P]=L;P&&P.target===C&&j&&(j.unobserve(r),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var F;(F=j)==null||F.observe(r)})),i()}),C&&!y&&j.observe(C),j.observe(r));let I,_=y?FA(t):null;y&&A();function A(){const L=FA(t);_&&(L.x!==_.x||L.y!==_.y||L.width!==_.width||L.height!==_.height)&&i(),_=L,I=requestAnimationFrame(A)}return i(),()=>{var L;x.forEach(P=>{u&&P.removeEventListener("scroll",i),d&&P.removeEventListener("resize",i)}),w==null||w(),(L=j)==null||L.disconnect(),j=null,y&&cancelAnimationFrame(I)}}var Yw=k.useLayoutEffect,Zw={},uX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],k0=function(){};function cX(t,r){return r?r[0]==="-"?t+r:t+"__"+r:t}function dX(t,r){for(var i=arguments.length,l=new Array(i>2?i-2:0),u=2;u<i;u++)l[u-2]=arguments[u];var d=[].concat(l);if(r&&t)for(var v in r)r.hasOwnProperty(v)&&r[v]&&d.push("".concat(cX(t,v)));return d.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var VA=function(r){return xX(r)?r.filter(Boolean):Jd(r)==="object"&&r!==null?[r]:[]},Vk=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getClassNames,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var i=al(r,uX);return bt({},i)},br=function(r,i,l){var u=r.cx,d=r.getStyles,v=r.getClassNames,h=r.className;return{css:d(i,r),className:u(l??{},v(i,r),h)}};function fX(t,r,i){if(i){var l=i(t,r);if(typeof l=="string")return l}return t}function nC(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function pX(t){return nC(t)?window.innerHeight:t.clientHeight}function Bk(t){return nC(t)?window.pageYOffset:t.scrollTop}function M0(t,r){if(nC(t)){window.scrollTo(0,r);return}t.scrollTop=r}function hX(t){var r=getComputedStyle(t),i=r.position==="absolute",l=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var u=t;u=u.parentElement;)if(r=getComputedStyle(u),!(i&&r.position==="static")&&l.test(r.overflow+r.overflowY+r.overflowX))return u;return document.documentElement}function vX(t,r,i,l){return i*((t=t/l-1)*t*t+1)+r}function Yb(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k0,u=Bk(t),d=r-u,v=10,h=0;function y(){h+=v;var C=vX(h,u,d,i);M0(t,C),h<i?window.requestAnimationFrame(y):l(t)}y()}function BA(t,r){var i=t.getBoundingClientRect(),l=r.getBoundingClientRect(),u=r.offsetHeight/3;l.bottom+u>i.bottom?M0(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+u,t.scrollHeight)):l.top-u<i.top&&M0(t,Math.max(r.offsetTop-u,0))}function mX(t){var r=t.getBoundingClientRect();return{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width}}function zA(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function gX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var zk=!1,yX={get passive(){return zk=!0}},Zb=typeof window<"u"?window:{};Zb.addEventListener&&Zb.removeEventListener&&(Zb.addEventListener("p",k0,yX),Zb.removeEventListener("p",k0,!1));var bX=zk;function CX(t){return t!=null}function xX(t){return Array.isArray(t)}function qb(t,r,i){return t?r:i}var SX=function(r){for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];var d=Object.entries(r).filter(function(v){var h=na(v,1),y=h[0];return!l.includes(y)});return d.reduce(function(v,h){var y=na(h,2),C=y[0],x=y[1];return v[C]=x,v},{})},EX=["children","innerProps"],wX=["children","innerProps"];function RX(t){var r=t.maxHeight,i=t.menuEl,l=t.minHeight,u=t.placement,d=t.shouldScroll,v=t.isFixedPosition,h=t.controlHeight,y=hX(i),C={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return C;var x=y.getBoundingClientRect(),w=x.height,R=i.getBoundingClientRect(),j=R.bottom,I=R.height,_=R.top,A=i.offsetParent.getBoundingClientRect(),L=A.top,P=v?window.innerHeight:pX(y),F=Bk(y),U=parseInt(getComputedStyle(i).marginBottom,10),B=parseInt(getComputedStyle(i).marginTop,10),z=L-B,X=P-_,Z=z+F,ue=w-F-_,ie=j-P+F+U,ge=F+_-B,de=160;switch(u){case"auto":case"bottom":if(X>=I)return{placement:"bottom",maxHeight:r};if(ue>=I&&!v)return d&&Yb(y,ie,de),{placement:"bottom",maxHeight:r};if(!v&&ue>=l||v&&X>=l){d&&Yb(y,ie,de);var _e=v?X-U:ue-U;return{placement:"bottom",maxHeight:_e}}if(u==="auto"||v){var Ee=r,Ce=v?z:Z;return Ce>=l&&(Ee=Math.min(Ce-U-h,r)),{placement:"top",maxHeight:Ee}}if(u==="bottom")return d&&M0(y,ie),{placement:"bottom",maxHeight:r};break;case"top":if(z>=I)return{placement:"top",maxHeight:r};if(Z>=I&&!v)return d&&Yb(y,ge,de),{placement:"top",maxHeight:r};if(!v&&Z>=l||v&&z>=l){var je=r;return(!v&&Z>=l||v&&z>=l)&&(je=v?z-B:Z-B),d&&Yb(y,ge,de),{placement:"top",maxHeight:je}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(u,'".'))}return C}function TX(t){var r={bottom:"top",top:"bottom"};return t?r[t]:"bottom"}var $k=function(r){return r==="auto"?"bottom":r},_X=function(r,i){var l,u=r.placement,d=r.theme,v=d.borderRadius,h=d.spacing,y=d.colors;return bt((l={label:"menu"},Bp(l,TX(u),"100%"),Bp(l,"position","absolute"),Bp(l,"width","100%"),Bp(l,"zIndex",1),l),i?{}:{backgroundColor:y.neutral0,borderRadius:v,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:h.menuGutter,marginTop:h.menuGutter})},Uk=k.createContext(null),NX=function(r){var i=r.children,l=r.minMenuHeight,u=r.maxMenuHeight,d=r.menuPlacement,v=r.menuPosition,h=r.menuShouldScrollIntoView,y=r.theme,C=k.useContext(Uk)||{},x=C.setPortalPlacement,w=k.useRef(null),R=k.useState(u),j=na(R,2),I=j[0],_=j[1],A=k.useState(null),L=na(A,2),P=L[0],F=L[1],U=y.spacing.controlHeight;return Yw(function(){var B=w.current;if(B){var z=v==="fixed",X=h&&!z,Z=RX({maxHeight:u,menuEl:B,minHeight:l,placement:d,shouldScroll:X,isFixedPosition:z,controlHeight:U});_(Z.maxHeight),F(Z.placement),x==null||x(Z.placement)}},[u,d,v,h,l,x,U]),i({ref:w,placerProps:bt(bt({},r),{},{placement:P||$k(d),maxHeight:I})})},IX=function(r){var i=r.children,l=r.innerRef,u=r.innerProps;return wt("div",_t({},br(r,"menu",{menu:!0}),{ref:l},u),i)},AX=IX,jX=function(r,i){var l=r.maxHeight,u=r.theme.spacing.baseUnit;return bt({maxHeight:l,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:u,paddingTop:u})},OX=function(r){var i=r.children,l=r.innerProps,u=r.innerRef,d=r.isMulti;return wt("div",_t({},br(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:u},l),i)},Hk=function(r,i){var l=r.theme,u=l.spacing.baseUnit,d=l.colors;return bt({textAlign:"center"},i?{}:{color:d.neutral40,padding:"".concat(u*2,"px ").concat(u*3,"px")})},DX=Hk,kX=Hk,MX=function(r){var i=r.children,l=i===void 0?"No options":i,u=r.innerProps,d=al(r,EX);return wt("div",_t({},br(bt(bt({},d),{},{children:l,innerProps:u}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),u),l)},LX=function(r){var i=r.children,l=i===void 0?"Loading...":i,u=r.innerProps,d=al(r,wX);return wt("div",_t({},br(bt(bt({},d),{},{children:l,innerProps:u}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),u),l)},PX=function(r){var i=r.rect,l=r.offset,u=r.position;return{left:i.left,position:u,top:l,width:i.width,zIndex:1}},FX=function(r){var i=r.appendTo,l=r.children,u=r.controlElement,d=r.innerProps,v=r.menuPlacement,h=r.menuPosition,y=k.useRef(null),C=k.useRef(null),x=k.useState($k(v)),w=na(x,2),R=w[0],j=w[1],I=k.useMemo(function(){return{setPortalPlacement:j}},[]),_=k.useState(null),A=na(_,2),L=A[0],P=A[1],F=k.useCallback(function(){if(u){var X=mX(u),Z=h==="fixed"?0:window.pageYOffset,ue=X[R]+Z;(ue!==(L==null?void 0:L.offset)||X.left!==(L==null?void 0:L.rect.left)||X.width!==(L==null?void 0:L.rect.width))&&P({offset:ue,rect:X})}},[u,h,R,L==null?void 0:L.offset,L==null?void 0:L.rect.left,L==null?void 0:L.rect.width]);Yw(function(){F()},[F]);var U=k.useCallback(function(){typeof C.current=="function"&&(C.current(),C.current=null),u&&y.current&&(C.current=lX(u,y.current,F,{elementResize:"ResizeObserver"in window}))},[u,F]);Yw(function(){U()},[U]);var B=k.useCallback(function(X){y.current=X,U()},[U]);if(!i&&h!=="fixed"||!L)return null;var z=wt("div",_t({ref:B},br(bt(bt({},r),{},{offset:L.offset,position:h,rect:L.rect}),"menuPortal",{"menu-portal":!0}),d),l);return wt(Uk.Provider,{value:I},i?rR.createPortal(z,i):z)},VX=function(r){var i=r.isDisabled,l=r.isRtl;return{label:"container",direction:l?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},BX=function(r){var i=r.children,l=r.innerProps,u=r.isDisabled,d=r.isRtl;return wt("div",_t({},br(r,"container",{"--is-disabled":u,"--is-rtl":d}),l),i)},zX=function(r,i){var l=r.theme.spacing,u=r.isMulti,d=r.hasValue,v=r.selectProps.controlShouldRenderValue;return bt({alignItems:"center",display:u&&d&&v?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(l.baseUnit/2,"px ").concat(l.baseUnit*2,"px")})},$X=function(r){var i=r.children,l=r.innerProps,u=r.isMulti,d=r.hasValue;return wt("div",_t({},br(r,"valueContainer",{"value-container":!0,"value-container--is-multi":u,"value-container--has-value":d}),l),i)},UX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},HX=function(r){var i=r.children,l=r.innerProps;return wt("div",_t({},br(r,"indicatorsContainer",{indicators:!0}),l),i)},$A,GX=["size"],WX=["innerProps","isRtl","size"];function XX(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var YX=Zw.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:XX},Gk=function(r){var i=r.size,l=al(r,GX);return wt("svg",_t({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:YX},l))},r1=function(r){return wt(Gk,_t({size:20},r),wt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Wk=function(r){return wt(Gk,_t({size:20},r),wt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Xk=function(r,i){var l=r.isFocused,u=r.theme,d=u.spacing.baseUnit,v=u.colors;return bt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:l?v.neutral60:v.neutral20,padding:d*2,":hover":{color:l?v.neutral80:v.neutral40}})},ZX=Xk,qX=function(r){var i=r.children,l=r.innerProps;return wt("div",_t({},br(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),l),i||wt(Wk,null))},JX=Xk,QX=function(r){var i=r.children,l=r.innerProps;return wt("div",_t({},br(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),l),i||wt(r1,null))},KX=function(r,i){var l=r.isDisabled,u=r.theme,d=u.spacing.baseUnit,v=u.colors;return bt({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:l?v.neutral10:v.neutral20,marginBottom:d*2,marginTop:d*2})},eY=function(r){var i=r.innerProps;return wt("span",_t({},i,br(r,"indicatorSeparator",{"indicator-separator":!0})))},tY=H5($A||($A=q5([`
|
|
307
307
|
0%, 80%, 100% { opacity: 0; }
|
|
308
308
|
40% { opacity: 1; }
|
|
309
|
-
`]))),nY=function(r,i){var l=r.isFocused,u=r.size,d=r.theme,v=d.colors,h=d.spacing.baseUnit;return bt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:u,lineHeight:1,marginRight:u,textAlign:"center",verticalAlign:"middle"},i?{}:{color:l?v.neutral60:v.neutral20,padding:h*2})},rw=function(r){var i=r.delay,l=r.offset;return wt("span",{css:KR({animation:"".concat(tY," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:l?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},Zw.NODE_ENV==="production"?"":";label:LoadingDot;",Zw.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},rY=function(r){var i=r.innerProps,l=r.isRtl,u=r.size,d=u===void 0?4:u,v=al(r,WX);return wt("div",_t({},br(bt(bt({},v),{},{innerProps:i,isRtl:l,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),wt(rw,{delay:0,offset:l}),wt(rw,{delay:160,offset:!0}),wt(rw,{delay:320,offset:!l}))},aY=function(r,i){var l=r.isDisabled,u=r.isFocused,d=r.theme,v=d.colors,h=d.borderRadius,y=d.spacing;return bt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:y.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:l?v.neutral5:v.neutral0,borderColor:l?v.neutral10:u?v.primary:v.neutral20,borderRadius:h,borderStyle:"solid",borderWidth:1,boxShadow:u?"0 0 0 1px ".concat(v.primary):void 0,"&:hover":{borderColor:u?v.primary:v.neutral30}})},iY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.innerRef,v=r.innerProps,h=r.menuIsOpen;return wt("div",_t({ref:d},br(r,"control",{control:!0,"control--is-disabled":l,"control--is-focused":u,"control--menu-is-open":h}),v,{"aria-disabled":l||void 0}),i)},oY=iY,sY=["data"],lY=function(r,i){var l=r.theme.spacing;return i?{}:{paddingBottom:l.baseUnit*2,paddingTop:l.baseUnit*2}},uY=function(r){var i=r.children,l=r.cx,u=r.getStyles,d=r.getClassNames,v=r.Heading,h=r.headingProps,y=r.innerProps,C=r.label,x=r.theme,w=r.selectProps;return wt("div",_t({},br(r,"group",{group:!0}),y),wt(v,_t({},h,{selectProps:w,theme:x,getStyles:u,getClassNames:d,cx:l}),C),wt("div",null,i))},cY=function(r,i){var l=r.theme,u=l.colors,d=l.spacing;return bt({label:"group",cursor:"default",display:"block"},i?{}:{color:u.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:d.baseUnit*3,paddingRight:d.baseUnit*3,textTransform:"uppercase"})},dY=function(r){var i=Vk(r);i.data;var l=al(i,sY);return wt("div",_t({},br(r,"groupHeading",{"group-heading":!0}),l))},fY=uY,pY=["innerRef","isDisabled","isHidden","inputClassName"],hY=function(r,i){var l=r.isDisabled,u=r.value,d=r.theme,v=d.spacing,h=d.colors;return bt(bt({visibility:l?"hidden":"visible",transform:u?"translateZ(0)":""},vY),i?{}:{margin:v.baseUnit/2,paddingBottom:v.baseUnit/2,paddingTop:v.baseUnit/2,color:h.neutral80})},Yk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":bt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Yk)},mY=function(r){return bt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Yk)},gY=function(r){var i=r.cx,l=r.value,u=Vk(r),d=u.innerRef,v=u.isDisabled,h=u.isHidden,y=u.inputClassName,C=al(u,pY);return wt("div",_t({},br(r,"input",{"input-container":!0}),{"data-value":l||""}),wt("input",_t({className:i({input:!0},y),ref:d,style:mY(h),disabled:v},C)))},yY=gY,bY=function(r,i){var l=r.theme,u=l.spacing,d=l.borderRadius,v=l.colors;return bt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:v.neutral10,borderRadius:d/2,margin:u.baseUnit/2})},CY=function(r,i){var l=r.theme,u=l.borderRadius,d=l.colors,v=r.cropWithEllipsis;return bt({overflow:"hidden",textOverflow:v||v===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:u/2,color:d.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},xY=function(r,i){var l=r.theme,u=l.spacing,d=l.borderRadius,v=l.colors,h=r.isFocused;return bt({alignItems:"center",display:"flex"},i?{}:{borderRadius:d/2,backgroundColor:h?v.dangerLight:void 0,paddingLeft:u.baseUnit,paddingRight:u.baseUnit,":hover":{backgroundColor:v.dangerLight,color:v.danger}})},Zk=function(r){var i=r.children,l=r.innerProps;return wt("div",l,i)},SY=Zk,EY=Zk;function wY(t){var r=t.children,i=t.innerProps;return wt("div",_t({role:"button"},i),r||wt(r1,{size:14}))}var RY=function(r){var i=r.children,l=r.components,u=r.data,d=r.innerProps,v=r.isDisabled,h=r.removeProps,y=r.selectProps,C=l.Container,x=l.Label,w=l.Remove;return wt(C,{data:u,innerProps:bt(bt({},br(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":v})),d),selectProps:y},wt(x,{data:u,innerProps:bt({},br(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),wt(w,{data:u,innerProps:bt(bt({},br(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},h),selectProps:y}))},TY=RY,_Y=function(r,i){var l=r.isDisabled,u=r.isFocused,d=r.isSelected,v=r.theme,h=v.spacing,y=v.colors;return bt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:d?y.primary:u?y.primary25:"transparent",color:l?y.neutral20:d?y.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:l?void 0:d?y.primary:y.primary50}})},NY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.isSelected,v=r.innerRef,h=r.innerProps;return wt("div",_t({},br(r,"option",{option:!0,"option--is-disabled":l,"option--is-focused":u,"option--is-selected":d}),{ref:v,"aria-disabled":l},h),i)},IY=NY,AY=function(r,i){var l=r.theme,u=l.spacing,d=l.colors;return bt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:d.neutral50,marginLeft:u.baseUnit/2,marginRight:u.baseUnit/2})},jY=function(r){var i=r.children,l=r.innerProps;return wt("div",_t({},br(r,"placeholder",{placeholder:!0}),l),i)},OY=jY,DY=function(r,i){var l=r.isDisabled,u=r.theme,d=u.spacing,v=u.colors;return bt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:l?v.neutral40:v.neutral80,marginLeft:d.baseUnit/2,marginRight:d.baseUnit/2})},kY=function(r){var i=r.children,l=r.isDisabled,u=r.innerProps;return wt("div",_t({},br(r,"singleValue",{"single-value":!0,"single-value--is-disabled":l}),u),i)},MY=kY,LY={ClearIndicator:QX,Control:oY,DropdownIndicator:qX,DownChevron:Wk,CrossIcon:r1,Group:fY,GroupHeading:dY,IndicatorsContainer:HX,IndicatorSeparator:eY,Input:yY,LoadingIndicator:rY,Menu:AX,MenuList:OX,MenuPortal:FX,LoadingMessage:LX,NoOptionsMessage:MX,MultiValue:TY,MultiValueContainer:SY,MultiValueLabel:EY,MultiValueRemove:wY,Option:IY,Placeholder:OY,SelectContainer:BX,SingleValue:MY,ValueContainer:$X},PY=function(r){return bt(bt({},LY),r.components)},UA=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function FY(t,r){return!!(t===r||UA(t)&&UA(r))}function VY(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!FY(t[i],r[i]))return!1;return!0}function BY(t,r){r===void 0&&(r=VY);var i=null;function l(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];if(i&&i.lastThis===this&&r(u,i.lastArgs))return i.lastResult;var v=t.apply(this,u);return i={lastResult:v,lastArgs:u,lastThis:this},v}return l.clear=function(){i=null},l}var Dm={};function zY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var $Y=Dm.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:zY},UY=function(r){return wt("span",_t({css:$Y},r))},HA=UY,HY={guidance:function(r){var i=r.isSearchable,l=r.isMulti,u=r.tabSelectsValue,d=r.context,v=r.isInitialFocus;switch(d){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(u?", press Tab to select the option and exit the menu":"",".");case"input":return v?"".concat(r["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(l?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(r){var i=r.action,l=r.label,u=l===void 0?"":l,d=r.labels,v=r.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(u,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(d.length>1?"s":""," ").concat(d.join(","),", selected.");case"select-option":return v?"option ".concat(u," is disabled. Select another option."):"option ".concat(u,", selected.");default:return""}},onFocus:function(r){var i=r.context,l=r.focused,u=r.options,d=r.label,v=d===void 0?"":d,h=r.selectValue,y=r.isDisabled,C=r.isSelected,x=r.isAppleDevice,w=function(_,A){return _&&_.length?"".concat(_.indexOf(A)+1," of ").concat(_.length):""};if(i==="value"&&h)return"value ".concat(v," focused, ").concat(w(h,l),".");if(i==="menu"&&x){var R=y?" disabled":"",j="".concat(C?" selected":"").concat(R);return"".concat(v).concat(j,", ").concat(w(u,l),".")}return""},onFilter:function(r){var i=r.inputValue,l=r.resultsMessage;return"".concat(l).concat(i?" for search term "+i:"",".")}},GY=function(r){var i=r.ariaSelection,l=r.focusedOption,u=r.focusedValue,d=r.focusableOptions,v=r.isFocused,h=r.selectValue,y=r.selectProps,C=r.id,x=r.isAppleDevice,w=y.ariaLiveMessages,R=y.getOptionLabel,j=y.inputValue,I=y.isMulti,_=y.isOptionDisabled,A=y.isSearchable,L=y.menuIsOpen,P=y.options,F=y.screenReaderStatus,U=y.tabSelectsValue,B=y.isLoading,z=y["aria-label"],X=y["aria-live"],Z=k.useMemo(function(){return bt(bt({},HY),w||{})},[w]),ue=k.useMemo(function(){var Ce="";if(i&&Z.onChange){var je=i.option,Le=i.options,re=i.removedValue,Ie=i.removedValues,G=i.value,Y=function(fe){return Array.isArray(fe)?null:fe},ne=re||je||Y(G),be=ne?R(ne):"",we=Le||Ie||void 0,Ne=we?we.map(R):[],Oe=bt({isDisabled:ne&&_(ne,h),label:be,labels:Ne},i);Ce=Z.onChange(Oe)}return Ce},[i,Z,_,h,R]),ie=k.useMemo(function(){var Ce="",je=l||u,Le=!!(l&&h&&h.includes(l));if(je&&Z.onFocus){var re={focused:je,label:R(je),isDisabled:_(je,h),isSelected:Le,options:d,context:je===l?"menu":"value",selectValue:h,isAppleDevice:x};Ce=Z.onFocus(re)}return Ce},[l,u,R,_,Z,d,h,x]),ge=k.useMemo(function(){var Ce="";if(L&&P.length&&!B&&Z.onFilter){var je=F({count:d.length});Ce=Z.onFilter({inputValue:j,resultsMessage:je})}return Ce},[d,j,L,Z,P,F,B]),de=(i==null?void 0:i.action)==="initial-input-focus",_e=k.useMemo(function(){var Ce="";if(Z.guidance){var je=u?"value":L?"menu":"input";Ce=Z.guidance({"aria-label":z,context:je,isDisabled:l&&_(l,h),isMulti:I,isSearchable:A,tabSelectsValue:U,isInitialFocus:de})}return Ce},[z,l,u,I,_,A,L,Z,h,U,de]),Ee=wt(k.Fragment,null,wt("span",{id:"aria-selection"},ue),wt("span",{id:"aria-focused"},ie),wt("span",{id:"aria-results"},ge),wt("span",{id:"aria-guidance"},_e));return wt(k.Fragment,null,wt(HA,{id:C},de&&Ee),wt(HA,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},v&&!de&&Ee))},WY=GY,qw=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],XY=new RegExp("["+qw.map(function(t){return t.letters}).join("")+"]","g"),qk={};for(var aw=0;aw<qw.length;aw++)for(var iw=qw[aw],ow=0;ow<iw.letters.length;ow++)qk[iw.letters[ow]]=iw.base;var Jk=function(r){return r.replace(XY,function(i){return qk[i]})},YY=BY(Jk),GA=function(r){return r.replace(/^\s+|\s+$/g,"")},ZY=function(r){return"".concat(r.label," ").concat(r.value)},qY=function(r){return function(i,l){if(i.data.__isNew__)return!0;var u=bt({ignoreCase:!0,ignoreAccents:!0,stringify:ZY,trim:!0,matchFrom:"any"},r),d=u.ignoreCase,v=u.ignoreAccents,h=u.stringify,y=u.trim,C=u.matchFrom,x=y?GA(l):l,w=y?GA(h(i)):h(i);return d&&(x=x.toLowerCase(),w=w.toLowerCase()),v&&(x=YY(x),w=Jk(w)),C==="start"?w.substr(0,x.length)===x:w.indexOf(x)>-1}},JY=["innerRef"];function QY(t){var r=t.innerRef,i=al(t,JY),l=SX(i,"onExited","in","enter","exit","appear");return wt("input",_t({ref:r},l,{css:KR({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},Dm.NODE_ENV==="production"?"":";label:DummyInput;",Dm.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var KY=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function eZ(t){var r=t.isEnabled,i=t.onBottomArrive,l=t.onBottomLeave,u=t.onTopArrive,d=t.onTopLeave,v=k.useRef(!1),h=k.useRef(!1),y=k.useRef(0),C=k.useRef(null),x=k.useCallback(function(A,L){if(C.current!==null){var P=C.current,F=P.scrollTop,U=P.scrollHeight,B=P.clientHeight,z=C.current,X=L>0,Z=U-B-F,ue=!1;Z>L&&v.current&&(l&&l(A),v.current=!1),X&&h.current&&(d&&d(A),h.current=!1),X&&L>Z?(i&&!v.current&&i(A),z.scrollTop=U,ue=!0,v.current=!0):!X&&-L>F&&(u&&!h.current&&u(A),z.scrollTop=0,ue=!0,h.current=!0),ue&&KY(A)}},[i,l,u,d]),w=k.useCallback(function(A){x(A,A.deltaY)},[x]),R=k.useCallback(function(A){y.current=A.changedTouches[0].clientY},[]),j=k.useCallback(function(A){var L=y.current-A.changedTouches[0].clientY;x(A,L)},[x]),I=k.useCallback(function(A){if(A){var L=bX?{passive:!1}:!1;A.addEventListener("wheel",w,L),A.addEventListener("touchstart",R,L),A.addEventListener("touchmove",j,L)}},[j,R,w]),_=k.useCallback(function(A){A&&(A.removeEventListener("wheel",w,!1),A.removeEventListener("touchstart",R,!1),A.removeEventListener("touchmove",j,!1))},[j,R,w]);return k.useEffect(function(){if(r){var A=C.current;return I(A),function(){_(A)}}},[r,I,_]),function(A){C.current=A}}var WA=["boxSizing","height","overflow","paddingRight","position"],XA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function YA(t){t.preventDefault()}function ZA(t){t.stopPropagation()}function qA(){var t=this.scrollTop,r=this.scrollHeight,i=t+this.offsetHeight;t===0?this.scrollTop=1:i===r&&(this.scrollTop=t-1)}function JA(){return"ontouchstart"in window||navigator.maxTouchPoints}var QA=!!(typeof window<"u"&&window.document&&window.document.createElement),pm=0,Vp={capture:!1,passive:!1};function tZ(t){var r=t.isEnabled,i=t.accountForScrollbars,l=i===void 0?!0:i,u=k.useRef({}),d=k.useRef(null),v=k.useCallback(function(y){if(QA){var C=document.body,x=C&&C.style;if(l&&WA.forEach(function(I){var _=x&&x[I];u.current[I]=_}),l&&pm<1){var w=parseInt(u.current.paddingRight,10)||0,R=document.body?document.body.clientWidth:0,j=window.innerWidth-R+w||0;Object.keys(XA).forEach(function(I){var _=XA[I];x&&(x[I]=_)}),x&&(x.paddingRight="".concat(j,"px"))}C&&JA()&&(C.addEventListener("touchmove",YA,Vp),y&&(y.addEventListener("touchstart",qA,Vp),y.addEventListener("touchmove",ZA,Vp))),pm+=1}},[l]),h=k.useCallback(function(y){if(QA){var C=document.body,x=C&&C.style;pm=Math.max(pm-1,0),l&&pm<1&&WA.forEach(function(w){var R=u.current[w];x&&(x[w]=R)}),C&&JA()&&(C.removeEventListener("touchmove",YA,Vp),y&&(y.removeEventListener("touchstart",qA,Vp),y.removeEventListener("touchmove",ZA,Vp)))}},[l]);return k.useEffect(function(){if(r){var y=d.current;return v(y),function(){h(y)}}},[r,v,h]),function(y){d.current=y}}function nZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var rZ=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},aZ=Dm.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:nZ};function iZ(t){var r=t.children,i=t.lockEnabled,l=t.captureEnabled,u=l===void 0?!0:l,d=t.onBottomArrive,v=t.onBottomLeave,h=t.onTopArrive,y=t.onTopLeave,C=eZ({isEnabled:u,onBottomArrive:d,onBottomLeave:v,onTopArrive:h,onTopLeave:y}),x=tZ({isEnabled:i}),w=function(j){C(j),x(j)};return wt(k.Fragment,null,i&&wt("div",{onClick:rZ,css:aZ}),r(w))}function oZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sZ=Dm.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:oZ},lZ=function(r){var i=r.name,l=r.onFocus;return wt("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:l,css:sZ,value:"",onChange:function(){}})},uZ=lZ;function a1(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function cZ(){return a1(/^iPhone/i)}function Qk(){return a1(/^Mac/i)}function dZ(){return a1(/^iPad/i)||Qk()&&navigator.maxTouchPoints>1}function fZ(){return cZ()||dZ()}function pZ(){return Qk()||fZ()}var hZ=function(r){return r.label},vZ=function(r){return r.label},mZ=function(r){return r.value},gZ=function(r){return!!r.isDisabled},yZ={clearIndicator:JX,container:VX,control:aY,dropdownIndicator:ZX,group:lY,groupHeading:cY,indicatorsContainer:UX,indicatorSeparator:KX,input:hY,loadingIndicator:nY,loadingMessage:kX,menu:_X,menuList:jX,menuPortal:PX,multiValue:bY,multiValueLabel:CY,multiValueRemove:xY,noOptionsMessage:DX,option:_Y,placeholder:AY,singleValue:DY,valueContainer:zX},bZ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},CZ=4,Kk=4,xZ=38,SZ=Kk*2,EZ={baseUnit:Kk,controlHeight:xZ,menuGutter:SZ},sw={borderRadius:CZ,colors:bZ,spacing:EZ},wZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:zA(),captureMenuScroll:!zA(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:qY(),formatGroupLabel:hZ,getOptionLabel:vZ,getOptionValue:mZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:gZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!gX(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var i=r.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function KA(t,r,i,l){var u=nM(t,r,i),d=rM(t,r,i),v=tM(t,r),h=L0(t,r);return{type:"option",data:r,isDisabled:u,isSelected:d,label:v,value:h,index:l}}function u0(t,r){return t.options.map(function(i,l){if("options"in i){var u=i.options.map(function(v,h){return KA(t,v,r,h)}).filter(function(v){return tj(t,v)});return u.length>0?{type:"group",data:i,options:u,index:l}:void 0}var d=KA(t,i,r,l);return tj(t,d)?d:void 0}).filter(CX)}function eM(t){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,$R(i.options.map(function(l){return l.data}))):r.push(i.data),r},[])}function ej(t,r){return t.reduce(function(i,l){return l.type==="group"?i.push.apply(i,$R(l.options.map(function(u){return{data:u.data,id:"".concat(r,"-").concat(l.index,"-").concat(u.index)}}))):i.push({data:l.data,id:"".concat(r,"-").concat(l.index)}),i},[])}function RZ(t,r){return eM(u0(t,r))}function tj(t,r){var i=t.inputValue,l=i===void 0?"":i,u=r.data,d=r.isSelected,v=r.label,h=r.value;return(!iM(t)||!d)&&aM(t,{label:v,value:h,data:u},l)}function TZ(t,r){var i=t.focusedValue,l=t.selectValue,u=l.indexOf(i);if(u>-1){var d=r.indexOf(i);if(d>-1)return i;if(u<r.length)return r[u]}return null}function _Z(t,r){var i=t.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var lw=function(r,i){var l,u=(l=r.find(function(d){return d.data===i}))===null||l===void 0?void 0:l.id;return u||null},tM=function(r,i){return r.getOptionLabel(i)},L0=function(r,i){return r.getOptionValue(i)};function nM(t,r,i){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(r,i):!1}function rM(t,r,i){if(i.indexOf(r)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(r,i);var l=L0(t,r);return i.some(function(u){return L0(t,u)===l})}function aM(t,r,i){return t.filterOption?t.filterOption(r,i):!0}var iM=function(r){var i=r.hideSelectedOptions,l=r.isMulti;return i===void 0?l:i},NZ=1,i1=function(t){DW(i,t);var r=LW(i);function i(l){var u;if(jW(this,i),u=r.call(this,l),u.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},u.blockOptionHover=!1,u.isComposing=!1,u.commonProps=void 0,u.initialTouchX=0,u.initialTouchY=0,u.openAfterFocus=!1,u.scrollToFocusedOptionOnUpdate=!1,u.userIsDragging=void 0,u.isAppleDevice=pZ(),u.controlRef=null,u.getControlRef=function(y){u.controlRef=y},u.focusedOptionRef=null,u.getFocusedOptionRef=function(y){u.focusedOptionRef=y},u.menuListRef=null,u.getMenuListRef=function(y){u.menuListRef=y},u.inputRef=null,u.getInputRef=function(y){u.inputRef=y},u.focus=u.focusInput,u.blur=u.blurInput,u.onChange=function(y,C){var x=u.props,w=x.onChange,R=x.name;C.name=R,u.ariaOnChange(y,C),w(y,C)},u.setValue=function(y,C,x){var w=u.props,R=w.closeMenuOnSelect,j=w.isMulti,I=w.inputValue;u.onInputChange("",{action:"set-value",prevInputValue:I}),R&&(u.setState({inputIsHiddenAfterUpdate:!j}),u.onMenuClose()),u.setState({clearFocusValueOnUpdate:!0}),u.onChange(y,{action:C,option:x})},u.selectOption=function(y){var C=u.props,x=C.blurInputOnSelect,w=C.isMulti,R=C.name,j=u.state.selectValue,I=w&&u.isOptionSelected(y,j),_=u.isOptionDisabled(y,j);if(I){var A=u.getOptionValue(y);u.setValue(j.filter(function(L){return u.getOptionValue(L)!==A}),"deselect-option",y)}else if(!_)w?u.setValue([].concat($R(j),[y]),"select-option",y):u.setValue(y,"select-option");else{u.ariaOnChange(y,{action:"select-option",option:y,name:R});return}x&&u.blurInput()},u.removeValue=function(y){var C=u.props.isMulti,x=u.state.selectValue,w=u.getOptionValue(y),R=x.filter(function(I){return u.getOptionValue(I)!==w}),j=qb(C,R,R[0]||null);u.onChange(j,{action:"remove-value",removedValue:y}),u.focusInput()},u.clearValue=function(){var y=u.state.selectValue;u.onChange(qb(u.props.isMulti,[],null),{action:"clear",removedValues:y})},u.popValue=function(){var y=u.props.isMulti,C=u.state.selectValue,x=C[C.length-1],w=C.slice(0,C.length-1),R=qb(y,w,w[0]||null);u.onChange(R,{action:"pop-value",removedValue:x})},u.getFocusedOptionId=function(y){return lw(u.state.focusableOptionsWithIds,y)},u.getFocusableOptionsWithIds=function(){return ej(u0(u.props,u.state.selectValue),u.getElementId("option"))},u.getValue=function(){return u.state.selectValue},u.cx=function(){for(var y=arguments.length,C=new Array(y),x=0;x<y;x++)C[x]=arguments[x];return dX.apply(void 0,[u.props.classNamePrefix].concat(C))},u.getOptionLabel=function(y){return tM(u.props,y)},u.getOptionValue=function(y){return L0(u.props,y)},u.getStyles=function(y,C){var x=u.props.unstyled,w=yZ[y](C,x);w.boxSizing="border-box";var R=u.props.styles[y];return R?R(w,C):w},u.getClassNames=function(y,C){var x,w;return(x=(w=u.props.classNames)[y])===null||x===void 0?void 0:x.call(w,C)},u.getElementId=function(y){return"".concat(u.state.instancePrefix,"-").concat(y)},u.getComponents=function(){return PY(u.props)},u.buildCategorizedOptions=function(){return u0(u.props,u.state.selectValue)},u.getCategorizedOptions=function(){return u.props.menuIsOpen?u.buildCategorizedOptions():[]},u.buildFocusableOptions=function(){return eM(u.buildCategorizedOptions())},u.getFocusableOptions=function(){return u.props.menuIsOpen?u.buildFocusableOptions():[]},u.ariaOnChange=function(y,C){u.setState({ariaSelection:bt({value:y},C)})},u.onMenuMouseDown=function(y){y.button===0&&(y.stopPropagation(),y.preventDefault(),u.focusInput())},u.onMenuMouseMove=function(y){u.blockOptionHover=!1},u.onControlMouseDown=function(y){if(!y.defaultPrevented){var C=u.props.openMenuOnClick;u.state.isFocused?u.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&u.onMenuClose():C&&u.openMenu("first"):(C&&(u.openAfterFocus=!0),u.focusInput()),y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&y.preventDefault()}},u.onDropdownIndicatorMouseDown=function(y){if(!(y&&y.type==="mousedown"&&y.button!==0)&&!u.props.isDisabled){var C=u.props,x=C.isMulti,w=C.menuIsOpen;u.focusInput(),w?(u.setState({inputIsHiddenAfterUpdate:!x}),u.onMenuClose()):u.openMenu("first"),y.preventDefault()}},u.onClearIndicatorMouseDown=function(y){y&&y.type==="mousedown"&&y.button!==0||(u.clearValue(),y.preventDefault(),u.openAfterFocus=!1,y.type==="touchend"?u.focusInput():setTimeout(function(){return u.focusInput()}))},u.onScroll=function(y){typeof u.props.closeMenuOnScroll=="boolean"?y.target instanceof HTMLElement&&nC(y.target)&&u.props.onMenuClose():typeof u.props.closeMenuOnScroll=="function"&&u.props.closeMenuOnScroll(y)&&u.props.onMenuClose()},u.onCompositionStart=function(){u.isComposing=!0},u.onCompositionEnd=function(){u.isComposing=!1},u.onTouchStart=function(y){var C=y.touches,x=C&&C.item(0);x&&(u.initialTouchX=x.clientX,u.initialTouchY=x.clientY,u.userIsDragging=!1)},u.onTouchMove=function(y){var C=y.touches,x=C&&C.item(0);if(x){var w=Math.abs(x.clientX-u.initialTouchX),R=Math.abs(x.clientY-u.initialTouchY),j=5;u.userIsDragging=w>j||R>j}},u.onTouchEnd=function(y){u.userIsDragging||(u.controlRef&&!u.controlRef.contains(y.target)&&u.menuListRef&&!u.menuListRef.contains(y.target)&&u.blurInput(),u.initialTouchX=0,u.initialTouchY=0)},u.onControlTouchEnd=function(y){u.userIsDragging||u.onControlMouseDown(y)},u.onClearIndicatorTouchEnd=function(y){u.userIsDragging||u.onClearIndicatorMouseDown(y)},u.onDropdownIndicatorTouchEnd=function(y){u.userIsDragging||u.onDropdownIndicatorMouseDown(y)},u.handleInputChange=function(y){var C=u.props.inputValue,x=y.currentTarget.value;u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange(x,{action:"input-change",prevInputValue:C}),u.props.menuIsOpen||u.onMenuOpen()},u.onInputFocus=function(y){u.props.onFocus&&u.props.onFocus(y),u.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(u.openAfterFocus||u.props.openMenuOnFocus)&&u.openMenu("first"),u.openAfterFocus=!1},u.onInputBlur=function(y){var C=u.props.inputValue;if(u.menuListRef&&u.menuListRef.contains(document.activeElement)){u.inputRef.focus();return}u.props.onBlur&&u.props.onBlur(y),u.onInputChange("",{action:"input-blur",prevInputValue:C}),u.onMenuClose(),u.setState({focusedValue:null,isFocused:!1})},u.onOptionHover=function(y){if(!(u.blockOptionHover||u.state.focusedOption===y)){var C=u.getFocusableOptions(),x=C.indexOf(y);u.setState({focusedOption:y,focusedOptionId:x>-1?u.getFocusedOptionId(y):null})}},u.shouldHideSelectedOptions=function(){return iM(u.props)},u.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),u.focus()},u.onKeyDown=function(y){var C=u.props,x=C.isMulti,w=C.backspaceRemovesValue,R=C.escapeClearsValue,j=C.inputValue,I=C.isClearable,_=C.isDisabled,A=C.menuIsOpen,L=C.onKeyDown,P=C.tabSelectsValue,F=C.openMenuOnFocus,U=u.state,B=U.focusedOption,z=U.focusedValue,X=U.selectValue;if(!_&&!(typeof L=="function"&&(L(y),y.defaultPrevented))){switch(u.blockOptionHover=!0,y.key){case"ArrowLeft":if(!x||j)return;u.focusValue("previous");break;case"ArrowRight":if(!x||j)return;u.focusValue("next");break;case"Delete":case"Backspace":if(j)return;if(z)u.removeValue(z);else{if(!w)return;x?u.popValue():I&&u.clearValue()}break;case"Tab":if(u.isComposing||y.shiftKey||!A||!P||!B||F&&u.isOptionSelected(B,X))return;u.selectOption(B);break;case"Enter":if(y.keyCode===229)break;if(A){if(!B||u.isComposing)return;u.selectOption(B);break}return;case"Escape":A?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:j}),u.onMenuClose()):I&&R&&u.clearValue();break;case" ":if(j)return;if(!A){u.openMenu("first");break}if(!B)return;u.selectOption(B);break;case"ArrowUp":A?u.focusOption("up"):u.openMenu("last");break;case"ArrowDown":A?u.focusOption("down"):u.openMenu("first");break;case"PageUp":if(!A)return;u.focusOption("pageup");break;case"PageDown":if(!A)return;u.focusOption("pagedown");break;case"Home":if(!A)return;u.focusOption("first");break;case"End":if(!A)return;u.focusOption("last");break;default:return}y.preventDefault()}},u.state.instancePrefix="react-select-"+(u.props.instanceId||++NZ),u.state.selectValue=VA(l.value),l.menuIsOpen&&u.state.selectValue.length){var d=u.getFocusableOptionsWithIds(),v=u.buildFocusableOptions(),h=v.indexOf(u.state.selectValue[0]);u.state.focusableOptionsWithIds=d,u.state.focusedOption=v[h],u.state.focusedOptionId=lw(d,v[h])}return u}return OW(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&BA(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(u){var d=this.props,v=d.isDisabled,h=d.menuIsOpen,y=this.state.isFocused;(y&&!v&&u.isDisabled||y&&h&&!u.menuIsOpen)&&this.focusInput(),y&&v&&!u.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!y&&!v&&u.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(BA(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(u,d){this.props.onInputChange(u,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(u){var d=this,v=this.state,h=v.selectValue,y=v.isFocused,C=this.buildFocusableOptions(),x=u==="first"?0:C.length-1;if(!this.props.isMulti){var w=C.indexOf(h[0]);w>-1&&(x=w)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:C[x],focusedOptionId:this.getFocusedOptionId(C[x])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(u){var d=this.state,v=d.selectValue,h=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=v.indexOf(h);h||(y=-1);var C=v.length-1,x=-1;if(v.length){switch(u){case"previous":y===0?x=0:y===-1?x=C:x=y-1;break;case"next":y>-1&&y<C&&(x=y+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:v[x]})}}}},{key:"focusOption",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,v=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var y=0,C=h.indexOf(v);v||(C=-1),u==="up"?y=C>0?C-1:h.length-1:u==="down"?y=(C+1)%h.length:u==="pageup"?(y=C-d,y<0&&(y=0)):u==="pagedown"?(y=C+d,y>h.length-1&&(y=h.length-1)):u==="last"&&(y=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(sw):bt(bt({},sw),this.props.theme):sw}},{key:"getCommonProps",value:function(){var u=this.clearValue,d=this.cx,v=this.getStyles,h=this.getClassNames,y=this.getValue,C=this.selectOption,x=this.setValue,w=this.props,R=w.isMulti,j=w.isRtl,I=w.options,_=this.hasValue();return{clearValue:u,cx:d,getStyles:v,getClassNames:h,getValue:y,hasValue:_,isMulti:R,isRtl:j,options:I,selectOption:C,selectProps:w,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var u=this.state.selectValue;return u.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var u=this.props,d=u.isClearable,v=u.isMulti;return d===void 0?v:d}},{key:"isOptionDisabled",value:function(u,d){return nM(this.props,u,d)}},{key:"isOptionSelected",value:function(u,d){return rM(this.props,u,d)}},{key:"filterOption",value:function(u,d){return aM(this.props,u,d)}},{key:"formatOptionLabel",value:function(u,d){if(typeof this.props.formatOptionLabel=="function"){var v=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(u,{context:d,inputValue:v,selectValue:h})}else return this.getOptionLabel(u)}},{key:"formatGroupLabel",value:function(u){return this.props.formatGroupLabel(u)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var u=this.props,d=u.isDisabled,v=u.isSearchable,h=u.inputId,y=u.inputValue,C=u.tabIndex,x=u.form,w=u.menuIsOpen,R=u.required,j=this.getComponents(),I=j.Input,_=this.state,A=_.inputIsHidden,L=_.ariaSelection,P=this.commonProps,F=h||this.getElementId("input"),U=bt(bt(bt({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":R,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!v&&{"aria-readonly":!0}),this.hasValue()?(L==null?void 0:L.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return v?k.createElement(I,_t({},P,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:F,innerRef:this.getInputRef,isDisabled:d,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:C,form:x,type:"text",value:y},U)):k.createElement(QY,_t({id:F,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:k0,onFocus:this.onInputFocus,disabled:d,tabIndex:C,inputMode:"none",form:x,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var u=this,d=this.getComponents(),v=d.MultiValue,h=d.MultiValueContainer,y=d.MultiValueLabel,C=d.MultiValueRemove,x=d.SingleValue,w=d.Placeholder,R=this.commonProps,j=this.props,I=j.controlShouldRenderValue,_=j.isDisabled,A=j.isMulti,L=j.inputValue,P=j.placeholder,F=this.state,U=F.selectValue,B=F.focusedValue,z=F.isFocused;if(!this.hasValue()||!I)return L?null:k.createElement(w,_t({},R,{key:"placeholder",isDisabled:_,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),P);if(A)return U.map(function(Z,ue){var ie=Z===B,ge="".concat(u.getOptionLabel(Z),"-").concat(u.getOptionValue(Z));return k.createElement(v,_t({},R,{components:{Container:h,Label:y,Remove:C},isFocused:ie,isDisabled:_,key:ge,index:ue,removeProps:{onClick:function(){return u.removeValue(Z)},onTouchEnd:function(){return u.removeValue(Z)},onMouseDown:function(_e){_e.preventDefault()}},data:Z}),u.formatOptionLabel(Z,"value"))});if(L)return null;var X=U[0];return k.createElement(x,_t({},R,{data:X,isDisabled:_}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var u=this.getComponents(),d=u.ClearIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,C=h.isLoading,x=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||C)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,_t({},v,{innerProps:w,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var u=this.getComponents(),d=u.LoadingIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,C=h.isLoading,x=this.state.isFocused;if(!d||!C)return null;var w={"aria-hidden":"true"};return k.createElement(d,_t({},v,{innerProps:w,isDisabled:y,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var u=this.getComponents(),d=u.DropdownIndicator,v=u.IndicatorSeparator;if(!d||!v)return null;var h=this.commonProps,y=this.props.isDisabled,C=this.state.isFocused;return k.createElement(v,_t({},h,{isDisabled:y,isFocused:C}))}},{key:"renderDropdownIndicator",value:function(){var u=this.getComponents(),d=u.DropdownIndicator;if(!d)return null;var v=this.commonProps,h=this.props.isDisabled,y=this.state.isFocused,C={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,_t({},v,{innerProps:C,isDisabled:h,isFocused:y}))}},{key:"renderMenu",value:function(){var u=this,d=this.getComponents(),v=d.Group,h=d.GroupHeading,y=d.Menu,C=d.MenuList,x=d.MenuPortal,w=d.LoadingMessage,R=d.NoOptionsMessage,j=d.Option,I=this.commonProps,_=this.state.focusedOption,A=this.props,L=A.captureMenuScroll,P=A.inputValue,F=A.isLoading,U=A.loadingMessage,B=A.minMenuHeight,z=A.maxMenuHeight,X=A.menuIsOpen,Z=A.menuPlacement,ue=A.menuPosition,ie=A.menuPortalTarget,ge=A.menuShouldBlockScroll,de=A.menuShouldScrollIntoView,_e=A.noOptionsMessage,Ee=A.onMenuScrollToTop,Ce=A.onMenuScrollToBottom;if(!X)return null;var je=function(be,we){var Ne=be.type,Oe=be.data,ce=be.isDisabled,fe=be.isSelected,Ve=be.label,Ge=be.value,tt=_===Oe,ot=ce?void 0:function(){return u.onOptionHover(Oe)},Ae=ce?void 0:function(){return u.selectOption(Oe)},Rt="".concat(u.getElementId("option"),"-").concat(we),dt={id:Rt,onClick:Ae,onMouseMove:ot,onMouseOver:ot,tabIndex:-1,role:"option","aria-selected":u.isAppleDevice?void 0:fe};return k.createElement(j,_t({},I,{innerProps:dt,data:Oe,isDisabled:ce,isSelected:fe,key:Rt,label:Ve,type:Ne,value:Ge,isFocused:tt,innerRef:tt?u.getFocusedOptionRef:void 0}),u.formatOptionLabel(be.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var be=ne.data,we=ne.options,Ne=ne.index,Oe="".concat(u.getElementId("group"),"-").concat(Ne),ce="".concat(Oe,"-heading");return k.createElement(v,_t({},I,{key:Oe,data:be,options:we,Heading:h,headingProps:{id:ce,data:ne.data},label:u.formatGroupLabel(ne.data)}),ne.options.map(function(fe){return je(fe,"".concat(Ne,"-").concat(fe.index))}))}else if(ne.type==="option")return je(ne,"".concat(ne.index))});else if(F){var re=U({inputValue:P});if(re===null)return null;Le=k.createElement(w,I,re)}else{var Ie=_e({inputValue:P});if(Ie===null)return null;Le=k.createElement(R,I,Ie)}var G={minMenuHeight:B,maxMenuHeight:z,menuPlacement:Z,menuPosition:ue,menuShouldScrollIntoView:de},Y=k.createElement(NX,_t({},I,G),function(ne){var be=ne.ref,we=ne.placerProps,Ne=we.placement,Oe=we.maxHeight;return k.createElement(y,_t({},I,G,{innerRef:be,innerProps:{onMouseDown:u.onMenuMouseDown,onMouseMove:u.onMenuMouseMove},isLoading:F,placement:Ne}),k.createElement(iZ,{captureEnabled:L,onTopArrive:Ee,onBottomArrive:Ce,lockEnabled:ge},function(ce){return k.createElement(C,_t({},I,{innerRef:function(Ve){u.getMenuListRef(Ve),ce(Ve)},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:u.getElementId("listbox")},isLoading:F,maxHeight:Oe,focusedOption:_}),Le)}))});return ie||ue==="fixed"?k.createElement(x,_t({},I,{appendTo:ie,controlElement:this.controlRef,menuPlacement:Z,menuPosition:ue}),Y):Y}},{key:"renderFormField",value:function(){var u=this,d=this.props,v=d.delimiter,h=d.isDisabled,y=d.isMulti,C=d.name,x=d.required,w=this.state.selectValue;if(x&&!this.hasValue()&&!h)return k.createElement(uZ,{name:C,onFocus:this.onValueInputFocus});if(!(!C||h))if(y)if(v){var R=w.map(function(_){return u.getOptionValue(_)}).join(v);return k.createElement("input",{name:C,type:"hidden",value:R})}else{var j=w.length>0?w.map(function(_,A){return k.createElement("input",{key:"i-".concat(A),name:C,type:"hidden",value:u.getOptionValue(_)})}):k.createElement("input",{name:C,type:"hidden",value:""});return k.createElement("div",null,j)}else{var I=w[0]?this.getOptionValue(w[0]):"";return k.createElement("input",{name:C,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var u=this.commonProps,d=this.state,v=d.ariaSelection,h=d.focusedOption,y=d.focusedValue,C=d.isFocused,x=d.selectValue,w=this.getFocusableOptions();return k.createElement(WY,_t({},u,{id:this.getElementId("live-region"),ariaSelection:v,focusedOption:h,focusedValue:y,isFocused:C,selectValue:x,focusableOptions:w,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var u=this.getComponents(),d=u.Control,v=u.IndicatorsContainer,h=u.SelectContainer,y=u.ValueContainer,C=this.props,x=C.className,w=C.id,R=C.isDisabled,j=C.menuIsOpen,I=this.state.isFocused,_=this.commonProps=this.getCommonProps();return k.createElement(h,_t({},_,{className:x,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:R,isFocused:I}),this.renderLiveRegion(),k.createElement(d,_t({},_,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:R,isFocused:I,menuIsOpen:j}),k.createElement(y,_t({},_,{isDisabled:R}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(v,_t({},_,{isDisabled:R}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(u,d){var v=d.prevProps,h=d.clearFocusValueOnUpdate,y=d.inputIsHiddenAfterUpdate,C=d.ariaSelection,x=d.isFocused,w=d.prevWasFocused,R=d.instancePrefix,j=u.options,I=u.value,_=u.menuIsOpen,A=u.inputValue,L=u.isMulti,P=VA(I),F={};if(v&&(I!==v.value||j!==v.options||_!==v.menuIsOpen||A!==v.inputValue)){var U=_?RZ(u,P):[],B=_?ej(u0(u,P),"".concat(R,"-option")):[],z=h?TZ(d,P):null,X=_Z(d,U),Z=lw(B,X);F={selectValue:P,focusedOption:X,focusedOptionId:Z,focusableOptionsWithIds:B,focusedValue:z,clearFocusValueOnUpdate:!1}}var ue=y!=null&&u!==v?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},ie=C,ge=x&&w;return x&&!ge&&(ie={value:qb(L,P,P[0]||null),options:P,action:"initial-input-focus"},ge=!w),(C==null?void 0:C.action)==="initial-input-focus"&&(ie=null),bt(bt(bt({},F),ue),{},{prevProps:u,ariaSelection:ie,prevWasFocused:ge})}}]),i}(k.Component);i1.defaultProps=wZ;var IZ=k.forwardRef(function(t,r){var i=mk(t);return k.createElement(i1,_t({ref:r},i))}),o1=IZ;const AZ=`, ${new Date().getFullYear()}`;function nj({creditResource:t,resource:r,short:i=!1}){const{base:l,current:u}=r.exchangeRates;if(u.unitCost>=l.unitCost)return;const d=u.endDate?"calendar3":"people-fill",v=u.endDate?"primary":"success";let y=`${Math.round(100*(l.unitCost-u.unitCost)/l.unitCost)}%`,C=y;if(u.endDate){const x=u.endDate?` off until ${Ud(u.endDate).replace(AZ,"")}`:"";i||(y+=x),C+=x}else i||(y+=" for you"),C+=u.institutionType?` off for researchers from ${u.institutionType}`:" off for you";return C+=`: ${eO(r.unit,u.unitCost,t.name)}`,m.jsxs("span",{className:`badge text-bg-${v} ms-2`,title:C,style:{cursor:"help"},children:[m.jsx("i",{className:`bi bi-${d} me-1`}),y]})}function Up({bg:t="dark",children:r,color:i="light",fontWeight:l="bold",icon:u="info-circle-fill",initial:d=!1,maxWidth:v="200px",padding:h="10px",placement:y,target:C,trigger:x="click",visible:w=!0}){const R=typeof d=="string"||d instanceof String,[j,I]=k.useState(R?localStorage.getItem(d)!="true":d),[_,A]=k.useState(!1);k.useEffect(()=>{setTimeout(()=>A(!0),100)},[]);const L=()=>{R&&localStorage.setItem(d,"true")},P=m.jsxs(J0,{style:{"--bs-tooltip-bg":`var(--bs-${t})`,"--bs-tooltip-color":`var(--bs-${i})`,"--bs-tooltip-max-width":v,"--bs-tooltip-padding-x":h,"--bs-tooltip-padding-y":h,fontWeight:l},children:[m.jsx("button",{"aria-label":"Close",onClick:()=>{L(),I(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:m.jsx("i",{className:"bi bi-x-lg"})}),r]});return C&&C.current?m.jsx(pk,{target:C.current,placement:y,show:j&&w&&_,children:P}):m.jsx(zR,{placement:y,onToggle:F=>{L(),I(F)},overlay:P,show:j&&w&&_,trigger:x,children:m.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:m.jsx("i",{className:`bi bi-${u}`})})})}function jZ({resources:t}){const r=t.filter(d=>{const{base:v,current:h}=d.exchangeRates;return h.unitCost<v.unitCost});if(!r.length)return;const i=[],l=[];for(let d of r){let{name:v,favicon:h}=d.resourceProvider;i.includes(v)||(i.push(v),l.push(h))}const u=l.map((d,v)=>m.jsx("span",{className:"d-inline-block border me-1",style:{backgroundColor:"white",backgroundImage:`url(${d})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"16px 16px",borderRadius:"24px",height:"24px",verticalAlign:"middle",width:"24px"},title:i[v]},i[v]));return m.jsxs("a",{href:Yt.routes.resources_path(),className:"d-flex justify-content-between align-items-center p-2 border-start border-end bg-secondary-subtle text-decoration-none fw-normal",children:[m.jsxs("span",{children:[u,"Visit the resource catalog to see discounts on"," ",ga(r.length)," ",y0("resources",r.length)," from"," ",ga(i.length)," ",y0("resource providers",i.length),"!"]}),m.jsx("span",{className:"fs-4",children:"›"})]})}const OZ="_items_c2dbg_1",DZ="_item_c2dbg_1",kZ="_details_c2dbg_14",MZ="_text_c2dbg_20",LZ="_number_c2dbg_35",PZ="_outer_c2dbg_50",FZ="_inner_c2dbg_61",ql={items:OZ,item:DZ,details:kZ,text:MZ,number:LZ,outer:PZ,inner:FZ},hm=(t,r)=>`${Math.cos(2*Math.PI*t)*r} ${Math.sin(2*Math.PI*t)*r}`;function VZ({requestId:t,grantNumber:r,creditColorClass:i="gray-300",colorClasses:l=Ew}){const{request:u}=ri(t,r);if(!u)return;let d=0,v;const h=[];for(let R of u.resources)R.isBoolean||(R.isCredit?v=R:h.push(R),d+=ww(R));const y=[],C=[];let x=-.25;const w=[...h,v].map((R,j)=>{if(!R)return null;const I=j+1,A=ww(R)/d,L=R.requested-R.used,P=Math.max(0,L),F=R.isCredit?d/R.exchangeRates.base.unitCost:R.requested,U=F==0?0:100*P/F,z=`var(--bs-${R.isCredit?i:l[j%l.length]})`;if(A>0){const X=x,Z=x+A/2,ue=x+=A,ie=A>.5?1:0,ge=[`M ${hm(X,100)}`,`A 100 100 0 ${ie} 1 ${hm(ue,100)}`,`L ${hm(ue,50)}`,`A 50 50 0 ${ie} 0 ${hm(X,50)}`].join(" "),[de,_e]=hm(Z,75).split(" ").map(Ee=>parseFloat(Ee));y.push(m.jsx("path",{d:ge,style:{fill:z}},R.resourceId)),C.push(m.jsx("circle",{cx:de,cy:_e,r:"8",fill:"black"},`${R.resourceId}-circle`),m.jsx("text",{x:de-4,y:_e+4,fill:"white",className:ql.number,children:I},`${R.resourceId}-text`))}return R.isCredit&&C.push(m.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:m.jsx("div",{className:ql.text,children:m.jsxs("div",{children:[m.jsx("strong",{children:ga(P,{abbreviate:!0})}),R.unit," available"]})})},"center-text")),m.jsxs("li",{className:ql.item,children:[m.jsx("span",{className:ql.number,children:I}),m.jsx("span",{className:`${ql.outer} ms-2 me-2`,style:{borderColor:z},children:m.jsx("span",{className:ql.inner,style:{backgroundColor:z,width:`${U}%`}})}),m.jsxs("strong",{className:ql.name,children:[m.jsx(Wd,{resource:R,userGuide:!1}),": "]}),m.jsxs("span",{className:ql.details,children:[ga(L,{abbreviate:!0})," ",R.isCredit?null:m.jsxs(m.Fragment,{children:["of ",ga(F,{abbreviate:!0})," "]}),R.unit," ",R.isCredit?"available":"remaining"," (",Math.round(U),"%)"]})]},R.resourceId)});return m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:m.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[y,C]})}),m.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:m.jsx("ul",{className:ql.items,children:w})})]})}const rj=t=>t;function BZ({classes:t,clean:r=rj,format:i=rj,label:l,setValue:u,style:d,value:v}){const h=i(v),[y,C]=k.useState(h);return k.useEffect(()=>{C(h)},[h]),m.jsx("input",{type:"text","aria-label":l,className:`form-control ${t}`,value:y,style:d,onChange:x=>C(x.target.value),onBlur:x=>{const w=r(x.target.value);C(i(w)),u(w)},onKeyDown:x=>{x.code=="Enter"&&(x.preventDefault(),x.target.blur())}})}function zZ({requestId:t,grantNumber:r}){const{request:i,addResource:l,openUsageDetailModal:u,resetResources:d,setResourceRequest:v,setResourcesReason:h,statuses:y,toggleActionsModal:C,toggleConfirmModal:x,toggleResourcesModal:w}=ri(t,r),{project:R}=Ji(r||i&&i.grantNumber),j=k.useRef(null),I=k.useRef(null);if(!i||!R)return;const _="Exchange"in i.allowedActions,A="Renewal"in i.allowedActions,L="Supplement"in i.allowedActions,P=i.exchangeStatus==y.pending,F=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,B=i.exchangeActionId!==null,z=i.resources,X=i.resourcesReason,Z={};for(let ce of z)Z[ce.resourceId]=ce;const ue=()=>{tO(i)>=.75?C():x()},ie=[];for(let ce of z){let fe=[];if(ce.requested>0){for(let Ve of ce.requires||[]){let Ge=Z[Ve];if(Ge){if(Ge.requested>0){fe=[];break}fe.push(Ge)}}fe.length&&ie.push(m.jsxs("span",{children:[m.jsx(Wd,{resource:ce,userGuide:!1})," requires"," ",Kj(fe.map(Ve=>m.jsx(Wd,{resource:Ve,userGuide:!1},Ve.resourceId)),"or"),"."]},ce.resourceId))}}const ge=ie.length>0;let de;F?de=m.jsx(Mr,{color:"info",children:"Your exchange request has been submitted."}):B?de=m.jsx(Mr,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?de=m.jsx(Mr,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!R.isManager?de=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",vR(R)," to request a change."]}):ge&&(de=m.jsxs(Mr,{color:"warning",children:[ie," Please adjust your balance values."]}));const _e=X.length>0;let Ee=!1,Ce=!1;for(let ce of z)if(ce.isNew&&(Ee=!0),ce.allocated!=ce.requested&&(Ce=!0),Ee&&Ce)break;const je=z.map(ce=>ce.resourceId),Le={},re=_&&!F&&!B?i.allowedActions.Exchange.resources.filter(ce=>!je.includes(ce.resourceId)).map(ce=>{Le[ce.resourceId]=ce;const fe=U0(ce.name),Ve=fe.short?`${fe.short} (${fe.full.replace(/ \([^(]+\)/,"")})`:fe.full;return{value:ce.resourceId,label:Ve}}):[],Ie=_?i.allowedActions.Exchange.resources.map(ce=>ce.resourceId):[];let G;const Y=[],ne=[];for(let ce of z)ce.isCredit?G=ce:(Y.push(ce),ne.push(!F&&!B&&(ce.isNew||ce.allocated!=ce.requested)?Hd.edited:Ie.includes(ce.resourceId)?"":Hd.disabled));const be=`Add ${Y.length?"another":"a"} resource to your exchange...`,we=ce=>ce.requested-ce.used,Ne=(ce,fe)=>{const Ve=fe.allocated-fe.used,Ge=zp(Number(ce.replace(/[^0-9-.]/g,"")),fe.decimalPlaces),tt=Math.min(0,Ve);if(Ge<tt)return tt;let ot=G.requested*G.exchangeRates.base.unitCost;const Ae=(fe.allocated-fe.requested)*fe.exchangeRates.base.unitCost,Rt=Math.min(ot,Ae);ot-=Rt;let dt=fe.requested-fe.used+Rt/fe.exchangeRates.base.unitCost;return ot>0&&(dt+=ot/fe.exchangeRates.current.unitCost),Ge>dt?zp(dt,fe.decimalPlaces,"floor"):Ge},Oe=[{key:"name",name:"Resource",format:(ce,fe)=>m.jsx(Wd,{resource:fe}),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(ce,fe)=>m.jsx(qp,{status:ce?"Active":fe.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(ce,fe)=>fe.isBoolean?m.jsx(m.Fragment,{children:"—"}):[m.jsx("abbr",{title:eO(ce,fe.exchangeRates.base.unitCost,G.name),children:ce},"base"),m.jsx(nj,{creditResource:G,resource:fe,short:!0},"discount")]},{key:"used",name:"Usage",class:"text-end",format:(ce,fe)=>fe.isBoolean?m.jsx(m.Fragment,{children:"—"}):m.jsxs(m.Fragment,{children:[ga(ce),(R.currentUser.resourceIds.includes(fe.resourceId)||R.currentUser.resourceAccountInactiveIds.includes(fe.resourceId))&&m.jsx(_0,{icon:"table",onClick:()=>u(fe.resourceRepositoryKey),target:"_blank",title:`${fe.name} Usage Details`})]})}];return _&&Oe.push({key:"requested",name:"Balance",class:"text-end",rowClass:ce=>!F&&!B&&Ie.includes(ce.resourceId)?Hd.input:"",format:(ce,fe)=>{const Ve=!F&&!B&&Ie.includes(fe.resourceId);return fe.isBoolean?m.jsx("input",{className:"form-check-input",type:"checkbox",checked:ce==1,disabled:!Ve,onChange:Ge=>v(fe.resourceId,Ge.target.checked?1:0)}):Ve?m.jsx(BZ,{classes:"text-end w-100",clean:Ge=>Ne(Ge,fe),format:ga,label:`Balance for ${fe.name}`,setValue:Ge=>{v(fe.resourceId,Ge+fe.used)},style:{padding:"0.1rem 0.5rem"},value:we(fe)}):ga(we(fe))},formatHeader:ce=>m.jsxs(m.Fragment,{children:[ce,!F&&!B?m.jsx(Up,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:R.tab=="resources",children:"You can increase or decrease the balance below to change your allocation on a resource. Enter the total amount you would like to have available once the exchange is complete."}):null]})}),m.jsxs("div",{className:"resources",children:[de,z.length?m.jsx(VZ,{requestId:t}):null,G&&(_||A||L)?m.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[m.jsxs("span",{children:[yc(Yt.resourceTypeIcons.credit)," ",ga(G.requested,G)," ",G.unit," available to exchange"]}),A||L?m.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:ue,children:[yc(Yt.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,Y.length?m.jsx(ou,{columns:Oe,rows:Y,rowClasses:ne,classes:re.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):m.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),re.length?m.jsxs(m.Fragment,{children:[m.jsx(jZ,{resources:_&&i.allowedActions.Exchange.resources||[]}),m.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:j,children:m.jsx(o1,{classNames:{control:()=>"react-select mb-1"},options:re,onChange:ce=>l(ce.value),placeholder:be,value:null,"aria-label":be,formatOptionLabel:({value:ce,label:fe})=>[fe,m.jsx(nj,{creditResource:G,resource:Le[ce]},"discount")]})}),Y.length?null:m.jsx(Up,{bg:"secondary",color:"dark",visible:R.tab=="resources",initial:!0,target:j,children:"Ready to get started? Search for a resource to add it to your project."}),m.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",m.jsx("a",{href:Yt.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,_&&!F&&!B?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"mb-3",children:[m.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),m.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:X,onChange:ce=>h(ce.target.value),style:{minHeight:"3rem"}})]}),m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:P||!Ce&&!_e&&!Ee,onClick:d,children:"Reset Form"}),m.jsx("button",{ref:I,type:"button",className:"btn btn-secondary",disabled:P||!Ce||!_e||ge,onClick:w,children:P?"Submitting...":"Submit for Approval"})]}),Ce&&!ge?m.jsx(Up,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:I,visible:R.tab=="resources",children:"When you are finished adding resources, enter a justification for the requested resources above. Then you can submit your exchange for approval."}):null]}):null]})}function $Z({question:t,requestId:r,grantNumber:i}){const{request:l,setResourceQuestionValues:u}=ri(r,i),d=k.useId();if(!t||!l||l.error)return;const{attributeSetId:v,attributes:h,fieldType:y,label:C,resourceId:x,values:w}=t,R=h[0],j=R.required?"required":"",I=F=>u(x,v,F.target.value?[F.target.value]:[]),_=F=>{u(x,v,Array.from(F.target.options).filter(({selected:U})=>U).map(({value:U})=>parseInt(U,10)))},A=F=>{const U=parseInt(F.target.value,10),B=F.target.checked?[...w,U]:w.filter(z=>z!=U);u(x,v,B)},L=F=>{const U=parseInt(F.target.value);u(x,v,isNaN(U)?[]:[U])};let P;if(["calendar","integer_only","text"].includes(y)){const F={calendar:"date",integer_only:"number",text:"text"}[y];P=m.jsx("input",{className:"form-control",id:d,type:F,placeholder:R.label,required:R.required,value:w[0]||"",onChange:y=="integer_only"?L:I})}else if(y=="textarea")P=m.jsx("textarea",{className:"form-control",id:d,placeholder:R.label,required:R.required,value:w[0]||"",onChange:I});else if(y=="drop_down"||h.length>=10){const F=y=="multi_sel";P=m.jsxs("select",{id:d,className:"form-select",required:R.required,multiple:F,onChange:F?_:L,value:F?w:w[0]||"",children:[F?null:m.jsx("option",{}),h.map(U=>m.jsx("option",{value:U.resourceAttributeId,children:U.label},U.resourceAttributeId))]})}else P=m.jsx("div",{id:d,children:h.map(F=>{const U=`resource-attribute-${F.resourceAttributeId}`;return m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:y=="single_sel"?"radio":"checkbox",id:U,value:F.resourceAttributeId,checked:w.includes(F.resourceAttributeId),onChange:y=="single_sel"?L:A}),m.jsx("label",{className:"form-check-label",htmlFor:U,children:F.label})]},F.resourceAttributeId)})});return m.jsxs("div",{className:"mb-3",children:[m.jsx("label",{htmlFor:d,className:`form-label ${j}`,children:C}),P]})}function UZ({requestId:t,grantNumber:r}){const{request:i,saveResources:l,toggleResourcesModal:u}=ri(t,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const v=[],h=i.resources.filter(C=>C.allocated!=C.requested).map(C=>{const x=C.requested-C.allocated;return C.questions&&v.push(...C.questions),m.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[C.name,m.jsx("span",{className:`badge bg-${x>0?"primary":"danger"} rounded-pill`,children:C.isBoolean?hR(C.requested):m.jsxs(m.Fragment,{children:[x>0?"+":"",ga(x,C)," ",C.unit]})})]},C.resourceId)}),y=v.some(({attributes:C,values:x})=>x.length==0&&C[0].required);return m.jsxs(Ln,{size:"lg",show:i.showResourcesModal,onHide:u,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Complete Your Exchange"})}),m.jsxs(Ln.Body,{children:[m.jsx("p",{children:"Please review your exchange to make sure it includes all the resources you need. Once you submit it, you will not be able to request another exchange until this one has been processed by the resource providers."}),m.jsx("ul",{className:"list-group mb-3",children:h}),v.length?m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Resource Questions"}),m.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),v.map(C=>m.jsx($Z,{question:C,requestId:t,grantNumber:r},C.attributeSetId))]}):null]}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:u,children:"Continue Editing"}),m.jsx("button",{type:"button",className:"btn btn-secondary",onClick:l,disabled:y,children:"Submit"})]})})]})}function oM({user:t}){const r=`${t.lastName}, ${t.firstName}`;let i=r,l=[t.organization,t.email].filter(u=>u).join(", ");return l&&(i+=`: ${l}`),m.jsx("abbr",{title:i,children:r})}function HZ({requestId:t,grantNumber:r}){const{project:i}=Ji(r),{request:l,closeUsageDetailModal:u}=ri(t,r);if(!l||l.error||!i||i.error||!l.usageDetailStatus)return;let d,v="Usage";if(l.usageDetailStatus==ta.pending)d=m.jsx(eh,{});else if(l.usageDetailStatus==ta.error)d=m.jsx(Mr,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:h,resourceDisplayName:y,resourceRepositoryKey:C,users:x}=l.usageDetail,{full:w,short:R}=U0(y),j=l.resources.find(L=>L.resourceRepositoryKey==C),I=L=>ga(L,{decimalPlaces:j?j.decimalPlaces:void 0}),_={};for(let L of i.users)_[L.username]=L;v=m.jsxs(m.Fragment,{children:["Usage: ",R||w," for ",h]});const A=[{key:"name",name:"Name",format:(L,{lastName:P,firstName:F,portalUsername:U})=>{const B=_[U];return B?m.jsx(oM,{user:B}):`${P}, ${F}`}},{key:"portalUsername",name:"Resource Username",format:L=>{const P=_[L],F=P?P.resourceUsernames[j.resourceId]:null;return F||m.jsx(m.Fragment,{children:"—"})}},{key:"role",name:"Role",format:L=>nO[L].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:I},{key:"lastMonth",name:"Last Month",class:"text-end",format:I},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:I},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:I},{key:"total",name:"All Time",class:"text-end",format:I}];d=x.length?m.jsx(ou,{rows:x,columns:A}):m.jsx(Mr,{color:"info",children:"There is no usage for this resource."})}return m.jsxs(Ln,{show:!0,size:"lg",onHide:u,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:v})}),m.jsx(Ln.Body,{children:d})]})}var GZ=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function WZ(t){var r=t.defaultOptions,i=r===void 0?!1:r,l=t.cacheOptions,u=l===void 0?!1:l,d=t.loadOptions;t.options;var v=t.isLoading,h=v===void 0?!1:v,y=t.onInputChange,C=t.filterOption,x=C===void 0?null:C,w=al(t,GZ),R=w.inputValue,j=k.useRef(void 0),I=k.useRef(!1),_=k.useState(Array.isArray(i)?i:void 0),A=na(_,2),L=A[0],P=A[1],F=k.useState(typeof R<"u"?R:""),U=na(F,2),B=U[0],z=U[1],X=k.useState(i===!0),Z=na(X,2),ue=Z[0],ie=Z[1],ge=k.useState(void 0),de=na(ge,2),_e=de[0],Ee=de[1],Ce=k.useState([]),je=na(Ce,2),Le=je[0],re=je[1],Ie=k.useState(!1),G=na(Ie,2),Y=G[0],ne=G[1],be=k.useState({}),we=na(be,2),Ne=we[0],Oe=we[1],ce=k.useState(void 0),fe=na(ce,2),Ve=fe[0],Ge=fe[1],tt=k.useState(void 0),ot=na(tt,2),Ae=ot[0],Rt=ot[1];u!==Ae&&(Oe({}),Rt(u)),i!==Ve&&(P(Array.isArray(i)?i:void 0),Ge(i)),k.useEffect(function(){return I.current=!0,function(){I.current=!1}},[]);var dt=k.useCallback(function(ln,In){if(!d)return In();var Vt=d(ln,In);Vt&&typeof Vt.then=="function"&&Vt.then(In,function(){return In()})},[d]);k.useEffect(function(){i===!0&&dt(B,function(ln){I.current&&(P(ln||[]),ie(!!j.current))})},[]);var en=k.useCallback(function(ln,In){var Vt=fX(ln,In,y);if(!Vt){j.current=void 0,z(""),Ee(""),re([]),ie(!1),ne(!1);return}if(u&&Ne[Vt])z(Vt),Ee(Vt),re(Ne[Vt]),ie(!1),ne(!1);else{var xn=j.current={};z(Vt),ie(!0),ne(!_e),dt(Vt,function(Qn){I&&xn===j.current&&(j.current=void 0,ie(!1),Ee(Vt),re(Qn||[]),ne(!1),Oe(Qn?bt(bt({},Ne),{},Bp({},Vt,Qn)):Ne))})}},[u,dt,_e,Ne,y]),sn=Y?[]:B&&_e?Le:L||[];return bt(bt({},w),{},{options:sn,isLoading:ue||h,onInputChange:en,filterOption:x})}var XZ=k.forwardRef(function(t,r){var i=WZ(t),l=mk(i);return k.createElement(i1,_t({ref:r},l))}),YZ=XZ;const aj=({description:t,disabled:r=!1,onChange:i,selectedLength:l,totalLength:u})=>{const d=k.useRef(),v=k.useId();let h=l==u,y=l>0&&!h;return k.useEffect(()=>{d.current&&(d.current.checked=h,d.current.indeterminate=y)},[h,y]),m.jsxs(m.Fragment,{children:[m.jsx("input",{className:"custom-checkbox form-check-input",disabled:r,id:v,onChange:C=>i(C.target.checked),ref:d,type:"checkbox"}),m.jsx("label",{className:"form-check-label",htmlFor:v,"aria-description":`${h?"Deselect":"Select"} ${t}`})]})};function ZZ({grantNumber:t,requestId:r}){const{project:i,addUser:l,resetUsers:u,saveUsers:d,setTab:v,setUserRole:h,statuses:y,toggleUsersResources:C}=Ji(t),{request:x}=i?ri(r||i.currentRequestId,t):{request:null};if(!i||!i.currentRequestId||!x||i.error||x.error)return;const w=i.isManager,R="Exchange"in x.allowedActions,j=i.usersStatus==y.pending,I=i.usersStatus==y.success,_=i.usersStatus==y.error,A=i.users,L=x.resources.filter(Aw),P=L.length==0,F=A.find(ie=>ie.hasChanges)!==void 0,U=A.find(ie=>ie.role!="pi")!==void 0;let B;I&&!F?B=m.jsx(Mr,{color:"info",children:"Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page."}):_?B=m.jsx(Mr,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?L.length?P&&(B=m.jsx(Mr,{color:"warning",children:"This project does not have any active resources."})):B=m.jsxs(Mr,{color:"warning",children:["This project does not have any resources."," ",R?m.jsx("a",{href:Yt.routes.request_action_path(x.requestId,"new?action_type=Exchange"),onClick:ie=>{ie.preventDefault(),v("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):B=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",vR(i)," to request a change."]});const z=(ie,ge)=>{let de,_e,Ee,Ce;if(ge.key=="all"){de="all resources for all users",_e=je=>C(je),Ee=0;for(let je of A)Ee+=je.resourceIds.length;Ce=A.length*L.length}else de=`all users for ${ge.name}`,_e=je=>C(je,null,ge.key),Ee=A.filter(({resourceIds:je})=>je.includes(ge.key)).length,Ce=A.length;return m.jsxs(m.Fragment,{children:[ge.key=="all"?ie:m.jsx(Wd,{resource:ge,userGuide:!1}),m.jsx("br",{}),m.jsx(aj,{description:de,disabled:ge.disabled,onChange:_e,selectedLength:Ee,totalLength:Ce})]})},X=H0.map(({role:ie,name:ge})=>m.jsx("option",{value:ie,children:ge},ie)),Z=[{key:"name",name:"Name",width:200,format:(ie,ge)=>m.jsx(oM,{user:ge})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(ie,ge)=>m.jsx("select",{className:"form-select",value:ie,onChange:de=>h(ge.username,de.target.value),disabled:!w||ie=="pi"||ie=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:X.filter(de=>de.key==ie||!["pi","co_pi"].includes(de.key))})}];L.length&&Z.push({key:"all",name:"All Resources",class:`text-center ${Hd.important}`,disabled:!w||P,width:100,format:(ie,ge)=>m.jsx(aj,{description:`all users for ${ge.name}`,disabled:!w||P,onChange:de=>C(de,ge.username),selectedLength:ge.resourceIds.length,totalLength:L.length}),formatHeader:z});for(let ie of L)Z.push({key:ie.resourceId,name:ie.name,class:"text-center",disabled:!w||!ie.isActive,icon:ie.icon,format:(ge,de)=>m.jsx(m.Fragment,{children:m.jsx("input",{className:"form-check-input",disabled:!w||!ie.isActive,onChange:_e=>C(_e.target.checked,de.username,ie.resourceId),type:"checkbox",checked:de.resourceIds.includes(ie.resourceId)})}),formatHeader:z});const ue=A.map(ie=>ie.hasChanges?Hd.edited:"");return m.jsxs(m.Fragment,{children:[B,m.jsx(ou,{rows:A,columns:Z,frozenColumns:L.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:ue,scrollRowIndex:i.usersNewRowIndex}),w&&L.length&&!P?m.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:m.jsx(YZ,{classNames:{control:()=>"react-select"},loadOptions:async ie=>(await eG(ie)).map(de=>({value:de,label:`${de.username} (${de.firstName} ${de.lastName}, ${de.organization}${de.email?`, ${de.email}`:""})`})),onChange:ie=>l(ie.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,w&&(L.length&&!P||U)?m.jsxs("div",{className:"d-flex mt-3",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:j||!F,onClick:u,children:"Reset Form"}),m.jsx("button",{type:"button",className:"btn btn-secondary",disabled:j||!F,onClick:d,children:j?"Saving...":"Save Changes"})]}):null]})}function qZ({requestId:t,grantNumber:r}){const{request:i}=ri(t,r),{project:l,setRequest:u,setTab:d}=Ji(r||i.grantNumber);if(!i)return;if(i.error)return m.jsx(Mr,{color:"danger",children:i.error});const v=i.timeStatus||i.actions[0].status.toLowerCase(),h=i.actions.find(({showDeleteModal:C})=>C),y=[];return i.resources.length||y.push("resources"),t!=l.currentRequestId&&y.push("users"),m.jsxs("div",{className:"request",children:[i.returnedForCorrections?m.jsxs(Mr,{color:"warning",children:[m.jsx("p",{children:"Your request has been returned for corrections. These are the notes from the Allocations Team"}),m.jsx("div",{className:NG.returnedForCorrectionsNotes,children:i.returnedForCorrectionsNotes}),m.jsx("p",{className:"mt-3",children:"Please address these issues by clicking the Edit button to edit your request."})]}):"",i.timeStatus!="current"&&!i.returnedForCorrections?m.jsxs(Mr,{color:"warning",children:["You are viewing ","aeiou".includes(v[0])?"an":"a"," ",v," request."," ",y.length?`You cannot manage ${y.join(" or ")} for this request.`:""," ",l.currentRequestId?m.jsx("a",{href:Yt.routes.request_path(l.currentRequestId),onClick:C=>{C.preventDefault(),u(l.currentRequestId)},children:"Go to the current request."}):null]}):null,m.jsxs(U3,{activeKey:l.tab,onSelect:d,className:"mt-3 mb-3",children:[m.jsx(zb,{eventKey:"overview",title:"Overview",className:"mb-0",children:m.jsx(RW,{requestId:t,grantNumber:r})}),m.jsx(zb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:m.jsx(zZ,{requestId:t})}),m.jsx(zb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:m.jsx(ZZ,{grantNumber:r})}),m.jsx(zb,{eventKey:"history",title:"History",children:m.jsx(K4,{requestId:t})})]}),m.jsx(Z4,{grantNumber:r,requestId:t}),m.jsx(q4,{grantNumber:r,requestId:t}),m.jsx(J4,{grantNumber:r,requestId:t,actionId:h?h.actionId:null}),m.jsx(UZ,{grantNumber:r,requestId:t}),m.jsx(HZ,{grantNumber:r,requestId:t})]})}function JZ({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleDeleteModal:u}=ri(t,r);if(!i)return;const{actions:d,allowedActions:v}=i,h=[];v&&(("Extension"in v||"Renewal"in v)&&h.push(["Extend End Date",C=>{C.preventDefault(),l()},"calendar-plus"]),"Final Report"in v&&h.push(["Submit Final Report",`${Yt.routes.request_action_path(t,"new")}?action_type=Final+Report`,"file-earmark-check"]));const y=d.find(C=>C.isRequest);if(y){const C=y.allowedOperations||[];C.includes("Edit")&&h.push(["Edit",Yt.routes.edit_request_path(i.requestId),"pencil"]),C.includes("Delete")&&h.push(["Delete",x=>{x.preventDefault(),u(y.actionId)},"trash","danger"])}return h.map(([C,x,w,R])=>{const j=m.jsxs(m.Fragment,{children:[" ",w&&m.jsx("i",{className:`bi bi-${w} me-1`}),C]});return typeof x=="function"?m.jsx("button",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,onClick:x,children:j},C):m.jsx("a",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,href:x,children:j},C)})}function QZ({open:t=!1,grantNumber:r,title:i,status:l}){const[u,d]=k.useState(t),{project:v,setRequest:h}=Ji(r,!u&&i&&l&&!0),y=`project-${r}`;let C=null;if(u&&v)if(v.error)C=m.jsx(Mr,{color:"danger",children:v.error});else{let x;const w=v.requestsList.map(R=>(R.requestId==v.selectedRequestId&&(x=R),m.jsx("option",{value:R.requestId,children:pR(R)},R.requestId)));C=m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"d-flex",children:[m.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:R=>h(parseInt(R.target.value,10)),value:v.selectedRequestId,disabled:w.length<2,children:w}),m.jsx(JZ,{requestId:v.selectedRequestId,grantNumber:r})]}),x?m.jsx(qZ,{...x,grantNumber:r}):null]})}return m.jsxs("div",{className:`${GI.project} card mb-3`,children:[m.jsxs("div",{className:`card-header d-flex justify-content-between ${u?"":"border-bottom-0"}`,children:[m.jsx("button",{"aria-expanded":u,"aria-controls":y,className:GI.expand,onClick:()=>d(!u),children:m.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[m.jsx("i",{className:`bi bi-caret-${u?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||v.title]})}),m.jsx(qp,{status:l||v.status})]}),m.jsx("div",{className:"card-body",id:y,hidden:!u||!v,children:C})]})}function KZ({username:t,openFirst:r=1}){const{error:i,loading:l,projects:u}=wG(t);return l?m.jsx(eh,{}):i?m.jsxs(Mr,{color:"danger",children:[i," ",m.jsx("a",{href:"#",onClick:d=>{d.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]}):u.length?u.map((d,v)=>m.jsx(QZ,{open:v<r,...d},d.grantNumber)):m.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[m.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),m.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[m.jsxs("a",{className:"btn btn-primary w-25",href:Yt.routes.project_types_path(),children:[m.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),m.jsxs("a",{className:"btn btn-secondary w-25",href:Yt.routes.get_your_first_project_path(),children:[m.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",m.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),m.jsxs("a",{className:"btn btn-primary w-25",href:Yt.routes.how_to_path(),children:[m.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]})}const sM={apiUrl:null,listIsFiltered:!1,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,singleEntry:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:"",requestNumber:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},e6=Di("projectsBrowser/initApp",async(t,{getState:r,dispatch:i})=>{const l=window.location.search,u=new URLSearchParams(l);u.has("_requestNumber")&&(i(Qw({name:"requestNumber",value:u.get("_requestNumber")})),i(uM(!0))),await i(Jw()),await i(Xd()),i(t6())}),t6=Di("projectsBrowser/filterCleanup",async(t,{getState:r,dispatch:i})=>{const u=r().projectsBrowser.typeLists;i(lM({...u,orgs:["-- ALL --"].concat(u.orgs)}))}),Jw=Di("projectsBrowser/getFilters",async(t,{getState:r,dispatch:i})=>{const u=`${r().projectsBrowser.apiUrl}?filters=1`,v=await(await fetch(u)).json();i(lM(v.filters))}),Xd=Di("projectsBrowser/getProjects",async(t,{getState:r,dispatch:i})=>{const l=r().projectsBrowser,u=l.filters,d=l.typeLists,v=d.fosTypes.filter(x=>x.checked);let h=`${l.apiUrl}?page=${l.pageData.current_page}`;return u.requestNumber!=""?(h+=`&request_number=${u.requestNumber}`,i(oj(!0))):(i(oj(!1)),v.length!=d.fosTypes.length&&(h+=`&fos=${v.map(x=>x.fosTypeId).join(",")}`),u.org!=""&&u.org!="-- ALL --"&&(h+=`&org=${encodeURIComponent(u.org)}`),u.allocationType!=""&&(h+=`&allocation_type=${u.allocationType}`),u.resource!=""&&(h+=`&resources=${u.resource}`)),await(await fetch(h)).json()}),s1=z0({name:"projectsBrowser",initialState:sM,reducers:{resetFilters:t=>{t.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},s1.caseReducers.toggleAllFos(t)},setApiUrl:(t,{payload:r})=>{t.apiUrl=r},setShowPagination:(t,{payload:r})=>{t.showPagination=r},setTypeLists:(t,{payload:r})=>{t.typeLists=r},toggleAllFos:t=>{t.typeLists.fosTypes.forEach(r=>r.checked=!t.filters.allFosToggled),t.filters.allFosToggled=!t.filters.allFosToggled},toggleFos:(t,{payload:r})=>{t.typeLists.fosTypes.forEach(i=>{i.fosTypeId==r.fosTypeId&&(i.checked=!i.checked)}),t.typeLists.fosTypes.filter(i=>i.checked).length!=t.typeLists.fosTypes.length?t.filters.allFosToggled=!1:t.filters.allFosToggled=!0},toggleListFiltered:(t,{payload:r})=>{t.listIsFiltered=r},toggleSingleEntry:(t,{payload:r})=>{t.singleEntry=r},updateFilter:(t,{payload:r})=>{t.filters[r.name]=r.value},updatePageData:(t,{payload:r})=>{r.current_page&&(t.pageData.current_page=r.current_page),r.last_page&&(t.pageData.last_page=r.last_page)}},extraReducers:t=>{t.addCase(Xd.pending,r=>{r.projectsLoaded=!1}).addCase(Xd.fulfilled,(r,i)=>{const l=i.payload;r.projectsLoaded=!0,r.projects=l.projects,l.pages!=r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,r.pageData.last_page=l.pages}).addCase(Xd.rejected,(r,i)=>{console.log(i.error)}).addCase(Jw.pending,r=>{r.filtersLoaded=!1}).addCase(Jw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:n6,setApiUrl:zq,setShowPagination:ij,setTypeLists:lM,toggleAllFos:r6,toggleFos:a6,toggleListFiltered:uM,toggleSingleEntry:oj,updateFilter:Qw,updatePageData:Kw}=s1.actions,i6=t=>t.projectsBrowser.filters,o6=t=>t.projectsBrowser.filtersLoaded,s6=t=>t.projectsBrowser.listIsFiltered,l6=t=>t.projectsBrowser.singleEntry,u6=t=>t.projectsBrowser.projectsLoaded,c6=t=>t.projectsBrowser.pageData,d6=t=>t.projectsBrowser.projects,f6=t=>t.projectsBrowser.filtersLoaded&&t.projectsBrowser.projectsLoaded&&t.projectsBrowser.pageData.last_page>1,p6=t=>t.projectsBrowser.typeLists,h6=s1.reducer;const v6=()=>{const t=No(),r=Jn(i6),i=Jn(p6),l=Jn(s6),u=i.orgs.map(_=>({label:_,value:_})),d=k.useRef(),[v,h]=k.useState(null),y={height:"200px",overflowX:"auto",padding:"2px"},C=_=>{t(Qw({name:_.target.name,value:_.target.value}))},x=()=>{window.scrollTo(0,0),R(!0),t(ij(!1)),t(Kw({current_page:1})),t(Xd())},w=()=>{h(null),t(ij(!1)),t(Kw({current_page:1})),t(n6()),l&&(window.scrollTo(0,0),t(Xd()),R(!1))},R=_=>{t(uM(_))},j=_=>{h(_),t(Qw({name:"org",value:_.value}))},I=()=>r.org==""&&r.allocationType==""&&r.allFosToggled&&r.resource==""&&r.requestNumber=="";return m.jsx("div",{className:"row sticky-top mb-2",children:m.jsxs("div",{className:"col",children:[m.jsx("h3",{className:"mb-2",children:"Filters"}),m.jsx("h5",{className:"mb-1",children:"Field of Science"}),m.jsxs("div",{className:"border mb-3",style:y,children:[m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:r.allFosToggled,onChange:()=>{t(r6())}}),m.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(_=>m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:"checkbox",value:_.fosTypeId,id:`fos_${_.fosTypeId}`,checked:_.checked,onChange:()=>t(a6(_))}),m.jsx("label",{className:"form-check-label",htmlFor:`fos_${_.fosTypeId}`,children:_.fosName})]},`fos_${_.fosTypeId}`))]}),m.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),m.jsx("div",{className:"mb-3",children:m.jsx(o1,{options:u,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:d,closeMenuOnSelect:!0,onChange:j,value:v,"aria-labelledby":"org_select_label"},"org_select")}),m.jsx("h5",{id:"project_type_label",className:"mb-1",children:m.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),m.jsx("div",{className:"mb-3",children:m.jsxs("select",{name:"allocationType",id:"project_type_select",value:r.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:_=>C(_),children:[m.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((_,A)=>m.jsx("option",{value:_,children:_},`allocation_type_${A}`))]})}),m.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),m.jsx("div",{className:"mb-3",children:m.jsxs("select",{name:"resource",id:"resource_select",value:r.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:_=>C(_),children:[m.jsx("option",{value:"",children:"-- All --"}),i.resources.map((_,A)=>m.jsx("option",{value:_.resourceId,children:_.resourceName},`resource_${A}`))]})}),m.jsx("h5",{id:"request_number_label",className:"mb-1",children:"Request Number"}),m.jsx("div",{className:"mb-3",children:m.jsx("input",{type:"text",className:"form-control",value:r.requestNumber,name:"requestNumber",id:"requestNumber","aria-labelledby":"request_number_label",onChange:_=>C(_)})}),m.jsxs("div",{className:"mt-2",children:[m.jsx("button",{className:"btn btn-primary me-2",onClick:x,children:"Submit"}),m.jsx("button",{className:"btn btn-secondary",disabled:I(),onClick:w,children:"Reset"})]})]})})};const m6=({project:t})=>{const r=t.resources,[i,l]=k.useState(!1),d=Jn(l6)?["0","1"]:[],v=w=>{let R=w.units?w.units:w.resourceUnits;const j=w.allocation?w.allocation:w.amount;if(R=="[Yes = 1, No = 0]"||R=="Yes / No")return j=="1.0"?"Yes":"No";{let I="0";return parseInt(j)&&(I=parseInt(j).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),R=="ACCESS Credits"&&(R=m.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),R=="Dollars"?`$${I}`:m.jsxs(m.Fragment,{children:[I," ",R]})}},h=()=>{const{origin:w,pathname:R}=window.location,j=`${w}${R}?_requestNumber=${t.requestNumber}`;navigator.clipboard.writeText(j),setTimeout(()=>l(!1),2e3)},y=()=>t.requestNumber&&t.requestNumber!=""?`(${t.requestNumber})`:m.jsx(m.Fragment,{}),C=m.jsx(J0,{id:"link-tooltip",children:"Link Copied!"}),x=()=>{if(y()){const w={background:"none",border:"none",color:"#fff",fontSize:"24px"};return m.jsx(zR,{placement:"left",trigger:"click",defaultShow:i,show:i,onToggle:()=>l(!i),overlay:C,children:m.jsx("button",{onClick:h,style:w,children:m.jsx("i",{className:"bi bi-link-45deg",children:m.jsx("div",{className:"d-none",children:"Direct link to project"})})})})}return m.jsx(m.Fragment,{})};return m.jsxs("div",{className:"card mb-4",children:[m.jsx("div",{className:"card-header bg-primary text-white",children:m.jsxs("div",{className:"d-flex justify-content-between",children:[m.jsxs("div",{children:[m.jsxs("span",{className:"fw-bold",children:[y()," ",t.requestTitle]})," ",m.jsx("br",{}),m.jsxs("span",{className:"fst-italic",children:[t.pi," ",m.jsxs("small",{children:[" (",t.piInstitution,") "]})]})]}),m.jsx("div",{children:x()})]})}),m.jsxs("div",{className:"card-body",children:[m.jsxs("div",{className:"row fw-bold border-bottom",children:[m.jsx("div",{className:"col",children:m.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),m.jsx("div",{className:"col",children:m.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),m.jsx("div",{className:"col",children:m.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col",children:t.fos}),m.jsx("div",{className:"col",children:t.allocationType}),m.jsxs("div",{className:"col",children:[t.beginDate," to ",t.endDate]})]}),m.jsxs(us,{defaultActiveKey:d,activeKey:d,flush:!0,className:"mt-3 mb-1",alwaysOpen:!0,children:[m.jsxs(us.Item,{eventKey:"0",children:[m.jsx(us.Header,{children:"Resources"}),m.jsx(us.Body,{children:m.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("td",{children:m.jsx("span",{className:"m-0 p-0",children:"Resource"})}),m.jsx("td",{children:m.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),m.jsx("tbody",{children:r.map((w,R)=>m.jsxs("tr",{children:[m.jsx("td",{children:w.resourceName}),m.jsx("td",{style:{whiteSpace:"nowrap"},children:v(w)})]},`resource_${t.requestId}_${R}`))})]})})]}),m.jsxs(us.Item,{eventKey:"1",children:[m.jsx(us.Header,{children:"Abstract"}),m.jsx(us.Body,{children:m.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:t.abstract})})]})]})]})]})},g6=()=>{const t=Jn(d6);return t.length==0?m.jsx("div",{children:"No Projects Found"}):m.jsx("div",{children:t.map((r,i)=>m.jsx(m6,{project:r},`project_${i}`))})};const sj=()=>{const t=No(),r=Jn(c6),[i,l]=k.useState([]),[u,d]=k.useState("0"),v=Array.from({length:r.last_page},(I,_)=>_),h=10,y={width:"50px",textAlign:"center"};k.useEffect(()=>{w()},[r]);const C=I=>{const _=parseInt(I);t(Kw({current_page:I})),t(Xd(_))},x=I=>(event.preventDefault(),d("0"),C(I),!1),w=()=>{const I=[];if(r.last_page>h)if(r.current_page>4){I.push(1),I.push("spacer");for(var _=1;_>0;_--)r.current_page-_>1&&I.push(r.current_page-_);I.push(["current",r.current_page]);for(var _=1;_<2;_++)r.current_page+_<=r.last_page&&I.push(r.current_page+_);r.last_page-r.current_page>1&&(I.push("spacer"),I.push(r.last_page))}else[1,2,3,4,5].forEach(A=>{A==r.current_page?I.push(["current",A]):I.push(A)}),I.push("spacer"),I.push(r.last_page);else for(var _=1;_<=r.last_page;_++)_==r.current_page?I.push(["current",_]):I.push(_);l(I)},R=I=>{let _="";return typeof I=="object"?[I,_]=I:_=I,I=="spacer"?m.jsx("li",{className:"page-item disabled",children:m.jsx("span",{className:"page-link",style:y,children:". . ."})}):I=="current"?m.jsx("li",{className:"page-item active","aria-current":"page",children:m.jsx("span",{className:"page-link",style:y,children:_})}):m.jsx("li",{className:"page-item",children:m.jsx("button",{className:"page-link",style:y,onClick:()=>C(I),children:_})})},j=()=>m.jsx("li",{className:"page-item",children:m.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:u,onChange:I=>x(I.target.value),children:[m.jsx("option",{value:"0",children:"Go To"}),v.map(I=>m.jsx("option",{value:I+1,children:I+1},`page_option_${I}`))]})});return m.jsx("div",{children:m.jsx("nav",{"aria-label":"Pages for the table",children:m.jsxs("ul",{className:"pagination",children:[m.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:m.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>C(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((I,_)=>m.jsx(pr.Fragment,{children:R(I)},`page_${_}`)),r.last_page>h?j():"",m.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:m.jsx("button",{className:"page-link",style:y,onClick:()=>C(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},y6=({api_url:t})=>{const r=No(),i=Jn(u6),l=Jn(o6),u=Jn(f6),d=m.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(e6())},[]),m.jsx("div",{className:"container-fluid",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-3",children:m.jsx(v6,{})}),m.jsxs("div",{className:"col-sm-9",children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(sj,{}):""})}),m.jsx("div",{className:"row",id:"projectListRow",children:m.jsx("div",{className:"col",children:i&&l?m.jsx(g6,{}):d})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(sj,{scroll:"projects_browser_app"}):""})})]})]})})},b6=t=>t.publications_store.publication,C6=t=>t.publications_store.publication.doi,x6=t=>t.publications_store.publication_types,cM=t=>t.publications_store.publication.authors,S6=t=>t.publications_store.tag_categories,E6=t=>t.publications_store.projects,w6=t=>t.publications_store.publication.tags,R6=t=>t.publications_store.errors,dM=t=>t.publications_store.data_loaded,fM=t=>t.publications_store.show_saved,l1=t=>t.publications_store.saving,T6=t=>t.publications_store.modal,pM=t=>t.publications_store.form_valid,hM=t=>!l1(t)&&dM(t)&&pM(t)&&vM(t)&&t.publications_store.projects.filter(r=>r.selected).length>0,vM=t=>{const r=cM(t);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},mM=t=>({type:"UPDATE_PUBLICATION",payload:t}),_6=t=>({type:"UPDATE_FIELD",payload:t}),eR=t=>({type:"CHANGE_PUB_TYPE",payload:t}),N6=t=>({type:"SET_PUBLICATION",payload:t}),I6=()=>({type:"ADD_AUTHOR"}),A6=t=>({type:"UPDATE_AUTHOR",payload:t}),j6=t=>({type:"TOGGLE_REQUEST",payload:t}),km=t=>({type:"UPDATE_ERRORS",payload:t}),gM=t=>({type:"HIDE_ERROR",payload:t}),O6=t=>({type:"UPDATE_SELECTED_TAGS",payload:t}),D6=t=>({type:"DELETE_AUTHOR",payload:t}),k6=t=>({type:"DATA_LOADED",payload:t}),yM=t=>({type:"UPDATE_SHOW_SAVED",payload:t}),M6=()=>({type:"RESET_STATE"}),uw=t=>({type:"UPDATE_SAVING",payload:t}),L6=t=>({type:"SET_FORM_VALID",payload:t}),bM=t=>({type:"SET_GRANT_NUMBER",payload:t}),P6=t=>({type:"ADD_PROJECT",payload:t}),F6=(t,r,i)=>{let l=!0;const u=[];for(const v of r)t[v]||(l=!1,u.push(v));const d=t.authors||[];for(const v of d)for(const h of i)v[h]||(l=!1,u.includes(h)||u.push(h));return{formValid:l,missingFields:u}},V6=t=>t.length>0?m.jsxs("div",{role:"alert",children:[m.jsx("p",{children:"Please provide the following information before submitting:"}),m.jsx("ul",{children:t.map(r=>m.jsx("li",{children:B6(r)},r))})]}):null;function B6(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const z6=()=>async(t,r)=>{const i=r().publications_store.publication.doi,l=encodeURIComponent(i).replaceAll(".","%2E"),u="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${l}`).then(d=>d.json()).then(d=>{if(d.title!=""){let v=r().publications_store.publication_types.find(h=>h.citation_style_type==d.type);t(eR(v?v.publication_type:"Other")),t(N6(d))}else t(km(u))},d=>{t(km(u))})},$6=()=>async(t,r)=>{const i=r().publications_store.grant_number,l=Yt.routes.publications_find_project_path();await fetch(`${l}?grant_number=${i}`).then(u=>u.json()).then(u=>{t(P6(u)),t(bM(""))},()=>{t(km("Unable to find a project with this grant number."))})},CM=()=>async t=>{const r=/^\/requests/.test(window.location.pathname)?Yt.routes.publication_path("new.json"):window.location.href+".json";await fetch(r).then(i=>i.json()).then(i=>{t(k6(i))})},xM=()=>async(t,r)=>{const i=r().publications_store,l=i.projects.filter(R=>R.selected),u=Object.keys(i.selected_tags).map(R=>i.selected_tags[R]).flat(),d={...i.publication},v=i.errors,{formValid:h,missingFields:y}=F6(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!h){v.length>0&&Array.from(v).forEach(j=>{t(gM(j.id))});const R=V6(y);t(km(R));return}const C={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(R=>({...R,order:0})),tags:u,projects:l};let x,w;d.publication_id?(x=Yt.routes.publication_path(d.publication_id),w="PATCH"):(x=Yt.routes.publications_path(),w="POST"),t(uw(!0)),await fetch(x,{method:w,headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(R=>{i.redirect?window.location.href=Yt.routes.publications_path():(d.publication_id||(t(M6()),t(CM())),t(yM(!0)),t(uw(!1)))},()=>{t(uw(!1)),t(km("There was an error saving this publication."))})},U6=({doi:t,updatePublication:r,doiLookup:i})=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),m.jsxs("div",{className:"input-group",children:[m.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:t,onChange:l=>r(l.target.value)}),m.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>i(),children:"Lookup Publication"})]})]})}),H6=t=>({doi:C6(t)}),G6=t=>({updatePublication:r=>t(mM({key:"doi",value:r})),doiLookup:()=>t(z6())}),W6=ps(H6,G6)(U6),X6=({author:t,authorKey:r,updateAuthor:i,deleteAuthor:l})=>{const u=h=>{i({key:h.target.name,value:h.target.value,idx:r})},d=h=>m.jsx("td",{children:m.jsx("input",{type:"text",className:"form-control",name:h,id:h,value:t[h],onChange:y=>u(y)})},`field_${h}`),v=["first_name","last_name","affiliation"];return m.jsxs("tr",{children:[v.map(h=>d(h)),m.jsx("td",{children:r!==0&&m.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>l(r),children:m.jsx("i",{className:"bi bi-trash"})})})]})},Y6=t=>({updateAuthor:r=>t(A6(r)),deleteAuthor:r=>t(D6(r))}),lj=ps(null,Y6)(X6),Z6=({authors:t,addAuthor:r,authors_exist:i})=>{const l=t.length===0,u=()=>i?"":m.jsx("div",{className:"alert alert-danger",children:"You must add at least one author and each author must have a first and last name"});return m.jsxs("div",{children:[u(),m.jsxs("table",{className:"table",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{children:"First Name"}),m.jsx("th",{children:"Last Name"}),m.jsx("th",{children:"Affiliation"}),m.jsx("th",{})]})}),m.jsxs("tbody",{children:[t.map((d,v)=>m.jsx(lj,{author:d,authorKey:v},`author_${v}`)),l&&m.jsx(lj,{author:r()})]})]}),m.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},q6=t=>({authors:cM(t),authors_exist:vM(t)}),J6=t=>({addAuthor:()=>t(I6())}),Q6=ps(q6,J6)(Z6),K6=({category:t,publication_tags:r,updateSelectedTags:i,index:l})=>{const u=k.useRef(null),d=()=>{const h=r.filter(y=>y.label==t.label)[0];return h?h.options:[]},v=h=>{i({category:t.label,tags:h})};return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"fw-bold mb-1",children:t.label}),m.jsx("div",{className:"mb-3",children:m.jsx(o1,{classNames:{control:h=>h.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:d(),options:t.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${l}`,inputId:`tags_${l}`,ref:u,closeMenuOnSelect:!1,onChange:v})})]})},e8=t=>({updateSelectedTags:r=>t(O6(r))}),t8=t=>({publication_tags:w6(t)}),n8=ps(t8,e8)(K6),r8=({projects:t,toggleProject:r})=>{const i=u=>`list-group-item list-group-item-action clickable ${u.selected?"list-group-item-success":""}`,l=()=>t.filter(u=>u.selected).length>0;return m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[l()?"":m.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),m.jsx("div",{className:"list-group",children:t.map((u,d)=>m.jsxs("div",{className:i(u),onClick:()=>r(d),children:[u.grant_number,": ",u.title]},`project_${u.grant_number}`))})]})})},a8=t=>({projects:E6(t)}),i8=t=>({toggleProject:r=>t(j6(r))}),o8=ps(a8,i8)(r8),s8=({grant_number:t,setGrantNumber:r,grantSearch:i})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",m.jsxs("div",{className:"input-group mt-1",children:[m.jsx("input",{type:"text",className:"form-control",value:t,onChange:l=>r(l.target.value),placeholder:"Enter a grant number"}),m.jsx("button",{className:"btn btn-primary",onClick:()=>i(),children:"Find Project"})]})]})}),l8=t=>({setGrantNumber:r=>t(bM(r)),grantSearch:()=>t($6())}),u8=t=>({grant_number:t.publications_store.grant_number}),c8=ps(u8,l8)(s8),d8=({publication:t,updateField:r,publication_types:i,changePubType:l,updatePublication:u,tag_categories:d,savePublication:v,modal:h,save_enabled:y,setFormValid:C,form_valid:x})=>{const w=P=>{P.target.value.trim()==""?C(!1):C(!0),u({key:"title",value:P.target.value})},R=()=>t.fields.map((P,F)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:`field_${P.csl_field_name}`,className:"form-label",children:P.name}),m.jsx("input",{type:"text",className:"form-control",name:`field_${P.csl_field_name}`,id:`field_${P.csl_field_name}`,value:P.field_value,onChange:U=>r({index:F,value:U.target.value})})]})},`field_${P.csl_field_name}`)),j=()=>{const P=new Date().getFullYear()+2;let F=1980;const U=[];for(;F<=P;)U.push(F++);const B=["January","February","March","April","May","June","July","August","September","October","November","December"],z=m.jsx("i",{className:"bi bi-asterisk text-danger"});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",z]}),m.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${x?"":"is-invalid"}`,value:t.title,onChange:X=>w(X)})]})}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),m.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:t.publication_year,onChange:X=>{u({key:"publication_year",value:X.target.value})},children:U.map(X=>m.jsx("option",{value:X,children:X},`year_${X}`))})]})}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),m.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:t.publication_month,onChange:X=>{u({key:"publication_month",value:X.target.value})},children:B.map((X,Z)=>m.jsx("option",{value:Z+1,children:X},`month_${Z}`))})]})})]})},I=m.jsxs("div",{className:"card",children:[m.jsx("div",{className:"card-header",children:m.jsx("h2",{children:"Publication Information"})}),m.jsxs("div",{className:"card-body",children:[m.jsx("p",{className:"mb-2",children:'Enter information about this publication below. If you have a DOI, you may use the "Lookup Publication" button to attempt to find this information automatically.'}),m.jsx(W6,{}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),m.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:t.publication_type,onChange:P=>l(P.target.value),children:i.map(P=>m.jsx("option",{value:P.publication_type,children:P.publication_type},`pub_type_${P.type_id}`))})]})}),j(),R()]})]}),_=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Authors"}),m.jsxs(Up,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,m.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),m.jsx("div",{className:"card-body",children:m.jsx(Q6,{})})]}),A=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Tags"}),m.jsx(Up,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),m.jsx("div",{className:"card-body",children:d.map((P,F)=>m.jsx(n8,{index:F,category:P},`tc_${F}`))})]}),L=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Associated Projects"}),m.jsx(Up,{children:"Click/Tap each project that this publication is related to."})]}),m.jsxs("div",{className:"card-body",children:[m.jsx(o8,{}),m.jsx("hr",{}),m.jsx(c8,{})]})]});return m.jsxs(m.Fragment,{children:[I,_,A,L,h?null:m.jsx("p",{className:"mt-3",children:m.jsx("button",{onClick:()=>v(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},f8=t=>({publication:b6(t),publication_types:x6(t),tag_categories:S6(t),saving:l1(t),modal:T6(t),save_enabled:hM(t),form_valid:pM(t)}),p8=t=>({updateField:r=>t(_6(r)),changePubType:r=>t(eR(r)),updatePublication:r=>t(mM(r)),savePublication:()=>t(xM()),setFormValid:r=>t(L6(r))}),h8=ps(f8,p8)(d8),v8=({errors:t,hideError:r})=>m.jsx(m.Fragment,{children:t.map(i=>m.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[i.message,m.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(i.id)})]},`err_${i.id}`))}),m8=t=>({errors:R6(t)}),g8=t=>({hideError:r=>t(gM(r))}),y8=ps(m8,g8)(v8),b8=({show_saved:t,updateShowSaved:r})=>{const i=m.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",m.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(!1)})]});return t?i:m.jsx(m.Fragment,{})},C8=t=>({show_saved:fM(t)}),x8=t=>({updateShowSaved:r=>t(yM(r))}),S8=ps(C8,x8)(b8),E8=({getData:t,data_loaded:r})=>(k.useEffect(()=>{t()},[]),m.jsxs(m.Fragment,{children:[m.jsx(S8,{}),m.jsx(y8,{}),r?m.jsx(h8,{}):m.jsx(eh,{})]})),w8=t=>({data_loaded:dM(t)}),R8=t=>({getData:()=>t(CM())}),SM=ps(w8,R8)(E8),T8=({saving:t,savePublication:r,showSaved:i,updatePublications:l,save_enabled:u})=>{const[d,v]=k.useState(!1);return k.useEffect(()=>{!t&&i&&l()},[t,i]),m.jsxs(m.Fragment,{children:[m.jsxs(Ln,{size:"xl",show:d,onHide:()=>v(!1),scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Add Publication"})}),m.jsx(Ln.Body,{children:m.jsx(SM,{})}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>v(!1),children:"Cancel"}),m.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{r(),v(!1)},children:"Save Publication"})]})})]}),m.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>v(!0),children:"Add a New Publication"})]})},_8=t=>({saving:l1(t),showSaved:fM(t),save_enabled:hM(t)}),N8=t=>({savePublication:()=>t(xM())}),I8=ps(_8,N8)(T8),A8=({usernames:t=[],publication_ids:r=[]})=>{const[i,l]=k.useState(t),[u,d]=k.useState(r),[v,h]=k.useState([]),y=k.useRef(i),C=_=>{y.current=_,l(_)},x=async()=>{const A=await(await fetch(Yt.routes.search_publications_path({usernames:i}))).json();h(A)};k.useEffect(()=>{x()},[i]),k.useEffect(()=>{addEventListener("requestAddRole",_=>C([...y.current,_.detail.username])),addEventListener("requestRemoveRole",_=>C(y.current.filter(A=>A!=_.detail.username)))},[]);let w=!1,R=!1;const j=v.map(_=>{const A=u.includes(_.publication_id);w=w||A,R=R||!A;const L=new Date(_.publication_year,_.publication_month-1);return m.jsxs("tr",{children:[m.jsx("td",{children:m.jsx("input",{type:"checkbox",name:"publication_ids[]",value:_.publication_id,checked:A,onChange:()=>d(A?u.filter(P=>P!=_.publication_id):[...u,_.publication_id])})}),m.jsx("td",{children:_.title}),m.jsx("td",{children:_.authors.map(P=>`${P.first_name} ${P.last_name}`).join(", ")}),m.jsx("td",{children:_.publication_type}),m.jsxs("td",{children:[L.toLocaleString("default",{month:"short"})," ",_.publication_year]})]},_.publication_id)}),I=`${R?"Select":"Deselect"} all`;return m.jsxs("div",{className:"publications-select",children:[m.jsxs("table",{className:"table",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{children:m.jsx("input",{type:"checkbox",value:"","aria-label":I,title:I,checked:w&&!R,onChange:()=>d(R?v.map(_=>_.publication_id):[]),ref:_=>{_&&(_.indeterminate=w&&R)}})}),m.jsx("th",{children:"Title"}),m.jsx("th",{children:"Authors"}),m.jsx("th",{children:"Type"}),m.jsx("th",{children:"Date"})]})}),m.jsx("tbody",{children:j})]}),m.jsx(I8,{updatePublications:x})]})},j8=()=>`${Math.random().toString(36).slice(2)}`,tR=document.querySelector("#publications-react"),O8=tR?tR.dataset:{},uj={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:O8.redirect||!1,modal:tR==null,form_valid:!1,grant_number:""},D8=(t=uj,r)=>{const{type:i,payload:l}=r;switch(i){case"UPDATE_FIELD":return Eo(t,d=>(d.publication.fields[l.index].field_value=l.value,d));case"CHANGE_PUB_TYPE":return Eo(t,d=>{let v=d.publication_types.find(h=>h.publication_type==l).fields;return v.forEach(h=>{const y=d.publication.fields.find(C=>C.csl_field_name==h.csl_field_name);y&&(h.value=y.value)}),d.publication.publication_type=l,d.publication.fields=v,d});case"UPDATE_PUBLICATION":return{...t,publication:{...t.publication,[l.key]:l.value}};case"SET_PUBLICATION":return Eo(t,d=>(d.publication.fields.forEach(v=>{v.field_value=l[v.csl_field_name]}),Object.keys(d.publication).forEach(v=>{l[v]&&(d.publication[v]=l[v])}),d.form_valid=l.title.trim()!="",d));case"ADD_AUTHOR":{const u={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return Eo(t,v=>{v.publication.authors.push(u)})}case"UPDATE_AUTHOR":return Eo(t,d=>{d.publication.authors[l.idx][l.key]=l.value});case"TOGGLE_TAG":return Eo(t,d=>{let v=d.tag_categories.find(h=>h.publication_tags_category_id==l.publication_tags_category_id);v.tags[l.idx].selected=!v.tags[l.idx].selected});case"TOGGLE_REQUEST":return Eo(t,d=>(d.projects[l].selected=!d.projects[l].selected,d));case"UPDATE_ERRORS":{const u={id:j8(),message:l};return{...t,errors:[...t.errors,u]}}case"HIDE_ERROR":{const u=t.errors.filter(d=>d.id!=l);return{...t,errors:u}}case"UPDATE_SELECTED_TAGS":return Eo(t,d=>{const v=l.tags.map(h=>h.value);return d.selected_tags[l.category]=v,d});case"DELETE_AUTHOR":return Eo(t,d=>(d.publication.authors.splice(l,1),d));case"DATA_LOADED":return Eo(t,d=>(d.publication=l.publication,d.form_valid=l.publication.title.trim()!="",d.publication.authors.forEach(v=>{v.affiliation||(v.affiliation="")}),d.publication_types=l.publication_types,d.tag_categories=l.tag_categories,d.projects=l.publication.projects,l.publication.tags.forEach(v=>d.selected_tags[v.label]=v.options.map(h=>h.value)),d.data_loaded=!0,d));case"UPDATE_SHOW_SAVED":return{...t,show_saved:l};case"UPDATE_SAVING":return{...t,saving:l};case"RESET_STATE":return uj;case"SET_FORM_VALID":return{...t,form_valid:l};case"SET_GRANT_NUMBER":return{...t,grant_number:l};case"ADD_PROJECT":return{...t,projects:[...t.projects,l]};default:return t}},k8={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},c0=Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(cj(!1));let i=[];t.catalogSources?i=t.catalogSources:i.push({...t,catalogLabel:"Default"}),t.onRamps&&i.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const l=await Promise.all(i.map(async u=>{const v=await(await fetch(u.apiUrl)).json();return{...u,data:v}}));r(F8({data:l,params:t})),r(cj(!0))});Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(B8(t)),r(wM())});const M8=t=>{const r=[],i=t.filter(l=>l.features.filter(u=>u.selected).length>0);return t.forEach(l=>{l.features.forEach(u=>{u.selected&&r.push(u.featureId)})}),i.map(l=>({...l,features:l.features.filter(u=>u.selected)}))},L8=t=>{const r={},i={};let l={};return t.forEach(d=>{r[d.catalogLabel]={...d,resourceIds:[],selected:!1,catalogId:d.catalogLabel.replace(/[^(A-z)]/,"")},delete r[d.catalogLabel].data,d.data.forEach(v=>{if(nR(d.allowedResources,d.excludedResources,v.resourceName)){const{categories:h,formattedResource:y}=P8(d,v,l);i[v.resourceId]=y,r[d.catalogLabel].resourceIds.push(v.resourceId),l=h}})}),{resources:Object.keys(i).map(d=>i[d]),catalogs:r,categories:l}},nR=(t,r,i)=>!t&&!r||t&&t.length==0&&r&&r.length==0?!0:t&&t.length>0?t.find(l=>l==i):r&&r.length>0?!r.find(l=>l==i):!0,P8=(t,r,i)=>{const l=[];let u="";r.featureCategories.filter(h=>h.categoryIsFilter).forEach(h=>{const y=h.categoryId;h.categoryName=="ACCESS Resource Grouping"?u=h.features[0].name:(!i[y]&&nR(t.allowedCategories,t.excludedCategories,h.categoryName)&&(i[y]={categoryId:y,categoryName:h.categoryName,categoryDescription:h.categoryDescription,features:{}}),h.features.forEach(C=>{const x={featureId:C.featureId,name:C.name,description:C.description,categoryId:y,selected:!1},w=nR(t.allowedFilters,t.excludedFilters,x.name);w&&l.push(x),i[y]&&w&&!i[y].features[C.featureId]&&(i[y].features[C.featureId]=x)}))});const d=l.map(h=>h.name).sort((h,y)=>h>y);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:d,featureIds:l.map(h=>h.featureId),sortCategory:u},categories:i}},EM=z0({name:"resourceCatalog",initialState:k8,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,{resources:l,catalogs:u,categories:d}=L8(i);t.catalogs=u,t.onRamps=r.params.onRamps;for(const v in d){const h=d[v],y=[];for(const C in h.features)y.push(h.features[C]);t.filters.push({...h,features:y.sort((C,x)=>C.name>x.name)})}t.filters=t.filters.sort((v,h)=>v.categoryName.localeCompare(h.categoryName)),t.resources=l.sort((v,h)=>v.resourceName.localeCompare(h.resourceName)).sort((v,h)=>t.resourceSorting[v.sortCategory]>t.resourceSorting[h.sortCategory]),t.filteredResources=[...t.resources],t.resourcesLoaded=!0},resetFilters:t=>{t.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),t.filteredResources=[...t.resources]},setResourcesLoaded:(t,{payload:r})=>{t.resourcesLoaded=r},toggleCatalog:(t,{payload:r})=>{const{catalog:i,selected:l}=r;t.catalogs[i.catalogLabel].selected=l},toggleFilter:(t,{payload:r})=>{if(r){const v=r,y=t.filters.find(C=>C.categoryId==v.categoryId).features.find(C=>C.featureId==v.featureId);y.selected=!y.selected}const i=M8(t.filters);let l=[];if(i.length>0){const v=i.map(h=>h.features.map(y=>y.featureId));t.resources.forEach(h=>{let y=0;v.forEach(C=>{let x=!1;h.featureIds.forEach(w=>{C.indexOf(w)>=0&&(x=!0)}),x&&(y+=1)}),y>=v.length&&l.push(h)})}else l=t.resources;const u=Object.keys(t.catalogs).map(v=>t.catalogs[v]),d=u.filter(v=>v.selected);if(d.length>0&&d.length<u.length){const v=d.map(h=>h.resourceIds).flat();l=l.filter(h=>v.indexOf(h.resourceId)>=0)}t.filteredResources=l}},extraReducers:t=>{t.addCase(c0.pending,r=>{}).addCase(c0.fulfilled,(r,i)=>{}).addCase(c0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:F8,processData:$q,resetFilters:V8,setResourcesLoaded:cj,toggleCatalog:B8,toggleFilter:wM}=EM.actions,RM=t=>t.resourceCatalog.catalogs,z8=t=>t.resourceCatalog.filters,$8=t=>t.resourceCatalog.hasErrors,U8=t=>t.resourceCatalog.resourcesLoaded,H8=t=>t.resourceCatalog.filteredResources,G8=EM.reducer,W8="_access_1yrq0_2",X8="_resourceName_1yrq0_6",Y8="_description_1yrq0_11",Z8="_filterBar_1yrq0_15",q8="_cardBg_1yrq0_20",J8="_active_1yrq0_25",Q8="_plainButton_1yrq0_30",K8="_btnSecondary_1yrq0_40",eq="_filtersHidden_1yrq0_51",tq="_filtersVisible_1yrq0_57",wo={access:W8,resourceName:X8,description:Y8,filterBar:Z8,cardBg:q8,active:J8,plainButton:Q8,btnSecondary:K8,filtersHidden:eq,filtersVisible:tq},nq=({resource:t})=>{const[r,i]=k.useState(!0),l=C=>{const x={"CPU Compute":"cpu-fill","GPU Compute":"gpu-card",Cloud:"cloud-fill","Commercial Cloud":"cloud-fill",Storage:"database-fill","Service / Other":"journal","Innovative / Novel Compute":"pc"};return x[C]?m.jsx("i",{title:C,className:`bi bi-${x[C]} me-2 `},`${t.resourceId}_${x[C]}`):""},u=()=>m.jsxs("span",{className:"float-end",children:[t.features.map(C=>l(C)),t.resourceType]}),d=C=>C.length==0?"":m.jsx(m.Fragment,{children:C.map((x,w)=>m.jsx("span",{className:"badge text-bg-secondary me-2",children:x},`feature_${t.resourceId}_${w}`))}),v=()=>{let C=t.resourceDescription;return C&&C!=""?(wo.plainButton,m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col fw-bold",children:["About ",t.resourceName]})}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col ",children:[m.jsx("div",{className:wo.description,dangerouslySetInnerHTML:{__html:C}}),""]})})]})):""},h=()=>t.recommendedUse&&t.recommendedUse!=""?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),m.jsx("div",{className:"row mb-3",children:m.jsx("div",{className:"col",children:m.jsx("div",{className:wo.description,dangerouslySetInnerHTML:{__html:t.recommendedUse}})})})]}):"",y=()=>wo.cardBg;return m.jsx(m.Fragment,{children:m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"card mb-3",children:[m.jsxs("div",{className:`card-header ${y()}`,children:[m.jsx("span",{className:"",children:t.resourceName}),u()]}),m.jsxs("div",{className:"card-body",children:[m.jsx("div",{className:"row mb-3",children:m.jsx("div",{className:"col",children:d(t.features)})}),h(),v()]}),m.jsx("div",{className:"card-footer",children:m.jsxs("a",{target:"_blank",href:t.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",m.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},rq=({filter:t})=>{const r=No(),i=()=>{r(wM(t))};return m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"form-check",children:[m.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),m.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},aq=({category:t})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("div",{className:"fw-bold mb-1 mt-1",children:m.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>m.jsx(rq,{filter:r},r.featureId))]})}),iq=({onReset:t})=>{const r=No(),i=Jn(RM),l=Jn(z8),u=l.filter(d=>d.features.filter(v=>v.selected).length>0);return Object.keys(i).map(d=>i[d]),m.jsxs(m.Fragment,{children:[l.map(d=>m.jsx(aq,{category:d},d.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(V8()),disabled:u.length==0,children:"Reset Filters"}),m.jsx("button",{className:"btn btn-outline-primary ms-3 mt-2 mb-2",onClick:t,children:"Close Menu"})]})},oq=()=>{const[t,r]=k.useState(!1),i=k.useRef(null),l=()=>{const u=i.current;t?(u.style.height="0px",u.classList.remove(wo.filtersVisible),u.classList.add(wo.filtersHidden)):(u.style.height=u.scrollHeight+"px",u.classList.remove(wo.filtersHidden),u.classList.add(wo.filtersVisible)),r(!t)};return m.jsx("div",{className:wo.filterBar,children:m.jsx("div",{className:"row mb-2",children:m.jsx("div",{className:"col pt-2 pb-2",children:m.jsxs("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:[m.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:l,children:[m.jsx("i",{className:"bi bi-filter"})," Filters"]}),m.jsx("div",{className:`${wo.filtersHidden} pe-2 ps-2`,id:"filtersList",ref:i,children:m.jsx(iq,{onReset:l})})]})})})})},sq=()=>{const t=Jn(H8);return t.length==0?m.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):m.jsx("div",{className:"card shadow",children:m.jsxs("div",{className:"card-body",children:[m.jsx(oq,{}),t.map(r=>m.jsx(nq,{resource:r},r.resourceId))]})})},lq=({baseUrl:t})=>m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col d-flex",children:m.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${t}/access_logo.png`})})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx("h3",{className:"border-bottom",children:"NSF ACCESS Resources"})})}),m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("h4",{children:"Discover the nationwide NSF cyberinfrastructure"}),m.jsx("p",{children:"Need advanced computing and storage options for your research or classroom? The ACCESS program has been established and funded by the U.S. National Science Foundation to help you - the nation's researchers and educators - to use some of the country's most advanced computing systems and services - at no cost to you."}),m.jsx("p",{children:"Thousands of researchers, instructors, and students from institutions large and small use ACCESS-integrated resources every year. With more than 30 resources from more than 15 resource providers, there's bound to be a resource for you, your lab, or your class."}),m.jsx("p",{children:"Explore the resource catalog below - filter the list to discover the resources that have the features or services to accelerate your activities. The System Info button will take you to the resource's documentation for all the details."}),m.jsx("p",{children:'Ready to begin? Click the "Get Your First Project" button and join the ACCESS community!'}),m.jsx("p",{children:m.jsxs("a",{href:"https://allocations.access-ci.org/get-your-first-project",target:"_blank",className:`btn btn-secondary fw-bold ${wo.btnSecondary}`,children:["Get Your First Project ",m.jsx("i",{className:"bi bi-box-arrow-up-right"})]})}),m.jsxs("p",{children:["If you have feedback for ACCESS, please complete our",m.jsx("a",{target:"_blank",href:"https://docs.google.com/forms/d/e/1FAIpQLSdn-SXokNB_5s0r2SA_S9ZIZWZFlVPRD2OHepTH5HY2YND_zw/viewform",children:" Feedback Form"}),".",m.jsx("br",{}),"If you have questions, please",m.jsx("a",{target:"_blank",href:"https://support.access-ci.org/user/login?destination=/open-a-ticket",children:" open a help ticket"}),"."]})]})})]}),uq=({catalogSources:t=[],onRamps:r=!1,baseUrl:i})=>{const l=No(),u=Jn(U8),d=Jn($8),v=Jn(RM),h=Object.keys(v).map(C=>v[C]);k.useEffect(()=>{l(c0({catalogSources:t,onRamps:r}))},[]);const y=()=>r&&h.length>1?m.jsx(m.Fragment,{children:h.filter(C=>C.catalogLabel!="ACCESS").map((C,x)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsxs("h4",{className:"border-bottom",children:["About ",C.catalogLabel]}),m.jsx("div",{dangerouslySetInnerHTML:{__html:C.description}})]})},`catalog_${x}`))}):"";return d?m.jsx("div",{className:"row",children:m.jsx("div",{className:"col text-center mt-2",children:m.jsx("h4",{children:"Unable to Load Resources"})})}):u?m.jsxs("div",{className:`container mt-3 ${wo.access}`,children:[r?m.jsx(lq,{baseUrl:i}):"",y(),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx(sq,{})})})]}):m.jsx(eh,{})},cq={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},d0=Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{const l=await(await fetch(t.apiUrl)).json();r(fq({data:l,params:t}))}),dq=t=>{const r=[],i=t.filter(l=>l.features.filter(u=>u.selected).length>0);return t.forEach(l=>{l.features.forEach(u=>{u.selected&&r.push(u.featureId)})}),i.map(l=>({...l,features:l.features.filter(u=>u.selected)}))},dj=(t,r,i)=>{if(t.length==0&&r.length==0)return!0;if(t.length>0)return t.find(l=>l==i);if(r.length>0)return!r.find(l=>l==i)},TM=z0({name:"resourceCatalog",initialState:cq,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,l=r.params.excludedCategories,u=r.params.excludedFilters,d=r.params.excludedResources,v=r.params.allowedCategories,h=r.params.allowedFilters,y=[],C={};i.filter(x=>!d.includes(x.resourceName)).forEach(x=>{const w=[];let R="";x.featureCategories.filter(I=>I.categoryIsFilter).forEach(I=>{const _=I.categoryId;I.categoryName=="ACCESS Resource Grouping"?R=I.features[0].name:(!C[_]&&dj(v,l,I.categoryName)&&(C[_]={categoryId:_,categoryName:I.categoryName,categoryDescription:I.categoryDescription,features:{}}),I.features.forEach(A=>{const L={featureId:A.featureId,name:A.name,description:A.description,categoryId:_,selected:!1},P=dj(h,u,L.name);P&&w.push(L),C[_]&&P&&!C[_].features[A.featureId]&&(C[_].features[A.featureId]=L)}))});const j={resourceName:x.resourceName,resourceId:x.resourceId,resourceType:x.resourceType,organization:x.organization,units:x.units,userGuideUrl:x.userGuideUrl,resourceDescription:x.resourceDescription,description:x.description,recommendedUse:x.recommendedUse,features:w.map(I=>I.name).sort((I,_)=>I>_),featureIds:w.map(I=>I.featureId),sortCategory:R};y.push(j)});for(const x in C){const w=C[x],R=[];for(const j in w.features)R.push(w.features[j]);t.filters.push({...w,features:R.sort((j,I)=>j.name>I.name)})}t.filters=t.filters.sort((x,w)=>x.categoryName.localeCompare(w.categoryName)),t.resources=y.sort((x,w)=>x.resourceName.localeCompare(w.resourceName)).sort((x,w)=>t.resourceSorting[x.sortCategory]>t.resourceSorting[w.sortCategory]),t.filteredResources=[...t.resources],t.resourcesLoaded=!0},resetFilters:t=>{t.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),t.filteredResources=[...t.resources]},toggleFilter:(t,{payload:r})=>{const i=r,u=t.filters.find(v=>v.categoryId==i.categoryId).features.find(v=>v.featureId==i.featureId);u.selected=!u.selected;const d=dq(t.filters);if(d.length>0){const v=[],h=d.map(y=>y.features.map(C=>C.featureId));t.resources.forEach(y=>{let C=0;h.forEach(x=>{let w=!1;y.featureIds.forEach(R=>{x.indexOf(R)>=0&&(w=!0)}),w&&(C+=1)}),C>=h.length&&v.push(y)}),t.filteredResources=v}else t.filteredResources=[...t.resources]}},extraReducers:t=>{t.addCase(d0.pending,r=>{}).addCase(d0.fulfilled,(r,i)=>{}).addCase(d0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:fq,processData:Uq,resetFilters:pq,toggleFilter:hq}=TM.actions,vq=t=>t.resourceCatalog.hasErrors,mq=t=>t.resourceCatalog.resourcesLoaded,gq=t=>t.resourceCatalog.filters,yq=t=>t.resourceCatalog.filteredResources,bq=TM.reducer,Cq=({resource:t})=>{const r=l=>l.length==0?"":m.jsx("ul",{children:l.map((u,d)=>m.jsx("li",{children:u},`feature_${t.resourceId}_${d}`))}),i=(l,u)=>u&&u!=""?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col fw-bold",children:l})}),m.jsx("div",{className:"row mb-3",children:m.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:u}})})]}):"";return m.jsxs(us.Item,{eventKey:t.resourceId,children:[m.jsx(us.Header,{children:t.resourceName}),m.jsxs(us.Body,{children:[m.jsx("table",{className:"table",children:m.jsxs("tbody",{children:[m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Resource Type:"}),m.jsx("td",{children:t.resourceType})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Organization:"}),m.jsx("td",{children:t.organization})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Units:"}),m.jsx("td",{children:t.units})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"User Guide:"}),m.jsx("td",{children:t.userGuideUrl==""?"":m.jsx("a",{href:t.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Features Available:"}),m.jsx("td",{children:r(t.features)})]})]})}),i("Resource Description",t.resourceDescription),i("Allocations Description",t.description),i("Recommended Use",t.recommendedUse)]})]})},xq=()=>{const t=Jn(yq);return t.length==0?m.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):m.jsxs("div",{children:[m.jsx("h4",{className:"mb-0",children:"Resources"}),m.jsx(us,{children:t.map(r=>m.jsx(Cq,{resource:r},r.resourceId))})]})},Sq=({filter:t})=>{const r=No(),i=()=>{r(hq(t))};return m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"form-check",children:[m.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),m.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},Eq=({category:t})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("div",{className:"fw-bold mb-1 mt-1",children:m.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>m.jsx(Sq,{filter:r},r.featureId))]})}),wq=()=>{const t=No(),r=Jn(gq),i=r.filter(l=>l.features.filter(u=>u.selected).length>0);return m.jsxs("div",{children:[m.jsx("h4",{className:"mb-0",children:"Filters"}),r.map(l=>m.jsx(Eq,{category:l},l.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(pq()),disabled:i.length==0,children:"Reset Filters"})]})},Rq=({apiUrl:t,excludedCategories:r=[],excludedFilters:i=[],excludedResources:l=[],allowedCategories:u=[],allowedFilters:d=[]})=>{const v=No(),h=Jn(mq),y=Jn(vq);return k.useEffect(()=>{v(d0({apiUrl:t,excludedCategories:r,excludedFilters:i,excludedResources:l,allowedCategories:u,allowedFilters:d}))},[]),y?m.jsx("div",{className:"row",children:m.jsx("div",{className:"col text-center mt-2",children:m.jsx("h4",{children:"Unable to Load Resources"})})}):h?m.jsx(m.Fragment,{children:m.jsxs("div",{className:"row mt-3",children:[m.jsx("div",{className:"col-sm-4",children:m.jsx(wq,{})}),m.jsx("div",{className:"col-sm-8",children:m.jsx(xq,{})})]})}):m.jsx(eh,{})};function Tq(t,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:l=!1,baseUrl:u=null}={}){const d=t.attachShadow({mode:"open"}),v=document.createElement("div"),h=document.createElement("div"),y=document.createElement("div"),C=document.createElement("div"),x=document.createElement("link"),w=document.createElement("link"),R=document.createElement("link");return u=u??(typeof document>"u"?require("url").pathToFileURL(__filename).href:UN&&UN.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),x.rel="stylesheet",x.href=`${u}/bootstrap.css`,w.rel="stylesheet",w.href=`${u}/xras-ui.css`,R.rel="stylesheet",R.href=`${u}/access.css`,y.appendChild(C),h.appendChild(y),v.appendChild(h),d.appendChild(x),d.appendChild(w),d.appendChild(R),d.appendChild(v),v.classList.add("bootstrap"),i&&h.classList.add("bootstrap-variables"),r&&(y.classList.add("bootstrap-fonts"),y.setAttribute("data-bs-theme","light")),C}function _q({target:t}){Xi.createRoot(t).render(m.jsx(vH,{}))}function Nq({target:t,availableResources:r,relativeUrlRoot:i}){Xi.createRoot(t).render(m.jsx(bH,{availableResources:r,relativeUrlRoot:i}))}function Iq({resourceId:t,target:r,setExternalSubmit:i,relativeUrlRoot:l}){Xi.createRoot(r).render(m.jsx(uO,{resourceId:t,setExternalSubmit:i,relativeUrlRoot:l}))}function Aq({target:t,username:r,routes:i}){mR(i);const l=Pm({reducer:{api:EG}});Xi.createRoot(t).render(m.jsx(Kp,{store:l,children:m.jsx(KZ,{username:r})}))}function jq({target:t,apiUrl:r}){const i=Pm({reducer:{projectsBrowser:h6},preloadedState:{projectsBrowser:{...sM,apiUrl:r}}});Xi.createRoot(t).render(m.jsx(Kp,{store:i,children:m.jsx(y6,{})}))}function _M(){return Pm({reducer:{publications_store:D8}})}function Oq({target:t,routes:r}){mR(r),Xi.createRoot(t).render(m.jsx(Kp,{store:_M(),children:m.jsx(SM,{})}))}function Dq({target:t,routes:r}){mR(r),Xi.createRoot(t).render(m.jsx(Kp,{store:_M(),children:m.jsx(A8,{...JSON.parse(t.dataset.publicationsSelectProps)})}))}function kq({target:t,catalogSources:r,onRamps:i,baseUrl:l}){const u=Pm({reducer:{resourceCatalog:G8}});Xi.createRoot(t).render(m.jsx(Kp,{store:u,children:m.jsx(uq,{catalogSources:r,onRamps:i,baseUrl:l})}))}function Mq({target:t,apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v}){const h=Pm({reducer:{resourceCatalog:bq}});Xi.createRoot(t).render(m.jsx(Kp,{store:h,children:m.jsx(Rq,{apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v})}))}exports.allocationsMap=_q;exports.editResource=Iq;exports.onRampsResourceCatalog=kq;exports.projects=Aq;exports.projectsBrowser=jq;exports.publications=Oq;exports.publicationsSelect=Dq;exports.resourceCatalog=Mq;exports.resources=Nq;exports.shadowTarget=Tq;
|
|
309
|
+
`]))),nY=function(r,i){var l=r.isFocused,u=r.size,d=r.theme,v=d.colors,h=d.spacing.baseUnit;return bt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:u,lineHeight:1,marginRight:u,textAlign:"center",verticalAlign:"middle"},i?{}:{color:l?v.neutral60:v.neutral20,padding:h*2})},rw=function(r){var i=r.delay,l=r.offset;return wt("span",{css:KR({animation:"".concat(tY," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:l?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},Zw.NODE_ENV==="production"?"":";label:LoadingDot;",Zw.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},rY=function(r){var i=r.innerProps,l=r.isRtl,u=r.size,d=u===void 0?4:u,v=al(r,WX);return wt("div",_t({},br(bt(bt({},v),{},{innerProps:i,isRtl:l,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),wt(rw,{delay:0,offset:l}),wt(rw,{delay:160,offset:!0}),wt(rw,{delay:320,offset:!l}))},aY=function(r,i){var l=r.isDisabled,u=r.isFocused,d=r.theme,v=d.colors,h=d.borderRadius,y=d.spacing;return bt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:y.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:l?v.neutral5:v.neutral0,borderColor:l?v.neutral10:u?v.primary:v.neutral20,borderRadius:h,borderStyle:"solid",borderWidth:1,boxShadow:u?"0 0 0 1px ".concat(v.primary):void 0,"&:hover":{borderColor:u?v.primary:v.neutral30}})},iY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.innerRef,v=r.innerProps,h=r.menuIsOpen;return wt("div",_t({ref:d},br(r,"control",{control:!0,"control--is-disabled":l,"control--is-focused":u,"control--menu-is-open":h}),v,{"aria-disabled":l||void 0}),i)},oY=iY,sY=["data"],lY=function(r,i){var l=r.theme.spacing;return i?{}:{paddingBottom:l.baseUnit*2,paddingTop:l.baseUnit*2}},uY=function(r){var i=r.children,l=r.cx,u=r.getStyles,d=r.getClassNames,v=r.Heading,h=r.headingProps,y=r.innerProps,C=r.label,x=r.theme,w=r.selectProps;return wt("div",_t({},br(r,"group",{group:!0}),y),wt(v,_t({},h,{selectProps:w,theme:x,getStyles:u,getClassNames:d,cx:l}),C),wt("div",null,i))},cY=function(r,i){var l=r.theme,u=l.colors,d=l.spacing;return bt({label:"group",cursor:"default",display:"block"},i?{}:{color:u.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:d.baseUnit*3,paddingRight:d.baseUnit*3,textTransform:"uppercase"})},dY=function(r){var i=Vk(r);i.data;var l=al(i,sY);return wt("div",_t({},br(r,"groupHeading",{"group-heading":!0}),l))},fY=uY,pY=["innerRef","isDisabled","isHidden","inputClassName"],hY=function(r,i){var l=r.isDisabled,u=r.value,d=r.theme,v=d.spacing,h=d.colors;return bt(bt({visibility:l?"hidden":"visible",transform:u?"translateZ(0)":""},vY),i?{}:{margin:v.baseUnit/2,paddingBottom:v.baseUnit/2,paddingTop:v.baseUnit/2,color:h.neutral80})},Yk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":bt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Yk)},mY=function(r){return bt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Yk)},gY=function(r){var i=r.cx,l=r.value,u=Vk(r),d=u.innerRef,v=u.isDisabled,h=u.isHidden,y=u.inputClassName,C=al(u,pY);return wt("div",_t({},br(r,"input",{"input-container":!0}),{"data-value":l||""}),wt("input",_t({className:i({input:!0},y),ref:d,style:mY(h),disabled:v},C)))},yY=gY,bY=function(r,i){var l=r.theme,u=l.spacing,d=l.borderRadius,v=l.colors;return bt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:v.neutral10,borderRadius:d/2,margin:u.baseUnit/2})},CY=function(r,i){var l=r.theme,u=l.borderRadius,d=l.colors,v=r.cropWithEllipsis;return bt({overflow:"hidden",textOverflow:v||v===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:u/2,color:d.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},xY=function(r,i){var l=r.theme,u=l.spacing,d=l.borderRadius,v=l.colors,h=r.isFocused;return bt({alignItems:"center",display:"flex"},i?{}:{borderRadius:d/2,backgroundColor:h?v.dangerLight:void 0,paddingLeft:u.baseUnit,paddingRight:u.baseUnit,":hover":{backgroundColor:v.dangerLight,color:v.danger}})},Zk=function(r){var i=r.children,l=r.innerProps;return wt("div",l,i)},SY=Zk,EY=Zk;function wY(t){var r=t.children,i=t.innerProps;return wt("div",_t({role:"button"},i),r||wt(r1,{size:14}))}var RY=function(r){var i=r.children,l=r.components,u=r.data,d=r.innerProps,v=r.isDisabled,h=r.removeProps,y=r.selectProps,C=l.Container,x=l.Label,w=l.Remove;return wt(C,{data:u,innerProps:bt(bt({},br(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":v})),d),selectProps:y},wt(x,{data:u,innerProps:bt({},br(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),wt(w,{data:u,innerProps:bt(bt({},br(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},h),selectProps:y}))},TY=RY,_Y=function(r,i){var l=r.isDisabled,u=r.isFocused,d=r.isSelected,v=r.theme,h=v.spacing,y=v.colors;return bt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:d?y.primary:u?y.primary25:"transparent",color:l?y.neutral20:d?y.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:l?void 0:d?y.primary:y.primary50}})},NY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.isSelected,v=r.innerRef,h=r.innerProps;return wt("div",_t({},br(r,"option",{option:!0,"option--is-disabled":l,"option--is-focused":u,"option--is-selected":d}),{ref:v,"aria-disabled":l},h),i)},IY=NY,AY=function(r,i){var l=r.theme,u=l.spacing,d=l.colors;return bt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:d.neutral50,marginLeft:u.baseUnit/2,marginRight:u.baseUnit/2})},jY=function(r){var i=r.children,l=r.innerProps;return wt("div",_t({},br(r,"placeholder",{placeholder:!0}),l),i)},OY=jY,DY=function(r,i){var l=r.isDisabled,u=r.theme,d=u.spacing,v=u.colors;return bt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:l?v.neutral40:v.neutral80,marginLeft:d.baseUnit/2,marginRight:d.baseUnit/2})},kY=function(r){var i=r.children,l=r.isDisabled,u=r.innerProps;return wt("div",_t({},br(r,"singleValue",{"single-value":!0,"single-value--is-disabled":l}),u),i)},MY=kY,LY={ClearIndicator:QX,Control:oY,DropdownIndicator:qX,DownChevron:Wk,CrossIcon:r1,Group:fY,GroupHeading:dY,IndicatorsContainer:HX,IndicatorSeparator:eY,Input:yY,LoadingIndicator:rY,Menu:AX,MenuList:OX,MenuPortal:FX,LoadingMessage:LX,NoOptionsMessage:MX,MultiValue:TY,MultiValueContainer:SY,MultiValueLabel:EY,MultiValueRemove:wY,Option:IY,Placeholder:OY,SelectContainer:BX,SingleValue:MY,ValueContainer:$X},PY=function(r){return bt(bt({},LY),r.components)},UA=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function FY(t,r){return!!(t===r||UA(t)&&UA(r))}function VY(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!FY(t[i],r[i]))return!1;return!0}function BY(t,r){r===void 0&&(r=VY);var i=null;function l(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];if(i&&i.lastThis===this&&r(u,i.lastArgs))return i.lastResult;var v=t.apply(this,u);return i={lastResult:v,lastArgs:u,lastThis:this},v}return l.clear=function(){i=null},l}var Dm={};function zY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var $Y=Dm.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:zY},UY=function(r){return wt("span",_t({css:$Y},r))},HA=UY,HY={guidance:function(r){var i=r.isSearchable,l=r.isMulti,u=r.tabSelectsValue,d=r.context,v=r.isInitialFocus;switch(d){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(u?", press Tab to select the option and exit the menu":"",".");case"input":return v?"".concat(r["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(l?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(r){var i=r.action,l=r.label,u=l===void 0?"":l,d=r.labels,v=r.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(u,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(d.length>1?"s":""," ").concat(d.join(","),", selected.");case"select-option":return v?"option ".concat(u," is disabled. Select another option."):"option ".concat(u,", selected.");default:return""}},onFocus:function(r){var i=r.context,l=r.focused,u=r.options,d=r.label,v=d===void 0?"":d,h=r.selectValue,y=r.isDisabled,C=r.isSelected,x=r.isAppleDevice,w=function(_,A){return _&&_.length?"".concat(_.indexOf(A)+1," of ").concat(_.length):""};if(i==="value"&&h)return"value ".concat(v," focused, ").concat(w(h,l),".");if(i==="menu"&&x){var R=y?" disabled":"",j="".concat(C?" selected":"").concat(R);return"".concat(v).concat(j,", ").concat(w(u,l),".")}return""},onFilter:function(r){var i=r.inputValue,l=r.resultsMessage;return"".concat(l).concat(i?" for search term "+i:"",".")}},GY=function(r){var i=r.ariaSelection,l=r.focusedOption,u=r.focusedValue,d=r.focusableOptions,v=r.isFocused,h=r.selectValue,y=r.selectProps,C=r.id,x=r.isAppleDevice,w=y.ariaLiveMessages,R=y.getOptionLabel,j=y.inputValue,I=y.isMulti,_=y.isOptionDisabled,A=y.isSearchable,L=y.menuIsOpen,P=y.options,F=y.screenReaderStatus,U=y.tabSelectsValue,B=y.isLoading,z=y["aria-label"],X=y["aria-live"],Z=k.useMemo(function(){return bt(bt({},HY),w||{})},[w]),ue=k.useMemo(function(){var Ce="";if(i&&Z.onChange){var je=i.option,Le=i.options,re=i.removedValue,Ie=i.removedValues,G=i.value,Y=function(fe){return Array.isArray(fe)?null:fe},ne=re||je||Y(G),be=ne?R(ne):"",we=Le||Ie||void 0,Ne=we?we.map(R):[],Oe=bt({isDisabled:ne&&_(ne,h),label:be,labels:Ne},i);Ce=Z.onChange(Oe)}return Ce},[i,Z,_,h,R]),ie=k.useMemo(function(){var Ce="",je=l||u,Le=!!(l&&h&&h.includes(l));if(je&&Z.onFocus){var re={focused:je,label:R(je),isDisabled:_(je,h),isSelected:Le,options:d,context:je===l?"menu":"value",selectValue:h,isAppleDevice:x};Ce=Z.onFocus(re)}return Ce},[l,u,R,_,Z,d,h,x]),ge=k.useMemo(function(){var Ce="";if(L&&P.length&&!B&&Z.onFilter){var je=F({count:d.length});Ce=Z.onFilter({inputValue:j,resultsMessage:je})}return Ce},[d,j,L,Z,P,F,B]),de=(i==null?void 0:i.action)==="initial-input-focus",_e=k.useMemo(function(){var Ce="";if(Z.guidance){var je=u?"value":L?"menu":"input";Ce=Z.guidance({"aria-label":z,context:je,isDisabled:l&&_(l,h),isMulti:I,isSearchable:A,tabSelectsValue:U,isInitialFocus:de})}return Ce},[z,l,u,I,_,A,L,Z,h,U,de]),Ee=wt(k.Fragment,null,wt("span",{id:"aria-selection"},ue),wt("span",{id:"aria-focused"},ie),wt("span",{id:"aria-results"},ge),wt("span",{id:"aria-guidance"},_e));return wt(k.Fragment,null,wt(HA,{id:C},de&&Ee),wt(HA,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},v&&!de&&Ee))},WY=GY,qw=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],XY=new RegExp("["+qw.map(function(t){return t.letters}).join("")+"]","g"),qk={};for(var aw=0;aw<qw.length;aw++)for(var iw=qw[aw],ow=0;ow<iw.letters.length;ow++)qk[iw.letters[ow]]=iw.base;var Jk=function(r){return r.replace(XY,function(i){return qk[i]})},YY=BY(Jk),GA=function(r){return r.replace(/^\s+|\s+$/g,"")},ZY=function(r){return"".concat(r.label," ").concat(r.value)},qY=function(r){return function(i,l){if(i.data.__isNew__)return!0;var u=bt({ignoreCase:!0,ignoreAccents:!0,stringify:ZY,trim:!0,matchFrom:"any"},r),d=u.ignoreCase,v=u.ignoreAccents,h=u.stringify,y=u.trim,C=u.matchFrom,x=y?GA(l):l,w=y?GA(h(i)):h(i);return d&&(x=x.toLowerCase(),w=w.toLowerCase()),v&&(x=YY(x),w=Jk(w)),C==="start"?w.substr(0,x.length)===x:w.indexOf(x)>-1}},JY=["innerRef"];function QY(t){var r=t.innerRef,i=al(t,JY),l=SX(i,"onExited","in","enter","exit","appear");return wt("input",_t({ref:r},l,{css:KR({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},Dm.NODE_ENV==="production"?"":";label:DummyInput;",Dm.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var KY=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function eZ(t){var r=t.isEnabled,i=t.onBottomArrive,l=t.onBottomLeave,u=t.onTopArrive,d=t.onTopLeave,v=k.useRef(!1),h=k.useRef(!1),y=k.useRef(0),C=k.useRef(null),x=k.useCallback(function(A,L){if(C.current!==null){var P=C.current,F=P.scrollTop,U=P.scrollHeight,B=P.clientHeight,z=C.current,X=L>0,Z=U-B-F,ue=!1;Z>L&&v.current&&(l&&l(A),v.current=!1),X&&h.current&&(d&&d(A),h.current=!1),X&&L>Z?(i&&!v.current&&i(A),z.scrollTop=U,ue=!0,v.current=!0):!X&&-L>F&&(u&&!h.current&&u(A),z.scrollTop=0,ue=!0,h.current=!0),ue&&KY(A)}},[i,l,u,d]),w=k.useCallback(function(A){x(A,A.deltaY)},[x]),R=k.useCallback(function(A){y.current=A.changedTouches[0].clientY},[]),j=k.useCallback(function(A){var L=y.current-A.changedTouches[0].clientY;x(A,L)},[x]),I=k.useCallback(function(A){if(A){var L=bX?{passive:!1}:!1;A.addEventListener("wheel",w,L),A.addEventListener("touchstart",R,L),A.addEventListener("touchmove",j,L)}},[j,R,w]),_=k.useCallback(function(A){A&&(A.removeEventListener("wheel",w,!1),A.removeEventListener("touchstart",R,!1),A.removeEventListener("touchmove",j,!1))},[j,R,w]);return k.useEffect(function(){if(r){var A=C.current;return I(A),function(){_(A)}}},[r,I,_]),function(A){C.current=A}}var WA=["boxSizing","height","overflow","paddingRight","position"],XA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function YA(t){t.preventDefault()}function ZA(t){t.stopPropagation()}function qA(){var t=this.scrollTop,r=this.scrollHeight,i=t+this.offsetHeight;t===0?this.scrollTop=1:i===r&&(this.scrollTop=t-1)}function JA(){return"ontouchstart"in window||navigator.maxTouchPoints}var QA=!!(typeof window<"u"&&window.document&&window.document.createElement),pm=0,Vp={capture:!1,passive:!1};function tZ(t){var r=t.isEnabled,i=t.accountForScrollbars,l=i===void 0?!0:i,u=k.useRef({}),d=k.useRef(null),v=k.useCallback(function(y){if(QA){var C=document.body,x=C&&C.style;if(l&&WA.forEach(function(I){var _=x&&x[I];u.current[I]=_}),l&&pm<1){var w=parseInt(u.current.paddingRight,10)||0,R=document.body?document.body.clientWidth:0,j=window.innerWidth-R+w||0;Object.keys(XA).forEach(function(I){var _=XA[I];x&&(x[I]=_)}),x&&(x.paddingRight="".concat(j,"px"))}C&&JA()&&(C.addEventListener("touchmove",YA,Vp),y&&(y.addEventListener("touchstart",qA,Vp),y.addEventListener("touchmove",ZA,Vp))),pm+=1}},[l]),h=k.useCallback(function(y){if(QA){var C=document.body,x=C&&C.style;pm=Math.max(pm-1,0),l&&pm<1&&WA.forEach(function(w){var R=u.current[w];x&&(x[w]=R)}),C&&JA()&&(C.removeEventListener("touchmove",YA,Vp),y&&(y.removeEventListener("touchstart",qA,Vp),y.removeEventListener("touchmove",ZA,Vp)))}},[l]);return k.useEffect(function(){if(r){var y=d.current;return v(y),function(){h(y)}}},[r,v,h]),function(y){d.current=y}}function nZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var rZ=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},aZ=Dm.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:nZ};function iZ(t){var r=t.children,i=t.lockEnabled,l=t.captureEnabled,u=l===void 0?!0:l,d=t.onBottomArrive,v=t.onBottomLeave,h=t.onTopArrive,y=t.onTopLeave,C=eZ({isEnabled:u,onBottomArrive:d,onBottomLeave:v,onTopArrive:h,onTopLeave:y}),x=tZ({isEnabled:i}),w=function(j){C(j),x(j)};return wt(k.Fragment,null,i&&wt("div",{onClick:rZ,css:aZ}),r(w))}function oZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sZ=Dm.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:oZ},lZ=function(r){var i=r.name,l=r.onFocus;return wt("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:l,css:sZ,value:"",onChange:function(){}})},uZ=lZ;function a1(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function cZ(){return a1(/^iPhone/i)}function Qk(){return a1(/^Mac/i)}function dZ(){return a1(/^iPad/i)||Qk()&&navigator.maxTouchPoints>1}function fZ(){return cZ()||dZ()}function pZ(){return Qk()||fZ()}var hZ=function(r){return r.label},vZ=function(r){return r.label},mZ=function(r){return r.value},gZ=function(r){return!!r.isDisabled},yZ={clearIndicator:JX,container:VX,control:aY,dropdownIndicator:ZX,group:lY,groupHeading:cY,indicatorsContainer:UX,indicatorSeparator:KX,input:hY,loadingIndicator:nY,loadingMessage:kX,menu:_X,menuList:jX,menuPortal:PX,multiValue:bY,multiValueLabel:CY,multiValueRemove:xY,noOptionsMessage:DX,option:_Y,placeholder:AY,singleValue:DY,valueContainer:zX},bZ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},CZ=4,Kk=4,xZ=38,SZ=Kk*2,EZ={baseUnit:Kk,controlHeight:xZ,menuGutter:SZ},sw={borderRadius:CZ,colors:bZ,spacing:EZ},wZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:zA(),captureMenuScroll:!zA(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:qY(),formatGroupLabel:hZ,getOptionLabel:vZ,getOptionValue:mZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:gZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!gX(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var i=r.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function KA(t,r,i,l){var u=nM(t,r,i),d=rM(t,r,i),v=tM(t,r),h=L0(t,r);return{type:"option",data:r,isDisabled:u,isSelected:d,label:v,value:h,index:l}}function u0(t,r){return t.options.map(function(i,l){if("options"in i){var u=i.options.map(function(v,h){return KA(t,v,r,h)}).filter(function(v){return tj(t,v)});return u.length>0?{type:"group",data:i,options:u,index:l}:void 0}var d=KA(t,i,r,l);return tj(t,d)?d:void 0}).filter(CX)}function eM(t){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,$R(i.options.map(function(l){return l.data}))):r.push(i.data),r},[])}function ej(t,r){return t.reduce(function(i,l){return l.type==="group"?i.push.apply(i,$R(l.options.map(function(u){return{data:u.data,id:"".concat(r,"-").concat(l.index,"-").concat(u.index)}}))):i.push({data:l.data,id:"".concat(r,"-").concat(l.index)}),i},[])}function RZ(t,r){return eM(u0(t,r))}function tj(t,r){var i=t.inputValue,l=i===void 0?"":i,u=r.data,d=r.isSelected,v=r.label,h=r.value;return(!iM(t)||!d)&&aM(t,{label:v,value:h,data:u},l)}function TZ(t,r){var i=t.focusedValue,l=t.selectValue,u=l.indexOf(i);if(u>-1){var d=r.indexOf(i);if(d>-1)return i;if(u<r.length)return r[u]}return null}function _Z(t,r){var i=t.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var lw=function(r,i){var l,u=(l=r.find(function(d){return d.data===i}))===null||l===void 0?void 0:l.id;return u||null},tM=function(r,i){return r.getOptionLabel(i)},L0=function(r,i){return r.getOptionValue(i)};function nM(t,r,i){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(r,i):!1}function rM(t,r,i){if(i.indexOf(r)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(r,i);var l=L0(t,r);return i.some(function(u){return L0(t,u)===l})}function aM(t,r,i){return t.filterOption?t.filterOption(r,i):!0}var iM=function(r){var i=r.hideSelectedOptions,l=r.isMulti;return i===void 0?l:i},NZ=1,i1=function(t){DW(i,t);var r=LW(i);function i(l){var u;if(jW(this,i),u=r.call(this,l),u.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},u.blockOptionHover=!1,u.isComposing=!1,u.commonProps=void 0,u.initialTouchX=0,u.initialTouchY=0,u.openAfterFocus=!1,u.scrollToFocusedOptionOnUpdate=!1,u.userIsDragging=void 0,u.isAppleDevice=pZ(),u.controlRef=null,u.getControlRef=function(y){u.controlRef=y},u.focusedOptionRef=null,u.getFocusedOptionRef=function(y){u.focusedOptionRef=y},u.menuListRef=null,u.getMenuListRef=function(y){u.menuListRef=y},u.inputRef=null,u.getInputRef=function(y){u.inputRef=y},u.focus=u.focusInput,u.blur=u.blurInput,u.onChange=function(y,C){var x=u.props,w=x.onChange,R=x.name;C.name=R,u.ariaOnChange(y,C),w(y,C)},u.setValue=function(y,C,x){var w=u.props,R=w.closeMenuOnSelect,j=w.isMulti,I=w.inputValue;u.onInputChange("",{action:"set-value",prevInputValue:I}),R&&(u.setState({inputIsHiddenAfterUpdate:!j}),u.onMenuClose()),u.setState({clearFocusValueOnUpdate:!0}),u.onChange(y,{action:C,option:x})},u.selectOption=function(y){var C=u.props,x=C.blurInputOnSelect,w=C.isMulti,R=C.name,j=u.state.selectValue,I=w&&u.isOptionSelected(y,j),_=u.isOptionDisabled(y,j);if(I){var A=u.getOptionValue(y);u.setValue(j.filter(function(L){return u.getOptionValue(L)!==A}),"deselect-option",y)}else if(!_)w?u.setValue([].concat($R(j),[y]),"select-option",y):u.setValue(y,"select-option");else{u.ariaOnChange(y,{action:"select-option",option:y,name:R});return}x&&u.blurInput()},u.removeValue=function(y){var C=u.props.isMulti,x=u.state.selectValue,w=u.getOptionValue(y),R=x.filter(function(I){return u.getOptionValue(I)!==w}),j=qb(C,R,R[0]||null);u.onChange(j,{action:"remove-value",removedValue:y}),u.focusInput()},u.clearValue=function(){var y=u.state.selectValue;u.onChange(qb(u.props.isMulti,[],null),{action:"clear",removedValues:y})},u.popValue=function(){var y=u.props.isMulti,C=u.state.selectValue,x=C[C.length-1],w=C.slice(0,C.length-1),R=qb(y,w,w[0]||null);u.onChange(R,{action:"pop-value",removedValue:x})},u.getFocusedOptionId=function(y){return lw(u.state.focusableOptionsWithIds,y)},u.getFocusableOptionsWithIds=function(){return ej(u0(u.props,u.state.selectValue),u.getElementId("option"))},u.getValue=function(){return u.state.selectValue},u.cx=function(){for(var y=arguments.length,C=new Array(y),x=0;x<y;x++)C[x]=arguments[x];return dX.apply(void 0,[u.props.classNamePrefix].concat(C))},u.getOptionLabel=function(y){return tM(u.props,y)},u.getOptionValue=function(y){return L0(u.props,y)},u.getStyles=function(y,C){var x=u.props.unstyled,w=yZ[y](C,x);w.boxSizing="border-box";var R=u.props.styles[y];return R?R(w,C):w},u.getClassNames=function(y,C){var x,w;return(x=(w=u.props.classNames)[y])===null||x===void 0?void 0:x.call(w,C)},u.getElementId=function(y){return"".concat(u.state.instancePrefix,"-").concat(y)},u.getComponents=function(){return PY(u.props)},u.buildCategorizedOptions=function(){return u0(u.props,u.state.selectValue)},u.getCategorizedOptions=function(){return u.props.menuIsOpen?u.buildCategorizedOptions():[]},u.buildFocusableOptions=function(){return eM(u.buildCategorizedOptions())},u.getFocusableOptions=function(){return u.props.menuIsOpen?u.buildFocusableOptions():[]},u.ariaOnChange=function(y,C){u.setState({ariaSelection:bt({value:y},C)})},u.onMenuMouseDown=function(y){y.button===0&&(y.stopPropagation(),y.preventDefault(),u.focusInput())},u.onMenuMouseMove=function(y){u.blockOptionHover=!1},u.onControlMouseDown=function(y){if(!y.defaultPrevented){var C=u.props.openMenuOnClick;u.state.isFocused?u.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&u.onMenuClose():C&&u.openMenu("first"):(C&&(u.openAfterFocus=!0),u.focusInput()),y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&y.preventDefault()}},u.onDropdownIndicatorMouseDown=function(y){if(!(y&&y.type==="mousedown"&&y.button!==0)&&!u.props.isDisabled){var C=u.props,x=C.isMulti,w=C.menuIsOpen;u.focusInput(),w?(u.setState({inputIsHiddenAfterUpdate:!x}),u.onMenuClose()):u.openMenu("first"),y.preventDefault()}},u.onClearIndicatorMouseDown=function(y){y&&y.type==="mousedown"&&y.button!==0||(u.clearValue(),y.preventDefault(),u.openAfterFocus=!1,y.type==="touchend"?u.focusInput():setTimeout(function(){return u.focusInput()}))},u.onScroll=function(y){typeof u.props.closeMenuOnScroll=="boolean"?y.target instanceof HTMLElement&&nC(y.target)&&u.props.onMenuClose():typeof u.props.closeMenuOnScroll=="function"&&u.props.closeMenuOnScroll(y)&&u.props.onMenuClose()},u.onCompositionStart=function(){u.isComposing=!0},u.onCompositionEnd=function(){u.isComposing=!1},u.onTouchStart=function(y){var C=y.touches,x=C&&C.item(0);x&&(u.initialTouchX=x.clientX,u.initialTouchY=x.clientY,u.userIsDragging=!1)},u.onTouchMove=function(y){var C=y.touches,x=C&&C.item(0);if(x){var w=Math.abs(x.clientX-u.initialTouchX),R=Math.abs(x.clientY-u.initialTouchY),j=5;u.userIsDragging=w>j||R>j}},u.onTouchEnd=function(y){u.userIsDragging||(u.controlRef&&!u.controlRef.contains(y.target)&&u.menuListRef&&!u.menuListRef.contains(y.target)&&u.blurInput(),u.initialTouchX=0,u.initialTouchY=0)},u.onControlTouchEnd=function(y){u.userIsDragging||u.onControlMouseDown(y)},u.onClearIndicatorTouchEnd=function(y){u.userIsDragging||u.onClearIndicatorMouseDown(y)},u.onDropdownIndicatorTouchEnd=function(y){u.userIsDragging||u.onDropdownIndicatorMouseDown(y)},u.handleInputChange=function(y){var C=u.props.inputValue,x=y.currentTarget.value;u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange(x,{action:"input-change",prevInputValue:C}),u.props.menuIsOpen||u.onMenuOpen()},u.onInputFocus=function(y){u.props.onFocus&&u.props.onFocus(y),u.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(u.openAfterFocus||u.props.openMenuOnFocus)&&u.openMenu("first"),u.openAfterFocus=!1},u.onInputBlur=function(y){var C=u.props.inputValue;if(u.menuListRef&&u.menuListRef.contains(document.activeElement)){u.inputRef.focus();return}u.props.onBlur&&u.props.onBlur(y),u.onInputChange("",{action:"input-blur",prevInputValue:C}),u.onMenuClose(),u.setState({focusedValue:null,isFocused:!1})},u.onOptionHover=function(y){if(!(u.blockOptionHover||u.state.focusedOption===y)){var C=u.getFocusableOptions(),x=C.indexOf(y);u.setState({focusedOption:y,focusedOptionId:x>-1?u.getFocusedOptionId(y):null})}},u.shouldHideSelectedOptions=function(){return iM(u.props)},u.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),u.focus()},u.onKeyDown=function(y){var C=u.props,x=C.isMulti,w=C.backspaceRemovesValue,R=C.escapeClearsValue,j=C.inputValue,I=C.isClearable,_=C.isDisabled,A=C.menuIsOpen,L=C.onKeyDown,P=C.tabSelectsValue,F=C.openMenuOnFocus,U=u.state,B=U.focusedOption,z=U.focusedValue,X=U.selectValue;if(!_&&!(typeof L=="function"&&(L(y),y.defaultPrevented))){switch(u.blockOptionHover=!0,y.key){case"ArrowLeft":if(!x||j)return;u.focusValue("previous");break;case"ArrowRight":if(!x||j)return;u.focusValue("next");break;case"Delete":case"Backspace":if(j)return;if(z)u.removeValue(z);else{if(!w)return;x?u.popValue():I&&u.clearValue()}break;case"Tab":if(u.isComposing||y.shiftKey||!A||!P||!B||F&&u.isOptionSelected(B,X))return;u.selectOption(B);break;case"Enter":if(y.keyCode===229)break;if(A){if(!B||u.isComposing)return;u.selectOption(B);break}return;case"Escape":A?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:j}),u.onMenuClose()):I&&R&&u.clearValue();break;case" ":if(j)return;if(!A){u.openMenu("first");break}if(!B)return;u.selectOption(B);break;case"ArrowUp":A?u.focusOption("up"):u.openMenu("last");break;case"ArrowDown":A?u.focusOption("down"):u.openMenu("first");break;case"PageUp":if(!A)return;u.focusOption("pageup");break;case"PageDown":if(!A)return;u.focusOption("pagedown");break;case"Home":if(!A)return;u.focusOption("first");break;case"End":if(!A)return;u.focusOption("last");break;default:return}y.preventDefault()}},u.state.instancePrefix="react-select-"+(u.props.instanceId||++NZ),u.state.selectValue=VA(l.value),l.menuIsOpen&&u.state.selectValue.length){var d=u.getFocusableOptionsWithIds(),v=u.buildFocusableOptions(),h=v.indexOf(u.state.selectValue[0]);u.state.focusableOptionsWithIds=d,u.state.focusedOption=v[h],u.state.focusedOptionId=lw(d,v[h])}return u}return OW(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&BA(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(u){var d=this.props,v=d.isDisabled,h=d.menuIsOpen,y=this.state.isFocused;(y&&!v&&u.isDisabled||y&&h&&!u.menuIsOpen)&&this.focusInput(),y&&v&&!u.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!y&&!v&&u.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(BA(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(u,d){this.props.onInputChange(u,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(u){var d=this,v=this.state,h=v.selectValue,y=v.isFocused,C=this.buildFocusableOptions(),x=u==="first"?0:C.length-1;if(!this.props.isMulti){var w=C.indexOf(h[0]);w>-1&&(x=w)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:C[x],focusedOptionId:this.getFocusedOptionId(C[x])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(u){var d=this.state,v=d.selectValue,h=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=v.indexOf(h);h||(y=-1);var C=v.length-1,x=-1;if(v.length){switch(u){case"previous":y===0?x=0:y===-1?x=C:x=y-1;break;case"next":y>-1&&y<C&&(x=y+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:v[x]})}}}},{key:"focusOption",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,v=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var y=0,C=h.indexOf(v);v||(C=-1),u==="up"?y=C>0?C-1:h.length-1:u==="down"?y=(C+1)%h.length:u==="pageup"?(y=C-d,y<0&&(y=0)):u==="pagedown"?(y=C+d,y>h.length-1&&(y=h.length-1)):u==="last"&&(y=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(sw):bt(bt({},sw),this.props.theme):sw}},{key:"getCommonProps",value:function(){var u=this.clearValue,d=this.cx,v=this.getStyles,h=this.getClassNames,y=this.getValue,C=this.selectOption,x=this.setValue,w=this.props,R=w.isMulti,j=w.isRtl,I=w.options,_=this.hasValue();return{clearValue:u,cx:d,getStyles:v,getClassNames:h,getValue:y,hasValue:_,isMulti:R,isRtl:j,options:I,selectOption:C,selectProps:w,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var u=this.state.selectValue;return u.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var u=this.props,d=u.isClearable,v=u.isMulti;return d===void 0?v:d}},{key:"isOptionDisabled",value:function(u,d){return nM(this.props,u,d)}},{key:"isOptionSelected",value:function(u,d){return rM(this.props,u,d)}},{key:"filterOption",value:function(u,d){return aM(this.props,u,d)}},{key:"formatOptionLabel",value:function(u,d){if(typeof this.props.formatOptionLabel=="function"){var v=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(u,{context:d,inputValue:v,selectValue:h})}else return this.getOptionLabel(u)}},{key:"formatGroupLabel",value:function(u){return this.props.formatGroupLabel(u)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var u=this.props,d=u.isDisabled,v=u.isSearchable,h=u.inputId,y=u.inputValue,C=u.tabIndex,x=u.form,w=u.menuIsOpen,R=u.required,j=this.getComponents(),I=j.Input,_=this.state,A=_.inputIsHidden,L=_.ariaSelection,P=this.commonProps,F=h||this.getElementId("input"),U=bt(bt(bt({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":R,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!v&&{"aria-readonly":!0}),this.hasValue()?(L==null?void 0:L.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return v?k.createElement(I,_t({},P,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:F,innerRef:this.getInputRef,isDisabled:d,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:C,form:x,type:"text",value:y},U)):k.createElement(QY,_t({id:F,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:k0,onFocus:this.onInputFocus,disabled:d,tabIndex:C,inputMode:"none",form:x,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var u=this,d=this.getComponents(),v=d.MultiValue,h=d.MultiValueContainer,y=d.MultiValueLabel,C=d.MultiValueRemove,x=d.SingleValue,w=d.Placeholder,R=this.commonProps,j=this.props,I=j.controlShouldRenderValue,_=j.isDisabled,A=j.isMulti,L=j.inputValue,P=j.placeholder,F=this.state,U=F.selectValue,B=F.focusedValue,z=F.isFocused;if(!this.hasValue()||!I)return L?null:k.createElement(w,_t({},R,{key:"placeholder",isDisabled:_,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),P);if(A)return U.map(function(Z,ue){var ie=Z===B,ge="".concat(u.getOptionLabel(Z),"-").concat(u.getOptionValue(Z));return k.createElement(v,_t({},R,{components:{Container:h,Label:y,Remove:C},isFocused:ie,isDisabled:_,key:ge,index:ue,removeProps:{onClick:function(){return u.removeValue(Z)},onTouchEnd:function(){return u.removeValue(Z)},onMouseDown:function(_e){_e.preventDefault()}},data:Z}),u.formatOptionLabel(Z,"value"))});if(L)return null;var X=U[0];return k.createElement(x,_t({},R,{data:X,isDisabled:_}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var u=this.getComponents(),d=u.ClearIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,C=h.isLoading,x=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||C)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,_t({},v,{innerProps:w,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var u=this.getComponents(),d=u.LoadingIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,C=h.isLoading,x=this.state.isFocused;if(!d||!C)return null;var w={"aria-hidden":"true"};return k.createElement(d,_t({},v,{innerProps:w,isDisabled:y,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var u=this.getComponents(),d=u.DropdownIndicator,v=u.IndicatorSeparator;if(!d||!v)return null;var h=this.commonProps,y=this.props.isDisabled,C=this.state.isFocused;return k.createElement(v,_t({},h,{isDisabled:y,isFocused:C}))}},{key:"renderDropdownIndicator",value:function(){var u=this.getComponents(),d=u.DropdownIndicator;if(!d)return null;var v=this.commonProps,h=this.props.isDisabled,y=this.state.isFocused,C={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,_t({},v,{innerProps:C,isDisabled:h,isFocused:y}))}},{key:"renderMenu",value:function(){var u=this,d=this.getComponents(),v=d.Group,h=d.GroupHeading,y=d.Menu,C=d.MenuList,x=d.MenuPortal,w=d.LoadingMessage,R=d.NoOptionsMessage,j=d.Option,I=this.commonProps,_=this.state.focusedOption,A=this.props,L=A.captureMenuScroll,P=A.inputValue,F=A.isLoading,U=A.loadingMessage,B=A.minMenuHeight,z=A.maxMenuHeight,X=A.menuIsOpen,Z=A.menuPlacement,ue=A.menuPosition,ie=A.menuPortalTarget,ge=A.menuShouldBlockScroll,de=A.menuShouldScrollIntoView,_e=A.noOptionsMessage,Ee=A.onMenuScrollToTop,Ce=A.onMenuScrollToBottom;if(!X)return null;var je=function(be,we){var Ne=be.type,Oe=be.data,ce=be.isDisabled,fe=be.isSelected,Ve=be.label,Ge=be.value,tt=_===Oe,ot=ce?void 0:function(){return u.onOptionHover(Oe)},Ae=ce?void 0:function(){return u.selectOption(Oe)},Rt="".concat(u.getElementId("option"),"-").concat(we),dt={id:Rt,onClick:Ae,onMouseMove:ot,onMouseOver:ot,tabIndex:-1,role:"option","aria-selected":u.isAppleDevice?void 0:fe};return k.createElement(j,_t({},I,{innerProps:dt,data:Oe,isDisabled:ce,isSelected:fe,key:Rt,label:Ve,type:Ne,value:Ge,isFocused:tt,innerRef:tt?u.getFocusedOptionRef:void 0}),u.formatOptionLabel(be.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var be=ne.data,we=ne.options,Ne=ne.index,Oe="".concat(u.getElementId("group"),"-").concat(Ne),ce="".concat(Oe,"-heading");return k.createElement(v,_t({},I,{key:Oe,data:be,options:we,Heading:h,headingProps:{id:ce,data:ne.data},label:u.formatGroupLabel(ne.data)}),ne.options.map(function(fe){return je(fe,"".concat(Ne,"-").concat(fe.index))}))}else if(ne.type==="option")return je(ne,"".concat(ne.index))});else if(F){var re=U({inputValue:P});if(re===null)return null;Le=k.createElement(w,I,re)}else{var Ie=_e({inputValue:P});if(Ie===null)return null;Le=k.createElement(R,I,Ie)}var G={minMenuHeight:B,maxMenuHeight:z,menuPlacement:Z,menuPosition:ue,menuShouldScrollIntoView:de},Y=k.createElement(NX,_t({},I,G),function(ne){var be=ne.ref,we=ne.placerProps,Ne=we.placement,Oe=we.maxHeight;return k.createElement(y,_t({},I,G,{innerRef:be,innerProps:{onMouseDown:u.onMenuMouseDown,onMouseMove:u.onMenuMouseMove},isLoading:F,placement:Ne}),k.createElement(iZ,{captureEnabled:L,onTopArrive:Ee,onBottomArrive:Ce,lockEnabled:ge},function(ce){return k.createElement(C,_t({},I,{innerRef:function(Ve){u.getMenuListRef(Ve),ce(Ve)},innerProps:{role:"listbox","aria-multiselectable":I.isMulti,id:u.getElementId("listbox")},isLoading:F,maxHeight:Oe,focusedOption:_}),Le)}))});return ie||ue==="fixed"?k.createElement(x,_t({},I,{appendTo:ie,controlElement:this.controlRef,menuPlacement:Z,menuPosition:ue}),Y):Y}},{key:"renderFormField",value:function(){var u=this,d=this.props,v=d.delimiter,h=d.isDisabled,y=d.isMulti,C=d.name,x=d.required,w=this.state.selectValue;if(x&&!this.hasValue()&&!h)return k.createElement(uZ,{name:C,onFocus:this.onValueInputFocus});if(!(!C||h))if(y)if(v){var R=w.map(function(_){return u.getOptionValue(_)}).join(v);return k.createElement("input",{name:C,type:"hidden",value:R})}else{var j=w.length>0?w.map(function(_,A){return k.createElement("input",{key:"i-".concat(A),name:C,type:"hidden",value:u.getOptionValue(_)})}):k.createElement("input",{name:C,type:"hidden",value:""});return k.createElement("div",null,j)}else{var I=w[0]?this.getOptionValue(w[0]):"";return k.createElement("input",{name:C,type:"hidden",value:I})}}},{key:"renderLiveRegion",value:function(){var u=this.commonProps,d=this.state,v=d.ariaSelection,h=d.focusedOption,y=d.focusedValue,C=d.isFocused,x=d.selectValue,w=this.getFocusableOptions();return k.createElement(WY,_t({},u,{id:this.getElementId("live-region"),ariaSelection:v,focusedOption:h,focusedValue:y,isFocused:C,selectValue:x,focusableOptions:w,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var u=this.getComponents(),d=u.Control,v=u.IndicatorsContainer,h=u.SelectContainer,y=u.ValueContainer,C=this.props,x=C.className,w=C.id,R=C.isDisabled,j=C.menuIsOpen,I=this.state.isFocused,_=this.commonProps=this.getCommonProps();return k.createElement(h,_t({},_,{className:x,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:R,isFocused:I}),this.renderLiveRegion(),k.createElement(d,_t({},_,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:R,isFocused:I,menuIsOpen:j}),k.createElement(y,_t({},_,{isDisabled:R}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(v,_t({},_,{isDisabled:R}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(u,d){var v=d.prevProps,h=d.clearFocusValueOnUpdate,y=d.inputIsHiddenAfterUpdate,C=d.ariaSelection,x=d.isFocused,w=d.prevWasFocused,R=d.instancePrefix,j=u.options,I=u.value,_=u.menuIsOpen,A=u.inputValue,L=u.isMulti,P=VA(I),F={};if(v&&(I!==v.value||j!==v.options||_!==v.menuIsOpen||A!==v.inputValue)){var U=_?RZ(u,P):[],B=_?ej(u0(u,P),"".concat(R,"-option")):[],z=h?TZ(d,P):null,X=_Z(d,U),Z=lw(B,X);F={selectValue:P,focusedOption:X,focusedOptionId:Z,focusableOptionsWithIds:B,focusedValue:z,clearFocusValueOnUpdate:!1}}var ue=y!=null&&u!==v?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},ie=C,ge=x&&w;return x&&!ge&&(ie={value:qb(L,P,P[0]||null),options:P,action:"initial-input-focus"},ge=!w),(C==null?void 0:C.action)==="initial-input-focus"&&(ie=null),bt(bt(bt({},F),ue),{},{prevProps:u,ariaSelection:ie,prevWasFocused:ge})}}]),i}(k.Component);i1.defaultProps=wZ;var IZ=k.forwardRef(function(t,r){var i=mk(t);return k.createElement(i1,_t({ref:r},i))}),o1=IZ;const AZ=`, ${new Date().getFullYear()}`;function nj({creditResource:t,resource:r,short:i=!1}){const{base:l,current:u}=r.exchangeRates;if(u.unitCost>=l.unitCost)return;const d=u.endDate?"calendar3":"people-fill",v=u.endDate?"primary":"success";let y=`${Math.round(100*(l.unitCost-u.unitCost)/l.unitCost)}% off`,C=y;if(u.endDate){const x=u.endDate?` until ${Ud(u.endDate).replace(AZ,"")}`:"";i||(y+=x),C+=x}else i||(y+=" for you"),C+=u.institutionType?` for researchers from ${u.institutionType}`:" for you";return C+=`: ${eO(r.unit,u.unitCost,t.name)}`,m.jsxs("span",{className:`badge text-bg-${v} ms-2`,title:C,style:{cursor:"help"},children:[m.jsx("i",{className:`bi bi-${d} me-1`}),y]})}function Up({bg:t="dark",children:r,color:i="light",fontWeight:l="bold",icon:u="info-circle-fill",initial:d=!1,maxWidth:v="200px",padding:h="10px",placement:y,target:C,trigger:x="click",visible:w=!0}){const R=typeof d=="string"||d instanceof String,[j,I]=k.useState(R?localStorage.getItem(d)!="true":d),[_,A]=k.useState(!1);k.useEffect(()=>{setTimeout(()=>A(!0),100)},[]);const L=()=>{R&&localStorage.setItem(d,"true")},P=m.jsxs(J0,{style:{"--bs-tooltip-bg":`var(--bs-${t})`,"--bs-tooltip-color":`var(--bs-${i})`,"--bs-tooltip-max-width":v,"--bs-tooltip-padding-x":h,"--bs-tooltip-padding-y":h,fontWeight:l},children:[m.jsx("button",{"aria-label":"Close",onClick:()=>{L(),I(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:m.jsx("i",{className:"bi bi-x-lg"})}),r]});return C&&C.current?m.jsx(pk,{target:C.current,placement:y,show:j&&w&&_,children:P}):m.jsx(zR,{placement:y,onToggle:F=>{L(),I(F)},overlay:P,show:j&&w&&_,trigger:x,children:m.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:m.jsx("i",{className:`bi bi-${u}`})})})}function jZ({resources:t}){const r=t.filter(d=>{const{base:v,current:h}=d.exchangeRates;return h.unitCost<v.unitCost});if(!r.length)return;const i=[],l=[];for(let d of r){let{name:v,favicon:h}=d.resourceProvider;i.includes(v)||(i.push(v),l.push(h))}const u=l.map((d,v)=>m.jsx("span",{className:"d-inline-block border me-1",style:{backgroundColor:"white",backgroundImage:`url(${d})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"16px 16px",borderRadius:"24px",height:"24px",verticalAlign:"middle",width:"24px"},title:i[v]},i[v]));return m.jsx("span",{className:"d-flex justify-content-between align-items-center p-2 border-start border-end bg-secondary-subtle text-decoration-none fw-normal",children:m.jsxs("span",{children:[u,"Browse the list below to see discounts on"," ",ga(r.length)," ",y0("resources",r.length)," from"," ",ga(i.length)," ",y0("resource providers",i.length),"!"]})})}const OZ="_items_c2dbg_1",DZ="_item_c2dbg_1",kZ="_details_c2dbg_14",MZ="_text_c2dbg_20",LZ="_number_c2dbg_35",PZ="_outer_c2dbg_50",FZ="_inner_c2dbg_61",ql={items:OZ,item:DZ,details:kZ,text:MZ,number:LZ,outer:PZ,inner:FZ},hm=(t,r)=>`${Math.cos(2*Math.PI*t)*r} ${Math.sin(2*Math.PI*t)*r}`;function VZ({requestId:t,grantNumber:r,creditColorClass:i="gray-300",colorClasses:l=Ew}){const{request:u}=ri(t,r);if(!u)return;let d=0,v;const h=[];for(let R of u.resources)R.isBoolean||(R.isCredit?v=R:h.push(R),d+=ww(R));const y=[],C=[];let x=-.25;const w=[...h,v].map((R,j)=>{if(!R)return null;const I=j+1,A=ww(R)/d,L=R.requested-R.used,P=Math.max(0,L),F=R.isCredit?d/R.exchangeRates.base.unitCost:R.requested,U=F==0?0:100*P/F,z=`var(--bs-${R.isCredit?i:l[j%l.length]})`;if(A>0){const X=x,Z=x+A/2,ue=x+=A,ie=A>.5?1:0,ge=[`M ${hm(X,100)}`,`A 100 100 0 ${ie} 1 ${hm(ue,100)}`,`L ${hm(ue,50)}`,`A 50 50 0 ${ie} 0 ${hm(X,50)}`].join(" "),[de,_e]=hm(Z,75).split(" ").map(Ee=>parseFloat(Ee));y.push(m.jsx("path",{d:ge,style:{fill:z}},R.resourceId)),C.push(m.jsx("circle",{cx:de,cy:_e,r:"8",fill:"black"},`${R.resourceId}-circle`),m.jsx("text",{x:de-4,y:_e+4,fill:"white",className:ql.number,children:I},`${R.resourceId}-text`))}return R.isCredit&&C.push(m.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:m.jsx("div",{className:ql.text,children:m.jsxs("div",{children:[m.jsx("strong",{children:ga(P,{abbreviate:!0})}),R.unit," available"]})})},"center-text")),m.jsxs("li",{className:ql.item,children:[m.jsx("span",{className:ql.number,children:I}),m.jsx("span",{className:`${ql.outer} ms-2 me-2`,style:{borderColor:z},children:m.jsx("span",{className:ql.inner,style:{backgroundColor:z,width:`${U}%`}})}),m.jsxs("strong",{className:ql.name,children:[m.jsx(Wd,{resource:R,userGuide:!1}),": "]}),m.jsxs("span",{className:ql.details,children:[ga(L,{abbreviate:!0})," ",R.isCredit?null:m.jsxs(m.Fragment,{children:["of ",ga(F,{abbreviate:!0})," "]}),R.unit," ",R.isCredit?"available":"remaining"," (",Math.round(U),"%)"]})]},R.resourceId)});return m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:m.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[y,C]})}),m.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:m.jsx("ul",{className:ql.items,children:w})})]})}const rj=t=>t;function BZ({classes:t,clean:r=rj,format:i=rj,label:l,setValue:u,style:d,value:v}){const h=i(v),[y,C]=k.useState(h);return k.useEffect(()=>{C(h)},[h]),m.jsx("input",{type:"text","aria-label":l,className:`form-control ${t}`,value:y,style:d,onChange:x=>C(x.target.value),onBlur:x=>{const w=r(x.target.value);C(i(w)),u(w)},onKeyDown:x=>{x.code=="Enter"&&(x.preventDefault(),x.target.blur())}})}function zZ({requestId:t,grantNumber:r}){const{request:i,addResource:l,openUsageDetailModal:u,resetResources:d,setResourceRequest:v,setResourcesReason:h,statuses:y,toggleActionsModal:C,toggleConfirmModal:x,toggleResourcesModal:w}=ri(t,r),{project:R}=Ji(r||i&&i.grantNumber),j=k.useRef(null),I=k.useRef(null);if(!i||!R)return;const _="Exchange"in i.allowedActions,A="Renewal"in i.allowedActions,L="Supplement"in i.allowedActions,P=i.exchangeStatus==y.pending,F=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,B=i.exchangeActionId!==null,z=i.resources,X=i.resourcesReason,Z={};for(let ce of z)Z[ce.resourceId]=ce;const ue=()=>{tO(i)>=.75?C():x()},ie=[];for(let ce of z){let fe=[];if(ce.requested>0){for(let Ve of ce.requires||[]){let Ge=Z[Ve];if(Ge){if(Ge.requested>0){fe=[];break}fe.push(Ge)}}fe.length&&ie.push(m.jsxs("span",{children:[m.jsx(Wd,{resource:ce,userGuide:!1})," requires"," ",Kj(fe.map(Ve=>m.jsx(Wd,{resource:Ve,userGuide:!1},Ve.resourceId)),"or"),"."]},ce.resourceId))}}const ge=ie.length>0;let de;F?de=m.jsx(Mr,{color:"info",children:"Your exchange request has been submitted."}):B?de=m.jsx(Mr,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?de=m.jsx(Mr,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!R.isManager?de=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",vR(R)," to request a change."]}):ge&&(de=m.jsxs(Mr,{color:"warning",children:[ie," Please adjust your balance values."]}));const _e=X.length>0;let Ee=!1,Ce=!1;for(let ce of z)if(ce.isNew&&(Ee=!0),ce.allocated!=ce.requested&&(Ce=!0),Ee&&Ce)break;const je=z.map(ce=>ce.resourceId),Le={},re=_&&!F&&!B?i.allowedActions.Exchange.resources.filter(ce=>!je.includes(ce.resourceId)).map(ce=>{Le[ce.resourceId]=ce;const fe=U0(ce.name),Ve=fe.short?`${fe.short} (${fe.full.replace(/ \([^(]+\)/,"")})`:fe.full;return{value:ce.resourceId,label:Ve}}):[],Ie=_?i.allowedActions.Exchange.resources.map(ce=>ce.resourceId):[];let G;const Y=[],ne=[];for(let ce of z)ce.isCredit?G=ce:(Y.push(ce),ne.push(!F&&!B&&(ce.isNew||ce.allocated!=ce.requested)?Hd.edited:Ie.includes(ce.resourceId)?"":Hd.disabled));const be=`Add ${Y.length?"another":"a"} resource to your exchange...`,we=ce=>ce.requested-ce.used,Ne=(ce,fe)=>{const Ve=fe.allocated-fe.used,Ge=zp(Number(ce.replace(/[^0-9-.]/g,"")),fe.decimalPlaces),tt=Math.min(0,Ve);if(Ge<tt)return tt;let ot=G.requested*G.exchangeRates.base.unitCost;const Ae=(fe.allocated-fe.requested)*fe.exchangeRates.base.unitCost,Rt=Math.min(ot,Ae);ot-=Rt;let dt=fe.requested-fe.used+Rt/fe.exchangeRates.base.unitCost;return ot>0&&(dt+=ot/fe.exchangeRates.current.unitCost),Ge>dt?zp(dt,fe.decimalPlaces,"floor"):Ge},Oe=[{key:"name",name:"Resource",format:(ce,fe)=>m.jsx(Wd,{resource:fe}),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(ce,fe)=>m.jsx(qp,{status:ce?"Active":fe.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(ce,fe)=>fe.isBoolean?m.jsx(m.Fragment,{children:"—"}):[m.jsx("abbr",{title:eO(ce,fe.exchangeRates.base.unitCost,G.name),children:ce},"base"),m.jsx(nj,{creditResource:G,resource:fe,short:!0},"discount")]},{key:"used",name:"Usage",class:"text-end",format:(ce,fe)=>fe.isBoolean?m.jsx(m.Fragment,{children:"—"}):m.jsxs(m.Fragment,{children:[ga(ce),(R.currentUser.resourceIds.includes(fe.resourceId)||R.currentUser.resourceAccountInactiveIds.includes(fe.resourceId))&&m.jsx(_0,{icon:"table",onClick:()=>u(fe.resourceRepositoryKey),target:"_blank",title:`${fe.name} Usage Details`})]})}];return _&&Oe.push({key:"requested",name:"Balance",class:"text-end",rowClass:ce=>!F&&!B&&Ie.includes(ce.resourceId)?Hd.input:"",format:(ce,fe)=>{const Ve=!F&&!B&&Ie.includes(fe.resourceId);return fe.isBoolean?m.jsx("input",{className:"form-check-input",type:"checkbox",checked:ce==1,disabled:!Ve,onChange:Ge=>v(fe.resourceId,Ge.target.checked?1:0)}):Ve?m.jsx(BZ,{classes:"text-end w-100",clean:Ge=>Ne(Ge,fe),format:ga,label:`Balance for ${fe.name}`,setValue:Ge=>{v(fe.resourceId,Ge+fe.used)},style:{padding:"0.1rem 0.5rem"},value:we(fe)}):ga(we(fe))},formatHeader:ce=>m.jsxs(m.Fragment,{children:[ce,!F&&!B?m.jsx(Up,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:R.tab=="resources",children:"You can increase or decrease the balance below to change your allocation on a resource. Enter the total amount you would like to have available once the exchange is complete."}):null]})}),m.jsxs("div",{className:"resources",children:[de,z.length?m.jsx(VZ,{requestId:t}):null,G&&(_||A||L)?m.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[m.jsxs("span",{children:[yc(Jt.resourceTypeIcons.credit)," ",ga(G.requested,G)," ",G.unit," available to exchange"]}),A||L?m.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:ue,children:[yc(Jt.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,Y.length?m.jsx(ou,{columns:Oe,rows:Y,rowClasses:ne,classes:re.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):m.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),re.length?m.jsxs(m.Fragment,{children:[m.jsx(jZ,{resources:_&&i.allowedActions.Exchange.resources||[]}),m.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:j,children:m.jsx(o1,{classNames:{control:()=>"react-select mb-1"},options:re,onChange:ce=>l(ce.value),placeholder:be,value:null,"aria-label":be,formatOptionLabel:({value:ce,label:fe})=>[fe,m.jsx(nj,{creditResource:G,resource:Le[ce]},"discount")]})}),Y.length?null:m.jsx(Up,{bg:"secondary",color:"dark",visible:R.tab=="resources",initial:!0,target:j,children:"Ready to get started? Search for a resource to add it to your project."}),m.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",m.jsx("a",{href:Jt.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,_&&!F&&!B?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"mb-3",children:[m.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),m.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:X,onChange:ce=>h(ce.target.value),style:{minHeight:"3rem"}})]}),m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:P||!Ce&&!_e&&!Ee,onClick:d,children:"Reset Form"}),m.jsx("button",{ref:I,type:"button",className:"btn btn-secondary",disabled:P||!Ce||!_e||ge,onClick:w,children:P?"Submitting...":"Submit for Approval"})]}),Ce&&!ge?m.jsx(Up,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:I,visible:R.tab=="resources",children:"When you are finished adding resources, enter a justification for the requested resources above. Then you can submit your exchange for approval."}):null]}):null]})}function $Z({question:t,requestId:r,grantNumber:i}){const{request:l,setResourceQuestionValues:u}=ri(r,i),d=k.useId();if(!t||!l||l.error)return;const{attributeSetId:v,attributes:h,fieldType:y,label:C,resourceId:x,values:w}=t,R=h[0],j=R.required?"required":"",I=F=>u(x,v,F.target.value?[F.target.value]:[]),_=F=>{u(x,v,Array.from(F.target.options).filter(({selected:U})=>U).map(({value:U})=>parseInt(U,10)))},A=F=>{const U=parseInt(F.target.value,10),B=F.target.checked?[...w,U]:w.filter(z=>z!=U);u(x,v,B)},L=F=>{const U=parseInt(F.target.value);u(x,v,isNaN(U)?[]:[U])};let P;if(["calendar","integer_only","text"].includes(y)){const F={calendar:"date",integer_only:"number",text:"text"}[y];P=m.jsx("input",{className:"form-control",id:d,type:F,placeholder:R.label,required:R.required,value:w[0]||"",onChange:y=="integer_only"?L:I})}else if(y=="textarea")P=m.jsx("textarea",{className:"form-control",id:d,placeholder:R.label,required:R.required,value:w[0]||"",onChange:I});else if(y=="drop_down"||h.length>=10){const F=y=="multi_sel";P=m.jsxs("select",{id:d,className:"form-select",required:R.required,multiple:F,onChange:F?_:L,value:F?w:w[0]||"",children:[F?null:m.jsx("option",{}),h.map(U=>m.jsx("option",{value:U.resourceAttributeId,children:U.label},U.resourceAttributeId))]})}else P=m.jsx("div",{id:d,children:h.map(F=>{const U=`resource-attribute-${F.resourceAttributeId}`;return m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:y=="single_sel"?"radio":"checkbox",id:U,value:F.resourceAttributeId,checked:w.includes(F.resourceAttributeId),onChange:y=="single_sel"?L:A}),m.jsx("label",{className:"form-check-label",htmlFor:U,children:F.label})]},F.resourceAttributeId)})});return m.jsxs("div",{className:"mb-3",children:[m.jsx("label",{htmlFor:d,className:`form-label ${j}`,children:C}),P]})}function UZ({requestId:t,grantNumber:r}){const{request:i,saveResources:l,toggleResourcesModal:u}=ri(t,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const v=[],h=i.resources.filter(C=>C.allocated!=C.requested).map(C=>{const x=C.requested-C.allocated;return C.questions&&v.push(...C.questions),m.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[C.name,m.jsx("span",{className:`badge bg-${x>0?"primary":"danger"} rounded-pill`,children:C.isBoolean?hR(C.requested):m.jsxs(m.Fragment,{children:[x>0?"+":"",ga(x,C)," ",C.unit]})})]},C.resourceId)}),y=v.some(({attributes:C,values:x})=>x.length==0&&C[0].required);return m.jsxs(Ln,{size:"lg",show:i.showResourcesModal,onHide:u,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Complete Your Exchange"})}),m.jsxs(Ln.Body,{children:[m.jsx("p",{children:"Please review your exchange to make sure it includes all the resources you need. Once you submit it, you will not be able to request another exchange until this one has been processed by the resource providers."}),m.jsx("ul",{className:"list-group mb-3",children:h}),v.length?m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Resource Questions"}),m.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),v.map(C=>m.jsx($Z,{question:C,requestId:t,grantNumber:r},C.attributeSetId))]}):null]}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:u,children:"Continue Editing"}),m.jsx("button",{type:"button",className:"btn btn-secondary",onClick:l,disabled:y,children:"Submit"})]})})]})}function oM({user:t}){const r=`${t.lastName}, ${t.firstName}`;let i=r,l=[t.organization,t.email].filter(u=>u).join(", ");return l&&(i+=`: ${l}`),m.jsx("abbr",{title:i,children:r})}function HZ({requestId:t,grantNumber:r}){const{project:i}=Ji(r),{request:l,closeUsageDetailModal:u}=ri(t,r);if(!l||l.error||!i||i.error||!l.usageDetailStatus)return;let d,v="Usage";if(l.usageDetailStatus==ta.pending)d=m.jsx(eh,{});else if(l.usageDetailStatus==ta.error)d=m.jsx(Mr,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:h,resourceDisplayName:y,resourceRepositoryKey:C,users:x}=l.usageDetail,{full:w,short:R}=U0(y),j=l.resources.find(L=>L.resourceRepositoryKey==C),I=L=>ga(L,{decimalPlaces:j?j.decimalPlaces:void 0}),_={};for(let L of i.users)_[L.username]=L;v=m.jsxs(m.Fragment,{children:["Usage: ",R||w," for ",h]});const A=[{key:"name",name:"Name",format:(L,{lastName:P,firstName:F,portalUsername:U})=>{const B=_[U];return B?m.jsx(oM,{user:B}):`${P}, ${F}`}},{key:"portalUsername",name:"Resource Username",format:L=>{const P=_[L],F=P?P.resourceUsernames[j.resourceId]:null;return F||m.jsx(m.Fragment,{children:"—"})}},{key:"role",name:"Role",format:L=>nO[L].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:I},{key:"lastMonth",name:"Last Month",class:"text-end",format:I},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:I},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:I},{key:"total",name:"All Time",class:"text-end",format:I}];d=x.length?m.jsx(ou,{rows:x,columns:A}):m.jsx(Mr,{color:"info",children:"There is no usage for this resource."})}return m.jsxs(Ln,{show:!0,size:"lg",onHide:u,scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:v})}),m.jsx(Ln.Body,{children:d})]})}var GZ=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function WZ(t){var r=t.defaultOptions,i=r===void 0?!1:r,l=t.cacheOptions,u=l===void 0?!1:l,d=t.loadOptions;t.options;var v=t.isLoading,h=v===void 0?!1:v,y=t.onInputChange,C=t.filterOption,x=C===void 0?null:C,w=al(t,GZ),R=w.inputValue,j=k.useRef(void 0),I=k.useRef(!1),_=k.useState(Array.isArray(i)?i:void 0),A=na(_,2),L=A[0],P=A[1],F=k.useState(typeof R<"u"?R:""),U=na(F,2),B=U[0],z=U[1],X=k.useState(i===!0),Z=na(X,2),ue=Z[0],ie=Z[1],ge=k.useState(void 0),de=na(ge,2),_e=de[0],Ee=de[1],Ce=k.useState([]),je=na(Ce,2),Le=je[0],re=je[1],Ie=k.useState(!1),G=na(Ie,2),Y=G[0],ne=G[1],be=k.useState({}),we=na(be,2),Ne=we[0],Oe=we[1],ce=k.useState(void 0),fe=na(ce,2),Ve=fe[0],Ge=fe[1],tt=k.useState(void 0),ot=na(tt,2),Ae=ot[0],Rt=ot[1];u!==Ae&&(Oe({}),Rt(u)),i!==Ve&&(P(Array.isArray(i)?i:void 0),Ge(i)),k.useEffect(function(){return I.current=!0,function(){I.current=!1}},[]);var dt=k.useCallback(function(ln,In){if(!d)return In();var Vt=d(ln,In);Vt&&typeof Vt.then=="function"&&Vt.then(In,function(){return In()})},[d]);k.useEffect(function(){i===!0&&dt(B,function(ln){I.current&&(P(ln||[]),ie(!!j.current))})},[]);var en=k.useCallback(function(ln,In){var Vt=fX(ln,In,y);if(!Vt){j.current=void 0,z(""),Ee(""),re([]),ie(!1),ne(!1);return}if(u&&Ne[Vt])z(Vt),Ee(Vt),re(Ne[Vt]),ie(!1),ne(!1);else{var xn=j.current={};z(Vt),ie(!0),ne(!_e),dt(Vt,function(Qn){I&&xn===j.current&&(j.current=void 0,ie(!1),Ee(Vt),re(Qn||[]),ne(!1),Oe(Qn?bt(bt({},Ne),{},Bp({},Vt,Qn)):Ne))})}},[u,dt,_e,Ne,y]),sn=Y?[]:B&&_e?Le:L||[];return bt(bt({},w),{},{options:sn,isLoading:ue||h,onInputChange:en,filterOption:x})}var XZ=k.forwardRef(function(t,r){var i=WZ(t),l=mk(i);return k.createElement(i1,_t({ref:r},l))}),YZ=XZ;const aj=({description:t,disabled:r=!1,onChange:i,selectedLength:l,totalLength:u})=>{const d=k.useRef(),v=k.useId();let h=l==u,y=l>0&&!h;return k.useEffect(()=>{d.current&&(d.current.checked=h,d.current.indeterminate=y)},[h,y]),m.jsxs(m.Fragment,{children:[m.jsx("input",{className:"custom-checkbox form-check-input",disabled:r,id:v,onChange:C=>i(C.target.checked),ref:d,type:"checkbox"}),m.jsx("label",{className:"form-check-label",htmlFor:v,"aria-description":`${h?"Deselect":"Select"} ${t}`})]})};function ZZ({grantNumber:t,requestId:r}){const{project:i,addUser:l,resetUsers:u,saveUsers:d,setTab:v,setUserRole:h,statuses:y,toggleUsersResources:C}=Ji(t),{request:x}=i?ri(r||i.currentRequestId,t):{request:null};if(!i||!i.currentRequestId||!x||i.error||x.error)return;const w=i.isManager,R="Exchange"in x.allowedActions,j=i.usersStatus==y.pending,I=i.usersStatus==y.success,_=i.usersStatus==y.error,A=i.users,L=x.resources.filter(Aw),P=L.length==0,F=A.find(ie=>ie.hasChanges)!==void 0,U=A.find(ie=>ie.role!="pi")!==void 0;let B;I&&!F?B=m.jsx(Mr,{color:"info",children:"Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page."}):_?B=m.jsx(Mr,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?L.length?P&&(B=m.jsx(Mr,{color:"warning",children:"This project does not have any active resources."})):B=m.jsxs(Mr,{color:"warning",children:["This project does not have any resources."," ",R?m.jsx("a",{href:Jt.routes.request_action_path(x.requestId,"new?action_type=Exchange"),onClick:ie=>{ie.preventDefault(),v("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):B=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",vR(i)," to request a change."]});const z=(ie,ge)=>{let de,_e,Ee,Ce;if(ge.key=="all"){de="all resources for all users",_e=je=>C(je),Ee=0;for(let je of A)Ee+=je.resourceIds.length;Ce=A.length*L.length}else de=`all users for ${ge.name}`,_e=je=>C(je,null,ge.key),Ee=A.filter(({resourceIds:je})=>je.includes(ge.key)).length,Ce=A.length;return m.jsxs(m.Fragment,{children:[ge.key=="all"?ie:m.jsx(Wd,{resource:ge,userGuide:!1}),m.jsx("br",{}),m.jsx(aj,{description:de,disabled:ge.disabled,onChange:_e,selectedLength:Ee,totalLength:Ce})]})},X=H0.map(({role:ie,name:ge})=>m.jsx("option",{value:ie,children:ge},ie)),Z=[{key:"name",name:"Name",width:200,format:(ie,ge)=>m.jsx(oM,{user:ge})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(ie,ge)=>m.jsx("select",{className:"form-select",value:ie,onChange:de=>h(ge.username,de.target.value),disabled:!w||ie=="pi"||ie=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:X.filter(de=>de.key==ie||!["pi","co_pi"].includes(de.key))})}];L.length&&Z.push({key:"all",name:"All Resources",class:`text-center ${Hd.important}`,disabled:!w||P,width:100,format:(ie,ge)=>m.jsx(aj,{description:`all users for ${ge.name}`,disabled:!w||P,onChange:de=>C(de,ge.username),selectedLength:ge.resourceIds.length,totalLength:L.length}),formatHeader:z});for(let ie of L)Z.push({key:ie.resourceId,name:ie.name,class:"text-center",disabled:!w||!ie.isActive,icon:ie.icon,format:(ge,de)=>m.jsx(m.Fragment,{children:m.jsx("input",{className:"form-check-input",disabled:!w||!ie.isActive,onChange:_e=>C(_e.target.checked,de.username,ie.resourceId),type:"checkbox",checked:de.resourceIds.includes(ie.resourceId)})}),formatHeader:z});const ue=A.map(ie=>ie.hasChanges?Hd.edited:"");return m.jsxs(m.Fragment,{children:[B,m.jsx(ou,{rows:A,columns:Z,frozenColumns:L.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:ue,scrollRowIndex:i.usersNewRowIndex}),w&&L.length&&!P?m.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:m.jsx(YZ,{classNames:{control:()=>"react-select"},loadOptions:async ie=>(await eG(ie)).map(de=>({value:de,label:`${de.username} (${de.firstName} ${de.lastName}, ${de.organization}${de.email?`, ${de.email}`:""})`})),onChange:ie=>l(ie.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,w&&(L.length&&!P||U)?m.jsxs("div",{className:"d-flex mt-3",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:j||!F,onClick:u,children:"Reset Form"}),m.jsx("button",{type:"button",className:"btn btn-secondary",disabled:j||!F,onClick:d,children:j?"Saving...":"Save Changes"})]}):null]})}function qZ({requestId:t,grantNumber:r}){const{request:i}=ri(t,r),{project:l,setRequest:u,setTab:d}=Ji(r||i.grantNumber);if(!i)return;if(i.error)return m.jsx(Mr,{color:"danger",children:i.error});const v=i.timeStatus||i.actions[0].status.toLowerCase(),h=i.actions.find(({showDeleteModal:C})=>C),y=[];return i.resources.length||y.push("resources"),t!=l.currentRequestId&&y.push("users"),m.jsxs("div",{className:"request",children:[i.returnedForCorrections?m.jsxs(Mr,{color:"warning",children:[m.jsx("p",{children:"Your request has been returned for corrections. These are the notes from the Allocations Team"}),m.jsx("div",{className:NG.returnedForCorrectionsNotes,children:i.returnedForCorrectionsNotes}),m.jsx("p",{className:"mt-3",children:"Please address these issues by clicking the Edit button to edit your request."})]}):"",i.timeStatus!="current"&&!i.returnedForCorrections?m.jsxs(Mr,{color:"warning",children:["You are viewing ","aeiou".includes(v[0])?"an":"a"," ",v," request."," ",y.length?`You cannot manage ${y.join(" or ")} for this request.`:""," ",l.currentRequestId?m.jsx("a",{href:Jt.routes.request_path(l.currentRequestId),onClick:C=>{C.preventDefault(),u(l.currentRequestId)},children:"Go to the current request."}):null]}):null,m.jsxs(U3,{activeKey:l.tab,onSelect:d,className:"mt-3 mb-3",children:[m.jsx(zb,{eventKey:"overview",title:"Overview",className:"mb-0",children:m.jsx(RW,{requestId:t,grantNumber:r})}),m.jsx(zb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:m.jsx(zZ,{requestId:t})}),m.jsx(zb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:m.jsx(ZZ,{grantNumber:r})}),m.jsx(zb,{eventKey:"history",title:"History",children:m.jsx(K4,{requestId:t})})]}),m.jsx(Z4,{grantNumber:r,requestId:t}),m.jsx(q4,{grantNumber:r,requestId:t}),m.jsx(J4,{grantNumber:r,requestId:t,actionId:h?h.actionId:null}),m.jsx(UZ,{grantNumber:r,requestId:t}),m.jsx(HZ,{grantNumber:r,requestId:t})]})}function JZ({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleDeleteModal:u}=ri(t,r);if(!i)return;const{actions:d,allowedActions:v}=i,h=[];v&&(("Extension"in v||"Renewal"in v)&&h.push(["Extend End Date",C=>{C.preventDefault(),l()},"calendar-plus"]),"Final Report"in v&&h.push(["Submit Final Report",`${Jt.routes.request_action_path(t,"new")}?action_type=Final+Report`,"file-earmark-check"]));const y=d.find(C=>C.isRequest);if(y){const C=y.allowedOperations||[];C.includes("Edit")&&h.push(["Edit",Jt.routes.edit_request_path(i.requestId),"pencil"]),C.includes("Delete")&&h.push(["Delete",x=>{x.preventDefault(),u(y.actionId)},"trash","danger"])}return h.map(([C,x,w,R])=>{const j=m.jsxs(m.Fragment,{children:[" ",w&&m.jsx("i",{className:`bi bi-${w} me-1`}),C]});return typeof x=="function"?m.jsx("button",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,onClick:x,children:j},C):m.jsx("a",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,href:x,children:j},C)})}function QZ({open:t=!1,grantNumber:r,title:i,status:l}){const[u,d]=k.useState(t),{project:v,setRequest:h}=Ji(r,!u&&i&&l&&!0),y=`project-${r}`;let C=null;if(u&&v)if(v.error)C=m.jsx(Mr,{color:"danger",children:v.error});else{let x;const w=v.requestsList.map(R=>(R.requestId==v.selectedRequestId&&(x=R),m.jsx("option",{value:R.requestId,children:pR(R)},R.requestId)));C=m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"d-flex",children:[m.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:R=>h(parseInt(R.target.value,10)),value:v.selectedRequestId,disabled:w.length<2,children:w}),m.jsx(JZ,{requestId:v.selectedRequestId,grantNumber:r})]}),x?m.jsx(qZ,{...x,grantNumber:r}):null]})}return m.jsxs("div",{className:`${GI.project} card mb-3`,children:[m.jsxs("div",{className:`card-header d-flex justify-content-between ${u?"":"border-bottom-0"}`,children:[m.jsx("button",{"aria-expanded":u,"aria-controls":y,className:GI.expand,onClick:()=>d(!u),children:m.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[m.jsx("i",{className:`bi bi-caret-${u?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||v.title]})}),m.jsx(qp,{status:l||v.status})]}),m.jsx("div",{className:"card-body",id:y,hidden:!u||!v,children:C})]})}function KZ({username:t,openFirst:r=1}){const{error:i,loading:l,projects:u}=wG(t);return l?m.jsx(eh,{}):i?m.jsxs(Mr,{color:"danger",children:[i," ",m.jsx("a",{href:"#",onClick:d=>{d.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]}):u.length?u.map((d,v)=>m.jsx(QZ,{open:v<r,...d},d.grantNumber)):m.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[m.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),m.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[m.jsxs("a",{className:"btn btn-primary w-25",href:Jt.routes.project_types_path(),children:[m.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),m.jsxs("a",{className:"btn btn-secondary w-25",href:Jt.routes.get_your_first_project_path(),children:[m.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",m.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),m.jsxs("a",{className:"btn btn-primary w-25",href:Jt.routes.how_to_path(),children:[m.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]})}const sM={apiUrl:null,listIsFiltered:!1,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,singleEntry:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:"",requestNumber:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},e6=Di("projectsBrowser/initApp",async(t,{getState:r,dispatch:i})=>{const l=window.location.search,u=new URLSearchParams(l);u.has("_requestNumber")&&(i(Qw({name:"requestNumber",value:u.get("_requestNumber")})),i(uM(!0))),await i(Jw()),await i(Xd()),i(t6())}),t6=Di("projectsBrowser/filterCleanup",async(t,{getState:r,dispatch:i})=>{const u=r().projectsBrowser.typeLists;i(lM({...u,orgs:["-- ALL --"].concat(u.orgs)}))}),Jw=Di("projectsBrowser/getFilters",async(t,{getState:r,dispatch:i})=>{const u=`${r().projectsBrowser.apiUrl}?filters=1`,v=await(await fetch(u)).json();i(lM(v.filters))}),Xd=Di("projectsBrowser/getProjects",async(t,{getState:r,dispatch:i})=>{const l=r().projectsBrowser,u=l.filters,d=l.typeLists,v=d.fosTypes.filter(x=>x.checked);let h=`${l.apiUrl}?page=${l.pageData.current_page}`;return u.requestNumber!=""?(h+=`&request_number=${u.requestNumber}`,i(oj(!0))):(i(oj(!1)),v.length!=d.fosTypes.length&&(h+=`&fos=${v.map(x=>x.fosTypeId).join(",")}`),u.org!=""&&u.org!="-- ALL --"&&(h+=`&org=${encodeURIComponent(u.org)}`),u.allocationType!=""&&(h+=`&allocation_type=${u.allocationType}`),u.resource!=""&&(h+=`&resources=${u.resource}`)),await(await fetch(h)).json()}),s1=z0({name:"projectsBrowser",initialState:sM,reducers:{resetFilters:t=>{t.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},s1.caseReducers.toggleAllFos(t)},setApiUrl:(t,{payload:r})=>{t.apiUrl=r},setShowPagination:(t,{payload:r})=>{t.showPagination=r},setTypeLists:(t,{payload:r})=>{t.typeLists=r},toggleAllFos:t=>{t.typeLists.fosTypes.forEach(r=>r.checked=!t.filters.allFosToggled),t.filters.allFosToggled=!t.filters.allFosToggled},toggleFos:(t,{payload:r})=>{t.typeLists.fosTypes.forEach(i=>{i.fosTypeId==r.fosTypeId&&(i.checked=!i.checked)}),t.typeLists.fosTypes.filter(i=>i.checked).length!=t.typeLists.fosTypes.length?t.filters.allFosToggled=!1:t.filters.allFosToggled=!0},toggleListFiltered:(t,{payload:r})=>{t.listIsFiltered=r},toggleSingleEntry:(t,{payload:r})=>{t.singleEntry=r},updateFilter:(t,{payload:r})=>{t.filters[r.name]=r.value},updatePageData:(t,{payload:r})=>{r.current_page&&(t.pageData.current_page=r.current_page),r.last_page&&(t.pageData.last_page=r.last_page)}},extraReducers:t=>{t.addCase(Xd.pending,r=>{r.projectsLoaded=!1}).addCase(Xd.fulfilled,(r,i)=>{const l=i.payload;r.projectsLoaded=!0,r.projects=l.projects,l.pages!=r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,r.pageData.last_page=l.pages}).addCase(Xd.rejected,(r,i)=>{console.log(i.error)}).addCase(Jw.pending,r=>{r.filtersLoaded=!1}).addCase(Jw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:n6,setApiUrl:zq,setShowPagination:ij,setTypeLists:lM,toggleAllFos:r6,toggleFos:a6,toggleListFiltered:uM,toggleSingleEntry:oj,updateFilter:Qw,updatePageData:Kw}=s1.actions,i6=t=>t.projectsBrowser.filters,o6=t=>t.projectsBrowser.filtersLoaded,s6=t=>t.projectsBrowser.listIsFiltered,l6=t=>t.projectsBrowser.singleEntry,u6=t=>t.projectsBrowser.projectsLoaded,c6=t=>t.projectsBrowser.pageData,d6=t=>t.projectsBrowser.projects,f6=t=>t.projectsBrowser.filtersLoaded&&t.projectsBrowser.projectsLoaded&&t.projectsBrowser.pageData.last_page>1,p6=t=>t.projectsBrowser.typeLists,h6=s1.reducer;const v6=()=>{const t=No(),r=Jn(i6),i=Jn(p6),l=Jn(s6),u=i.orgs.map(_=>({label:_,value:_})),d=k.useRef(),[v,h]=k.useState(null),y={height:"200px",overflowX:"auto",padding:"2px"},C=_=>{t(Qw({name:_.target.name,value:_.target.value}))},x=()=>{window.scrollTo(0,0),R(!0),t(ij(!1)),t(Kw({current_page:1})),t(Xd())},w=()=>{h(null),t(ij(!1)),t(Kw({current_page:1})),t(n6()),l&&(window.scrollTo(0,0),t(Xd()),R(!1))},R=_=>{t(uM(_))},j=_=>{h(_),t(Qw({name:"org",value:_.value}))},I=()=>r.org==""&&r.allocationType==""&&r.allFosToggled&&r.resource==""&&r.requestNumber=="";return m.jsx("div",{className:"row sticky-top mb-2",children:m.jsxs("div",{className:"col",children:[m.jsx("h3",{className:"mb-2",children:"Filters"}),m.jsx("h5",{className:"mb-1",children:"Field of Science"}),m.jsxs("div",{className:"border mb-3",style:y,children:[m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:r.allFosToggled,onChange:()=>{t(r6())}}),m.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(_=>m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:"checkbox",value:_.fosTypeId,id:`fos_${_.fosTypeId}`,checked:_.checked,onChange:()=>t(a6(_))}),m.jsx("label",{className:"form-check-label",htmlFor:`fos_${_.fosTypeId}`,children:_.fosName})]},`fos_${_.fosTypeId}`))]}),m.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),m.jsx("div",{className:"mb-3",children:m.jsx(o1,{options:u,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:d,closeMenuOnSelect:!0,onChange:j,value:v,"aria-labelledby":"org_select_label"},"org_select")}),m.jsx("h5",{id:"project_type_label",className:"mb-1",children:m.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),m.jsx("div",{className:"mb-3",children:m.jsxs("select",{name:"allocationType",id:"project_type_select",value:r.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:_=>C(_),children:[m.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((_,A)=>m.jsx("option",{value:_,children:_},`allocation_type_${A}`))]})}),m.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),m.jsx("div",{className:"mb-3",children:m.jsxs("select",{name:"resource",id:"resource_select",value:r.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:_=>C(_),children:[m.jsx("option",{value:"",children:"-- All --"}),i.resources.map((_,A)=>m.jsx("option",{value:_.resourceId,children:_.resourceName},`resource_${A}`))]})}),m.jsx("h5",{id:"request_number_label",className:"mb-1",children:"Request Number"}),m.jsx("div",{className:"mb-3",children:m.jsx("input",{type:"text",className:"form-control",value:r.requestNumber,name:"requestNumber",id:"requestNumber","aria-labelledby":"request_number_label",onChange:_=>C(_)})}),m.jsxs("div",{className:"mt-2",children:[m.jsx("button",{className:"btn btn-primary me-2",onClick:x,children:"Submit"}),m.jsx("button",{className:"btn btn-secondary",disabled:I(),onClick:w,children:"Reset"})]})]})})};const m6=({project:t})=>{const r=t.resources,[i,l]=k.useState(!1),d=Jn(l6)?["0","1"]:[],v=w=>{let R=w.units?w.units:w.resourceUnits;const j=w.allocation?w.allocation:w.amount;if(R=="[Yes = 1, No = 0]"||R=="Yes / No")return j=="1.0"?"Yes":"No";{let I="0";return parseInt(j)&&(I=parseInt(j).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),R=="ACCESS Credits"&&(R=m.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),R=="Dollars"?`$${I}`:m.jsxs(m.Fragment,{children:[I," ",R]})}},h=()=>{const{origin:w,pathname:R}=window.location,j=`${w}${R}?_requestNumber=${t.requestNumber}`;navigator.clipboard.writeText(j),setTimeout(()=>l(!1),2e3)},y=()=>t.requestNumber&&t.requestNumber!=""?`(${t.requestNumber})`:m.jsx(m.Fragment,{}),C=m.jsx(J0,{id:"link-tooltip",children:"Link Copied!"}),x=()=>{if(y()){const w={background:"none",border:"none",color:"#fff",fontSize:"24px"};return m.jsx(zR,{placement:"left",trigger:"click",defaultShow:i,show:i,onToggle:()=>l(!i),overlay:C,children:m.jsx("button",{onClick:h,style:w,children:m.jsx("i",{className:"bi bi-link-45deg",children:m.jsx("div",{className:"d-none",children:"Direct link to project"})})})})}return m.jsx(m.Fragment,{})};return m.jsxs("div",{className:"card mb-4",children:[m.jsx("div",{className:"card-header bg-primary text-white",children:m.jsxs("div",{className:"d-flex justify-content-between",children:[m.jsxs("div",{children:[m.jsxs("span",{className:"fw-bold",children:[y()," ",t.requestTitle]})," ",m.jsx("br",{}),m.jsxs("span",{className:"fst-italic",children:[t.pi," ",m.jsxs("small",{children:[" (",t.piInstitution,") "]})]})]}),m.jsx("div",{children:x()})]})}),m.jsxs("div",{className:"card-body",children:[m.jsxs("div",{className:"row fw-bold border-bottom",children:[m.jsx("div",{className:"col",children:m.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),m.jsx("div",{className:"col",children:m.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),m.jsx("div",{className:"col",children:m.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col",children:t.fos}),m.jsx("div",{className:"col",children:t.allocationType}),m.jsxs("div",{className:"col",children:[t.beginDate," to ",t.endDate]})]}),m.jsxs(us,{defaultActiveKey:d,activeKey:d,flush:!0,className:"mt-3 mb-1",alwaysOpen:!0,children:[m.jsxs(us.Item,{eventKey:"0",children:[m.jsx(us.Header,{children:"Resources"}),m.jsx(us.Body,{children:m.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("td",{children:m.jsx("span",{className:"m-0 p-0",children:"Resource"})}),m.jsx("td",{children:m.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),m.jsx("tbody",{children:r.map((w,R)=>m.jsxs("tr",{children:[m.jsx("td",{children:w.resourceName}),m.jsx("td",{style:{whiteSpace:"nowrap"},children:v(w)})]},`resource_${t.requestId}_${R}`))})]})})]}),m.jsxs(us.Item,{eventKey:"1",children:[m.jsx(us.Header,{children:"Abstract"}),m.jsx(us.Body,{children:m.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:t.abstract})})]})]})]})]})},g6=()=>{const t=Jn(d6);return t.length==0?m.jsx("div",{children:"No Projects Found"}):m.jsx("div",{children:t.map((r,i)=>m.jsx(m6,{project:r},`project_${i}`))})};const sj=()=>{const t=No(),r=Jn(c6),[i,l]=k.useState([]),[u,d]=k.useState("0"),v=Array.from({length:r.last_page},(I,_)=>_),h=10,y={width:"50px",textAlign:"center"};k.useEffect(()=>{w()},[r]);const C=I=>{const _=parseInt(I);t(Kw({current_page:I})),t(Xd(_))},x=I=>(event.preventDefault(),d("0"),C(I),!1),w=()=>{const I=[];if(r.last_page>h)if(r.current_page>4){I.push(1),I.push("spacer");for(var _=1;_>0;_--)r.current_page-_>1&&I.push(r.current_page-_);I.push(["current",r.current_page]);for(var _=1;_<2;_++)r.current_page+_<=r.last_page&&I.push(r.current_page+_);r.last_page-r.current_page>1&&(I.push("spacer"),I.push(r.last_page))}else[1,2,3,4,5].forEach(A=>{A==r.current_page?I.push(["current",A]):I.push(A)}),I.push("spacer"),I.push(r.last_page);else for(var _=1;_<=r.last_page;_++)_==r.current_page?I.push(["current",_]):I.push(_);l(I)},R=I=>{let _="";return typeof I=="object"?[I,_]=I:_=I,I=="spacer"?m.jsx("li",{className:"page-item disabled",children:m.jsx("span",{className:"page-link",style:y,children:". . ."})}):I=="current"?m.jsx("li",{className:"page-item active","aria-current":"page",children:m.jsx("span",{className:"page-link",style:y,children:_})}):m.jsx("li",{className:"page-item",children:m.jsx("button",{className:"page-link",style:y,onClick:()=>C(I),children:_})})},j=()=>m.jsx("li",{className:"page-item",children:m.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:u,onChange:I=>x(I.target.value),children:[m.jsx("option",{value:"0",children:"Go To"}),v.map(I=>m.jsx("option",{value:I+1,children:I+1},`page_option_${I}`))]})});return m.jsx("div",{children:m.jsx("nav",{"aria-label":"Pages for the table",children:m.jsxs("ul",{className:"pagination",children:[m.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:m.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>C(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((I,_)=>m.jsx(pr.Fragment,{children:R(I)},`page_${_}`)),r.last_page>h?j():"",m.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:m.jsx("button",{className:"page-link",style:y,onClick:()=>C(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},y6=({api_url:t})=>{const r=No(),i=Jn(u6),l=Jn(o6),u=Jn(f6),d=m.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(e6())},[]),m.jsx("div",{className:"container-fluid",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-3",children:m.jsx(v6,{})}),m.jsxs("div",{className:"col-sm-9",children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(sj,{}):""})}),m.jsx("div",{className:"row",id:"projectListRow",children:m.jsx("div",{className:"col",children:i&&l?m.jsx(g6,{}):d})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(sj,{scroll:"projects_browser_app"}):""})})]})]})})},b6=t=>t.publications_store.publication,C6=t=>t.publications_store.publication.doi,x6=t=>t.publications_store.publication_types,cM=t=>t.publications_store.publication.authors,S6=t=>t.publications_store.tag_categories,E6=t=>t.publications_store.projects,w6=t=>t.publications_store.publication.tags,R6=t=>t.publications_store.errors,dM=t=>t.publications_store.data_loaded,fM=t=>t.publications_store.show_saved,l1=t=>t.publications_store.saving,T6=t=>t.publications_store.modal,pM=t=>t.publications_store.form_valid,hM=t=>!l1(t)&&dM(t)&&pM(t)&&vM(t)&&t.publications_store.projects.filter(r=>r.selected).length>0,vM=t=>{const r=cM(t);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},mM=t=>({type:"UPDATE_PUBLICATION",payload:t}),_6=t=>({type:"UPDATE_FIELD",payload:t}),eR=t=>({type:"CHANGE_PUB_TYPE",payload:t}),N6=t=>({type:"SET_PUBLICATION",payload:t}),I6=()=>({type:"ADD_AUTHOR"}),A6=t=>({type:"UPDATE_AUTHOR",payload:t}),j6=t=>({type:"TOGGLE_REQUEST",payload:t}),km=t=>({type:"UPDATE_ERRORS",payload:t}),gM=t=>({type:"HIDE_ERROR",payload:t}),O6=t=>({type:"UPDATE_SELECTED_TAGS",payload:t}),D6=t=>({type:"DELETE_AUTHOR",payload:t}),k6=t=>({type:"DATA_LOADED",payload:t}),yM=t=>({type:"UPDATE_SHOW_SAVED",payload:t}),M6=()=>({type:"RESET_STATE"}),uw=t=>({type:"UPDATE_SAVING",payload:t}),L6=t=>({type:"SET_FORM_VALID",payload:t}),bM=t=>({type:"SET_GRANT_NUMBER",payload:t}),P6=t=>({type:"ADD_PROJECT",payload:t}),F6=(t,r,i)=>{let l=!0;const u=[];for(const v of r)t[v]||(l=!1,u.push(v));const d=t.authors||[];for(const v of d)for(const h of i)v[h]||(l=!1,u.includes(h)||u.push(h));return{formValid:l,missingFields:u}},V6=t=>t.length>0?m.jsxs("div",{role:"alert",children:[m.jsx("p",{children:"Please provide the following information before submitting:"}),m.jsx("ul",{children:t.map(r=>m.jsx("li",{children:B6(r)},r))})]}):null;function B6(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const z6=()=>async(t,r)=>{const i=r().publications_store.publication.doi,l=encodeURIComponent(i).replaceAll(".","%2E"),u="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${l}`).then(d=>d.json()).then(d=>{if(d.title!=""){let v=r().publications_store.publication_types.find(h=>h.citation_style_type==d.type);t(eR(v?v.publication_type:"Other")),t(N6(d))}else t(km(u))},d=>{t(km(u))})},$6=()=>async(t,r)=>{const i=r().publications_store.grant_number,l=Jt.routes.publications_find_project_path();await fetch(`${l}?grant_number=${i}`).then(u=>u.json()).then(u=>{t(P6(u)),t(bM(""))},()=>{t(km("Unable to find a project with this grant number."))})},CM=()=>async t=>{const r=/^\/requests/.test(window.location.pathname)?Jt.routes.publication_path("new.json"):window.location.href+".json";await fetch(r).then(i=>i.json()).then(i=>{t(k6(i))})},xM=()=>async(t,r)=>{const i=r().publications_store,l=i.projects.filter(R=>R.selected),u=Object.keys(i.selected_tags).map(R=>i.selected_tags[R]).flat(),d={...i.publication},v=i.errors,{formValid:h,missingFields:y}=F6(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!h){v.length>0&&Array.from(v).forEach(j=>{t(gM(j.id))});const R=V6(y);t(km(R));return}const C={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(R=>({...R,order:0})),tags:u,projects:l};let x,w;d.publication_id?(x=Jt.routes.publication_path(d.publication_id),w="PATCH"):(x=Jt.routes.publications_path(),w="POST"),t(uw(!0)),await fetch(x,{method:w,headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(R=>{i.redirect?window.location.href=Jt.routes.publications_path():(d.publication_id||(t(M6()),t(CM())),t(yM(!0)),t(uw(!1)))},()=>{t(uw(!1)),t(km("There was an error saving this publication."))})},U6=({doi:t,updatePublication:r,doiLookup:i})=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),m.jsxs("div",{className:"input-group",children:[m.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:t,onChange:l=>r(l.target.value)}),m.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>i(),children:"Lookup Publication"})]})]})}),H6=t=>({doi:C6(t)}),G6=t=>({updatePublication:r=>t(mM({key:"doi",value:r})),doiLookup:()=>t(z6())}),W6=ps(H6,G6)(U6),X6=({author:t,authorKey:r,updateAuthor:i,deleteAuthor:l})=>{const u=h=>{i({key:h.target.name,value:h.target.value,idx:r})},d=h=>m.jsx("td",{children:m.jsx("input",{type:"text",className:"form-control",name:h,id:h,value:t[h],onChange:y=>u(y)})},`field_${h}`),v=["first_name","last_name","affiliation"];return m.jsxs("tr",{children:[v.map(h=>d(h)),m.jsx("td",{children:r!==0&&m.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>l(r),children:m.jsx("i",{className:"bi bi-trash"})})})]})},Y6=t=>({updateAuthor:r=>t(A6(r)),deleteAuthor:r=>t(D6(r))}),lj=ps(null,Y6)(X6),Z6=({authors:t,addAuthor:r,authors_exist:i})=>{const l=t.length===0,u=()=>i?"":m.jsx("div",{className:"alert alert-danger",children:"You must add at least one author and each author must have a first and last name"});return m.jsxs("div",{children:[u(),m.jsxs("table",{className:"table",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{children:"First Name"}),m.jsx("th",{children:"Last Name"}),m.jsx("th",{children:"Affiliation"}),m.jsx("th",{})]})}),m.jsxs("tbody",{children:[t.map((d,v)=>m.jsx(lj,{author:d,authorKey:v},`author_${v}`)),l&&m.jsx(lj,{author:r()})]})]}),m.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},q6=t=>({authors:cM(t),authors_exist:vM(t)}),J6=t=>({addAuthor:()=>t(I6())}),Q6=ps(q6,J6)(Z6),K6=({category:t,publication_tags:r,updateSelectedTags:i,index:l})=>{const u=k.useRef(null),d=()=>{const h=r.filter(y=>y.label==t.label)[0];return h?h.options:[]},v=h=>{i({category:t.label,tags:h})};return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"fw-bold mb-1",children:t.label}),m.jsx("div",{className:"mb-3",children:m.jsx(o1,{classNames:{control:h=>h.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:d(),options:t.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${l}`,inputId:`tags_${l}`,ref:u,closeMenuOnSelect:!1,onChange:v})})]})},e8=t=>({updateSelectedTags:r=>t(O6(r))}),t8=t=>({publication_tags:w6(t)}),n8=ps(t8,e8)(K6),r8=({projects:t,toggleProject:r})=>{const i=u=>`list-group-item list-group-item-action clickable ${u.selected?"list-group-item-success":""}`,l=()=>t.filter(u=>u.selected).length>0;return m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[l()?"":m.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),m.jsx("div",{className:"list-group",children:t.map((u,d)=>m.jsxs("div",{className:i(u),onClick:()=>r(d),children:[u.grant_number,": ",u.title]},`project_${u.grant_number}`))})]})})},a8=t=>({projects:E6(t)}),i8=t=>({toggleProject:r=>t(j6(r))}),o8=ps(a8,i8)(r8),s8=({grant_number:t,setGrantNumber:r,grantSearch:i})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",m.jsxs("div",{className:"input-group mt-1",children:[m.jsx("input",{type:"text",className:"form-control",value:t,onChange:l=>r(l.target.value),placeholder:"Enter a grant number"}),m.jsx("button",{className:"btn btn-primary",onClick:()=>i(),children:"Find Project"})]})]})}),l8=t=>({setGrantNumber:r=>t(bM(r)),grantSearch:()=>t($6())}),u8=t=>({grant_number:t.publications_store.grant_number}),c8=ps(u8,l8)(s8),d8=({publication:t,updateField:r,publication_types:i,changePubType:l,updatePublication:u,tag_categories:d,savePublication:v,modal:h,save_enabled:y,setFormValid:C,form_valid:x})=>{const w=P=>{P.target.value.trim()==""?C(!1):C(!0),u({key:"title",value:P.target.value})},R=()=>t.fields.map((P,F)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:`field_${P.csl_field_name}`,className:"form-label",children:P.name}),m.jsx("input",{type:"text",className:"form-control",name:`field_${P.csl_field_name}`,id:`field_${P.csl_field_name}`,value:P.field_value,onChange:U=>r({index:F,value:U.target.value})})]})},`field_${P.csl_field_name}`)),j=()=>{const P=new Date().getFullYear()+2;let F=1980;const U=[];for(;F<=P;)U.push(F++);const B=["January","February","March","April","May","June","July","August","September","October","November","December"],z=m.jsx("i",{className:"bi bi-asterisk text-danger"});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",z]}),m.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${x?"":"is-invalid"}`,value:t.title,onChange:X=>w(X)})]})}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),m.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:t.publication_year,onChange:X=>{u({key:"publication_year",value:X.target.value})},children:U.map(X=>m.jsx("option",{value:X,children:X},`year_${X}`))})]})}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),m.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:t.publication_month,onChange:X=>{u({key:"publication_month",value:X.target.value})},children:B.map((X,Z)=>m.jsx("option",{value:Z+1,children:X},`month_${Z}`))})]})})]})},I=m.jsxs("div",{className:"card",children:[m.jsx("div",{className:"card-header",children:m.jsx("h2",{children:"Publication Information"})}),m.jsxs("div",{className:"card-body",children:[m.jsx("p",{className:"mb-2",children:'Enter information about this publication below. If you have a DOI, you may use the "Lookup Publication" button to attempt to find this information automatically.'}),m.jsx(W6,{}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),m.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:t.publication_type,onChange:P=>l(P.target.value),children:i.map(P=>m.jsx("option",{value:P.publication_type,children:P.publication_type},`pub_type_${P.type_id}`))})]})}),j(),R()]})]}),_=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Authors"}),m.jsxs(Up,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,m.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),m.jsx("div",{className:"card-body",children:m.jsx(Q6,{})})]}),A=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Tags"}),m.jsx(Up,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),m.jsx("div",{className:"card-body",children:d.map((P,F)=>m.jsx(n8,{index:F,category:P},`tc_${F}`))})]}),L=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Associated Projects"}),m.jsx(Up,{children:"Click/Tap each project that this publication is related to."})]}),m.jsxs("div",{className:"card-body",children:[m.jsx(o8,{}),m.jsx("hr",{}),m.jsx(c8,{})]})]});return m.jsxs(m.Fragment,{children:[I,_,A,L,h?null:m.jsx("p",{className:"mt-3",children:m.jsx("button",{onClick:()=>v(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},f8=t=>({publication:b6(t),publication_types:x6(t),tag_categories:S6(t),saving:l1(t),modal:T6(t),save_enabled:hM(t),form_valid:pM(t)}),p8=t=>({updateField:r=>t(_6(r)),changePubType:r=>t(eR(r)),updatePublication:r=>t(mM(r)),savePublication:()=>t(xM()),setFormValid:r=>t(L6(r))}),h8=ps(f8,p8)(d8),v8=({errors:t,hideError:r})=>m.jsx(m.Fragment,{children:t.map(i=>m.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[i.message,m.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(i.id)})]},`err_${i.id}`))}),m8=t=>({errors:R6(t)}),g8=t=>({hideError:r=>t(gM(r))}),y8=ps(m8,g8)(v8),b8=({show_saved:t,updateShowSaved:r})=>{const i=m.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",m.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(!1)})]});return t?i:m.jsx(m.Fragment,{})},C8=t=>({show_saved:fM(t)}),x8=t=>({updateShowSaved:r=>t(yM(r))}),S8=ps(C8,x8)(b8),E8=({getData:t,data_loaded:r})=>(k.useEffect(()=>{t()},[]),m.jsxs(m.Fragment,{children:[m.jsx(S8,{}),m.jsx(y8,{}),r?m.jsx(h8,{}):m.jsx(eh,{})]})),w8=t=>({data_loaded:dM(t)}),R8=t=>({getData:()=>t(CM())}),SM=ps(w8,R8)(E8),T8=({saving:t,savePublication:r,showSaved:i,updatePublications:l,save_enabled:u})=>{const[d,v]=k.useState(!1);return k.useEffect(()=>{!t&&i&&l()},[t,i]),m.jsxs(m.Fragment,{children:[m.jsxs(Ln,{size:"xl",show:d,onHide:()=>v(!1),scrollable:!0,children:[m.jsx(Ln.Header,{closeButton:!0,children:m.jsx(Ln.Title,{children:"Add Publication"})}),m.jsx(Ln.Body,{children:m.jsx(SM,{})}),m.jsx(Ln.Footer,{children:m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>v(!1),children:"Cancel"}),m.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{r(),v(!1)},children:"Save Publication"})]})})]}),m.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>v(!0),children:"Add a New Publication"})]})},_8=t=>({saving:l1(t),showSaved:fM(t),save_enabled:hM(t)}),N8=t=>({savePublication:()=>t(xM())}),I8=ps(_8,N8)(T8),A8=({usernames:t=[],publication_ids:r=[]})=>{const[i,l]=k.useState(t),[u,d]=k.useState(r),[v,h]=k.useState([]),y=k.useRef(i),C=_=>{y.current=_,l(_)},x=async()=>{const A=await(await fetch(Jt.routes.search_publications_path({usernames:i}))).json();h(A)};k.useEffect(()=>{x()},[i]),k.useEffect(()=>{addEventListener("requestAddRole",_=>C([...y.current,_.detail.username])),addEventListener("requestRemoveRole",_=>C(y.current.filter(A=>A!=_.detail.username)))},[]);let w=!1,R=!1;const j=v.map(_=>{const A=u.includes(_.publication_id);w=w||A,R=R||!A;const L=new Date(_.publication_year,_.publication_month-1);return m.jsxs("tr",{children:[m.jsx("td",{children:m.jsx("input",{type:"checkbox",name:"publication_ids[]",value:_.publication_id,checked:A,onChange:()=>d(A?u.filter(P=>P!=_.publication_id):[...u,_.publication_id])})}),m.jsx("td",{children:_.title}),m.jsx("td",{children:_.authors.map(P=>`${P.first_name} ${P.last_name}`).join(", ")}),m.jsx("td",{children:_.publication_type}),m.jsxs("td",{children:[L.toLocaleString("default",{month:"short"})," ",_.publication_year]})]},_.publication_id)}),I=`${R?"Select":"Deselect"} all`;return m.jsxs("div",{className:"publications-select",children:[m.jsxs("table",{className:"table",children:[m.jsx("thead",{children:m.jsxs("tr",{children:[m.jsx("th",{children:m.jsx("input",{type:"checkbox",value:"","aria-label":I,title:I,checked:w&&!R,onChange:()=>d(R?v.map(_=>_.publication_id):[]),ref:_=>{_&&(_.indeterminate=w&&R)}})}),m.jsx("th",{children:"Title"}),m.jsx("th",{children:"Authors"}),m.jsx("th",{children:"Type"}),m.jsx("th",{children:"Date"})]})}),m.jsx("tbody",{children:j})]}),m.jsx(I8,{updatePublications:x})]})},j8=()=>`${Math.random().toString(36).slice(2)}`,tR=document.querySelector("#publications-react"),O8=tR?tR.dataset:{},uj={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:O8.redirect||!1,modal:tR==null,form_valid:!1,grant_number:""},D8=(t=uj,r)=>{const{type:i,payload:l}=r;switch(i){case"UPDATE_FIELD":return Eo(t,d=>(d.publication.fields[l.index].field_value=l.value,d));case"CHANGE_PUB_TYPE":return Eo(t,d=>{let v=d.publication_types.find(h=>h.publication_type==l).fields;return v.forEach(h=>{const y=d.publication.fields.find(C=>C.csl_field_name==h.csl_field_name);y&&(h.value=y.value)}),d.publication.publication_type=l,d.publication.fields=v,d});case"UPDATE_PUBLICATION":return{...t,publication:{...t.publication,[l.key]:l.value}};case"SET_PUBLICATION":return Eo(t,d=>(d.publication.fields.forEach(v=>{v.field_value=l[v.csl_field_name]}),Object.keys(d.publication).forEach(v=>{l[v]&&(d.publication[v]=l[v])}),d.form_valid=l.title.trim()!="",d));case"ADD_AUTHOR":{const u={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return Eo(t,v=>{v.publication.authors.push(u)})}case"UPDATE_AUTHOR":return Eo(t,d=>{d.publication.authors[l.idx][l.key]=l.value});case"TOGGLE_TAG":return Eo(t,d=>{let v=d.tag_categories.find(h=>h.publication_tags_category_id==l.publication_tags_category_id);v.tags[l.idx].selected=!v.tags[l.idx].selected});case"TOGGLE_REQUEST":return Eo(t,d=>(d.projects[l].selected=!d.projects[l].selected,d));case"UPDATE_ERRORS":{const u={id:j8(),message:l};return{...t,errors:[...t.errors,u]}}case"HIDE_ERROR":{const u=t.errors.filter(d=>d.id!=l);return{...t,errors:u}}case"UPDATE_SELECTED_TAGS":return Eo(t,d=>{const v=l.tags.map(h=>h.value);return d.selected_tags[l.category]=v,d});case"DELETE_AUTHOR":return Eo(t,d=>(d.publication.authors.splice(l,1),d));case"DATA_LOADED":return Eo(t,d=>(d.publication=l.publication,d.form_valid=l.publication.title.trim()!="",d.publication.authors.forEach(v=>{v.affiliation||(v.affiliation="")}),d.publication_types=l.publication_types,d.tag_categories=l.tag_categories,d.projects=l.publication.projects,l.publication.tags.forEach(v=>d.selected_tags[v.label]=v.options.map(h=>h.value)),d.data_loaded=!0,d));case"UPDATE_SHOW_SAVED":return{...t,show_saved:l};case"UPDATE_SAVING":return{...t,saving:l};case"RESET_STATE":return uj;case"SET_FORM_VALID":return{...t,form_valid:l};case"SET_GRANT_NUMBER":return{...t,grant_number:l};case"ADD_PROJECT":return{...t,projects:[...t.projects,l]};default:return t}},k8={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},c0=Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(cj(!1));let i=[];t.catalogSources?i=t.catalogSources:i.push({...t,catalogLabel:"Default"}),t.onRamps&&i.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const l=await Promise.all(i.map(async u=>{const v=await(await fetch(u.apiUrl)).json();return{...u,data:v}}));r(F8({data:l,params:t})),r(cj(!0))});Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(B8(t)),r(wM())});const M8=t=>{const r=[],i=t.filter(l=>l.features.filter(u=>u.selected).length>0);return t.forEach(l=>{l.features.forEach(u=>{u.selected&&r.push(u.featureId)})}),i.map(l=>({...l,features:l.features.filter(u=>u.selected)}))},L8=t=>{const r={},i={};let l={};return t.forEach(d=>{r[d.catalogLabel]={...d,resourceIds:[],selected:!1,catalogId:d.catalogLabel.replace(/[^(A-z)]/,"")},delete r[d.catalogLabel].data,d.data.forEach(v=>{if(nR(d.allowedResources,d.excludedResources,v.resourceName)){const{categories:h,formattedResource:y}=P8(d,v,l);i[v.resourceId]=y,r[d.catalogLabel].resourceIds.push(v.resourceId),l=h}})}),{resources:Object.keys(i).map(d=>i[d]),catalogs:r,categories:l}},nR=(t,r,i)=>!t&&!r||t&&t.length==0&&r&&r.length==0?!0:t&&t.length>0?t.find(l=>l==i):r&&r.length>0?!r.find(l=>l==i):!0,P8=(t,r,i)=>{const l=[];let u="";r.featureCategories.filter(h=>h.categoryIsFilter).forEach(h=>{const y=h.categoryId;h.categoryName=="ACCESS Resource Grouping"?u=h.features[0].name:(!i[y]&&nR(t.allowedCategories,t.excludedCategories,h.categoryName)&&(i[y]={categoryId:y,categoryName:h.categoryName,categoryDescription:h.categoryDescription,features:{}}),h.features.forEach(C=>{const x={featureId:C.featureId,name:C.name,description:C.description,categoryId:y,selected:!1},w=nR(t.allowedFilters,t.excludedFilters,x.name);w&&l.push(x),i[y]&&w&&!i[y].features[C.featureId]&&(i[y].features[C.featureId]=x)}))});const d=l.map(h=>h.name).sort((h,y)=>h>y);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:d,featureIds:l.map(h=>h.featureId),sortCategory:u},categories:i}},EM=z0({name:"resourceCatalog",initialState:k8,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,{resources:l,catalogs:u,categories:d}=L8(i);t.catalogs=u,t.onRamps=r.params.onRamps;for(const v in d){const h=d[v],y=[];for(const C in h.features)y.push(h.features[C]);t.filters.push({...h,features:y.sort((C,x)=>C.name>x.name)})}t.filters=t.filters.sort((v,h)=>v.categoryName.localeCompare(h.categoryName)),t.resources=l.sort((v,h)=>v.resourceName.localeCompare(h.resourceName)).sort((v,h)=>t.resourceSorting[v.sortCategory]>t.resourceSorting[h.sortCategory]),t.filteredResources=[...t.resources],t.resourcesLoaded=!0},resetFilters:t=>{t.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),t.filteredResources=[...t.resources]},setResourcesLoaded:(t,{payload:r})=>{t.resourcesLoaded=r},toggleCatalog:(t,{payload:r})=>{const{catalog:i,selected:l}=r;t.catalogs[i.catalogLabel].selected=l},toggleFilter:(t,{payload:r})=>{if(r){const v=r,y=t.filters.find(C=>C.categoryId==v.categoryId).features.find(C=>C.featureId==v.featureId);y.selected=!y.selected}const i=M8(t.filters);let l=[];if(i.length>0){const v=i.map(h=>h.features.map(y=>y.featureId));t.resources.forEach(h=>{let y=0;v.forEach(C=>{let x=!1;h.featureIds.forEach(w=>{C.indexOf(w)>=0&&(x=!0)}),x&&(y+=1)}),y>=v.length&&l.push(h)})}else l=t.resources;const u=Object.keys(t.catalogs).map(v=>t.catalogs[v]),d=u.filter(v=>v.selected);if(d.length>0&&d.length<u.length){const v=d.map(h=>h.resourceIds).flat();l=l.filter(h=>v.indexOf(h.resourceId)>=0)}t.filteredResources=l}},extraReducers:t=>{t.addCase(c0.pending,r=>{}).addCase(c0.fulfilled,(r,i)=>{}).addCase(c0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:F8,processData:$q,resetFilters:V8,setResourcesLoaded:cj,toggleCatalog:B8,toggleFilter:wM}=EM.actions,RM=t=>t.resourceCatalog.catalogs,z8=t=>t.resourceCatalog.filters,$8=t=>t.resourceCatalog.hasErrors,U8=t=>t.resourceCatalog.resourcesLoaded,H8=t=>t.resourceCatalog.filteredResources,G8=EM.reducer,W8="_access_1yrq0_2",X8="_resourceName_1yrq0_6",Y8="_description_1yrq0_11",Z8="_filterBar_1yrq0_15",q8="_cardBg_1yrq0_20",J8="_active_1yrq0_25",Q8="_plainButton_1yrq0_30",K8="_btnSecondary_1yrq0_40",eq="_filtersHidden_1yrq0_51",tq="_filtersVisible_1yrq0_57",wo={access:W8,resourceName:X8,description:Y8,filterBar:Z8,cardBg:q8,active:J8,plainButton:Q8,btnSecondary:K8,filtersHidden:eq,filtersVisible:tq},nq=({resource:t})=>{const[r,i]=k.useState(!0),l=C=>{const x={"CPU Compute":"cpu-fill","GPU Compute":"gpu-card",Cloud:"cloud-fill","Commercial Cloud":"cloud-fill",Storage:"database-fill","Service / Other":"journal","Innovative / Novel Compute":"pc"};return x[C]?m.jsx("i",{title:C,className:`bi bi-${x[C]} me-2 `},`${t.resourceId}_${x[C]}`):""},u=()=>m.jsxs("span",{className:"float-end",children:[t.features.map(C=>l(C)),t.resourceType]}),d=C=>C.length==0?"":m.jsx(m.Fragment,{children:C.map((x,w)=>m.jsx("span",{className:"badge text-bg-secondary me-2",children:x},`feature_${t.resourceId}_${w}`))}),v=()=>{let C=t.resourceDescription;return C&&C!=""?(wo.plainButton,m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col fw-bold",children:["About ",t.resourceName]})}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col ",children:[m.jsx("div",{className:wo.description,dangerouslySetInnerHTML:{__html:C}}),""]})})]})):""},h=()=>t.recommendedUse&&t.recommendedUse!=""?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),m.jsx("div",{className:"row mb-3",children:m.jsx("div",{className:"col",children:m.jsx("div",{className:wo.description,dangerouslySetInnerHTML:{__html:t.recommendedUse}})})})]}):"",y=()=>wo.cardBg;return m.jsx(m.Fragment,{children:m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"card mb-3",children:[m.jsxs("div",{className:`card-header ${y()}`,children:[m.jsx("span",{className:"",children:t.resourceName}),u()]}),m.jsxs("div",{className:"card-body",children:[m.jsx("div",{className:"row mb-3",children:m.jsx("div",{className:"col",children:d(t.features)})}),h(),v()]}),m.jsx("div",{className:"card-footer",children:m.jsxs("a",{target:"_blank",href:t.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",m.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},rq=({filter:t})=>{const r=No(),i=()=>{r(wM(t))};return m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"form-check",children:[m.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),m.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},aq=({category:t})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("div",{className:"fw-bold mb-1 mt-1",children:m.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>m.jsx(rq,{filter:r},r.featureId))]})}),iq=({onReset:t})=>{const r=No(),i=Jn(RM),l=Jn(z8),u=l.filter(d=>d.features.filter(v=>v.selected).length>0);return Object.keys(i).map(d=>i[d]),m.jsxs(m.Fragment,{children:[l.map(d=>m.jsx(aq,{category:d},d.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(V8()),disabled:u.length==0,children:"Reset Filters"}),m.jsx("button",{className:"btn btn-outline-primary ms-3 mt-2 mb-2",onClick:t,children:"Close Menu"})]})},oq=()=>{const[t,r]=k.useState(!1),i=k.useRef(null),l=()=>{const u=i.current;t?(u.style.height="0px",u.classList.remove(wo.filtersVisible),u.classList.add(wo.filtersHidden)):(u.style.height=u.scrollHeight+"px",u.classList.remove(wo.filtersHidden),u.classList.add(wo.filtersVisible)),r(!t)};return m.jsx("div",{className:wo.filterBar,children:m.jsx("div",{className:"row mb-2",children:m.jsx("div",{className:"col pt-2 pb-2",children:m.jsxs("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:[m.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:l,children:[m.jsx("i",{className:"bi bi-filter"})," Filters"]}),m.jsx("div",{className:`${wo.filtersHidden} pe-2 ps-2`,id:"filtersList",ref:i,children:m.jsx(iq,{onReset:l})})]})})})})},sq=()=>{const t=Jn(H8);return t.length==0?m.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):m.jsx("div",{className:"card shadow",children:m.jsxs("div",{className:"card-body",children:[m.jsx(oq,{}),t.map(r=>m.jsx(nq,{resource:r},r.resourceId))]})})},lq=({baseUrl:t})=>m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col d-flex",children:m.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${t}/access_logo.png`})})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx("h3",{className:"border-bottom",children:"NSF ACCESS Resources"})})}),m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("h4",{children:"Discover the nationwide NSF cyberinfrastructure"}),m.jsx("p",{children:"Need advanced computing and storage options for your research or classroom? The ACCESS program has been established and funded by the U.S. National Science Foundation to help you - the nation's researchers and educators - to use some of the country's most advanced computing systems and services - at no cost to you."}),m.jsx("p",{children:"Thousands of researchers, instructors, and students from institutions large and small use ACCESS-integrated resources every year. With more than 30 resources from more than 15 resource providers, there's bound to be a resource for you, your lab, or your class."}),m.jsx("p",{children:"Explore the resource catalog below - filter the list to discover the resources that have the features or services to accelerate your activities. The System Info button will take you to the resource's documentation for all the details."}),m.jsx("p",{children:'Ready to begin? Click the "Get Your First Project" button and join the ACCESS community!'}),m.jsx("p",{children:m.jsxs("a",{href:"https://allocations.access-ci.org/get-your-first-project",target:"_blank",className:`btn btn-secondary fw-bold ${wo.btnSecondary}`,children:["Get Your First Project ",m.jsx("i",{className:"bi bi-box-arrow-up-right"})]})}),m.jsxs("p",{children:["If you have feedback for ACCESS, please complete our",m.jsx("a",{target:"_blank",href:"https://docs.google.com/forms/d/e/1FAIpQLSdn-SXokNB_5s0r2SA_S9ZIZWZFlVPRD2OHepTH5HY2YND_zw/viewform",children:" Feedback Form"}),".",m.jsx("br",{}),"If you have questions, please",m.jsx("a",{target:"_blank",href:"https://support.access-ci.org/user/login?destination=/open-a-ticket",children:" open a help ticket"}),"."]})]})})]}),uq=({catalogSources:t=[],onRamps:r=!1,baseUrl:i})=>{const l=No(),u=Jn(U8),d=Jn($8),v=Jn(RM),h=Object.keys(v).map(C=>v[C]);k.useEffect(()=>{l(c0({catalogSources:t,onRamps:r}))},[]);const y=()=>r&&h.length>1?m.jsx(m.Fragment,{children:h.filter(C=>C.catalogLabel!="ACCESS").map((C,x)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsxs("h4",{className:"border-bottom",children:["About ",C.catalogLabel]}),m.jsx("div",{dangerouslySetInnerHTML:{__html:C.description}})]})},`catalog_${x}`))}):"";return d?m.jsx("div",{className:"row",children:m.jsx("div",{className:"col text-center mt-2",children:m.jsx("h4",{children:"Unable to Load Resources"})})}):u?m.jsxs("div",{className:`container mt-3 ${wo.access}`,children:[r?m.jsx(lq,{baseUrl:i}):"",y(),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx(sq,{})})})]}):m.jsx(eh,{})},cq={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},d0=Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{const l=await(await fetch(t.apiUrl)).json();r(fq({data:l,params:t}))}),dq=t=>{const r=[],i=t.filter(l=>l.features.filter(u=>u.selected).length>0);return t.forEach(l=>{l.features.forEach(u=>{u.selected&&r.push(u.featureId)})}),i.map(l=>({...l,features:l.features.filter(u=>u.selected)}))},dj=(t,r,i)=>{if(t.length==0&&r.length==0)return!0;if(t.length>0)return t.find(l=>l==i);if(r.length>0)return!r.find(l=>l==i)},TM=z0({name:"resourceCatalog",initialState:cq,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,l=r.params.excludedCategories,u=r.params.excludedFilters,d=r.params.excludedResources,v=r.params.allowedCategories,h=r.params.allowedFilters,y=[],C={};i.filter(x=>!d.includes(x.resourceName)).forEach(x=>{const w=[];let R="";x.featureCategories.filter(I=>I.categoryIsFilter).forEach(I=>{const _=I.categoryId;I.categoryName=="ACCESS Resource Grouping"?R=I.features[0].name:(!C[_]&&dj(v,l,I.categoryName)&&(C[_]={categoryId:_,categoryName:I.categoryName,categoryDescription:I.categoryDescription,features:{}}),I.features.forEach(A=>{const L={featureId:A.featureId,name:A.name,description:A.description,categoryId:_,selected:!1},P=dj(h,u,L.name);P&&w.push(L),C[_]&&P&&!C[_].features[A.featureId]&&(C[_].features[A.featureId]=L)}))});const j={resourceName:x.resourceName,resourceId:x.resourceId,resourceType:x.resourceType,organization:x.organization,units:x.units,userGuideUrl:x.userGuideUrl,resourceDescription:x.resourceDescription,description:x.description,recommendedUse:x.recommendedUse,features:w.map(I=>I.name).sort((I,_)=>I>_),featureIds:w.map(I=>I.featureId),sortCategory:R};y.push(j)});for(const x in C){const w=C[x],R=[];for(const j in w.features)R.push(w.features[j]);t.filters.push({...w,features:R.sort((j,I)=>j.name>I.name)})}t.filters=t.filters.sort((x,w)=>x.categoryName.localeCompare(w.categoryName)),t.resources=y.sort((x,w)=>x.resourceName.localeCompare(w.resourceName)).sort((x,w)=>t.resourceSorting[x.sortCategory]>t.resourceSorting[w.sortCategory]),t.filteredResources=[...t.resources],t.resourcesLoaded=!0},resetFilters:t=>{t.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),t.filteredResources=[...t.resources]},toggleFilter:(t,{payload:r})=>{const i=r,u=t.filters.find(v=>v.categoryId==i.categoryId).features.find(v=>v.featureId==i.featureId);u.selected=!u.selected;const d=dq(t.filters);if(d.length>0){const v=[],h=d.map(y=>y.features.map(C=>C.featureId));t.resources.forEach(y=>{let C=0;h.forEach(x=>{let w=!1;y.featureIds.forEach(R=>{x.indexOf(R)>=0&&(w=!0)}),w&&(C+=1)}),C>=h.length&&v.push(y)}),t.filteredResources=v}else t.filteredResources=[...t.resources]}},extraReducers:t=>{t.addCase(d0.pending,r=>{}).addCase(d0.fulfilled,(r,i)=>{}).addCase(d0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:fq,processData:Uq,resetFilters:pq,toggleFilter:hq}=TM.actions,vq=t=>t.resourceCatalog.hasErrors,mq=t=>t.resourceCatalog.resourcesLoaded,gq=t=>t.resourceCatalog.filters,yq=t=>t.resourceCatalog.filteredResources,bq=TM.reducer,Cq=({resource:t})=>{const r=l=>l.length==0?"":m.jsx("ul",{children:l.map((u,d)=>m.jsx("li",{children:u},`feature_${t.resourceId}_${d}`))}),i=(l,u)=>u&&u!=""?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col fw-bold",children:l})}),m.jsx("div",{className:"row mb-3",children:m.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:u}})})]}):"";return m.jsxs(us.Item,{eventKey:t.resourceId,children:[m.jsx(us.Header,{children:t.resourceName}),m.jsxs(us.Body,{children:[m.jsx("table",{className:"table",children:m.jsxs("tbody",{children:[m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Resource Type:"}),m.jsx("td",{children:t.resourceType})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Organization:"}),m.jsx("td",{children:t.organization})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Units:"}),m.jsx("td",{children:t.units})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"User Guide:"}),m.jsx("td",{children:t.userGuideUrl==""?"":m.jsx("a",{href:t.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),m.jsxs("tr",{children:[m.jsx("td",{className:"fw-bold",children:"Features Available:"}),m.jsx("td",{children:r(t.features)})]})]})}),i("Resource Description",t.resourceDescription),i("Allocations Description",t.description),i("Recommended Use",t.recommendedUse)]})]})},xq=()=>{const t=Jn(yq);return t.length==0?m.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):m.jsxs("div",{children:[m.jsx("h4",{className:"mb-0",children:"Resources"}),m.jsx(us,{children:t.map(r=>m.jsx(Cq,{resource:r},r.resourceId))})]})},Sq=({filter:t})=>{const r=No(),i=()=>{r(hq(t))};return m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"form-check",children:[m.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),m.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},Eq=({category:t})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("div",{className:"fw-bold mb-1 mt-1",children:m.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>m.jsx(Sq,{filter:r},r.featureId))]})}),wq=()=>{const t=No(),r=Jn(gq),i=r.filter(l=>l.features.filter(u=>u.selected).length>0);return m.jsxs("div",{children:[m.jsx("h4",{className:"mb-0",children:"Filters"}),r.map(l=>m.jsx(Eq,{category:l},l.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(pq()),disabled:i.length==0,children:"Reset Filters"})]})},Rq=({apiUrl:t,excludedCategories:r=[],excludedFilters:i=[],excludedResources:l=[],allowedCategories:u=[],allowedFilters:d=[]})=>{const v=No(),h=Jn(mq),y=Jn(vq);return k.useEffect(()=>{v(d0({apiUrl:t,excludedCategories:r,excludedFilters:i,excludedResources:l,allowedCategories:u,allowedFilters:d}))},[]),y?m.jsx("div",{className:"row",children:m.jsx("div",{className:"col text-center mt-2",children:m.jsx("h4",{children:"Unable to Load Resources"})})}):h?m.jsx(m.Fragment,{children:m.jsxs("div",{className:"row mt-3",children:[m.jsx("div",{className:"col-sm-4",children:m.jsx(wq,{})}),m.jsx("div",{className:"col-sm-8",children:m.jsx(xq,{})})]})}):m.jsx(eh,{})};function Tq(t,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:l=!1,baseUrl:u=null}={}){const d=t.attachShadow({mode:"open"}),v=document.createElement("div"),h=document.createElement("div"),y=document.createElement("div"),C=document.createElement("div"),x=document.createElement("link"),w=document.createElement("link"),R=document.createElement("link");return u=u??(typeof document>"u"?require("url").pathToFileURL(__filename).href:UN&&UN.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),x.rel="stylesheet",x.href=`${u}/bootstrap.css`,w.rel="stylesheet",w.href=`${u}/xras-ui.css`,R.rel="stylesheet",R.href=`${u}/access.css`,y.appendChild(C),h.appendChild(y),v.appendChild(h),d.appendChild(x),d.appendChild(w),d.appendChild(R),d.appendChild(v),v.classList.add("bootstrap"),i&&h.classList.add("bootstrap-variables"),r&&(y.classList.add("bootstrap-fonts"),y.setAttribute("data-bs-theme","light")),C}function _q({target:t}){Xi.createRoot(t).render(m.jsx(vH,{}))}function Nq({target:t,availableResources:r,relativeUrlRoot:i}){Xi.createRoot(t).render(m.jsx(bH,{availableResources:r,relativeUrlRoot:i}))}function Iq({resourceId:t,target:r,setExternalSubmit:i,relativeUrlRoot:l}){Xi.createRoot(r).render(m.jsx(uO,{resourceId:t,setExternalSubmit:i,relativeUrlRoot:l}))}function Aq({target:t,username:r,routes:i}){mR(i);const l=Pm({reducer:{api:EG}});Xi.createRoot(t).render(m.jsx(Kp,{store:l,children:m.jsx(KZ,{username:r})}))}function jq({target:t,apiUrl:r}){const i=Pm({reducer:{projectsBrowser:h6},preloadedState:{projectsBrowser:{...sM,apiUrl:r}}});Xi.createRoot(t).render(m.jsx(Kp,{store:i,children:m.jsx(y6,{})}))}function _M(){return Pm({reducer:{publications_store:D8}})}function Oq({target:t,routes:r}){mR(r),Xi.createRoot(t).render(m.jsx(Kp,{store:_M(),children:m.jsx(SM,{})}))}function Dq({target:t,routes:r}){mR(r),Xi.createRoot(t).render(m.jsx(Kp,{store:_M(),children:m.jsx(A8,{...JSON.parse(t.dataset.publicationsSelectProps)})}))}function kq({target:t,catalogSources:r,onRamps:i,baseUrl:l}){const u=Pm({reducer:{resourceCatalog:G8}});Xi.createRoot(t).render(m.jsx(Kp,{store:u,children:m.jsx(uq,{catalogSources:r,onRamps:i,baseUrl:l})}))}function Mq({target:t,apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v}){const h=Pm({reducer:{resourceCatalog:bq}});Xi.createRoot(t).render(m.jsx(Kp,{store:h,children:m.jsx(Rq,{apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v})}))}exports.allocationsMap=_q;exports.editResource=Iq;exports.onRampsResourceCatalog=kq;exports.projects=Aq;exports.projectsBrowser=jq;exports.publications=Oq;exports.publicationsSelect=Dq;exports.resourceCatalog=Mq;exports.resources=Nq;exports.shadowTarget=Tq;
|