@xras/ui 0.9.0 → 0.9.1
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 +52 -52
- package/dist/xras-ui.js +1209 -1198
- package/package.json +1 -1
package/dist/xras-ui.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var WN;function Cz(){if(WN)return Xt;WN=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),v=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.iterator;function R(G){return G===null||typeof G!="object"?null:(G=w&&G[w]||G["@@iterator"],typeof G=="function"?G:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},
|
|
9
|
+
*/var WN;function Cz(){if(WN)return Xt;WN=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),v=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.iterator;function R(G){return G===null||typeof G!="object"?null:(G=w&&G[w]||G["@@iterator"],typeof G=="function"?G:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,T={};function I(G,Z,re){this.props=G,this.context=Z,this.refs=T,this.updater=re||j}I.prototype.isReactComponent={},I.prototype.setState=function(G,Z){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,Z,"setState")},I.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function M(){}M.prototype=I.prototype;function F(G,Z,re){this.props=G,this.context=Z,this.refs=T,this.updater=re||j}var V=F.prototype=new M;V.constructor=F,A(V,I.prototype),V.isPureReactComponent=!0;var U=Array.isArray,P=Object.prototype.hasOwnProperty,z={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function Y(G,Z,re){var Ce,we={},Te=null,Ie=null;if(Z!=null)for(Ce in Z.ref!==void 0&&(Ie=Z.ref),Z.key!==void 0&&(Te=""+Z.key),Z)P.call(Z,Ce)&&!X.hasOwnProperty(Ce)&&(we[Ce]=Z[Ce]);var ue=arguments.length-2;if(ue===1)we.children=re;else if(1<ue){for(var de=Array(ue),Ve=0;Ve<ue;Ve++)de[Ve]=arguments[Ve+2];we.children=de}if(G&&G.defaultProps)for(Ce in ue=G.defaultProps,ue)we[Ce]===void 0&&(we[Ce]=ue[Ce]);return{$$typeof:t,type:G,key:Te,ref:Ie,props:we,_owner:z.current}}function pe(G,Z){return{$$typeof:t,type:G.type,key:Z,ref:G.ref,props:G.props,_owner:G._owner}}function ie(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function ge(G){var Z={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(re){return Z[re]})}var ae=/\/+/g;function Re(G,Z){return typeof G=="object"&&G!==null&&G.key!=null?ge(""+G.key):Z.toString(36)}function be(G,Z,re,Ce,we){var Te=typeof G;(Te==="undefined"||Te==="boolean")&&(G=null);var Ie=!1;if(G===null)Ie=!0;else switch(Te){case"string":case"number":Ie=!0;break;case"object":switch(G.$$typeof){case t:case r:Ie=!0}}if(Ie)return Ie=G,we=we(Ie),G=Ce===""?"."+Re(Ie,0):Ce,U(we)?(re="",G!=null&&(re=G.replace(ae,"$&/")+"/"),be(we,Z,re,"",function(Ve){return Ve})):we!=null&&(ie(we)&&(we=pe(we,re+(!we.key||Ie&&Ie.key===we.key?"":(""+we.key).replace(ae,"$&/")+"/")+G)),Z.push(we)),1;if(Ie=0,Ce=Ce===""?".":Ce+":",U(G))for(var ue=0;ue<G.length;ue++){Te=G[ue];var de=Ce+Re(Te,ue);Ie+=be(Te,Z,re,de,we)}else if(de=R(G),typeof de=="function")for(G=de.call(G),ue=0;!(Te=G.next()).done;)Te=Te.value,de=Ce+Re(Te,ue++),Ie+=be(Te,Z,re,de,we);else if(Te==="object")throw Z=String(G),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return Ie}function xe(G,Z,re){if(G==null)return G;var Ce=[],we=0;return be(G,Ce,"","",function(Te){return Z.call(re,Te,we++)}),Ce}function Ae(G){if(G._status===-1){var Z=G._result;Z=Z(),Z.then(function(re){(G._status===0||G._status===-1)&&(G._status=1,G._result=re)},function(re){(G._status===0||G._status===-1)&&(G._status=2,G._result=re)}),G._status===-1&&(G._status=0,G._result=Z)}if(G._status===1)return G._result.default;throw G._result}var Le={current:null},ne={transition:null},Oe={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:ne,ReactCurrentOwner:z};return Xt.Children={map:xe,forEach:function(G,Z,re){xe(G,function(){Z.apply(this,arguments)},re)},count:function(G){var Z=0;return xe(G,function(){Z++}),Z},toArray:function(G){return xe(G,function(Z){return Z})||[]},only:function(G){if(!ie(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},Xt.Component=I,Xt.Fragment=i,Xt.Profiler=u,Xt.PureComponent=F,Xt.StrictMode=l,Xt.Suspense=y,Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oe,Xt.cloneElement=function(G,Z,re){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var Ce=A({},G.props),we=G.key,Te=G.ref,Ie=G._owner;if(Z!=null){if(Z.ref!==void 0&&(Te=Z.ref,Ie=z.current),Z.key!==void 0&&(we=""+Z.key),G.type&&G.type.defaultProps)var ue=G.type.defaultProps;for(de in Z)P.call(Z,de)&&!X.hasOwnProperty(de)&&(Ce[de]=Z[de]===void 0&&ue!==void 0?ue[de]:Z[de])}var de=arguments.length-2;if(de===1)Ce.children=re;else if(1<de){ue=Array(de);for(var Ve=0;Ve<de;Ve++)ue[Ve]=arguments[Ve+2];Ce.children=ue}return{$$typeof:t,type:G.type,key:we,ref:Te,props:Ce,_owner:Ie}},Xt.createContext=function(G){return G={$$typeof:v,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:d,_context:G},G.Consumer=G},Xt.createElement=Y,Xt.createFactory=function(G){var Z=Y.bind(null,G);return Z.type=G,Z},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(G){return{$$typeof:h,render:G}},Xt.isValidElement=ie,Xt.lazy=function(G){return{$$typeof:C,_payload:{_status:-1,_result:G},_init:Ae}},Xt.memo=function(G,Z){return{$$typeof:x,type:G,compare:Z===void 0?null:Z}},Xt.startTransition=function(G){var Z=ne.transition;ne.transition={};try{G()}finally{ne.transition=Z}},Xt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Xt.useCallback=function(G,Z){return Le.current.useCallback(G,Z)},Xt.useContext=function(G){return Le.current.useContext(G)},Xt.useDebugValue=function(){},Xt.useDeferredValue=function(G){return Le.current.useDeferredValue(G)},Xt.useEffect=function(G,Z){return Le.current.useEffect(G,Z)},Xt.useId=function(){return Le.current.useId()},Xt.useImperativeHandle=function(G,Z,re){return Le.current.useImperativeHandle(G,Z,re)},Xt.useInsertionEffect=function(G,Z){return Le.current.useInsertionEffect(G,Z)},Xt.useLayoutEffect=function(G,Z){return Le.current.useLayoutEffect(G,Z)},Xt.useMemo=function(G,Z){return Le.current.useMemo(G,Z)},Xt.useReducer=function(G,Z,re){return Le.current.useReducer(G,Z,re)},Xt.useRef=function(G){return Le.current.useRef(G)},Xt.useState=function(G){return Le.current.useState(G)},Xt.useSyncExternalStore=function(G,Z,re){return Le.current.useSyncExternalStore(G,Z,re)},Xt.useTransition=function(){return Le.current.useTransition()},Xt.version="18.2.0",Xt}var vm={exports:{}};vm.exports;var XN;function Sz(){return XN||(XN=1,function(t,r){var i={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -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"),x=Symbol.for("react.provider"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator,F="@@iterator";function V(D){if(D===null||typeof D!="object")return null;var q=M&&D[M]||D[F];return typeof q=="function"?q:null}var U={current:null},P={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},Y={},pe=null;function ie(D){pe=D}Y.setExtraStackFrame=function(D){pe=D},Y.getCurrentStack=null,Y.getStackAddendum=function(){var D="";pe&&(D+=pe);var q=Y.getCurrentStack;return q&&(D+=q()||""),D};var ge=!1,ae=!1,Re=!1,be=!1,xe=!1,Ae={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:P,ReactCurrentOwner:X};Ae.ReactDebugCurrentFrame=Y,Ae.ReactCurrentActQueue=z;function Le(D){{for(var q=arguments.length,fe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)fe[ye-1]=arguments[ye];Oe("warn",D,fe)}}function ne(D){{for(var q=arguments.length,fe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)fe[ye-1]=arguments[ye];Oe("error",D,fe)}}function Oe(D,q,fe){{var ye=Ae.ReactDebugCurrentFrame,ze=ye.getStackAddendum();ze!==""&&(q+="%s",fe=fe.concat([ze]));var st=fe.map(function(Qe){return String(Qe)});st.unshift("Warning: "+q),Function.prototype.apply.call(console[D],console,st)}}var G={};function Z(D,q){{var fe=D.constructor,ye=fe&&(fe.displayName||fe.name)||"ReactClass",ze=ye+"."+q;if(G[ze])return;ne("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[ze]=!0}}var re={isMounted:function(D){return!1},enqueueForceUpdate:function(D,q,fe){Z(D,"forceUpdate")},enqueueReplaceState:function(D,q,fe,ye){Z(D,"replaceState")},enqueueSetState:function(D,q,fe,ye){Z(D,"setState")}},Ce=Object.assign,we={};Object.freeze(we);function Te(D,q,fe){this.props=D,this.context=q,this.refs=we,this.updater=fe||re}Te.prototype.isReactComponent={},Te.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")},Te.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var Ie={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)."]},ue=function(D,q){Object.defineProperty(Te.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var de in Ie)Ie.hasOwnProperty(de)&&ue(de,Ie[de])}function Ve(){}Ve.prototype=Te.prototype;function Ge(D,q,fe){this.props=D,this.context=q,this.refs=we,this.updater=fe||re}var tt=Ge.prototype=new Ve;tt.constructor=Ge,Ce(tt,Te.prototype),tt.isPureReactComponent=!0;function ot(){var D={current:null};return Object.seal(D),D}var je=Array.isArray;function Rt(D){return je(D)}function dt(D){{var q=typeof Symbol=="function"&&Symbol.toStringTag,fe=q&&D[Symbol.toStringTag]||D.constructor.name||"Object";return fe}}function en(D){try{return sn(D),!1}catch{return!0}}function sn(D){return""+D}function ln(D){if(en(D))return ne("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,fe){var ye=D.displayName;if(ye)return ye;var ze=q.displayName||q.name||"";return ze!==""?fe+"("+ze+")":fe}function Vt(D){return D.displayName||"Context"}function Cn(D){if(D==null)return null;if(typeof D.tag=="number"&&ne("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 C:var q=D;return Vt(q)+".Consumer";case x:var fe=D;return Vt(fe._context)+".Provider";case w:return In(D,D.render,"ForwardRef");case N:var ye=D.displayName||null;return ye!==null?ye:Cn(D.type)||"Memo";case T:{var ze=D,st=ze._payload,Qe=ze._init;try{return Cn(Qe(st))}catch{return null}}}return null}var Qn=Object.prototype.hasOwnProperty,_r={key:!0,ref:!0,__self:!0,__source:!0},Hn,Tr,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 fe=function(){Hn||(Hn=!0,ne("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"key",{get:fe,configurable:!0})}function $a(D,q){var fe=function(){Tr||(Tr=!0,ne("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"ref",{get:fe,configurable:!0})}function Ua(D){if(typeof D.ref=="string"&&X.current&&D.__self&&X.current.stateNode!==D.__self){var q=Cn(X.current.type);St[q]||(ne('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,fe,ye,ze,st,Qe){var _t={$$typeof:u,type:D,key:q,ref:fe,props:Qe,_owner:st};return _t._store={},Object.defineProperty(_t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.defineProperty(_t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ze}),Object.freeze&&(Object.freeze(_t.props),Object.freeze(_t)),_t};function ht(D,q,fe){var ye,ze={},st=null,Qe=null,_t=null,Pt=null;if(q!=null){Pn(q)&&(Qe=q.ref,Ua(q)),un(q)&&(ln(q.key),st=""+q.key),_t=q.__self===void 0?null:q.__self,Pt=q.__source===void 0?null:q.__source;for(ye in q)Qn.call(q,ye)&&!_r.hasOwnProperty(ye)&&(ze[ye]=q[ye])}var fn=arguments.length-2;if(fn===1)ze.children=fe;else if(fn>1){for(var vn=Array(fn),mn=0;mn<fn;mn++)vn[mn]=arguments[mn+2];Object.freeze&&Object.freeze(vn),ze.children=vn}if(D&&D.defaultProps){var gn=D.defaultProps;for(ye in gn)ze[ye]===void 0&&(ze[ye]=gn[ye])}if(st||Qe){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;st&&za(ze,Vn),Qe&&$a(ze,Vn)}return Xe(D,st,Qe,_t,Pt,X.current,ze)}function Mt(D,q){var fe=Xe(D.type,q,D.ref,D._self,D._source,D._owner,D.props);return fe}function cn(D,q,fe){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ye,ze=Ce({},D.props),st=D.key,Qe=D.ref,_t=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)&&!_r.hasOwnProperty(ye)&&(q[ye]===void 0&&vn!==void 0?ze[ye]=vn[ye]:ze[ye]=q[ye])}var mn=arguments.length-2;if(mn===1)ze.children=fe;else if(mn>1){for(var gn=Array(mn),Vn=0;Vn<mn;Vn++)gn[Vn]=arguments[Vn+2];ze.children=gn}return Xe(D.type,st,Qe,_t,Pt,fn,ze)}function tn(D){return typeof D=="object"&&D!==null&&D.$$typeof===u}var ir=".",Gn=":";function Yr(D){var q=/[=:]/g,fe={"=":"=0",":":"=2"},ye=D.replace(q,function(ze){return fe[ze]});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,fe,ye,ze){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 _t=D,Pt=ze(_t),fn=ye===""?ir+An(_t,0):ye;if(Rt(Pt)){var vn="";fn!=null&&(vn=dn(fn)+"/"),ki(Pt,q,vn,"",function(sh){return sh})}else Pt!=null&&(tn(Pt)&&(Pt.key&&(!_t||_t.key!==Pt.key)&&ln(Pt.key),Pt=Mt(Pt,fe+(Pt.key&&(!_t||_t.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,fe,gn,ze);else{var gu=V(D);if(typeof gu=="function"){var Dc=D;gu===Dc.entries&&(hn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hn=!0);for(var kc=gu.call(Dc),Lo,Mc=0;!(Lo=kc.next()).done;)mn=Lo.value,gn=Zt+An(mn,Mc++),Vn+=ki(mn,q,fe,gn,ze)}else if(st==="object"){var Lc=String(D);throw new Error("Objects are not valid as a React child (found: "+(Lc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Lc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,q,fe){if(D==null)return D;var ye=[],ze=0;return ki(D,ye,"","",function(st){return q.call(fe,st,ze++)}),ye}function vs(D){var q=0;return ai(D,function(){q++}),q}function il(D,q,fe){ai(D,function(){q.apply(this,arguments)},fe)}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:C,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:x,_context:q};var fe=!1,ye=!1,ze=!1;{var st={$$typeof:C,_context:q};Object.defineProperties(st,{Provider:{get:function(){return ye||(ye=!0,ne("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 fe||(fe=!0,ne("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){ze||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Qe),ze=!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,fe=q();if(fe.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=fe}}if(D._status===Io){var ze=D._result;return ze===void 0&&ne(`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"),x=Symbol.for("react.provider"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),M=Symbol.iterator,F="@@iterator";function V(D){if(D===null||typeof D!="object")return null;var q=M&&D[M]||D[F];return typeof q=="function"?q:null}var U={current:null},P={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},Y={},pe=null;function ie(D){pe=D}Y.setExtraStackFrame=function(D){pe=D},Y.getCurrentStack=null,Y.getStackAddendum=function(){var D="";pe&&(D+=pe);var q=Y.getCurrentStack;return q&&(D+=q()||""),D};var ge=!1,ae=!1,Re=!1,be=!1,xe=!1,Ae={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:P,ReactCurrentOwner:X};Ae.ReactDebugCurrentFrame=Y,Ae.ReactCurrentActQueue=z;function Le(D){{for(var q=arguments.length,fe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)fe[ye-1]=arguments[ye];Oe("warn",D,fe)}}function ne(D){{for(var q=arguments.length,fe=new Array(q>1?q-1:0),ye=1;ye<q;ye++)fe[ye-1]=arguments[ye];Oe("error",D,fe)}}function Oe(D,q,fe){{var ye=Ae.ReactDebugCurrentFrame,ze=ye.getStackAddendum();ze!==""&&(q+="%s",fe=fe.concat([ze]));var st=fe.map(function(Qe){return String(Qe)});st.unshift("Warning: "+q),Function.prototype.apply.call(console[D],console,st)}}var G={};function Z(D,q){{var fe=D.constructor,ye=fe&&(fe.displayName||fe.name)||"ReactClass",ze=ye+"."+q;if(G[ze])return;ne("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[ze]=!0}}var re={isMounted:function(D){return!1},enqueueForceUpdate:function(D,q,fe){Z(D,"forceUpdate")},enqueueReplaceState:function(D,q,fe,ye){Z(D,"replaceState")},enqueueSetState:function(D,q,fe,ye){Z(D,"setState")}},Ce=Object.assign,we={};Object.freeze(we);function Te(D,q,fe){this.props=D,this.context=q,this.refs=we,this.updater=fe||re}Te.prototype.isReactComponent={},Te.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")},Te.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var Ie={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)."]},ue=function(D,q){Object.defineProperty(Te.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var de in Ie)Ie.hasOwnProperty(de)&&ue(de,Ie[de])}function Ve(){}Ve.prototype=Te.prototype;function Ge(D,q,fe){this.props=D,this.context=q,this.refs=we,this.updater=fe||re}var tt=Ge.prototype=new Ve;tt.constructor=Ge,Ce(tt,Te.prototype),tt.isPureReactComponent=!0;function ot(){var D={current:null};return Object.seal(D),D}var je=Array.isArray;function Rt(D){return je(D)}function dt(D){{var q=typeof Symbol=="function"&&Symbol.toStringTag,fe=q&&D[Symbol.toStringTag]||D.constructor.name||"Object";return fe}}function en(D){try{return sn(D),!1}catch{return!0}}function sn(D){return""+D}function ln(D){if(en(D))return ne("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,fe){var ye=D.displayName;if(ye)return ye;var ze=q.displayName||q.name||"";return ze!==""?fe+"("+ze+")":fe}function Vt(D){return D.displayName||"Context"}function Cn(D){if(D==null)return null;if(typeof D.tag=="number"&&ne("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 C:var q=D;return Vt(q)+".Consumer";case x:var fe=D;return Vt(fe._context)+".Provider";case w:return In(D,D.render,"ForwardRef");case A:var ye=D.displayName||null;return ye!==null?ye:Cn(D.type)||"Memo";case T:{var ze=D,st=ze._payload,Qe=ze._init;try{return Cn(Qe(st))}catch{return null}}}return null}var Qn=Object.prototype.hasOwnProperty,_r={key:!0,ref:!0,__self:!0,__source:!0},Hn,Tr,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 fe=function(){Hn||(Hn=!0,ne("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"key",{get:fe,configurable:!0})}function $a(D,q){var fe=function(){Tr||(Tr=!0,ne("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"ref",{get:fe,configurable:!0})}function Ua(D){if(typeof D.ref=="string"&&X.current&&D.__self&&X.current.stateNode!==D.__self){var q=Cn(X.current.type);St[q]||(ne('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,fe,ye,ze,st,Qe){var _t={$$typeof:u,type:D,key:q,ref:fe,props:Qe,_owner:st};return _t._store={},Object.defineProperty(_t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.defineProperty(_t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ze}),Object.freeze&&(Object.freeze(_t.props),Object.freeze(_t)),_t};function ht(D,q,fe){var ye,ze={},st=null,Qe=null,_t=null,Pt=null;if(q!=null){Pn(q)&&(Qe=q.ref,Ua(q)),un(q)&&(ln(q.key),st=""+q.key),_t=q.__self===void 0?null:q.__self,Pt=q.__source===void 0?null:q.__source;for(ye in q)Qn.call(q,ye)&&!_r.hasOwnProperty(ye)&&(ze[ye]=q[ye])}var fn=arguments.length-2;if(fn===1)ze.children=fe;else if(fn>1){for(var vn=Array(fn),mn=0;mn<fn;mn++)vn[mn]=arguments[mn+2];Object.freeze&&Object.freeze(vn),ze.children=vn}if(D&&D.defaultProps){var gn=D.defaultProps;for(ye in gn)ze[ye]===void 0&&(ze[ye]=gn[ye])}if(st||Qe){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;st&&za(ze,Vn),Qe&&$a(ze,Vn)}return Xe(D,st,Qe,_t,Pt,X.current,ze)}function Mt(D,q){var fe=Xe(D.type,q,D.ref,D._self,D._source,D._owner,D.props);return fe}function cn(D,q,fe){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ye,ze=Ce({},D.props),st=D.key,Qe=D.ref,_t=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)&&!_r.hasOwnProperty(ye)&&(q[ye]===void 0&&vn!==void 0?ze[ye]=vn[ye]:ze[ye]=q[ye])}var mn=arguments.length-2;if(mn===1)ze.children=fe;else if(mn>1){for(var gn=Array(mn),Vn=0;Vn<mn;Vn++)gn[Vn]=arguments[Vn+2];ze.children=gn}return Xe(D.type,st,Qe,_t,Pt,fn,ze)}function tn(D){return typeof D=="object"&&D!==null&&D.$$typeof===u}var ir=".",Gn=":";function Yr(D){var q=/[=:]/g,fe={"=":"=0",":":"=2"},ye=D.replace(q,function(ze){return fe[ze]});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,fe,ye,ze){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 _t=D,Pt=ze(_t),fn=ye===""?ir+An(_t,0):ye;if(Rt(Pt)){var vn="";fn!=null&&(vn=dn(fn)+"/"),ki(Pt,q,vn,"",function(sh){return sh})}else Pt!=null&&(tn(Pt)&&(Pt.key&&(!_t||_t.key!==Pt.key)&&ln(Pt.key),Pt=Mt(Pt,fe+(Pt.key&&(!_t||_t.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,fe,gn,ze);else{var gu=V(D);if(typeof gu=="function"){var Dc=D;gu===Dc.entries&&(hn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hn=!0);for(var kc=gu.call(Dc),Lo,Mc=0;!(Lo=kc.next()).done;)mn=Lo.value,gn=Zt+An(mn,Mc++),Vn+=ki(mn,q,fe,gn,ze)}else if(st==="object"){var Lc=String(D);throw new Error("Objects are not valid as a React child (found: "+(Lc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Lc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,q,fe){if(D==null)return D;var ye=[],ze=0;return ki(D,ye,"","",function(st){return q.call(fe,st,ze++)}),ye}function vs(D){var q=0;return ai(D,function(){q++}),q}function il(D,q,fe){ai(D,function(){q.apply(this,arguments)},fe)}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:C,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:x,_context:q};var fe=!1,ye=!1,ze=!1;{var st={$$typeof:C,_context:q};Object.defineProperties(st,{Provider:{get:function(){return ye||(ye=!0,ne("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 fe||(fe=!0,ne("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){ze||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Qe),ze=!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,fe=q();if(fe.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=fe}}if(D._status===Io){var ze=D._result;return ze===void 0&&ne(`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'))
|
|
@@ -22,7 +22,7 @@ Your code should look like:
|
|
|
22
22
|
Did you accidentally put curly braces around the import?`,ze),"default"in ze||ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
23
|
|
|
24
24
|
Your code should look like:
|
|
25
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,ze),ze.default}else throw D._result}function Ha(D){var q={_status:Li,_result:D},fe={$$typeof:T,_payload:q,_init:ba};{var ye,ze;Object.defineProperties(fe,{defaultProps:{configurable:!0,get:function(){return ye},set:function(st){ne("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ye=st,Object.defineProperty(fe,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ze},set:function(st){ne("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ze=st,Object.defineProperty(fe,"propTypes",{enumerable:!0})}}})}return fe}function Ao(D){D!=null&&D.$$typeof===
|
|
25
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,ze),ze.default}else throw D._result}function Ha(D){var q={_status:Li,_result:D},fe={$$typeof:T,_payload:q,_init:ba};{var ye,ze;Object.defineProperties(fe,{defaultProps:{configurable:!0,get:function(){return ye},set:function(st){ne("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ye=st,Object.defineProperty(fe,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ze},set:function(st){ne("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ze=st,Object.defineProperty(fe,"propTypes",{enumerable:!0})}}})}return fe}function Ao(D){D!=null&&D.$$typeof===A?ne("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?ne("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&ne("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&(D.defaultProps!=null||D.propTypes!=null)&&ne("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var q={$$typeof:w,render:D};{var fe;Object.defineProperty(q,"displayName",{enumerable:!1,configurable:!0,get:function(){return fe},set:function(ye){fe=ye,!D.name&&!D.displayName&&(D.displayName=ye)}})}return q}var J;J=Symbol.for("react.module.reference");function ke(D){return!!(typeof D=="string"||typeof D=="function"||D===v||D===y||xe||D===h||D===R||D===j||be||D===I||ge||ae||Re||typeof D=="object"&&D!==null&&(D.$$typeof===T||D.$$typeof===A||D.$$typeof===x||D.$$typeof===C||D.$$typeof===w||D.$$typeof===J||D.getModuleId!==void 0))}function He(D,q){ke(D)||ne("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D);var fe={$$typeof:A,type:D,compare:q===void 0?null:q};{var ye;Object.defineProperty(fe,"displayName",{enumerable:!1,configurable:!0,get:function(){return ye},set:function(ze){ye=ze,!D.name&&!D.displayName&&(D.displayName=ze)}})}return fe}function Ye(){var D=U.current;return D===null&&ne(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
26
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
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
|
|
@@ -30,13 +30,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
30
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 fe=ul.get(D);if(fe!==void 0)return fe}var ye;no=!0;var ze=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var st;st=to.current,to.current=null,uu();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 _t=Zt.stack.split(`
|
|
31
31
|
`),Pt=ye.stack.split(`
|
|
32
32
|
`),fn=_t.length-1,vn=Pt.length-1;fn>=1&&vn>=0&&_t[fn]!==Pt[vn];)vn--;for(;fn>=1&&vn>=0;fn--,vn--)if(_t[fn]!==Pt[vn]){if(fn!==1||vn!==1)do if(fn--,vn--,vn<0||_t[fn]!==Pt[vn]){var mn=`
|
|
33
|
-
`+_t[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=ze}var gn=D?D.displayName||D.name:"",Vn=gn?ys(gn):"";return typeof D=="function"&&ul.set(D,Vn),Vn}function Tc(D,q,fe){return bs(D,!1)}function Nc(D){var q=D.prototype;return!!(q&&q.isReactComponent)}function Ut(D,q,fe){if(D==null)return"";if(typeof D=="function")return bs(D,Nc(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
|
|
33
|
+
`+_t[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=ze}var gn=D?D.displayName||D.name:"",Vn=gn?ys(gn):"";return typeof D=="function"&&ul.set(D,Vn),Vn}function Tc(D,q,fe){return bs(D,!1)}function Nc(D){var q=D.prototype;return!!(q&&q.isReactComponent)}function Ut(D,q,fe){if(D==null)return"";if(typeof D=="function")return bs(D,Nc(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 A:return Ut(D.type,q,fe);case T:{var ye=D,ze=ye._payload,st=ye._init;try{return Ut(st(ze),q,fe)}catch{}}}return""}var Ic={},cu=Ae.ReactDebugCurrentFrame;function xs(D){if(D){var q=D._owner,fe=Ut(D.type,D._source,q?q.type:null);cu.setExtraStackFrame(fe)}else cu.setExtraStackFrame(null)}function Ac(D,q,fe,ye,ze){{var st=Function.call.bind(Qn);for(var Qe in D)if(st(D,Qe)){var _t=void 0;try{if(typeof D[Qe]!="function"){var Pt=Error((ye||"React class")+": "+fe+" 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}_t=D[Qe](q,Qe,ye,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fn){_t=fn}_t&&!(_t instanceof Error)&&(xs(ze),ne("%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",fe,Qe,typeof _t),xs(null)),_t instanceof Error&&!(_t.message in Ic)&&(Ic[_t.message]=!0,xs(ze),ne("Failed %s type: %s",fe,_t.message),xs(null))}}}function Yt(D){if(D){var q=D._owner,fe=Ut(D.type,D._source,q?q.type:null);ie(fe)}else ie(null)}var du;du=!1;function dl(){if(X.current){var D=Cn(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(/^.*[\\\/]/,""),fe=D.lineNumber;return`
|
|
36
36
|
|
|
37
37
|
Check your code at `+q+":"+fe+"."}return""}function Pi(D){return D!=null?It(D.__source):""}var Wn={};function Sa(D){var q=dl();if(!q){var fe=typeof D=="string"?D:D.displayName||D.name;fe&&(q=`
|
|
38
38
|
|
|
39
|
-
Check the top-level render call using <`+fe+">.")}return q}function si(D,q){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var fe=Sa(q);if(!Wn[fe]){Wn[fe]=!0;var ye="";D&&D._owner&&D._owner!==X.current&&(ye=" It was passed a child from "+Cn(D._owner.type)+"."),Yt(D),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,ye),Yt(null)}}}function Cs(D,q){if(typeof D=="object"){if(Rt(D))for(var fe=0;fe<D.length;fe++){var ye=D[fe];tn(ye)&&si(ye,q)}else if(tn(D))D._store&&(D._store.validated=!0);else if(D){var ze=V(D);if(typeof ze=="function"&&ze!==D.entries)for(var st=ze.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 fe;if(typeof q=="function")fe=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===w||q.$$typeof===
|
|
39
|
+
Check the top-level render call using <`+fe+">.")}return q}function si(D,q){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var fe=Sa(q);if(!Wn[fe]){Wn[fe]=!0;var ye="";D&&D._owner&&D._owner!==X.current&&(ye=" It was passed a child from "+Cn(D._owner.type)+"."),Yt(D),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,ye),Yt(null)}}}function Cs(D,q){if(typeof D=="object"){if(Rt(D))for(var fe=0;fe<D.length;fe++){var ye=D[fe];tn(ye)&&si(ye,q)}else if(tn(D))D._store&&(D._store.validated=!0);else if(D){var ze=V(D);if(typeof ze=="function"&&ze!==D.entries)for(var st=ze.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 fe;if(typeof q=="function")fe=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===w||q.$$typeof===A))fe=q.propTypes;else return;if(fe){var ye=Cn(q);Ac(fe,D.props,"prop",ye,D)}else if(q.PropTypes!==void 0&&!du){du=!0;var ze=Cn(q);ne("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ze||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&ne("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),fe=0;fe<q.length;fe++){var ye=q[fe];if(ye!=="children"&&ye!=="key"){Yt(D),ne("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),ne("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function jc(D,q,fe){var ye=ke(D);if(!ye){var ze="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(ze+=" 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?ze+=st:ze+=dl();var Qe;D===null?Qe="null":Rt(D)?Qe="array":D!==void 0&&D.$$typeof===u?(Qe="<"+(Cn(D.type)||"Unknown")+" />",ze=" Did you accidentally export a JSX literal instead of a component?"):Qe=typeof D,ne("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Qe,ze)}var _t=ht.apply(this,arguments);if(_t==null)return _t;if(ye)for(var Pt=2;Pt<arguments.length;Pt++)Cs(arguments[Pt],D);return D===v?Xn(_t):Fn(_t),_t}var Lr=!1;function Ea(D){var q=jc.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,fe){for(var ye=cn.apply(this,arguments),ze=2;ze<arguments.length;ze++)Cs(arguments[ze],ye.type);return Fn(ye),ye}function fu(D,q){var fe=P.transition;P.transition={};var ye=P.transition;P.transition._updatedFibers=new Set;try{D()}finally{if(P.transition=fe,fe===null&&ye._updatedFibers){var ze=ye._updatedFibers.size;ze>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),fe=t&&t[q];pl=fe.call(t,"timers").setImmediate}catch{pl=function(ze){fl===!1&&(fl=!0,typeof MessageChannel>"u"&&ne("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=ze,st.port2.postMessage(void 0)}}return pl(D)}var li=0,Do=!1;function pu(D){{var q=li;li++,z.current===null&&(z.current=[]);var fe=z.isBatchingLegacy,ye;try{if(z.isBatchingLegacy=!0,ye=D(),!fe&&z.didScheduleLegacyUpdate){var ze=z.current;ze!==null&&(z.didScheduleLegacyUpdate=!1,Mo(ze))}}catch(gn){throw ko(q),gn}finally{z.isBatchingLegacy=fe}if(ye!==null&&typeof ye=="object"&&typeof ye.then=="function"){var st=ye,Qe=!1,_t={then:function(gn,Vn){Qe=!0,st.then(function(Zt){ko(q),li===0?hu(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,ne("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 () => ...);"))}),_t}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=[],hu(Pt,gn,Vn)):gn(Pt)}};return vn}else{var mn={then:function(gn,Vn){gn(Pt)}};return mn}}}}function ko(D){D!==li-1&&ne("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 hu(D,q,fe){{var ye=z.current;if(ye!==null)try{Mo(ye),Ss(function(){ye.length===0?(z.current=null,q(D)):hu(D,q,fe)})}catch(ze){fe(ze)}else q(D)}}var ro=!1;function Mo(D){if(!ro){ro=!0;var q=0;try{for(;q<D.length;q++){var fe=D[q];do fe=fe(!0);while(fe!==null)}D.length=0}catch(ye){throw D=D.slice(q+1),ye}finally{ro=!1}}}var vu=jc,Oc=Fi,Vi=Ea,mu={map:ai,forEach:il,count:vs,toArray:ol,only:ms};r.Children=mu,r.Component=Te,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=Ae,r.cloneElement=Oc,r.createContext=Mi,r.createElement=vu,r.createFactory=Vi,r.createRef=ot,r.forwardRef=Ao,r.isValidElement=tn,r.lazy=Ha,r.memo=He,r.startTransition=fu,r.unstable_act=pu,r.useCallback=Zr,r.useContext=Bt,r.useDebugValue=xa,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=Sc,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 YN;function tf(){if(YN)return jb.exports;YN=1;var t={};return t.NODE_ENV==="production"?jb.exports=Cz():jb.exports=Sz(),jb.exports}/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.production.min.js
|
|
42
42
|
*
|
|
@@ -52,7 +52,7 @@ Check the top-level render call using <`+fe+">.")}return q}function si(D,q){if(!
|
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/return t.NODE_ENV!=="production"&&function(){var r=tf(),i=Symbol.for("react.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),
|
|
55
|
+
*/return t.NODE_ENV!=="production"&&function(){var r=tf(),i=Symbol.for("react.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),T=Symbol.iterator,I="@@iterator";function M(J){if(J===null||typeof J!="object")return null;var ke=T&&J[T]||J[I];return typeof ke=="function"?ke:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function V(J){{for(var ke=arguments.length,He=new Array(ke>1?ke-1:0),Ye=1;Ye<ke;Ye++)He[Ye-1]=arguments[Ye];U("error",J,He)}}function U(J,ke,He){{var Ye=F.ReactDebugCurrentFrame,Bt=Ye.getStackAddendum();Bt!==""&&(ke+="%s",He=He.concat([Bt]));var Ht=He.map(function(kt){return String(kt)});Ht.unshift("Warning: "+ke),Function.prototype.apply.call(console[J],console,Ht)}}var P=!1,z=!1,X=!1,Y=!1,pe=!1,ie;ie=Symbol.for("react.module.reference");function ge(J){return!!(typeof J=="string"||typeof J=="function"||J===u||J===v||pe||J===d||J===C||J===w||Y||J===A||P||z||X||typeof J=="object"&&J!==null&&(J.$$typeof===j||J.$$typeof===R||J.$$typeof===h||J.$$typeof===y||J.$$typeof===x||J.$$typeof===ie||J.getModuleId!==void 0))}function ae(J,ke,He){var Ye=J.displayName;if(Ye)return Ye;var Bt=ke.displayName||ke.name||"";return Bt!==""?He+"("+Bt+")":He}function Re(J){return J.displayName||"Context"}function be(J){if(J==null)return null;if(typeof J.tag=="number"&&V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof J=="function")return J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case u:return"Fragment";case l:return"Portal";case v:return"Profiler";case d:return"StrictMode";case C:return"Suspense";case w:return"SuspenseList"}if(typeof J=="object")switch(J.$$typeof){case y:var ke=J;return Re(ke)+".Consumer";case h:var He=J;return Re(He._context)+".Provider";case x:return ae(J,J.render,"ForwardRef");case R:var Ye=J.displayName||null;return Ye!==null?Ye:be(J.type)||"Memo";case j:{var Bt=J,Ht=Bt._payload,kt=Bt._init;try{return be(kt(Ht))}catch{return null}}}return null}var xe=Object.assign,Ae=0,Le,ne,Oe,G,Z,re,Ce;function we(){}we.__reactDisabledLog=!0;function Te(){{if(Ae===0){Le=console.log,ne=console.info,Oe=console.warn,G=console.error,Z=console.group,re=console.groupCollapsed,Ce=console.groupEnd;var J={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}Ae++}}function Ie(){{if(Ae--,Ae===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},J,{value:Le}),info:xe({},J,{value:ne}),warn:xe({},J,{value:Oe}),error:xe({},J,{value:G}),group:xe({},J,{value:Z}),groupCollapsed:xe({},J,{value:re}),groupEnd:xe({},J,{value:Ce})})}Ae<0&&V("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=F.ReactCurrentDispatcher,de;function Ve(J,ke,He){{if(de===void 0)try{throw Error()}catch(Bt){var Ye=Bt.stack.trim().match(/\n( *(at )?)/);de=Ye&&Ye[1]||""}return`
|
|
56
56
|
`+de+J}}var Ge=!1,tt;{var ot=typeof WeakMap=="function"?WeakMap:Map;tt=new ot}function je(J,ke){if(!J||Ge)return"";{var He=tt.get(J);if(He!==void 0)return He}var Ye;Ge=!0;var Bt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ht;Ht=ue.current,ue.current=null,Te();try{if(ke){var kt=function(){throw Error()};if(Object.defineProperty(kt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(kt,[])}catch(xa){Ye=xa}Reflect.construct(J,[],kt)}else{try{kt.call()}catch(xa){Ye=xa}J.call(kt.prototype)}}else{try{throw Error()}catch(xa){Ye=xa}J()}}catch(xa){if(xa&&Ye&&typeof xa.stack=="string"){for(var vt=xa.stack.split(`
|
|
57
57
|
`),hr=Ye.stack.split(`
|
|
58
58
|
`),jn=vt.length-1,On=hr.length-1;jn>=1&&On>=0&&vt[jn]!==hr[On];)On--;for(;jn>=1&&On>=0;jn--,On--)if(vt[jn]!==hr[On]){if(jn!==1||On!==1)do if(jn--,On--,On<0||vt[jn]!==hr[On]){var Zr=`
|
|
@@ -70,7 +70,7 @@ Check the top-level render call using <`+He+">.")}return ke}}function ms(J,ke){{
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the MIT license found in the
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var JN;function _z(){return JN||(JN=1,function(t){function r(ne,Oe){var G=ne.length;ne.push(Oe);e:for(;0<G;){var Z=G-1>>>1,re=ne[Z];if(0<u(re,Oe))ne[Z]=Oe,ne[G]=re,G=Z;else break e}}function i(ne){return ne.length===0?null:ne[0]}function l(ne){if(ne.length===0)return null;var Oe=ne[0],G=ne.pop();if(G!==Oe){ne[0]=G;e:for(var Z=0,re=ne.length,Ce=re>>>1;Z<Ce;){var we=2*(Z+1)-1,Te=ne[we],Ie=we+1,ue=ne[Ie];if(0>u(Te,G))Ie<re&&0>u(ue,Te)?(ne[Z]=ue,ne[Ie]=G,Z=Ie):(ne[Z]=Te,ne[we]=G,Z=we);else if(Ie<re&&0>u(ue,G))ne[Z]=ue,ne[Ie]=G,Z=Ie;else break e}}return Oe}function u(ne,Oe){var G=ne.sortIndex-Oe.sortIndex;return G!==0?G:ne.id-Oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var v=Date,h=v.now();t.unstable_now=function(){return v.now()-h}}var y=[],x=[],C=1,w=null,R=3,j=!1,
|
|
73
|
+
*/var JN;function _z(){return JN||(JN=1,function(t){function r(ne,Oe){var G=ne.length;ne.push(Oe);e:for(;0<G;){var Z=G-1>>>1,re=ne[Z];if(0<u(re,Oe))ne[Z]=Oe,ne[G]=re,G=Z;else break e}}function i(ne){return ne.length===0?null:ne[0]}function l(ne){if(ne.length===0)return null;var Oe=ne[0],G=ne.pop();if(G!==Oe){ne[0]=G;e:for(var Z=0,re=ne.length,Ce=re>>>1;Z<Ce;){var we=2*(Z+1)-1,Te=ne[we],Ie=we+1,ue=ne[Ie];if(0>u(Te,G))Ie<re&&0>u(ue,Te)?(ne[Z]=ue,ne[Ie]=G,Z=Ie):(ne[Z]=Te,ne[we]=G,Z=we);else if(Ie<re&&0>u(ue,G))ne[Z]=ue,ne[Ie]=G,Z=Ie;else break e}}return Oe}function u(ne,Oe){var G=ne.sortIndex-Oe.sortIndex;return G!==0?G:ne.id-Oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var v=Date,h=v.now();t.unstable_now=function(){return v.now()-h}}var y=[],x=[],C=1,w=null,R=3,j=!1,A=!1,T=!1,I=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function V(ne){for(var Oe=i(x);Oe!==null;){if(Oe.callback===null)l(x);else if(Oe.startTime<=ne)l(x),Oe.sortIndex=Oe.expirationTime,r(y,Oe);else break;Oe=i(x)}}function U(ne){if(T=!1,V(ne),!A)if(i(y)!==null)A=!0,Ae(P);else{var Oe=i(x);Oe!==null&&Le(U,Oe.startTime-ne)}}function P(ne,Oe){A=!1,T&&(T=!1,M(Y),Y=-1),j=!0;var G=R;try{for(V(Oe),w=i(y);w!==null&&(!(w.expirationTime>Oe)||ne&&!ge());){var Z=w.callback;if(typeof Z=="function"){w.callback=null,R=w.priorityLevel;var re=Z(w.expirationTime<=Oe);Oe=t.unstable_now(),typeof re=="function"?w.callback=re:w===i(y)&&l(y),V(Oe)}else l(y);w=i(y)}if(w!==null)var Ce=!0;else{var we=i(x);we!==null&&Le(U,we.startTime-Oe),Ce=!1}return Ce}finally{w=null,R=G,j=!1}}var z=!1,X=null,Y=-1,pe=5,ie=-1;function ge(){return!(t.unstable_now()-ie<pe)}function ae(){if(X!==null){var ne=t.unstable_now();ie=ne;var Oe=!0;try{Oe=X(!0,ne)}finally{Oe?Re():(z=!1,X=null)}}else z=!1}var Re;if(typeof F=="function")Re=function(){F(ae)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,xe=be.port2;be.port1.onmessage=ae,Re=function(){xe.postMessage(null)}}else Re=function(){I(ae,0)};function Ae(ne){X=ne,z||(z=!0,Re())}function Le(ne,Oe){Y=I(function(){ne(t.unstable_now())},Oe)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ne){ne.callback=null},t.unstable_continueExecution=function(){A||j||(A=!0,Ae(P))},t.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<ne?Math.floor(1e3/ne):5},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return i(y)},t.unstable_next=function(ne){switch(R){case 1:case 2:case 3:var Oe=3;break;default:Oe=R}var G=R;R=Oe;try{return ne()}finally{R=G}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(ne,Oe){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var G=R;R=ne;try{return Oe()}finally{R=G}},t.unstable_scheduleCallback=function(ne,Oe,G){var Z=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Z+G:Z):G=Z,ne){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=G+re,ne={id:C++,callback:Oe,priorityLevel:ne,startTime:G,expirationTime:re,sortIndex:-1},G>Z?(ne.sortIndex=G,r(x,ne),i(y)===null&&ne===i(x)&&(T?(M(Y),Y=-1):T=!0,Le(U,G-Z))):(ne.sortIndex=re,r(y,ne),A||j||(A=!0,Ae(P))),ne},t.unstable_shouldYield=ge,t.unstable_wrapCallback=function(ne){var Oe=R;return function(){var G=R;R=Oe;try{return ne.apply(this,arguments)}finally{R=G}}}}(IE)),IE}var AE={},QN;function Tz(){return QN||(QN=1,function(t){var r={};/**
|
|
74
74
|
* @license React
|
|
75
75
|
* scheduler.development.js
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ Check the top-level render call using <`+He+">.")}return ke}}function ms(J,ke){{
|
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the MIT license found in the
|
|
80
80
|
* LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/r.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 i=!1,l=!1,u=5;function d(Xe,ht){var Mt=Xe.length;Xe.push(ht),y(Xe,ht,Mt)}function v(Xe){return Xe.length===0?null:Xe[0]}function h(Xe){if(Xe.length===0)return null;var ht=Xe[0],Mt=Xe.pop();return Mt!==ht&&(Xe[0]=Mt,x(Xe,Mt,0)),ht}function y(Xe,ht,Mt){for(var cn=Mt;cn>0;){var tn=cn-1>>>1,ir=Xe[tn];if(C(ir,ht)>0)Xe[tn]=ht,Xe[cn]=ir,cn=tn;else return}}function x(Xe,ht,Mt){for(var cn=Mt,tn=Xe.length,ir=tn>>>1;cn<ir;){var Gn=(cn+1)*2-1,Yr=Xe[Gn],hn=Gn+1,Nr=Xe[hn];if(C(Yr,ht)<0)hn<tn&&C(Nr,Yr)<0?(Xe[cn]=Nr,Xe[hn]=ht,cn=hn):(Xe[cn]=Yr,Xe[Gn]=ht,cn=Gn);else if(hn<tn&&C(Nr,ht)<0)Xe[cn]=Nr,Xe[hn]=ht,cn=hn;else return}}function C(Xe,ht){var Mt=Xe.sortIndex-ht.sortIndex;return Mt!==0?Mt:Xe.id-ht.id}var w=1,R=2,j=3,
|
|
81
|
+
*/r.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 i=!1,l=!1,u=5;function d(Xe,ht){var Mt=Xe.length;Xe.push(ht),y(Xe,ht,Mt)}function v(Xe){return Xe.length===0?null:Xe[0]}function h(Xe){if(Xe.length===0)return null;var ht=Xe[0],Mt=Xe.pop();return Mt!==ht&&(Xe[0]=Mt,x(Xe,Mt,0)),ht}function y(Xe,ht,Mt){for(var cn=Mt;cn>0;){var tn=cn-1>>>1,ir=Xe[tn];if(C(ir,ht)>0)Xe[tn]=ht,Xe[cn]=ir,cn=tn;else return}}function x(Xe,ht,Mt){for(var cn=Mt,tn=Xe.length,ir=tn>>>1;cn<ir;){var Gn=(cn+1)*2-1,Yr=Xe[Gn],hn=Gn+1,Nr=Xe[hn];if(C(Yr,ht)<0)hn<tn&&C(Nr,Yr)<0?(Xe[cn]=Nr,Xe[hn]=ht,cn=hn):(Xe[cn]=Yr,Xe[Gn]=ht,cn=Gn);else if(hn<tn&&C(Nr,ht)<0)Xe[cn]=Nr,Xe[hn]=ht,cn=hn;else return}}function C(Xe,ht){var Mt=Xe.sortIndex-ht.sortIndex;return Mt!==0?Mt:Xe.id-ht.id}var w=1,R=2,j=3,A=4,T=5;function I(Xe,ht){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var F=performance;t.unstable_now=function(){return F.now()}}else{var V=Date,U=V.now();t.unstable_now=function(){return V.now()-U}}var P=1073741823,z=-1,X=250,Y=5e3,pe=1e4,ie=P,ge=[],ae=[],Re=1,be=null,xe=j,Ae=!1,Le=!1,ne=!1,Oe=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(Xe){for(var ht=v(ae);ht!==null;){if(ht.callback===null)h(ae);else if(ht.startTime<=Xe)h(ae),ht.sortIndex=ht.expirationTime,d(ge,ht);else return;ht=v(ae)}}function Ce(Xe){if(ne=!1,re(Xe),!Le)if(v(ge)!==null)Le=!0,Pn(we);else{var ht=v(ae);ht!==null&&un(Ce,ht.startTime-Xe)}}function we(Xe,ht){Le=!1,ne&&(ne=!1,za()),Ae=!0;var Mt=xe;try{var cn;if(!l)return Te(Xe,ht)}finally{be=null,xe=Mt,Ae=!1}}function Te(Xe,ht){var Mt=ht;for(re(Mt),be=v(ge);be!==null&&!i&&!(be.expirationTime>Mt&&(!Xe||Vt()));){var cn=be.callback;if(typeof cn=="function"){be.callback=null,xe=be.priorityLevel;var tn=be.expirationTime<=Mt,ir=cn(tn);Mt=t.unstable_now(),typeof ir=="function"?be.callback=ir:be===v(ge)&&h(ge),re(Mt)}else h(ge);be=v(ge)}if(be!==null)return!0;var Gn=v(ae);return Gn!==null&&un(Ce,Gn.startTime-Mt),!1}function Ie(Xe,ht){switch(Xe){case w:case R:case j:case A:case T:break;default:Xe=j}var Mt=xe;xe=Xe;try{return ht()}finally{xe=Mt}}function ue(Xe){var ht;switch(xe){case w:case R:case j:ht=j;break;default:ht=xe;break}var Mt=xe;xe=ht;try{return Xe()}finally{xe=Mt}}function de(Xe){var ht=xe;return function(){var Mt=xe;xe=ht;try{return Xe.apply(this,arguments)}finally{xe=Mt}}}function Ve(Xe,ht,Mt){var cn=t.unstable_now(),tn;if(typeof Mt=="object"&&Mt!==null){var ir=Mt.delay;typeof ir=="number"&&ir>0?tn=cn+ir:tn=cn}else tn=cn;var Gn;switch(Xe){case w:Gn=z;break;case R:Gn=X;break;case T:Gn=ie;break;case A:Gn=pe;break;case j:default:Gn=Y;break}var Yr=tn+Gn,hn={id:Re++,callback:ht,priorityLevel:Xe,startTime:tn,expirationTime:Yr,sortIndex:-1};return tn>cn?(hn.sortIndex=tn,d(ae,hn),v(ge)===null&&hn===v(ae)&&(ne?za():ne=!0,un(Ce,tn-cn))):(hn.sortIndex=Yr,d(ge,hn),!Le&&!Ae&&(Le=!0,Pn(we))),hn}function Ge(){}function tt(){!Le&&!Ae&&(Le=!0,Pn(we))}function ot(){return v(ge)}function je(Xe){Xe.callback=null}function Rt(){return xe}var dt=!1,en=null,sn=-1,ln=u,In=-1;function Vt(){var Xe=t.unstable_now()-In;return!(Xe<ln)}function Cn(){}function Qn(Xe){if(Xe<0||Xe>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Xe>0?ln=Math.floor(1e3/Xe):ln=u}var _r=function(){if(en!==null){var Xe=t.unstable_now();In=Xe;var ht=!0,Mt=!0;try{Mt=en(ht,Xe)}finally{Mt?Hn():(dt=!1,en=null)}}else dt=!1},Hn;if(typeof Z=="function")Hn=function(){Z(_r)};else if(typeof MessageChannel<"u"){var Tr=new MessageChannel,St=Tr.port2;Tr.port1.onmessage=_r,Hn=function(){St.postMessage(null)}}else Hn=function(){Oe(_r,0)};function Pn(Xe){en=Xe,dt||(dt=!0,Hn())}function un(Xe,ht){sn=Oe(function(){Xe(t.unstable_now())},ht)}function za(){G(sn),sn=-1}var $a=Cn,Ua=null;t.unstable_IdlePriority=T,t.unstable_ImmediatePriority=w,t.unstable_LowPriority=A,t.unstable_NormalPriority=j,t.unstable_Profiling=Ua,t.unstable_UserBlockingPriority=R,t.unstable_cancelCallback=je,t.unstable_continueExecution=tt,t.unstable_forceFrameRate=Qn,t.unstable_getCurrentPriorityLevel=Rt,t.unstable_getFirstCallbackNode=ot,t.unstable_next=ue,t.unstable_pauseExecution=Ge,t.unstable_requestPaint=$a,t.unstable_runWithPriority=Ie,t.unstable_scheduleCallback=Ve,t.unstable_shouldYield=Vt,t.unstable_wrapCallback=de,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(AE)),AE}var KN;function hj(){if(KN)return Ob.exports;KN=1;var t={};return t.NODE_ENV==="production"?Ob.exports=_z():Ob.exports=Tz(),Ob.exports}/**
|
|
82
82
|
* @license React
|
|
83
83
|
* react-dom.production.min.js
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ Check the top-level render call using <`+He+">.")}return ke}}function ms(J,ke){{
|
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the MIT license found in the
|
|
88
88
|
* LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/var eI;function Nz(){if(eI)return Ti;eI=1;var t=tf(),r=hj();function i(a){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=1;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function d(a,o){v(a,o),v(a+"Capture",o)}function v(a,o){for(u[a]=o,a=0;a<o.length;a++)l.add(o[a])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,x=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},w={};function R(a){return y.call(w,a)?!0:y.call(C,a)?!1:x.test(a)?w[a]=!0:(C[a]=!0,!1)}function j(a,o,f,g){if(f!==null&&f.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return g?!1:f!==null?!f.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function
|
|
89
|
+
*/var eI;function Nz(){if(eI)return Ti;eI=1;var t=tf(),r=hj();function i(a){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=1;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function d(a,o){v(a,o),v(a+"Capture",o)}function v(a,o){for(u[a]=o,a=0;a<o.length;a++)l.add(o[a])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,x=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},w={};function R(a){return y.call(w,a)?!0:y.call(C,a)?!1:x.test(a)?w[a]=!0:(C[a]=!0,!1)}function j(a,o,f,g){if(f!==null&&f.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return g?!1:f!==null?!f.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function A(a,o,f,g){if(o===null||typeof o>"u"||j(a,o,f,g))return!0;if(g)return!1;if(f!==null)switch(f.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function T(a,o,f,g,S,_,L){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=g,this.attributeNamespace=S,this.mustUseProperty=f,this.propertyName=a,this.type=o,this.sanitizeURL=_,this.removeEmptyString=L}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){I[a]=new T(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var o=a[0];I[o]=new T(o,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){I[a]=new T(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){I[a]=new T(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){I[a]=new T(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){I[a]=new T(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){I[a]=new T(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){I[a]=new T(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){I[a]=new T(a,5,!1,a.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function F(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var o=a.replace(M,F);I[o]=new T(o,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var o=a.replace(M,F);I[o]=new T(o,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var o=a.replace(M,F);I[o]=new T(o,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){I[a]=new T(a,1,!1,a.toLowerCase(),null,!1,!1)}),I.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){I[a]=new T(a,1,!1,a.toLowerCase(),null,!0,!0)});function V(a,o,f,g){var S=I.hasOwnProperty(o)?I[o]:null;(S!==null?S.type!==0:g||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(A(o,f,S,g)&&(f=null),g||S===null?R(o)&&(f===null?a.removeAttribute(o):a.setAttribute(o,""+f)):S.mustUseProperty?a[S.propertyName]=f===null?S.type===3?!1:"":f:(o=S.attributeName,g=S.attributeNamespace,f===null?a.removeAttribute(o):(S=S.type,f=S===3||S===4&&f===!0?"":""+f,g?a.setAttributeNS(g,o,f):a.setAttribute(o,f))))}var U=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=Symbol.for("react.element"),z=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),ge=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),be=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),ne=Symbol.iterator;function Oe(a){return a===null||typeof a!="object"?null:(a=ne&&a[ne]||a["@@iterator"],typeof a=="function"?a:null)}var G=Object.assign,Z;function re(a){if(Z===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);Z=o&&o[1]||""}return`
|
|
90
90
|
`+Z+a}var Ce=!1;function we(a,o){if(!a||Ce)return"";Ce=!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
|
`),_=g.stack.split(`
|
|
92
92
|
`),L=S.length-1,W=_.length-1;1<=L&&0<=W&&S[L]!==_[W];)W--;for(;1<=L&&0<=W;L--,W--)if(S[L]!==_[W]){if(L!==1||W!==1)do if(L--,W--,0>W||S[L]!==_[W]){var Q=`
|
|
@@ -101,15 +101,15 @@ Error generating stack: `+_.message+`
|
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the MIT license found in the
|
|
103
103
|
* LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/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=tf(),i=hj(),l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=!1;function d(e){u=e}function v(e){if(!u){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];y("warn",e,s)}}function h(e){if(!u){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];y("error",e,s)}}function y(e,n,s){{var c=l.ReactDebugCurrentFrame,p=c.getStackAddendum();p!==""&&(n+="%s",s=s.concat([p]));var b=s.map(function(E){return String(E)});b.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,b)}}var x=0,C=1,w=2,R=3,j=4,N=5,T=6,A=7,M=8,F=9,V=10,U=11,P=12,z=13,X=14,Y=15,pe=16,ie=17,ge=18,ae=19,Re=21,be=22,xe=23,Ae=24,Le=25,ne=!0,Oe=!1,G=!1,Z=!1,re=!1,Ce=!0,we=!1,Te=!1,Ie=!0,ue=!0,de=!0,Ve=new Set,Ge={},tt={};function ot(e,n){je(e,n),je(e+"Capture",n)}function je(e,n){Ge[e]&&h("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ge[e]=n;{var s=e.toLowerCase();tt[s]=e,e==="onDoubleClick"&&(tt.ondblclick=e)}for(var c=0;c<n.length;c++)Ve.add(n[c])}var Rt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dt=Object.prototype.hasOwnProperty;function en(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function sn(e){try{return ln(e),!1}catch{return!0}}function ln(e){return""+e}function In(e,n){if(sn(e))return h("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",n,en(e)),ln(e)}function Vt(e){if(sn(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",en(e)),ln(e)}function Cn(e,n){if(sn(e))return h("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",n,en(e)),ln(e)}function Qn(e,n){if(sn(e))return h("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",n,en(e)),ln(e)}function _r(e){if(sn(e))return h("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",en(e)),ln(e)}function Hn(e){if(sn(e))return h("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",en(e)),ln(e)}var Tr=0,St=1,Pn=2,un=3,za=4,$a=5,Ua=6,Xe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ht=Xe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Mt=new RegExp("^["+Xe+"]["+ht+"]*$"),cn={},tn={};function ir(e){return dt.call(tn,e)?!0:dt.call(cn,e)?!1:Mt.test(e)?(tn[e]=!0,!0):(cn[e]=!0,h("Invalid attribute name: `%s`",e),!1)}function Gn(e,n,s){return n!==null?n.type===Tr:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Yr(e,n,s,c){if(s!==null&&s.type===Tr)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(s!==null)return!s.acceptsBooleans;var p=e.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function hn(e,n,s,c){if(n===null||typeof n>"u"||Yr(e,n,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case un:return!n;case za:return n===!1;case $a:return isNaN(n);case Ua:return isNaN(n)||n<1}return!1}function Nr(e){return An.hasOwnProperty(e)?An[e]:null}function dn(e,n,s,c,p,b,E){this.acceptsBooleans=n===Pn||n===un||n===za,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=b,this.removeEmptyString=E}var An={},ki=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ki.forEach(function(e){An[e]=new dn(e,Tr,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0],s=e[1];An[n]=new dn(n,St,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){An[e]=new dn(e,Pn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){An[e]=new dn(e,Pn,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){An[e]=new dn(e,un,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){An[e]=new dn(e,un,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){An[e]=new dn(e,za,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){An[e]=new dn(e,Ua,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){An[e]=new dn(e,$a,!1,e.toLowerCase(),null,!1,!1)});var ai=/[\-\:]([a-z])/g,vs=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var n=e.replace(ai,vs);An[n]=new dn(n,St,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var n=e.replace(ai,vs);An[n]=new dn(n,St,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(ai,vs);An[n]=new dn(n,St,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){An[e]=new dn(e,St,!1,e.toLowerCase(),null,!1,!1)});var il="xlinkHref";An[il]=new dn("xlinkHref",St,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){An[e]=new dn(e,St,!1,e.toLowerCase(),null,!0,!0)});var ol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ms=!1;function Mi(e){!ms&&ol.test(e)&&(ms=!0,h("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Li(e,n,s,c){if(c.mustUseProperty){var p=c.propertyName;return e[p]}else{In(s,n),c.sanitizeURL&&Mi(""+s);var b=c.attributeName,E=null;if(c.type===za){if(e.hasAttribute(b)){var I=e.getAttribute(b);return I===""?!0:hn(n,s,c,!1)?I:I===""+s?s:I}}else if(e.hasAttribute(b)){if(hn(n,s,c,!1))return e.getAttribute(b);if(c.type===un)return s;E=e.getAttribute(b)}return hn(n,s,c,!1)?E===null?s:E:E===""+s?s:E}}function ii(e,n,s,c){{if(!ir(n))return;if(!e.hasAttribute(n))return s===void 0?void 0:null;var p=e.getAttribute(n);return In(s,n),p===""+s?s:p}}function Io(e,n,s,c){var p=Nr(n);if(!Gn(n,p,c)){if(hn(n,s,p,c)&&(s=null),c||p===null){if(ir(n)){var b=n;s===null?e.removeAttribute(b):(In(s,n),e.setAttribute(b,""+s))}return}var E=p.mustUseProperty;if(E){var I=p.propertyName;if(s===null){var O=p.type;e[I]=O===un?!1:""}else e[I]=s;return}var B=p.attributeName,H=p.attributeNamespace;if(s===null)e.removeAttribute(B);else{var te=p.type,K;te===un||te===za&&s===!0?K="":(In(s,B),K=""+s,p.sanitizeURL&&Mi(K.toString())),H?e.setAttributeNS(H,B,K):e.setAttribute(B,K)}}}var ya=Symbol.for("react.element"),ba=Symbol.for("react.portal"),Ha=Symbol.for("react.fragment"),Ao=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),He=Symbol.for("react.context"),Ye=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),Ht=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),hr=Symbol.for("react.scope"),jn=Symbol.for("react.debug_trace_mode"),On=Symbol.for("react.offscreen"),Zr=Symbol.for("react.legacy_hidden"),Ki=Symbol.for("react.cache"),Dn=Symbol.for("react.tracing_marker"),xa=Symbol.iterator,Sc="@@iterator";function eo(e){if(e===null||typeof e!="object")return null;var n=xa&&e[xa]||e[Sc];return typeof n=="function"?n:null}var Lt=Object.assign,sl=0,jo,gs,Ca,Ec,ra,wc,Rc;function _c(){}_c.__reactDisabledLog=!0;function ll(){{if(sl===0){jo=console.log,gs=console.info,Ca=console.warn,Ec=console.error,ra=console.group,wc=console.groupCollapsed,Rc=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_c,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}sl++}}function uu(){{if(sl--,sl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:jo}),info:Lt({},e,{value:gs}),warn:Lt({},e,{value:Ca}),error:Lt({},e,{value:Ec}),group:Lt({},e,{value:ra}),groupCollapsed:Lt({},e,{value:wc}),groupEnd:Lt({},e,{value:Rc})})}sl<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oo=l.ReactCurrentDispatcher,to;function oi(e,n,s){{if(to===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);to=c&&c[1]||""}return`
|
|
105
|
-
`+to+e}}var ys=!1,no;{var ul=typeof WeakMap=="function"?WeakMap:Map;no=new ul}function cl(e,n){if(!e||ys)return"";{var s=no.get(e);if(s!==void 0)return s}var c;ys=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=Oo.current,Oo.current=null,ll();try{if(n){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(ve){c=ve}Reflect.construct(e,[],E)}else{try{E.call()}catch(ve){c=ve}e.call(E.prototype)}}else{try{throw Error()}catch(ve){c=ve}e()}}catch(ve){if(ve&&c&&typeof ve.stack=="string"){for(var
|
|
104
|
+
*/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=tf(),i=hj(),l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=!1;function d(e){u=e}function v(e){if(!u){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];y("warn",e,s)}}function h(e){if(!u){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];y("error",e,s)}}function y(e,n,s){{var c=l.ReactDebugCurrentFrame,p=c.getStackAddendum();p!==""&&(n+="%s",s=s.concat([p]));var b=s.map(function(E){return String(E)});b.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,b)}}var x=0,C=1,w=2,R=3,j=4,A=5,T=6,I=7,M=8,F=9,V=10,U=11,P=12,z=13,X=14,Y=15,pe=16,ie=17,ge=18,ae=19,Re=21,be=22,xe=23,Ae=24,Le=25,ne=!0,Oe=!1,G=!1,Z=!1,re=!1,Ce=!0,we=!1,Te=!1,Ie=!0,ue=!0,de=!0,Ve=new Set,Ge={},tt={};function ot(e,n){je(e,n),je(e+"Capture",n)}function je(e,n){Ge[e]&&h("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ge[e]=n;{var s=e.toLowerCase();tt[s]=e,e==="onDoubleClick"&&(tt.ondblclick=e)}for(var c=0;c<n.length;c++)Ve.add(n[c])}var Rt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dt=Object.prototype.hasOwnProperty;function en(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function sn(e){try{return ln(e),!1}catch{return!0}}function ln(e){return""+e}function In(e,n){if(sn(e))return h("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",n,en(e)),ln(e)}function Vt(e){if(sn(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",en(e)),ln(e)}function Cn(e,n){if(sn(e))return h("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",n,en(e)),ln(e)}function Qn(e,n){if(sn(e))return h("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",n,en(e)),ln(e)}function _r(e){if(sn(e))return h("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",en(e)),ln(e)}function Hn(e){if(sn(e))return h("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",en(e)),ln(e)}var Tr=0,St=1,Pn=2,un=3,za=4,$a=5,Ua=6,Xe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ht=Xe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Mt=new RegExp("^["+Xe+"]["+ht+"]*$"),cn={},tn={};function ir(e){return dt.call(tn,e)?!0:dt.call(cn,e)?!1:Mt.test(e)?(tn[e]=!0,!0):(cn[e]=!0,h("Invalid attribute name: `%s`",e),!1)}function Gn(e,n,s){return n!==null?n.type===Tr:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Yr(e,n,s,c){if(s!==null&&s.type===Tr)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(s!==null)return!s.acceptsBooleans;var p=e.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function hn(e,n,s,c){if(n===null||typeof n>"u"||Yr(e,n,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case un:return!n;case za:return n===!1;case $a:return isNaN(n);case Ua:return isNaN(n)||n<1}return!1}function Nr(e){return An.hasOwnProperty(e)?An[e]:null}function dn(e,n,s,c,p,b,E){this.acceptsBooleans=n===Pn||n===un||n===za,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=b,this.removeEmptyString=E}var An={},ki=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ki.forEach(function(e){An[e]=new dn(e,Tr,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0],s=e[1];An[n]=new dn(n,St,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){An[e]=new dn(e,Pn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){An[e]=new dn(e,Pn,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){An[e]=new dn(e,un,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){An[e]=new dn(e,un,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){An[e]=new dn(e,za,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){An[e]=new dn(e,Ua,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){An[e]=new dn(e,$a,!1,e.toLowerCase(),null,!1,!1)});var ai=/[\-\:]([a-z])/g,vs=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var n=e.replace(ai,vs);An[n]=new dn(n,St,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var n=e.replace(ai,vs);An[n]=new dn(n,St,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(ai,vs);An[n]=new dn(n,St,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){An[e]=new dn(e,St,!1,e.toLowerCase(),null,!1,!1)});var il="xlinkHref";An[il]=new dn("xlinkHref",St,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){An[e]=new dn(e,St,!1,e.toLowerCase(),null,!0,!0)});var ol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ms=!1;function Mi(e){!ms&&ol.test(e)&&(ms=!0,h("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Li(e,n,s,c){if(c.mustUseProperty){var p=c.propertyName;return e[p]}else{In(s,n),c.sanitizeURL&&Mi(""+s);var b=c.attributeName,E=null;if(c.type===za){if(e.hasAttribute(b)){var N=e.getAttribute(b);return N===""?!0:hn(n,s,c,!1)?N:N===""+s?s:N}}else if(e.hasAttribute(b)){if(hn(n,s,c,!1))return e.getAttribute(b);if(c.type===un)return s;E=e.getAttribute(b)}return hn(n,s,c,!1)?E===null?s:E:E===""+s?s:E}}function ii(e,n,s,c){{if(!ir(n))return;if(!e.hasAttribute(n))return s===void 0?void 0:null;var p=e.getAttribute(n);return In(s,n),p===""+s?s:p}}function Io(e,n,s,c){var p=Nr(n);if(!Gn(n,p,c)){if(hn(n,s,p,c)&&(s=null),c||p===null){if(ir(n)){var b=n;s===null?e.removeAttribute(b):(In(s,n),e.setAttribute(b,""+s))}return}var E=p.mustUseProperty;if(E){var N=p.propertyName;if(s===null){var O=p.type;e[N]=O===un?!1:""}else e[N]=s;return}var B=p.attributeName,H=p.attributeNamespace;if(s===null)e.removeAttribute(B);else{var te=p.type,K;te===un||te===za&&s===!0?K="":(In(s,B),K=""+s,p.sanitizeURL&&Mi(K.toString())),H?e.setAttributeNS(H,B,K):e.setAttribute(B,K)}}}var ya=Symbol.for("react.element"),ba=Symbol.for("react.portal"),Ha=Symbol.for("react.fragment"),Ao=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),He=Symbol.for("react.context"),Ye=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),Ht=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),hr=Symbol.for("react.scope"),jn=Symbol.for("react.debug_trace_mode"),On=Symbol.for("react.offscreen"),Zr=Symbol.for("react.legacy_hidden"),Ki=Symbol.for("react.cache"),Dn=Symbol.for("react.tracing_marker"),xa=Symbol.iterator,Sc="@@iterator";function eo(e){if(e===null||typeof e!="object")return null;var n=xa&&e[xa]||e[Sc];return typeof n=="function"?n:null}var Lt=Object.assign,sl=0,jo,gs,Ca,Ec,ra,wc,Rc;function _c(){}_c.__reactDisabledLog=!0;function ll(){{if(sl===0){jo=console.log,gs=console.info,Ca=console.warn,Ec=console.error,ra=console.group,wc=console.groupCollapsed,Rc=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_c,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}sl++}}function uu(){{if(sl--,sl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:jo}),info:Lt({},e,{value:gs}),warn:Lt({},e,{value:Ca}),error:Lt({},e,{value:Ec}),group:Lt({},e,{value:ra}),groupCollapsed:Lt({},e,{value:wc}),groupEnd:Lt({},e,{value:Rc})})}sl<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oo=l.ReactCurrentDispatcher,to;function oi(e,n,s){{if(to===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);to=c&&c[1]||""}return`
|
|
105
|
+
`+to+e}}var ys=!1,no;{var ul=typeof WeakMap=="function"?WeakMap:Map;no=new ul}function cl(e,n){if(!e||ys)return"";{var s=no.get(e);if(s!==void 0)return s}var c;ys=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=Oo.current,Oo.current=null,ll();try{if(n){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(ve){c=ve}Reflect.construct(e,[],E)}else{try{E.call()}catch(ve){c=ve}e.call(E.prototype)}}else{try{throw Error()}catch(ve){c=ve}e()}}catch(ve){if(ve&&c&&typeof ve.stack=="string"){for(var N=ve.stack.split(`
|
|
106
106
|
`),O=c.stack.split(`
|
|
107
|
-
`),B=
|
|
108
|
-
`+
|
|
107
|
+
`),B=N.length-1,H=O.length-1;B>=1&&H>=0&&N[B]!==O[H];)H--;for(;B>=1&&H>=0;B--,H--)if(N[B]!==O[H]){if(B!==1||H!==1)do if(B--,H--,H<0||N[B]!==O[H]){var te=`
|
|
108
|
+
`+N[B].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(B>=1&&H>=0);break}}}finally{ys=!1,Oo.current=b,uu(),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 Nc(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,Nc(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 Ic(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case A:return oi(e.type);case pe:return oi("Lazy");case z:return oi("Suspense");case ae:return oi("SuspenseList");case x:case w:case Y:return Tc(e.type);case U:return Tc(e.type.render);case C:return bs(e.type);default:return""}}function cu(e){try{var n="",s=e;do n+=Ic(s),s=s.return;while(s);return n}catch(c){return`
|
|
109
109
|
Error generating stack: `+c.message+`
|
|
110
|
-
`+c.stack}}function xs(e,n,s){var c=e.displayName;if(c)return c;var p=n.displayName||n.name||"";return p!==""?s+"("+p+")":s}function Ac(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 Ac(n)+".Consumer";case ke:var s=e;return Ac(s._context)+".Provider";case Ye:return xs(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 du(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 Ae:return"Cache";case F:var c=s;return dl(c)+".Consumer";case V:var p=s;return dl(p._context)+".Provider";case ge:return"DehydratedFragment";case U:return du(s,s.render,"ForwardRef");case
|
|
110
|
+
`+c.stack}}function xs(e,n,s){var c=e.displayName;if(c)return c;var p=n.displayName||n.name||"";return p!==""?s+"("+p+")":s}function Ac(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 Ac(n)+".Consumer";case ke:var s=e;return Ac(s._context)+".Provider";case Ye:return xs(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 du(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 Ae:return"Cache";case F:var c=s;return dl(c)+".Consumer";case V:var p=s;return dl(p._context)+".Provider";case ge:return"DehydratedFragment";case U:return du(s,s.render,"ForwardRef");case I:return"Fragment";case A:return s;case j:return"Portal";case R:return"Root";case T:return"Text";case pe:return Yt(s);case M:return s===Ao?"StrictMode":"Mode";case be:return"Offscreen";case P:return"Profiler";case Re:return"Scope";case z:return"Suspense";case ae:return"SuspenseList";case Le:return"TracingMarker";case C:case x:case ie:case w:case X:case Y: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 Cs(){return Wn===null?"":cu(Wn)}function Fn(){Pi.getCurrentStack=null,Wn=null,Sa=!1}function Xn(e){Pi.getCurrentStack=e===null?null:Cs,Wn=e,Sa=!1}function jc(){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 fu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,n){fu[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 pu(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=pu(e))}function hu(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,vu=!1,Oc=!1,Vi=!1;function mu(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&&!vu&&(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),vu=!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:mu(n)}}function fe(e,n){var s=e,c=n.checked;c!=null&&Io(s,"checked",c,!1)}function ye(e,n){var s=e;{var c=mu(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&&!Oc&&(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"),Oc=!0)}fe(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")?_t(s,n.type,p):n.hasOwnProperty("defaultValue")&&_t(s,n.type,Fi(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(s.defaultChecked=!!n.defaultChecked)}function ze(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.");hu(E),ye(E,N)}}}}function _t(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 gu(){var e=si();return e?`
|
|
111
111
|
|
|
112
|
-
Check the render method of \``+e+"`.":""}var Dc=["value","defaultValue"];function kc(e){{fl("select",e);for(var n=0;n<Dc.length;n++){var s=Dc[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,gu()):!e.multiple&&c&&h("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,gu())}}}}function Lo(e,n,s,c){var p=e.options;if(n){for(var b=s,E={},I=0;I<b.length;I++)E["$"+b[I]]=!0;for(var O=0;O<p.length;O++){var B=E.hasOwnProperty("$"+p[O].value);p[O].selected!==B&&(p[O].selected=B),B&&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 Mc(e,n){return Lt({},n,{value:void 0})}function Lc(e,n){var s=e;kc(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 sh(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 rx(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 lh(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 nf(e,n){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function ax(e,n){Gm(e,n)}var Po="http://www.w3.org/1999/xhtml",ix="http://www.w3.org/1998/Math/MathML",rf="http://www.w3.org/2000/svg";function uh(e){switch(e){case"svg":return rf;case"math":return ix;default:return Po}}function ch(e,n){return e==null||e===Po?uh(n):e===rf&&n==="foreignObject"?Po:e}var ox=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,p)})}:e},af,Wm=ox(function(e,n){if(e.namespaceURI===rf&&!("innerHTML"in e)){af=af||document.createElement("div"),af.innerHTML="<svg>"+n.valueOf().toString()+"</svg>";for(var s=af.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,dh=11,Pc=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"]},yu={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(yu).forEach(function(e){Zm.forEach(function(n){yu[Ym(n,e)]=yu[e]})});function ws(e,n,s){var c=n==null||typeof n=="boolean"||n==="";return c?"":!s&&typeof n=="number"&&n!==0&&!(yu.hasOwnProperty(e)&&yu[e])?n+"px":(Qn(n,e),(""+n).trim())}var sx=/([A-Z])/g,lx=/^ms-/;function ux(e){return e.replace(sx,"-$1").toLowerCase().replace(lx,"-ms-")}var fh=function(){};{var qm=/^(?:webkit|moz|o)[A-Z]/,Fc=/^-ms-/,Vc=/-(.)/g,Jm=/;\s*$/,Vo={},ph={},hh=!1,of=!1,vh=function(e){return e.replace(Vc,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,vh(e.replace(Fc,"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){ph.hasOwnProperty(n)&&ph[n]||(ph[n]=!0,h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Jm,"")))},cx=function(e,n){hh||(hh=!0,h("`NaN` is an invalid value for the `%s` css style property.",e))},dx=function(e,n){of||(of=!0,h("`Infinity` is an invalid value for the `%s` css style property.",e))};fh=function(e,n){e.indexOf("-")>-1?Qm(e):qm.test(e)?Km(e):Jm.test(n)&&eg(e,n),typeof n=="number"&&(isNaN(n)?cx(e,n):isFinite(n)||dx(e,n))}}var fx=fh;function px(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:ux(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||fx(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 bu(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=bu(e),c=bu(n),p={};for(var b in s){var E=s[b],I=c[b];if(I&&E!==I){var O=E+","+I;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,I)}}}}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 Bc(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 sf={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={},zc=new RegExp("^(aria)-["+ht+"]*$"),mh=new RegExp("^(aria)[A-Z]["+ht+"]*$");function og(e,n){{if(dt.call(Rs,n)&&Rs[n])return!0;if(mh.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(zc.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 lf(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 xu(e,n){hl(e,n)||lf(e,n)}var uf=!1;function sg(e,n){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;n!=null&&n.value===null&&!uf&&(uf=!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 $c=function(){};{var qr={},gh=/^on./,lg=/^on[^A-Z]/,ug=new RegExp("^(aria)-["+ht+"]*$"),cg=new RegExp("^(aria)[A-Z]["+ht+"]*$");$c=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 I=E.hasOwnProperty(p)?E[p]:null;if(I!=null)return h("Invalid event handler property `%s`. Did you mean `%s`?",n,I),qr[n]=!0,!0;if(gh.test(n))return h("Unknown event handler property `%s`. It will be ignored.",n),qr[n]=!0,!0}else if(gh.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),B=O!==null&&O.type===Tr;if(sf.hasOwnProperty(p)){var H=sf[p];if(H!==n)return h("Invalid DOM property `%s`. Did you mean `%s`?",n,H),qr[n]=!0,!0}else if(!B&&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):B?!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=$c(e,p,n[p],s);b||c.push(p)}var E=c.map(function(I){return"`"+I+"`"}).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 _s(e,n,s){hl(e,n)||dg(e,n,s)}var cf=1,Uc=2,Hc=4,hx=cf|Uc|Hc,Bo=null;function vx(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 Tn(e){var n=e.target||e.srcElement||window;return n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===Fo?n.parentNode:n}var Gc=null,zo=null,ao=null;function yh(e){var n=Qu(e);if(n){if(typeof Gc!="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);Gc(n.stateNode,n.type,c)}}}function bh(e){Gc=e}function Cu(e){zo?ao?ao.push(e):ao=[e]:zo=e}function df(){return zo!==null||ao!==null}function ml(){if(zo){var e=zo,n=ao;if(zo=null,ao=null,yh(e),n)for(var s=0;s<n.length;s++)yh(n[s])}}var xh=function(e,n){return e(n)},hg=function(){},Ch=!1;function vg(){var e=df();e&&(hg(),ml())}function Wc(e,n,s){if(Ch)return e(n,s);Ch=!0;try{return xh(e,n,s)}finally{Ch=!1,vg()}}function ff(e,n,s){xh=e,hg=s}function Sh(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Eh(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&&Sh(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(Eh(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 Xc=!1;if(Rt)try{var Yc={};Object.defineProperty(Yc,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",Yc,Yc),window.removeEventListener("test",Yc,Yc)}catch{Xc=!1}function wh(e,n,s,c,p,b,E,I,O){var B=Array.prototype.slice.call(arguments,3);try{n.apply(s,B)}catch(H){this.onError(H)}}var mg=wh;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Rh=document.createElement("react");mg=function(n,s,c,p,b,E,I,O,B){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 Se(){Rh.removeEventListener(Ee,yt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var Ke=Array.prototype.slice.call(arguments,3);function yt(){te=!0,Se(),s.apply(c,Ke),K=!1}var pt,Wt=!1,$t=!1;function se(le){if(pt=le.error,Wt=!0,pt===null&&le.colno===0&&le.lineno===0&&($t=!0),le.defaultPrevented&&pt!=null&&typeof pt=="object")try{pt._suppressLogging=!0}catch{}}var Ee="react-"+(n||"invokeguardedcallback");if(window.addEventListener("error",se),Rh.addEventListener(Ee,yt,!1),H.initEvent(Ee,!1,!1),Rh.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",se),!te)return Se(),wh.apply(this,arguments)}}var _h=mg,Wa=!1,Zc=null,$o=!1,ui=null,qc={onError:function(e){Wa=!0,Zc=e}};function zi(e,n,s,c,p,b,E,I,O){Wa=!1,Zc=null,_h.apply(qc,arguments)}function Th(e,n,s,c,p,b,E,I,O){if(zi.apply(this,arguments),Wa){var B=Uo();$o||($o=!0,ui=B)}}function mx(){if($o){var e=ui;throw $o=!1,ui=null,e}}function gx(){return Wa}function Uo(){if(Wa){var e=Zc;return Wa=!1,Zc=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 Su(e){return e._reactInternals!==void 0}function pf(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,Ts=8192,yl=16384,gg=Ra|ut|Ir|Xa|vr|yl,Ho=32767,Ns=32768,Pr=65536,hf=131072,yg=1048576,so=2097152,di=4194304,Is=8388608,fi=16777216,bl=33554432,_a=ut|vr|0,Ta=Nn|ut|nn|ci|Xa|oo|Ts,Ui=ut|Ir|Xa|Ts,Na=Ra|nn,Fr=di|Is|so,xl=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 vf(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 mf(e){return e.tag===R?e.stateNode.containerInfo:null}function Ya(e){return As(e)===e}function Za(e){{var n=xl.current;if(n!==null&&n.tag===C){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 I=b.return;if(I!==null){c=p=I;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 B=!1,H=b.child;H;){if(H===c){B=!0,c=b,p=E;break}if(H===p){B=!0,p=b,c=E;break}H=H.sibling}if(!B){for(H=E.child;H;){if(H===c){B=!0,c=E,p=b;break}if(H===p){B=!0,p=E,c=b;break}H=H.sibling}if(!B)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 Nh(e){var n=pi(e);return n!==null?Ih(n):null}function Ih(e){if(e.tag===N||e.tag===T)return e;for(var n=e.child;n!==null;){var s=Ih(n);if(s!==null)return s;n=n.sibling}return null}function Ah(e){var n=pi(e);return n!==null?gf(n):null}function gf(e){if(e.tag===N||e.tag===T)return e;for(var n=e.child;n!==null;){if(n.tag!==j){var s=gf(n);if(s!==null)return s}n=n.sibling}return null}var jh=i.unstable_scheduleCallback,yf=i.unstable_cancelCallback,bg=i.unstable_shouldYield,Eu=i.unstable_requestPaint,mr=i.unstable_now,yx=i.unstable_getCurrentPriorityLevel,Ia=i.unstable_ImmediatePriority,wu=i.unstable_UserBlockingPriority,lo=i.unstable_NormalPriority,Ru=i.unstable_LowPriority,Jc=i.unstable_IdlePriority,Oh=i.unstable_yieldValue,Dh=i.unstable_setDisableYieldValue,js=null,or=null,Ue=null,Jr=!1,qa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function xg(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{Ie&&(e=Lt({},e,{getLaneLabelMap:bf,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(ue){var c;switch(n){case cr:c=Ia;break;case Xo:c=wu;break;case fo:c=lo;break;case Mu:c=Jc;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 kh(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 Cg(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 Oh=="function"&&(Dh(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){Ue=e}function bf(){{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){Ue!==null&&typeof Ue.markCommitStarted=="function"&&Ue.markCommitStarted(e)}function Qc(){Ue!==null&&typeof Ue.markCommitStopped=="function"&&Ue.markCommitStopped()}function _u(e){Ue!==null&&typeof Ue.markComponentRenderStarted=="function"&&Ue.markComponentRenderStarted(e)}function Cl(){Ue!==null&&typeof Ue.markComponentRenderStopped=="function"&&Ue.markComponentRenderStopped()}function Mh(e){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStarted=="function"&&Ue.markComponentPassiveEffectMountStarted(e)}function xf(){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStopped=="function"&&Ue.markComponentPassiveEffectMountStopped()}function Eg(e){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStarted=="function"&&Ue.markComponentPassiveEffectUnmountStarted(e)}function wg(){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStopped=="function"&&Ue.markComponentPassiveEffectUnmountStopped()}function Rg(e){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStarted=="function"&&Ue.markComponentLayoutEffectMountStarted(e)}function Lh(){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStopped=="function"&&Ue.markComponentLayoutEffectMountStopped()}function Tu(e){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStarted=="function"&&Ue.markComponentLayoutEffectUnmountStarted(e)}function Kc(){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStopped=="function"&&Ue.markComponentLayoutEffectUnmountStopped()}function _g(e,n,s){Ue!==null&&typeof Ue.markComponentErrored=="function"&&Ue.markComponentErrored(e,n,s)}function Tg(e,n,s){Ue!==null&&typeof Ue.markComponentSuspended=="function"&&Ue.markComponentSuspended(e,n,s)}function Nu(e){Ue!==null&&typeof Ue.markLayoutEffectsStarted=="function"&&Ue.markLayoutEffectsStarted(e)}function Ng(){Ue!==null&&typeof Ue.markLayoutEffectsStopped=="function"&&Ue.markLayoutEffectsStopped()}function ed(e){Ue!==null&&typeof Ue.markPassiveEffectsStarted=="function"&&Ue.markPassiveEffectsStarted(e)}function uo(){Ue!==null&&typeof Ue.markPassiveEffectsStopped=="function"&&Ue.markPassiveEffectsStopped()}function Iu(e){Ue!==null&&typeof Ue.markRenderStarted=="function"&&Ue.markRenderStarted(e)}function td(){Ue!==null&&typeof Ue.markRenderYielded=="function"&&Ue.markRenderYielded()}function ks(){Ue!==null&&typeof Ue.markRenderStopped=="function"&&Ue.markRenderStopped()}function Ph(e){Ue!==null&&typeof Ue.markRenderScheduled=="function"&&Ue.markRenderScheduled(e)}function Au(e,n){Ue!==null&&typeof Ue.markForceUpdateScheduled=="function"&&Ue.markForceUpdateScheduled(e,n)}function Cf(e,n){Ue!==null&&typeof Ue.markStateUpdateScheduled=="function"&&Ue.markStateUpdateScheduled(e,n)}var gt=0,ft=1,Kt=2,er=8,hi=16,nd=Math.clz32?Math.clz32:Yn,Fh=Math.log,Sl=Math.LN2;function Yn(e){var n=e>>>0;return n===0?32:31-(Fh(n)/Sl|0)|0}var sr=31,_e=0,lr=0,xt=1,co=2,Wo=4,tr=8,mi=16,El=32,Ms=4194240,Aa=64,ja=128,wl=256,rd=512,ad=1024,Sf=2048,Ef=4096,wf=8192,Rf=16384,_f=32768,Tf=65536,Nf=131072,If=262144,Rl=524288,Af=1048576,ju=2097152,_l=130023424,Tl=4194304,id=8388608,jf=16777216,Of=33554432,Df=67108864,Vh=Tl,Nl=134217728,Bh=268435455,Ou=268435456,Ls=536870912,Ja=1073741824;function Ig(e){{if(e&xt)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&_l)return"Retry";if(e&Nl)return"SelectiveHydration";if(e&Ou)return"IdleHydration";if(e&Ls)return"Idle";if(e&Ja)return"Offscreen"}}var Mn=-1,kf=Aa,od=Tl;function Du(e){switch(ur(e)){case xt:return xt;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 rd:case ad:case Sf:case Ef:case wf:case Rf:case _f:case Tf:case Nf:case If:case Rl:case Af:case ju:return e&Ms;case Tl:case id:case jf:case Of:case Df:return e&_l;case Nl:return Nl;case Ou:return Ou;case Ls:return Ls;case Ja:return Ja;default:return h("Should have found matching lanes. This is a bug in React."),e}}function sd(e,n){var s=e.pendingLanes;if(s===_e)return _e;var c=_e,p=e.suspendedLanes,b=e.pingedLanes,E=s&Bh;if(E!==_e){var I=E&~p;if(I!==_e)c=Du(I);else{var O=E&b;O!==_e&&(c=Du(O))}}else{var B=s&~p;B!==_e?c=Du(B):b!==_e&&(c=Du(b))}if(c===_e)return _e;if(n!==_e&&n!==c&&(n&p)===_e){var H=ur(c),te=ur(n);if(H>=te||H===mi&&(te&Ms)!==_e)return n}(c&Wo)!==_e&&(c|=s&mi);var K=e.entangledLanes;if(K!==_e)for(var he=e.entanglements,ve=c&K;ve>0;){var Se=Fs(ve),Ke=1<<Se;c|=he[Se],ve&=~Ke}return c}function Mf(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 bx(e,n){switch(e){case xt:case co:case Wo:return n+250;case tr:case mi:case El:case Aa:case ja:case wl:case rd:case ad:case Sf:case Ef:case wf:case Rf:case _f:case Tf:case Nf:case If:case Rl:case Af:case ju:return n+5e3;case Tl:case id:case jf:case Of:case Df:return Mn;case Nl:case Ou:case Ls:case Ja:return Mn;default:return h("Should have found matching lanes. This is a bug in React."),Mn}}function xx(e,n){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,b=e.expirationTimes,E=s;E>0;){var I=Fs(E),O=1<<I,B=b[I];B===Mn?((O&c)===_e||(O&p)!==_e)&&(b[I]=bx(O,n)):B<=n&&(e.expiredLanes|=O),E&=~O}}function Cx(e){return Du(e.pendingLanes)}function Ps(e){var n=e.pendingLanes&~Ja;return n!==_e?n:n&Ja?Ja:_e}function zh(e){return(e&xt)!==_e}function ld(e){return(e&Bh)!==_e}function Ag(e){return(e&_l)===e}function jg(e){var n=xt|Wo|mi;return(e&n)===_e}function Og(e){return(e&Ms)===e}function ud(e,n){var s=co|Wo|tr|mi;return(n&s)!==_e}function Dg(e,n){return(n&e.expiredLanes)!==_e}function $h(e){return(e&Ms)!==_e}function kg(){var e=kf;return kf<<=1,(kf&Ms)===_e&&(kf=Aa),e}function Oa(){var e=od;return od<<=1,(od&_l)===_e&&(od=Tl),e}function ur(e){return e&-e}function ku(e){return ur(e)}function Fs(e){return 31-nd(e)}function Lf(e){return Fs(e)}function Da(e,n){return(e&n)!==_e}function Il(e,n){return(e&n)===n}function Dt(e,n){return e|n}function cd(e,n){return e&~n}function Pf(e,n){return e&n}function Sx(e){return e}function Mg(e,n){return e!==lr&&e<n?e:n}function dd(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=_e,e.pingedLanes=_e);var c=e.eventTimes,p=Lf(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 Ff(e,n,s){e.pingedLanes|=e.suspendedLanes&n}function Vf(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=_e,e.pingedLanes=_e,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 I=Fs(E),O=1<<I;c[I]=_e,p[I]=Mn,b[I]=Mn,E&=~O}}function Uh(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 rd:case ad:case Sf:case Ef:case wf:case Rf:case _f:case Tf:case Nf:case If:case Rl:case Af:case ju:case Tl:case id:case jf:case Of:case Df:c=El;break;case Ls:c=Ou;break;default:c=lr;break}return(c&(e.suspendedLanes|n))!==lr?lr:c}function Bf(e,n,s){if(qa)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=Lf(s),b=1<<p,E=c[p];E.add(n),s&=~b}}function Hh(e,n){if(qa)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;n>0;){var p=Lf(n),b=1<<p,E=s[p];E.size>0&&(E.forEach(function(I){var O=I.alternate;(O===null||!c.has(O))&&c.add(I)}),E.clear()),n&=~b}}function fd(e,n){return null}var cr=xt,Xo=Wo,fo=mi,Mu=Ls,Lu=lr;function gi(){return Lu}function nr(e){Lu=e}function Qr(e,n){var s=Lu;try{return Lu=e,n()}finally{Lu=s}}function Ex(e,n){return e!==0&&e<n?e:n}function wx(e,n){return e===0||e>n?e:n}function Pu(e,n){return e!==0&&e<n}function Vr(e){var n=ur(e);return Pu(cr,n)?Pu(Xo,n)?ld(n)?fo:Mu:Xo:cr}function zf(e){var n=e.current.memoizedState;return n.isDehydrated}var nt;function Fu(e){nt=e}function Gh(e){nt(e)}var $f;function Rx(e){$f=e}var Vu;function Uf(e){Vu=e}var Hf;function Fg(e){Hf=e}var Wh;function Vg(e){Wh=e}var pd=!1,Bu=[],Un=null,Ar=null,ia=null,zu=new Map,$u=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 _x(e,n,s,c,p){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function Xh(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;zu.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=n.pointerId;$u.delete(c);break}}}function Uu(e,n,s,c,p,b){if(e===null||e.nativeEvent!==b){var E=_x(n,s,c,p,b);if(n!==null){var I=Qu(n);I!==null&&$f(I)}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=Uu(Un,e,n,s,c,b),!0}case"dragenter":{var E=p;return Ar=Uu(Ar,e,n,s,c,E),!0}case"mouseover":{var I=p;return ia=Uu(ia,e,n,s,c,I),!0}case"pointerover":{var O=p,B=O.pointerId;return zu.set(B,Uu(zu.get(B)||null,e,n,s,c,O)),!0}case"gotpointercapture":{var H=p,te=H.pointerId;return $u.set(te,Uu($u.get(te)||null,e,n,s,c,H)),!0}}return!1}function Yh(e){var n=Rd(e.target);if(n!==null){var s=As(n);if(s!==null){var c=s.tag;if(c===z){var p=vf(s);if(p!==null){e.blockedOn=p,Wh(e.priority,function(){Vu(s)});return}}else if(c===R){var b=s.stateNode;if(zf(b)){e.blockedOn=mf(s);return}}}}e.blockedOn=null}function Tx(e){for(var n=Hf(),s={blockedOn:null,target:e,priority:n},c=0;c<jr.length&&Pu(n,jr[c].priority);c++);jr.splice(c,0,s),c===0&&Yh(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);vx(b),p.target.dispatchEvent(b),fg()}else{var E=Qu(c);return E!==null&&$f(E),e.blockedOn=c,!1}n.shift()}return!0}function Gf(e,n,s){jl(e)&&s.delete(n)}function yi(){pd=!1,Un!==null&&jl(Un)&&(Un=null),Ar!==null&&jl(Ar)&&(Ar=null),ia!==null&&jl(ia)&&(ia=null),zu.forEach(Gf),$u.forEach(Gf)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,pd||(pd=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yi)))}function rr(e){if(Bu.length>0){zt(Bu[0],e);for(var n=1;n<Bu.length;n++){var s=Bu[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(I){return zt(I,e)};zu.forEach(c),$u.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;Yh(E),E.blockedOn===null&&jr.shift()}}var zn=l.ReactCurrentBatchConfig,xr=!0;function ka(e){xr=!!e}function Hu(){return xr}function Cr(e,n,s){var c=Wf(n),p;switch(c){case cr:p=hd;break;case Xo:p=Ol;break;case fo:default:p=Gu;break}return p.bind(null,n,s,e)}function hd(e,n,s,c){var p=gi(),b=zn.transition;zn.transition=null;try{nr(cr),Gu(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),Gu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Gu(e,n,s,c){xr&&Zh(e,n,s,c)}function Zh(e,n,s,c){var p=Kr(e,n,s,c);if(p===null){Hx(e,n,c,Vs,s),Xh(e,c);return}if(zg(p,e,n,s,c)){c.stopPropagation();return}if(Xh(e,c),n&Hc&&po(e)){for(;p!==null;){var b=Qu(p);b!==null&&Gh(b);var E=Kr(e,n,s,c);if(E===null&&Hx(e,n,c,Vs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}Hx(e,n,c,null,s)}var Vs=null;function Kr(e,n,s,c){Vs=null;var p=Tn(c),b=Rd(p);if(b!==null){var E=As(b);if(E===null)b=null;else{var I=E.tag;if(I===z){var O=vf(E);if(O!==null)return O;b=null}else if(I===R){var B=E.stateNode;if(zf(B))return mf(E);b=null}else E!==b&&(b=null)}}return Vs=b,null}function Wf(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=yx();switch(n){case Ia:return cr;case wu:return Xo;case lo:case Ru:return fo;case Jc:return Mu;default:return fo}}default:return fo}}function Wu(e,n,s){return e.addEventListener(n,s,!1),s}function Yo(e,n,s){return e.addEventListener(n,s,!0),s}function Xf(e,n,s,c){return e.addEventListener(n,s,{capture:!0,passive:c}),s}function qh(e,n,s,c){return e.addEventListener(n,s,{passive:c}),s}var bi=null,Xu=null,xi=null;function Yf(e){return bi=e,Xu=md(),!0}function vd(){bi=null,Xu=null,xi=null}function Zf(){if(xi)return xi;var e,n=Xu,s=n.length,c,p=md(),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 I=c>1?1-c:void 0;return xi=p.slice(e,I),xi}function md(){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 I in e)if(e.hasOwnProperty(I)){var O=e[I];O?this[I]=O(b):this[I]=b[I]}var B=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return B?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},qf=Zn(Sr),kl=Lt({},Sr,{view:0,detail:0}),Jh=Zn(kl),Qh,ho,Yu;function Kh(e){e!==Yu&&(Yu&&e.type==="mousemove"?(Qh=e.screenX-Yu.screenX,ho=e.screenY-Yu.screenY):(Qh=0,ho=0),Yu=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:ev,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:(Kh(e),Qh)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),Jf=Zn(vo),Ml=Lt({},vo,{dataTransfer:0}),$g=Zn(Ml),Ug=Lt({},kl,{relatedTarget:0}),gd=Zn(Ug),Qf=Lt({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),Nx=Zn(Qf),Ix=Lt({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hg=Zn(Ix),Gg=Lt({},Sr,{data:0}),Bs=Zn(Gg),Ax=Bs,Zu={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=Zu[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 jx={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=jx[e];return c?!!s[c]:!1}function ev(e){return Xg}var Ox=Lt({},kl,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ev,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(Ox),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),Ci=Lt({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ev}),tv=Zn(Ci),Dx=Lt({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),zs=Zn(Dx),Kf=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(Kf),ep=[9,13,27,32],tp=229,yd=Rt&&"CompositionEvent"in window,bd=null;Rt&&"documentMode"in document&&(bd=document.documentMode);var nv=Rt&&"TextEvent"in window&&!bd,Jg=Rt&&(!yd||bd&&bd>8&&bd<=11),rv=32,av=String.fromCharCode(rv);function np(){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 xd=!1;function Qg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function iv(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function kx(e,n){return e==="keydown"&&n.keyCode===tp}function ov(e,n){switch(e){case"keyup":return ep.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==tp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rp(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 ap(e,n,s,c,p){var b,E;if(yd?b=iv(n):$s?ov(n,c)&&(b="onCompositionEnd"):kx(n,c)&&(b="onCompositionStart"),!b)return null;Jg&&!Cd(c)&&(!$s&&b==="onCompositionStart"?$s=Yf(p):b==="onCompositionEnd"&&$s&&(E=Zf()));var I=ay(s,b);if(I.length>0){var O=new Bs(b,n,null,c,p);if(e.push({event:O,listeners:I}),E)O.data=E;else{var B=rp(c);B!==null&&(O.data=B)}}}function Kg(e,n){switch(e){case"compositionend":return rp(n);case"keypress":var s=n.which;return s!==rv?null:(xd=!0,av);case"textInput":var c=n.data;return c===av&&xd?null:c;default:return null}}function Mx(e,n){if($s){if(e==="compositionend"||!yd&&ov(e,n)){var s=Zf();return vd(),$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 ip(e,n,s,c,p){var b;if(nv?b=Kg(n,c):b=Mx(n,c),!b)return null;var E=ay(s,"onBeforeInput");if(E.length>0){var I=new Ax("onBeforeInput","beforeinput",null,c,p);e.push({event:I,listeners:E}),I.data=b}}function Lx(e,n,s,c,p,b,E){ap(e,n,s,c,p),ip(e,n,s,c,p)}var Sd={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"?!!Sd[e.type]:n==="textarea"}/**
|
|
112
|
+
Check the render method of \``+e+"`.":""}var Dc=["value","defaultValue"];function kc(e){{fl("select",e);for(var n=0;n<Dc.length;n++){var s=Dc[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,gu()):!e.multiple&&c&&h("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,gu())}}}}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 B=E.hasOwnProperty("$"+p[O].value);p[O].selected!==B&&(p[O].selected=B),B&&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 Mc(e,n){return Lt({},n,{value:void 0})}function Lc(e,n){var s=e;kc(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 sh(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 rx(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 lh(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 nf(e,n){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function ax(e,n){Gm(e,n)}var Po="http://www.w3.org/1999/xhtml",ix="http://www.w3.org/1998/Math/MathML",rf="http://www.w3.org/2000/svg";function uh(e){switch(e){case"svg":return rf;case"math":return ix;default:return Po}}function ch(e,n){return e==null||e===Po?uh(n):e===rf&&n==="foreignObject"?Po:e}var ox=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,p)})}:e},af,Wm=ox(function(e,n){if(e.namespaceURI===rf&&!("innerHTML"in e)){af=af||document.createElement("div"),af.innerHTML="<svg>"+n.valueOf().toString()+"</svg>";for(var s=af.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,dh=11,Pc=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"]},yu={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(yu).forEach(function(e){Zm.forEach(function(n){yu[Ym(n,e)]=yu[e]})});function ws(e,n,s){var c=n==null||typeof n=="boolean"||n==="";return c?"":!s&&typeof n=="number"&&n!==0&&!(yu.hasOwnProperty(e)&&yu[e])?n+"px":(Qn(n,e),(""+n).trim())}var sx=/([A-Z])/g,lx=/^ms-/;function ux(e){return e.replace(sx,"-$1").toLowerCase().replace(lx,"-ms-")}var fh=function(){};{var qm=/^(?:webkit|moz|o)[A-Z]/,Fc=/^-ms-/,Vc=/-(.)/g,Jm=/;\s*$/,Vo={},ph={},hh=!1,of=!1,vh=function(e){return e.replace(Vc,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,vh(e.replace(Fc,"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){ph.hasOwnProperty(n)&&ph[n]||(ph[n]=!0,h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Jm,"")))},cx=function(e,n){hh||(hh=!0,h("`NaN` is an invalid value for the `%s` css style property.",e))},dx=function(e,n){of||(of=!0,h("`Infinity` is an invalid value for the `%s` css style property.",e))};fh=function(e,n){e.indexOf("-")>-1?Qm(e):qm.test(e)?Km(e):Jm.test(n)&&eg(e,n),typeof n=="number"&&(isNaN(n)?cx(e,n):isFinite(n)||dx(e,n))}}var fx=fh;function px(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:ux(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||fx(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 bu(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=bu(e),c=bu(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 Bc(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 sf={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={},zc=new RegExp("^(aria)-["+ht+"]*$"),mh=new RegExp("^(aria)[A-Z]["+ht+"]*$");function og(e,n){{if(dt.call(Rs,n)&&Rs[n])return!0;if(mh.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(zc.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 lf(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 xu(e,n){hl(e,n)||lf(e,n)}var uf=!1;function sg(e,n){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;n!=null&&n.value===null&&!uf&&(uf=!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 $c=function(){};{var qr={},gh=/^on./,lg=/^on[^A-Z]/,ug=new RegExp("^(aria)-["+ht+"]*$"),cg=new RegExp("^(aria)[A-Z]["+ht+"]*$");$c=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(gh.test(n))return h("Unknown event handler property `%s`. It will be ignored.",n),qr[n]=!0,!0}else if(gh.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),B=O!==null&&O.type===Tr;if(sf.hasOwnProperty(p)){var H=sf[p];if(H!==n)return h("Invalid DOM property `%s`. Did you mean `%s`?",n,H),qr[n]=!0,!0}else if(!B&&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):B?!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=$c(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 _s(e,n,s){hl(e,n)||dg(e,n,s)}var cf=1,Uc=2,Hc=4,hx=cf|Uc|Hc,Bo=null;function vx(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 Tn(e){var n=e.target||e.srcElement||window;return n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===Fo?n.parentNode:n}var Gc=null,zo=null,ao=null;function yh(e){var n=Qu(e);if(n){if(typeof Gc!="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);Gc(n.stateNode,n.type,c)}}}function bh(e){Gc=e}function Cu(e){zo?ao?ao.push(e):ao=[e]:zo=e}function df(){return zo!==null||ao!==null}function ml(){if(zo){var e=zo,n=ao;if(zo=null,ao=null,yh(e),n)for(var s=0;s<n.length;s++)yh(n[s])}}var xh=function(e,n){return e(n)},hg=function(){},Ch=!1;function vg(){var e=df();e&&(hg(),ml())}function Wc(e,n,s){if(Ch)return e(n,s);Ch=!0;try{return xh(e,n,s)}finally{Ch=!1,vg()}}function ff(e,n,s){xh=e,hg=s}function Sh(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Eh(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&&Sh(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(Eh(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 Xc=!1;if(Rt)try{var Yc={};Object.defineProperty(Yc,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",Yc,Yc),window.removeEventListener("test",Yc,Yc)}catch{Xc=!1}function wh(e,n,s,c,p,b,E,N,O){var B=Array.prototype.slice.call(arguments,3);try{n.apply(s,B)}catch(H){this.onError(H)}}var mg=wh;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Rh=document.createElement("react");mg=function(n,s,c,p,b,E,N,O,B){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 Se(){Rh.removeEventListener(Ee,yt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var Ke=Array.prototype.slice.call(arguments,3);function yt(){te=!0,Se(),s.apply(c,Ke),K=!1}var pt,Wt=!1,$t=!1;function se(le){if(pt=le.error,Wt=!0,pt===null&&le.colno===0&&le.lineno===0&&($t=!0),le.defaultPrevented&&pt!=null&&typeof pt=="object")try{pt._suppressLogging=!0}catch{}}var Ee="react-"+(n||"invokeguardedcallback");if(window.addEventListener("error",se),Rh.addEventListener(Ee,yt,!1),H.initEvent(Ee,!1,!1),Rh.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",se),!te)return Se(),wh.apply(this,arguments)}}var _h=mg,Wa=!1,Zc=null,$o=!1,ui=null,qc={onError:function(e){Wa=!0,Zc=e}};function zi(e,n,s,c,p,b,E,N,O){Wa=!1,Zc=null,_h.apply(qc,arguments)}function Th(e,n,s,c,p,b,E,N,O){if(zi.apply(this,arguments),Wa){var B=Uo();$o||($o=!0,ui=B)}}function mx(){if($o){var e=ui;throw $o=!1,ui=null,e}}function gx(){return Wa}function Uo(){if(Wa){var e=Zc;return Wa=!1,Zc=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 Su(e){return e._reactInternals!==void 0}function pf(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,Ts=8192,yl=16384,gg=Ra|ut|Ir|Xa|vr|yl,Ho=32767,Ns=32768,Pr=65536,hf=131072,yg=1048576,so=2097152,di=4194304,Is=8388608,fi=16777216,bl=33554432,_a=ut|vr|0,Ta=Nn|ut|nn|ci|Xa|oo|Ts,Ui=ut|Ir|Xa|Ts,Na=Ra|nn,Fr=di|Is|so,xl=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 vf(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 mf(e){return e.tag===R?e.stateNode.containerInfo:null}function Ya(e){return As(e)===e}function Za(e){{var n=xl.current;if(n!==null&&n.tag===C){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 B=!1,H=b.child;H;){if(H===c){B=!0,c=b,p=E;break}if(H===p){B=!0,p=b,c=E;break}H=H.sibling}if(!B){for(H=E.child;H;){if(H===c){B=!0,c=E,p=b;break}if(H===p){B=!0,p=E,c=b;break}H=H.sibling}if(!B)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 Nh(e){var n=pi(e);return n!==null?Ih(n):null}function Ih(e){if(e.tag===A||e.tag===T)return e;for(var n=e.child;n!==null;){var s=Ih(n);if(s!==null)return s;n=n.sibling}return null}function Ah(e){var n=pi(e);return n!==null?gf(n):null}function gf(e){if(e.tag===A||e.tag===T)return e;for(var n=e.child;n!==null;){if(n.tag!==j){var s=gf(n);if(s!==null)return s}n=n.sibling}return null}var jh=i.unstable_scheduleCallback,yf=i.unstable_cancelCallback,bg=i.unstable_shouldYield,Eu=i.unstable_requestPaint,mr=i.unstable_now,yx=i.unstable_getCurrentPriorityLevel,Ia=i.unstable_ImmediatePriority,wu=i.unstable_UserBlockingPriority,lo=i.unstable_NormalPriority,Ru=i.unstable_LowPriority,Jc=i.unstable_IdlePriority,Oh=i.unstable_yieldValue,Dh=i.unstable_setDisableYieldValue,js=null,or=null,Ue=null,Jr=!1,qa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function xg(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{Ie&&(e=Lt({},e,{getLaneLabelMap:bf,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(ue){var c;switch(n){case cr:c=Ia;break;case Xo:c=wu;break;case fo:c=lo;break;case Mu:c=Jc;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 kh(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 Cg(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 Oh=="function"&&(Dh(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){Ue=e}function bf(){{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){Ue!==null&&typeof Ue.markCommitStarted=="function"&&Ue.markCommitStarted(e)}function Qc(){Ue!==null&&typeof Ue.markCommitStopped=="function"&&Ue.markCommitStopped()}function _u(e){Ue!==null&&typeof Ue.markComponentRenderStarted=="function"&&Ue.markComponentRenderStarted(e)}function Cl(){Ue!==null&&typeof Ue.markComponentRenderStopped=="function"&&Ue.markComponentRenderStopped()}function Mh(e){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStarted=="function"&&Ue.markComponentPassiveEffectMountStarted(e)}function xf(){Ue!==null&&typeof Ue.markComponentPassiveEffectMountStopped=="function"&&Ue.markComponentPassiveEffectMountStopped()}function Eg(e){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStarted=="function"&&Ue.markComponentPassiveEffectUnmountStarted(e)}function wg(){Ue!==null&&typeof Ue.markComponentPassiveEffectUnmountStopped=="function"&&Ue.markComponentPassiveEffectUnmountStopped()}function Rg(e){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStarted=="function"&&Ue.markComponentLayoutEffectMountStarted(e)}function Lh(){Ue!==null&&typeof Ue.markComponentLayoutEffectMountStopped=="function"&&Ue.markComponentLayoutEffectMountStopped()}function Tu(e){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStarted=="function"&&Ue.markComponentLayoutEffectUnmountStarted(e)}function Kc(){Ue!==null&&typeof Ue.markComponentLayoutEffectUnmountStopped=="function"&&Ue.markComponentLayoutEffectUnmountStopped()}function _g(e,n,s){Ue!==null&&typeof Ue.markComponentErrored=="function"&&Ue.markComponentErrored(e,n,s)}function Tg(e,n,s){Ue!==null&&typeof Ue.markComponentSuspended=="function"&&Ue.markComponentSuspended(e,n,s)}function Nu(e){Ue!==null&&typeof Ue.markLayoutEffectsStarted=="function"&&Ue.markLayoutEffectsStarted(e)}function Ng(){Ue!==null&&typeof Ue.markLayoutEffectsStopped=="function"&&Ue.markLayoutEffectsStopped()}function ed(e){Ue!==null&&typeof Ue.markPassiveEffectsStarted=="function"&&Ue.markPassiveEffectsStarted(e)}function uo(){Ue!==null&&typeof Ue.markPassiveEffectsStopped=="function"&&Ue.markPassiveEffectsStopped()}function Iu(e){Ue!==null&&typeof Ue.markRenderStarted=="function"&&Ue.markRenderStarted(e)}function td(){Ue!==null&&typeof Ue.markRenderYielded=="function"&&Ue.markRenderYielded()}function ks(){Ue!==null&&typeof Ue.markRenderStopped=="function"&&Ue.markRenderStopped()}function Ph(e){Ue!==null&&typeof Ue.markRenderScheduled=="function"&&Ue.markRenderScheduled(e)}function Au(e,n){Ue!==null&&typeof Ue.markForceUpdateScheduled=="function"&&Ue.markForceUpdateScheduled(e,n)}function Cf(e,n){Ue!==null&&typeof Ue.markStateUpdateScheduled=="function"&&Ue.markStateUpdateScheduled(e,n)}var gt=0,ft=1,Kt=2,er=8,hi=16,nd=Math.clz32?Math.clz32:Yn,Fh=Math.log,Sl=Math.LN2;function Yn(e){var n=e>>>0;return n===0?32:31-(Fh(n)/Sl|0)|0}var sr=31,_e=0,lr=0,xt=1,co=2,Wo=4,tr=8,mi=16,El=32,Ms=4194240,Aa=64,ja=128,wl=256,rd=512,ad=1024,Sf=2048,Ef=4096,wf=8192,Rf=16384,_f=32768,Tf=65536,Nf=131072,If=262144,Rl=524288,Af=1048576,ju=2097152,_l=130023424,Tl=4194304,id=8388608,jf=16777216,Of=33554432,Df=67108864,Vh=Tl,Nl=134217728,Bh=268435455,Ou=268435456,Ls=536870912,Ja=1073741824;function Ig(e){{if(e&xt)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&_l)return"Retry";if(e&Nl)return"SelectiveHydration";if(e&Ou)return"IdleHydration";if(e&Ls)return"Idle";if(e&Ja)return"Offscreen"}}var Mn=-1,kf=Aa,od=Tl;function Du(e){switch(ur(e)){case xt:return xt;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 rd:case ad:case Sf:case Ef:case wf:case Rf:case _f:case Tf:case Nf:case If:case Rl:case Af:case ju:return e&Ms;case Tl:case id:case jf:case Of:case Df:return e&_l;case Nl:return Nl;case Ou:return Ou;case Ls:return Ls;case Ja:return Ja;default:return h("Should have found matching lanes. This is a bug in React."),e}}function sd(e,n){var s=e.pendingLanes;if(s===_e)return _e;var c=_e,p=e.suspendedLanes,b=e.pingedLanes,E=s&Bh;if(E!==_e){var N=E&~p;if(N!==_e)c=Du(N);else{var O=E&b;O!==_e&&(c=Du(O))}}else{var B=s&~p;B!==_e?c=Du(B):b!==_e&&(c=Du(b))}if(c===_e)return _e;if(n!==_e&&n!==c&&(n&p)===_e){var H=ur(c),te=ur(n);if(H>=te||H===mi&&(te&Ms)!==_e)return n}(c&Wo)!==_e&&(c|=s&mi);var K=e.entangledLanes;if(K!==_e)for(var he=e.entanglements,ve=c&K;ve>0;){var Se=Fs(ve),Ke=1<<Se;c|=he[Se],ve&=~Ke}return c}function Mf(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 bx(e,n){switch(e){case xt:case co:case Wo:return n+250;case tr:case mi:case El:case Aa:case ja:case wl:case rd:case ad:case Sf:case Ef:case wf:case Rf:case _f:case Tf:case Nf:case If:case Rl:case Af:case ju:return n+5e3;case Tl:case id:case jf:case Of:case Df:return Mn;case Nl:case Ou:case Ls:case Ja:return Mn;default:return h("Should have found matching lanes. This is a bug in React."),Mn}}function xx(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,B=b[N];B===Mn?((O&c)===_e||(O&p)!==_e)&&(b[N]=bx(O,n)):B<=n&&(e.expiredLanes|=O),E&=~O}}function Cx(e){return Du(e.pendingLanes)}function Ps(e){var n=e.pendingLanes&~Ja;return n!==_e?n:n&Ja?Ja:_e}function zh(e){return(e&xt)!==_e}function ld(e){return(e&Bh)!==_e}function Ag(e){return(e&_l)===e}function jg(e){var n=xt|Wo|mi;return(e&n)===_e}function Og(e){return(e&Ms)===e}function ud(e,n){var s=co|Wo|tr|mi;return(n&s)!==_e}function Dg(e,n){return(n&e.expiredLanes)!==_e}function $h(e){return(e&Ms)!==_e}function kg(){var e=kf;return kf<<=1,(kf&Ms)===_e&&(kf=Aa),e}function Oa(){var e=od;return od<<=1,(od&_l)===_e&&(od=Tl),e}function ur(e){return e&-e}function ku(e){return ur(e)}function Fs(e){return 31-nd(e)}function Lf(e){return Fs(e)}function Da(e,n){return(e&n)!==_e}function Il(e,n){return(e&n)===n}function Dt(e,n){return e|n}function cd(e,n){return e&~n}function Pf(e,n){return e&n}function Sx(e){return e}function Mg(e,n){return e!==lr&&e<n?e:n}function dd(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=_e,e.pingedLanes=_e);var c=e.eventTimes,p=Lf(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 Ff(e,n,s){e.pingedLanes|=e.suspendedLanes&n}function Vf(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=_e,e.pingedLanes=_e,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]=_e,p[N]=Mn,b[N]=Mn,E&=~O}}function Uh(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 rd:case ad:case Sf:case Ef:case wf:case Rf:case _f:case Tf:case Nf:case If:case Rl:case Af:case ju:case Tl:case id:case jf:case Of:case Df:c=El;break;case Ls:c=Ou;break;default:c=lr;break}return(c&(e.suspendedLanes|n))!==lr?lr:c}function Bf(e,n,s){if(qa)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=Lf(s),b=1<<p,E=c[p];E.add(n),s&=~b}}function Hh(e,n){if(qa)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;n>0;){var p=Lf(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 fd(e,n){return null}var cr=xt,Xo=Wo,fo=mi,Mu=Ls,Lu=lr;function gi(){return Lu}function nr(e){Lu=e}function Qr(e,n){var s=Lu;try{return Lu=e,n()}finally{Lu=s}}function Ex(e,n){return e!==0&&e<n?e:n}function wx(e,n){return e===0||e>n?e:n}function Pu(e,n){return e!==0&&e<n}function Vr(e){var n=ur(e);return Pu(cr,n)?Pu(Xo,n)?ld(n)?fo:Mu:Xo:cr}function zf(e){var n=e.current.memoizedState;return n.isDehydrated}var nt;function Fu(e){nt=e}function Gh(e){nt(e)}var $f;function Rx(e){$f=e}var Vu;function Uf(e){Vu=e}var Hf;function Fg(e){Hf=e}var Wh;function Vg(e){Wh=e}var pd=!1,Bu=[],Un=null,Ar=null,ia=null,zu=new Map,$u=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 _x(e,n,s,c,p){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function Xh(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;zu.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=n.pointerId;$u.delete(c);break}}}function Uu(e,n,s,c,p,b){if(e===null||e.nativeEvent!==b){var E=_x(n,s,c,p,b);if(n!==null){var N=Qu(n);N!==null&&$f(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=Uu(Un,e,n,s,c,b),!0}case"dragenter":{var E=p;return Ar=Uu(Ar,e,n,s,c,E),!0}case"mouseover":{var N=p;return ia=Uu(ia,e,n,s,c,N),!0}case"pointerover":{var O=p,B=O.pointerId;return zu.set(B,Uu(zu.get(B)||null,e,n,s,c,O)),!0}case"gotpointercapture":{var H=p,te=H.pointerId;return $u.set(te,Uu($u.get(te)||null,e,n,s,c,H)),!0}}return!1}function Yh(e){var n=Rd(e.target);if(n!==null){var s=As(n);if(s!==null){var c=s.tag;if(c===z){var p=vf(s);if(p!==null){e.blockedOn=p,Wh(e.priority,function(){Vu(s)});return}}else if(c===R){var b=s.stateNode;if(zf(b)){e.blockedOn=mf(s);return}}}}e.blockedOn=null}function Tx(e){for(var n=Hf(),s={blockedOn:null,target:e,priority:n},c=0;c<jr.length&&Pu(n,jr[c].priority);c++);jr.splice(c,0,s),c===0&&Yh(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);vx(b),p.target.dispatchEvent(b),fg()}else{var E=Qu(c);return E!==null&&$f(E),e.blockedOn=c,!1}n.shift()}return!0}function Gf(e,n,s){jl(e)&&s.delete(n)}function yi(){pd=!1,Un!==null&&jl(Un)&&(Un=null),Ar!==null&&jl(Ar)&&(Ar=null),ia!==null&&jl(ia)&&(ia=null),zu.forEach(Gf),$u.forEach(Gf)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,pd||(pd=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yi)))}function rr(e){if(Bu.length>0){zt(Bu[0],e);for(var n=1;n<Bu.length;n++){var s=Bu[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)};zu.forEach(c),$u.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;Yh(E),E.blockedOn===null&&jr.shift()}}var zn=l.ReactCurrentBatchConfig,xr=!0;function ka(e){xr=!!e}function Hu(){return xr}function Cr(e,n,s){var c=Wf(n),p;switch(c){case cr:p=hd;break;case Xo:p=Ol;break;case fo:default:p=Gu;break}return p.bind(null,n,s,e)}function hd(e,n,s,c){var p=gi(),b=zn.transition;zn.transition=null;try{nr(cr),Gu(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),Gu(e,n,s,c)}finally{nr(p),zn.transition=b}}function Gu(e,n,s,c){xr&&Zh(e,n,s,c)}function Zh(e,n,s,c){var p=Kr(e,n,s,c);if(p===null){Hx(e,n,c,Vs,s),Xh(e,c);return}if(zg(p,e,n,s,c)){c.stopPropagation();return}if(Xh(e,c),n&Hc&&po(e)){for(;p!==null;){var b=Qu(p);b!==null&&Gh(b);var E=Kr(e,n,s,c);if(E===null&&Hx(e,n,c,Vs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}Hx(e,n,c,null,s)}var Vs=null;function Kr(e,n,s,c){Vs=null;var p=Tn(c),b=Rd(p);if(b!==null){var E=As(b);if(E===null)b=null;else{var N=E.tag;if(N===z){var O=vf(E);if(O!==null)return O;b=null}else if(N===R){var B=E.stateNode;if(zf(B))return mf(E);b=null}else E!==b&&(b=null)}}return Vs=b,null}function Wf(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=yx();switch(n){case Ia:return cr;case wu:return Xo;case lo:case Ru:return fo;case Jc:return Mu;default:return fo}}default:return fo}}function Wu(e,n,s){return e.addEventListener(n,s,!1),s}function Yo(e,n,s){return e.addEventListener(n,s,!0),s}function Xf(e,n,s,c){return e.addEventListener(n,s,{capture:!0,passive:c}),s}function qh(e,n,s,c){return e.addEventListener(n,s,{passive:c}),s}var bi=null,Xu=null,xi=null;function Yf(e){return bi=e,Xu=md(),!0}function vd(){bi=null,Xu=null,xi=null}function Zf(){if(xi)return xi;var e,n=Xu,s=n.length,c,p=md(),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 xi=p.slice(e,N),xi}function md(){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 B=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return B?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},qf=Zn(Sr),kl=Lt({},Sr,{view:0,detail:0}),Jh=Zn(kl),Qh,ho,Yu;function Kh(e){e!==Yu&&(Yu&&e.type==="mousemove"?(Qh=e.screenX-Yu.screenX,ho=e.screenY-Yu.screenY):(Qh=0,ho=0),Yu=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:ev,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:(Kh(e),Qh)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),Jf=Zn(vo),Ml=Lt({},vo,{dataTransfer:0}),$g=Zn(Ml),Ug=Lt({},kl,{relatedTarget:0}),gd=Zn(Ug),Qf=Lt({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),Nx=Zn(Qf),Ix=Lt({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hg=Zn(Ix),Gg=Lt({},Sr,{data:0}),Bs=Zn(Gg),Ax=Bs,Zu={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=Zu[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 jx={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=jx[e];return c?!!s[c]:!1}function ev(e){return Xg}var Ox=Lt({},kl,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ev,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(Ox),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),Ci=Lt({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ev}),tv=Zn(Ci),Dx=Lt({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),zs=Zn(Dx),Kf=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(Kf),ep=[9,13,27,32],tp=229,yd=Rt&&"CompositionEvent"in window,bd=null;Rt&&"documentMode"in document&&(bd=document.documentMode);var nv=Rt&&"TextEvent"in window&&!bd,Jg=Rt&&(!yd||bd&&bd>8&&bd<=11),rv=32,av=String.fromCharCode(rv);function np(){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 xd=!1;function Qg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function iv(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function kx(e,n){return e==="keydown"&&n.keyCode===tp}function ov(e,n){switch(e){case"keyup":return ep.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==tp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rp(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 ap(e,n,s,c,p){var b,E;if(yd?b=iv(n):$s?ov(n,c)&&(b="onCompositionEnd"):kx(n,c)&&(b="onCompositionStart"),!b)return null;Jg&&!Cd(c)&&(!$s&&b==="onCompositionStart"?$s=Yf(p):b==="onCompositionEnd"&&$s&&(E=Zf()));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 B=rp(c);B!==null&&(O.data=B)}}}function Kg(e,n){switch(e){case"compositionend":return rp(n);case"keypress":var s=n.which;return s!==rv?null:(xd=!0,av);case"textInput":var c=n.data;return c===av&&xd?null:c;default:return null}}function Mx(e,n){if($s){if(e==="compositionend"||!yd&&ov(e,n)){var s=Zf();return vd(),$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 ip(e,n,s,c,p){var b;if(nv?b=Kg(n,c):b=Mx(n,c),!b)return null;var E=ay(s,"onBeforeInput");if(E.length>0){var N=new Ax("onBeforeInput","beforeinput",null,c,p);e.push({event:N,listeners:E}),N.data=b}}function Lx(e,n,s,c,p,b,E){ap(e,n,s,c,p),ip(e,n,s,c,p)}var Sd={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"?!!Sd[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`,
|
|
@@ -121,17 +121,17 @@ Check the render method of \``+e+"`.":""}var Dc=["value","defaultValue"];functio
|
|
|
121
121
|
* @return {boolean} True if the event is supported.
|
|
122
122
|
* @internal
|
|
123
123
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
124
|
-
*/function op(e){if(!Rt)return!1;var n="on"+e,s=n in document;if(!s){var c=document.createElement("div");c.setAttribute(n,"return;"),s=typeof c[n]=="function"}return s}function a(){ot("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(e,n,s,c){Cu(c);var p=ay(n,"onChange");if(p.length>0){var b=new qf("onChange","change",null,s,c);e.push({event:b,listeners:p})}}var f=null,g=null;function S(e){var n=e.nodeName&&e.nodeName.toLowerCase();return n==="select"||n==="input"&&e.type==="file"}function _(e){var n=[];o(n,g,e,Tn(e)),Wc(L,n)}function L(e){E1(e,0)}function W(e){var n=fp(e);if(hu(n))return e}function Q(e,n){if(e==="change")return n}var me=!1;Rt&&(me=op("input")&&(!document.documentMode||document.documentMode>9));function Me(e,n){f=e,g=n,f.attachEvent("onpropertychange",De)}function Pe(){f&&(f.detachEvent("onpropertychange",De),f=null,g=null)}function De(e){e.propertyName==="value"&&W(g)&&_(e)}function qe(e,n,s){e==="focusin"?(Pe(),Me(n,s)):e==="focusout"&&Pe()}function rt(e,n){if(e==="selectionchange"||e==="keyup"||e==="keydown")return W(g)}function lt(e){var n=e.nodeName;return n&&n.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function dr(e,n){if(e==="click")return W(n)}function oe(e,n){if(e==="input"||e==="change")return W(n)}function ee(e){var n=e._wrapperState;!n||!n.controlled||e.type!=="number"||_t(e,"number",e.value)}function ce(e,n,s,c,p,b,E){var I=s?fp(s):window,O,B;if(S(I)?O=Q:ey(I)?me?O=oe:(O=rt,B=qe):lt(I)&&(O=dr),O){var H=O(n,s);if(H){o(e,H,c,p);return}}B&&B(n,I,s),n==="focusout"&&ee(I)}function $e(){je("onMouseEnter",["mouseout","mouseover"]),je("onMouseLeave",["mouseout","mouseover"]),je("onPointerEnter",["pointerout","pointerover"]),je("onPointerLeave",["pointerout","pointerover"])}function ct(e,n,s,c,p,b,E){var I=n==="mouseover"||n==="pointerover",O=n==="mouseout"||n==="pointerout";if(I&&!pg(c)){var B=c.relatedTarget||c.fromElement;if(B&&(Rd(B)||xv(B)))return}if(!(!O&&!I)){var H;if(p.window===p)H=p;else{var te=p.ownerDocument;te?H=te.defaultView||te.parentWindow:H=window}var K,he;if(O){var ve=c.relatedTarget||c.toElement;if(K=s,he=ve?Rd(ve):null,he!==null){var Se=As(he);(he!==Se||he.tag!==N&&he.tag!==T)&&(he=null)}}else K=null,he=s;if(K!==he){var Ke=Jf,yt="onMouseLeave",pt="onMouseEnter",Wt="mouse";(n==="pointerout"||n==="pointerover")&&(Ke=qg,yt="onPointerLeave",pt="onPointerEnter",Wt="pointer");var $t=K==null?H:fp(K),se=he==null?H:fp(he),Ee=new Ke(yt,Wt+"leave",K,c,p);Ee.target=$t,Ee.relatedTarget=se;var le=null,Fe=Rd(p);if(Fe===s){var et=new Ke(pt,Wt+"enter",he,c,p);et.target=se,et.relatedTarget=$t,le=et}JM(e,Ee,le,K,he)}}}function Ct(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var at=typeof Object.is=="function"?Object.is:Ct;function Et(e,n){if(at(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(var p=0;p<s.length;p++){var b=s[p];if(!dt.call(n,b)||!at(e[b],n[b]))return!1}return!0}function Er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function qo(e,n){for(var s=Er(e),c=0,p=0;s;){if(s.nodeType===Fo){if(p=c+s.textContent.length,c<=n&&p>=n)return{node:s,offset:n-c};c=p}s=Er(rn(s))}}function Px(e){var n=e.ownerDocument,s=n&&n.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var p=c.anchorNode,b=c.anchorOffset,E=c.focusNode,I=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return jM(e,p,b,E,I)}function jM(e,n,s,c,p){var b=0,E=-1,I=-1,O=0,B=0,H=e,te=null;e:for(;;){for(var K=null;H===n&&(s===0||H.nodeType===Fo)&&(E=b+s),H===c&&(p===0||H.nodeType===Fo)&&(I=b+p),H.nodeType===Fo&&(b+=H.nodeValue.length),(K=H.firstChild)!==null;)te=H,H=K;for(;;){if(H===e)break e;if(te===n&&++O===s&&(E=b),te===c&&++B===p&&(I=b),(K=H.nextSibling)!==null)break;H=te,te=H.parentNode}H=K}return E===-1||I===-1?null:{start:E,end:I}}function OM(e,n){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var p=c.getSelection(),b=e.textContent.length,E=Math.min(n.start,b),I=n.end===void 0?E:Math.min(n.end,b);if(!p.extend&&E>I){var O=I;I=E,E=O}var B=qo(e,E),H=qo(e,I);if(B&&H){if(p.rangeCount===1&&p.anchorNode===B.node&&p.anchorOffset===B.offset&&p.focusNode===H.node&&p.focusOffset===H.offset)return;var te=s.createRange();te.setStart(B.node,B.offset),p.removeAllRanges(),E>I?(p.addRange(te),p.extend(H.node,H.offset)):(te.setEnd(H.node,H.offset),p.addRange(te))}}}function d1(e){return e&&e.nodeType===Fo}function f1(e,n){return!e||!n?!1:e===n?!0:d1(e)?!1:d1(n)?f1(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1}function DM(e){return e&&e.ownerDocument&&f1(e.ownerDocument.documentElement,e)}function kM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function p1(){for(var e=window,n=ro();n instanceof e.HTMLIFrameElement;){if(kM(n))e=n.contentWindow;else return n;n=ro(e.document)}return n}function Fx(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function MM(){var e=p1();return{focusedElem:e,selectionRange:Fx(e)?PM(e):null}}function LM(e){var n=p1(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&DM(s)){c!==null&&Fx(s)&&FM(s,c);for(var p=[],b=s;b=b.parentNode;)b.nodeType===wa&&p.push({element:b,left:b.scrollLeft,top:b.scrollTop});typeof s.focus=="function"&&s.focus();for(var E=0;E<p.length;E++){var I=p[E];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}}function PM(e){var n;return"selectionStart"in e?n={start:e.selectionStart,end:e.selectionEnd}:n=Px(e),n||{start:0,end:0}}function FM(e,n){var s=n.start,c=n.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):OM(e,n)}var VM=Rt&&"documentMode"in document&&document.documentMode<=11;function BM(){ot("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var sp=null,Vx=null,sv=null,Bx=!1;function zM(e){if("selectionStart"in e&&Fx(e))return{start:e.selectionStart,end:e.selectionEnd};var n=e.ownerDocument&&e.ownerDocument.defaultView||window,s=n.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function $M(e){return e.window===e?e.document:e.nodeType===Ga?e:e.ownerDocument}function h1(e,n,s){var c=$M(s);if(!(Bx||sp==null||sp!==ro(c))){var p=zM(sp);if(!sv||!Et(sv,p)){sv=p;var b=ay(Vx,"onSelect");if(b.length>0){var E=new qf("onSelect","select",null,n,s);e.push({event:E,listeners:b}),E.target=sp}}}}function UM(e,n,s,c,p,b,E){var I=s?fp(s):window;switch(n){case"focusin":(ey(I)||I.contentEditable==="true")&&(sp=I,Vx=s,sv=null);break;case"focusout":sp=null,Vx=null,sv=null;break;case"mousedown":Bx=!0;break;case"contextmenu":case"mouseup":case"dragend":Bx=!1,h1(e,c,p);break;case"selectionchange":if(VM)break;case"keydown":case"keyup":h1(e,c,p)}}function ty(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var lp={animationend:ty("Animation","AnimationEnd"),animationiteration:ty("Animation","AnimationIteration"),animationstart:ty("Animation","AnimationStart"),transitionend:ty("Transition","TransitionEnd")},zx={},v1={};Rt&&(v1=document.createElement("div").style,"AnimationEvent"in window||(delete lp.animationend.animation,delete lp.animationiteration.animation,delete lp.animationstart.animation),"TransitionEvent"in window||delete lp.transitionend.transition);function ny(e){if(zx[e])return zx[e];if(!lp[e])return e;var n=lp[e];for(var s in n)if(n.hasOwnProperty(s)&&s in v1)return zx[e]=n[s];return e}var m1=ny("animationend"),g1=ny("animationiteration"),y1=ny("animationstart"),b1=ny("transitionend"),x1=new Map,C1=["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"];function qu(e,n){x1.set(e,n),ot(n,[e])}function HM(){for(var e=0;e<C1.length;e++){var n=C1[e],s=n.toLowerCase(),c=n[0].toUpperCase()+n.slice(1);qu(s,"on"+c)}qu(m1,"onAnimationEnd"),qu(g1,"onAnimationIteration"),qu(y1,"onAnimationStart"),qu("dblclick","onDoubleClick"),qu("focusin","onFocus"),qu("focusout","onBlur"),qu(b1,"onTransitionEnd")}function GM(e,n,s,c,p,b,E){var I=x1.get(n);if(I!==void 0){var O=qf,B=n;switch(n){case"keypress":if(Dl(c)===0)return;case"keydown":case"keyup":O=Yg;break;case"focusin":B="focus",O=gd;break;case"focusout":B="blur",O=gd;break;case"beforeblur":case"afterblur":O=gd;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Jf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=$g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=tv;break;case m1:case g1:case y1:O=Nx;break;case b1:O=zs;break;case"scroll":O=Jh;break;case"wheel":O=Ll;break;case"copy":case"cut":case"paste":O=Hg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=qg;break}var H=(b&Hc)!==0;{var te=!H&&n==="scroll",K=ZM(s,I,c.type,H,te);if(K.length>0){var he=new O(I,B,null,c,p);e.push({event:he,listeners:K})}}}}HM(),$e(),a(),BM(),np();function WM(e,n,s,c,p,b,E){GM(e,n,s,c,p,b);var I=(b&hx)===0;I&&(ct(e,n,s,c,p),ce(e,n,s,c,p),UM(e,n,s,c,p),Lx(e,n,s,c,p))}var lv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],$x=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(lv));function S1(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,Th(c,n,void 0,e),e.currentTarget=null}function XM(e,n,s){var c;if(s)for(var p=n.length-1;p>=0;p--){var b=n[p],E=b.instance,I=b.currentTarget,O=b.listener;if(E!==c&&e.isPropagationStopped())return;S1(e,O,I),c=E}else for(var B=0;B<n.length;B++){var H=n[B],te=H.instance,K=H.currentTarget,he=H.listener;if(te!==c&&e.isPropagationStopped())return;S1(e,he,K),c=te}}function E1(e,n){for(var s=(n&Hc)!==0,c=0;c<e.length;c++){var p=e[c],b=p.event,E=p.listeners;XM(b,E,s)}mx()}function YM(e,n,s,c,p){var b=Tn(s),E=[];WM(E,e,c,s,b,n),E1(E,n)}function qn(e,n){$x.has(e)||h('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=wP(n),p=QM(e,s);c.has(p)||(w1(n,e,Uc,s),c.add(p))}function Ux(e,n,s){$x.has(e)&&!n&&h('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;n&&(c|=Hc),w1(s,e,c,n)}var ry="_reactListening"+Math.random().toString(36).slice(2);function uv(e){if(!e[ry]){e[ry]=!0,Ve.forEach(function(s){s!=="selectionchange"&&($x.has(s)||Ux(s,!1,e),Ux(s,!0,e))});var n=e.nodeType===Ga?e:e.ownerDocument;n!==null&&(n[ry]||(n[ry]=!0,Ux("selectionchange",!1,n)))}}function w1(e,n,s,c,p){var b=Cr(e,n,s),E=void 0;Xc&&(n==="touchstart"||n==="touchmove"||n==="wheel")&&(E=!0),e=e,c?E!==void 0?Xf(e,n,b,E):Yo(e,n,b):E!==void 0?qh(e,n,b,E):Wu(e,n,b)}function R1(e,n){return e===n||e.nodeType===Kn&&e.parentNode===n}function Hx(e,n,s,c,p){var b=c;if(!(n&cf)&&!(n&Uc)){var E=p;if(c!==null){var I=c;e:for(;;){if(I===null)return;var O=I.tag;if(O===R||O===j){var B=I.stateNode.containerInfo;if(R1(B,E))break;if(O===j)for(var H=I.return;H!==null;){var te=H.tag;if(te===R||te===j){var K=H.stateNode.containerInfo;if(R1(K,E))return}H=H.return}for(;B!==null;){var he=Rd(B);if(he===null)return;var ve=he.tag;if(ve===N||ve===T){I=b=he;continue e}B=B.parentNode}}I=I.return}}}Wc(function(){return YM(e,n,s,b)})}function cv(e,n,s){return{instance:e,listener:n,currentTarget:s}}function ZM(e,n,s,c,p,b){for(var E=n!==null?n+"Capture":null,I=c?E:n,O=[],B=e,H=null;B!==null;){var te=B,K=te.stateNode,he=te.tag;if(he===N&&K!==null&&(H=K,I!==null)){var ve=gl(B,I);ve!=null&&O.push(cv(B,ve,H))}if(p)break;B=B.return}return O}function ay(e,n){for(var s=n+"Capture",c=[],p=e;p!==null;){var b=p,E=b.stateNode,I=b.tag;if(I===N&&E!==null){var O=E,B=gl(p,s);B!=null&&c.unshift(cv(p,B,O));var H=gl(p,n);H!=null&&c.push(cv(p,H,O))}p=p.return}return c}function up(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function qM(e,n){for(var s=e,c=n,p=0,b=s;b;b=up(b))p++;for(var E=0,I=c;I;I=up(I))E++;for(;p-E>0;)s=up(s),p--;for(;E-p>0;)c=up(c),E--;for(var O=p;O--;){if(s===c||c!==null&&s===c.alternate)return s;s=up(s),c=up(c)}return null}function _1(e,n,s,c,p){for(var b=n._reactName,E=[],I=s;I!==null&&I!==c;){var O=I,B=O.alternate,H=O.stateNode,te=O.tag;if(B!==null&&B===c)break;if(te===N&&H!==null){var K=H;if(p){var he=gl(I,b);he!=null&&E.unshift(cv(I,he,K))}else if(!p){var ve=gl(I,b);ve!=null&&E.push(cv(I,ve,K))}}I=I.return}E.length!==0&&e.push({event:n,listeners:E})}function JM(e,n,s,c,p){var b=c&&p?qM(c,p):null;c!==null&&_1(e,n,c,b,!1),p!==null&&s!==null&&_1(e,s,p,b,!0)}function QM(e,n){return e+"__"+(n?"capture":"bubble")}var Si=!1,dv="dangerouslySetInnerHTML",iy="suppressContentEditableWarning",Ju="suppressHydrationWarning",T1="autoFocus",Ed="children",wd="style",oy="__html",Gx,sy,fv,N1,ly,I1,A1;Gx={dialog:!0,webview:!0},sy=function(e,n){xu(e,n),sg(e,n),_s(e,n,{registrationNameDependencies:Ge,possibleRegistrationNames:tt})},I1=Rt&&!document.documentMode,fv=function(e,n,s){if(!Si){var c=uy(s),p=uy(n);p!==c&&(Si=!0,h("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(c)))}},N1=function(e){if(!Si){Si=!0;var n=[];e.forEach(function(s){n.push(s)}),h("Extra attributes from the server: %s",n)}},ly=function(e,n){n===!1?h("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):h("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)},A1=function(e,n){var s=e.namespaceURI===Po?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=n,s.innerHTML};var KM=/\r\n?/g,eL=/\u0000|\uFFFD/g;function uy(e){_r(e);var n=typeof e=="string"?e:""+e;return n.replace(KM,`
|
|
125
|
-
`).replace(eL,"")}function cy(e,n,s,c){var p=uy(n),b=uy(e);if(b!==p&&(c&&(Si||(Si=!0,h('Text content did not match. Server: "%s" Client: "%s"',b,p))),s&&ne))throw new Error("Text content does not match server-rendered HTML.")}function j1(e){return e.nodeType===Ga?e:e.ownerDocument}function tL(){}function dy(e){e.onclick=tL}function nL(e,n,s,c,p){for(var b in c)if(c.hasOwnProperty(b)){var E=c[b];if(b===wd)E&&Object.freeze(E),tg(n,E);else if(b===dv){var I=E?E[oy]:void 0;I!=null&&Wm(n,I)}else if(b===Ed)if(typeof E=="string"){var O=e!=="textarea"||E!=="";O&&Pc(n,E)}else typeof E=="number"&&Pc(n,""+E);else b===iy||b===Ju||b===T1||(Ge.hasOwnProperty(b)?E!=null&&(typeof E!="function"&&ly(b,E),b==="onScroll"&&qn("scroll",n)):E!=null&&Io(n,b,E,p))}}function rL(e,n,s,c){for(var p=0;p<n.length;p+=2){var b=n[p],E=n[p+1];b===wd?tg(e,E):b===dv?Wm(e,E):b===Ed?Pc(e,E):Io(e,b,E,c)}}function aL(e,n,s,c){var p,b=j1(s),E,I=c;if(I===Po&&(I=uh(e)),I===Po){if(p=hl(e,n),!p&&e!==e.toLowerCase()&&h("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var O=b.createElement("div");O.innerHTML="<script><\/script>";var B=O.firstChild;E=O.removeChild(B)}else if(typeof n.is=="string")E=b.createElement(e,{is:n.is});else if(E=b.createElement(e),e==="select"){var H=E;n.multiple?H.multiple=!0:n.size&&(H.size=n.size)}}else E=b.createElementNS(I,e);return I===Po&&!p&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!dt.call(Gx,e)&&(Gx[e]=!0,h("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),E}function iL(e,n){return j1(n).createTextNode(e)}function oL(e,n,s,c){var p=hl(n,s);sy(n,s);var b;switch(n){case"dialog":qn("cancel",e),qn("close",e),b=s;break;case"iframe":case"object":case"embed":qn("load",e),b=s;break;case"video":case"audio":for(var E=0;E<lv.length;E++)qn(lv[E],e);b=s;break;case"source":qn("error",e),b=s;break;case"img":case"image":case"link":qn("error",e),qn("load",e),b=s;break;case"details":qn("toggle",e),b=s;break;case"input":q(e,s),b=D(e,s),qn("invalid",e);break;case"option":mn(e,s),b=s;break;case"select":Lc(e,s),b=Mc(e,s),qn("invalid",e);break;case"textarea":Hm(e,s),b=lh(e,s),qn("invalid",e);break;default:b=s}switch(Bc(n,b),nL(n,e,c,b,p),n){case"input":ko(e),ze(e,s,!1);break;case"textarea":ko(e),nf(e);break;case"option":gn(e,s);break;case"select":sh(e,s);break;default:typeof b.onClick=="function"&&dy(e);break}}function sL(e,n,s,c,p){sy(n,c);var b=null,E,I;switch(n){case"input":E=D(e,s),I=D(e,c),b=[];break;case"select":E=Mc(e,s),I=Mc(e,c),b=[];break;case"textarea":E=lh(e,s),I=lh(e,c),b=[];break;default:E=s,I=c,typeof E.onClick!="function"&&typeof I.onClick=="function"&&dy(e);break}Bc(n,I);var O,B,H=null;for(O in E)if(!(I.hasOwnProperty(O)||!E.hasOwnProperty(O)||E[O]==null))if(O===wd){var te=E[O];for(B in te)te.hasOwnProperty(B)&&(H||(H={}),H[B]="")}else O===dv||O===Ed||O===iy||O===Ju||O===T1||(Ge.hasOwnProperty(O)?b||(b=[]):(b=b||[]).push(O,null));for(O in I){var K=I[O],he=E!=null?E[O]:void 0;if(!(!I.hasOwnProperty(O)||K===he||K==null&&he==null))if(O===wd)if(K&&Object.freeze(K),he){for(B in he)he.hasOwnProperty(B)&&(!K||!K.hasOwnProperty(B))&&(H||(H={}),H[B]="");for(B in K)K.hasOwnProperty(B)&&he[B]!==K[B]&&(H||(H={}),H[B]=K[B])}else H||(b||(b=[]),b.push(O,H)),H=K;else if(O===dv){var ve=K?K[oy]:void 0,Se=he?he[oy]:void 0;ve!=null&&Se!==ve&&(b=b||[]).push(O,ve)}else O===Ed?(typeof K=="string"||typeof K=="number")&&(b=b||[]).push(O,""+K):O===iy||O===Ju||(Ge.hasOwnProperty(O)?(K!=null&&(typeof K!="function"&&ly(O,K),O==="onScroll"&&qn("scroll",e)),!b&&he!==K&&(b=[])):(b=b||[]).push(O,K))}return H&&(ng(H,I[wd]),(b=b||[]).push(wd,H)),b}function lL(e,n,s,c,p){s==="input"&&p.type==="radio"&&p.name!=null&&fe(e,p);var b=hl(s,c),E=hl(s,p);switch(rL(e,n,b,E),s){case"input":ye(e,p);break;case"textarea":Gm(e,p);break;case"select":rx(e,p);break}}function uL(e){{var n=e.toLowerCase();return sf.hasOwnProperty(n)&&sf[n]||null}}function cL(e,n,s,c,p,b,E){var I,O;switch(I=hl(n,s),sy(n,s),n){case"dialog":qn("cancel",e),qn("close",e);break;case"iframe":case"object":case"embed":qn("load",e);break;case"video":case"audio":for(var B=0;B<lv.length;B++)qn(lv[B],e);break;case"source":qn("error",e);break;case"img":case"image":case"link":qn("error",e),qn("load",e);break;case"details":qn("toggle",e);break;case"input":q(e,s),qn("invalid",e);break;case"option":mn(e,s);break;case"select":Lc(e,s),qn("invalid",e);break;case"textarea":Hm(e,s),qn("invalid",e);break}Bc(n,s);{O=new Set;for(var H=e.attributes,te=0;te<H.length;te++){var K=H[te].name.toLowerCase();switch(K){case"value":break;case"checked":break;case"selected":break;default:O.add(H[te].name)}}}var he=null;for(var ve in s)if(s.hasOwnProperty(ve)){var Se=s[ve];if(ve===Ed)typeof Se=="string"?e.textContent!==Se&&(s[Ju]!==!0&&cy(e.textContent,Se,b,E),he=[Ed,Se]):typeof Se=="number"&&e.textContent!==""+Se&&(s[Ju]!==!0&&cy(e.textContent,Se,b,E),he=[Ed,""+Se]);else if(Ge.hasOwnProperty(ve))Se!=null&&(typeof Se!="function"&&ly(ve,Se),ve==="onScroll"&&qn("scroll",e));else if(E&&typeof I=="boolean"){var Ke=void 0,yt=I&&we?null:Nr(ve);if(s[Ju]!==!0){if(!(ve===iy||ve===Ju||ve==="value"||ve==="checked"||ve==="selected")){if(ve===dv){var pt=e.innerHTML,Wt=Se?Se[oy]:void 0;if(Wt!=null){var $t=A1(e,Wt);$t!==pt&&fv(ve,pt,$t)}}else if(ve===wd){if(O.delete(ve),I1){var se=px(Se);Ke=e.getAttribute("style"),se!==Ke&&fv(ve,Ke,se)}}else if(I&&!we)O.delete(ve.toLowerCase()),Ke=ii(e,ve,Se),Se!==Ke&&fv(ve,Ke,Se);else if(!Gn(ve,yt,I)&&!hn(ve,Se,yt,I)){var Ee=!1;if(yt!==null)O.delete(yt.attributeName),Ke=Li(e,ve,Se,yt);else{var le=c;if(le===Po&&(le=uh(n)),le===Po)O.delete(ve.toLowerCase());else{var Fe=uL(ve);Fe!==null&&Fe!==ve&&(Ee=!0,O.delete(Fe)),O.delete(ve)}Ke=ii(e,ve,Se)}var et=we;!et&&Se!==Ke&&!Ee&&fv(ve,Ke,Se)}}}}}switch(E&&O.size>0&&s[Ju]!==!0&&N1(O),n){case"input":ko(e),ze(e,s,!0);break;case"textarea":ko(e),nf(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&dy(e);break}return he}function dL(e,n,s){var c=e.nodeValue!==n;return c}function Wx(e,n){{if(Si)return;Si=!0,h("Did not expect server HTML to contain a <%s> in <%s>.",n.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Xx(e,n){{if(Si)return;Si=!0,h('Did not expect server HTML to contain the text node "%s" in <%s>.',n.nodeValue,e.nodeName.toLowerCase())}}function Yx(e,n,s){{if(Si)return;Si=!0,h("Expected server HTML to contain a matching <%s> in <%s>.",n,e.nodeName.toLowerCase())}}function Zx(e,n){{if(n===""||Si)return;Si=!0,h('Expected server HTML to contain a matching text node for "%s" in <%s>.',n,e.nodeName.toLowerCase())}}function fL(e,n,s){switch(n){case"input":st(e,s);return;case"textarea":ax(e,s);return;case"select":$m(e,s);return}}var pv=function(){},hv=function(){};{var pL=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],O1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],hL=O1.concat(["button"]),vL=["dd","dt","li","option","optgroup","p","rp","rt"],D1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};hv=function(e,n){var s=Lt({},e||D1),c={tag:n};return O1.indexOf(n)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),hL.indexOf(n)!==-1&&(s.pTagInButtonScope=null),pL.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=c,n==="form"&&(s.formTag=c),n==="a"&&(s.aTagInScope=c),n==="button"&&(s.buttonTagInScope=c),n==="nobr"&&(s.nobrTagInScope=c),n==="p"&&(s.pTagInButtonScope=c),n==="li"&&(s.listItemTagAutoclosing=c),(n==="dd"||n==="dt")&&(s.dlItemTagAutoclosing=c),s};var mL=function(e,n){switch(n){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return vL.indexOf(n)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null}return!0},gL=function(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null},k1={};pv=function(e,n,s){s=s||D1;var c=s.current,p=c&&c.tag;n!=null&&(e!=null&&h("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var b=mL(e,p)?null:c,E=b?null:gL(e,s),I=b||E;if(I){var O=I.tag,B=!!b+"|"+e+"|"+O;if(!k1[B]){k1[B]=!0;var H=e,te="";if(e==="#text"?/\S/.test(n)?H="Text nodes":(H="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+e+">",b){var K="";O==="table"&&e==="tr"&&(K+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),h("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,O,te,K)}else h("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,O)}}}}var fy="suppressHydrationWarning",py="$",hy="/$",vv="$?",mv="$!",yL="style",qx=null,Jx=null;function bL(e){var n,s,c=e.nodeType;switch(c){case Ga:case dh:{n=c===Ga?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:ch(null,"");break}default:{var b=c===Kn?e.parentNode:e,E=b.namespaceURI||null;n=b.tagName,s=ch(E,n);break}}{var I=n.toLowerCase(),O=hv(null,I);return{namespace:s,ancestorInfo:O}}}function xL(e,n,s){{var c=e,p=ch(c.namespace,n),b=hv(c.ancestorInfo,n);return{namespace:p,ancestorInfo:b}}}function zq(e){return e}function CL(e){qx=Hu(),Jx=MM();var n=null;return ka(!1),n}function SL(e){LM(Jx),ka(qx),qx=null,Jx=null}function EL(e,n,s,c,p){var b;{var E=c;if(pv(e,null,E.ancestorInfo),typeof n.children=="string"||typeof n.children=="number"){var I=""+n.children,O=hv(E.ancestorInfo,e);pv(null,I,O)}b=E.namespace}var B=aL(e,n,s,b);return bv(p,B),iC(B,n),B}function wL(e,n){e.appendChild(n)}function RL(e,n,s,c,p){switch(oL(e,n,s,c),n){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function _L(e,n,s,c,p,b){{var E=b;if(typeof c.children!=typeof s.children&&(typeof c.children=="string"||typeof c.children=="number")){var I=""+c.children,O=hv(E.ancestorInfo,n);pv(null,I,O)}}return sL(e,n,s,c)}function Qx(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function TL(e,n,s,c){{var p=s;pv(null,e,p.ancestorInfo)}var b=iL(e,n);return bv(c,b),b}function NL(){var e=window.event;return e===void 0?fo:Wf(e.type)}var Kx=typeof setTimeout=="function"?setTimeout:void 0,IL=typeof clearTimeout=="function"?clearTimeout:void 0,eC=-1,M1=typeof Promise=="function"?Promise:void 0,AL=typeof queueMicrotask=="function"?queueMicrotask:typeof M1<"u"?function(e){return M1.resolve(null).then(e).catch(jL)}:Kx;function jL(e){setTimeout(function(){throw e})}function OL(e,n,s,c){switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function DL(e,n,s,c,p,b){lL(e,n,s,c,p),iC(e,p)}function L1(e){Pc(e,"")}function kL(e,n,s){e.nodeValue=s}function ML(e,n){e.appendChild(n)}function LL(e,n){var s;e.nodeType===Kn?(s=e.parentNode,s.insertBefore(n,e)):(s=e,s.appendChild(n));var c=e._reactRootContainer;c==null&&s.onclick===null&&dy(s)}function PL(e,n,s){e.insertBefore(n,s)}function FL(e,n,s){e.nodeType===Kn?e.parentNode.insertBefore(n,s):e.insertBefore(n,s)}function VL(e,n){e.removeChild(n)}function BL(e,n){e.nodeType===Kn?e.parentNode.removeChild(n):e.removeChild(n)}function tC(e,n){var s=n,c=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===Kn){var b=p.data;if(b===hy)if(c===0){e.removeChild(p),rr(n);return}else c--;else(b===py||b===vv||b===mv)&&c++}s=p}while(s);rr(n)}function zL(e,n){e.nodeType===Kn?tC(e.parentNode,n):e.nodeType===wa&&tC(e,n),rr(e)}function $L(e){e=e;var n=e.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function UL(e){e.nodeValue=""}function HL(e,n){e=e;var s=n[yL],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=ws("display",c)}function GL(e,n){e.nodeValue=n}function WL(e){e.nodeType===wa?e.textContent="":e.nodeType===Ga&&e.documentElement&&e.removeChild(e.documentElement)}function XL(e,n,s){return e.nodeType!==wa||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function YL(e,n){return n===""||e.nodeType!==Fo?null:e}function ZL(e){return e.nodeType!==Kn?null:e}function P1(e){return e.data===vv}function nC(e){return e.data===mv}function qL(e){var n=e.nextSibling&&e.nextSibling.dataset,s,c,p;return n&&(s=n.dgst,c=n.msg,p=n.stck),{message:c,digest:s,stack:p}}function JL(e,n){e._reactRetry=n}function vy(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===wa||n===Fo)break;if(n===Kn){var s=e.data;if(s===py||s===mv||s===vv)break;if(s===hy)return null}}return e}function gv(e){return vy(e.nextSibling)}function QL(e){return vy(e.firstChild)}function KL(e){return vy(e.firstChild)}function eP(e){return vy(e.nextSibling)}function tP(e,n,s,c,p,b,E){bv(b,e),iC(e,s);var I;{var O=p;I=O.namespace}var B=(b.mode&ft)!==gt;return cL(e,n,s,I,c,B,E)}function nP(e,n,s,c){return bv(s,e),s.mode&ft,dL(e,n)}function rP(e,n){bv(n,e)}function aP(e){for(var n=e.nextSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===hy){if(s===0)return gv(n);s--}else(c===py||c===mv||c===vv)&&s++}n=n.nextSibling}return null}function F1(e){for(var n=e.previousSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===py||c===mv||c===vv){if(s===0)return n;s--}else c===hy&&s++}n=n.previousSibling}return null}function iP(e){rr(e)}function oP(e){rr(e)}function sP(e){return e!=="head"&&e!=="body"}function lP(e,n,s,c){var p=!0;cy(n.nodeValue,s,c,p)}function uP(e,n,s,c,p,b){if(n[fy]!==!0){var E=!0;cy(c.nodeValue,p,b,E)}}function cP(e,n){n.nodeType===wa?Wx(e,n):n.nodeType===Kn||Xx(e,n)}function dP(e,n){{var s=e.parentNode;s!==null&&(n.nodeType===wa?Wx(s,n):n.nodeType===Kn||Xx(s,n))}}function fP(e,n,s,c,p){(p||n[fy]!==!0)&&(c.nodeType===wa?Wx(s,c):c.nodeType===Kn||Xx(s,c))}function pP(e,n,s){Yx(e,n)}function hP(e,n){Zx(e,n)}function vP(e,n,s){{var c=e.parentNode;c!==null&&Yx(c,n)}}function mP(e,n){{var s=e.parentNode;s!==null&&Zx(s,n)}}function gP(e,n,s,c,p,b){(b||n[fy]!==!0)&&Yx(s,c)}function yP(e,n,s,c,p){(p||n[fy]!==!0)&&Zx(s,c)}function bP(e){h("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function xP(e){uv(e)}var cp=Math.random().toString(36).slice(2),dp="__reactFiber$"+cp,rC="__reactProps$"+cp,yv="__reactContainer$"+cp,aC="__reactEvents$"+cp,CP="__reactListeners$"+cp,SP="__reactHandles$"+cp;function EP(e){delete e[dp],delete e[rC],delete e[aC],delete e[CP],delete e[SP]}function bv(e,n){n[dp]=e}function my(e,n){n[yv]=e}function V1(e){e[yv]=null}function xv(e){return!!e[yv]}function Rd(e){var n=e[dp];if(n)return n;for(var s=e.parentNode;s;){if(n=s[yv]||s[dp],n){var c=n.alternate;if(n.child!==null||c!==null&&c.child!==null)for(var p=F1(e);p!==null;){var b=p[dp];if(b)return b;p=F1(p)}return n}e=s,s=e.parentNode}return null}function Qu(e){var n=e[dp]||e[yv];return n&&(n.tag===N||n.tag===T||n.tag===z||n.tag===R)?n:null}function fp(e){if(e.tag===N||e.tag===T)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function gy(e){return e[rC]||null}function iC(e,n){e[rC]=n}function wP(e){var n=e[aC];return n===void 0&&(n=e[aC]=new Set),n}var B1={},z1=l.ReactDebugCurrentFrame;function yy(e){if(e){var n=e._owner,s=Ut(e.type,e._source,n?n.type:null);z1.setExtraStackFrame(s)}else z1.setExtraStackFrame(null)}function Jo(e,n,s,c,p){{var b=Function.call.bind(dt);for(var E in e)if(b(e,E)){var I=void 0;try{if(typeof e[E]!="function"){var O=Error((c||"React class")+": "+s+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}I=e[E](n,E,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){I=B}I&&!(I instanceof Error)&&(yy(p),h("%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).",c||"React class",s,E,typeof I),yy(null)),I instanceof Error&&!(I.message in B1)&&(B1[I.message]=!0,yy(p),h("Failed %s type: %s",s,I.message),yy(null))}}}var oC=[],by;by=[];var Pl=-1;function Ku(e){return{current:e}}function Ma(e,n){if(Pl<0){h("Unexpected pop.");return}n!==by[Pl]&&h("Unexpected Fiber popped."),e.current=oC[Pl],oC[Pl]=null,by[Pl]=null,Pl--}function La(e,n,s){Pl++,oC[Pl]=e.current,by[Pl]=s,e.current=n}var sC;sC={};var Hi={};Object.freeze(Hi);var Fl=Ku(Hi),Us=Ku(!1),lC=Hi;function pp(e,n,s){return s&&Hs(n)?lC:Fl.current}function $1(e,n,s){{var c=e.stateNode;c.__reactInternalMemoizedUnmaskedChildContext=n,c.__reactInternalMemoizedMaskedChildContext=s}}function hp(e,n){{var s=e.type,c=s.contextTypes;if(!c)return Hi;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===n)return p.__reactInternalMemoizedMaskedChildContext;var b={};for(var E in c)b[E]=n[E];{var I=It(e)||"Unknown";Jo(c,b,"context",I)}return p&&$1(e,n,b),b}}function xy(){return Us.current}function Hs(e){{var n=e.childContextTypes;return n!=null}}function Cy(e){Ma(Us,e),Ma(Fl,e)}function uC(e){Ma(Us,e),Ma(Fl,e)}function U1(e,n,s){{if(Fl.current!==Hi)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");La(Fl,n,e),La(Us,s,e)}}function H1(e,n,s){{var c=e.stateNode,p=n.childContextTypes;if(typeof c.getChildContext!="function"){{var b=It(e)||"Unknown";sC[b]||(sC[b]=!0,h("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return s}var E=c.getChildContext();for(var I in E)if(!(I in p))throw new Error((It(e)||"Unknown")+'.getChildContext(): key "'+I+'" is not defined in childContextTypes.');{var O=It(e)||"Unknown";Jo(p,E,"child context",O)}return Lt({},s,E)}}function Sy(e){{var n=e.stateNode,s=n&&n.__reactInternalMemoizedMergedChildContext||Hi;return lC=Fl.current,La(Fl,s,e),La(Us,Us.current,e),!0}}function G1(e,n,s){{var c=e.stateNode;if(!c)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=H1(e,n,lC);c.__reactInternalMemoizedMergedChildContext=p,Ma(Us,e),Ma(Fl,e),La(Fl,p,e),La(Us,s,e)}else Ma(Us,e),La(Us,s,e)}}function RP(e){{if(!Ya(e)||e.tag!==C)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var n=e;do{switch(n.tag){case R:return n.stateNode.context;case C:{var s=n.type;if(Hs(s))return n.stateNode.__reactInternalMemoizedMergedChildContext;break}}n=n.return}while(n!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var ec=0,Ey=1,Vl=null,cC=!1,dC=!1;function W1(e){Vl===null?Vl=[e]:Vl.push(e)}function _P(e){cC=!0,W1(e)}function X1(){cC&&tc()}function tc(){if(!dC&&Vl!==null){dC=!0;var e=0,n=gi();try{var s=!0,c=Vl;for(nr(cr);e<c.length;e++){var p=c[e];do p=p(s);while(p!==null)}Vl=null,cC=!1}catch(b){throw Vl!==null&&(Vl=Vl.slice(e+1)),jh(Ia,tc),b}finally{nr(n),dC=!1}}return null}var vp=[],mp=0,wy=null,Ry=0,mo=[],go=0,_d=null,Bl=1,zl="";function TP(e){return Nd(),(e.flags&yg)!==mt}function NP(e){return Nd(),Ry}function IP(){var e=zl,n=Bl,s=n&~AP(n);return s.toString(32)+e}function Td(e,n){Nd(),vp[mp++]=Ry,vp[mp++]=wy,wy=e,Ry=n}function Y1(e,n,s){Nd(),mo[go++]=Bl,mo[go++]=zl,mo[go++]=_d,_d=e;var c=Bl,p=zl,b=_y(c)-1,E=c&~(1<<b),I=s+1,O=_y(n)+b;if(O>30){var B=b-b%5,H=(1<<B)-1,te=(E&H).toString(32),K=E>>B,he=b-B,ve=_y(n)+he,Se=I<<he,Ke=Se|K,yt=te+p;Bl=1<<ve|Ke,zl=yt}else{var pt=I<<b,Wt=pt|E,$t=p;Bl=1<<O|Wt,zl=$t}}function fC(e){Nd();var n=e.return;if(n!==null){var s=1,c=0;Td(e,s),Y1(e,s,c)}}function _y(e){return 32-nd(e)}function AP(e){return 1<<_y(e)-1}function pC(e){for(;e===wy;)wy=vp[--mp],vp[mp]=null,Ry=vp[--mp],vp[mp]=null;for(;e===_d;)_d=mo[--go],mo[go]=null,zl=mo[--go],mo[go]=null,Bl=mo[--go],mo[go]=null}function jP(){return Nd(),_d!==null?{id:Bl,overflow:zl}:null}function OP(e,n){Nd(),mo[go++]=Bl,mo[go++]=zl,mo[go++]=_d,Bl=n.id,zl=n.overflow,_d=e}function Nd(){sa()||h("Expected to be hydrating. This is a bug in React. Please file an issue.")}var oa=null,yo=null,Qo=!1,Id=!1,nc=null;function DP(){Qo&&h("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Z1(){Id=!0}function kP(){return Id}function MP(e){var n=e.stateNode.containerInfo;return yo=KL(n),oa=e,Qo=!0,nc=null,Id=!1,!0}function LP(e,n,s){return yo=eP(n),oa=e,Qo=!0,nc=null,Id=!1,s!==null&&OP(e,s),!0}function q1(e,n){switch(e.tag){case R:{cP(e.stateNode.containerInfo,n);break}case N:{var s=(e.mode&ft)!==gt;fP(e.type,e.memoizedProps,e.stateNode,n,s);break}case z:{var c=e.memoizedState;c.dehydrated!==null&&dP(c.dehydrated,n);break}}}function J1(e,n){q1(e,n);var s=VB();s.stateNode=n,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=nn):c.push(s)}function hC(e,n){{if(Id)return;switch(e.tag){case R:{var s=e.stateNode.containerInfo;switch(n.tag){case N:var c=n.type;n.pendingProps,pP(s,c);break;case T:var p=n.pendingProps;hP(s,p);break}break}case N:{var b=e.type,E=e.memoizedProps,I=e.stateNode;switch(n.tag){case N:{var O=n.type,B=n.pendingProps,H=(e.mode&ft)!==gt;gP(b,E,I,O,B,H);break}case T:{var te=n.pendingProps,K=(e.mode&ft)!==gt;yP(b,E,I,te,K);break}}break}case z:{var he=e.memoizedState,ve=he.dehydrated;if(ve!==null)switch(n.tag){case N:var Se=n.type;n.pendingProps,vP(ve,Se);break;case T:var Ke=n.pendingProps;mP(ve,Ke);break}break}default:return}}}function Q1(e,n){n.flags=n.flags&~oo|Nn,hC(e,n)}function K1(e,n){switch(e.tag){case N:{var s=e.type;e.pendingProps;var c=XL(n,s);return c!==null?(e.stateNode=c,oa=e,yo=QL(c),!0):!1}case T:{var p=e.pendingProps,b=YL(n,p);return b!==null?(e.stateNode=b,oa=e,yo=null,!0):!1}case z:{var E=ZL(n);if(E!==null){var I={dehydrated:E,treeContext:jP(),retryLane:Ja};e.memoizedState=I;var O=BB(E);return O.return=e,e.child=O,oa=e,yo=null,!0}return!1}default:return!1}}function vC(e){return(e.mode&ft)!==gt&&(e.flags&At)===mt}function mC(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function gC(e){if(Qo){var n=yo;if(!n){vC(e)&&(hC(oa,e),mC()),Q1(oa,e),Qo=!1,oa=e;return}var s=n;if(!K1(e,n)){vC(e)&&(hC(oa,e),mC()),n=gv(s);var c=oa;if(!n||!K1(e,n)){Q1(oa,e),Qo=!1,oa=e;return}J1(c,s)}}}function PP(e,n,s){var c=e.stateNode,p=!Id,b=tP(c,e.type,e.memoizedProps,n,s,e,p);return e.updateQueue=b,b!==null}function FP(e){var n=e.stateNode,s=e.memoizedProps,c=nP(n,s,e);if(c){var p=oa;if(p!==null)switch(p.tag){case R:{var b=p.stateNode.containerInfo,E=(p.mode&ft)!==gt;lP(b,n,s,E);break}case N:{var I=p.type,O=p.memoizedProps,B=p.stateNode,H=(p.mode&ft)!==gt;uP(I,O,B,n,s,H);break}}}return c}function VP(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");rP(s,e)}function BP(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return aP(s)}function e_(e){for(var n=e.return;n!==null&&n.tag!==N&&n.tag!==R&&n.tag!==z;)n=n.return;oa=n}function Ty(e){if(e!==oa)return!1;if(!Qo)return e_(e),Qo=!0,!1;if(e.tag!==R&&(e.tag!==N||sP(e.type)&&!Qx(e.type,e.memoizedProps))){var n=yo;if(n)if(vC(e))t_(e),mC();else for(;n;)J1(e,n),n=gv(n)}return e_(e),e.tag===z?yo=BP(e):yo=oa?gv(e.stateNode):null,!0}function zP(){return Qo&&yo!==null}function t_(e){for(var n=yo;n;)q1(e,n),n=gv(n)}function gp(){oa=null,yo=null,Qo=!1,Id=!1}function n_(){nc!==null&&(qT(nc),nc=null)}function sa(){return Qo}function yC(e){nc===null?nc=[e]:nc.push(e)}var $P=l.ReactCurrentBatchConfig,UP=null;function HP(){return $P.transition}var Ko={recordUnsafeLifecycleWarnings:function(e,n){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,n){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var GP=function(e){for(var n=null,s=e;s!==null;)s.mode&er&&(n=s),s=s.return;return n},Ad=function(e){var n=[];return e.forEach(function(s){n.push(s)}),n.sort().join(", ")},Cv=[],Sv=[],Ev=[],wv=[],Rv=[],_v=[],jd=new Set;Ko.recordUnsafeLifecycleWarnings=function(e,n){jd.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Cv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillMount=="function"&&Sv.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ev.push(e),e.mode&er&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&wv.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&Rv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillUpdate=="function"&&_v.push(e))},Ko.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Cv.length>0&&(Cv.forEach(function(K){e.add(It(K)||"Component"),jd.add(K.type)}),Cv=[]);var n=new Set;Sv.length>0&&(Sv.forEach(function(K){n.add(It(K)||"Component"),jd.add(K.type)}),Sv=[]);var s=new Set;Ev.length>0&&(Ev.forEach(function(K){s.add(It(K)||"Component"),jd.add(K.type)}),Ev=[]);var c=new Set;wv.length>0&&(wv.forEach(function(K){c.add(It(K)||"Component"),jd.add(K.type)}),wv=[]);var p=new Set;Rv.length>0&&(Rv.forEach(function(K){p.add(It(K)||"Component"),jd.add(K.type)}),Rv=[]);var b=new Set;if(_v.length>0&&(_v.forEach(function(K){b.add(It(K)||"Component"),jd.add(K.type)}),_v=[]),n.size>0){var E=Ad(n);h(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
124
|
+
*/function op(e){if(!Rt)return!1;var n="on"+e,s=n in document;if(!s){var c=document.createElement("div");c.setAttribute(n,"return;"),s=typeof c[n]=="function"}return s}function a(){ot("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(e,n,s,c){Cu(c);var p=ay(n,"onChange");if(p.length>0){var b=new qf("onChange","change",null,s,c);e.push({event:b,listeners:p})}}var f=null,g=null;function S(e){var n=e.nodeName&&e.nodeName.toLowerCase();return n==="select"||n==="input"&&e.type==="file"}function _(e){var n=[];o(n,g,e,Tn(e)),Wc(L,n)}function L(e){E1(e,0)}function W(e){var n=fp(e);if(hu(n))return e}function Q(e,n){if(e==="change")return n}var me=!1;Rt&&(me=op("input")&&(!document.documentMode||document.documentMode>9));function Me(e,n){f=e,g=n,f.attachEvent("onpropertychange",De)}function Pe(){f&&(f.detachEvent("onpropertychange",De),f=null,g=null)}function De(e){e.propertyName==="value"&&W(g)&&_(e)}function qe(e,n,s){e==="focusin"?(Pe(),Me(n,s)):e==="focusout"&&Pe()}function rt(e,n){if(e==="selectionchange"||e==="keyup"||e==="keydown")return W(g)}function lt(e){var n=e.nodeName;return n&&n.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function dr(e,n){if(e==="click")return W(n)}function oe(e,n){if(e==="input"||e==="change")return W(n)}function ee(e){var n=e._wrapperState;!n||!n.controlled||e.type!=="number"||_t(e,"number",e.value)}function ce(e,n,s,c,p,b,E){var N=s?fp(s):window,O,B;if(S(N)?O=Q:ey(N)?me?O=oe:(O=rt,B=qe):lt(N)&&(O=dr),O){var H=O(n,s);if(H){o(e,H,c,p);return}}B&&B(n,N,s),n==="focusout"&&ee(N)}function $e(){je("onMouseEnter",["mouseout","mouseover"]),je("onMouseLeave",["mouseout","mouseover"]),je("onPointerEnter",["pointerout","pointerover"]),je("onPointerLeave",["pointerout","pointerover"])}function ct(e,n,s,c,p,b,E){var N=n==="mouseover"||n==="pointerover",O=n==="mouseout"||n==="pointerout";if(N&&!pg(c)){var B=c.relatedTarget||c.fromElement;if(B&&(Rd(B)||xv(B)))return}if(!(!O&&!N)){var H;if(p.window===p)H=p;else{var te=p.ownerDocument;te?H=te.defaultView||te.parentWindow:H=window}var K,he;if(O){var ve=c.relatedTarget||c.toElement;if(K=s,he=ve?Rd(ve):null,he!==null){var Se=As(he);(he!==Se||he.tag!==A&&he.tag!==T)&&(he=null)}}else K=null,he=s;if(K!==he){var Ke=Jf,yt="onMouseLeave",pt="onMouseEnter",Wt="mouse";(n==="pointerout"||n==="pointerover")&&(Ke=qg,yt="onPointerLeave",pt="onPointerEnter",Wt="pointer");var $t=K==null?H:fp(K),se=he==null?H:fp(he),Ee=new Ke(yt,Wt+"leave",K,c,p);Ee.target=$t,Ee.relatedTarget=se;var le=null,Fe=Rd(p);if(Fe===s){var et=new Ke(pt,Wt+"enter",he,c,p);et.target=se,et.relatedTarget=$t,le=et}JM(e,Ee,le,K,he)}}}function Ct(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var at=typeof Object.is=="function"?Object.is:Ct;function Et(e,n){if(at(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(var p=0;p<s.length;p++){var b=s[p];if(!dt.call(n,b)||!at(e[b],n[b]))return!1}return!0}function Er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function qo(e,n){for(var s=Er(e),c=0,p=0;s;){if(s.nodeType===Fo){if(p=c+s.textContent.length,c<=n&&p>=n)return{node:s,offset:n-c};c=p}s=Er(rn(s))}}function Px(e){var n=e.ownerDocument,s=n&&n.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var p=c.anchorNode,b=c.anchorOffset,E=c.focusNode,N=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return jM(e,p,b,E,N)}function jM(e,n,s,c,p){var b=0,E=-1,N=-1,O=0,B=0,H=e,te=null;e:for(;;){for(var K=null;H===n&&(s===0||H.nodeType===Fo)&&(E=b+s),H===c&&(p===0||H.nodeType===Fo)&&(N=b+p),H.nodeType===Fo&&(b+=H.nodeValue.length),(K=H.firstChild)!==null;)te=H,H=K;for(;;){if(H===e)break e;if(te===n&&++O===s&&(E=b),te===c&&++B===p&&(N=b),(K=H.nextSibling)!==null)break;H=te,te=H.parentNode}H=K}return E===-1||N===-1?null:{start:E,end:N}}function OM(e,n){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var p=c.getSelection(),b=e.textContent.length,E=Math.min(n.start,b),N=n.end===void 0?E:Math.min(n.end,b);if(!p.extend&&E>N){var O=N;N=E,E=O}var B=qo(e,E),H=qo(e,N);if(B&&H){if(p.rangeCount===1&&p.anchorNode===B.node&&p.anchorOffset===B.offset&&p.focusNode===H.node&&p.focusOffset===H.offset)return;var te=s.createRange();te.setStart(B.node,B.offset),p.removeAllRanges(),E>N?(p.addRange(te),p.extend(H.node,H.offset)):(te.setEnd(H.node,H.offset),p.addRange(te))}}}function d1(e){return e&&e.nodeType===Fo}function f1(e,n){return!e||!n?!1:e===n?!0:d1(e)?!1:d1(n)?f1(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1}function DM(e){return e&&e.ownerDocument&&f1(e.ownerDocument.documentElement,e)}function kM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function p1(){for(var e=window,n=ro();n instanceof e.HTMLIFrameElement;){if(kM(n))e=n.contentWindow;else return n;n=ro(e.document)}return n}function Fx(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function MM(){var e=p1();return{focusedElem:e,selectionRange:Fx(e)?PM(e):null}}function LM(e){var n=p1(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&DM(s)){c!==null&&Fx(s)&&FM(s,c);for(var p=[],b=s;b=b.parentNode;)b.nodeType===wa&&p.push({element:b,left:b.scrollLeft,top:b.scrollTop});typeof s.focus=="function"&&s.focus();for(var E=0;E<p.length;E++){var N=p[E];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}}function PM(e){var n;return"selectionStart"in e?n={start:e.selectionStart,end:e.selectionEnd}:n=Px(e),n||{start:0,end:0}}function FM(e,n){var s=n.start,c=n.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):OM(e,n)}var VM=Rt&&"documentMode"in document&&document.documentMode<=11;function BM(){ot("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var sp=null,Vx=null,sv=null,Bx=!1;function zM(e){if("selectionStart"in e&&Fx(e))return{start:e.selectionStart,end:e.selectionEnd};var n=e.ownerDocument&&e.ownerDocument.defaultView||window,s=n.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function $M(e){return e.window===e?e.document:e.nodeType===Ga?e:e.ownerDocument}function h1(e,n,s){var c=$M(s);if(!(Bx||sp==null||sp!==ro(c))){var p=zM(sp);if(!sv||!Et(sv,p)){sv=p;var b=ay(Vx,"onSelect");if(b.length>0){var E=new qf("onSelect","select",null,n,s);e.push({event:E,listeners:b}),E.target=sp}}}}function UM(e,n,s,c,p,b,E){var N=s?fp(s):window;switch(n){case"focusin":(ey(N)||N.contentEditable==="true")&&(sp=N,Vx=s,sv=null);break;case"focusout":sp=null,Vx=null,sv=null;break;case"mousedown":Bx=!0;break;case"contextmenu":case"mouseup":case"dragend":Bx=!1,h1(e,c,p);break;case"selectionchange":if(VM)break;case"keydown":case"keyup":h1(e,c,p)}}function ty(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var lp={animationend:ty("Animation","AnimationEnd"),animationiteration:ty("Animation","AnimationIteration"),animationstart:ty("Animation","AnimationStart"),transitionend:ty("Transition","TransitionEnd")},zx={},v1={};Rt&&(v1=document.createElement("div").style,"AnimationEvent"in window||(delete lp.animationend.animation,delete lp.animationiteration.animation,delete lp.animationstart.animation),"TransitionEvent"in window||delete lp.transitionend.transition);function ny(e){if(zx[e])return zx[e];if(!lp[e])return e;var n=lp[e];for(var s in n)if(n.hasOwnProperty(s)&&s in v1)return zx[e]=n[s];return e}var m1=ny("animationend"),g1=ny("animationiteration"),y1=ny("animationstart"),b1=ny("transitionend"),x1=new Map,C1=["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"];function qu(e,n){x1.set(e,n),ot(n,[e])}function HM(){for(var e=0;e<C1.length;e++){var n=C1[e],s=n.toLowerCase(),c=n[0].toUpperCase()+n.slice(1);qu(s,"on"+c)}qu(m1,"onAnimationEnd"),qu(g1,"onAnimationIteration"),qu(y1,"onAnimationStart"),qu("dblclick","onDoubleClick"),qu("focusin","onFocus"),qu("focusout","onBlur"),qu(b1,"onTransitionEnd")}function GM(e,n,s,c,p,b,E){var N=x1.get(n);if(N!==void 0){var O=qf,B=n;switch(n){case"keypress":if(Dl(c)===0)return;case"keydown":case"keyup":O=Yg;break;case"focusin":B="focus",O=gd;break;case"focusout":B="blur",O=gd;break;case"beforeblur":case"afterblur":O=gd;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Jf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=$g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=tv;break;case m1:case g1:case y1:O=Nx;break;case b1:O=zs;break;case"scroll":O=Jh;break;case"wheel":O=Ll;break;case"copy":case"cut":case"paste":O=Hg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=qg;break}var H=(b&Hc)!==0;{var te=!H&&n==="scroll",K=ZM(s,N,c.type,H,te);if(K.length>0){var he=new O(N,B,null,c,p);e.push({event:he,listeners:K})}}}}HM(),$e(),a(),BM(),np();function WM(e,n,s,c,p,b,E){GM(e,n,s,c,p,b);var N=(b&hx)===0;N&&(ct(e,n,s,c,p),ce(e,n,s,c,p),UM(e,n,s,c,p),Lx(e,n,s,c,p))}var lv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],$x=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(lv));function S1(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,Th(c,n,void 0,e),e.currentTarget=null}function XM(e,n,s){var c;if(s)for(var p=n.length-1;p>=0;p--){var b=n[p],E=b.instance,N=b.currentTarget,O=b.listener;if(E!==c&&e.isPropagationStopped())return;S1(e,O,N),c=E}else for(var B=0;B<n.length;B++){var H=n[B],te=H.instance,K=H.currentTarget,he=H.listener;if(te!==c&&e.isPropagationStopped())return;S1(e,he,K),c=te}}function E1(e,n){for(var s=(n&Hc)!==0,c=0;c<e.length;c++){var p=e[c],b=p.event,E=p.listeners;XM(b,E,s)}mx()}function YM(e,n,s,c,p){var b=Tn(s),E=[];WM(E,e,c,s,b,n),E1(E,n)}function qn(e,n){$x.has(e)||h('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=wP(n),p=QM(e,s);c.has(p)||(w1(n,e,Uc,s),c.add(p))}function Ux(e,n,s){$x.has(e)&&!n&&h('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;n&&(c|=Hc),w1(s,e,c,n)}var ry="_reactListening"+Math.random().toString(36).slice(2);function uv(e){if(!e[ry]){e[ry]=!0,Ve.forEach(function(s){s!=="selectionchange"&&($x.has(s)||Ux(s,!1,e),Ux(s,!0,e))});var n=e.nodeType===Ga?e:e.ownerDocument;n!==null&&(n[ry]||(n[ry]=!0,Ux("selectionchange",!1,n)))}}function w1(e,n,s,c,p){var b=Cr(e,n,s),E=void 0;Xc&&(n==="touchstart"||n==="touchmove"||n==="wheel")&&(E=!0),e=e,c?E!==void 0?Xf(e,n,b,E):Yo(e,n,b):E!==void 0?qh(e,n,b,E):Wu(e,n,b)}function R1(e,n){return e===n||e.nodeType===Kn&&e.parentNode===n}function Hx(e,n,s,c,p){var b=c;if(!(n&cf)&&!(n&Uc)){var E=p;if(c!==null){var N=c;e:for(;;){if(N===null)return;var O=N.tag;if(O===R||O===j){var B=N.stateNode.containerInfo;if(R1(B,E))break;if(O===j)for(var H=N.return;H!==null;){var te=H.tag;if(te===R||te===j){var K=H.stateNode.containerInfo;if(R1(K,E))return}H=H.return}for(;B!==null;){var he=Rd(B);if(he===null)return;var ve=he.tag;if(ve===A||ve===T){N=b=he;continue e}B=B.parentNode}}N=N.return}}}Wc(function(){return YM(e,n,s,b)})}function cv(e,n,s){return{instance:e,listener:n,currentTarget:s}}function ZM(e,n,s,c,p,b){for(var E=n!==null?n+"Capture":null,N=c?E:n,O=[],B=e,H=null;B!==null;){var te=B,K=te.stateNode,he=te.tag;if(he===A&&K!==null&&(H=K,N!==null)){var ve=gl(B,N);ve!=null&&O.push(cv(B,ve,H))}if(p)break;B=B.return}return O}function ay(e,n){for(var s=n+"Capture",c=[],p=e;p!==null;){var b=p,E=b.stateNode,N=b.tag;if(N===A&&E!==null){var O=E,B=gl(p,s);B!=null&&c.unshift(cv(p,B,O));var H=gl(p,n);H!=null&&c.push(cv(p,H,O))}p=p.return}return c}function up(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==A);return e||null}function qM(e,n){for(var s=e,c=n,p=0,b=s;b;b=up(b))p++;for(var E=0,N=c;N;N=up(N))E++;for(;p-E>0;)s=up(s),p--;for(;E-p>0;)c=up(c),E--;for(var O=p;O--;){if(s===c||c!==null&&s===c.alternate)return s;s=up(s),c=up(c)}return null}function _1(e,n,s,c,p){for(var b=n._reactName,E=[],N=s;N!==null&&N!==c;){var O=N,B=O.alternate,H=O.stateNode,te=O.tag;if(B!==null&&B===c)break;if(te===A&&H!==null){var K=H;if(p){var he=gl(N,b);he!=null&&E.unshift(cv(N,he,K))}else if(!p){var ve=gl(N,b);ve!=null&&E.push(cv(N,ve,K))}}N=N.return}E.length!==0&&e.push({event:n,listeners:E})}function JM(e,n,s,c,p){var b=c&&p?qM(c,p):null;c!==null&&_1(e,n,c,b,!1),p!==null&&s!==null&&_1(e,s,p,b,!0)}function QM(e,n){return e+"__"+(n?"capture":"bubble")}var Si=!1,dv="dangerouslySetInnerHTML",iy="suppressContentEditableWarning",Ju="suppressHydrationWarning",T1="autoFocus",Ed="children",wd="style",oy="__html",Gx,sy,fv,N1,ly,I1,A1;Gx={dialog:!0,webview:!0},sy=function(e,n){xu(e,n),sg(e,n),_s(e,n,{registrationNameDependencies:Ge,possibleRegistrationNames:tt})},I1=Rt&&!document.documentMode,fv=function(e,n,s){if(!Si){var c=uy(s),p=uy(n);p!==c&&(Si=!0,h("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(c)))}},N1=function(e){if(!Si){Si=!0;var n=[];e.forEach(function(s){n.push(s)}),h("Extra attributes from the server: %s",n)}},ly=function(e,n){n===!1?h("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):h("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)},A1=function(e,n){var s=e.namespaceURI===Po?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=n,s.innerHTML};var KM=/\r\n?/g,eL=/\u0000|\uFFFD/g;function uy(e){_r(e);var n=typeof e=="string"?e:""+e;return n.replace(KM,`
|
|
125
|
+
`).replace(eL,"")}function cy(e,n,s,c){var p=uy(n),b=uy(e);if(b!==p&&(c&&(Si||(Si=!0,h('Text content did not match. Server: "%s" Client: "%s"',b,p))),s&&ne))throw new Error("Text content does not match server-rendered HTML.")}function j1(e){return e.nodeType===Ga?e:e.ownerDocument}function tL(){}function dy(e){e.onclick=tL}function nL(e,n,s,c,p){for(var b in c)if(c.hasOwnProperty(b)){var E=c[b];if(b===wd)E&&Object.freeze(E),tg(n,E);else if(b===dv){var N=E?E[oy]:void 0;N!=null&&Wm(n,N)}else if(b===Ed)if(typeof E=="string"){var O=e!=="textarea"||E!=="";O&&Pc(n,E)}else typeof E=="number"&&Pc(n,""+E);else b===iy||b===Ju||b===T1||(Ge.hasOwnProperty(b)?E!=null&&(typeof E!="function"&&ly(b,E),b==="onScroll"&&qn("scroll",n)):E!=null&&Io(n,b,E,p))}}function rL(e,n,s,c){for(var p=0;p<n.length;p+=2){var b=n[p],E=n[p+1];b===wd?tg(e,E):b===dv?Wm(e,E):b===Ed?Pc(e,E):Io(e,b,E,c)}}function aL(e,n,s,c){var p,b=j1(s),E,N=c;if(N===Po&&(N=uh(e)),N===Po){if(p=hl(e,n),!p&&e!==e.toLowerCase()&&h("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var O=b.createElement("div");O.innerHTML="<script><\/script>";var B=O.firstChild;E=O.removeChild(B)}else if(typeof n.is=="string")E=b.createElement(e,{is:n.is});else if(E=b.createElement(e),e==="select"){var H=E;n.multiple?H.multiple=!0:n.size&&(H.size=n.size)}}else E=b.createElementNS(N,e);return N===Po&&!p&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!dt.call(Gx,e)&&(Gx[e]=!0,h("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),E}function iL(e,n){return j1(n).createTextNode(e)}function oL(e,n,s,c){var p=hl(n,s);sy(n,s);var b;switch(n){case"dialog":qn("cancel",e),qn("close",e),b=s;break;case"iframe":case"object":case"embed":qn("load",e),b=s;break;case"video":case"audio":for(var E=0;E<lv.length;E++)qn(lv[E],e);b=s;break;case"source":qn("error",e),b=s;break;case"img":case"image":case"link":qn("error",e),qn("load",e),b=s;break;case"details":qn("toggle",e),b=s;break;case"input":q(e,s),b=D(e,s),qn("invalid",e);break;case"option":mn(e,s),b=s;break;case"select":Lc(e,s),b=Mc(e,s),qn("invalid",e);break;case"textarea":Hm(e,s),b=lh(e,s),qn("invalid",e);break;default:b=s}switch(Bc(n,b),nL(n,e,c,b,p),n){case"input":ko(e),ze(e,s,!1);break;case"textarea":ko(e),nf(e);break;case"option":gn(e,s);break;case"select":sh(e,s);break;default:typeof b.onClick=="function"&&dy(e);break}}function sL(e,n,s,c,p){sy(n,c);var b=null,E,N;switch(n){case"input":E=D(e,s),N=D(e,c),b=[];break;case"select":E=Mc(e,s),N=Mc(e,c),b=[];break;case"textarea":E=lh(e,s),N=lh(e,c),b=[];break;default:E=s,N=c,typeof E.onClick!="function"&&typeof N.onClick=="function"&&dy(e);break}Bc(n,N);var O,B,H=null;for(O in E)if(!(N.hasOwnProperty(O)||!E.hasOwnProperty(O)||E[O]==null))if(O===wd){var te=E[O];for(B in te)te.hasOwnProperty(B)&&(H||(H={}),H[B]="")}else O===dv||O===Ed||O===iy||O===Ju||O===T1||(Ge.hasOwnProperty(O)?b||(b=[]):(b=b||[]).push(O,null));for(O in N){var K=N[O],he=E!=null?E[O]:void 0;if(!(!N.hasOwnProperty(O)||K===he||K==null&&he==null))if(O===wd)if(K&&Object.freeze(K),he){for(B in he)he.hasOwnProperty(B)&&(!K||!K.hasOwnProperty(B))&&(H||(H={}),H[B]="");for(B in K)K.hasOwnProperty(B)&&he[B]!==K[B]&&(H||(H={}),H[B]=K[B])}else H||(b||(b=[]),b.push(O,H)),H=K;else if(O===dv){var ve=K?K[oy]:void 0,Se=he?he[oy]:void 0;ve!=null&&Se!==ve&&(b=b||[]).push(O,ve)}else O===Ed?(typeof K=="string"||typeof K=="number")&&(b=b||[]).push(O,""+K):O===iy||O===Ju||(Ge.hasOwnProperty(O)?(K!=null&&(typeof K!="function"&&ly(O,K),O==="onScroll"&&qn("scroll",e)),!b&&he!==K&&(b=[])):(b=b||[]).push(O,K))}return H&&(ng(H,N[wd]),(b=b||[]).push(wd,H)),b}function lL(e,n,s,c,p){s==="input"&&p.type==="radio"&&p.name!=null&&fe(e,p);var b=hl(s,c),E=hl(s,p);switch(rL(e,n,b,E),s){case"input":ye(e,p);break;case"textarea":Gm(e,p);break;case"select":rx(e,p);break}}function uL(e){{var n=e.toLowerCase();return sf.hasOwnProperty(n)&&sf[n]||null}}function cL(e,n,s,c,p,b,E){var N,O;switch(N=hl(n,s),sy(n,s),n){case"dialog":qn("cancel",e),qn("close",e);break;case"iframe":case"object":case"embed":qn("load",e);break;case"video":case"audio":for(var B=0;B<lv.length;B++)qn(lv[B],e);break;case"source":qn("error",e);break;case"img":case"image":case"link":qn("error",e),qn("load",e);break;case"details":qn("toggle",e);break;case"input":q(e,s),qn("invalid",e);break;case"option":mn(e,s);break;case"select":Lc(e,s),qn("invalid",e);break;case"textarea":Hm(e,s),qn("invalid",e);break}Bc(n,s);{O=new Set;for(var H=e.attributes,te=0;te<H.length;te++){var K=H[te].name.toLowerCase();switch(K){case"value":break;case"checked":break;case"selected":break;default:O.add(H[te].name)}}}var he=null;for(var ve in s)if(s.hasOwnProperty(ve)){var Se=s[ve];if(ve===Ed)typeof Se=="string"?e.textContent!==Se&&(s[Ju]!==!0&&cy(e.textContent,Se,b,E),he=[Ed,Se]):typeof Se=="number"&&e.textContent!==""+Se&&(s[Ju]!==!0&&cy(e.textContent,Se,b,E),he=[Ed,""+Se]);else if(Ge.hasOwnProperty(ve))Se!=null&&(typeof Se!="function"&&ly(ve,Se),ve==="onScroll"&&qn("scroll",e));else if(E&&typeof N=="boolean"){var Ke=void 0,yt=N&&we?null:Nr(ve);if(s[Ju]!==!0){if(!(ve===iy||ve===Ju||ve==="value"||ve==="checked"||ve==="selected")){if(ve===dv){var pt=e.innerHTML,Wt=Se?Se[oy]:void 0;if(Wt!=null){var $t=A1(e,Wt);$t!==pt&&fv(ve,pt,$t)}}else if(ve===wd){if(O.delete(ve),I1){var se=px(Se);Ke=e.getAttribute("style"),se!==Ke&&fv(ve,Ke,se)}}else if(N&&!we)O.delete(ve.toLowerCase()),Ke=ii(e,ve,Se),Se!==Ke&&fv(ve,Ke,Se);else if(!Gn(ve,yt,N)&&!hn(ve,Se,yt,N)){var Ee=!1;if(yt!==null)O.delete(yt.attributeName),Ke=Li(e,ve,Se,yt);else{var le=c;if(le===Po&&(le=uh(n)),le===Po)O.delete(ve.toLowerCase());else{var Fe=uL(ve);Fe!==null&&Fe!==ve&&(Ee=!0,O.delete(Fe)),O.delete(ve)}Ke=ii(e,ve,Se)}var et=we;!et&&Se!==Ke&&!Ee&&fv(ve,Ke,Se)}}}}}switch(E&&O.size>0&&s[Ju]!==!0&&N1(O),n){case"input":ko(e),ze(e,s,!0);break;case"textarea":ko(e),nf(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&dy(e);break}return he}function dL(e,n,s){var c=e.nodeValue!==n;return c}function Wx(e,n){{if(Si)return;Si=!0,h("Did not expect server HTML to contain a <%s> in <%s>.",n.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Xx(e,n){{if(Si)return;Si=!0,h('Did not expect server HTML to contain the text node "%s" in <%s>.',n.nodeValue,e.nodeName.toLowerCase())}}function Yx(e,n,s){{if(Si)return;Si=!0,h("Expected server HTML to contain a matching <%s> in <%s>.",n,e.nodeName.toLowerCase())}}function Zx(e,n){{if(n===""||Si)return;Si=!0,h('Expected server HTML to contain a matching text node for "%s" in <%s>.',n,e.nodeName.toLowerCase())}}function fL(e,n,s){switch(n){case"input":st(e,s);return;case"textarea":ax(e,s);return;case"select":$m(e,s);return}}var pv=function(){},hv=function(){};{var pL=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],O1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],hL=O1.concat(["button"]),vL=["dd","dt","li","option","optgroup","p","rp","rt"],D1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};hv=function(e,n){var s=Lt({},e||D1),c={tag:n};return O1.indexOf(n)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),hL.indexOf(n)!==-1&&(s.pTagInButtonScope=null),pL.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=c,n==="form"&&(s.formTag=c),n==="a"&&(s.aTagInScope=c),n==="button"&&(s.buttonTagInScope=c),n==="nobr"&&(s.nobrTagInScope=c),n==="p"&&(s.pTagInButtonScope=c),n==="li"&&(s.listItemTagAutoclosing=c),(n==="dd"||n==="dt")&&(s.dlItemTagAutoclosing=c),s};var mL=function(e,n){switch(n){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return vL.indexOf(n)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null}return!0},gL=function(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null},k1={};pv=function(e,n,s){s=s||D1;var c=s.current,p=c&&c.tag;n!=null&&(e!=null&&h("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var b=mL(e,p)?null:c,E=b?null:gL(e,s),N=b||E;if(N){var O=N.tag,B=!!b+"|"+e+"|"+O;if(!k1[B]){k1[B]=!0;var H=e,te="";if(e==="#text"?/\S/.test(n)?H="Text nodes":(H="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+e+">",b){var K="";O==="table"&&e==="tr"&&(K+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),h("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,O,te,K)}else h("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,O)}}}}var fy="suppressHydrationWarning",py="$",hy="/$",vv="$?",mv="$!",yL="style",qx=null,Jx=null;function bL(e){var n,s,c=e.nodeType;switch(c){case Ga:case dh:{n=c===Ga?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:ch(null,"");break}default:{var b=c===Kn?e.parentNode:e,E=b.namespaceURI||null;n=b.tagName,s=ch(E,n);break}}{var N=n.toLowerCase(),O=hv(null,N);return{namespace:s,ancestorInfo:O}}}function xL(e,n,s){{var c=e,p=ch(c.namespace,n),b=hv(c.ancestorInfo,n);return{namespace:p,ancestorInfo:b}}}function zq(e){return e}function CL(e){qx=Hu(),Jx=MM();var n=null;return ka(!1),n}function SL(e){LM(Jx),ka(qx),qx=null,Jx=null}function EL(e,n,s,c,p){var b;{var E=c;if(pv(e,null,E.ancestorInfo),typeof n.children=="string"||typeof n.children=="number"){var N=""+n.children,O=hv(E.ancestorInfo,e);pv(null,N,O)}b=E.namespace}var B=aL(e,n,s,b);return bv(p,B),iC(B,n),B}function wL(e,n){e.appendChild(n)}function RL(e,n,s,c,p){switch(oL(e,n,s,c),n){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function _L(e,n,s,c,p,b){{var E=b;if(typeof c.children!=typeof s.children&&(typeof c.children=="string"||typeof c.children=="number")){var N=""+c.children,O=hv(E.ancestorInfo,n);pv(null,N,O)}}return sL(e,n,s,c)}function Qx(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function TL(e,n,s,c){{var p=s;pv(null,e,p.ancestorInfo)}var b=iL(e,n);return bv(c,b),b}function NL(){var e=window.event;return e===void 0?fo:Wf(e.type)}var Kx=typeof setTimeout=="function"?setTimeout:void 0,IL=typeof clearTimeout=="function"?clearTimeout:void 0,eC=-1,M1=typeof Promise=="function"?Promise:void 0,AL=typeof queueMicrotask=="function"?queueMicrotask:typeof M1<"u"?function(e){return M1.resolve(null).then(e).catch(jL)}:Kx;function jL(e){setTimeout(function(){throw e})}function OL(e,n,s,c){switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function DL(e,n,s,c,p,b){lL(e,n,s,c,p),iC(e,p)}function L1(e){Pc(e,"")}function kL(e,n,s){e.nodeValue=s}function ML(e,n){e.appendChild(n)}function LL(e,n){var s;e.nodeType===Kn?(s=e.parentNode,s.insertBefore(n,e)):(s=e,s.appendChild(n));var c=e._reactRootContainer;c==null&&s.onclick===null&&dy(s)}function PL(e,n,s){e.insertBefore(n,s)}function FL(e,n,s){e.nodeType===Kn?e.parentNode.insertBefore(n,s):e.insertBefore(n,s)}function VL(e,n){e.removeChild(n)}function BL(e,n){e.nodeType===Kn?e.parentNode.removeChild(n):e.removeChild(n)}function tC(e,n){var s=n,c=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===Kn){var b=p.data;if(b===hy)if(c===0){e.removeChild(p),rr(n);return}else c--;else(b===py||b===vv||b===mv)&&c++}s=p}while(s);rr(n)}function zL(e,n){e.nodeType===Kn?tC(e.parentNode,n):e.nodeType===wa&&tC(e,n),rr(e)}function $L(e){e=e;var n=e.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function UL(e){e.nodeValue=""}function HL(e,n){e=e;var s=n[yL],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=ws("display",c)}function GL(e,n){e.nodeValue=n}function WL(e){e.nodeType===wa?e.textContent="":e.nodeType===Ga&&e.documentElement&&e.removeChild(e.documentElement)}function XL(e,n,s){return e.nodeType!==wa||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function YL(e,n){return n===""||e.nodeType!==Fo?null:e}function ZL(e){return e.nodeType!==Kn?null:e}function P1(e){return e.data===vv}function nC(e){return e.data===mv}function qL(e){var n=e.nextSibling&&e.nextSibling.dataset,s,c,p;return n&&(s=n.dgst,c=n.msg,p=n.stck),{message:c,digest:s,stack:p}}function JL(e,n){e._reactRetry=n}function vy(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===wa||n===Fo)break;if(n===Kn){var s=e.data;if(s===py||s===mv||s===vv)break;if(s===hy)return null}}return e}function gv(e){return vy(e.nextSibling)}function QL(e){return vy(e.firstChild)}function KL(e){return vy(e.firstChild)}function eP(e){return vy(e.nextSibling)}function tP(e,n,s,c,p,b,E){bv(b,e),iC(e,s);var N;{var O=p;N=O.namespace}var B=(b.mode&ft)!==gt;return cL(e,n,s,N,c,B,E)}function nP(e,n,s,c){return bv(s,e),s.mode&ft,dL(e,n)}function rP(e,n){bv(n,e)}function aP(e){for(var n=e.nextSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===hy){if(s===0)return gv(n);s--}else(c===py||c===mv||c===vv)&&s++}n=n.nextSibling}return null}function F1(e){for(var n=e.previousSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===py||c===mv||c===vv){if(s===0)return n;s--}else c===hy&&s++}n=n.previousSibling}return null}function iP(e){rr(e)}function oP(e){rr(e)}function sP(e){return e!=="head"&&e!=="body"}function lP(e,n,s,c){var p=!0;cy(n.nodeValue,s,c,p)}function uP(e,n,s,c,p,b){if(n[fy]!==!0){var E=!0;cy(c.nodeValue,p,b,E)}}function cP(e,n){n.nodeType===wa?Wx(e,n):n.nodeType===Kn||Xx(e,n)}function dP(e,n){{var s=e.parentNode;s!==null&&(n.nodeType===wa?Wx(s,n):n.nodeType===Kn||Xx(s,n))}}function fP(e,n,s,c,p){(p||n[fy]!==!0)&&(c.nodeType===wa?Wx(s,c):c.nodeType===Kn||Xx(s,c))}function pP(e,n,s){Yx(e,n)}function hP(e,n){Zx(e,n)}function vP(e,n,s){{var c=e.parentNode;c!==null&&Yx(c,n)}}function mP(e,n){{var s=e.parentNode;s!==null&&Zx(s,n)}}function gP(e,n,s,c,p,b){(b||n[fy]!==!0)&&Yx(s,c)}function yP(e,n,s,c,p){(p||n[fy]!==!0)&&Zx(s,c)}function bP(e){h("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function xP(e){uv(e)}var cp=Math.random().toString(36).slice(2),dp="__reactFiber$"+cp,rC="__reactProps$"+cp,yv="__reactContainer$"+cp,aC="__reactEvents$"+cp,CP="__reactListeners$"+cp,SP="__reactHandles$"+cp;function EP(e){delete e[dp],delete e[rC],delete e[aC],delete e[CP],delete e[SP]}function bv(e,n){n[dp]=e}function my(e,n){n[yv]=e}function V1(e){e[yv]=null}function xv(e){return!!e[yv]}function Rd(e){var n=e[dp];if(n)return n;for(var s=e.parentNode;s;){if(n=s[yv]||s[dp],n){var c=n.alternate;if(n.child!==null||c!==null&&c.child!==null)for(var p=F1(e);p!==null;){var b=p[dp];if(b)return b;p=F1(p)}return n}e=s,s=e.parentNode}return null}function Qu(e){var n=e[dp]||e[yv];return n&&(n.tag===A||n.tag===T||n.tag===z||n.tag===R)?n:null}function fp(e){if(e.tag===A||e.tag===T)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function gy(e){return e[rC]||null}function iC(e,n){e[rC]=n}function wP(e){var n=e[aC];return n===void 0&&(n=e[aC]=new Set),n}var B1={},z1=l.ReactDebugCurrentFrame;function yy(e){if(e){var n=e._owner,s=Ut(e.type,e._source,n?n.type:null);z1.setExtraStackFrame(s)}else z1.setExtraStackFrame(null)}function Jo(e,n,s,c,p){{var b=Function.call.bind(dt);for(var E in e)if(b(e,E)){var N=void 0;try{if(typeof e[E]!="function"){var O=Error((c||"React class")+": "+s+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}N=e[E](n,E,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){N=B}N&&!(N instanceof Error)&&(yy(p),h("%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).",c||"React class",s,E,typeof N),yy(null)),N instanceof Error&&!(N.message in B1)&&(B1[N.message]=!0,yy(p),h("Failed %s type: %s",s,N.message),yy(null))}}}var oC=[],by;by=[];var Pl=-1;function Ku(e){return{current:e}}function Ma(e,n){if(Pl<0){h("Unexpected pop.");return}n!==by[Pl]&&h("Unexpected Fiber popped."),e.current=oC[Pl],oC[Pl]=null,by[Pl]=null,Pl--}function La(e,n,s){Pl++,oC[Pl]=e.current,by[Pl]=s,e.current=n}var sC;sC={};var Hi={};Object.freeze(Hi);var Fl=Ku(Hi),Us=Ku(!1),lC=Hi;function pp(e,n,s){return s&&Hs(n)?lC:Fl.current}function $1(e,n,s){{var c=e.stateNode;c.__reactInternalMemoizedUnmaskedChildContext=n,c.__reactInternalMemoizedMaskedChildContext=s}}function hp(e,n){{var s=e.type,c=s.contextTypes;if(!c)return Hi;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===n)return p.__reactInternalMemoizedMaskedChildContext;var b={};for(var E in c)b[E]=n[E];{var N=It(e)||"Unknown";Jo(c,b,"context",N)}return p&&$1(e,n,b),b}}function xy(){return Us.current}function Hs(e){{var n=e.childContextTypes;return n!=null}}function Cy(e){Ma(Us,e),Ma(Fl,e)}function uC(e){Ma(Us,e),Ma(Fl,e)}function U1(e,n,s){{if(Fl.current!==Hi)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");La(Fl,n,e),La(Us,s,e)}}function H1(e,n,s){{var c=e.stateNode,p=n.childContextTypes;if(typeof c.getChildContext!="function"){{var b=It(e)||"Unknown";sC[b]||(sC[b]=!0,h("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return s}var E=c.getChildContext();for(var N in E)if(!(N in p))throw new Error((It(e)||"Unknown")+'.getChildContext(): key "'+N+'" is not defined in childContextTypes.');{var O=It(e)||"Unknown";Jo(p,E,"child context",O)}return Lt({},s,E)}}function Sy(e){{var n=e.stateNode,s=n&&n.__reactInternalMemoizedMergedChildContext||Hi;return lC=Fl.current,La(Fl,s,e),La(Us,Us.current,e),!0}}function G1(e,n,s){{var c=e.stateNode;if(!c)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=H1(e,n,lC);c.__reactInternalMemoizedMergedChildContext=p,Ma(Us,e),Ma(Fl,e),La(Fl,p,e),La(Us,s,e)}else Ma(Us,e),La(Us,s,e)}}function RP(e){{if(!Ya(e)||e.tag!==C)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var n=e;do{switch(n.tag){case R:return n.stateNode.context;case C:{var s=n.type;if(Hs(s))return n.stateNode.__reactInternalMemoizedMergedChildContext;break}}n=n.return}while(n!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var ec=0,Ey=1,Vl=null,cC=!1,dC=!1;function W1(e){Vl===null?Vl=[e]:Vl.push(e)}function _P(e){cC=!0,W1(e)}function X1(){cC&&tc()}function tc(){if(!dC&&Vl!==null){dC=!0;var e=0,n=gi();try{var s=!0,c=Vl;for(nr(cr);e<c.length;e++){var p=c[e];do p=p(s);while(p!==null)}Vl=null,cC=!1}catch(b){throw Vl!==null&&(Vl=Vl.slice(e+1)),jh(Ia,tc),b}finally{nr(n),dC=!1}}return null}var vp=[],mp=0,wy=null,Ry=0,mo=[],go=0,_d=null,Bl=1,zl="";function TP(e){return Nd(),(e.flags&yg)!==mt}function NP(e){return Nd(),Ry}function IP(){var e=zl,n=Bl,s=n&~AP(n);return s.toString(32)+e}function Td(e,n){Nd(),vp[mp++]=Ry,vp[mp++]=wy,wy=e,Ry=n}function Y1(e,n,s){Nd(),mo[go++]=Bl,mo[go++]=zl,mo[go++]=_d,_d=e;var c=Bl,p=zl,b=_y(c)-1,E=c&~(1<<b),N=s+1,O=_y(n)+b;if(O>30){var B=b-b%5,H=(1<<B)-1,te=(E&H).toString(32),K=E>>B,he=b-B,ve=_y(n)+he,Se=N<<he,Ke=Se|K,yt=te+p;Bl=1<<ve|Ke,zl=yt}else{var pt=N<<b,Wt=pt|E,$t=p;Bl=1<<O|Wt,zl=$t}}function fC(e){Nd();var n=e.return;if(n!==null){var s=1,c=0;Td(e,s),Y1(e,s,c)}}function _y(e){return 32-nd(e)}function AP(e){return 1<<_y(e)-1}function pC(e){for(;e===wy;)wy=vp[--mp],vp[mp]=null,Ry=vp[--mp],vp[mp]=null;for(;e===_d;)_d=mo[--go],mo[go]=null,zl=mo[--go],mo[go]=null,Bl=mo[--go],mo[go]=null}function jP(){return Nd(),_d!==null?{id:Bl,overflow:zl}:null}function OP(e,n){Nd(),mo[go++]=Bl,mo[go++]=zl,mo[go++]=_d,Bl=n.id,zl=n.overflow,_d=e}function Nd(){sa()||h("Expected to be hydrating. This is a bug in React. Please file an issue.")}var oa=null,yo=null,Qo=!1,Id=!1,nc=null;function DP(){Qo&&h("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Z1(){Id=!0}function kP(){return Id}function MP(e){var n=e.stateNode.containerInfo;return yo=KL(n),oa=e,Qo=!0,nc=null,Id=!1,!0}function LP(e,n,s){return yo=eP(n),oa=e,Qo=!0,nc=null,Id=!1,s!==null&&OP(e,s),!0}function q1(e,n){switch(e.tag){case R:{cP(e.stateNode.containerInfo,n);break}case A:{var s=(e.mode&ft)!==gt;fP(e.type,e.memoizedProps,e.stateNode,n,s);break}case z:{var c=e.memoizedState;c.dehydrated!==null&&dP(c.dehydrated,n);break}}}function J1(e,n){q1(e,n);var s=VB();s.stateNode=n,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=nn):c.push(s)}function hC(e,n){{if(Id)return;switch(e.tag){case R:{var s=e.stateNode.containerInfo;switch(n.tag){case A:var c=n.type;n.pendingProps,pP(s,c);break;case T:var p=n.pendingProps;hP(s,p);break}break}case A:{var b=e.type,E=e.memoizedProps,N=e.stateNode;switch(n.tag){case A:{var O=n.type,B=n.pendingProps,H=(e.mode&ft)!==gt;gP(b,E,N,O,B,H);break}case T:{var te=n.pendingProps,K=(e.mode&ft)!==gt;yP(b,E,N,te,K);break}}break}case z:{var he=e.memoizedState,ve=he.dehydrated;if(ve!==null)switch(n.tag){case A:var Se=n.type;n.pendingProps,vP(ve,Se);break;case T:var Ke=n.pendingProps;mP(ve,Ke);break}break}default:return}}}function Q1(e,n){n.flags=n.flags&~oo|Nn,hC(e,n)}function K1(e,n){switch(e.tag){case A:{var s=e.type;e.pendingProps;var c=XL(n,s);return c!==null?(e.stateNode=c,oa=e,yo=QL(c),!0):!1}case T:{var p=e.pendingProps,b=YL(n,p);return b!==null?(e.stateNode=b,oa=e,yo=null,!0):!1}case z:{var E=ZL(n);if(E!==null){var N={dehydrated:E,treeContext:jP(),retryLane:Ja};e.memoizedState=N;var O=BB(E);return O.return=e,e.child=O,oa=e,yo=null,!0}return!1}default:return!1}}function vC(e){return(e.mode&ft)!==gt&&(e.flags&At)===mt}function mC(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function gC(e){if(Qo){var n=yo;if(!n){vC(e)&&(hC(oa,e),mC()),Q1(oa,e),Qo=!1,oa=e;return}var s=n;if(!K1(e,n)){vC(e)&&(hC(oa,e),mC()),n=gv(s);var c=oa;if(!n||!K1(e,n)){Q1(oa,e),Qo=!1,oa=e;return}J1(c,s)}}}function PP(e,n,s){var c=e.stateNode,p=!Id,b=tP(c,e.type,e.memoizedProps,n,s,e,p);return e.updateQueue=b,b!==null}function FP(e){var n=e.stateNode,s=e.memoizedProps,c=nP(n,s,e);if(c){var p=oa;if(p!==null)switch(p.tag){case R:{var b=p.stateNode.containerInfo,E=(p.mode&ft)!==gt;lP(b,n,s,E);break}case A:{var N=p.type,O=p.memoizedProps,B=p.stateNode,H=(p.mode&ft)!==gt;uP(N,O,B,n,s,H);break}}}return c}function VP(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");rP(s,e)}function BP(e){var n=e.memoizedState,s=n!==null?n.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return aP(s)}function e_(e){for(var n=e.return;n!==null&&n.tag!==A&&n.tag!==R&&n.tag!==z;)n=n.return;oa=n}function Ty(e){if(e!==oa)return!1;if(!Qo)return e_(e),Qo=!0,!1;if(e.tag!==R&&(e.tag!==A||sP(e.type)&&!Qx(e.type,e.memoizedProps))){var n=yo;if(n)if(vC(e))t_(e),mC();else for(;n;)J1(e,n),n=gv(n)}return e_(e),e.tag===z?yo=BP(e):yo=oa?gv(e.stateNode):null,!0}function zP(){return Qo&&yo!==null}function t_(e){for(var n=yo;n;)q1(e,n),n=gv(n)}function gp(){oa=null,yo=null,Qo=!1,Id=!1}function n_(){nc!==null&&(qT(nc),nc=null)}function sa(){return Qo}function yC(e){nc===null?nc=[e]:nc.push(e)}var $P=l.ReactCurrentBatchConfig,UP=null;function HP(){return $P.transition}var Ko={recordUnsafeLifecycleWarnings:function(e,n){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,n){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var GP=function(e){for(var n=null,s=e;s!==null;)s.mode&er&&(n=s),s=s.return;return n},Ad=function(e){var n=[];return e.forEach(function(s){n.push(s)}),n.sort().join(", ")},Cv=[],Sv=[],Ev=[],wv=[],Rv=[],_v=[],jd=new Set;Ko.recordUnsafeLifecycleWarnings=function(e,n){jd.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Cv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillMount=="function"&&Sv.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ev.push(e),e.mode&er&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&wv.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&Rv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillUpdate=="function"&&_v.push(e))},Ko.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Cv.length>0&&(Cv.forEach(function(K){e.add(It(K)||"Component"),jd.add(K.type)}),Cv=[]);var n=new Set;Sv.length>0&&(Sv.forEach(function(K){n.add(It(K)||"Component"),jd.add(K.type)}),Sv=[]);var s=new Set;Ev.length>0&&(Ev.forEach(function(K){s.add(It(K)||"Component"),jd.add(K.type)}),Ev=[]);var c=new Set;wv.length>0&&(wv.forEach(function(K){c.add(It(K)||"Component"),jd.add(K.type)}),wv=[]);var p=new Set;Rv.length>0&&(Rv.forEach(function(K){p.add(It(K)||"Component"),jd.add(K.type)}),Rv=[]);var b=new Set;if(_v.length>0&&(_v.forEach(function(K){b.add(It(K)||"Component"),jd.add(K.type)}),_v=[]),n.size>0){var E=Ad(n);h(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
126
126
|
|
|
127
127
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
128
128
|
|
|
129
|
-
Please update the following components: %s`,E)}if(c.size>0){var
|
|
129
|
+
Please update the following components: %s`,E)}if(c.size>0){var N=Ad(c);h(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
130
130
|
|
|
131
131
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
132
132
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
133
133
|
|
|
134
|
-
Please update the following components: %s`,
|
|
134
|
+
Please update the following components: %s`,N)}if(b.size>0){var O=Ad(b);h(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
135
135
|
|
|
136
136
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
137
137
|
|
|
@@ -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=[],Sv=[],Ev=[],wv=[],Rv=[],_v=[],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 bC=Ku(null),xC;xC={};var Iy=null,yp=null,CC=null,Ay=!1;function jy(){Iy=null,yp=null,CC=null,Ay=!1}function a_(){Ay=!0}function i_(){Ay=!1}function o_(e,n,s){La(bC,n._currentValue,e),n._currentValue=s,n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==xC&&h("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=xC}function SC(e,n){var s=bC.current;Ma(bC,n),e._currentValue=s}function EC(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 WP(e,n,s){XP(e,n,s)}function XP(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===C){var I=ku(s),O=$l(Mn,I);O.tag=Dy;var B=c.updateQueue;if(B!==null){var H=B.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)),EC(c.return,s,e),b.lanes=Dt(b.lanes,s);break}E=E.next}}else if(c.tag===V)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)),EC(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 Se=p.sibling;if(Se!==null){Se.return=p.return,p=Se;break}p=p.return}c=p}}function bp(e,n){Iy=e,yp=null,CC=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(Da(s.lanes,n)&&Bv(),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(CC!==e){var s={context:e,memoizedValue:n,next:null};if(yp===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().");yp=s,Iy.dependencies={lanes:_e,firstContext:s}}else yp=yp.next=s}return n}var Od=null;function wC(e){Od===null?Od=[e]:Od.push(e)}function YP(){if(Od!==null){for(var e=0;e<Od.length;e++){var n=Od[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}}Od=null}}function s_(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wC(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function ZP(e,n,s,c){var p=n.interleaved;p===null?(s.next=s,wC(n)):(s.next=p.next,p.next=s),n.interleaved=s}function qP(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wC(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function Ei(e,n){return Oy(e,n)}var JP=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&&lN(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&&lN(e),c=p,p=p.return;if(c.tag===R){var b=c.stateNode;return b}else return null}var l_=0,u_=1,Dy=2,RC=3,ky=!1,_C,My;_C=!1,My=null;function TC(e){var n={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:_e},effects:null};e.updateQueue=n}function c_(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:l_,payload:null,callback:null,next:null};return s}function rc(e,n,s){var c=e.updateQueue;if(c===null)return null;var p=c.shared;if(My===p&&!_C&&(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."),_C=!0),JV()){var b=p.pending;return b===null?n.next=n:(n.next=b.next,b.next=n),p.pending=n,JP(e,s)}else return qP(e,p,n,s)}function Ly(e,n,s){var c=n.updateQueue;if(c!==null){var p=c.shared;if($h(s)){var b=p.lanes;b=Pf(b,e.pendingLanes);var E=Dt(b,s);p.lanes=E,Uh(e,E)}}}function NC(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null){var p=c.updateQueue;if(s===p){var b=null,E=null,I=s.firstBaseUpdate;if(I!==null){var O=I;do{var B={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};E===null?b=E=B:(E.next=B,E=B),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 QP(e,n,s,c,p,b){switch(s.tag){case u_:{var E=s.payload;if(typeof E=="function"){a_();var I=E.call(b,c,p);{if(e.mode&er){kn(!0);try{E.call(b,c,p)}finally{kn(!1)}}i_()}return I}return E}case RC:e.flags=e.flags&~Pr|At;case l_:{var O=s.payload,B;if(typeof O=="function"){a_(),B=O.call(b,c,p);{if(e.mode&er){kn(!0);try{O.call(b,c,p)}finally{kn(!1)}}i_()}}else B=O;return B==null?c:Lt({},c,B)}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,I=p.shared.pending;if(I!==null){p.shared.pending=null;var O=I,B=O.next;O.next=null,E===null?b=B:E.next=B,E=O;var H=e.alternate;if(H!==null){var te=H.updateQueue,K=te.lastBaseUpdate;K!==E&&(K===null?te.firstBaseUpdate=B:K.next=B,te.lastBaseUpdate=O)}}if(b!==null){var he=p.baseState,ve=_e,Se=null,Ke=null,yt=null,pt=b;do{var Wt=pt.lane,$t=pt.eventTime;if(Il(c,Wt)){if(yt!==null){var Ee={eventTime:$t,lane:lr,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt=yt.next=Ee}he=QP(e,p,pt,he,n,s);var le=pt.callback;if(le!==null&&pt.lane!==lr){e.flags|=Ir;var Fe=p.effects;Fe===null?p.effects=[pt]:Fe.push(pt)}}else{var se={eventTime:$t,lane:Wt,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt===null?(Ke=yt=se,Se=he):yt=yt.next=se,ve=Dt(ve,Wt)}if(pt=pt.next,pt===null){if(I=p.shared.pending,I===null)break;var et=I,Ze=et.next;et.next=null,pt=Ze,p.lastBaseUpdate=et,p.shared.pending=null}}while(!0);yt===null&&(Se=he),p.baseState=Se,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=_e);Qv(ve),e.lanes=ve,e.memoizedState=he}My=null}function KP(e,n){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(n)}function d_(){ky=!1}function Fy(){return ky}function f_(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,KP(E,s))}}var IC={},p_=new r.Component().refs,AC,jC,OC,DC,kC,h_,Vy,MC,LC,PC;{AC=new Set,jC=new Set,OC=new Set,DC=new Set,MC=new Set,kC=new Set,LC=new Set,PC=new Set;var v_=new Set;Vy=function(e,n){if(!(e===null||typeof e=="function")){var s=n+"_"+e;v_.has(s)||(v_.add(s),h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e))}},h_=function(e,n){if(n===void 0){var s=Yt(e)||"Component";kC.has(s)||(kC.add(s),h("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(IC,"_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(IC)}function FC(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)}}h_(n,b)}var E=b==null?p:Lt({},p,b);if(e.memoizedState=E,e.lanes===_e){var I=e.updateQueue;I.baseState=E}}var VC={isMounted:Za,enqueueSetState:function(e,n,s){var c=io(e),p=ei(),b=dc(c),E=$l(p,b);E.payload=n,s!=null&&(Vy(s,"setState"),E.callback=s);var I=rc(c,E,b);I!==null&&(Xr(I,c,b,p),Ly(I,c,b)),Cf(c,b)},enqueueReplaceState:function(e,n,s){var c=io(e),p=ei(),b=dc(c),E=$l(p,b);E.tag=u_,E.payload=n,s!=null&&(Vy(s,"replaceState"),E.callback=s);var I=rc(c,E,b);I!==null&&(Xr(I,c,b,p),Ly(I,c,b)),Cf(c,b)},enqueueForceUpdate:function(e,n){var s=io(e),c=ei(),p=dc(s),b=$l(c,p);b.tag=Dy,n!=null&&(Vy(n,"forceUpdate"),b.callback=n);var E=rc(s,b,p);E!==null&&(Xr(E,s,p,c),Ly(E,s,p)),Au(s,p)}};function m_(e,n,s,c,p,b,E){var I=e.stateNode;if(typeof I.shouldComponentUpdate=="function"){var O=I.shouldComponentUpdate(c,b,E);{if(e.mode&er){kn(!0);try{O=I.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 eF(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&&!LC.has(n)&&(LC.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"&&!OC.has(n)&&(OC.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 I=c.state;I&&(typeof I!="object"||Zt(I))&&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 g_(e,n){n.updater=VC,e.stateNode=n,pf(n,e),n._reactInternalInstance=IC}function y_(e,n,s){var c=!1,p=Hi,b=Hi,E=n.contextType;if("contextType"in n){var I=E===null||E!==void 0&&E.$$typeof===He&&E._context===void 0;if(!I&&!PC.has(n)){PC.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=pp(e,n,!0);var B=n.contextTypes;c=B!=null,b=c?hp(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;g_(e,H);{if(typeof n.getDerivedStateFromProps=="function"&&te===null){var K=Yt(n)||"Component";jC.has(K)||(jC.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,Se=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?Se="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(Se="UNSAFE_componentWillUpdate"),he!==null||ve!==null||Se!==null){var Ke=Yt(n)||"Component",yt=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";DC.has(Ke)||(DC.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=[],Sv=[],Ev=[],wv=[],Rv=[],_v=[],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 bC=Ku(null),xC;xC={};var Iy=null,yp=null,CC=null,Ay=!1;function jy(){Iy=null,yp=null,CC=null,Ay=!1}function a_(){Ay=!0}function i_(){Ay=!1}function o_(e,n,s){La(bC,n._currentValue,e),n._currentValue=s,n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==xC&&h("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=xC}function SC(e,n){var s=bC.current;Ma(bC,n),e._currentValue=s}function EC(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 WP(e,n,s){XP(e,n,s)}function XP(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===C){var N=ku(s),O=$l(Mn,N);O.tag=Dy;var B=c.updateQueue;if(B!==null){var H=B.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)),EC(c.return,s,e),b.lanes=Dt(b.lanes,s);break}E=E.next}}else if(c.tag===V)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)),EC(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 Se=p.sibling;if(Se!==null){Se.return=p.return,p=Se;break}p=p.return}c=p}}function bp(e,n){Iy=e,yp=null,CC=null;var s=e.dependencies;if(s!==null){var c=s.firstContext;c!==null&&(Da(s.lanes,n)&&Bv(),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(CC!==e){var s={context:e,memoizedValue:n,next:null};if(yp===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().");yp=s,Iy.dependencies={lanes:_e,firstContext:s}}else yp=yp.next=s}return n}var Od=null;function wC(e){Od===null?Od=[e]:Od.push(e)}function YP(){if(Od!==null){for(var e=0;e<Od.length;e++){var n=Od[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}}Od=null}}function s_(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wC(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function ZP(e,n,s,c){var p=n.interleaved;p===null?(s.next=s,wC(n)):(s.next=p.next,p.next=s),n.interleaved=s}function qP(e,n,s,c){var p=n.interleaved;return p===null?(s.next=s,wC(n)):(s.next=p.next,p.next=s),n.interleaved=s,Oy(e,c)}function Ei(e,n){return Oy(e,n)}var JP=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&&lN(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&&lN(e),c=p,p=p.return;if(c.tag===R){var b=c.stateNode;return b}else return null}var l_=0,u_=1,Dy=2,RC=3,ky=!1,_C,My;_C=!1,My=null;function TC(e){var n={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:_e},effects:null};e.updateQueue=n}function c_(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:l_,payload:null,callback:null,next:null};return s}function rc(e,n,s){var c=e.updateQueue;if(c===null)return null;var p=c.shared;if(My===p&&!_C&&(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."),_C=!0),JV()){var b=p.pending;return b===null?n.next=n:(n.next=b.next,b.next=n),p.pending=n,JP(e,s)}else return qP(e,p,n,s)}function Ly(e,n,s){var c=n.updateQueue;if(c!==null){var p=c.shared;if($h(s)){var b=p.lanes;b=Pf(b,e.pendingLanes);var E=Dt(b,s);p.lanes=E,Uh(e,E)}}}function NC(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 B={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};E===null?b=E=B:(E.next=B,E=B),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 QP(e,n,s,c,p,b){switch(s.tag){case u_:{var E=s.payload;if(typeof E=="function"){a_();var N=E.call(b,c,p);{if(e.mode&er){kn(!0);try{E.call(b,c,p)}finally{kn(!1)}}i_()}return N}return E}case RC:e.flags=e.flags&~Pr|At;case l_:{var O=s.payload,B;if(typeof O=="function"){a_(),B=O.call(b,c,p);{if(e.mode&er){kn(!0);try{O.call(b,c,p)}finally{kn(!1)}}i_()}}else B=O;return B==null?c:Lt({},c,B)}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,B=O.next;O.next=null,E===null?b=B:E.next=B,E=O;var H=e.alternate;if(H!==null){var te=H.updateQueue,K=te.lastBaseUpdate;K!==E&&(K===null?te.firstBaseUpdate=B:K.next=B,te.lastBaseUpdate=O)}}if(b!==null){var he=p.baseState,ve=_e,Se=null,Ke=null,yt=null,pt=b;do{var Wt=pt.lane,$t=pt.eventTime;if(Il(c,Wt)){if(yt!==null){var Ee={eventTime:$t,lane:lr,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt=yt.next=Ee}he=QP(e,p,pt,he,n,s);var le=pt.callback;if(le!==null&&pt.lane!==lr){e.flags|=Ir;var Fe=p.effects;Fe===null?p.effects=[pt]:Fe.push(pt)}}else{var se={eventTime:$t,lane:Wt,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null};yt===null?(Ke=yt=se,Se=he):yt=yt.next=se,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&&(Se=he),p.baseState=Se,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=_e);Qv(ve),e.lanes=ve,e.memoizedState=he}My=null}function KP(e,n){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(n)}function d_(){ky=!1}function Fy(){return ky}function f_(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,KP(E,s))}}var IC={},p_=new r.Component().refs,AC,jC,OC,DC,kC,h_,Vy,MC,LC,PC;{AC=new Set,jC=new Set,OC=new Set,DC=new Set,MC=new Set,kC=new Set,LC=new Set,PC=new Set;var v_=new Set;Vy=function(e,n){if(!(e===null||typeof e=="function")){var s=n+"_"+e;v_.has(s)||(v_.add(s),h("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,e))}},h_=function(e,n){if(n===void 0){var s=Yt(e)||"Component";kC.has(s)||(kC.add(s),h("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(IC,"_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(IC)}function FC(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)}}h_(n,b)}var E=b==null?p:Lt({},p,b);if(e.memoizedState=E,e.lanes===_e){var N=e.updateQueue;N.baseState=E}}var VC={isMounted:Za,enqueueSetState:function(e,n,s){var c=io(e),p=ei(),b=dc(c),E=$l(p,b);E.payload=n,s!=null&&(Vy(s,"setState"),E.callback=s);var N=rc(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=dc(c),E=$l(p,b);E.tag=u_,E.payload=n,s!=null&&(Vy(s,"replaceState"),E.callback=s);var N=rc(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=dc(s),b=$l(c,p);b.tag=Dy,n!=null&&(Vy(n,"forceUpdate"),b.callback=n);var E=rc(s,b,p);E!==null&&(Xr(E,s,p,c),Ly(E,s,p)),Au(s,p)}};function m_(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 eF(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&&!LC.has(n)&&(LC.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"&&!OC.has(n)&&(OC.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 g_(e,n){n.updater=VC,e.stateNode=n,pf(n,e),n._reactInternalInstance=IC}function y_(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&&!PC.has(n)){PC.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=pp(e,n,!0);var B=n.contextTypes;c=B!=null,b=c?hp(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;g_(e,H);{if(typeof n.getDerivedStateFromProps=="function"&&te===null){var K=Yt(n)||"Component";jC.has(K)||(jC.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,Se=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?Se="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(Se="UNSAFE_componentWillUpdate"),he!==null||ve!==null||Se!==null){var Ke=Yt(n)||"Component",yt=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";DC.has(Ke)||(DC.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,12 +165,12 @@ 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:"",Se!==null?`
|
|
168
|
-
`+Se:""))}}}return c&&$1(e,p,b),H}function tF(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"),VC.enqueueReplaceState(n,n.state,null))}function b_(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";AC.has(b)||(AC.add(b),h("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}VC.enqueueReplaceState(n,n.state,null)}}function BC(e,n,s,c){eF(e,n,s);var p=e.stateNode;p.props=s,p.state=e.memoizedState,p.refs=p_,TC(e);var b=n.contextType;if(typeof b=="object"&&b!==null)p.context=Dr(b);else{var E=pp(e,n,!0);p.context=hp(e,E)}{if(p.state===s){var
|
|
168
|
+
`+Se:""))}}}return c&&$1(e,p,b),H}function tF(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"),VC.enqueueReplaceState(n,n.state,null))}function b_(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";AC.has(b)||(AC.add(b),h("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}VC.enqueueReplaceState(n,n.state,null)}}function BC(e,n,s,c){eF(e,n,s);var p=e.stateNode;p.props=s,p.state=e.memoizedState,p.refs=p_,TC(e);var b=n.contextType;if(typeof b=="object"&&b!==null)p.context=Dr(b);else{var E=pp(e,n,!0);p.context=hp(e,E)}{if(p.state===s){var N=Yt(n)||"Component";MC.has(N)||(MC.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"&&(FC(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")&&(tF(e,p),Py(e,s,p,c),p.state=e.memoizedState),typeof p.componentDidMount=="function"){var B=ut;B|=di,(e.mode&hi)!==gt&&(B|=fi),e.flags|=B}}function nF(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 B=pp(e,n,!0);O=hp(e,B)}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)&&b_(e,p,s,O),d_();var K=e.memoizedState,he=p.state=K;if(Py(e,s,p,c),he=e.memoizedState,b===s&&K===he&&!xy()&&!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"&&(FC(e,n,H,s),he=e.memoizedState);var Se=Fy()||m_(e,n,b,s,K,he,O);if(Se){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,Se}function rF(e,n,s,c,p){var b=n.stateNode;c_(e,n);var E=n.memoizedProps,N=n.type===n.elementType?E:es(n.type,E);b.props=N;var O=n.pendingProps,B=b.context,H=s.contextType,te=Hi;if(typeof H=="object"&&H!==null)te=Dr(H);else{var K=pp(n,s,!0);te=hp(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||B!==te)&&b_(n,b,c,te),d_();var Se=n.memoizedState,Ke=b.state=Se;if(Py(n,c,b,p),Ke=n.memoizedState,E===O&&Se===Ke&&!xy()&&!Fy()&&!G)return typeof b.componentDidUpdate=="function"&&(E!==e.memoizedProps||Se!==e.memoizedState)&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||Se!==e.memoizedState)&&(n.flags|=vr),!1;typeof he=="function"&&(FC(n,s,he,c),Ke=n.memoizedState);var yt=Fy()||m_(n,s,N,c,Se,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||Se!==e.memoizedState)&&(n.flags|=ut),typeof b.getSnapshotBeforeUpdate=="function"&&(E!==e.memoizedProps||Se!==e.memoizedState)&&(n.flags|=vr),n.memoizedProps=c,n.memoizedState=Ke),b.props=c,b.state=Ke,b.context=te,yt}var zC,$C,UC,HC,GC,x_=function(e,n){};zC=!1,$C=!1,UC={},HC={},GC={},x_=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";HC[s]||(HC[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||Te)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)){var p=It(e)||"Component";UC[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),UC[p]=!0)}if(s._owner){var b=s._owner,E;if(b){var N=b;if(N.tag!==C)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;Cn(c,"ref");var B=""+c;if(n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===B)return n.ref;var H=function(te){var K=O.refs;K===p_&&(K=O.refs={}),te===null?delete K[B]:K[B]=te};return H._stringRef=B,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(GC[n])return;GC[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 C_(e){var n=e._payload,s=e._init;return s(n)}function S_(e){function n(se,Ee){if(e){var le=se.deletions;le===null?(se.deletions=[Ee],se.flags|=nn):le.push(Ee)}}function s(se,Ee){if(!e)return null;for(var le=Ee;le!==null;)n(se,le),le=le.sibling;return null}function c(se,Ee){for(var le=new Map,Fe=Ee;Fe!==null;)Fe.key!==null?le.set(Fe.key,Fe):le.set(Fe.index,Fe),Fe=Fe.sibling;return le}function p(se,Ee){var le=Bd(se,Ee);return le.index=0,le.sibling=null,le}function b(se,Ee,le){if(se.index=le,!e)return se.flags|=yg,Ee;var Fe=se.alternate;if(Fe!==null){var et=Fe.index;return et<Ee?(se.flags|=Nn,Ee):et}else return se.flags|=Nn,Ee}function E(se){return e&&se.alternate===null&&(se.flags|=Nn),se}function I(se,Ee,le,Fe){if(Ee===null||Ee.tag!==T){var et=yE(le,se.mode,Fe);return et.return=se,et}else{var Ze=p(Ee,le);return Ze.return=se,Ze}}function O(se,Ee,le,Fe){var et=le.type;if(et===Ha)return H(se,Ee,le.props.children,Fe,le.key);if(Ee!==null&&(Ee.elementType===et||fN(Ee,le)||typeof et=="object"&&et!==null&&et.$$typeof===vt&&C_(et)===Ee.type)){var Ze=p(Ee,le.props);return Ze.ref=Tv(se,Ee,le),Ze.return=se,Ze._debugSource=le._source,Ze._debugOwner=le._owner,Ze}var Nt=gE(le,se.mode,Fe);return Nt.ref=Tv(se,Ee,le),Nt.return=se,Nt}function B(se,Ee,le,Fe){if(Ee===null||Ee.tag!==j||Ee.stateNode.containerInfo!==le.containerInfo||Ee.stateNode.implementation!==le.implementation){var et=bE(le,se.mode,Fe);return et.return=se,et}else{var Ze=p(Ee,le.children||[]);return Ze.return=se,Ze}}function H(se,Ee,le,Fe,et){if(Ee===null||Ee.tag!==A){var Ze=pc(le,se.mode,Fe,et);return Ze.return=se,Ze}else{var Nt=p(Ee,le);return Nt.return=se,Nt}}function te(se,Ee,le){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var Fe=yE(""+Ee,se.mode,le);return Fe.return=se,Fe}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ya:{var et=gE(Ee,se.mode,le);return et.ref=Tv(se,null,Ee),et.return=se,et}case ba:{var Ze=bE(Ee,se.mode,le);return Ze.return=se,Ze}case vt:{var Nt=Ee._payload,Ot=Ee._init;return te(se,Ot(Nt),le)}}if(Zt(Ee)||eo(Ee)){var En=pc(Ee,se.mode,le,null);return En.return=se,En}By(se,Ee)}return typeof Ee=="function"&&zy(se),null}function K(se,Ee,le,Fe){var et=Ee!==null?Ee.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return et!==null?null:I(se,Ee,""+le,Fe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case ya:return le.key===et?O(se,Ee,le,Fe):null;case ba:return le.key===et?B(se,Ee,le,Fe):null;case vt:{var Ze=le._payload,Nt=le._init;return K(se,Ee,Nt(Ze),Fe)}}if(Zt(le)||eo(le))return et!==null?null:H(se,Ee,le,Fe,null);By(se,le)}return typeof le=="function"&&zy(se),null}function he(se,Ee,le,Fe,et){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var Ze=se.get(le)||null;return I(Ee,Ze,""+Fe,et)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case ya:{var Nt=se.get(Fe.key===null?le:Fe.key)||null;return O(Ee,Nt,Fe,et)}case ba:{var Ot=se.get(Fe.key===null?le:Fe.key)||null;return B(Ee,Ot,Fe,et)}case vt:var En=Fe._payload,an=Fe._init;return he(se,Ee,le,an(En),et)}if(Zt(Fe)||eo(Fe)){var wr=se.get(le)||null;return H(Ee,wr,Fe,et,null)}By(Ee,Fe)}return typeof Fe=="function"&&zy(Ee),null}function ve(se,Ee,le){{if(typeof se!="object"||se===null)return Ee;switch(se.$$typeof){case ya:case ba:x_(se,le);var Fe=se.key;if(typeof Fe!="string")break;if(Ee===null){Ee=new Set,Ee.add(Fe);break}if(!Ee.has(Fe)){Ee.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=se._payload,Ze=se._init;ve(Ze(et),Ee,le);break}}return Ee}function Se(se,Ee,le,Fe){for(var et=null,Ze=0;Ze<le.length;Ze++){var Nt=le[Ze];et=ve(Nt,et,se)}for(var Ot=null,En=null,an=Ee,wr=0,on=0,gr=null;an!==null&&on<le.length;on++){an.index>on?(gr=an,an=null):gr=an.sibling;var Fa=K(se,an,le[on],Fe);if(Fa===null){an===null&&(an=gr);break}e&&an&&Fa.alternate===null&&n(se,an),wr=b(Fa,wr,on),En===null?Ot=Fa:En.sibling=Fa,En=Fa,an=gr}if(on===le.length){if(s(se,an),sa()){var ha=on;Td(se,ha)}return Ot}if(an===null){for(;on<le.length;on++){var Wi=te(se,le[on],Fe);Wi!==null&&(wr=b(Wi,wr,on),En===null?Ot=Wi:En.sibling=Wi,En=Wi)}if(sa()){var ti=on;Td(se,ti)}return Ot}for(var ni=c(se,an);on<le.length;on++){var Va=he(ni,se,on,le[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(Lp){return n(se,Lp)}),sa()){var Yl=on;Td(se,Yl)}return Ot}function Ke(se,Ee,le,Fe){var et=eo(le);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"&&le[Symbol.toStringTag]==="Generator"&&($C||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."),$C=!0),le.entries===et&&(zC||h("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zC=!0);var Ze=et.call(le);if(Ze)for(var Nt=null,Ot=Ze.next();!Ot.done;Ot=Ze.next()){var En=Ot.value;Nt=ve(En,Nt,se)}}var an=et.call(le);if(an==null)throw new Error("An iterable object provided no iterator.");for(var wr=null,on=null,gr=Ee,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(se,gr,ti.value,Fe);if(ni===null){gr===null&&(gr=Wi);break}e&&gr&&ni.alternate===null&&n(se,gr),Fa=b(ni,Fa,ha),on===null?wr=ni:on.sibling=ni,on=ni,gr=Wi}if(ti.done){if(s(se,gr),sa()){var Va=ha;Td(se,Va)}return wr}if(gr===null){for(;!ti.done;ha++,ti=an.next()){var Yl=te(se,ti.value,Fe);Yl!==null&&(Fa=b(Yl,Fa,ha),on===null?wr=Yl:on.sibling=Yl,on=Yl)}if(sa()){var Lp=ha;Td(se,Lp)}return wr}for(var rm=c(se,gr);!ti.done;ha++,ti=an.next()){var Qs=he(rm,se,ha,ti.value,Fe);Qs!==null&&(e&&Qs.alternate!==null&&rm.delete(Qs.key===null?ha:Qs.key),Fa=b(Qs,Fa,ha),on===null?wr=Qs:on.sibling=Qs,on=Qs)}if(e&&rm.forEach(function(gz){return n(se,gz)}),sa()){var mz=ha;Td(se,mz)}return wr}function yt(se,Ee,le,Fe){if(Ee!==null&&Ee.tag===T){s(se,Ee.sibling);var et=p(Ee,le);return et.return=se,et}s(se,Ee);var Ze=yE(le,se.mode,Fe);return Ze.return=se,Ze}function pt(se,Ee,le,Fe){for(var et=le.key,Ze=Ee;Ze!==null;){if(Ze.key===et){var Nt=le.type;if(Nt===Ha){if(Ze.tag===A){s(se,Ze.sibling);var Ot=p(Ze,le.props.children);return Ot.return=se,Ot._debugSource=le._source,Ot._debugOwner=le._owner,Ot}}else if(Ze.elementType===Nt||fN(Ze,le)||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===vt&&C_(Nt)===Ze.type){s(se,Ze.sibling);var En=p(Ze,le.props);return En.ref=Tv(se,Ze,le),En.return=se,En._debugSource=le._source,En._debugOwner=le._owner,En}s(se,Ze);break}else n(se,Ze);Ze=Ze.sibling}if(le.type===Ha){var an=pc(le.props.children,se.mode,Fe,le.key);return an.return=se,an}else{var wr=gE(le,se.mode,Fe);return wr.ref=Tv(se,Ee,le),wr.return=se,wr}}function Wt(se,Ee,le,Fe){for(var et=le.key,Ze=Ee;Ze!==null;){if(Ze.key===et)if(Ze.tag===j&&Ze.stateNode.containerInfo===le.containerInfo&&Ze.stateNode.implementation===le.implementation){s(se,Ze.sibling);var Nt=p(Ze,le.children||[]);return Nt.return=se,Nt}else{s(se,Ze);break}else n(se,Ze);Ze=Ze.sibling}var Ot=bE(le,se.mode,Fe);return Ot.return=se,Ot}function $t(se,Ee,le,Fe){var et=typeof le=="object"&&le!==null&&le.type===Ha&&le.key===null;if(et&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case ya:return E(pt(se,Ee,le,Fe));case ba:return E(Wt(se,Ee,le,Fe));case vt:var Ze=le._payload,Nt=le._init;return $t(se,Ee,Nt(Ze),Fe)}if(Zt(le))return Se(se,Ee,le,Fe);if(eo(le))return Ke(se,Ee,le,Fe);By(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?E(yt(se,Ee,""+le,Fe)):(typeof le=="function"&&zy(se),s(se,Ee))}return $t}var xp=S_(!0),E_=S_(!1);function aF(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=Bd(s,s.pendingProps);for(n.child=c,c.return=n;s.sibling!==null;)s=s.sibling,c=c.sibling=Bd(s,s.pendingProps),c.return=n;c.sibling=null}}function iF(e,n){for(var s=e.child;s!==null;)kB(s,n),s=s.sibling}var Nv={},ac=Ku(Nv),Iv=Ku(Nv),$y=Ku(Nv);function Uy(e){if(e===Nv)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 w_(){var e=Uy($y.current);return e}function WC(e,n){La($y,n,e),La(Iv,e,e),La(ac,Nv,e);var s=bL(n);Ma(ac,e),La(ac,s,e)}function Cp(e){Ma(ac,e),Ma(Iv,e),Ma($y,e)}function XC(){var e=Uy(ac.current);return e}function R_(e){Uy($y.current);var n=Uy(ac.current),s=xL(n,e.type);n!==s&&(La(Iv,e,e),La(ac,s,e))}function YC(e){Iv.current===e&&(Ma(ac,e),Ma(Iv,e))}var oF=0,__=1,T_=1,Av=2,ts=Ku(oF);function ZC(e,n){return(e&n)!==0}function Sp(e){return e&__}function qC(e,n){return e&__|n}function sF(e,n){return e|n}function ic(e,n){La(ts,n,e)}function Ep(e){Ma(ts,e)}function lF(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||P1(c)||nC(c))return n}}else if(n.tag===ae&&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,JC=[];function QC(){for(var e=0;e<JC.length;e++){var n=JC[e];n._workInProgressVersionPrimary=null}JC.length=0}function uF(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,jv=l.ReactCurrentBatchConfig,KC,wp;KC=new Set;var Dd=_e,Sn=null,$r=null,Ur=null,Gy=!1,Ov=!1,Dv=0,cF=0,dF=25,Ne=null,bo=null,oc=-1,eS=!1;function pn(){{var e=Ne;bo===null?bo=[e]:bo.push(e)}}function We(){{var e=Ne;bo!==null&&(oc++,bo[oc]!==e&&fF(e))}}function Rp(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.",Ne,typeof e)}function fF(e){{var n=It(Sn);if(!KC.has(n)&&(KC.add(n),bo!==null)){for(var s="",c=30,p=0;p<=oc;p++){for(var b=bo[p],E=p===oc?e:b,I=p+1+". "+b;I.length<c;)I+=" ";I+=E+`
|
|
173
|
-
`,s+=
|
|
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(GC[n])return;GC[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 C_(e){var n=e._payload,s=e._init;return s(n)}function S_(e){function n(se,Ee){if(e){var le=se.deletions;le===null?(se.deletions=[Ee],se.flags|=nn):le.push(Ee)}}function s(se,Ee){if(!e)return null;for(var le=Ee;le!==null;)n(se,le),le=le.sibling;return null}function c(se,Ee){for(var le=new Map,Fe=Ee;Fe!==null;)Fe.key!==null?le.set(Fe.key,Fe):le.set(Fe.index,Fe),Fe=Fe.sibling;return le}function p(se,Ee){var le=Bd(se,Ee);return le.index=0,le.sibling=null,le}function b(se,Ee,le){if(se.index=le,!e)return se.flags|=yg,Ee;var Fe=se.alternate;if(Fe!==null){var et=Fe.index;return et<Ee?(se.flags|=Nn,Ee):et}else return se.flags|=Nn,Ee}function E(se){return e&&se.alternate===null&&(se.flags|=Nn),se}function N(se,Ee,le,Fe){if(Ee===null||Ee.tag!==T){var et=yE(le,se.mode,Fe);return et.return=se,et}else{var Ze=p(Ee,le);return Ze.return=se,Ze}}function O(se,Ee,le,Fe){var et=le.type;if(et===Ha)return H(se,Ee,le.props.children,Fe,le.key);if(Ee!==null&&(Ee.elementType===et||fN(Ee,le)||typeof et=="object"&&et!==null&&et.$$typeof===vt&&C_(et)===Ee.type)){var Ze=p(Ee,le.props);return Ze.ref=Tv(se,Ee,le),Ze.return=se,Ze._debugSource=le._source,Ze._debugOwner=le._owner,Ze}var Nt=gE(le,se.mode,Fe);return Nt.ref=Tv(se,Ee,le),Nt.return=se,Nt}function B(se,Ee,le,Fe){if(Ee===null||Ee.tag!==j||Ee.stateNode.containerInfo!==le.containerInfo||Ee.stateNode.implementation!==le.implementation){var et=bE(le,se.mode,Fe);return et.return=se,et}else{var Ze=p(Ee,le.children||[]);return Ze.return=se,Ze}}function H(se,Ee,le,Fe,et){if(Ee===null||Ee.tag!==I){var Ze=pc(le,se.mode,Fe,et);return Ze.return=se,Ze}else{var Nt=p(Ee,le);return Nt.return=se,Nt}}function te(se,Ee,le){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var Fe=yE(""+Ee,se.mode,le);return Fe.return=se,Fe}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ya:{var et=gE(Ee,se.mode,le);return et.ref=Tv(se,null,Ee),et.return=se,et}case ba:{var Ze=bE(Ee,se.mode,le);return Ze.return=se,Ze}case vt:{var Nt=Ee._payload,Ot=Ee._init;return te(se,Ot(Nt),le)}}if(Zt(Ee)||eo(Ee)){var En=pc(Ee,se.mode,le,null);return En.return=se,En}By(se,Ee)}return typeof Ee=="function"&&zy(se),null}function K(se,Ee,le,Fe){var et=Ee!==null?Ee.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return et!==null?null:N(se,Ee,""+le,Fe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case ya:return le.key===et?O(se,Ee,le,Fe):null;case ba:return le.key===et?B(se,Ee,le,Fe):null;case vt:{var Ze=le._payload,Nt=le._init;return K(se,Ee,Nt(Ze),Fe)}}if(Zt(le)||eo(le))return et!==null?null:H(se,Ee,le,Fe,null);By(se,le)}return typeof le=="function"&&zy(se),null}function he(se,Ee,le,Fe,et){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var Ze=se.get(le)||null;return N(Ee,Ze,""+Fe,et)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case ya:{var Nt=se.get(Fe.key===null?le:Fe.key)||null;return O(Ee,Nt,Fe,et)}case ba:{var Ot=se.get(Fe.key===null?le:Fe.key)||null;return B(Ee,Ot,Fe,et)}case vt:var En=Fe._payload,an=Fe._init;return he(se,Ee,le,an(En),et)}if(Zt(Fe)||eo(Fe)){var wr=se.get(le)||null;return H(Ee,wr,Fe,et,null)}By(Ee,Fe)}return typeof Fe=="function"&&zy(Ee),null}function ve(se,Ee,le){{if(typeof se!="object"||se===null)return Ee;switch(se.$$typeof){case ya:case ba:x_(se,le);var Fe=se.key;if(typeof Fe!="string")break;if(Ee===null){Ee=new Set,Ee.add(Fe);break}if(!Ee.has(Fe)){Ee.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=se._payload,Ze=se._init;ve(Ze(et),Ee,le);break}}return Ee}function Se(se,Ee,le,Fe){for(var et=null,Ze=0;Ze<le.length;Ze++){var Nt=le[Ze];et=ve(Nt,et,se)}for(var Ot=null,En=null,an=Ee,wr=0,on=0,gr=null;an!==null&&on<le.length;on++){an.index>on?(gr=an,an=null):gr=an.sibling;var Fa=K(se,an,le[on],Fe);if(Fa===null){an===null&&(an=gr);break}e&&an&&Fa.alternate===null&&n(se,an),wr=b(Fa,wr,on),En===null?Ot=Fa:En.sibling=Fa,En=Fa,an=gr}if(on===le.length){if(s(se,an),sa()){var ha=on;Td(se,ha)}return Ot}if(an===null){for(;on<le.length;on++){var Wi=te(se,le[on],Fe);Wi!==null&&(wr=b(Wi,wr,on),En===null?Ot=Wi:En.sibling=Wi,En=Wi)}if(sa()){var ti=on;Td(se,ti)}return Ot}for(var ni=c(se,an);on<le.length;on++){var Va=he(ni,se,on,le[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(Lp){return n(se,Lp)}),sa()){var Yl=on;Td(se,Yl)}return Ot}function Ke(se,Ee,le,Fe){var et=eo(le);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"&&le[Symbol.toStringTag]==="Generator"&&($C||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."),$C=!0),le.entries===et&&(zC||h("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zC=!0);var Ze=et.call(le);if(Ze)for(var Nt=null,Ot=Ze.next();!Ot.done;Ot=Ze.next()){var En=Ot.value;Nt=ve(En,Nt,se)}}var an=et.call(le);if(an==null)throw new Error("An iterable object provided no iterator.");for(var wr=null,on=null,gr=Ee,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(se,gr,ti.value,Fe);if(ni===null){gr===null&&(gr=Wi);break}e&&gr&&ni.alternate===null&&n(se,gr),Fa=b(ni,Fa,ha),on===null?wr=ni:on.sibling=ni,on=ni,gr=Wi}if(ti.done){if(s(se,gr),sa()){var Va=ha;Td(se,Va)}return wr}if(gr===null){for(;!ti.done;ha++,ti=an.next()){var Yl=te(se,ti.value,Fe);Yl!==null&&(Fa=b(Yl,Fa,ha),on===null?wr=Yl:on.sibling=Yl,on=Yl)}if(sa()){var Lp=ha;Td(se,Lp)}return wr}for(var rm=c(se,gr);!ti.done;ha++,ti=an.next()){var Qs=he(rm,se,ha,ti.value,Fe);Qs!==null&&(e&&Qs.alternate!==null&&rm.delete(Qs.key===null?ha:Qs.key),Fa=b(Qs,Fa,ha),on===null?wr=Qs:on.sibling=Qs,on=Qs)}if(e&&rm.forEach(function(gz){return n(se,gz)}),sa()){var mz=ha;Td(se,mz)}return wr}function yt(se,Ee,le,Fe){if(Ee!==null&&Ee.tag===T){s(se,Ee.sibling);var et=p(Ee,le);return et.return=se,et}s(se,Ee);var Ze=yE(le,se.mode,Fe);return Ze.return=se,Ze}function pt(se,Ee,le,Fe){for(var et=le.key,Ze=Ee;Ze!==null;){if(Ze.key===et){var Nt=le.type;if(Nt===Ha){if(Ze.tag===I){s(se,Ze.sibling);var Ot=p(Ze,le.props.children);return Ot.return=se,Ot._debugSource=le._source,Ot._debugOwner=le._owner,Ot}}else if(Ze.elementType===Nt||fN(Ze,le)||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===vt&&C_(Nt)===Ze.type){s(se,Ze.sibling);var En=p(Ze,le.props);return En.ref=Tv(se,Ze,le),En.return=se,En._debugSource=le._source,En._debugOwner=le._owner,En}s(se,Ze);break}else n(se,Ze);Ze=Ze.sibling}if(le.type===Ha){var an=pc(le.props.children,se.mode,Fe,le.key);return an.return=se,an}else{var wr=gE(le,se.mode,Fe);return wr.ref=Tv(se,Ee,le),wr.return=se,wr}}function Wt(se,Ee,le,Fe){for(var et=le.key,Ze=Ee;Ze!==null;){if(Ze.key===et)if(Ze.tag===j&&Ze.stateNode.containerInfo===le.containerInfo&&Ze.stateNode.implementation===le.implementation){s(se,Ze.sibling);var Nt=p(Ze,le.children||[]);return Nt.return=se,Nt}else{s(se,Ze);break}else n(se,Ze);Ze=Ze.sibling}var Ot=bE(le,se.mode,Fe);return Ot.return=se,Ot}function $t(se,Ee,le,Fe){var et=typeof le=="object"&&le!==null&&le.type===Ha&&le.key===null;if(et&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case ya:return E(pt(se,Ee,le,Fe));case ba:return E(Wt(se,Ee,le,Fe));case vt:var Ze=le._payload,Nt=le._init;return $t(se,Ee,Nt(Ze),Fe)}if(Zt(le))return Se(se,Ee,le,Fe);if(eo(le))return Ke(se,Ee,le,Fe);By(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?E(yt(se,Ee,""+le,Fe)):(typeof le=="function"&&zy(se),s(se,Ee))}return $t}var xp=S_(!0),E_=S_(!1);function aF(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=Bd(s,s.pendingProps);for(n.child=c,c.return=n;s.sibling!==null;)s=s.sibling,c=c.sibling=Bd(s,s.pendingProps),c.return=n;c.sibling=null}}function iF(e,n){for(var s=e.child;s!==null;)kB(s,n),s=s.sibling}var Nv={},ac=Ku(Nv),Iv=Ku(Nv),$y=Ku(Nv);function Uy(e){if(e===Nv)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 w_(){var e=Uy($y.current);return e}function WC(e,n){La($y,n,e),La(Iv,e,e),La(ac,Nv,e);var s=bL(n);Ma(ac,e),La(ac,s,e)}function Cp(e){Ma(ac,e),Ma(Iv,e),Ma($y,e)}function XC(){var e=Uy(ac.current);return e}function R_(e){Uy($y.current);var n=Uy(ac.current),s=xL(n,e.type);n!==s&&(La(Iv,e,e),La(ac,s,e))}function YC(e){Iv.current===e&&(Ma(ac,e),Ma(Iv,e))}var oF=0,__=1,T_=1,Av=2,ts=Ku(oF);function ZC(e,n){return(e&n)!==0}function Sp(e){return e&__}function qC(e,n){return e&__|n}function sF(e,n){return e|n}function ic(e,n){La(ts,n,e)}function Ep(e){Ma(ts,e)}function lF(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||P1(c)||nC(c))return n}}else if(n.tag===ae&&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,JC=[];function QC(){for(var e=0;e<JC.length;e++){var n=JC[e];n._workInProgressVersionPrimary=null}JC.length=0}function uF(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,jv=l.ReactCurrentBatchConfig,KC,wp;KC=new Set;var Dd=_e,Sn=null,$r=null,Ur=null,Gy=!1,Ov=!1,Dv=0,cF=0,dF=25,Ne=null,bo=null,oc=-1,eS=!1;function pn(){{var e=Ne;bo===null?bo=[e]:bo.push(e)}}function We(){{var e=Ne;bo!==null&&(oc++,bo[oc]!==e&&fF(e))}}function Rp(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.",Ne,typeof e)}function fF(e){{var n=It(Sn);if(!KC.has(n)&&(KC.add(n),bo!==null)){for(var s="",c=30,p=0;p<=oc;p++){for(var b=bo[p],E=p===oc?e:b,N=p+1+". "+b;N.length<c;)N+=" ";N+=E+`
|
|
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
|
|
176
176
|
------------------------------------------------------
|
|
@@ -182,13 +182,13 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
|
|
|
182
182
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function tS(e,n){if(eS)return!1;if(n===null)return h("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ne),!1;e.length!==n.length&&h(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
183
183
|
|
|
184
184
|
Previous: %s
|
|
185
|
-
Incoming: %s`,Ne,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<n.length&&s<e.length;s++)if(!at(e[s],n[s]))return!1;return!0}function _p(e,n,s,c,p,b){Dd=b,Sn=n,bo=e!==null?e._debugHookTypes:null,oc=-1,eS=e!==null&&e.type!==n.type,n.memoizedState=null,n.updateQueue=null,n.lanes=_e,e!==null&&e.memoizedState!==null?Je.current=Z_:bo!==null?Je.current=Y_:Je.current=X_;var E=s(c,p);if(Ov){var I=0;do{if(Ov=!1,Dv=0,I>=dF)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");I+=1,eS=!1,$r=null,Ur=null,n.updateQueue=null,oc=-1,Je.current=q_,E=s(c,p)}while(Ov)}Je.current=ab,n._debugHookTypes=bo;var O=$r!==null&&$r.next!==null;if(Dd=_e,Sn=null,$r=null,Ur=null,Ne=null,bo=null,oc=-1,e!==null&&(e.flags&Fr)!==(n.flags&Fr)&&(e.mode&ft)!==gt&&h("Internal React error: Expected static flag was missing. Please notify the React team."),Gy=!1,O)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return E}function Tp(){var e=Dv!==0;return Dv=0,e}function N_(e,n,s){n.updateQueue=e.updateQueue,(n.mode&hi)!==gt?n.flags&=~(bl|fi|Ra|ut):n.flags&=~(Ra|ut),e.lanes=cd(e.lanes,s)}function I_(){if(Je.current=ab,Gy){for(var e=Sn.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Gy=!1}Dd=_e,Sn=null,$r=null,Ur=null,bo=null,oc=-1,Ne=null,$_=!1,Ov=!1,Dv=0}function Ws(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?Sn.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function xo(){var e;if($r===null){var n=Sn.alternate;n!==null?e=n.memoizedState:e=null}else e=$r.next;var s;if(Ur===null?s=Sn.memoizedState:s=Ur.next,s!==null)Ur=s,s=Ur.next,$r=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");$r=e;var c={memoizedState:$r.memoizedState,baseState:$r.baseState,baseQueue:$r.baseQueue,queue:$r.queue,next:null};Ur===null?Sn.memoizedState=Ur=c:Ur=Ur.next=c}return Ur}function A_(){return{lastEffect:null,stores:null}}function nS(e,n){return typeof n=="function"?n(e):n}function rS(e,n,s){var c=Ws(),p;s!==void 0?p=s(n):p=n,c.memoizedState=c.baseState=p;var b={pending:null,interleaved:null,lanes:_e,dispatch:null,lastRenderedReducer:e,lastRenderedState:p};c.queue=b;var E=b.dispatch=mF.bind(null,Sn,b);return[c.memoizedState,E]}function aS(e,n,s){var c=xo(),p=c.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var b=$r,E=b.baseQueue,I=p.pending;if(I!==null){if(E!==null){var O=E.next,B=I.next;E.next=B,I.next=O}b.baseQueue!==E&&h("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),b.baseQueue=E=I,p.pending=null}if(E!==null){var H=E.next,te=b.baseState,K=null,he=null,ve=null,Se=H;do{var Ke=Se.lane;if(Il(Dd,Ke)){if(ve!==null){var pt={lane:lr,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ve=ve.next=pt}if(Se.hasEagerState)te=Se.eagerState;else{var Wt=Se.action;te=e(te,Wt)}}else{var yt={lane:Ke,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ve===null?(he=ve=yt,K=te):ve=ve.next=yt,Sn.lanes=Dt(Sn.lanes,Ke),Qv(Ke)}Se=Se.next}while(Se!==null&&Se!==H);ve===null?K=te:ve.next=he,at(te,c.memoizedState)||Bv(),c.memoizedState=te,c.baseState=K,c.baseQueue=ve,p.lastRenderedState=te}var $t=p.interleaved;if($t!==null){var se=$t;do{var Ee=se.lane;Sn.lanes=Dt(Sn.lanes,Ee),Qv(Ee),se=se.next}while(se!==$t)}else E===null&&(p.lanes=_e);var le=p.dispatch;return[c.memoizedState,le]}function iS(e,n,s){var c=xo(),p=c.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var b=p.dispatch,E=p.pending,I=c.memoizedState;if(E!==null){p.pending=null;var O=E.next,B=O;do{var H=B.action;I=e(I,H),B=B.next}while(B!==O);at(I,c.memoizedState)||Bv(),c.memoizedState=I,c.baseQueue===null&&(c.baseState=I),p.lastRenderedState=I}return[I,b]}function $q(e,n,s){}function Uq(e,n,s){}function oS(e,n,s){var c=Sn,p=Ws(),b,E=sa();if(E){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");b=s(),wp||b!==s()&&(h("The result of getServerSnapshot should be cached to avoid an infinite loop"),wp=!0)}else{if(b=n(),!wp){var I=n();at(b,I)||(h("The result of getSnapshot should be cached to avoid an infinite loop"),wp=!0)}var O=Sb();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ud(O,Dd)||j_(c,n,b)}p.memoizedState=b;var B={value:b,getSnapshot:n};return p.queue=B,qy(D_.bind(null,c,B,e),[e]),c.flags|=Ra,kv(Br|la,O_.bind(null,c,B,b,n),void 0,null),b}function Wy(e,n,s){var c=Sn,p=xo(),b=n();if(!wp){var E=n();at(b,E)||(h("The result of getSnapshot should be cached to avoid an infinite loop"),wp=!0)}var I=p.memoizedState,O=!at(I,b);O&&(p.memoizedState=b,Bv());var B=p.queue;if(Lv(D_.bind(null,c,B,e),[e]),B.getSnapshot!==n||O||Ur!==null&&Ur.memoizedState.tag&Br){c.flags|=Ra,kv(Br|la,O_.bind(null,c,B,b,n),void 0,null);var H=Sb();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ud(H,Dd)||j_(c,n,b)}return b}function j_(e,n,s){e.flags|=yl;var c={getSnapshot:n,value:s},p=Sn.updateQueue;if(p===null)p=A_(),Sn.updateQueue=p,p.stores=[c];else{var b=p.stores;b===null?p.stores=[c]:b.push(c)}}function O_(e,n,s,c){n.value=s,n.getSnapshot=c,k_(n)&&M_(e)}function D_(e,n,s){var c=function(){k_(n)&&M_(e)};return s(c)}function k_(e){var n=e.getSnapshot,s=e.value;try{var c=n();return!at(s,c)}catch{return!0}}function M_(e){var n=Ei(e,xt);n!==null&&Xr(n,e,xt,Mn)}function Xy(e){var n=Ws();typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e;var s={pending:null,interleaved:null,lanes:_e,dispatch:null,lastRenderedReducer:nS,lastRenderedState:e};n.queue=s;var c=s.dispatch=gF.bind(null,Sn,s);return[n.memoizedState,c]}function sS(e){return aS(nS)}function lS(e){return iS(nS)}function kv(e,n,s,c){var p={tag:e,create:n,destroy:s,deps:c,next:null},b=Sn.updateQueue;if(b===null)b=A_(),Sn.updateQueue=b,b.lastEffect=p.next=p;else{var E=b.lastEffect;if(E===null)b.lastEffect=p.next=p;else{var I=E.next;E.next=p,p.next=I,b.lastEffect=p}}return p}function uS(e){var n=Ws();{var s={current:e};return n.memoizedState=s,s}}function Yy(e){var n=xo();return n.memoizedState}function Mv(e,n,s,c){var p=Ws(),b=c===void 0?null:c;Sn.flags|=e,p.memoizedState=kv(Br|n,s,void 0,b)}function Zy(e,n,s,c){var p=xo(),b=c===void 0?null:c,E=void 0;if($r!==null){var I=$r.memoizedState;if(E=I.destroy,b!==null){var O=I.deps;if(tS(b,O)){p.memoizedState=kv(n,s,E,b);return}}}Sn.flags|=e,p.memoizedState=kv(Br|n,s,E,b)}function qy(e,n){return(Sn.mode&hi)!==gt?Mv(bl|Ra|Is,la,e,n):Mv(Ra|Is,la,e,n)}function Lv(e,n){return Zy(Ra,la,e,n)}function cS(e,n){return Mv(ut,Gs,e,n)}function Jy(e,n){return Zy(ut,Gs,e,n)}function dS(e,n){var s=ut;return s|=di,(Sn.mode&hi)!==gt&&(s|=fi),Mv(s,zr,e,n)}function Qy(e,n){return Zy(ut,zr,e,n)}function L_(e,n){if(typeof n=="function"){var s=n,c=e();return s(c),function(){s(null)}}else if(n!=null){var p=n;p.hasOwnProperty("current")||h("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(p).join(", ")+"}");var b=e();return p.current=b,function(){p.current=null}}}function fS(e,n,s){typeof n!="function"&&h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null,p=ut;return p|=di,(Sn.mode&hi)!==gt&&(p|=fi),Mv(p,zr,L_.bind(null,n,e),c)}function Ky(e,n,s){typeof n!="function"&&h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null;return Zy(ut,zr,L_.bind(null,n,e),c)}function pF(e,n){}var eb=pF;function pS(e,n){var s=Ws(),c=n===void 0?null:n;return s.memoizedState=[e,c],e}function tb(e,n){var s=xo(),c=n===void 0?null:n,p=s.memoizedState;if(p!==null&&c!==null){var b=p[1];if(tS(c,b))return p[0]}return s.memoizedState=[e,c],e}function hS(e,n){var s=Ws(),c=n===void 0?null:n,p=e();return s.memoizedState=[p,c],p}function nb(e,n){var s=xo(),c=n===void 0?null:n,p=s.memoizedState;if(p!==null&&c!==null){var b=p[1];if(tS(c,b))return p[0]}var E=e();return s.memoizedState=[E,c],E}function vS(e){var n=Ws();return n.memoizedState=e,e}function P_(e){var n=xo(),s=$r,c=s.memoizedState;return V_(n,c,e)}function F_(e){var n=xo();if($r===null)return n.memoizedState=e,e;var s=$r.memoizedState;return V_(n,s,e)}function V_(e,n,s){var c=!jg(Dd);if(c){if(!at(s,n)){var p=kg();Sn.lanes=Dt(Sn.lanes,p),Qv(p),e.baseState=!0}return n}else return e.baseState&&(e.baseState=!1,Bv()),e.memoizedState=s,s}function hF(e,n,s){var c=gi();nr(Ex(c,Xo)),e(!0);var p=jv.transition;jv.transition={};var b=jv.transition;jv.transition._updatedFibers=new Set;try{e(!1),n()}finally{if(nr(c),jv.transition=p,p===null&&b._updatedFibers){var E=b._updatedFibers.size;E>10&&v("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."),b._updatedFibers.clear()}}}function mS(){var e=Xy(!1),n=e[0],s=e[1],c=hF.bind(null,s),p=Ws();return p.memoizedState=c,[n,c]}function B_(){var e=sS(),n=e[0],s=xo(),c=s.memoizedState;return[n,c]}function z_(){var e=lS(),n=e[0],s=xo(),c=s.memoizedState;return[n,c]}var $_=!1;function vF(){return $_}function gS(){var e=Ws(),n=Sb(),s=n.identifierPrefix,c;if(sa()){var p=IP();c=":"+s+"R"+p;var b=Dv++;b>0&&(c+="H"+b.toString(32)),c+=":"}else{var E=cF++;c=":"+s+"r"+E.toString(32)+":"}return e.memoizedState=c,c}function rb(){var e=xo(),n=e.memoizedState;return n}function mF(e,n,s){typeof arguments[3]=="function"&&h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=dc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(U_(e))H_(n,p);else{var b=s_(e,n,p,c);if(b!==null){var E=ei();Xr(b,e,c,E),G_(b,n,c)}}W_(e,c)}function gF(e,n,s){typeof arguments[3]=="function"&&h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=dc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(U_(e))H_(n,p);else{var b=e.alternate;if(e.lanes===_e&&(b===null||b.lanes===_e)){var E=n.lastRenderedReducer;if(E!==null){var I;I=Je.current,Je.current=ns;try{var O=n.lastRenderedState,B=E(O,s);if(p.hasEagerState=!0,p.eagerState=B,at(B,O)){ZP(e,n,p,c);return}}catch{}finally{Je.current=I}}}var H=s_(e,n,p,c);if(H!==null){var te=ei();Xr(H,e,c,te),G_(H,n,c)}}W_(e,c)}function U_(e){var n=e.alternate;return e===Sn||n!==null&&n===Sn}function H_(e,n){Ov=Gy=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function G_(e,n,s){if($h(s)){var c=n.lanes;c=Pf(c,e.pendingLanes);var p=Dt(c,s);n.lanes=p,Uh(e,p)}}function W_(e,n,s){Cf(e,n)}var ab={readContext:Dr,useCallback:Pa,useContext:Pa,useEffect:Pa,useImperativeHandle:Pa,useInsertionEffect:Pa,useLayoutEffect:Pa,useMemo:Pa,useReducer:Pa,useRef:Pa,useState:Pa,useDebugValue:Pa,useDeferredValue:Pa,useTransition:Pa,useMutableSource:Pa,useSyncExternalStore:Pa,useId:Pa,unstable_isNewReconciler:Oe},X_=null,Y_=null,Z_=null,q_=null,Xs=null,ns=null,ib=null;{var yS=function(){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().")},jt=function(){h("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};X_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",pn(),Rp(n),pS(e,n)},useContext:function(e){return Ne="useContext",pn(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",pn(),Rp(n),qy(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",pn(),Rp(s),fS(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",pn(),Rp(n),cS(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",pn(),Rp(n),dS(e,n)},useMemo:function(e,n){Ne="useMemo",pn(),Rp(n);var s=Je.current;Je.current=Xs;try{return hS(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",pn();var c=Je.current;Je.current=Xs;try{return rS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",pn(),uS(e)},useState:function(e){Ne="useState",pn();var n=Je.current;Je.current=Xs;try{return Xy(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",pn(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",pn(),vS(e)},useTransition:function(){return Ne="useTransition",pn(),mS()},useMutableSource:function(e,n,s){return Ne="useMutableSource",pn(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",pn(),oS(e,n,s)},useId:function(){return Ne="useId",pn(),gS()},unstable_isNewReconciler:Oe},Y_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",We(),pS(e,n)},useContext:function(e){return Ne="useContext",We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",We(),qy(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",We(),fS(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",We(),cS(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",We(),dS(e,n)},useMemo:function(e,n){Ne="useMemo",We();var s=Je.current;Je.current=Xs;try{return hS(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",We();var c=Je.current;Je.current=Xs;try{return rS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",We(),uS(e)},useState:function(e){Ne="useState",We();var n=Je.current;Je.current=Xs;try{return Xy(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",We(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",We(),vS(e)},useTransition:function(){return Ne="useTransition",We(),mS()},useMutableSource:function(e,n,s){return Ne="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",We(),oS(e,n,s)},useId:function(){return Ne="useId",We(),gS()},unstable_isNewReconciler:Oe},Z_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",We(),tb(e,n)},useContext:function(e){return Ne="useContext",We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",We();var s=Je.current;Je.current=ns;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",We();var c=Je.current;Je.current=ns;try{return aS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",We(),Yy()},useState:function(e){Ne="useState",We();var n=Je.current;Je.current=ns;try{return sS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",We(),P_(e)},useTransition:function(){return Ne="useTransition",We(),B_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",We(),Wy(e,n)},useId:function(){return Ne="useId",We(),rb()},unstable_isNewReconciler:Oe},q_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",We(),tb(e,n)},useContext:function(e){return Ne="useContext",We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",We();var s=Je.current;Je.current=ib;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",We();var c=Je.current;Je.current=ib;try{return iS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",We(),Yy()},useState:function(e){Ne="useState",We();var n=Je.current;Je.current=ib;try{return lS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",We(),F_(e)},useTransition:function(){return Ne="useTransition",We(),z_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",We(),Wy(e,n)},useId:function(){return Ne="useId",We(),rb()},unstable_isNewReconciler:Oe},Xs={readContext:function(e){return yS(),Dr(e)},useCallback:function(e,n){return Ne="useCallback",jt(),pn(),pS(e,n)},useContext:function(e){return Ne="useContext",jt(),pn(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",jt(),pn(),qy(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",jt(),pn(),fS(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",jt(),pn(),cS(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",jt(),pn(),dS(e,n)},useMemo:function(e,n){Ne="useMemo",jt(),pn();var s=Je.current;Je.current=Xs;try{return hS(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",jt(),pn();var c=Je.current;Je.current=Xs;try{return rS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",jt(),pn(),uS(e)},useState:function(e){Ne="useState",jt(),pn();var n=Je.current;Je.current=Xs;try{return Xy(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",jt(),pn(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",jt(),pn(),vS(e)},useTransition:function(){return Ne="useTransition",jt(),pn(),mS()},useMutableSource:function(e,n,s){return Ne="useMutableSource",jt(),pn(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",jt(),pn(),oS(e,n,s)},useId:function(){return Ne="useId",jt(),pn(),gS()},unstable_isNewReconciler:Oe},ns={readContext:function(e){return yS(),Dr(e)},useCallback:function(e,n){return Ne="useCallback",jt(),We(),tb(e,n)},useContext:function(e){return Ne="useContext",jt(),We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",jt(),We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",jt(),We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",jt(),We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",jt(),We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",jt(),We();var s=Je.current;Je.current=ns;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",jt(),We();var c=Je.current;Je.current=ns;try{return aS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",jt(),We(),Yy()},useState:function(e){Ne="useState",jt(),We();var n=Je.current;Je.current=ns;try{return sS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",jt(),We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",jt(),We(),P_(e)},useTransition:function(){return Ne="useTransition",jt(),We(),B_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",jt(),We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",jt(),We(),Wy(e,n)},useId:function(){return Ne="useId",jt(),We(),rb()},unstable_isNewReconciler:Oe},ib={readContext:function(e){return yS(),Dr(e)},useCallback:function(e,n){return Ne="useCallback",jt(),We(),tb(e,n)},useContext:function(e){return Ne="useContext",jt(),We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",jt(),We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",jt(),We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",jt(),We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",jt(),We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",jt(),We();var s=Je.current;Je.current=ns;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",jt(),We();var c=Je.current;Je.current=ns;try{return iS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",jt(),We(),Yy()},useState:function(e){Ne="useState",jt(),We();var n=Je.current;Je.current=ns;try{return lS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",jt(),We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",jt(),We(),F_(e)},useTransition:function(){return Ne="useTransition",jt(),We(),z_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",jt(),We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",jt(),We(),Wy(e,n)},useId:function(){return Ne="useId",jt(),We(),rb()},unstable_isNewReconciler:Oe}}var sc=i.unstable_now,J_=0,ob=-1,Pv=-1,sb=-1,bS=!1,lb=!1;function Q_(){return bS}function yF(){lb=!0}function bF(){bS=!1,lb=!1}function xF(){bS=lb,lb=!1}function K_(){return J_}function eT(){J_=sc()}function xS(e){Pv=sc(),e.actualStartTime<0&&(e.actualStartTime=sc())}function tT(e){Pv=-1}function ub(e,n){if(Pv>=0){var s=sc()-Pv;e.actualDuration+=s,n&&(e.selfBaseDuration=s),Pv=-1}}function Ys(e){if(ob>=0){var n=sc()-ob;ob=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c.effectDuration+=n;return;case P:var p=s.stateNode;p.effectDuration+=n;return}s=s.return}}}function CS(e){if(sb>=0){var n=sc()-sb;sb=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c!==null&&(c.passiveEffectDuration+=n);return;case P:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=n);return}s=s.return}}}function Zs(){ob=sc()}function SS(){sb=sc()}function ES(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function kd(e,n){return{value:e,source:n,stack:cu(n),digest:null}}function wS(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function CF(e,n){return!0}function RS(e,n){try{var s=CF(e,n);if(s===!1)return;var c=n.value,p=n.source,b=n.stack,E=b!==null?b:"";if(c!=null&&c._suppressLogging){if(e.tag===C)return;console.error(c)}var I=p?It(p):null,O=I?"The above error occurred in the <"+I+"> component:":"The above error occurred in one of your React components:",B;if(e.tag===R)B=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
185
|
+
Incoming: %s`,Ne,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<n.length&&s<e.length;s++)if(!at(e[s],n[s]))return!1;return!0}function _p(e,n,s,c,p,b){Dd=b,Sn=n,bo=e!==null?e._debugHookTypes:null,oc=-1,eS=e!==null&&e.type!==n.type,n.memoizedState=null,n.updateQueue=null,n.lanes=_e,e!==null&&e.memoizedState!==null?Je.current=Z_:bo!==null?Je.current=Y_:Je.current=X_;var E=s(c,p);if(Ov){var N=0;do{if(Ov=!1,Dv=0,N>=dF)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");N+=1,eS=!1,$r=null,Ur=null,n.updateQueue=null,oc=-1,Je.current=q_,E=s(c,p)}while(Ov)}Je.current=ab,n._debugHookTypes=bo;var O=$r!==null&&$r.next!==null;if(Dd=_e,Sn=null,$r=null,Ur=null,Ne=null,bo=null,oc=-1,e!==null&&(e.flags&Fr)!==(n.flags&Fr)&&(e.mode&ft)!==gt&&h("Internal React error: Expected static flag was missing. Please notify the React team."),Gy=!1,O)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return E}function Tp(){var e=Dv!==0;return Dv=0,e}function N_(e,n,s){n.updateQueue=e.updateQueue,(n.mode&hi)!==gt?n.flags&=~(bl|fi|Ra|ut):n.flags&=~(Ra|ut),e.lanes=cd(e.lanes,s)}function I_(){if(Je.current=ab,Gy){for(var e=Sn.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Gy=!1}Dd=_e,Sn=null,$r=null,Ur=null,bo=null,oc=-1,Ne=null,$_=!1,Ov=!1,Dv=0}function Ws(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?Sn.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function xo(){var e;if($r===null){var n=Sn.alternate;n!==null?e=n.memoizedState:e=null}else e=$r.next;var s;if(Ur===null?s=Sn.memoizedState:s=Ur.next,s!==null)Ur=s,s=Ur.next,$r=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");$r=e;var c={memoizedState:$r.memoizedState,baseState:$r.baseState,baseQueue:$r.baseQueue,queue:$r.queue,next:null};Ur===null?Sn.memoizedState=Ur=c:Ur=Ur.next=c}return Ur}function A_(){return{lastEffect:null,stores:null}}function nS(e,n){return typeof n=="function"?n(e):n}function rS(e,n,s){var c=Ws(),p;s!==void 0?p=s(n):p=n,c.memoizedState=c.baseState=p;var b={pending:null,interleaved:null,lanes:_e,dispatch:null,lastRenderedReducer:e,lastRenderedState:p};c.queue=b;var E=b.dispatch=mF.bind(null,Sn,b);return[c.memoizedState,E]}function aS(e,n,s){var c=xo(),p=c.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var b=$r,E=b.baseQueue,N=p.pending;if(N!==null){if(E!==null){var O=E.next,B=N.next;E.next=B,N.next=O}b.baseQueue!==E&&h("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),b.baseQueue=E=N,p.pending=null}if(E!==null){var H=E.next,te=b.baseState,K=null,he=null,ve=null,Se=H;do{var Ke=Se.lane;if(Il(Dd,Ke)){if(ve!==null){var pt={lane:lr,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ve=ve.next=pt}if(Se.hasEagerState)te=Se.eagerState;else{var Wt=Se.action;te=e(te,Wt)}}else{var yt={lane:Ke,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ve===null?(he=ve=yt,K=te):ve=ve.next=yt,Sn.lanes=Dt(Sn.lanes,Ke),Qv(Ke)}Se=Se.next}while(Se!==null&&Se!==H);ve===null?K=te:ve.next=he,at(te,c.memoizedState)||Bv(),c.memoizedState=te,c.baseState=K,c.baseQueue=ve,p.lastRenderedState=te}var $t=p.interleaved;if($t!==null){var se=$t;do{var Ee=se.lane;Sn.lanes=Dt(Sn.lanes,Ee),Qv(Ee),se=se.next}while(se!==$t)}else E===null&&(p.lanes=_e);var le=p.dispatch;return[c.memoizedState,le]}function iS(e,n,s){var c=xo(),p=c.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var b=p.dispatch,E=p.pending,N=c.memoizedState;if(E!==null){p.pending=null;var O=E.next,B=O;do{var H=B.action;N=e(N,H),B=B.next}while(B!==O);at(N,c.memoizedState)||Bv(),c.memoizedState=N,c.baseQueue===null&&(c.baseState=N),p.lastRenderedState=N}return[N,b]}function $q(e,n,s){}function Uq(e,n,s){}function oS(e,n,s){var c=Sn,p=Ws(),b,E=sa();if(E){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");b=s(),wp||b!==s()&&(h("The result of getServerSnapshot should be cached to avoid an infinite loop"),wp=!0)}else{if(b=n(),!wp){var N=n();at(b,N)||(h("The result of getSnapshot should be cached to avoid an infinite loop"),wp=!0)}var O=Sb();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ud(O,Dd)||j_(c,n,b)}p.memoizedState=b;var B={value:b,getSnapshot:n};return p.queue=B,qy(D_.bind(null,c,B,e),[e]),c.flags|=Ra,kv(Br|la,O_.bind(null,c,B,b,n),void 0,null),b}function Wy(e,n,s){var c=Sn,p=xo(),b=n();if(!wp){var E=n();at(b,E)||(h("The result of getSnapshot should be cached to avoid an infinite loop"),wp=!0)}var N=p.memoizedState,O=!at(N,b);O&&(p.memoizedState=b,Bv());var B=p.queue;if(Lv(D_.bind(null,c,B,e),[e]),B.getSnapshot!==n||O||Ur!==null&&Ur.memoizedState.tag&Br){c.flags|=Ra,kv(Br|la,O_.bind(null,c,B,b,n),void 0,null);var H=Sb();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ud(H,Dd)||j_(c,n,b)}return b}function j_(e,n,s){e.flags|=yl;var c={getSnapshot:n,value:s},p=Sn.updateQueue;if(p===null)p=A_(),Sn.updateQueue=p,p.stores=[c];else{var b=p.stores;b===null?p.stores=[c]:b.push(c)}}function O_(e,n,s,c){n.value=s,n.getSnapshot=c,k_(n)&&M_(e)}function D_(e,n,s){var c=function(){k_(n)&&M_(e)};return s(c)}function k_(e){var n=e.getSnapshot,s=e.value;try{var c=n();return!at(s,c)}catch{return!0}}function M_(e){var n=Ei(e,xt);n!==null&&Xr(n,e,xt,Mn)}function Xy(e){var n=Ws();typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e;var s={pending:null,interleaved:null,lanes:_e,dispatch:null,lastRenderedReducer:nS,lastRenderedState:e};n.queue=s;var c=s.dispatch=gF.bind(null,Sn,s);return[n.memoizedState,c]}function sS(e){return aS(nS)}function lS(e){return iS(nS)}function kv(e,n,s,c){var p={tag:e,create:n,destroy:s,deps:c,next:null},b=Sn.updateQueue;if(b===null)b=A_(),Sn.updateQueue=b,b.lastEffect=p.next=p;else{var E=b.lastEffect;if(E===null)b.lastEffect=p.next=p;else{var N=E.next;E.next=p,p.next=N,b.lastEffect=p}}return p}function uS(e){var n=Ws();{var s={current:e};return n.memoizedState=s,s}}function Yy(e){var n=xo();return n.memoizedState}function Mv(e,n,s,c){var p=Ws(),b=c===void 0?null:c;Sn.flags|=e,p.memoizedState=kv(Br|n,s,void 0,b)}function Zy(e,n,s,c){var p=xo(),b=c===void 0?null:c,E=void 0;if($r!==null){var N=$r.memoizedState;if(E=N.destroy,b!==null){var O=N.deps;if(tS(b,O)){p.memoizedState=kv(n,s,E,b);return}}}Sn.flags|=e,p.memoizedState=kv(Br|n,s,E,b)}function qy(e,n){return(Sn.mode&hi)!==gt?Mv(bl|Ra|Is,la,e,n):Mv(Ra|Is,la,e,n)}function Lv(e,n){return Zy(Ra,la,e,n)}function cS(e,n){return Mv(ut,Gs,e,n)}function Jy(e,n){return Zy(ut,Gs,e,n)}function dS(e,n){var s=ut;return s|=di,(Sn.mode&hi)!==gt&&(s|=fi),Mv(s,zr,e,n)}function Qy(e,n){return Zy(ut,zr,e,n)}function L_(e,n){if(typeof n=="function"){var s=n,c=e();return s(c),function(){s(null)}}else if(n!=null){var p=n;p.hasOwnProperty("current")||h("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(p).join(", ")+"}");var b=e();return p.current=b,function(){p.current=null}}}function fS(e,n,s){typeof n!="function"&&h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null,p=ut;return p|=di,(Sn.mode&hi)!==gt&&(p|=fi),Mv(p,zr,L_.bind(null,n,e),c)}function Ky(e,n,s){typeof n!="function"&&h("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null");var c=s!=null?s.concat([e]):null;return Zy(ut,zr,L_.bind(null,n,e),c)}function pF(e,n){}var eb=pF;function pS(e,n){var s=Ws(),c=n===void 0?null:n;return s.memoizedState=[e,c],e}function tb(e,n){var s=xo(),c=n===void 0?null:n,p=s.memoizedState;if(p!==null&&c!==null){var b=p[1];if(tS(c,b))return p[0]}return s.memoizedState=[e,c],e}function hS(e,n){var s=Ws(),c=n===void 0?null:n,p=e();return s.memoizedState=[p,c],p}function nb(e,n){var s=xo(),c=n===void 0?null:n,p=s.memoizedState;if(p!==null&&c!==null){var b=p[1];if(tS(c,b))return p[0]}var E=e();return s.memoizedState=[E,c],E}function vS(e){var n=Ws();return n.memoizedState=e,e}function P_(e){var n=xo(),s=$r,c=s.memoizedState;return V_(n,c,e)}function F_(e){var n=xo();if($r===null)return n.memoizedState=e,e;var s=$r.memoizedState;return V_(n,s,e)}function V_(e,n,s){var c=!jg(Dd);if(c){if(!at(s,n)){var p=kg();Sn.lanes=Dt(Sn.lanes,p),Qv(p),e.baseState=!0}return n}else return e.baseState&&(e.baseState=!1,Bv()),e.memoizedState=s,s}function hF(e,n,s){var c=gi();nr(Ex(c,Xo)),e(!0);var p=jv.transition;jv.transition={};var b=jv.transition;jv.transition._updatedFibers=new Set;try{e(!1),n()}finally{if(nr(c),jv.transition=p,p===null&&b._updatedFibers){var E=b._updatedFibers.size;E>10&&v("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."),b._updatedFibers.clear()}}}function mS(){var e=Xy(!1),n=e[0],s=e[1],c=hF.bind(null,s),p=Ws();return p.memoizedState=c,[n,c]}function B_(){var e=sS(),n=e[0],s=xo(),c=s.memoizedState;return[n,c]}function z_(){var e=lS(),n=e[0],s=xo(),c=s.memoizedState;return[n,c]}var $_=!1;function vF(){return $_}function gS(){var e=Ws(),n=Sb(),s=n.identifierPrefix,c;if(sa()){var p=IP();c=":"+s+"R"+p;var b=Dv++;b>0&&(c+="H"+b.toString(32)),c+=":"}else{var E=cF++;c=":"+s+"r"+E.toString(32)+":"}return e.memoizedState=c,c}function rb(){var e=xo(),n=e.memoizedState;return n}function mF(e,n,s){typeof arguments[3]=="function"&&h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=dc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(U_(e))H_(n,p);else{var b=s_(e,n,p,c);if(b!==null){var E=ei();Xr(b,e,c,E),G_(b,n,c)}}W_(e,c)}function gF(e,n,s){typeof arguments[3]=="function"&&h("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var c=dc(e),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(U_(e))H_(n,p);else{var b=e.alternate;if(e.lanes===_e&&(b===null||b.lanes===_e)){var E=n.lastRenderedReducer;if(E!==null){var N;N=Je.current,Je.current=ns;try{var O=n.lastRenderedState,B=E(O,s);if(p.hasEagerState=!0,p.eagerState=B,at(B,O)){ZP(e,n,p,c);return}}catch{}finally{Je.current=N}}}var H=s_(e,n,p,c);if(H!==null){var te=ei();Xr(H,e,c,te),G_(H,n,c)}}W_(e,c)}function U_(e){var n=e.alternate;return e===Sn||n!==null&&n===Sn}function H_(e,n){Ov=Gy=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function G_(e,n,s){if($h(s)){var c=n.lanes;c=Pf(c,e.pendingLanes);var p=Dt(c,s);n.lanes=p,Uh(e,p)}}function W_(e,n,s){Cf(e,n)}var ab={readContext:Dr,useCallback:Pa,useContext:Pa,useEffect:Pa,useImperativeHandle:Pa,useInsertionEffect:Pa,useLayoutEffect:Pa,useMemo:Pa,useReducer:Pa,useRef:Pa,useState:Pa,useDebugValue:Pa,useDeferredValue:Pa,useTransition:Pa,useMutableSource:Pa,useSyncExternalStore:Pa,useId:Pa,unstable_isNewReconciler:Oe},X_=null,Y_=null,Z_=null,q_=null,Xs=null,ns=null,ib=null;{var yS=function(){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().")},jt=function(){h("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};X_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",pn(),Rp(n),pS(e,n)},useContext:function(e){return Ne="useContext",pn(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",pn(),Rp(n),qy(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",pn(),Rp(s),fS(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",pn(),Rp(n),cS(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",pn(),Rp(n),dS(e,n)},useMemo:function(e,n){Ne="useMemo",pn(),Rp(n);var s=Je.current;Je.current=Xs;try{return hS(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",pn();var c=Je.current;Je.current=Xs;try{return rS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",pn(),uS(e)},useState:function(e){Ne="useState",pn();var n=Je.current;Je.current=Xs;try{return Xy(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",pn(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",pn(),vS(e)},useTransition:function(){return Ne="useTransition",pn(),mS()},useMutableSource:function(e,n,s){return Ne="useMutableSource",pn(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",pn(),oS(e,n,s)},useId:function(){return Ne="useId",pn(),gS()},unstable_isNewReconciler:Oe},Y_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",We(),pS(e,n)},useContext:function(e){return Ne="useContext",We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",We(),qy(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",We(),fS(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",We(),cS(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",We(),dS(e,n)},useMemo:function(e,n){Ne="useMemo",We();var s=Je.current;Je.current=Xs;try{return hS(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",We();var c=Je.current;Je.current=Xs;try{return rS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",We(),uS(e)},useState:function(e){Ne="useState",We();var n=Je.current;Je.current=Xs;try{return Xy(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",We(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",We(),vS(e)},useTransition:function(){return Ne="useTransition",We(),mS()},useMutableSource:function(e,n,s){return Ne="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",We(),oS(e,n,s)},useId:function(){return Ne="useId",We(),gS()},unstable_isNewReconciler:Oe},Z_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",We(),tb(e,n)},useContext:function(e){return Ne="useContext",We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",We();var s=Je.current;Je.current=ns;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",We();var c=Je.current;Je.current=ns;try{return aS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",We(),Yy()},useState:function(e){Ne="useState",We();var n=Je.current;Je.current=ns;try{return sS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",We(),P_(e)},useTransition:function(){return Ne="useTransition",We(),B_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",We(),Wy(e,n)},useId:function(){return Ne="useId",We(),rb()},unstable_isNewReconciler:Oe},q_={readContext:function(e){return Dr(e)},useCallback:function(e,n){return Ne="useCallback",We(),tb(e,n)},useContext:function(e){return Ne="useContext",We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",We();var s=Je.current;Je.current=ib;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",We();var c=Je.current;Je.current=ib;try{return iS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",We(),Yy()},useState:function(e){Ne="useState",We();var n=Je.current;Je.current=ib;try{return lS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",We(),F_(e)},useTransition:function(){return Ne="useTransition",We(),z_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",We(),Wy(e,n)},useId:function(){return Ne="useId",We(),rb()},unstable_isNewReconciler:Oe},Xs={readContext:function(e){return yS(),Dr(e)},useCallback:function(e,n){return Ne="useCallback",jt(),pn(),pS(e,n)},useContext:function(e){return Ne="useContext",jt(),pn(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",jt(),pn(),qy(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",jt(),pn(),fS(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",jt(),pn(),cS(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",jt(),pn(),dS(e,n)},useMemo:function(e,n){Ne="useMemo",jt(),pn();var s=Je.current;Je.current=Xs;try{return hS(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",jt(),pn();var c=Je.current;Je.current=Xs;try{return rS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",jt(),pn(),uS(e)},useState:function(e){Ne="useState",jt(),pn();var n=Je.current;Je.current=Xs;try{return Xy(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",jt(),pn(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",jt(),pn(),vS(e)},useTransition:function(){return Ne="useTransition",jt(),pn(),mS()},useMutableSource:function(e,n,s){return Ne="useMutableSource",jt(),pn(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",jt(),pn(),oS(e,n,s)},useId:function(){return Ne="useId",jt(),pn(),gS()},unstable_isNewReconciler:Oe},ns={readContext:function(e){return yS(),Dr(e)},useCallback:function(e,n){return Ne="useCallback",jt(),We(),tb(e,n)},useContext:function(e){return Ne="useContext",jt(),We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",jt(),We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",jt(),We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",jt(),We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",jt(),We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",jt(),We();var s=Je.current;Je.current=ns;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",jt(),We();var c=Je.current;Je.current=ns;try{return aS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",jt(),We(),Yy()},useState:function(e){Ne="useState",jt(),We();var n=Je.current;Je.current=ns;try{return sS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",jt(),We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",jt(),We(),P_(e)},useTransition:function(){return Ne="useTransition",jt(),We(),B_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",jt(),We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",jt(),We(),Wy(e,n)},useId:function(){return Ne="useId",jt(),We(),rb()},unstable_isNewReconciler:Oe},ib={readContext:function(e){return yS(),Dr(e)},useCallback:function(e,n){return Ne="useCallback",jt(),We(),tb(e,n)},useContext:function(e){return Ne="useContext",jt(),We(),Dr(e)},useEffect:function(e,n){return Ne="useEffect",jt(),We(),Lv(e,n)},useImperativeHandle:function(e,n,s){return Ne="useImperativeHandle",jt(),We(),Ky(e,n,s)},useInsertionEffect:function(e,n){return Ne="useInsertionEffect",jt(),We(),Jy(e,n)},useLayoutEffect:function(e,n){return Ne="useLayoutEffect",jt(),We(),Qy(e,n)},useMemo:function(e,n){Ne="useMemo",jt(),We();var s=Je.current;Je.current=ns;try{return nb(e,n)}finally{Je.current=s}},useReducer:function(e,n,s){Ne="useReducer",jt(),We();var c=Je.current;Je.current=ns;try{return iS(e,n,s)}finally{Je.current=c}},useRef:function(e){return Ne="useRef",jt(),We(),Yy()},useState:function(e){Ne="useState",jt(),We();var n=Je.current;Je.current=ns;try{return lS(e)}finally{Je.current=n}},useDebugValue:function(e,n){return Ne="useDebugValue",jt(),We(),eb()},useDeferredValue:function(e){return Ne="useDeferredValue",jt(),We(),F_(e)},useTransition:function(){return Ne="useTransition",jt(),We(),z_()},useMutableSource:function(e,n,s){return Ne="useMutableSource",jt(),We(),void 0},useSyncExternalStore:function(e,n,s){return Ne="useSyncExternalStore",jt(),We(),Wy(e,n)},useId:function(){return Ne="useId",jt(),We(),rb()},unstable_isNewReconciler:Oe}}var sc=i.unstable_now,J_=0,ob=-1,Pv=-1,sb=-1,bS=!1,lb=!1;function Q_(){return bS}function yF(){lb=!0}function bF(){bS=!1,lb=!1}function xF(){bS=lb,lb=!1}function K_(){return J_}function eT(){J_=sc()}function xS(e){Pv=sc(),e.actualStartTime<0&&(e.actualStartTime=sc())}function tT(e){Pv=-1}function ub(e,n){if(Pv>=0){var s=sc()-Pv;e.actualDuration+=s,n&&(e.selfBaseDuration=s),Pv=-1}}function Ys(e){if(ob>=0){var n=sc()-ob;ob=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c.effectDuration+=n;return;case P:var p=s.stateNode;p.effectDuration+=n;return}s=s.return}}}function CS(e){if(sb>=0){var n=sc()-sb;sb=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var c=s.stateNode;c!==null&&(c.passiveEffectDuration+=n);return;case P:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=n);return}s=s.return}}}function Zs(){ob=sc()}function SS(){sb=sc()}function ES(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function kd(e,n){return{value:e,source:n,stack:cu(n),digest:null}}function wS(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function CF(e,n){return!0}function RS(e,n){try{var s=CF(e,n);if(s===!1)return;var c=n.value,p=n.source,b=n.stack,E=b!==null?b:"";if(c!=null&&c._suppressLogging){if(e.tag===C)return;console.error(c)}var N=p?It(p):null,O=N?"The above error occurred in the <"+N+"> component:":"The above error occurred in one of your React components:",B;if(e.tag===R)B=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
186
186
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var H=It(e)||"Anonymous";B="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
|
-
`+(""+B);console.error(te)}catch(K){setTimeout(function(){throw K})}}var SF=typeof WeakMap=="function"?WeakMap:Map;function nT(e,n,s){var c=$l(Mn,s);c.tag=RC,c.payload={element:null};var p=n.value;return c.callback=function(){hB(p),RS(e,n)},c}function _S(e,n,s){var c=$l(Mn,s);c.tag=RC;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var b=n.value;c.payload=function(){return p(b)},c.callback=function(){pN(e),RS(e,n)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){pN(e),RS(e,n),typeof p!="function"&&fB(this);var O=n.value,B=n.stack;this.componentDidCatch(O,{componentStack:B!==null?B:""}),typeof p!="function"&&(Da(e.lanes,xt)||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 rT(e,n,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new SF,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=vB.bind(null,e,n,s);qa&&Kv(e,s),n.then(b,b)}}function EF(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 wF(e,n){var s=e.tag;if((e.mode&ft)===gt&&(s===x||s===U||s===Y)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function aT(e){var n=e;do{if(n.tag===z&&lF(n))return n;n=n.return}while(n!==null);return null}function iT(e,n,s,c,p){if((e.mode&ft)===gt){if(e===n)e.flags|=Pr;else{if(e.flags|=At,s.flags|=hf,s.flags&=~(gg|Ns),s.tag===C){var b=s.alternate;if(b===null)s.tag=ie;else{var E=$l(Mn,xt);E.tag=Dy,rc(s,E,xt)}}s.lanes=Dt(s.lanes,xt)}return e}return e.flags|=Pr,e.lanes=p,e}function RF(e,n,s,c,p){if(s.flags|=Ns,qa&&Kv(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var b=c;wF(s),sa()&&s.mode&ft&&Z1();var E=aT(n);if(E!==null){E.flags&=~aa,iT(E,n,s,e,p),E.mode&ft&&rT(e,b,p),EF(E,e,b);return}else{if(!zh(p)){rT(e,b,p),iE();return}var I=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=I}}else if(sa()&&s.mode&ft){Z1();var O=aT(n);if(O!==null){(O.flags&Pr)===mt&&(O.flags|=aa),iT(O,n,s,e,p),yC(kd(c,s));return}}c=kd(c,s),aB(c);var B=n;do{switch(B.tag){case R:{var H=c;B.flags|=Pr;var te=ku(p);B.lanes=Dt(B.lanes,te);var K=nT(B,H,te);NC(B,K);return}case C:var he=c,ve=B.type,Se=B.stateNode;if((B.flags&At)===mt&&(typeof ve.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&!aN(Se))){B.flags|=Pr;var Ke=ku(p);B.lanes=Dt(B.lanes,Ke);var yt=_S(B,he,Ke);NC(B,yt);return}break}B=B.return}while(B!==null)}function _F(){return null}var Fv=l.ReactCurrentOwner,rs=!1,TS,Vv,NS,IS,AS,Md,jS,cb;TS={},Vv={},NS={},IS={},AS={},Md=!1,jS={},cb={};function Qa(e,n,s,c){e===null?n.child=E_(n,null,s,c):n.child=xp(n,e.child,s,c)}function TF(e,n,s,c){n.child=xp(n,e.child,null,c),n.child=xp(n,null,s,c)}function oT(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,I=n.ref,O,B;bp(n,p),_u(n);{if(Fv.current=n,Lr(!0),O=_p(e,n,E,c,I,p),B=Tp(),n.mode&er){kn(!0);try{O=_p(e,n,E,c,I,p),B=Tp()}finally{kn(!1)}}Lr(!1)}return Cl(),e!==null&&!rs?(N_(e,n,p),Ul(e,n,p)):(sa()&&B&&fC(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function sT(e,n,s,c,p){if(e===null){var b=s.type;if(OB(b)&&s.compare===null&&s.defaultProps===void 0){var E=b;return E=Mp(b),n.tag=Y,n.type=E,kS(n,b),lT(e,n,E,c,p)}{var I=b.propTypes;I&&Jo(I,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 B=s.type,H=B.propTypes;H&&Jo(H,c,"prop",Yt(B))}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 Se=Bd(te,c);return Se.ref=n.ref,Se.return=n,n.child=Se,Se}function lT(e,n,s,c,p){if(n.type!==n.elementType){var b=n.elementType;if(b.$$typeof===vt){var E=b,I=E._payload,O=E._init;try{b=O(I)}catch{b=null}var B=b&&b.propTypes;B&&Jo(B,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&hf)!==mt&&(rs=!0);else return n.lanes=e.lanes,Ul(e,n,p)}return OS(e,n,s,c,p)}function uT(e,n,s){var c=n.pendingProps,p=c.children,b=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Z)if((n.mode&ft)===gt){var E={baseLanes:_e,cachePool:null,transitions:null};n.memoizedState=E,Eb(n,s)}else if(Da(s,Ja)){var te={baseLanes:_e,cachePool:null,transitions:null};n.memoizedState=te;var K=b!==null?b.baseLanes:s;Eb(n,K)}else{var I=null,O;if(b!==null){var B=b.baseLanes;O=Dt(B,s)}else O=s;n.lanes=n.childLanes=Ja;var H={baseLanes:O,cachePool:I,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 NF(e,n,s){var c=n.pendingProps;return Qa(e,n,c,s),n.child}function IF(e,n,s){var c=n.pendingProps.children;return Qa(e,n,c,s),n.child}function AF(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 cT(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 I=pp(n,s,!0);E=hp(n,I)}var O,B;bp(n,p),_u(n);{if(Fv.current=n,Lr(!0),O=_p(e,n,s,c,E,p),B=Tp(),n.mode&er){kn(!0);try{O=_p(e,n,s,c,E,p),B=Tp()}finally{kn(!1)}}Lr(!1)}return Cl(),e!==null&&!rs?(N_(e,n,p),Ul(e,n,p)):(sa()&&B&&fC(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function dT(e,n,s,c,p){{switch(XB(n)){case!1:{var b=n.stateNode,E=n.type,I=new E(n.memoizedProps,b.context),O=I.state;b.updater.enqueueSetState(b,O,null);break}case!0:{n.flags|=At,n.flags|=Pr;var B=new Error("Simulated error coming from DevTools"),H=ku(p);n.lanes=Dt(n.lanes,H);var te=_S(n,kd(B,n),H);NC(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,bp(n,p);var ve=n.stateNode,Se;ve===null?(fb(e,n),y_(n,s,c),BC(n,s,c,p),Se=!0):e===null?Se=nF(n,s,c,p):Se=rF(e,n,s,c,p);var Ke=DS(e,n,s,Se,he,p);{var yt=n.stateNode;Se&&yt.props!==c&&(Md||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"),Md=!0)}return Ke}function DS(e,n,s,c,p,b){cT(e,n);var E=(n.flags&At)!==mt;if(!c&&!E)return p&&G1(n,s,!1),Ul(e,n,b);var I=n.stateNode;Fv.current=n;var O;if(E&&typeof s.getDerivedStateFromError!="function")O=null,tT();else{_u(n);{if(Lr(!0),O=I.render(),n.mode&er){kn(!0);try{I.render()}finally{kn(!1)}}Lr(!1)}Cl()}return n.flags|=$i,e!==null&&E?TF(e,n,O,b):Qa(e,n,O,b),n.memoizedState=I.state,p&&G1(n,s,!0),n.child}function fT(e){var n=e.stateNode;n.pendingContext?U1(e,n.pendingContext,n.pendingContext!==n.context):n.context&&U1(e,n.context,!1),WC(e,n.containerInfo)}function jF(e,n,s){if(fT(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;c_(e,n),Py(n,c,null,s);var E=n.memoizedState;n.stateNode;var I=E.element;if(p.isDehydrated){var O={element:I,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},B=n.updateQueue;if(B.baseState=O,n.memoizedState=O,n.flags&aa){var H=kd(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 pT(e,n,I,s,H)}else if(I!==b){var te=kd(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n);return pT(e,n,I,s,te)}else{MP(n);var K=E_(n,null,I,s);n.child=K;for(var he=K;he;)he.flags=he.flags&~Nn|oo,he=he.sibling}}else{if(gp(),I===b)return Ul(e,n,s);Qa(e,n,I,s)}return n.child}function pT(e,n,s,c,p){return gp(),yC(p),n.flags|=aa,Qa(e,n,s,c),n.child}function OF(e,n,s){R_(n),e===null&&gC(n);var c=n.type,p=n.pendingProps,b=e!==null?e.memoizedProps:null,E=p.children,I=Qx(c,p);return I?E=null:b!==null&&Qx(c,b)&&(n.flags|=ci),cT(e,n),Qa(e,n,E,s),n.child}function DF(e,n){return e===null&&gC(n),null}function kF(e,n,s,c){fb(e,n);var p=n.pendingProps,b=s,E=b._payload,I=b._init,O=I(E);n.type=O;var B=n.tag=DB(O),H=es(O,p),te;switch(B){case x:return kS(n,O),n.type=O=Mp(O),te=OS(null,n,O,H,c),te;case C:return n.type=O=cE(O),te=dT(null,n,O,H,c),te;case U:return n.type=O=dE(O),te=oT(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=sT(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 MF(e,n,s,c,p){fb(e,n),n.tag=C;var b;return Hs(s)?(b=!0,Sy(n)):b=!1,bp(n,p),y_(n,s,c),BC(n,s,c,p),DS(null,n,s,!0,b,p)}function LF(e,n,s,c){fb(e,n);var p=n.pendingProps,b;{var E=pp(n,s,!1);b=hp(n,E)}bp(n,c);var I,O;_u(n);{if(s.prototype&&typeof s.prototype.render=="function"){var B=Yt(s)||"Unknown";TS[B]||(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.",B,B),TS[B]=!0)}n.mode&er&&Ko.recordLegacyContextWarning(n,null),Lr(!0),Fv.current=n,I=_p(null,n,s,p,b,c),O=Tp(),Lr(!1)}if(Cl(),n.flags|=$i,typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){var H=Yt(s)||"Unknown";Vv[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),Vv[H]=!0)}if(typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){{var te=Yt(s)||"Unknown";Vv[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),Vv[te]=!0)}n.tag=C,n.memoizedState=null,n.updateQueue=null;var K=!1;return Hs(s)?(K=!0,Sy(n)):K=!1,n.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,TC(n),g_(n,I),BC(n,s,p,c),DS(null,n,s,!0,K,c)}else{if(n.tag=x,n.mode&er){kn(!0);try{I=_p(null,n,s,p,b,c),O=Tp()}finally{kn(!1)}}return sa()&&O&&fC(n),Qa(null,n,I,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
|
+
`+(""+B);console.error(te)}catch(K){setTimeout(function(){throw K})}}var SF=typeof WeakMap=="function"?WeakMap:Map;function nT(e,n,s){var c=$l(Mn,s);c.tag=RC,c.payload={element:null};var p=n.value;return c.callback=function(){hB(p),RS(e,n)},c}function _S(e,n,s){var c=$l(Mn,s);c.tag=RC;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var b=n.value;c.payload=function(){return p(b)},c.callback=function(){pN(e),RS(e,n)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){pN(e),RS(e,n),typeof p!="function"&&fB(this);var O=n.value,B=n.stack;this.componentDidCatch(O,{componentStack:B!==null?B:""}),typeof p!="function"&&(Da(e.lanes,xt)||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 rT(e,n,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new SF,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=vB.bind(null,e,n,s);qa&&Kv(e,s),n.then(b,b)}}function EF(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 wF(e,n){var s=e.tag;if((e.mode&ft)===gt&&(s===x||s===U||s===Y)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function aT(e){var n=e;do{if(n.tag===z&&lF(n))return n;n=n.return}while(n!==null);return null}function iT(e,n,s,c,p){if((e.mode&ft)===gt){if(e===n)e.flags|=Pr;else{if(e.flags|=At,s.flags|=hf,s.flags&=~(gg|Ns),s.tag===C){var b=s.alternate;if(b===null)s.tag=ie;else{var E=$l(Mn,xt);E.tag=Dy,rc(s,E,xt)}}s.lanes=Dt(s.lanes,xt)}return e}return e.flags|=Pr,e.lanes=p,e}function RF(e,n,s,c,p){if(s.flags|=Ns,qa&&Kv(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var b=c;wF(s),sa()&&s.mode&ft&&Z1();var E=aT(n);if(E!==null){E.flags&=~aa,iT(E,n,s,e,p),E.mode&ft&&rT(e,b,p),EF(E,e,b);return}else{if(!zh(p)){rT(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){Z1();var O=aT(n);if(O!==null){(O.flags&Pr)===mt&&(O.flags|=aa),iT(O,n,s,e,p),yC(kd(c,s));return}}c=kd(c,s),aB(c);var B=n;do{switch(B.tag){case R:{var H=c;B.flags|=Pr;var te=ku(p);B.lanes=Dt(B.lanes,te);var K=nT(B,H,te);NC(B,K);return}case C:var he=c,ve=B.type,Se=B.stateNode;if((B.flags&At)===mt&&(typeof ve.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&!aN(Se))){B.flags|=Pr;var Ke=ku(p);B.lanes=Dt(B.lanes,Ke);var yt=_S(B,he,Ke);NC(B,yt);return}break}B=B.return}while(B!==null)}function _F(){return null}var Fv=l.ReactCurrentOwner,rs=!1,TS,Vv,NS,IS,AS,Md,jS,cb;TS={},Vv={},NS={},IS={},AS={},Md=!1,jS={},cb={};function Qa(e,n,s,c){e===null?n.child=E_(n,null,s,c):n.child=xp(n,e.child,s,c)}function TF(e,n,s,c){n.child=xp(n,e.child,null,c),n.child=xp(n,null,s,c)}function oT(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,B;bp(n,p),_u(n);{if(Fv.current=n,Lr(!0),O=_p(e,n,E,c,N,p),B=Tp(),n.mode&er){kn(!0);try{O=_p(e,n,E,c,N,p),B=Tp()}finally{kn(!1)}}Lr(!1)}return Cl(),e!==null&&!rs?(N_(e,n,p),Ul(e,n,p)):(sa()&&B&&fC(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function sT(e,n,s,c,p){if(e===null){var b=s.type;if(OB(b)&&s.compare===null&&s.defaultProps===void 0){var E=b;return E=Mp(b),n.tag=Y,n.type=E,kS(n,b),lT(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 B=s.type,H=B.propTypes;H&&Jo(H,c,"prop",Yt(B))}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 Se=Bd(te,c);return Se.ref=n.ref,Se.return=n,n.child=Se,Se}function lT(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 B=b&&b.propTypes;B&&Jo(B,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&hf)!==mt&&(rs=!0);else return n.lanes=e.lanes,Ul(e,n,p)}return OS(e,n,s,c,p)}function uT(e,n,s){var c=n.pendingProps,p=c.children,b=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Z)if((n.mode&ft)===gt){var E={baseLanes:_e,cachePool:null,transitions:null};n.memoizedState=E,Eb(n,s)}else if(Da(s,Ja)){var te={baseLanes:_e,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 B=b.baseLanes;O=Dt(B,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 NF(e,n,s){var c=n.pendingProps;return Qa(e,n,c,s),n.child}function IF(e,n,s){var c=n.pendingProps.children;return Qa(e,n,c,s),n.child}function AF(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 cT(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=pp(n,s,!0);E=hp(n,N)}var O,B;bp(n,p),_u(n);{if(Fv.current=n,Lr(!0),O=_p(e,n,s,c,E,p),B=Tp(),n.mode&er){kn(!0);try{O=_p(e,n,s,c,E,p),B=Tp()}finally{kn(!1)}}Lr(!1)}return Cl(),e!==null&&!rs?(N_(e,n,p),Ul(e,n,p)):(sa()&&B&&fC(n),n.flags|=$i,Qa(e,n,O,p),n.child)}function dT(e,n,s,c,p){{switch(XB(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 B=new Error("Simulated error coming from DevTools"),H=ku(p);n.lanes=Dt(n.lanes,H);var te=_S(n,kd(B,n),H);NC(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,bp(n,p);var ve=n.stateNode,Se;ve===null?(fb(e,n),y_(n,s,c),BC(n,s,c,p),Se=!0):e===null?Se=nF(n,s,c,p):Se=rF(e,n,s,c,p);var Ke=DS(e,n,s,Se,he,p);{var yt=n.stateNode;Se&&yt.props!==c&&(Md||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"),Md=!0)}return Ke}function DS(e,n,s,c,p,b){cT(e,n);var E=(n.flags&At)!==mt;if(!c&&!E)return p&&G1(n,s,!1),Ul(e,n,b);var N=n.stateNode;Fv.current=n;var O;if(E&&typeof s.getDerivedStateFromError!="function")O=null,tT();else{_u(n);{if(Lr(!0),O=N.render(),n.mode&er){kn(!0);try{N.render()}finally{kn(!1)}}Lr(!1)}Cl()}return n.flags|=$i,e!==null&&E?TF(e,n,O,b):Qa(e,n,O,b),n.memoizedState=N.state,p&&G1(n,s,!0),n.child}function fT(e){var n=e.stateNode;n.pendingContext?U1(e,n.pendingContext,n.pendingContext!==n.context):n.context&&U1(e,n.context,!1),WC(e,n.containerInfo)}function jF(e,n,s){if(fT(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;c_(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},B=n.updateQueue;if(B.baseState=O,n.memoizedState=O,n.flags&aa){var H=kd(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 pT(e,n,N,s,H)}else if(N!==b){var te=kd(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n);return pT(e,n,N,s,te)}else{MP(n);var K=E_(n,null,N,s);n.child=K;for(var he=K;he;)he.flags=he.flags&~Nn|oo,he=he.sibling}}else{if(gp(),N===b)return Ul(e,n,s);Qa(e,n,N,s)}return n.child}function pT(e,n,s,c,p){return gp(),yC(p),n.flags|=aa,Qa(e,n,s,c),n.child}function OF(e,n,s){R_(n),e===null&&gC(n);var c=n.type,p=n.pendingProps,b=e!==null?e.memoizedProps:null,E=p.children,N=Qx(c,p);return N?E=null:b!==null&&Qx(c,b)&&(n.flags|=ci),cT(e,n),Qa(e,n,E,s),n.child}function DF(e,n){return e===null&&gC(n),null}function kF(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 B=n.tag=DB(O),H=es(O,p),te;switch(B){case x:return kS(n,O),n.type=O=Mp(O),te=OS(null,n,O,H,c),te;case C:return n.type=O=cE(O),te=dT(null,n,O,H,c),te;case U:return n.type=O=dE(O),te=oT(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=sT(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 MF(e,n,s,c,p){fb(e,n),n.tag=C;var b;return Hs(s)?(b=!0,Sy(n)):b=!1,bp(n,p),y_(n,s,c),BC(n,s,c,p),DS(null,n,s,!0,b,p)}function LF(e,n,s,c){fb(e,n);var p=n.pendingProps,b;{var E=pp(n,s,!1);b=hp(n,E)}bp(n,c);var N,O;_u(n);{if(s.prototype&&typeof s.prototype.render=="function"){var B=Yt(s)||"Unknown";TS[B]||(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.",B,B),TS[B]=!0)}n.mode&er&&Ko.recordLegacyContextWarning(n,null),Lr(!0),Fv.current=n,N=_p(null,n,s,p,b,c),O=Tp(),Lr(!1)}if(Cl(),n.flags|=$i,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){var H=Yt(s)||"Unknown";Vv[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),Vv[H]=!0)}if(typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){{var te=Yt(s)||"Unknown";Vv[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),Vv[te]=!0)}n.tag=C,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,TC(n),g_(n,N),BC(n,s,p,c),DS(null,n,s,!0,K,c)}else{if(n.tag=x,n.mode&er){kn(!0);try{N=_p(null,n,s,p,b,c),O=Tp()}finally{kn(!1)}}return sa()&&O&&fC(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=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 I=Yt(n)||"Unknown";NS[I]||(h("%s: Function components do not support contextType.",I),NS[I]=!0)}}}var MS={dehydrated:null,treeContext:null,retryLane:lr};function LS(e){return{baseLanes:e,cachePool:_F(),transitions:null}}function PF(e,n){var s=null;return{baseLanes:Dt(e.baseLanes,n),cachePool:s,transitions:e.transitions}}function FF(e,n,s,c){if(n!==null){var p=n.memoizedState;if(p===null)return!1}return ZC(e,Av)}function VF(e,n){return cd(e.childLanes,n)}function hT(e,n,s){var c=n.pendingProps;YB(n)&&(n.flags|=At);var p=ts.current,b=!1,E=(n.flags&At)!==mt;if(E||FF(p,e)?(b=!0,n.flags&=~At):(e===null||e.memoizedState!==null)&&(p=sF(p,T_)),p=Sp(p),ic(n,p),e===null){gC(n);var I=n.memoizedState;if(I!==null){var O=I.dehydrated;if(O!==null)return HF(n,O)}var B=c.children,H=c.fallback;if(b){var te=BF(n,B,H,s),K=n.child;return K.memoizedState=LS(s),n.memoizedState=MS,te}else return PS(n,B)}else{var he=e.memoizedState;if(he!==null){var ve=he.dehydrated;if(ve!==null)return GF(e,n,E,c,ve,he,s)}if(b){var Se=c.fallback,Ke=c.children,yt=$F(e,n,Ke,Se,s),pt=n.child,Wt=e.child.memoizedState;return pt.memoizedState=Wt===null?LS(s):PF(Wt,s),pt.childLanes=VF(e,s),n.memoizedState=MS,yt}else{var $t=c.children,se=zF(e,n,$t,s);return n.memoizedState=null,se}}}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 BF(e,n,s,c){var p=e.mode,b=e.child,E={mode:"hidden",children:n},I,O;return(p&ft)===gt&&b!==null?(I=b,I.childLanes=_e,I.pendingProps=E,e.mode&Kt&&(I.actualDuration=0,I.actualStartTime=-1,I.selfBaseDuration=0,I.treeBaseDuration=0),O=pc(s,p,c,null)):(I=FS(E,p),O=pc(s,p,c,null)),I.return=e,O.return=e,I.sibling=O,e.child=I,O}function FS(e,n,s){return vN(e,n,_e,null)}function vT(e,n){return Bd(e,n)}function zF(e,n,s,c){var p=e.child,b=p.sibling,E=vT(p,{mode:"visible",children:s});if((n.mode&ft)===gt&&(E.lanes=c),E.return=n,E.sibling=null,b!==null){var I=n.deletions;I===null?(n.deletions=[b],n.flags|=nn):I.push(b)}return n.child=E,E}function $F(e,n,s,c,p){var b=n.mode,E=e.child,I=E.sibling,O={mode:"hidden",children:s},B;if((b&ft)===gt&&n.child!==E){var H=n.child;B=H,B.childLanes=_e,B.pendingProps=O,n.mode&Kt&&(B.actualDuration=0,B.actualStartTime=-1,B.selfBaseDuration=E.selfBaseDuration,B.treeBaseDuration=E.treeBaseDuration),n.deletions=null}else B=vT(E,O),B.subtreeFlags=E.subtreeFlags&Fr;var te;return I!==null?te=Bd(I,c):(te=pc(c,b,p,null),te.flags|=Nn),te.return=n,B.return=n,B.sibling=te,n.child=B,te}function db(e,n,s,c){c!==null&&yC(c),xp(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 UF(e,n,s,c,p){var b=n.mode,E={mode:"visible",children:s},I=FS(E,b),O=pc(c,b,p,null);return O.flags|=Nn,I.return=n,O.return=n,I.sibling=O,n.child=I,(n.mode&ft)!==gt&&xp(n,e.child,null,p),O}function HF(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=xt):nC(n)?e.lanes=tr:e.lanes=Ja,null}function GF(e,n,s,c,p,b,E){if(s)if(n.flags&aa){n.flags&=~aa;var se=wS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return db(e,n,E,se)}else{if(n.memoizedState!==null)return n.child=e.child,n.flags|=At,null;var Ee=c.children,le=c.fallback,Fe=UF(e,n,Ee,le,E),et=n.child;return et.memoizedState=LS(E),n.memoizedState=MS,Fe}else{if(DP(),(n.mode&ft)===gt)return db(e,n,E,null);if(nC(p)){var I,O,B;{var H=qL(p);I=H.digest,O=H.message,B=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,I,B);return db(e,n,E,K)}var he=Da(E,e.childLanes);if(rs||he){var ve=Sb();if(ve!==null){var Se=Pg(ve,E);if(Se!==lr&&Se!==b.retryLane){b.retryLane=Se;var Ke=Mn;Ei(e,Se),Xr(ve,e,Se,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(P1(p)){n.flags|=At,n.child=e.child;var pt=mB.bind(null,e);return JL(p,pt),null}else{LP(n,p,b.treeContext);var Wt=c.children,$t=PS(n,Wt);return $t.flags|=oo,$t}}}function mT(e,n,s){e.lanes=Dt(e.lanes,n);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,n)),EC(e.return,n,s)}function WF(e,n,s){for(var c=n;c!==null;){if(c.tag===z){var p=c.memoizedState;p!==null&&mT(c,s,e)}else if(c.tag===ae)mT(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 XF(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 YF(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 ZF(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 gT(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 qF(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(!gT(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(!gT(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 yT(e,n,s){var c=n.pendingProps,p=c.revealOrder,b=c.tail,E=c.children;YF(p),ZF(b,p),qF(E,p),Qa(e,n,E,s);var I=ts.current,O=ZC(I,Av);if(O)I=qC(I,Av),n.flags|=At;else{var B=e!==null&&(e.flags&At)!==mt;B&&WF(n,n.child,s),I=Sp(I)}if(ic(n,I),(n.mode&ft)===gt)n.memoizedState=null;else switch(p){case"forwards":{var H=XF(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 Se=he.sibling;he.sibling=K,K=he,he=Se}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 JF(e,n,s){WC(n,n.stateNode.containerInfo);var c=n.pendingProps;return e===null?n.child=xp(n,null,c,s):Qa(e,n,c,s),n.child}var bT=!1;function QF(e,n,s){var c=n.type,p=c._context,b=n.pendingProps,E=n.memoizedProps,I=b.value;{"value"in b||bT||(bT=!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(o_(n,p,I),E!==null){var B=E.value;if(at(B,I)){if(E.children===b.children&&!xy())return Ul(e,n,s)}else WP(n,p,s)}var H=b.children;return Qa(e,n,H,s),n.child}var xT=!1;function KF(e,n,s){var c=n.type;c._context===void 0?c!==c.Consumer&&(xT||(xT=!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."),bp(n,s);var E=Dr(c);_u(n);var I;return Fv.current=n,Lr(!0),I=b(E),Lr(!1),Cl(),n.flags|=$i,Qa(e,n,I,s),n.child}function Bv(){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),tT(),Qv(n.lanes),Da(s,n.childLanes)?(aF(e,n),n.child):null}function eV(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 tV(e,n,s){switch(n.tag){case R:fT(n),n.stateNode,gp();break;case N:R_(n);break;case C:{var c=n.type;Hs(c)&&Sy(n);break}case j:WC(n,n.stateNode.containerInfo);break;case V:{var p=n.memoizedProps.value,b=n.type._context;o_(n,b,p);break}case P:{var E=Da(s,n.childLanes);E&&(n.flags|=ut);{var I=n.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}}break;case z:{var O=n.memoizedState;if(O!==null){if(O.dehydrated!==null)return ic(n,Sp(ts.current)),n.flags|=At,null;var B=n.child,H=B.childLanes;if(Da(s,H))return hT(e,n,s);ic(n,Sp(ts.current));var te=Ul(e,n,s);return te!==null?te.sibling:null}else ic(n,Sp(ts.current));break}case ae:{var K=(e.flags&At)!==mt,he=Da(s,n.childLanes);if(K){if(he)return yT(e,n,s);n.flags|=At}var ve=n.memoizedState;if(ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),ic(n,ts.current),he)break;return null}case be:case xe:return n.lanes=_e,uT(e,n,s)}return Ul(e,n,s)}function CT(e,n,s){if(n._debugNeedsRemount&&e!==null)return eV(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||xy()||n.type!==e.type)rs=!0;else{var b=BS(e,s);if(!b&&(n.flags&At)===mt)return rs=!1,tV(e,n,s);(e.flags&hf)!==mt?rs=!0:rs=!1}}else if(rs=!1,sa()&&TP(n)){var E=n.index,I=NP();Y1(n,I,E)}switch(n.lanes=_e,n.tag){case w:return LF(e,n,n.type,s);case pe:{var O=n.elementType;return kF(e,n,O,s)}case x:{var B=n.type,H=n.pendingProps,te=n.elementType===B?H:es(B,H);return OS(e,n,B,te,s)}case C:{var K=n.type,he=n.pendingProps,ve=n.elementType===K?he:es(K,he);return dT(e,n,K,ve,s)}case R:return jF(e,n,s);case N:return OF(e,n,s);case T:return DF(e,n);case z:return hT(e,n,s);case j:return JF(e,n,s);case U:{var Se=n.type,Ke=n.pendingProps,yt=n.elementType===Se?Ke:es(Se,Ke);return oT(e,n,Se,yt,s)}case A:return NF(e,n,s);case M:return IF(e,n,s);case P:return AF(e,n,s);case V:return QF(e,n,s);case F:return KF(e,n,s);case X:{var pt=n.type,Wt=n.pendingProps,$t=es(pt,Wt);if(n.type!==n.elementType){var se=pt.propTypes;se&&Jo(se,$t,"prop",Yt(pt))}return $t=es(pt.type,$t),sT(e,n,pt,$t,s)}case Y:return lT(e,n,n.type,n.pendingProps,s);case ie:{var Ee=n.type,le=n.pendingProps,Fe=n.elementType===Ee?le:es(Ee,le);return MF(e,n,Ee,Fe,s)}case ae:return yT(e,n,s);case Re:break;case be:return uT(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 Np(e){e.flags|=ut}function ST(e){e.flags|=Xa,e.flags|=so}var ET,zS,wT,RT;ET=function(e,n,s,c){for(var p=n.child;p!==null;){if(p.tag===N||p.tag===T)wL(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){},wT=function(e,n,s,c,p){var b=e.memoizedProps;if(b!==c){var E=n.stateNode,I=XC(),O=_L(E,s,b,c,p,I);n.updateQueue=O,O&&Np(n)}},RT=function(e,n,s,c){s!==c&&Np(n)};function zv(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=_e,c=mt;if(n){if((e.mode&Kt)!==gt){for(var O=e.selfBaseDuration,B=e.child;B!==null;)s=Dt(s,Dt(B.lanes,B.childLanes)),c|=B.subtreeFlags&Fr,c|=B.flags&Fr,O+=B.treeBaseDuration,B=B.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 I=e.child;I!==null;)s=Dt(s,Dt(I.lanes,I.childLanes)),c|=I.subtreeFlags,c|=I.flags,I.return=e,I=I.sibling;e.subtreeFlags|=c}return e.childLanes=s,n}function nV(e,n,s){if(zP()&&(n.mode&ft)!==gt&&(n.flags&At)===mt)return t_(n),gp(),n.flags|=aa|Ns|Pr,!1;var c=Ty(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(VP(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(gp(),(n.flags&At)===mt&&(n.memoizedState=null),n.flags|=ut,ua(n),(n.mode&Kt)!==gt){var E=s!==null;if(E){var I=n.child;I!==null&&(n.treeBaseDuration-=I.treeBaseDuration)}}return!1}else return n_(),!0}function _T(e,n,s){var c=n.pendingProps;switch(pC(n),n.tag){case w:case pe:case Y:case x:case U:case A:case M:case P:case F:case X:return ua(n),null;case C:{var p=n.type;return Hs(p)&&Cy(n),ua(n),null}case R:{var b=n.stateNode;if(Cp(n),uC(n),QC(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),e===null||e.child===null){var E=Ty(n);if(E)Np(n);else if(e!==null){var I=e.memoizedState;(!I.isDehydrated||(n.flags&aa)!==mt)&&(n.flags|=vr,n_())}}return zS(e,n),ua(n),null}case N:{YC(n);var O=w_(),B=n.type;if(e!==null&&n.stateNode!=null)wT(e,n,B,c,O),e.ref!==n.ref&&ST(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=XC(),te=Ty(n);if(te)PP(n,O,H)&&Np(n);else{var K=EL(B,c,O,H,n);ET(K,n,!1,!1),n.stateNode=K,RL(K,B,c,O)&&Np(n)}n.ref!==null&&ST(n)}return ua(n),null}case T:{var he=c;if(e&&n.stateNode!=null){var ve=e.memoizedProps;RT(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 Se=w_(),Ke=XC(),yt=Ty(n);yt?FP(n)&&Np(n):n.stateNode=TL(he,Se,Ke,n)}return ua(n),null}case z:{Ep(n);var pt=n.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=nV(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,se=e!==null&&e.memoizedState!==null;if($t!==se&&$t){var Ee=n.child;if(Ee.flags|=Ts,(n.mode&ft)!==gt){var le=e===null&&(n.memoizedProps.unstable_avoidThisFallback!==!0||!re);le||ZC(ts.current,T_)?rB():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&&xP(n.stateNode.containerInfo),ua(n),null;case V:var Ze=n.type._context;return SC(Ze,n),ua(n),null;case ie:{var Nt=n.type;return Hs(Nt)&&Cy(n),ua(n),null}case ae:{Ep(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)zv(Ot,!1);else{var wr=iB()&&(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,zv(Ot,!1);var Fa=gr.updateQueue;return Fa!==null&&(n.updateQueue=Fa,n.flags|=ut),n.subtreeFlags=mt,iF(n,s),ic(n,qC(ts.current,Av)),n.child}on=on.sibling}Ot.tail!==null&&mr()>XT()&&(n.flags|=At,En=!0,zv(Ot,!1),n.lanes=Vh)}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),zv(Ot,!0),Ot.tail===null&&Ot.tailMode==="hidden"&&!an.alternate&&!sa())return ua(n),null}else mr()*2-Ot.renderingStartTime>XT()&&s!==Ja&&(n.flags|=At,En=!0,zv(Ot,!1),n.lanes=Vh)}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=qC(Va,Av):Va=Sp(Va),ic(n,Va),ni}return ua(n),null}case Re:break;case be:case xe:{aE(n);var Yl=n.memoizedState,Lp=Yl!==null;if(e!==null){var rm=e.memoizedState,Qs=rm!==null;Qs!==Lp&&!Z&&(n.flags|=Ts)}return!Lp||(n.mode&ft)===gt?ua(n):Da(Js,Ja)&&(ua(n),n.subtreeFlags&(Nn|ut)&&(n.flags|=Ts)),null}case Ae: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 rV(e,n,s){switch(pC(n),n.tag){case C:{var c=n.type;Hs(c)&&Cy(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),uC(n),QC();var b=n.flags;return(b&Pr)!==mt&&(b&At)===mt?(n.flags=b&~Pr|At,n):null}case N:return YC(n),null;case z:{Ep(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.");gp()}var I=n.flags;return I&Pr?(n.flags=I&~Pr|At,(n.mode&Kt)!==gt&&ES(n),n):null}case ae:return Ep(n),null;case j:return Cp(n),null;case V:var O=n.type._context;return SC(O,n),null;case be:case xe:return aE(n),null;case Ae:return null;default:return null}}function TT(e,n,s){switch(pC(n),n.tag){case C:{var c=n.type.childContextTypes;c!=null&&Cy(n);break}case R:{n.stateNode,Cp(n),uC(n),QC();break}case N:{YC(n);break}case j:Cp(n);break;case z:Ep(n);break;case ae:Ep(n);break;case V:var p=n.type._context;SC(p,n);break;case be:case xe:aE(n);break}}var NT=null;NT=new Set;var pb=!1,ca=!1,aV=typeof WeakSet=="function"?WeakSet:Set,it=null,Ip=null,Ap=null;function iV(e){zi(null,function(){throw e}),Uo()}var oV=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 IT(e,n){try{lc(zr,e)}catch(s){$n(e,n,s)}}function $S(e,n,s){try{oV(e,s)}catch(c){$n(e,n,c)}}function sV(e,n,s){try{s.componentDidMount()}catch(c){$n(e,n,c)}}function AT(e,n){try{OT(e)}catch(s){$n(e,n,s)}}function jp(e,n){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ue&&de&&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 jT=!1;function lV(e,n){CL(e.containerInfo),it=n,uV();var s=jT;return jT=!1,s}function uV(){for(;it!==null;){var e=it,n=e.child;(e.subtreeFlags&_a)!==mt&&n!==null?(n.return=e,it=n):cV()}}function cV(){for(;it!==null;){var e=it;Xn(e);try{dV(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 dV(e){var n=e.alternate,s=e.flags;if((s&vr)!==mt){switch(Xn(e),e.tag){case x:case U:case Y:break;case C:{if(n!==null){var c=n.memoizedProps,p=n.memoizedState,b=e.stateNode;e.type===e.elementType&&!Md&&(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 I=NT;E===void 0&&!I.has(e.type)&&(I.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;WL(O.containerInfo)}break}case N:case T: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 I=E.destroy;E.destroy=void 0,I!==void 0&&((e&la)!==wi?Eg(n):(e&zr)!==wi&&Tu(n),(e&Gs)!==wi&&em(!0),hb(n,s,I),(e&Gs)!==wi&&em(!1),(e&la)!==wi?wg():(e&zr)!==wi&&Kc())}E=E.next}while(E!==b)}}function lc(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?Mh(n):(e&zr)!==wi&&Rg(n);var E=b.create;(e&Gs)!==wi&&em(!0),b.destroy=E(),(e&Gs)!==wi&&em(!1),(e&la)!==wi?xf():(e&zr)!==wi&&Lh();{var I=b.destroy;if(I!==void 0&&typeof I!="function"){var O=void 0;(b.tag&zr)!==mt?O="useLayoutEffect":(b.tag&Gs)!==mt?O="useInsertionEffect":O="useEffect";var B=void 0;I===null?B=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof I.then=="function"?B=`
|
|
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:_F(),transitions:null}}function PF(e,n){var s=null;return{baseLanes:Dt(e.baseLanes,n),cachePool:s,transitions:e.transitions}}function FF(e,n,s,c){if(n!==null){var p=n.memoizedState;if(p===null)return!1}return ZC(e,Av)}function VF(e,n){return cd(e.childLanes,n)}function hT(e,n,s){var c=n.pendingProps;YB(n)&&(n.flags|=At);var p=ts.current,b=!1,E=(n.flags&At)!==mt;if(E||FF(p,e)?(b=!0,n.flags&=~At):(e===null||e.memoizedState!==null)&&(p=sF(p,T_)),p=Sp(p),ic(n,p),e===null){gC(n);var N=n.memoizedState;if(N!==null){var O=N.dehydrated;if(O!==null)return HF(n,O)}var B=c.children,H=c.fallback;if(b){var te=BF(n,B,H,s),K=n.child;return K.memoizedState=LS(s),n.memoizedState=MS,te}else return PS(n,B)}else{var he=e.memoizedState;if(he!==null){var ve=he.dehydrated;if(ve!==null)return GF(e,n,E,c,ve,he,s)}if(b){var Se=c.fallback,Ke=c.children,yt=$F(e,n,Ke,Se,s),pt=n.child,Wt=e.child.memoizedState;return pt.memoizedState=Wt===null?LS(s):PF(Wt,s),pt.childLanes=VF(e,s),n.memoizedState=MS,yt}else{var $t=c.children,se=zF(e,n,$t,s);return n.memoizedState=null,se}}}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 BF(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=_e,N.pendingProps=E,e.mode&Kt&&(N.actualDuration=0,N.actualStartTime=-1,N.selfBaseDuration=0,N.treeBaseDuration=0),O=pc(s,p,c,null)):(N=FS(E,p),O=pc(s,p,c,null)),N.return=e,O.return=e,N.sibling=O,e.child=N,O}function FS(e,n,s){return vN(e,n,_e,null)}function vT(e,n){return Bd(e,n)}function zF(e,n,s,c){var p=e.child,b=p.sibling,E=vT(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 $F(e,n,s,c,p){var b=n.mode,E=e.child,N=E.sibling,O={mode:"hidden",children:s},B;if((b&ft)===gt&&n.child!==E){var H=n.child;B=H,B.childLanes=_e,B.pendingProps=O,n.mode&Kt&&(B.actualDuration=0,B.actualStartTime=-1,B.selfBaseDuration=E.selfBaseDuration,B.treeBaseDuration=E.treeBaseDuration),n.deletions=null}else B=vT(E,O),B.subtreeFlags=E.subtreeFlags&Fr;var te;return N!==null?te=Bd(N,c):(te=pc(c,b,p,null),te.flags|=Nn),te.return=n,B.return=n,B.sibling=te,n.child=B,te}function db(e,n,s,c){c!==null&&yC(c),xp(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 UF(e,n,s,c,p){var b=n.mode,E={mode:"visible",children:s},N=FS(E,b),O=pc(c,b,p,null);return O.flags|=Nn,N.return=n,O.return=n,N.sibling=O,n.child=N,(n.mode&ft)!==gt&&xp(n,e.child,null,p),O}function HF(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=xt):nC(n)?e.lanes=tr:e.lanes=Ja,null}function GF(e,n,s,c,p,b,E){if(s)if(n.flags&aa){n.flags&=~aa;var se=wS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return db(e,n,E,se)}else{if(n.memoizedState!==null)return n.child=e.child,n.flags|=At,null;var Ee=c.children,le=c.fallback,Fe=UF(e,n,Ee,le,E),et=n.child;return et.memoizedState=LS(E),n.memoizedState=MS,Fe}else{if(DP(),(n.mode&ft)===gt)return db(e,n,E,null);if(nC(p)){var N,O,B;{var H=qL(p);N=H.digest,O=H.message,B=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,B);return db(e,n,E,K)}var he=Da(E,e.childLanes);if(rs||he){var ve=Sb();if(ve!==null){var Se=Pg(ve,E);if(Se!==lr&&Se!==b.retryLane){b.retryLane=Se;var Ke=Mn;Ei(e,Se),Xr(ve,e,Se,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(P1(p)){n.flags|=At,n.child=e.child;var pt=mB.bind(null,e);return JL(p,pt),null}else{LP(n,p,b.treeContext);var Wt=c.children,$t=PS(n,Wt);return $t.flags|=oo,$t}}}function mT(e,n,s){e.lanes=Dt(e.lanes,n);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,n)),EC(e.return,n,s)}function WF(e,n,s){for(var c=n;c!==null;){if(c.tag===z){var p=c.memoizedState;p!==null&&mT(c,s,e)}else if(c.tag===ae)mT(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 XF(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 YF(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 ZF(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 gT(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 qF(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(!gT(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(!gT(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 yT(e,n,s){var c=n.pendingProps,p=c.revealOrder,b=c.tail,E=c.children;YF(p),ZF(b,p),qF(E,p),Qa(e,n,E,s);var N=ts.current,O=ZC(N,Av);if(O)N=qC(N,Av),n.flags|=At;else{var B=e!==null&&(e.flags&At)!==mt;B&&WF(n,n.child,s),N=Sp(N)}if(ic(n,N),(n.mode&ft)===gt)n.memoizedState=null;else switch(p){case"forwards":{var H=XF(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 Se=he.sibling;he.sibling=K,K=he,he=Se}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 JF(e,n,s){WC(n,n.stateNode.containerInfo);var c=n.pendingProps;return e===null?n.child=xp(n,null,c,s):Qa(e,n,c,s),n.child}var bT=!1;function QF(e,n,s){var c=n.type,p=c._context,b=n.pendingProps,E=n.memoizedProps,N=b.value;{"value"in b||bT||(bT=!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(o_(n,p,N),E!==null){var B=E.value;if(at(B,N)){if(E.children===b.children&&!xy())return Ul(e,n,s)}else WP(n,p,s)}var H=b.children;return Qa(e,n,H,s),n.child}var xT=!1;function KF(e,n,s){var c=n.type;c._context===void 0?c!==c.Consumer&&(xT||(xT=!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."),bp(n,s);var E=Dr(c);_u(n);var N;return Fv.current=n,Lr(!0),N=b(E),Lr(!1),Cl(),n.flags|=$i,Qa(e,n,N,s),n.child}function Bv(){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),tT(),Qv(n.lanes),Da(s,n.childLanes)?(aF(e,n),n.child):null}function eV(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 tV(e,n,s){switch(n.tag){case R:fT(n),n.stateNode,gp();break;case A:R_(n);break;case C:{var c=n.type;Hs(c)&&Sy(n);break}case j:WC(n,n.stateNode.containerInfo);break;case V:{var p=n.memoizedProps.value,b=n.type._context;o_(n,b,p);break}case P:{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 ic(n,Sp(ts.current)),n.flags|=At,null;var B=n.child,H=B.childLanes;if(Da(s,H))return hT(e,n,s);ic(n,Sp(ts.current));var te=Ul(e,n,s);return te!==null?te.sibling:null}else ic(n,Sp(ts.current));break}case ae:{var K=(e.flags&At)!==mt,he=Da(s,n.childLanes);if(K){if(he)return yT(e,n,s);n.flags|=At}var ve=n.memoizedState;if(ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),ic(n,ts.current),he)break;return null}case be:case xe:return n.lanes=_e,uT(e,n,s)}return Ul(e,n,s)}function CT(e,n,s){if(n._debugNeedsRemount&&e!==null)return eV(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||xy()||n.type!==e.type)rs=!0;else{var b=BS(e,s);if(!b&&(n.flags&At)===mt)return rs=!1,tV(e,n,s);(e.flags&hf)!==mt?rs=!0:rs=!1}}else if(rs=!1,sa()&&TP(n)){var E=n.index,N=NP();Y1(n,N,E)}switch(n.lanes=_e,n.tag){case w:return LF(e,n,n.type,s);case pe:{var O=n.elementType;return kF(e,n,O,s)}case x:{var B=n.type,H=n.pendingProps,te=n.elementType===B?H:es(B,H);return OS(e,n,B,te,s)}case C:{var K=n.type,he=n.pendingProps,ve=n.elementType===K?he:es(K,he);return dT(e,n,K,ve,s)}case R:return jF(e,n,s);case A:return OF(e,n,s);case T:return DF(e,n);case z:return hT(e,n,s);case j:return JF(e,n,s);case U:{var Se=n.type,Ke=n.pendingProps,yt=n.elementType===Se?Ke:es(Se,Ke);return oT(e,n,Se,yt,s)}case I:return NF(e,n,s);case M:return IF(e,n,s);case P:return AF(e,n,s);case V:return QF(e,n,s);case F:return KF(e,n,s);case X:{var pt=n.type,Wt=n.pendingProps,$t=es(pt,Wt);if(n.type!==n.elementType){var se=pt.propTypes;se&&Jo(se,$t,"prop",Yt(pt))}return $t=es(pt.type,$t),sT(e,n,pt,$t,s)}case Y:return lT(e,n,n.type,n.pendingProps,s);case ie:{var Ee=n.type,le=n.pendingProps,Fe=n.elementType===Ee?le:es(Ee,le);return MF(e,n,Ee,Fe,s)}case ae:return yT(e,n,s);case Re:break;case be:return uT(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 Np(e){e.flags|=ut}function ST(e){e.flags|=Xa,e.flags|=so}var ET,zS,wT,RT;ET=function(e,n,s,c){for(var p=n.child;p!==null;){if(p.tag===A||p.tag===T)wL(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){},wT=function(e,n,s,c,p){var b=e.memoizedProps;if(b!==c){var E=n.stateNode,N=XC(),O=_L(E,s,b,c,p,N);n.updateQueue=O,O&&Np(n)}},RT=function(e,n,s,c){s!==c&&Np(n)};function zv(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=_e,c=mt;if(n){if((e.mode&Kt)!==gt){for(var O=e.selfBaseDuration,B=e.child;B!==null;)s=Dt(s,Dt(B.lanes,B.childLanes)),c|=B.subtreeFlags&Fr,c|=B.flags&Fr,O+=B.treeBaseDuration,B=B.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 nV(e,n,s){if(zP()&&(n.mode&ft)!==gt&&(n.flags&At)===mt)return t_(n),gp(),n.flags|=aa|Ns|Pr,!1;var c=Ty(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(VP(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(gp(),(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 n_(),!0}function _T(e,n,s){var c=n.pendingProps;switch(pC(n),n.tag){case w:case pe:case Y:case x:case U:case I:case M:case P:case F:case X:return ua(n),null;case C:{var p=n.type;return Hs(p)&&Cy(n),ua(n),null}case R:{var b=n.stateNode;if(Cp(n),uC(n),QC(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),e===null||e.child===null){var E=Ty(n);if(E)Np(n);else if(e!==null){var N=e.memoizedState;(!N.isDehydrated||(n.flags&aa)!==mt)&&(n.flags|=vr,n_())}}return zS(e,n),ua(n),null}case A:{YC(n);var O=w_(),B=n.type;if(e!==null&&n.stateNode!=null)wT(e,n,B,c,O),e.ref!==n.ref&&ST(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=XC(),te=Ty(n);if(te)PP(n,O,H)&&Np(n);else{var K=EL(B,c,O,H,n);ET(K,n,!1,!1),n.stateNode=K,RL(K,B,c,O)&&Np(n)}n.ref!==null&&ST(n)}return ua(n),null}case T:{var he=c;if(e&&n.stateNode!=null){var ve=e.memoizedProps;RT(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 Se=w_(),Ke=XC(),yt=Ty(n);yt?FP(n)&&Np(n):n.stateNode=TL(he,Se,Ke,n)}return ua(n),null}case z:{Ep(n);var pt=n.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=nV(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,se=e!==null&&e.memoizedState!==null;if($t!==se&&$t){var Ee=n.child;if(Ee.flags|=Ts,(n.mode&ft)!==gt){var le=e===null&&(n.memoizedProps.unstable_avoidThisFallback!==!0||!re);le||ZC(ts.current,T_)?rB():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&&xP(n.stateNode.containerInfo),ua(n),null;case V:var Ze=n.type._context;return SC(Ze,n),ua(n),null;case ie:{var Nt=n.type;return Hs(Nt)&&Cy(n),ua(n),null}case ae:{Ep(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)zv(Ot,!1);else{var wr=iB()&&(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,zv(Ot,!1);var Fa=gr.updateQueue;return Fa!==null&&(n.updateQueue=Fa,n.flags|=ut),n.subtreeFlags=mt,iF(n,s),ic(n,qC(ts.current,Av)),n.child}on=on.sibling}Ot.tail!==null&&mr()>XT()&&(n.flags|=At,En=!0,zv(Ot,!1),n.lanes=Vh)}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),zv(Ot,!0),Ot.tail===null&&Ot.tailMode==="hidden"&&!an.alternate&&!sa())return ua(n),null}else mr()*2-Ot.renderingStartTime>XT()&&s!==Ja&&(n.flags|=At,En=!0,zv(Ot,!1),n.lanes=Vh)}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=qC(Va,Av):Va=Sp(Va),ic(n,Va),ni}return ua(n),null}case Re:break;case be:case xe:{aE(n);var Yl=n.memoizedState,Lp=Yl!==null;if(e!==null){var rm=e.memoizedState,Qs=rm!==null;Qs!==Lp&&!Z&&(n.flags|=Ts)}return!Lp||(n.mode&ft)===gt?ua(n):Da(Js,Ja)&&(ua(n),n.subtreeFlags&(Nn|ut)&&(n.flags|=Ts)),null}case Ae: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 rV(e,n,s){switch(pC(n),n.tag){case C:{var c=n.type;Hs(c)&&Cy(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),uC(n),QC();var b=n.flags;return(b&Pr)!==mt&&(b&At)===mt?(n.flags=b&~Pr|At,n):null}case A:return YC(n),null;case z:{Ep(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.");gp()}var N=n.flags;return N&Pr?(n.flags=N&~Pr|At,(n.mode&Kt)!==gt&&ES(n),n):null}case ae:return Ep(n),null;case j:return Cp(n),null;case V:var O=n.type._context;return SC(O,n),null;case be:case xe:return aE(n),null;case Ae:return null;default:return null}}function TT(e,n,s){switch(pC(n),n.tag){case C:{var c=n.type.childContextTypes;c!=null&&Cy(n);break}case R:{n.stateNode,Cp(n),uC(n),QC();break}case A:{YC(n);break}case j:Cp(n);break;case z:Ep(n);break;case ae:Ep(n);break;case V:var p=n.type._context;SC(p,n);break;case be:case xe:aE(n);break}}var NT=null;NT=new Set;var pb=!1,ca=!1,aV=typeof WeakSet=="function"?WeakSet:Set,it=null,Ip=null,Ap=null;function iV(e){zi(null,function(){throw e}),Uo()}var oV=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 IT(e,n){try{lc(zr,e)}catch(s){$n(e,n,s)}}function $S(e,n,s){try{oV(e,s)}catch(c){$n(e,n,c)}}function sV(e,n,s){try{s.componentDidMount()}catch(c){$n(e,n,c)}}function AT(e,n){try{OT(e)}catch(s){$n(e,n,s)}}function jp(e,n){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ue&&de&&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 jT=!1;function lV(e,n){CL(e.containerInfo),it=n,uV();var s=jT;return jT=!1,s}function uV(){for(;it!==null;){var e=it,n=e.child;(e.subtreeFlags&_a)!==mt&&n!==null?(n.return=e,it=n):cV()}}function cV(){for(;it!==null;){var e=it;Xn(e);try{dV(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 dV(e){var n=e.alternate,s=e.flags;if((s&vr)!==mt){switch(Xn(e),e.tag){case x:case U:case Y:break;case C:{if(n!==null){var c=n.memoizedProps,p=n.memoizedState,b=e.stateNode;e.type===e.elementType&&!Md&&(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=NT;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;WL(O.containerInfo)}break}case A:case T: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&&em(!0),hb(n,s,N),(e&Gs)!==wi&&em(!1),(e&la)!==wi?wg():(e&zr)!==wi&&Kc())}E=E.next}while(E!==b)}}function lc(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?Mh(n):(e&zr)!==wi&&Rg(n);var E=b.create;(e&Gs)!==wi&&em(!0),b.destroy=E(),(e&Gs)!==wi&&em(!1),(e&la)!==wi?xf():(e&zr)!==wi&&Lh();{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 B=void 0;N===null?B=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof N.then=="function"?B=`
|
|
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
|
|
|
@@ -201,7 +201,7 @@ It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, w
|
|
|
201
201
|
fetchData();
|
|
202
202
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
203
203
|
|
|
204
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:B=" You returned: "+I,h("%s must not return anything besides a function, which is used for clean-up.%s",O,B)}}}b=b.next}while(b!==p)}}function fV(e,n){if((n.flags&ut)!==mt)switch(n.tag){case P:{var s=n.stateNode.passiveEffectDuration,c=n.memoizedProps,p=c.id,b=c.onPostCommit,E=K_(),I=n.alternate===null?"mount":"update";Q_()&&(I="nested-update"),typeof b=="function"&&b(p,I,s,E);var O=n.return;e:for(;O!==null;){switch(O.tag){case R:var B=O.stateNode;B.passiveEffectDuration+=s;break e;case P:var H=O.stateNode;H.passiveEffectDuration+=s;break e}O=O.return}break}}}function pV(e,n,s,c){if((s.flags&Ui)!==mt)switch(s.tag){case x:case U:case Y:{if(!ca)if(s.mode&Kt)try{Zs(),lc(zr|Br,s)}finally{Ys(s)}else lc(zr|Br,s);break}case C:{var p=s.stateNode;if(s.flags&ut&&!ca)if(n===null)if(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),s.mode&Kt)try{Zs(),p.componentDidMount()}finally{Ys(s)}else p.componentDidMount();else{var b=s.elementType===s.type?n.memoizedProps:es(s.type,n.memoizedProps),E=n.memoizedState;if(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),s.mode&Kt)try{Zs(),p.componentDidUpdate(b,E,p.__reactInternalSnapshotBeforeUpdate)}finally{Ys(s)}else p.componentDidUpdate(b,E,p.__reactInternalSnapshotBeforeUpdate)}var I=s.updateQueue;I!==null&&(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),f_(s,I,p));break}case R:{var O=s.updateQueue;if(O!==null){var B=null;if(s.child!==null)switch(s.child.tag){case N:B=s.child.stateNode;break;case C:B=s.child.stateNode;break}f_(s,O,B)}break}case N:{var H=s.stateNode;if(n===null&&s.flags&ut){var te=s.type,K=s.memoizedProps;OL(H,te,K)}break}case T:break;case j:break;case P:{{var he=s.memoizedProps,ve=he.onCommit,Se=he.onRender,Ke=s.stateNode.effectDuration,yt=K_(),pt=n===null?"mount":"update";Q_()&&(pt="nested-update"),typeof Se=="function"&&Se(s.memoizedProps.id,pt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,yt);{typeof ve=="function"&&ve(s.memoizedProps.id,pt,Ke,yt),cB(s);var Wt=s.return;e:for(;Wt!==null;){switch(Wt.tag){case R:var $t=Wt.stateNode;$t.effectDuration+=Ke;break e;case P:var se=Wt.stateNode;se.effectDuration+=Ke;break e}Wt=Wt.return}}}break}case z:{CV(e,s);break}case ae:case ie:case Re:case be:case xe:case Le: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.")}ca||s.flags&Xa&&OT(s)}function hV(e){switch(e.tag){case x:case U:case Y:{if(e.mode&Kt)try{Zs(),IT(e,e.return)}finally{Ys(e)}else IT(e,e.return);break}case C:{var n=e.stateNode;typeof n.componentDidMount=="function"&&sV(e,e.return,n),AT(e,e.return);break}case N:{AT(e,e.return);break}}}function vV(e,n){for(var s=null,c=e;;){if(c.tag===N){if(s===null){s=c;try{var p=c.stateNode;n?$L(p):HL(c.stateNode,c.memoizedProps)}catch(E){$n(e,e.return,E)}}}else if(c.tag===T){if(s===null)try{var b=c.stateNode;n?UL(b):GL(b,c.memoizedProps)}catch(E){$n(e,e.return,E)}}else if(!((c.tag===be||c.tag===xe)&&c.memoizedState!==null&&c!==e)){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;s===c&&(s=null),c=c.return}s===c&&(s=null),c.sibling.return=c.return,c=c.sibling}}function OT(e){var n=e.ref;if(n!==null){var s=e.stateNode,c;switch(e.tag){case N:c=s;break;default:c=s}if(typeof n=="function"){var p;if(e.mode&Kt)try{Zs(),p=n(c)}finally{Ys(e)}else p=n(c);typeof p=="function"&&h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(e))}else n.hasOwnProperty("current")||h("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",It(e)),n.current=c}}function mV(e){var n=e.alternate;n!==null&&(n.return=null),e.return=null}function DT(e){var n=e.alternate;n!==null&&(e.alternate=null,DT(n));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===N){var s=e.stateNode;s!==null&&EP(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function gV(e){for(var n=e.return;n!==null;){if(kT(n))return n;n=n.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function kT(e){return e.tag===N||e.tag===R||e.tag===j}function MT(e){var n=e;e:for(;;){for(;n.sibling===null;){if(n.return===null||kT(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==N&&n.tag!==T&&n.tag!==ge;){if(n.flags&Nn||n.child===null||n.tag===j)continue e;n.child.return=n,n=n.child}if(!(n.flags&Nn))return n.stateNode}}function yV(e){var n=gV(e);switch(n.tag){case N:{var s=n.stateNode;n.flags&ci&&(L1(s),n.flags&=~ci);var c=MT(e);HS(e,c,s);break}case R:case j:{var p=n.stateNode.containerInfo,b=MT(e);US(e,b,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function US(e,n,s){var c=e.tag,p=c===N||c===T;if(p){var b=e.stateNode;n?FL(s,b,n):LL(s,b)}else if(c!==j){var E=e.child;if(E!==null){US(E,n,s);for(var I=E.sibling;I!==null;)US(I,n,s),I=I.sibling}}}function HS(e,n,s){var c=e.tag,p=c===N||c===T;if(p){var b=e.stateNode;n?PL(s,b,n):ML(s,b)}else if(c!==j){var E=e.child;if(E!==null){HS(E,n,s);for(var I=E.sibling;I!==null;)HS(I,n,s),I=I.sibling}}}var da=null,is=!1;function bV(e,n,s){{var c=n;e:for(;c!==null;){switch(c.tag){case N:{da=c.stateNode,is=!1;break e}case R:{da=c.stateNode.containerInfo,is=!0;break e}case j:{da=c.stateNode.containerInfo,is=!0;break e}}c=c.return}if(da===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");LT(e,n,s),da=null,is=!1}mV(s)}function uc(e,n,s){for(var c=s.child;c!==null;)LT(e,n,c),c=c.sibling}function LT(e,n,s){switch(Cg(s),s.tag){case N:ca||jp(s,n);case T:{{var c=da,p=is;da=null,uc(e,n,s),da=c,is=p,da!==null&&(is?BL(da,s.stateNode):VL(da,s.stateNode))}return}case ge:{da!==null&&(is?zL(da,s.stateNode):tC(da,s.stateNode));return}case j:{{var b=da,E=is;da=s.stateNode.containerInfo,is=!0,uc(e,n,s),da=b,is=E}return}case x:case U:case X:case Y:{if(!ca){var I=s.updateQueue;if(I!==null){var O=I.lastEffect;if(O!==null){var B=O.next,H=B;do{var te=H,K=te.destroy,he=te.tag;K!==void 0&&((he&Gs)!==wi?hb(s,n,K):(he&zr)!==wi&&(Tu(s),s.mode&Kt?(Zs(),hb(s,n,K),Ys(s)):hb(s,n,K),Kc())),H=H.next}while(H!==B)}}}uc(e,n,s);return}case C:{if(!ca){jp(s,n);var ve=s.stateNode;typeof ve.componentWillUnmount=="function"&&$S(s,n,ve)}uc(e,n,s);return}case Re:{uc(e,n,s);return}case be:{if(s.mode&ft){var Se=ca;ca=Se||s.memoizedState!==null,uc(e,n,s),ca=Se}else uc(e,n,s);break}default:{uc(e,n,s);return}}}function xV(e){e.memoizedState}function CV(e,n){var s=n.memoizedState;if(s===null){var c=n.alternate;if(c!==null){var p=c.memoizedState;if(p!==null){var b=p.dehydrated;b!==null&&oP(b)}}}}function PT(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new aV),n.forEach(function(c){var p=gB.bind(null,e,c);if(!s.has(c)){if(s.add(c),qa)if(Ip!==null&&Ap!==null)Kv(Ap,Ip);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");c.then(p,p)}})}}function SV(e,n,s){Ip=s,Ap=e,Xn(n),FT(n,e),Xn(n),Ip=null,Ap=null}function os(e,n,s){var c=n.deletions;if(c!==null)for(var p=0;p<c.length;p++){var b=c[p];try{bV(e,n,b)}catch(O){$n(b,n,O)}}var E=jc();if(n.subtreeFlags&Ta)for(var I=n.child;I!==null;)Xn(I),FT(I,e),I=I.sibling;Xn(E)}function FT(e,n,s){var c=e.alternate,p=e.flags;switch(e.tag){case x:case U:case X:case Y:{if(os(n,e),qs(e),p&ut){try{as(Gs|Br,e,e.return),lc(Gs|Br,e)}catch(Nt){$n(e,e.return,Nt)}if(e.mode&Kt){try{Zs(),as(zr|Br,e,e.return)}catch(Nt){$n(e,e.return,Nt)}Ys(e)}else try{as(zr|Br,e,e.return)}catch(Nt){$n(e,e.return,Nt)}}return}case C:{os(n,e),qs(e),p&Xa&&c!==null&&jp(c,c.return);return}case N:{os(n,e),qs(e),p&Xa&&c!==null&&jp(c,c.return);{if(e.flags&ci){var b=e.stateNode;try{L1(b)}catch(Nt){$n(e,e.return,Nt)}}if(p&ut){var E=e.stateNode;if(E!=null){var I=e.memoizedProps,O=c!==null?c.memoizedProps:I,B=e.type,H=e.updateQueue;if(e.updateQueue=null,H!==null)try{DL(E,H,B,O,I,e)}catch(Nt){$n(e,e.return,Nt)}}}}return}case T:{if(os(n,e),qs(e),p&ut){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var te=e.stateNode,K=e.memoizedProps,he=c!==null?c.memoizedProps:K;try{kL(te,he,K)}catch(Nt){$n(e,e.return,Nt)}}return}case R:{if(os(n,e),qs(e),p&ut&&c!==null){var ve=c.memoizedState;if(ve.isDehydrated)try{iP(n.containerInfo)}catch(Nt){$n(e,e.return,Nt)}}return}case j:{os(n,e),qs(e);return}case z:{os(n,e),qs(e);var Se=e.child;if(Se.flags&Ts){var Ke=Se.stateNode,yt=Se.memoizedState,pt=yt!==null;if(Ke.isHidden=pt,pt){var Wt=Se.alternate!==null&&Se.alternate.memoizedState!==null;Wt||nB()}}if(p&ut){try{xV(e)}catch(Nt){$n(e,e.return,Nt)}PT(e)}return}case be:{var $t=c!==null&&c.memoizedState!==null;if(e.mode&ft){var se=ca;ca=se||$t,os(n,e),ca=se}else os(n,e);if(qs(e),p&Ts){var Ee=e.stateNode,le=e.memoizedState,Fe=le!==null,et=e;if(Ee.isHidden=Fe,Fe&&!$t&&(et.mode&ft)!==gt){it=et;for(var Ze=et.child;Ze!==null;)it=Ze,wV(Ze),Ze=Ze.sibling}vV(et,Fe)}return}case ae:{os(n,e),qs(e),p&ut&&PT(e);return}case Re:return;default:{os(n,e),qs(e);return}}}function qs(e){var n=e.flags;if(n&Nn){try{yV(e)}catch(s){$n(e,e.return,s)}e.flags&=~Nn}n&oo&&(e.flags&=~oo)}function EV(e,n,s){Ip=s,Ap=n,it=e,VT(e,n,s),Ip=null,Ap=null}function VT(e,n,s){for(var c=(e.mode&ft)!==gt;it!==null;){var p=it,b=p.child;if(p.tag===be&&c){var E=p.memoizedState!==null,I=E||pb;if(I){GS(e,n,s);continue}else{var O=p.alternate,B=O!==null&&O.memoizedState!==null,H=B||ca,te=pb,K=ca;pb=I,ca=H,ca&&!K&&(it=p,RV(p));for(var he=b;he!==null;)it=he,VT(he,n,s),he=he.sibling;it=p,pb=te,ca=K,GS(e,n,s);continue}}(p.subtreeFlags&Ui)!==mt&&b!==null?(b.return=p,it=b):GS(e,n,s)}}function GS(e,n,s){for(;it!==null;){var c=it;if((c.flags&Ui)!==mt){var p=c.alternate;Xn(c);try{pV(n,p,c,s)}catch(E){$n(c,c.return,E)}Fn()}if(c===e){it=null;return}var b=c.sibling;if(b!==null){b.return=c.return,it=b;return}it=c.return}}function wV(e){for(;it!==null;){var n=it,s=n.child;switch(n.tag){case x:case U:case X:case Y:{if(n.mode&Kt)try{Zs(),as(zr,n,n.return)}finally{Ys(n)}else as(zr,n,n.return);break}case C:{jp(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&$S(n,n.return,c);break}case N:{jp(n,n.return);break}case be:{var p=n.memoizedState!==null;if(p){BT(e);continue}break}}s!==null?(s.return=n,it=s):BT(e)}}function BT(e){for(;it!==null;){var n=it;if(n===e){it=null;return}var s=n.sibling;if(s!==null){s.return=n.return,it=s;return}it=n.return}}function RV(e){for(;it!==null;){var n=it,s=n.child;if(n.tag===be){var c=n.memoizedState!==null;if(c){zT(e);continue}}s!==null?(s.return=n,it=s):zT(e)}}function zT(e){for(;it!==null;){var n=it;Xn(n);try{hV(n)}catch(c){$n(n,n.return,c)}if(Fn(),n===e){it=null;return}var s=n.sibling;if(s!==null){s.return=n.return,it=s;return}it=n.return}}function _V(e,n,s,c){it=n,TV(n,e,s,c)}function TV(e,n,s,c){for(;it!==null;){var p=it,b=p.child;(p.subtreeFlags&Na)!==mt&&b!==null?(b.return=p,it=b):NV(e,n,s,c)}}function NV(e,n,s,c){for(;it!==null;){var p=it;if((p.flags&Ra)!==mt){Xn(p);try{IV(n,p,s,c)}catch(E){$n(p,p.return,E)}Fn()}if(p===e){it=null;return}var b=p.sibling;if(b!==null){b.return=p.return,it=b;return}it=p.return}}function IV(e,n,s,c){switch(n.tag){case x:case U:case Y:{if(n.mode&Kt){SS();try{lc(la|Br,n)}finally{CS(n)}}else lc(la|Br,n);break}}}function AV(e){it=e,jV()}function jV(){for(;it!==null;){var e=it,n=e.child;if((it.flags&nn)!==mt){var s=e.deletions;if(s!==null){for(var c=0;c<s.length;c++){var p=s[c];it=p,kV(p,e)}{var b=e.alternate;if(b!==null){var E=b.child;if(E!==null){b.child=null;do{var I=E.sibling;E.sibling=null,E=I}while(E!==null)}}}it=e}}(e.subtreeFlags&Na)!==mt&&n!==null?(n.return=e,it=n):OV()}}function OV(){for(;it!==null;){var e=it;(e.flags&Ra)!==mt&&(Xn(e),DV(e),Fn());var n=e.sibling;if(n!==null){n.return=e.return,it=n;return}it=e.return}}function DV(e){switch(e.tag){case x:case U:case Y:{e.mode&Kt?(SS(),as(la|Br,e,e.return),CS(e)):as(la|Br,e,e.return);break}}}function kV(e,n){for(;it!==null;){var s=it;Xn(s),LV(s,n),Fn();var c=s.child;c!==null?(c.return=s,it=c):MV(e)}}function MV(e){for(;it!==null;){var n=it,s=n.sibling,c=n.return;if(DT(n),n===e){it=null;return}if(s!==null){s.return=c,it=s;return}it=c}}function LV(e,n){switch(e.tag){case x:case U:case Y:{e.mode&Kt?(SS(),as(la,e,n),CS(e)):as(la,e,n);break}}}function PV(e){switch(e.tag){case x:case U:case Y:{try{lc(zr|Br,e)}catch(s){$n(e,e.return,s)}break}case C:{var n=e.stateNode;try{n.componentDidMount()}catch(s){$n(e,e.return,s)}break}}}function FV(e){switch(e.tag){case x:case U:case Y:{try{lc(la|Br,e)}catch(n){$n(e,e.return,n)}break}}}function VV(e){switch(e.tag){case x:case U:case Y:{try{as(zr|Br,e,e.return)}catch(s){$n(e,e.return,s)}break}case C:{var n=e.stateNode;typeof n.componentWillUnmount=="function"&&$S(e,e.return,n);break}}}function BV(e){switch(e.tag){case x:case U:case Y:try{as(la|Br,e,e.return)}catch(n){$n(e,e.return,n)}}}if(typeof Symbol=="function"&&Symbol.for){var $v=Symbol.for;$v("selector.component"),$v("selector.has_pseudo_class"),$v("selector.role"),$v("selector.test_id"),$v("selector.text")}var zV=[];function $V(){zV.forEach(function(e){return e()})}var UV=l.ReactCurrentActQueue;function HV(e){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&n!==!1}}function $T(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&UV.current!==null&&h("The current testing environment is not configured to support act(...)"),e}}var GV=Math.ceil,WS=l.ReactCurrentDispatcher,XS=l.ReactCurrentOwner,fa=l.ReactCurrentBatchConfig,ss=l.ReactCurrentActQueue,Hr=0,UT=1,pa=2,Co=4,Hl=0,Uv=1,Ld=2,vb=3,Hv=4,HT=5,YS=6,Gt=Hr,Ka=null,fr=null,Gr=_e,Js=_e,ZS=Ku(_e),Wr=Hl,Gv=null,mb=_e,Wv=_e,gb=_e,Xv=null,Ri=null,qS=0,GT=500,WT=1/0,WV=500,Gl=null;function Yv(){WT=mr()+WV}function XT(){return WT}var yb=!1,JS=null,Op=null,Pd=!1,cc=null,Zv=_e,QS=[],KS=null,XV=50,qv=0,eE=null,tE=!1,bb=!1,YV=50,Dp=0,xb=null,Jv=Mn,Cb=_e,YT=!1;function Sb(){return Ka}function ei(){return(Gt&(pa|Co))!==Hr?mr():(Jv!==Mn||(Jv=mr()),Jv)}function dc(e){var n=e.mode;if((n&ft)===gt)return xt;if((Gt&pa)!==Hr&&Gr!==_e)return ku(Gr);var s=HP()!==UP;if(s){if(fa.transition!==null){var c=fa.transition;c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(e)}return Cb===lr&&(Cb=kg()),Cb}var p=gi();if(p!==lr)return p;var b=NL();return b}function ZV(e){var n=e.mode;return(n&ft)===gt?xt:Oa()}function Xr(e,n,s,c){bB(),YT&&h("useInsertionEffect must not schedule updates."),tE&&(bb=!0),Al(e,s,c),(Gt&pa)!==_e&&e===Ka?SB(n):(qa&&Bf(e,n,s),EB(n),e===Ka&&((Gt&pa)===Hr&&(Wv=Dt(Wv,s)),Wr===Hv&&fc(e,Gr)),_i(e,c),s===xt&&Gt===Hr&&(n.mode&ft)===gt&&!ss.isBatchingLegacy&&(Yv(),X1()))}function qV(e,n,s){var c=e.current;c.lanes=n,Al(e,n,s),_i(e,s)}function JV(e){return(Gt&pa)!==Hr}function _i(e,n){var s=e.callbackNode;xx(e,n);var c=sd(e,e===Ka?Gr:_e);if(c===_e){s!==null&&cN(s),e.callbackNode=null,e.callbackPriority=lr;return}var p=ur(c),b=e.callbackPriority;if(b===p&&!(ss.current!==null&&s!==lE)){s==null&&b!==xt&&h("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&cN(s);var E;if(p===xt)e.tag===ec?(ss.isBatchingLegacy!==null&&(ss.didScheduleLegacyUpdate=!0),_P(JT.bind(null,e))):W1(JT.bind(null,e)),ss.current!==null?ss.current.push(tc):AL(function(){(Gt&(pa|Co))===Hr&&tc()}),E=null;else{var I;switch(Vr(c)){case cr:I=Ia;break;case Xo:I=wu;break;case fo:I=lo;break;case Mu:I=Jc;break;default:I=lo;break}E=uE(I,ZT.bind(null,e))}e.callbackPriority=p,e.callbackNode=E}function ZT(e,n){if(bF(),Jv=Mn,Cb=_e,(Gt&(pa|Co))!==Hr)throw new Error("Should not already be working.");var s=e.callbackNode,c=Xl();if(c&&e.callbackNode!==s)return null;var p=sd(e,e===Ka?Gr:_e);if(p===_e)return null;var b=!ud(e,p)&&!Dg(e,p)&&!n,E=b?sB(e,p):wb(e,p);if(E!==Hl){if(E===Ld){var I=Ps(e);I!==_e&&(p=I,E=nE(e,I))}if(E===Uv){var O=Gv;throw Fd(e,_e),fc(e,p),_i(e,mr()),O}if(E===YS)fc(e,p);else{var B=!ud(e,p),H=e.current.alternate;if(B&&!KV(H)){if(E=wb(e,p),E===Ld){var te=Ps(e);te!==_e&&(p=te,E=nE(e,te))}if(E===Uv){var K=Gv;throw Fd(e,_e),fc(e,p),_i(e,mr()),K}}e.finishedWork=H,e.finishedLanes=p,QV(e,E,p)}}return _i(e,mr()),e.callbackNode===s?ZT.bind(null,e):null}function nE(e,n){var s=Xv;if(zf(e)){var c=Fd(e,n);c.flags|=aa,bP(e.containerInfo)}var p=wb(e,n);if(p!==Ld){var b=Ri;Ri=s,b!==null&&qT(b)}return p}function qT(e){Ri===null?Ri=e:Ri.push.apply(Ri,e)}function QV(e,n,s){switch(n){case Hl:case Uv:throw new Error("Root did not complete. This is a bug in React.");case Ld:{Vd(e,Ri,Gl);break}case vb:{if(fc(e,s),Ag(s)&&!dN()){var c=qS+GT-mr();if(c>10){var p=sd(e,_e);if(p!==_e)break;var b=e.suspendedLanes;if(!Il(b,s)){ei(),Ff(e,b);break}e.timeoutHandle=Kx(Vd.bind(null,e,Ri,Gl),c);break}}Vd(e,Ri,Gl);break}case Hv:{if(fc(e,s),Og(s))break;if(!dN()){var E=Mf(e,s),I=E,O=mr()-I,B=yB(O)-O;if(B>10){e.timeoutHandle=Kx(Vd.bind(null,e,Ri,Gl),B);break}}Vd(e,Ri,Gl);break}case HT:{Vd(e,Ri,Gl);break}default:throw new Error("Unknown root exit status.")}}function KV(e){for(var n=e;;){if(n.flags&yl){var s=n.updateQueue;if(s!==null){var c=s.stores;if(c!==null)for(var p=0;p<c.length;p++){var b=c[p],E=b.getSnapshot,I=b.value;try{if(!at(E(),I))return!1}catch{return!1}}}}var O=n.child;if(n.subtreeFlags&yl&&O!==null){O.return=n,n=O;continue}if(n===e)return!0;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}return!0}function fc(e,n){n=cd(n,gb),n=cd(n,Wv),Lg(e,n)}function JT(e){if(xF(),(Gt&(pa|Co))!==Hr)throw new Error("Should not already be working.");Xl();var n=sd(e,_e);if(!Da(n,xt))return _i(e,mr()),null;var s=wb(e,n);if(e.tag!==ec&&s===Ld){var c=Ps(e);c!==_e&&(n=c,s=nE(e,c))}if(s===Uv){var p=Gv;throw Fd(e,_e),fc(e,n),_i(e,mr()),p}if(s===YS)throw new Error("Root did not complete. This is a bug in React.");var b=e.current.alternate;return e.finishedWork=b,e.finishedLanes=n,Vd(e,Ri,Gl),_i(e,mr()),null}function eB(e,n){n!==_e&&(Uh(e,Dt(n,xt)),_i(e,mr()),(Gt&(pa|Co))===Hr&&(Yv(),tc()))}function rE(e,n){var s=Gt;Gt|=UT;try{return e(n)}finally{Gt=s,Gt===Hr&&!ss.isBatchingLegacy&&(Yv(),X1())}}function tB(e,n,s,c,p){var b=gi(),E=fa.transition;try{return fa.transition=null,nr(cr),e(n,s,c,p)}finally{nr(b),fa.transition=E,Gt===Hr&&Yv()}}function Wl(e){cc!==null&&cc.tag===ec&&(Gt&(pa|Co))===Hr&&Xl();var n=Gt;Gt|=UT;var s=fa.transition,c=gi();try{return fa.transition=null,nr(cr),e?e():void 0}finally{nr(c),fa.transition=s,Gt=n,(Gt&(pa|Co))===Hr&&tc()}}function QT(){return(Gt&(pa|Co))!==Hr}function Eb(e,n){La(ZS,Js,e),Js=Dt(Js,n)}function aE(e){Js=ZS.current,Ma(ZS,e)}function Fd(e,n){e.finishedWork=null,e.finishedLanes=_e;var s=e.timeoutHandle;if(s!==eC&&(e.timeoutHandle=eC,IL(s)),fr!==null)for(var c=fr.return;c!==null;){var p=c.alternate;TT(p,c),c=c.return}Ka=e;var b=Bd(e.current,null);return fr=b,Gr=Js=n,Wr=Hl,Gv=null,mb=_e,Wv=_e,gb=_e,Xv=null,Ri=null,YP(),Ko.discardPendingWarnings(),b}function KT(e,n){do{var s=fr;try{if(jy(),I_(),Fn(),XS.current=null,s===null||s.return===null){Wr=Uv,Gv=n,fr=null;return}if(ue&&s.mode&Kt&&ub(s,!0),Ie)if(Cl(),n!==null&&typeof n=="object"&&typeof n.then=="function"){var c=n;Tg(s,c,Gr)}else _g(s,n,Gr);RF(e,s.return,s,n,Gr),rN(s)}catch(p){n=p,fr===s&&s!==null?(s=s.return,fr=s):s=fr;continue}return}while(!0)}function eN(){var e=WS.current;return WS.current=ab,e===null?ab:e}function tN(e){WS.current=e}function nB(){qS=mr()}function Qv(e){mb=Dt(e,mb)}function rB(){Wr===Hl&&(Wr=vb)}function iE(){(Wr===Hl||Wr===vb||Wr===Ld)&&(Wr=Hv),Ka!==null&&(ld(mb)||ld(Wv))&&fc(Ka,Gr)}function aB(e){Wr!==Hv&&(Wr=Ld),Xv===null?Xv=[e]:Xv.push(e)}function iB(){return Wr===Hl}function wb(e,n){var s=Gt;Gt|=pa;var c=eN();if(Ka!==e||Gr!==n){if(qa){var p=e.memoizedUpdaters;p.size>0&&(Kv(e,Gr),p.clear()),Hh(e,n)}Gl=fd(),Fd(e,n)}Iu(n);do try{oB();break}catch(b){KT(e,b)}while(!0);if(jy(),Gt=s,tN(c),fr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ks(),Ka=null,Gr=_e,Wr}function oB(){for(;fr!==null;)nN(fr)}function sB(e,n){var s=Gt;Gt|=pa;var c=eN();if(Ka!==e||Gr!==n){if(qa){var p=e.memoizedUpdaters;p.size>0&&(Kv(e,Gr),p.clear()),Hh(e,n)}Gl=fd(),Yv(),Fd(e,n)}Iu(n);do try{lB();break}catch(b){KT(e,b)}while(!0);return jy(),tN(c),Gt=s,fr!==null?(td(),Hl):(ks(),Ka=null,Gr=_e,Wr)}function lB(){for(;fr!==null&&!bg();)nN(fr)}function nN(e){var n=e.alternate;Xn(e);var s;(e.mode&Kt)!==gt?(xS(e),s=oE(n,e,Js),ub(e,!0)):s=oE(n,e,Js),Fn(),e.memoizedProps=e.pendingProps,s===null?rN(e):fr=s,XS.current=null}function rN(e){var n=e;do{var s=n.alternate,c=n.return;if((n.flags&Ns)===mt){Xn(n);var p=void 0;if((n.mode&Kt)===gt?p=_T(s,n,Js):(xS(n),p=_T(s,n,Js),ub(n,!1)),Fn(),p!==null){fr=p;return}}else{var b=rV(s,n);if(b!==null){b.flags&=Ho,fr=b;return}if((n.mode&Kt)!==gt){ub(n,!1);for(var E=n.actualDuration,I=n.child;I!==null;)E+=I.actualDuration,I=I.sibling;n.actualDuration=E}if(c!==null)c.flags|=Ns,c.subtreeFlags=mt,c.deletions=null;else{Wr=YS,fr=null;return}}var O=n.sibling;if(O!==null){fr=O;return}n=c,fr=n}while(n!==null);Wr===Hl&&(Wr=HT)}function Vd(e,n,s){var c=gi(),p=fa.transition;try{fa.transition=null,nr(cr),uB(e,n,s,c)}finally{fa.transition=p,nr(c)}return null}function uB(e,n,s,c){do Xl();while(cc!==null);if(xB(),(Gt&(pa|Co))!==Hr)throw new Error("Should not already be working.");var p=e.finishedWork,b=e.finishedLanes;if(Sg(b),p===null)return Qc(),null;if(b===_e&&h("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=_e,p===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=lr;var E=Dt(p.lanes,p.childLanes);Vf(e,E),e===Ka&&(Ka=null,fr=null,Gr=_e),((p.subtreeFlags&Na)!==mt||(p.flags&Na)!==mt)&&(Pd||(Pd=!0,KS=s,uE(lo,function(){return Xl(),null})));var I=(p.subtreeFlags&(_a|Ta|Ui|Na))!==mt,O=(p.flags&(_a|Ta|Ui|Na))!==mt;if(I||O){var B=fa.transition;fa.transition=null;var H=gi();nr(cr);var te=Gt;Gt|=Co,XS.current=null,lV(e,p),eT(),SV(e,p,b),SL(e.containerInfo),e.current=p,Nu(b),EV(p,e,b),Ng(),Eu(),Gt=te,nr(H),fa.transition=B}else e.current=p,eT();var K=Pd;if(Pd?(Pd=!1,cc=e,Zv=b):(Dp=0,xb=null),E=e.pendingLanes,E===_e&&(Op=null),K||sN(e.current,!1),Os(p.stateNode,c),qa&&e.memoizedUpdaters.clear(),$V(),_i(e,mr()),n!==null)for(var he=e.onRecoverableError,ve=0;ve<n.length;ve++){var Se=n[ve],Ke=Se.stack,yt=Se.digest;he(Se.value,{componentStack:Ke,digest:yt})}if(yb){yb=!1;var pt=JS;throw JS=null,pt}return Da(Zv,xt)&&e.tag!==ec&&Xl(),E=e.pendingLanes,Da(E,xt)?(yF(),e===eE?qv++:(qv=0,eE=e)):qv=0,tc(),Qc(),null}function Xl(){if(cc!==null){var e=Vr(Zv),n=wx(fo,e),s=fa.transition,c=gi();try{return fa.transition=null,nr(n),dB()}finally{nr(c),fa.transition=s}}return!1}function cB(e){QS.push(e),Pd||(Pd=!0,uE(lo,function(){return Xl(),null}))}function dB(){if(cc===null)return!1;var e=KS;KS=null;var n=cc,s=Zv;if(cc=null,Zv=_e,(Gt&(pa|Co))!==Hr)throw new Error("Cannot flush passive effects while already rendering.");tE=!0,bb=!1,ed(s);var c=Gt;Gt|=Co,AV(n.current),_V(n,n.current,s,e);{var p=QS;QS=[];for(var b=0;b<p.length;b++){var E=p[b];fV(n,E)}}uo(),sN(n.current,!0),Gt=c,tc(),bb?n===xb?Dp++:(Dp=0,xb=n):Dp=0,tE=!1,bb=!1,kh(n);{var I=n.current.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}return!0}function aN(e){return Op!==null&&Op.has(e)}function fB(e){Op===null?Op=new Set([e]):Op.add(e)}function pB(e){yb||(yb=!0,JS=e)}var hB=pB;function iN(e,n,s){var c=kd(s,n),p=nT(e,c,xt),b=rc(e,p,xt),E=ei();b!==null&&(Al(b,xt,E),_i(b,E))}function $n(e,n,s){if(iV(s),em(!1),e.tag===R){iN(e,e,s);return}var c=null;for(c=n;c!==null;){if(c.tag===R){iN(c,e,s);return}else if(c.tag===C){var p=c.type,b=c.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&!aN(b)){var E=kd(s,e),I=_S(c,E,xt),O=rc(c,I,xt),B=ei();O!==null&&(Al(O,xt,B),_i(O,B));return}}c=c.return}h(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
204
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:B=" You returned: "+N,h("%s must not return anything besides a function, which is used for clean-up.%s",O,B)}}}b=b.next}while(b!==p)}}function fV(e,n){if((n.flags&ut)!==mt)switch(n.tag){case P:{var s=n.stateNode.passiveEffectDuration,c=n.memoizedProps,p=c.id,b=c.onPostCommit,E=K_(),N=n.alternate===null?"mount":"update";Q_()&&(N="nested-update"),typeof b=="function"&&b(p,N,s,E);var O=n.return;e:for(;O!==null;){switch(O.tag){case R:var B=O.stateNode;B.passiveEffectDuration+=s;break e;case P:var H=O.stateNode;H.passiveEffectDuration+=s;break e}O=O.return}break}}}function pV(e,n,s,c){if((s.flags&Ui)!==mt)switch(s.tag){case x:case U:case Y:{if(!ca)if(s.mode&Kt)try{Zs(),lc(zr|Br,s)}finally{Ys(s)}else lc(zr|Br,s);break}case C:{var p=s.stateNode;if(s.flags&ut&&!ca)if(n===null)if(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),s.mode&Kt)try{Zs(),p.componentDidMount()}finally{Ys(s)}else p.componentDidMount();else{var b=s.elementType===s.type?n.memoizedProps:es(s.type,n.memoizedProps),E=n.memoizedState;if(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),s.mode&Kt)try{Zs(),p.componentDidUpdate(b,E,p.__reactInternalSnapshotBeforeUpdate)}finally{Ys(s)}else p.componentDidUpdate(b,E,p.__reactInternalSnapshotBeforeUpdate)}var N=s.updateQueue;N!==null&&(s.type===s.elementType&&!Md&&(p.props!==s.memoizedProps&&h("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",It(s)||"instance"),p.state!==s.memoizedState&&h("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",It(s)||"instance")),f_(s,N,p));break}case R:{var O=s.updateQueue;if(O!==null){var B=null;if(s.child!==null)switch(s.child.tag){case A:B=s.child.stateNode;break;case C:B=s.child.stateNode;break}f_(s,O,B)}break}case A:{var H=s.stateNode;if(n===null&&s.flags&ut){var te=s.type,K=s.memoizedProps;OL(H,te,K)}break}case T:break;case j:break;case P:{{var he=s.memoizedProps,ve=he.onCommit,Se=he.onRender,Ke=s.stateNode.effectDuration,yt=K_(),pt=n===null?"mount":"update";Q_()&&(pt="nested-update"),typeof Se=="function"&&Se(s.memoizedProps.id,pt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,yt);{typeof ve=="function"&&ve(s.memoizedProps.id,pt,Ke,yt),cB(s);var Wt=s.return;e:for(;Wt!==null;){switch(Wt.tag){case R:var $t=Wt.stateNode;$t.effectDuration+=Ke;break e;case P:var se=Wt.stateNode;se.effectDuration+=Ke;break e}Wt=Wt.return}}}break}case z:{CV(e,s);break}case ae:case ie:case Re:case be:case xe:case Le: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.")}ca||s.flags&Xa&&OT(s)}function hV(e){switch(e.tag){case x:case U:case Y:{if(e.mode&Kt)try{Zs(),IT(e,e.return)}finally{Ys(e)}else IT(e,e.return);break}case C:{var n=e.stateNode;typeof n.componentDidMount=="function"&&sV(e,e.return,n),AT(e,e.return);break}case A:{AT(e,e.return);break}}}function vV(e,n){for(var s=null,c=e;;){if(c.tag===A){if(s===null){s=c;try{var p=c.stateNode;n?$L(p):HL(c.stateNode,c.memoizedProps)}catch(E){$n(e,e.return,E)}}}else if(c.tag===T){if(s===null)try{var b=c.stateNode;n?UL(b):GL(b,c.memoizedProps)}catch(E){$n(e,e.return,E)}}else if(!((c.tag===be||c.tag===xe)&&c.memoizedState!==null&&c!==e)){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;s===c&&(s=null),c=c.return}s===c&&(s=null),c.sibling.return=c.return,c=c.sibling}}function OT(e){var n=e.ref;if(n!==null){var s=e.stateNode,c;switch(e.tag){case A:c=s;break;default:c=s}if(typeof n=="function"){var p;if(e.mode&Kt)try{Zs(),p=n(c)}finally{Ys(e)}else p=n(c);typeof p=="function"&&h("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(e))}else n.hasOwnProperty("current")||h("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",It(e)),n.current=c}}function mV(e){var n=e.alternate;n!==null&&(n.return=null),e.return=null}function DT(e){var n=e.alternate;n!==null&&(e.alternate=null,DT(n));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===A){var s=e.stateNode;s!==null&&EP(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function gV(e){for(var n=e.return;n!==null;){if(kT(n))return n;n=n.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function kT(e){return e.tag===A||e.tag===R||e.tag===j}function MT(e){var n=e;e:for(;;){for(;n.sibling===null;){if(n.return===null||kT(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==A&&n.tag!==T&&n.tag!==ge;){if(n.flags&Nn||n.child===null||n.tag===j)continue e;n.child.return=n,n=n.child}if(!(n.flags&Nn))return n.stateNode}}function yV(e){var n=gV(e);switch(n.tag){case A:{var s=n.stateNode;n.flags&ci&&(L1(s),n.flags&=~ci);var c=MT(e);HS(e,c,s);break}case R:case j:{var p=n.stateNode.containerInfo,b=MT(e);US(e,b,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function US(e,n,s){var c=e.tag,p=c===A||c===T;if(p){var b=e.stateNode;n?FL(s,b,n):LL(s,b)}else if(c!==j){var E=e.child;if(E!==null){US(E,n,s);for(var N=E.sibling;N!==null;)US(N,n,s),N=N.sibling}}}function HS(e,n,s){var c=e.tag,p=c===A||c===T;if(p){var b=e.stateNode;n?PL(s,b,n):ML(s,b)}else if(c!==j){var E=e.child;if(E!==null){HS(E,n,s);for(var N=E.sibling;N!==null;)HS(N,n,s),N=N.sibling}}}var da=null,is=!1;function bV(e,n,s){{var c=n;e:for(;c!==null;){switch(c.tag){case A:{da=c.stateNode,is=!1;break e}case R:{da=c.stateNode.containerInfo,is=!0;break e}case j:{da=c.stateNode.containerInfo,is=!0;break e}}c=c.return}if(da===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");LT(e,n,s),da=null,is=!1}mV(s)}function uc(e,n,s){for(var c=s.child;c!==null;)LT(e,n,c),c=c.sibling}function LT(e,n,s){switch(Cg(s),s.tag){case A:ca||jp(s,n);case T:{{var c=da,p=is;da=null,uc(e,n,s),da=c,is=p,da!==null&&(is?BL(da,s.stateNode):VL(da,s.stateNode))}return}case ge:{da!==null&&(is?zL(da,s.stateNode):tC(da,s.stateNode));return}case j:{{var b=da,E=is;da=s.stateNode.containerInfo,is=!0,uc(e,n,s),da=b,is=E}return}case x:case U:case X:case Y:{if(!ca){var N=s.updateQueue;if(N!==null){var O=N.lastEffect;if(O!==null){var B=O.next,H=B;do{var te=H,K=te.destroy,he=te.tag;K!==void 0&&((he&Gs)!==wi?hb(s,n,K):(he&zr)!==wi&&(Tu(s),s.mode&Kt?(Zs(),hb(s,n,K),Ys(s)):hb(s,n,K),Kc())),H=H.next}while(H!==B)}}}uc(e,n,s);return}case C:{if(!ca){jp(s,n);var ve=s.stateNode;typeof ve.componentWillUnmount=="function"&&$S(s,n,ve)}uc(e,n,s);return}case Re:{uc(e,n,s);return}case be:{if(s.mode&ft){var Se=ca;ca=Se||s.memoizedState!==null,uc(e,n,s),ca=Se}else uc(e,n,s);break}default:{uc(e,n,s);return}}}function xV(e){e.memoizedState}function CV(e,n){var s=n.memoizedState;if(s===null){var c=n.alternate;if(c!==null){var p=c.memoizedState;if(p!==null){var b=p.dehydrated;b!==null&&oP(b)}}}}function PT(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new aV),n.forEach(function(c){var p=gB.bind(null,e,c);if(!s.has(c)){if(s.add(c),qa)if(Ip!==null&&Ap!==null)Kv(Ap,Ip);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");c.then(p,p)}})}}function SV(e,n,s){Ip=s,Ap=e,Xn(n),FT(n,e),Xn(n),Ip=null,Ap=null}function os(e,n,s){var c=n.deletions;if(c!==null)for(var p=0;p<c.length;p++){var b=c[p];try{bV(e,n,b)}catch(O){$n(b,n,O)}}var E=jc();if(n.subtreeFlags&Ta)for(var N=n.child;N!==null;)Xn(N),FT(N,e),N=N.sibling;Xn(E)}function FT(e,n,s){var c=e.alternate,p=e.flags;switch(e.tag){case x:case U:case X:case Y:{if(os(n,e),qs(e),p&ut){try{as(Gs|Br,e,e.return),lc(Gs|Br,e)}catch(Nt){$n(e,e.return,Nt)}if(e.mode&Kt){try{Zs(),as(zr|Br,e,e.return)}catch(Nt){$n(e,e.return,Nt)}Ys(e)}else try{as(zr|Br,e,e.return)}catch(Nt){$n(e,e.return,Nt)}}return}case C:{os(n,e),qs(e),p&Xa&&c!==null&&jp(c,c.return);return}case A:{os(n,e),qs(e),p&Xa&&c!==null&&jp(c,c.return);{if(e.flags&ci){var b=e.stateNode;try{L1(b)}catch(Nt){$n(e,e.return,Nt)}}if(p&ut){var E=e.stateNode;if(E!=null){var N=e.memoizedProps,O=c!==null?c.memoizedProps:N,B=e.type,H=e.updateQueue;if(e.updateQueue=null,H!==null)try{DL(E,H,B,O,N,e)}catch(Nt){$n(e,e.return,Nt)}}}}return}case T:{if(os(n,e),qs(e),p&ut){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var te=e.stateNode,K=e.memoizedProps,he=c!==null?c.memoizedProps:K;try{kL(te,he,K)}catch(Nt){$n(e,e.return,Nt)}}return}case R:{if(os(n,e),qs(e),p&ut&&c!==null){var ve=c.memoizedState;if(ve.isDehydrated)try{iP(n.containerInfo)}catch(Nt){$n(e,e.return,Nt)}}return}case j:{os(n,e),qs(e);return}case z:{os(n,e),qs(e);var Se=e.child;if(Se.flags&Ts){var Ke=Se.stateNode,yt=Se.memoizedState,pt=yt!==null;if(Ke.isHidden=pt,pt){var Wt=Se.alternate!==null&&Se.alternate.memoizedState!==null;Wt||nB()}}if(p&ut){try{xV(e)}catch(Nt){$n(e,e.return,Nt)}PT(e)}return}case be:{var $t=c!==null&&c.memoizedState!==null;if(e.mode&ft){var se=ca;ca=se||$t,os(n,e),ca=se}else os(n,e);if(qs(e),p&Ts){var Ee=e.stateNode,le=e.memoizedState,Fe=le!==null,et=e;if(Ee.isHidden=Fe,Fe&&!$t&&(et.mode&ft)!==gt){it=et;for(var Ze=et.child;Ze!==null;)it=Ze,wV(Ze),Ze=Ze.sibling}vV(et,Fe)}return}case ae:{os(n,e),qs(e),p&ut&&PT(e);return}case Re:return;default:{os(n,e),qs(e);return}}}function qs(e){var n=e.flags;if(n&Nn){try{yV(e)}catch(s){$n(e,e.return,s)}e.flags&=~Nn}n&oo&&(e.flags&=~oo)}function EV(e,n,s){Ip=s,Ap=n,it=e,VT(e,n,s),Ip=null,Ap=null}function VT(e,n,s){for(var c=(e.mode&ft)!==gt;it!==null;){var p=it,b=p.child;if(p.tag===be&&c){var E=p.memoizedState!==null,N=E||pb;if(N){GS(e,n,s);continue}else{var O=p.alternate,B=O!==null&&O.memoizedState!==null,H=B||ca,te=pb,K=ca;pb=N,ca=H,ca&&!K&&(it=p,RV(p));for(var he=b;he!==null;)it=he,VT(he,n,s),he=he.sibling;it=p,pb=te,ca=K,GS(e,n,s);continue}}(p.subtreeFlags&Ui)!==mt&&b!==null?(b.return=p,it=b):GS(e,n,s)}}function GS(e,n,s){for(;it!==null;){var c=it;if((c.flags&Ui)!==mt){var p=c.alternate;Xn(c);try{pV(n,p,c,s)}catch(E){$n(c,c.return,E)}Fn()}if(c===e){it=null;return}var b=c.sibling;if(b!==null){b.return=c.return,it=b;return}it=c.return}}function wV(e){for(;it!==null;){var n=it,s=n.child;switch(n.tag){case x:case U:case X:case Y:{if(n.mode&Kt)try{Zs(),as(zr,n,n.return)}finally{Ys(n)}else as(zr,n,n.return);break}case C:{jp(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&$S(n,n.return,c);break}case A:{jp(n,n.return);break}case be:{var p=n.memoizedState!==null;if(p){BT(e);continue}break}}s!==null?(s.return=n,it=s):BT(e)}}function BT(e){for(;it!==null;){var n=it;if(n===e){it=null;return}var s=n.sibling;if(s!==null){s.return=n.return,it=s;return}it=n.return}}function RV(e){for(;it!==null;){var n=it,s=n.child;if(n.tag===be){var c=n.memoizedState!==null;if(c){zT(e);continue}}s!==null?(s.return=n,it=s):zT(e)}}function zT(e){for(;it!==null;){var n=it;Xn(n);try{hV(n)}catch(c){$n(n,n.return,c)}if(Fn(),n===e){it=null;return}var s=n.sibling;if(s!==null){s.return=n.return,it=s;return}it=n.return}}function _V(e,n,s,c){it=n,TV(n,e,s,c)}function TV(e,n,s,c){for(;it!==null;){var p=it,b=p.child;(p.subtreeFlags&Na)!==mt&&b!==null?(b.return=p,it=b):NV(e,n,s,c)}}function NV(e,n,s,c){for(;it!==null;){var p=it;if((p.flags&Ra)!==mt){Xn(p);try{IV(n,p,s,c)}catch(E){$n(p,p.return,E)}Fn()}if(p===e){it=null;return}var b=p.sibling;if(b!==null){b.return=p.return,it=b;return}it=p.return}}function IV(e,n,s,c){switch(n.tag){case x:case U:case Y:{if(n.mode&Kt){SS();try{lc(la|Br,n)}finally{CS(n)}}else lc(la|Br,n);break}}}function AV(e){it=e,jV()}function jV(){for(;it!==null;){var e=it,n=e.child;if((it.flags&nn)!==mt){var s=e.deletions;if(s!==null){for(var c=0;c<s.length;c++){var p=s[c];it=p,kV(p,e)}{var b=e.alternate;if(b!==null){var E=b.child;if(E!==null){b.child=null;do{var N=E.sibling;E.sibling=null,E=N}while(E!==null)}}}it=e}}(e.subtreeFlags&Na)!==mt&&n!==null?(n.return=e,it=n):OV()}}function OV(){for(;it!==null;){var e=it;(e.flags&Ra)!==mt&&(Xn(e),DV(e),Fn());var n=e.sibling;if(n!==null){n.return=e.return,it=n;return}it=e.return}}function DV(e){switch(e.tag){case x:case U:case Y:{e.mode&Kt?(SS(),as(la|Br,e,e.return),CS(e)):as(la|Br,e,e.return);break}}}function kV(e,n){for(;it!==null;){var s=it;Xn(s),LV(s,n),Fn();var c=s.child;c!==null?(c.return=s,it=c):MV(e)}}function MV(e){for(;it!==null;){var n=it,s=n.sibling,c=n.return;if(DT(n),n===e){it=null;return}if(s!==null){s.return=c,it=s;return}it=c}}function LV(e,n){switch(e.tag){case x:case U:case Y:{e.mode&Kt?(SS(),as(la,e,n),CS(e)):as(la,e,n);break}}}function PV(e){switch(e.tag){case x:case U:case Y:{try{lc(zr|Br,e)}catch(s){$n(e,e.return,s)}break}case C:{var n=e.stateNode;try{n.componentDidMount()}catch(s){$n(e,e.return,s)}break}}}function FV(e){switch(e.tag){case x:case U:case Y:{try{lc(la|Br,e)}catch(n){$n(e,e.return,n)}break}}}function VV(e){switch(e.tag){case x:case U:case Y:{try{as(zr|Br,e,e.return)}catch(s){$n(e,e.return,s)}break}case C:{var n=e.stateNode;typeof n.componentWillUnmount=="function"&&$S(e,e.return,n);break}}}function BV(e){switch(e.tag){case x:case U:case Y:try{as(la|Br,e,e.return)}catch(n){$n(e,e.return,n)}}}if(typeof Symbol=="function"&&Symbol.for){var $v=Symbol.for;$v("selector.component"),$v("selector.has_pseudo_class"),$v("selector.role"),$v("selector.test_id"),$v("selector.text")}var zV=[];function $V(){zV.forEach(function(e){return e()})}var UV=l.ReactCurrentActQueue;function HV(e){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&n!==!1}}function $T(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&UV.current!==null&&h("The current testing environment is not configured to support act(...)"),e}}var GV=Math.ceil,WS=l.ReactCurrentDispatcher,XS=l.ReactCurrentOwner,fa=l.ReactCurrentBatchConfig,ss=l.ReactCurrentActQueue,Hr=0,UT=1,pa=2,Co=4,Hl=0,Uv=1,Ld=2,vb=3,Hv=4,HT=5,YS=6,Gt=Hr,Ka=null,fr=null,Gr=_e,Js=_e,ZS=Ku(_e),Wr=Hl,Gv=null,mb=_e,Wv=_e,gb=_e,Xv=null,Ri=null,qS=0,GT=500,WT=1/0,WV=500,Gl=null;function Yv(){WT=mr()+WV}function XT(){return WT}var yb=!1,JS=null,Op=null,Pd=!1,cc=null,Zv=_e,QS=[],KS=null,XV=50,qv=0,eE=null,tE=!1,bb=!1,YV=50,Dp=0,xb=null,Jv=Mn,Cb=_e,YT=!1;function Sb(){return Ka}function ei(){return(Gt&(pa|Co))!==Hr?mr():(Jv!==Mn||(Jv=mr()),Jv)}function dc(e){var n=e.mode;if((n&ft)===gt)return xt;if((Gt&pa)!==Hr&&Gr!==_e)return ku(Gr);var s=HP()!==UP;if(s){if(fa.transition!==null){var c=fa.transition;c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(e)}return Cb===lr&&(Cb=kg()),Cb}var p=gi();if(p!==lr)return p;var b=NL();return b}function ZV(e){var n=e.mode;return(n&ft)===gt?xt:Oa()}function Xr(e,n,s,c){bB(),YT&&h("useInsertionEffect must not schedule updates."),tE&&(bb=!0),Al(e,s,c),(Gt&pa)!==_e&&e===Ka?SB(n):(qa&&Bf(e,n,s),EB(n),e===Ka&&((Gt&pa)===Hr&&(Wv=Dt(Wv,s)),Wr===Hv&&fc(e,Gr)),_i(e,c),s===xt&&Gt===Hr&&(n.mode&ft)===gt&&!ss.isBatchingLegacy&&(Yv(),X1()))}function qV(e,n,s){var c=e.current;c.lanes=n,Al(e,n,s),_i(e,s)}function JV(e){return(Gt&pa)!==Hr}function _i(e,n){var s=e.callbackNode;xx(e,n);var c=sd(e,e===Ka?Gr:_e);if(c===_e){s!==null&&cN(s),e.callbackNode=null,e.callbackPriority=lr;return}var p=ur(c),b=e.callbackPriority;if(b===p&&!(ss.current!==null&&s!==lE)){s==null&&b!==xt&&h("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&cN(s);var E;if(p===xt)e.tag===ec?(ss.isBatchingLegacy!==null&&(ss.didScheduleLegacyUpdate=!0),_P(JT.bind(null,e))):W1(JT.bind(null,e)),ss.current!==null?ss.current.push(tc):AL(function(){(Gt&(pa|Co))===Hr&&tc()}),E=null;else{var N;switch(Vr(c)){case cr:N=Ia;break;case Xo:N=wu;break;case fo:N=lo;break;case Mu:N=Jc;break;default:N=lo;break}E=uE(N,ZT.bind(null,e))}e.callbackPriority=p,e.callbackNode=E}function ZT(e,n){if(bF(),Jv=Mn,Cb=_e,(Gt&(pa|Co))!==Hr)throw new Error("Should not already be working.");var s=e.callbackNode,c=Xl();if(c&&e.callbackNode!==s)return null;var p=sd(e,e===Ka?Gr:_e);if(p===_e)return null;var b=!ud(e,p)&&!Dg(e,p)&&!n,E=b?sB(e,p):wb(e,p);if(E!==Hl){if(E===Ld){var N=Ps(e);N!==_e&&(p=N,E=nE(e,N))}if(E===Uv){var O=Gv;throw Fd(e,_e),fc(e,p),_i(e,mr()),O}if(E===YS)fc(e,p);else{var B=!ud(e,p),H=e.current.alternate;if(B&&!KV(H)){if(E=wb(e,p),E===Ld){var te=Ps(e);te!==_e&&(p=te,E=nE(e,te))}if(E===Uv){var K=Gv;throw Fd(e,_e),fc(e,p),_i(e,mr()),K}}e.finishedWork=H,e.finishedLanes=p,QV(e,E,p)}}return _i(e,mr()),e.callbackNode===s?ZT.bind(null,e):null}function nE(e,n){var s=Xv;if(zf(e)){var c=Fd(e,n);c.flags|=aa,bP(e.containerInfo)}var p=wb(e,n);if(p!==Ld){var b=Ri;Ri=s,b!==null&&qT(b)}return p}function qT(e){Ri===null?Ri=e:Ri.push.apply(Ri,e)}function QV(e,n,s){switch(n){case Hl:case Uv:throw new Error("Root did not complete. This is a bug in React.");case Ld:{Vd(e,Ri,Gl);break}case vb:{if(fc(e,s),Ag(s)&&!dN()){var c=qS+GT-mr();if(c>10){var p=sd(e,_e);if(p!==_e)break;var b=e.suspendedLanes;if(!Il(b,s)){ei(),Ff(e,b);break}e.timeoutHandle=Kx(Vd.bind(null,e,Ri,Gl),c);break}}Vd(e,Ri,Gl);break}case Hv:{if(fc(e,s),Og(s))break;if(!dN()){var E=Mf(e,s),N=E,O=mr()-N,B=yB(O)-O;if(B>10){e.timeoutHandle=Kx(Vd.bind(null,e,Ri,Gl),B);break}}Vd(e,Ri,Gl);break}case HT:{Vd(e,Ri,Gl);break}default:throw new Error("Unknown root exit status.")}}function KV(e){for(var n=e;;){if(n.flags&yl){var s=n.updateQueue;if(s!==null){var c=s.stores;if(c!==null)for(var p=0;p<c.length;p++){var b=c[p],E=b.getSnapshot,N=b.value;try{if(!at(E(),N))return!1}catch{return!1}}}}var O=n.child;if(n.subtreeFlags&yl&&O!==null){O.return=n,n=O;continue}if(n===e)return!0;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}return!0}function fc(e,n){n=cd(n,gb),n=cd(n,Wv),Lg(e,n)}function JT(e){if(xF(),(Gt&(pa|Co))!==Hr)throw new Error("Should not already be working.");Xl();var n=sd(e,_e);if(!Da(n,xt))return _i(e,mr()),null;var s=wb(e,n);if(e.tag!==ec&&s===Ld){var c=Ps(e);c!==_e&&(n=c,s=nE(e,c))}if(s===Uv){var p=Gv;throw Fd(e,_e),fc(e,n),_i(e,mr()),p}if(s===YS)throw new Error("Root did not complete. This is a bug in React.");var b=e.current.alternate;return e.finishedWork=b,e.finishedLanes=n,Vd(e,Ri,Gl),_i(e,mr()),null}function eB(e,n){n!==_e&&(Uh(e,Dt(n,xt)),_i(e,mr()),(Gt&(pa|Co))===Hr&&(Yv(),tc()))}function rE(e,n){var s=Gt;Gt|=UT;try{return e(n)}finally{Gt=s,Gt===Hr&&!ss.isBatchingLegacy&&(Yv(),X1())}}function tB(e,n,s,c,p){var b=gi(),E=fa.transition;try{return fa.transition=null,nr(cr),e(n,s,c,p)}finally{nr(b),fa.transition=E,Gt===Hr&&Yv()}}function Wl(e){cc!==null&&cc.tag===ec&&(Gt&(pa|Co))===Hr&&Xl();var n=Gt;Gt|=UT;var s=fa.transition,c=gi();try{return fa.transition=null,nr(cr),e?e():void 0}finally{nr(c),fa.transition=s,Gt=n,(Gt&(pa|Co))===Hr&&tc()}}function QT(){return(Gt&(pa|Co))!==Hr}function Eb(e,n){La(ZS,Js,e),Js=Dt(Js,n)}function aE(e){Js=ZS.current,Ma(ZS,e)}function Fd(e,n){e.finishedWork=null,e.finishedLanes=_e;var s=e.timeoutHandle;if(s!==eC&&(e.timeoutHandle=eC,IL(s)),fr!==null)for(var c=fr.return;c!==null;){var p=c.alternate;TT(p,c),c=c.return}Ka=e;var b=Bd(e.current,null);return fr=b,Gr=Js=n,Wr=Hl,Gv=null,mb=_e,Wv=_e,gb=_e,Xv=null,Ri=null,YP(),Ko.discardPendingWarnings(),b}function KT(e,n){do{var s=fr;try{if(jy(),I_(),Fn(),XS.current=null,s===null||s.return===null){Wr=Uv,Gv=n,fr=null;return}if(ue&&s.mode&Kt&&ub(s,!0),Ie)if(Cl(),n!==null&&typeof n=="object"&&typeof n.then=="function"){var c=n;Tg(s,c,Gr)}else _g(s,n,Gr);RF(e,s.return,s,n,Gr),rN(s)}catch(p){n=p,fr===s&&s!==null?(s=s.return,fr=s):s=fr;continue}return}while(!0)}function eN(){var e=WS.current;return WS.current=ab,e===null?ab:e}function tN(e){WS.current=e}function nB(){qS=mr()}function Qv(e){mb=Dt(e,mb)}function rB(){Wr===Hl&&(Wr=vb)}function iE(){(Wr===Hl||Wr===vb||Wr===Ld)&&(Wr=Hv),Ka!==null&&(ld(mb)||ld(Wv))&&fc(Ka,Gr)}function aB(e){Wr!==Hv&&(Wr=Ld),Xv===null?Xv=[e]:Xv.push(e)}function iB(){return Wr===Hl}function wb(e,n){var s=Gt;Gt|=pa;var c=eN();if(Ka!==e||Gr!==n){if(qa){var p=e.memoizedUpdaters;p.size>0&&(Kv(e,Gr),p.clear()),Hh(e,n)}Gl=fd(),Fd(e,n)}Iu(n);do try{oB();break}catch(b){KT(e,b)}while(!0);if(jy(),Gt=s,tN(c),fr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ks(),Ka=null,Gr=_e,Wr}function oB(){for(;fr!==null;)nN(fr)}function sB(e,n){var s=Gt;Gt|=pa;var c=eN();if(Ka!==e||Gr!==n){if(qa){var p=e.memoizedUpdaters;p.size>0&&(Kv(e,Gr),p.clear()),Hh(e,n)}Gl=fd(),Yv(),Fd(e,n)}Iu(n);do try{lB();break}catch(b){KT(e,b)}while(!0);return jy(),tN(c),Gt=s,fr!==null?(td(),Hl):(ks(),Ka=null,Gr=_e,Wr)}function lB(){for(;fr!==null&&!bg();)nN(fr)}function nN(e){var n=e.alternate;Xn(e);var s;(e.mode&Kt)!==gt?(xS(e),s=oE(n,e,Js),ub(e,!0)):s=oE(n,e,Js),Fn(),e.memoizedProps=e.pendingProps,s===null?rN(e):fr=s,XS.current=null}function rN(e){var n=e;do{var s=n.alternate,c=n.return;if((n.flags&Ns)===mt){Xn(n);var p=void 0;if((n.mode&Kt)===gt?p=_T(s,n,Js):(xS(n),p=_T(s,n,Js),ub(n,!1)),Fn(),p!==null){fr=p;return}}else{var b=rV(s,n);if(b!==null){b.flags&=Ho,fr=b;return}if((n.mode&Kt)!==gt){ub(n,!1);for(var E=n.actualDuration,N=n.child;N!==null;)E+=N.actualDuration,N=N.sibling;n.actualDuration=E}if(c!==null)c.flags|=Ns,c.subtreeFlags=mt,c.deletions=null;else{Wr=YS,fr=null;return}}var O=n.sibling;if(O!==null){fr=O;return}n=c,fr=n}while(n!==null);Wr===Hl&&(Wr=HT)}function Vd(e,n,s){var c=gi(),p=fa.transition;try{fa.transition=null,nr(cr),uB(e,n,s,c)}finally{fa.transition=p,nr(c)}return null}function uB(e,n,s,c){do Xl();while(cc!==null);if(xB(),(Gt&(pa|Co))!==Hr)throw new Error("Should not already be working.");var p=e.finishedWork,b=e.finishedLanes;if(Sg(b),p===null)return Qc(),null;if(b===_e&&h("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=_e,p===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=lr;var E=Dt(p.lanes,p.childLanes);Vf(e,E),e===Ka&&(Ka=null,fr=null,Gr=_e),((p.subtreeFlags&Na)!==mt||(p.flags&Na)!==mt)&&(Pd||(Pd=!0,KS=s,uE(lo,function(){return Xl(),null})));var N=(p.subtreeFlags&(_a|Ta|Ui|Na))!==mt,O=(p.flags&(_a|Ta|Ui|Na))!==mt;if(N||O){var B=fa.transition;fa.transition=null;var H=gi();nr(cr);var te=Gt;Gt|=Co,XS.current=null,lV(e,p),eT(),SV(e,p,b),SL(e.containerInfo),e.current=p,Nu(b),EV(p,e,b),Ng(),Eu(),Gt=te,nr(H),fa.transition=B}else e.current=p,eT();var K=Pd;if(Pd?(Pd=!1,cc=e,Zv=b):(Dp=0,xb=null),E=e.pendingLanes,E===_e&&(Op=null),K||sN(e.current,!1),Os(p.stateNode,c),qa&&e.memoizedUpdaters.clear(),$V(),_i(e,mr()),n!==null)for(var he=e.onRecoverableError,ve=0;ve<n.length;ve++){var Se=n[ve],Ke=Se.stack,yt=Se.digest;he(Se.value,{componentStack:Ke,digest:yt})}if(yb){yb=!1;var pt=JS;throw JS=null,pt}return Da(Zv,xt)&&e.tag!==ec&&Xl(),E=e.pendingLanes,Da(E,xt)?(yF(),e===eE?qv++:(qv=0,eE=e)):qv=0,tc(),Qc(),null}function Xl(){if(cc!==null){var e=Vr(Zv),n=wx(fo,e),s=fa.transition,c=gi();try{return fa.transition=null,nr(n),dB()}finally{nr(c),fa.transition=s}}return!1}function cB(e){QS.push(e),Pd||(Pd=!0,uE(lo,function(){return Xl(),null}))}function dB(){if(cc===null)return!1;var e=KS;KS=null;var n=cc,s=Zv;if(cc=null,Zv=_e,(Gt&(pa|Co))!==Hr)throw new Error("Cannot flush passive effects while already rendering.");tE=!0,bb=!1,ed(s);var c=Gt;Gt|=Co,AV(n.current),_V(n,n.current,s,e);{var p=QS;QS=[];for(var b=0;b<p.length;b++){var E=p[b];fV(n,E)}}uo(),sN(n.current,!0),Gt=c,tc(),bb?n===xb?Dp++:(Dp=0,xb=n):Dp=0,tE=!1,bb=!1,kh(n);{var N=n.current.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}return!0}function aN(e){return Op!==null&&Op.has(e)}function fB(e){Op===null?Op=new Set([e]):Op.add(e)}function pB(e){yb||(yb=!0,JS=e)}var hB=pB;function iN(e,n,s){var c=kd(s,n),p=nT(e,c,xt),b=rc(e,p,xt),E=ei();b!==null&&(Al(b,xt,E),_i(b,E))}function $n(e,n,s){if(iV(s),em(!1),e.tag===R){iN(e,e,s);return}var c=null;for(c=n;c!==null;){if(c.tag===R){iN(c,e,s);return}else if(c.tag===C){var p=c.type,b=c.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&!aN(b)){var E=kd(s,e),N=_S(c,E,xt),O=rc(c,N,xt),B=ei();O!==null&&(Al(O,xt,B),_i(O,B));return}}c=c.return}h(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
205
205
|
|
|
206
206
|
Error message:
|
|
207
207
|
|
|
@@ -223,29 +223,29 @@ act(() => {
|
|
|
223
223
|
});
|
|
224
224
|
/* assert on the output */
|
|
225
225
|
|
|
226
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function em(e){YT=e}var So=null,kp=null,RB=function(e){So=e};function Mp(e){{if(So===null)return e;var n=So(e);return n===void 0?e:n.current}}function cE(e){return Mp(e)}function dE(e){{if(So===null)return e;var n=So(e);if(n===void 0){if(e!=null&&typeof e.render=="function"){var s=Mp(e.render);if(e.render!==s){var c={$$typeof:Ye,render:s};return e.displayName!==void 0&&(c.displayName=e.displayName),c}}return e}return n.current}}function fN(e,n){{if(So===null)return!1;var s=e.elementType,c=n.type,p=!1,b=typeof c=="object"&&c!==null?c.$$typeof:null;switch(e.tag){case C:{typeof c=="function"&&(p=!0);break}case x:{(typeof c=="function"||b===vt)&&(p=!0);break}case U:{(b===Ye||b===vt)&&(p=!0);break}case X:case Y:{(b===kt||b===vt)&&(p=!0);break}default:return!1}if(p){var E=So(s);if(E!==void 0&&E===So(c))return!0}return!1}}function pN(e){{if(So===null||typeof WeakSet!="function")return;kp===null&&(kp=new WeakSet),kp.add(e)}}var _B=function(e,n){{if(So===null)return;var s=n.staleFamilies,c=n.updatedFamilies;Xl(),Wl(function(){fE(e.current,c,s)})}},TB=function(e,n){{if(e.context!==Hi)return;Xl(),Wl(function(){tm(n,e,null,null)})}};function fE(e,n,s){{var c=e.alternate,p=e.child,b=e.sibling,E=e.tag,
|
|
226
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function em(e){YT=e}var So=null,kp=null,RB=function(e){So=e};function Mp(e){{if(So===null)return e;var n=So(e);return n===void 0?e:n.current}}function cE(e){return Mp(e)}function dE(e){{if(So===null)return e;var n=So(e);if(n===void 0){if(e!=null&&typeof e.render=="function"){var s=Mp(e.render);if(e.render!==s){var c={$$typeof:Ye,render:s};return e.displayName!==void 0&&(c.displayName=e.displayName),c}}return e}return n.current}}function fN(e,n){{if(So===null)return!1;var s=e.elementType,c=n.type,p=!1,b=typeof c=="object"&&c!==null?c.$$typeof:null;switch(e.tag){case C:{typeof c=="function"&&(p=!0);break}case x:{(typeof c=="function"||b===vt)&&(p=!0);break}case U:{(b===Ye||b===vt)&&(p=!0);break}case X:case Y:{(b===kt||b===vt)&&(p=!0);break}default:return!1}if(p){var E=So(s);if(E!==void 0&&E===So(c))return!0}return!1}}function pN(e){{if(So===null||typeof WeakSet!="function")return;kp===null&&(kp=new WeakSet),kp.add(e)}}var _B=function(e,n){{if(So===null)return;var s=n.staleFamilies,c=n.updatedFamilies;Xl(),Wl(function(){fE(e.current,c,s)})}},TB=function(e,n){{if(e.context!==Hi)return;Xl(),Wl(function(){tm(n,e,null,null)})}};function fE(e,n,s){{var c=e.alternate,p=e.child,b=e.sibling,E=e.tag,N=e.type,O=null;switch(E){case x:case Y:case C:O=N;break;case U:O=N.render;break}if(So===null)throw new Error("Expected resolveFamily to be set during hot reload.");var B=!1,H=!1;if(O!==null){var te=So(O);te!==void 0&&(s.has(te)?H=!0:n.has(te)&&(E===C?H=!0:B=!0))}if(kp!==null&&(kp.has(e)||c!==null&&kp.has(c))&&(H=!0),H&&(e._debugNeedsRemount=!0),H||B){var K=Ei(e,xt);K!==null&&Xr(K,e,xt,Mn)}p!==null&&!H&&fE(p,n,s),b!==null&&fE(b,n,s)}}var NB=function(e,n){{var s=new Set,c=new Set(n.map(function(p){return p.current}));return pE(e.current,c,s),s}};function pE(e,n,s){{var c=e.child,p=e.sibling,b=e.tag,E=e.type,N=null;switch(b){case x:case Y:case C:N=E;break;case U:N=E.render;break}var O=!1;N!==null&&n.has(N)&&(O=!0),O?IB(e,s):c!==null&&pE(c,n,s),p!==null&&pE(p,n,s)}}function IB(e,n){{var s=AB(e,n);if(s)return;for(var c=e;;){switch(c.tag){case A:n.add(c.stateNode);return;case j:n.add(c.stateNode.containerInfo);return;case R:n.add(c.stateNode.containerInfo);return}if(c.return===null)throw new Error("Expected to reach root first.");c=c.return}}}function AB(e,n){for(var s=e,c=!1;;){if(s.tag===A)c=!0,n.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return c;for(;s.sibling===null;){if(s.return===null||s.return===e)return c;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var hE;{hE=!1;try{var hN=Object.preventExtensions({})}catch{hE=!0}}function jB(e,n,s,c){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=n,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=c,this.flags=mt,this.subtreeFlags=mt,this.deletions=null,this.lanes=_e,this.childLanes=_e,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!hE&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Gi=function(e,n,s,c){return new jB(e,n,s,c)};function vE(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function OB(e){return typeof e=="function"&&!vE(e)&&e.defaultProps===void 0}function DB(e){if(typeof e=="function")return vE(e)?C:x;if(e!=null){var n=e.$$typeof;if(n===Ye)return U;if(n===kt)return X}return w}function Bd(e,n){var s=e.alternate;s===null?(s=Gi(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s._debugSource=e._debugSource,s._debugOwner=e._debugOwner,s._debugHookTypes=e._debugHookTypes,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=mt,s.subtreeFlags=mt,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&Fr,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue;var c=e.dependencies;switch(s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.selfBaseDuration=e.selfBaseDuration,s.treeBaseDuration=e.treeBaseDuration,s._debugNeedsRemount=e._debugNeedsRemount,s.tag){case w:case x:case Y:s.type=Mp(e.type);break;case C:s.type=cE(e.type);break;case U:s.type=dE(e.type);break}return s}function kB(e,n){e.flags&=Fr|Nn;var s=e.alternate;if(s===null)e.childLanes=_e,e.lanes=n,e.child=null,e.subtreeFlags=mt,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=mt,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type;var c=s.dependencies;e.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},e.selfBaseDuration=s.selfBaseDuration,e.treeBaseDuration=s.treeBaseDuration}return e}function MB(e,n,s){var c;return e===Ey?(c=ft,n===!0&&(c|=er,c|=hi)):c=gt,qa&&(c|=Kt),Gi(R,null,null,c)}function mE(e,n,s,c,p,b){var E=w,N=e;if(typeof e=="function")vE(e)?(E=C,N=cE(N)):N=Mp(N);else if(typeof e=="string")E=A;else e:switch(e){case Ha:return pc(s.children,p,b,n);case Ao:E=M,p|=er,(p&ft)!==gt&&(p|=hi);break;case J:return LB(s,p,b,n);case Bt:return PB(s,p,b,n);case Ht:return FB(s,p,b,n);case On:return vN(s,p,b,n);case Zr:case hr:case Ki:case Dn:case jn:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ke:E=V;break e;case He:E=F;break e;case Ye:E=U,N=dE(N);break e;case kt:E=X;break e;case vt:E=pe,N=null;break e}var O="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=c?It(c):null;B&&(O+=`
|
|
227
227
|
|
|
228
|
-
Check the render method of \``+B+"`.")}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=
|
|
228
|
+
Check the render method of \``+B+"`.")}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 pc(e,n,s,c){var p=Gi(I,e,c,n);return p.lanes=s,p}function LB(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(P,e,c,n|Kt);return p.elementType=J,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function PB(e,n,s,c){var p=Gi(z,e,c,n);return p.elementType=Bt,p.lanes=s,p}function FB(e,n,s,c){var p=Gi(ae,e,c,n);return p.elementType=Ht,p.lanes=s,p}function vN(e,n,s,c){var p=Gi(be,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(T,e,null,n);return c.lanes=s,c}function VB(){var e=Gi(A,null,null,gt);return e.elementType="DELETED",e}function BB(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 mN(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 zB(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=eC,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=lr,this.eventTimes=dd(_e),this.expirationTimes=dd(Mn),this.pendingLanes=_e,this.suspendedLanes=_e,this.pingedLanes=_e,this.expiredLanes=_e,this.mutableReadLanes=_e,this.finishedLanes=_e,this.entangledLanes=_e,this.entanglements=dd(_e),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 ec:this._debugRootType=s?"hydrate()":"render()";break}}function gN(e,n,s,c,p,b,E,N,O,B){var H=new zB(e,n,s,N,O),te=MB(n,b);H.current=te,te.stateNode=H;{var K={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};te.memoizedState=K}return TC(te),H}var xE="18.2.0";function $B(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 CE,SE;CE=!1,SE={};function yN(e){if(!e)return Hi;var n=io(e),s=RP(n);if(n.tag===C){var c=n.type;if(Hs(c))return H1(n,c,s)}return s}function UB(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=Nh(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 bN(e,n,s,c,p,b,E,N){var O=!1,B=null;return gN(e,n,O,B,s,c,p,b,E)}function xN(e,n,s,c,p,b,E,N,O,B){var H=!0,te=gN(s,c,H,e,p,b,E,N,O);te.context=yN(null);var K=te.current,he=ei(),ve=dc(K),Se=$l(he,ve);return Se.callback=n??null,rc(K,Se,ve),qV(te,ve,he),te}function tm(e,n,s,c){Go(n,e);var p=n.current,b=ei(),E=dc(p);Ph(E);var N=yN(s);n.context===null?n.context=N:n.pendingContext=N,Sa&&Wn!==null&&!CE&&(CE=!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 B=rc(p,O,E);return B!==null&&(Xr(B,p,E,b),Ly(B,p,E)),E}function Tb(e){var n=e.current;if(!n.child)return null;switch(n.child.tag){case
|
|
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 B=rc(p,O,E);return B!==null&&(Xr(B,p,E,b),Ly(B,p,E)),E}function Tb(e){var n=e.current;if(!n.child)return null;switch(n.child.tag){case A:return n.child.stateNode;default:return n.child.stateNode}}function HB(e){switch(e.tag){case R:{var n=e.stateNode;if(zf(n)){var s=Cx(n);eB(n,s)}break}case z:{Wl(function(){var p=Ei(e,xt);if(p!==null){var b=ei();Xr(p,e,xt,b)}});var c=xt;EE(e,c);break}}}function CN(e,n){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=Mg(s.retryLane,n))}function EE(e,n){CN(e,n);var s=e.alternate;s&&CN(s,n)}function GB(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 WB(e){if(e.tag===z){var n=dc(e),s=Ei(e,n);if(s!==null){var c=ei();Xr(s,e,n,c)}EE(e,n)}}function SN(e){var n=Ah(e);return n===null?null:n.stateNode}var EN=function(e){return null};function XB(e){return EN(e)}var wN=function(e){return!1};function YB(e){return wN(e)}var RN=null,_N=null,TN=null,NN=null,IN=null,AN=null,jN=null,ON=null,DN=null;{var kN=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]=kN(e[c],n,s+1),p)},MN=function(e,n){return kN(e,n,0)},LN=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]=LN(e[p],n,s,c+1);return b},PN=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 LN(e,n,s,0)},FN=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]=FN(e[p],n,s+1,c),b},VN=function(e,n,s){return FN(e,n,0,s)},wE=function(e,n){for(var s=e.memoizedState;s!==null&&n>0;)s=s.next,n--;return s};RN=function(e,n,s,c){var p=wE(e,n);if(p!==null){var b=VN(p.memoizedState,s,c);p.memoizedState=b,p.baseState=b,e.memoizedProps=Lt({},e.memoizedProps);var E=Ei(e,xt);E!==null&&Xr(E,e,xt,Mn)}},_N=function(e,n,s){var c=wE(e,n);if(c!==null){var p=MN(c.memoizedState,s);c.memoizedState=p,c.baseState=p,e.memoizedProps=Lt({},e.memoizedProps);var b=Ei(e,xt);b!==null&&Xr(b,e,xt,Mn)}},TN=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,xt);E!==null&&Xr(E,e,xt,Mn)}},NN=function(e,n,s){e.pendingProps=VN(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,xt);c!==null&&Xr(c,e,xt,Mn)},IN=function(e,n){e.pendingProps=MN(e.memoizedProps,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Ei(e,xt);s!==null&&Xr(s,e,xt,Mn)},AN=function(e,n,s){e.pendingProps=PN(e.memoizedProps,n,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,xt);c!==null&&Xr(c,e,xt,Mn)},jN=function(e){var n=Ei(e,xt);n!==null&&Xr(n,e,xt,Mn)},ON=function(e){EN=e},DN=function(e){wN=e}}function ZB(e){var n=Nh(e);return n===null?null:n.stateNode}function qB(e){return null}function JB(){return Wn}function QB(e){var n=e.findFiberByHostInstance,s=l.ReactCurrentDispatcher;return xg({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:RN,overrideHookStateDeletePath:_N,overrideHookStateRenamePath:TN,overrideProps:NN,overridePropsDeletePath:IN,overridePropsRenamePath:AN,setErrorHandler:ON,setSuspenseHandler:DN,scheduleUpdate:jN,currentDispatcherRef:s,findHostInstanceByFiber:ZB,findFiberByHostInstance:n||qB,findHostInstancesForRefresh:NB,scheduleRefresh:_B,scheduleRoot:TB,setRefreshHandler:RB,getCurrentFiber:JB,reconcilerVersion:xE})}var BN=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=SN(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.")}}tm(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;QT()&&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(){tm(null,e,null,null)}),V1(n)}};function KB(e,n){if(!Ib(e))throw new Error("createRoot(...): Target container is not a DOM element.");zN(e);var s=!1,c=!1,p="",b=BN;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=bN(e,Ey,null,s,c,p,b);my(E.current,e);var
|
|
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=TE,Ni.createPortal=cz,Ni.createRoot=fz,Ni.findDOMNode=iz,Ni.flushSync=hz,Ni.hydrate=oz,Ni.hydrateRoot=pz,Ni.render=sz,Ni.unmountComponentAtNode=uz,Ni.unstable_batchedUpdates=rE,Ni.unstable_renderSubtreeIntoContainer=dz,Ni.version=xE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var vj={};function mj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(vj.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mj)}catch(t){console.error(t)}}}vj.NODE_ENV==="production"?(mj(),dw.exports=Nz()):dw.exports=Iz();var aR=dw.exports;const $d=Kp(aR);var Az={},om=aR;if(Az.NODE_ENV==="production")Xi.createRoot=om.createRoot,Xi.hydrateRoot=om.hydrateRoot;else{var Db=om.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xi.createRoot=function(t,r){Db.usingClientEntryPoint=!0;try{return om.createRoot(t,r)}finally{Db.usingClientEntryPoint=!1}},Xi.hydrateRoot=function(t,r,i){Db.usingClientEntryPoint=!0;try{return om.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 jz=typeof Symbol=="function"&&Symbol.observable||"@@observable",nI=jz,jE=()=>Math.random().toString(36).substring(7).split("").join("."),Oz={INIT:`@@redux/INIT${jE()}`,REPLACE:`@@redux/REPLACE${jE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jE()}`},Ud=Oz;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 Dz(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(Lz(t))return"date";if(Mz(t))return"error";const i=kz(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 kz(t){return typeof t.constructor=="function"?t.constructor.name:null}function Mz(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Lz(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function vc(t){let r=typeof t;return Rr.NODE_ENV!=="production"&&(r=Dz(t)),r}function gj(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: '${vc(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: '${vc(i)}'`);return i(gj)(t,r)}let l=t,u=r,d=new Map,v=d,h=0,y=!1;function x(){v===d&&(v=new Map,d.forEach((A,M)=>{v.set(M,A)}))}function C(){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: '${vc(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 M=!0;x();const F=h++;return v.set(F,A),function(){if(M){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.");M=!1,x(),v.delete(F),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: '${vc(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: '${vc(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(F=>{F()}),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: '${vc(A)}`);l=A,R({type:Ud.REPLACE})}function N(){const A=w;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(Rr.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${vc(M)}'`);function F(){const U=M;U.next&&U.next(C())}return F(),{unsubscribe:A(F)}},[nI](){return this}}}return R({type:Ud.INIT}),{dispatch:R,subscribe:w,getState:C,replaceReducer:j,[nI]:N}}function rI(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Pz(t,r,i,l){const u=Object.keys(r),d=i&&i.type===Ud.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 "${vc(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===Ud.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 Fz(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Ud.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:Ud.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 '${Ud.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 Vz(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"&&rI(`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{Fz(i)}catch(v){d=v}return function(h={},y){if(d)throw d;if(Rr.NODE_ENV!=="production"){const w=Pz(h,i,y,u);w&&rI(w)}let x=!1;const C={};for(let w=0;w<l.length;w++){const R=l[w],j=i[R],N=h[R],T=j(N,y);if(typeof T>"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.`)}C[R]=T,x=x||T!==N}return x=x||l.length!==Object.keys(h).length,x?C:h}}function f0(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...l)=>r(i(...l)))}function Bz(...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,...x)=>d(y,...x)},h=t.map(y=>y(v));return d=f0(...h)(u.dispatch),{...u,dispatch:d}}}function yj(t){return Mm(t)&&"type"in t&&typeof t.type=="string"}var Lm={},bj=Symbol.for("immer-nothing"),aI=Symbol.for("immer-draftable"),Zi=Symbol.for("immer-state"),zz=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=zz[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 Gp=Object.getPrototypeOf;function yc(t){return!!t&&!!t[Zi]}function ru(t){var r;return t?xj(t)||Array.isArray(t)||!!t[aI]||!!((r=t.constructor)!=null&&r[aI])||F0(t)||V0(t):!1}var $z=Object.prototype.constructor.toString();function xj(t){if(!t||typeof t!="object")return!1;const r=Gp(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)===$z}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 Cj(t,r,i){const l=P0(t);l===2?t.set(r,i):l===3?t.add(i):t[r]=i}function Uz(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 zd(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&&xj(t))return Gp(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(Gp(t),i)}function iR(t,r=!1){return B0(t)||yc(t)||!ru(t)||(P0(t)>1&&(t.set=t.add=t.clear=t.delete=Hz),Object.freeze(t),r&&Sm(t,(i,l)=>iR(l,!0))),t}function Hz(){Ii(2)}function B0(t){return Object.isFrozen(t)}var Gz={};function Zd(t){const r=Gz[t];return r||Ii(0,t),r}var Em;function Sj(){return Em}function Wz(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function iI(t,r){r&&(Zd("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function hw(t){vw(t),t.drafts_.forEach(Xz),t.drafts_=null}function vw(t){t===Em&&(Em=t.parent_)}function oI(t){return Em=Wz(Em,t)}function Xz(t){const r=t[Zi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function sI(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)),ru(t)&&(t=p0(r,t),r.parent_||h0(r,t)),r.patches_&&Zd("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!==bj?t:void 0}function p0(t,r,i){if(B0(r))return r;const l=r[Zi];if(!l)return Sm(r,(u,d)=>lI(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)=>lI(t,l,u,h,y,i,v)),h0(t,u,!1),i&&t.patches_&&Zd("Patches").generatePatches_(l,i,t.patches_,t.inversePatches_)}return l.copy_}function lI(t,r,i,l,u,d,v){if(Lm.NODE_ENV!=="production"&&u===i&&Ii(5),yc(u)){const h=d&&r&&r.type_!==3&&!fw(r.assigned_,l)?d.concat(l):void 0,y=p0(t,u,h);if(Cj(i,l,y),yc(y))t.canAutoFreeze_=!1;else return}else v&&i.add(u);if(ru(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_&&iR(r,i)}function Yz(t,r){const i=Array.isArray(t),l={type_:i?1:0,scope_:r?r.scope_:Sj(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,d=oR;i&&(u=[l],d=wm);const{revoke:v,proxy:h}=Proxy.revocable(u,d);return l.draft_=h,l.revoke_=v,h}var oR={get(t,r){if(r===Zi)return t;const i=zd(t);if(!fw(i,r))return Zz(t,i,r);const l=i[r];return t.finalized_||!ru(l)?l:l===OE(t.base_,r)?(DE(t),t.copy_[r]=gw(l,t)):l},has(t,r){return r in zd(t)},ownKeys(t){return Reflect.ownKeys(zd(t))},set(t,r,i){const l=Ej(zd(t),r);if(l!=null&&l.set)return l.set.call(t.draft_,i),!0;if(!t.modified_){const u=OE(zd(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(Uz(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=zd(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 Gp(t.base_)},setPrototypeOf(){Ii(12)}},wm={};Sm(oR,(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),oR.set.call(this,t[0],r,i,t[0])};function OE(t,r){const i=t[Zi];return(i?zd(i):t)[r]}function Zz(t,r,i){var u;const l=Ej(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(t.draft_):void 0}function Ej(t,r){if(!(r in t))return;let i=Gp(t);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=Gp(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 qz=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,...x){return v.produce(y,C=>i.call(this,C,...x))}}typeof i!="function"&&Ii(6),l!==void 0&&typeof l!="function"&&Ii(7);let u;if(ru(r)){const d=oI(this),v=gw(r,void 0);let h=!0;try{u=i(v),h=!1}finally{h?hw(d):vw(d)}return iI(d,l),sI(u,d)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===bj&&(u=void 0),this.autoFreeze_&&iR(u,!0),l){const d=[],v=[];Zd("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){ru(t)||Ii(8),yc(t)&&(t=wj(t));const r=oI(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 iI(l,r),sI(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=Zd("Patches").applyPatches_;return yc(t)?l(t,r):this.produce(t,u=>l(u,r))}};function gw(t,r){const i=F0(t)?Zd("MapSet").proxyMap_(t,r):V0(t)?Zd("MapSet").proxySet_(t,r):Yz(t,r);return(r?r.scope_:Sj()).drafts_.push(i),i}function wj(t){return yc(t)||Ii(10,t),Rj(t)}function Rj(t){if(!ru(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)=>{Cj(i,l,Rj(u))}),r&&(r.finalized_=!1),i}var qi=new qz,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 Jz={},Qz=(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
|
|
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=bN(e,Ey,null,s,c,p,b);my(E.current,e);var N=e.nodeType===Kn?e.parentNode:e;return uv(N),new RE(E)}function Nb(e){this._internalRoot=e}function ez(e){e&&Tx(e)}Nb.prototype.unstable_scheduleHydration=ez;function tz(e,n,s){if(!Ib(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");zN(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=BN;s!=null&&(s.unstable_strictMode===!0&&(b=!0),s.identifierPrefix!==void 0&&(N=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError));var B=xN(n,null,e,Ey,c,b,E,N,O);if(my(B.current,e),uv(e),p)for(var H=0;H<p.length;H++){var te=p[H];uF(B,te)}return new Nb(B)}function Ib(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===dh||!Ce))}function nm(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===dh||e.nodeType===Kn&&e.nodeValue===" react-mount-point-unstable "))}function zN(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."),xv(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 nz=l.ReactCurrentOwner,$N;$N=function(e){if(e._reactRootContainer&&e.nodeType!==Kn){var n=SN(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=_E(e),p=!!(c&&Qu(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 _E(e){return e?e.nodeType===Ga?e.documentElement:e.firstChild:null}function UN(){}function rz(e,n,s,c,p){if(p){if(typeof c=="function"){var b=c;c=function(){var K=Tb(E);b.call(K)}}var E=xN(n,c,e,ec,null,!1,!1,"",UN);e._reactRootContainer=E,my(E.current,e);var N=e.nodeType===Kn?e.parentNode:e;return uv(N),Wl(),E}else{for(var O;O=e.lastChild;)e.removeChild(O);if(typeof c=="function"){var B=c;c=function(){var K=Tb(H);B.call(K)}}var H=bN(e,ec,null,!1,!1,"",UN);e._reactRootContainer=H,my(H.current,e);var te=e.nodeType===Kn?e.parentNode:e;return uv(te),Wl(function(){tm(n,H,s,c)}),H}}function az(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){$N(s),az(p===void 0?null:p,"render");var b=s._reactRootContainer,E;if(!b)E=rz(s,n,e,p,c);else{if(E=b,typeof p=="function"){var N=p;p=function(){var O=Tb(E);N.call(O)}}tm(n,E,e,p)}return Tb(E)}function iz(e){{var n=nz.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:UB(e,"findDOMNode")}function oz(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"),!nm(n))throw new Error("Target container is not a DOM element.");{var c=xv(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 sz(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"),!nm(n))throw new Error("Target container is not a DOM element.");{var c=xv(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 lz(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"),!nm(s))throw new Error("Target container is not a DOM element.");if(e==null||!Su(e))throw new Error("parentComponent must be a valid React Component");return Ab(e,n,s,!1,c)}function uz(e){if(!nm(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var n=xv(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=_E(e),c=s&&!Qu(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,V1(e)})}),!0}else{{var p=_E(e),b=!!(p&&Qu(p)),E=e.nodeType===wa&&nm(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}}Fu(HB),Rx(GB),Uf(WB),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"),bh(fL),ff(rE,tB,Wl);function cz(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 $B(e,n,null,s)}function dz(e,n,s,c){return lz(e,n,s,c)}var TE={usingClientEntryPoint:!1,Events:[Qu,fp,gy,Cu,ml,rE]};function fz(e,n){return TE.usingClientEntryPoint||h('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),KB(e,n)}function pz(e,n,s){return TE.usingClientEntryPoint||h('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),tz(e,n,s)}function hz(e){return QT()&&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 vz=QB({findFiberByHostInstance:Rd,bundleType:1,version:xE,rendererPackageName:"react-dom"});if(!vz&&Rt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var HN=window.location.protocol;/^(https?|file):$/.test(HN)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(HN==="file:"?`
|
|
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=TE,Ni.createPortal=cz,Ni.createRoot=fz,Ni.findDOMNode=iz,Ni.flushSync=hz,Ni.hydrate=oz,Ni.hydrateRoot=pz,Ni.render=sz,Ni.unmountComponentAtNode=uz,Ni.unstable_batchedUpdates=rE,Ni.unstable_renderSubtreeIntoContainer=dz,Ni.version=xE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var vj={};function mj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(vj.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mj)}catch(t){console.error(t)}}}vj.NODE_ENV==="production"?(mj(),dw.exports=Nz()):dw.exports=Iz();var aR=dw.exports;const $d=Kp(aR);var Az={},om=aR;if(Az.NODE_ENV==="production")Xi.createRoot=om.createRoot,Xi.hydrateRoot=om.hydrateRoot;else{var Db=om.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xi.createRoot=function(t,r){Db.usingClientEntryPoint=!0;try{return om.createRoot(t,r)}finally{Db.usingClientEntryPoint=!1}},Xi.hydrateRoot=function(t,r,i){Db.usingClientEntryPoint=!0;try{return om.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 jz=typeof Symbol=="function"&&Symbol.observable||"@@observable",nI=jz,jE=()=>Math.random().toString(36).substring(7).split("").join("."),Oz={INIT:`@@redux/INIT${jE()}`,REPLACE:`@@redux/REPLACE${jE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jE()}`},Ud=Oz;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 Dz(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(Lz(t))return"date";if(Mz(t))return"error";const i=kz(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 kz(t){return typeof t.constructor=="function"?t.constructor.name:null}function Mz(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Lz(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function vc(t){let r=typeof t;return Rr.NODE_ENV!=="production"&&(r=Dz(t)),r}function gj(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: '${vc(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: '${vc(i)}'`);return i(gj)(t,r)}let l=t,u=r,d=new Map,v=d,h=0,y=!1;function x(){v===d&&(v=new Map,d.forEach((I,M)=>{v.set(M,I)}))}function C(){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(I){if(typeof I!="function")throw new Error(Rr.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${vc(I)}'`);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 M=!0;x();const F=h++;return v.set(F,I),function(){if(M){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.");M=!1,x(),v.delete(F),d=null}}}function R(I){if(!Mm(I))throw new Error(Rr.NODE_ENV==="production"?va(7):`Actions must be plain objects. Instead, the actual type was: '${vc(I)}'. 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 I.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 I.type!="string")throw new Error(Rr.NODE_ENV==="production"?va(17):`Action "type" property must be a string. Instead, the actual type was: '${vc(I.type)}'. Value was: '${I.type}' (stringified)`);if(y)throw new Error(Rr.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{y=!0,u=l(u,I)}finally{y=!1}return(d=v).forEach(F=>{F()}),I}function j(I){if(typeof I!="function")throw new Error(Rr.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${vc(I)}`);l=I,R({type:Ud.REPLACE})}function A(){const I=w;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(Rr.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${vc(M)}'`);function F(){const U=M;U.next&&U.next(C())}return F(),{unsubscribe:I(F)}},[nI](){return this}}}return R({type:Ud.INIT}),{dispatch:R,subscribe:w,getState:C,replaceReducer:j,[nI]:A}}function rI(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Pz(t,r,i,l){const u=Object.keys(r),d=i&&i.type===Ud.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 "${vc(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===Ud.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 Fz(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Ud.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:Ud.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 '${Ud.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 Vz(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"&&rI(`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{Fz(i)}catch(v){d=v}return function(h={},y){if(d)throw d;if(Rr.NODE_ENV!=="production"){const w=Pz(h,i,y,u);w&&rI(w)}let x=!1;const C={};for(let w=0;w<l.length;w++){const R=l[w],j=i[R],A=h[R],T=j(A,y);if(typeof T>"u"){const I=y&&y.type;throw new Error(Rr.NODE_ENV==="production"?va(14):`When called with an action of type ${I?`"${String(I)}"`:"(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.`)}C[R]=T,x=x||T!==A}return x=x||l.length!==Object.keys(h).length,x?C:h}}function f0(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...l)=>r(i(...l)))}function Bz(...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,...x)=>d(y,...x)},h=t.map(y=>y(v));return d=f0(...h)(u.dispatch),{...u,dispatch:d}}}function yj(t){return Mm(t)&&"type"in t&&typeof t.type=="string"}var Lm={},bj=Symbol.for("immer-nothing"),aI=Symbol.for("immer-draftable"),Zi=Symbol.for("immer-state"),zz=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=zz[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 Gp=Object.getPrototypeOf;function yc(t){return!!t&&!!t[Zi]}function ru(t){var r;return t?xj(t)||Array.isArray(t)||!!t[aI]||!!((r=t.constructor)!=null&&r[aI])||F0(t)||V0(t):!1}var $z=Object.prototype.constructor.toString();function xj(t){if(!t||typeof t!="object")return!1;const r=Gp(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)===$z}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 Cj(t,r,i){const l=P0(t);l===2?t.set(r,i):l===3?t.add(i):t[r]=i}function Uz(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 zd(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&&xj(t))return Gp(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(Gp(t),i)}function iR(t,r=!1){return B0(t)||yc(t)||!ru(t)||(P0(t)>1&&(t.set=t.add=t.clear=t.delete=Hz),Object.freeze(t),r&&Sm(t,(i,l)=>iR(l,!0))),t}function Hz(){Ii(2)}function B0(t){return Object.isFrozen(t)}var Gz={};function Zd(t){const r=Gz[t];return r||Ii(0,t),r}var Em;function Sj(){return Em}function Wz(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function iI(t,r){r&&(Zd("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function hw(t){vw(t),t.drafts_.forEach(Xz),t.drafts_=null}function vw(t){t===Em&&(Em=t.parent_)}function oI(t){return Em=Wz(Em,t)}function Xz(t){const r=t[Zi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function sI(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)),ru(t)&&(t=p0(r,t),r.parent_||h0(r,t)),r.patches_&&Zd("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!==bj?t:void 0}function p0(t,r,i){if(B0(r))return r;const l=r[Zi];if(!l)return Sm(r,(u,d)=>lI(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)=>lI(t,l,u,h,y,i,v)),h0(t,u,!1),i&&t.patches_&&Zd("Patches").generatePatches_(l,i,t.patches_,t.inversePatches_)}return l.copy_}function lI(t,r,i,l,u,d,v){if(Lm.NODE_ENV!=="production"&&u===i&&Ii(5),yc(u)){const h=d&&r&&r.type_!==3&&!fw(r.assigned_,l)?d.concat(l):void 0,y=p0(t,u,h);if(Cj(i,l,y),yc(y))t.canAutoFreeze_=!1;else return}else v&&i.add(u);if(ru(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_&&iR(r,i)}function Yz(t,r){const i=Array.isArray(t),l={type_:i?1:0,scope_:r?r.scope_:Sj(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,d=oR;i&&(u=[l],d=wm);const{revoke:v,proxy:h}=Proxy.revocable(u,d);return l.draft_=h,l.revoke_=v,h}var oR={get(t,r){if(r===Zi)return t;const i=zd(t);if(!fw(i,r))return Zz(t,i,r);const l=i[r];return t.finalized_||!ru(l)?l:l===OE(t.base_,r)?(DE(t),t.copy_[r]=gw(l,t)):l},has(t,r){return r in zd(t)},ownKeys(t){return Reflect.ownKeys(zd(t))},set(t,r,i){const l=Ej(zd(t),r);if(l!=null&&l.set)return l.set.call(t.draft_,i),!0;if(!t.modified_){const u=OE(zd(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(Uz(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=zd(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 Gp(t.base_)},setPrototypeOf(){Ii(12)}},wm={};Sm(oR,(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),oR.set.call(this,t[0],r,i,t[0])};function OE(t,r){const i=t[Zi];return(i?zd(i):t)[r]}function Zz(t,r,i){var u;const l=Ej(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(t.draft_):void 0}function Ej(t,r){if(!(r in t))return;let i=Gp(t);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=Gp(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 qz=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,...x){return v.produce(y,C=>i.call(this,C,...x))}}typeof i!="function"&&Ii(6),l!==void 0&&typeof l!="function"&&Ii(7);let u;if(ru(r)){const d=oI(this),v=gw(r,void 0);let h=!0;try{u=i(v),h=!1}finally{h?hw(d):vw(d)}return iI(d,l),sI(u,d)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===bj&&(u=void 0),this.autoFreeze_&&iR(u,!0),l){const d=[],v=[];Zd("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){ru(t)||Ii(8),yc(t)&&(t=wj(t));const r=oI(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 iI(l,r),sI(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=Zd("Patches").applyPatches_;return yc(t)?l(t,r):this.produce(t,u=>l(u,r))}};function gw(t,r){const i=F0(t)?Zd("MapSet").proxyMap_(t,r):V0(t)?Zd("MapSet").proxySet_(t,r):Yz(t,r);return(r?r.scope_:Sj()).drafts_.push(i),i}function wj(t){return yc(t)||Ii(10,t),Rj(t)}function Rj(t){if(!ru(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)=>{Cj(i,l,Rj(u))}),r&&(r.finalized_=!1),i}var qi=new qz,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 Jz={},Qz=(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.
|
|
237
237
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:u})}}},Kz=(t,r,i)=>{const{memoize:l,memoizeOptions:u}=r,{inputSelectorResults:d,inputSelectorResultsCopy:v}=t,h=l(()=>({}),...u);if(!(h.apply(null,d)===h.apply(null,v))){let x;try{throw new Error}catch(C){({stack:x}=C)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
238
238
|
This means your output selector will likely run more frequently than intended.
|
|
239
239
|
Avoid returning a new reference inside your input selector, e.g.
|
|
240
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:d,secondInputs:v,stack:x})}},e$={inputStabilityCheck:"once",identityFunctionCheck:"once"};function t$(t,r=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(r)}function n$(t,r=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(r)}function r$(t,r="expected all items to be functions, instead received the following types: "){if(!t.every(i=>typeof i=="function")){const i=t.map(l=>typeof l=="function"?`function ${l.name||"unnamed"}()`:typeof l).join(", ");throw new TypeError(`${r}[${i}]`)}}var uI=t=>Array.isArray(t)?t:[t];function a$(t){const r=Array.isArray(t[0])?t[0]:t;return r$(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function cI(t,r){const i=[],{length:l}=t;for(let u=0;u<l;u++)i.push(t[u].apply(null,r));return i}var i$=(t,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:l}={...e$,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&t,run:Qz},inputStabilityCheck:{shouldRun:l==="always"||l==="once"&&t,run:Kz}}},o$=class{constructor(t){this.value=t}deref(){return this.value}},s$=typeof WeakRef<"u"?WeakRef:o$,l$=0,dI=1;function kb(){return{s:l$,v:void 0,o:null,p:null}}function sR(t,r={}){let i=kb();const{resultEqualityCheck:l}=r;let u,d=0;function v(){var w;let h=i;const{length:y}=arguments;for(let R=0,j=y;R<j;R++){const
|
|
240
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:d,secondInputs:v,stack:x})}},e$={inputStabilityCheck:"once",identityFunctionCheck:"once"};function t$(t,r=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(r)}function n$(t,r=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(r)}function r$(t,r="expected all items to be functions, instead received the following types: "){if(!t.every(i=>typeof i=="function")){const i=t.map(l=>typeof l=="function"?`function ${l.name||"unnamed"}()`:typeof l).join(", ");throw new TypeError(`${r}[${i}]`)}}var uI=t=>Array.isArray(t)?t:[t];function a$(t){const r=Array.isArray(t[0])?t[0]:t;return r$(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function cI(t,r){const i=[],{length:l}=t;for(let u=0;u<l;u++)i.push(t[u].apply(null,r));return i}var i$=(t,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:l}={...e$,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&t,run:Qz},inputStabilityCheck:{shouldRun:l==="always"||l==="once"&&t,run:Kz}}},o$=class{constructor(t){this.value=t}deref(){return this.value}},s$=typeof WeakRef<"u"?WeakRef:o$,l$=0,dI=1;function kb(){return{s:l$,v:void 0,o:null,p:null}}function sR(t,r={}){let i=kb();const{resultEqualityCheck:l}=r;let u,d=0;function v(){var w;let h=i;const{length:y}=arguments;for(let R=0,j=y;R<j;R++){const A=arguments[R];if(typeof A=="function"||typeof A=="object"&&A!==null){let T=h.o;T===null&&(h.o=T=new WeakMap);const I=T.get(A);I===void 0?(h=kb(),T.set(A,h)):h=I}else{let T=h.p;T===null&&(h.p=T=new Map);const I=T.get(A);I===void 0?(h=kb(),T.set(A,h)):h=I}}const x=h;let C;if(h.s===dI?C=h.v:(C=t.apply(null,arguments),d++),x.s=dI,l){const R=((w=u==null?void 0:u.deref)==null?void 0:w.call(u))??u;R!=null&&l(R,C)&&(C=R,d!==0&&d--),u=typeof C=="object"&&C!==null||typeof C=="function"?new s$(C):C}return x.v=C,C}return v.clearCache=()=>{i=kb(),v.resetResultsCount()},v.resultsCount=()=>d,v.resetResultsCount=()=>{d=0},v}function _j(t,...r){const i=typeof t=="function"?{memoize:t,memoizeOptions:r}:t,l=(...u)=>{let d=0,v=0,h,y={},x=u.pop();typeof x=="object"&&(y=x,x=u.pop()),t$(x,`createSelector expects an output function after the inputs, but received: [${typeof x}]`);const C={...i,...y},{memoize:w,memoizeOptions:R=[],argsMemoize:j=sR,argsMemoizeOptions:A=[],devModeChecks:T={}}=C,I=uI(R),M=uI(A),F=a$(u),V=w(function(){return d++,x.apply(null,arguments)},...I);let U=!0;const P=j(function(){v++;const X=cI(F,arguments);if(h=V.apply(null,X),Jz.NODE_ENV!=="production"){const{identityFunctionCheck:Y,inputStabilityCheck:pe}=i$(U,T);if(Y.shouldRun&&Y.run(x,X,h),pe.shouldRun){const ie=cI(F,arguments);pe.run({inputSelectorResults:X,inputSelectorResultsCopy:ie},{memoize:w,memoizeOptions:I},arguments)}U&&(U=!1)}return h},...M);return Object.assign(P,{resultFunc:x,memoizedResultFunc:V,dependencies:F,dependencyRecomputations:()=>v,resetDependencyRecomputations:()=>{v=0},lastResult:()=>h,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:w,argsMemoize:j})};return Object.assign(l,{withTypes:()=>l}),l}var u$=_j(sR),c$=Object.assign((t,r=u$)=>{n$(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const i=Object.keys(t),l=i.map(d=>t[d]);return r(l,(...d)=>d.reduce((v,h,y)=>(v[i[y]]=h,v),{}))},{withTypes:()=>c$});function Tj(t){return({dispatch:i,getState:l})=>u=>d=>typeof d=="function"?d(i,l,t):u(d)}var d$=Tj(),f$=Tj,Ft={},p$=(...t)=>{const r=_j(...t),i=Object.assign((...l)=>{const u=r(...l),d=(v,...h)=>u(yc(v)?wj(v):v,...h);return Object.assign(d,u),d},{withTypes:()=>i});return i};p$(sR);var h$=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?f0:f0.apply(null,arguments)},Nj=t=>t&&typeof t.match=="function";function tu(t,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(0):"prepareAction did not return an object");return{type:t,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:t,payload:l[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=l=>yj(l)&&l.type===t,i}function v$(t){return typeof t=="function"&&"type"in t&&Nj(t)}function m$(t){const r=t?`${t}`.split("/"):[],i=r[r.length-1]||"actionCreator";return`Detected an action creator with type "${t||"unknown"}" being dispatched.
|
|
241
241
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${i}())\` instead of \`dispatch(${i})\`. This is necessary even if the action has no payload.`}function g$(t={}){if(Ft.NODE_ENV==="production")return()=>i=>l=>i(l);const{isActionCreator:r=v$}=t;return()=>i=>l=>(r(l)&&console.warn(m$(l.type)),i(l))}function Ij(t,r){let i=0;return{measureTime(l){const u=Date.now();try{return l()}finally{const d=Date.now();i+=d-u}},warnIfExceeded(){i>t&&console.warn(`${r} took ${i}ms, which is more than the warning threshold of ${t}ms.
|
|
242
242
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
243
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var Aj=class mm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,mm.prototype)}static get[Symbol.species](){return mm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new mm(...r[0].concat(this)):new mm(...r.concat(this))}};function fI(t){return ru(t)?Eo(t,()=>{}):t}function pI(t,r,i){if(t.has(r)){let u=t.get(r);return i.update&&(u=i.update(u,r,t),t.set(r,u)),u}if(!i.insert)throw new Error(Ft.NODE_ENV==="production"?_n(10):"No insert provided for key not already in map");const l=i.insert(r,t);return t.set(r,l),l}function y$(t){return typeof t!="object"||t==null||Object.isFrozen(t)}function b$(t,r,i){const l=jj(t,r,i);return{detectMutations(){return Oj(t,r,l,i)}}}function jj(t,r=[],i,l="",u=new Set){const d={value:i};if(!t(i)&&!u.has(i)){u.add(i),d.children={};for(const v in i){const h=l?l+"."+v:v;r.length&&r.indexOf(h)!==-1||(d.children[v]=jj(t,r,i[v],h))}}return d}function Oj(t,r=[],i,l,u=!1,d=""){const v=i?i.value:void 0,h=v===l;if(u&&!h&&!Number.isNaN(l))return{wasMutated:!0,path:d};if(t(v)||t(l))return{wasMutated:!1};const y={};for(let C in i.children)y[C]=!0;for(let C in l)y[C]=!0;const x=r.length>0;for(let C in y){const w=d?d+"."+C:C;if(x&&r.some(
|
|
243
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Aj=class mm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,mm.prototype)}static get[Symbol.species](){return mm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new mm(...r[0].concat(this)):new mm(...r.concat(this))}};function fI(t){return ru(t)?Eo(t,()=>{}):t}function pI(t,r,i){if(t.has(r)){let u=t.get(r);return i.update&&(u=i.update(u,r,t),t.set(r,u)),u}if(!i.insert)throw new Error(Ft.NODE_ENV==="production"?_n(10):"No insert provided for key not already in map");const l=i.insert(r,t);return t.set(r,l),l}function y$(t){return typeof t!="object"||t==null||Object.isFrozen(t)}function b$(t,r,i){const l=jj(t,r,i);return{detectMutations(){return Oj(t,r,l,i)}}}function jj(t,r=[],i,l="",u=new Set){const d={value:i};if(!t(i)&&!u.has(i)){u.add(i),d.children={};for(const v in i){const h=l?l+"."+v:v;r.length&&r.indexOf(h)!==-1||(d.children[v]=jj(t,r,i[v],h))}}return d}function Oj(t,r=[],i,l,u=!1,d=""){const v=i?i.value:void 0,h=v===l;if(u&&!h&&!Number.isNaN(l))return{wasMutated:!0,path:d};if(t(v)||t(l))return{wasMutated:!1};const y={};for(let C in i.children)y[C]=!0;for(let C in l)y[C]=!0;const x=r.length>0;for(let C in y){const w=d?d+"."+C:C;if(x&&r.some(A=>A instanceof RegExp?A.test(w):w===A))continue;const R=Oj(t,r,i.children[C],l[C],h,w);if(R.wasMutated)return R}return{wasMutated:!1}}function x$(t={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{let r=function(h,y,x,C){return JSON.stringify(h,i(y,C),x)},i=function(h,y){let x=[],C=[];return y||(y=function(w,R){return x[0]===R?"[Circular ~]":"[Circular ~."+C.slice(0,x.indexOf(R)).join(".")+"]"}),function(w,R){if(x.length>0){var j=x.indexOf(this);~j?x.splice(j+1):x.push(this),~j?C.splice(j,1/0,w):C.push(w),~x.indexOf(R)&&(R=y.call(this,w,R))}else x.push(R);return h==null?R:h.call(this,w,R)}},{isImmutable:l=y$,ignoredPaths:u,warnAfter:d=32}=t;const v=b$.bind(null,l,u);return({getState:h})=>{let y=h(),x=v(y),C;return w=>R=>{const j=Ij(d,"ImmutableStateInvariantMiddleware");j.measureTime(()=>{if(y=h(),C=x.detectMutations(),x=v(y),C.wasMutated)throw new Error(Ft.NODE_ENV==="production"?_n(19):`A state mutation was detected between dispatches, in the path '${C.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const A=w(R);return j.measureTime(()=>{if(y=h(),C=x.detectMutations(),x=v(y),C.wasMutated)throw new Error(Ft.NODE_ENV==="production"?_n(20):`A state mutation was detected inside a dispatch, in the path: ${C.path||""}. Take a look at the reducer(s) handling the action ${r(R)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),j.warnIfExceeded(),A}}}}function Dj(t){const r=typeof t;return t==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(t)||Mm(t)}function yw(t,r="",i=Dj,l,u=[],d){let v;if(!i(t))return{keyPath:r||"<root>",value:t};if(typeof t!="object"||t===null||d!=null&&d.has(t))return!1;const h=l!=null?l(t):Object.entries(t),y=u.length>0;for(const[x,C]of h){const w=r?r+"."+x:x;if(!(y&&u.some(j=>j instanceof RegExp?j.test(w):w===j))){if(!i(C))return{keyPath:w,value:C};if(typeof C=="object"&&(v=yw(C,w,i,l,u,d),v))return v}}return d&&kj(t)&&d.add(t),!1}function kj(t){if(!Object.isFrozen(t))return!1;for(const r of Object.values(t))if(!(typeof r!="object"||r===null)&&!kj(r))return!1;return!0}function C$(t={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{const{isSerializable:r=Dj,getEntries:i,ignoredActions:l=[],ignoredActionPaths:u=["meta.arg","meta.baseQueryMeta"],ignoredPaths:d=[],warnAfter:v=32,ignoreState:h=!1,ignoreActions:y=!1,disableCache:x=!1}=t,C=!x&&WeakSet?new WeakSet:void 0;return w=>R=>j=>{if(!yj(j))return R(j);const A=R(j),T=Ij(v,"SerializableStateInvariantMiddleware");return!y&&!(l.length&&l.indexOf(j.type)!==-1)&&T.measureTime(()=>{const I=yw(j,"",r,i,u,C);if(I){const{keyPath:M,value:F}=I;console.error(`A non-serializable value was detected in an action, in the path: \`${M}\`. Value:`,F,`
|
|
244
244
|
Take a look at the logic that dispatched this action: `,j,`
|
|
245
245
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
246
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),h||(T.measureTime(()=>{const
|
|
246
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),h||(T.measureTime(()=>{const I=w.getState(),M=yw(I,"",r,i,d,C);if(M){const{keyPath:F,value:V}=M;console.error(`A non-serializable value was detected in the state, in the path: \`${F}\`. Value:`,V,`
|
|
247
247
|
Take a look at the reducer(s) handling this action type: ${j.type}.
|
|
248
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),T.warnIfExceeded()),N}}}function Mb(t){return typeof t=="boolean"}var S$=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:d=!0}=r??{};let v=new Aj;if(i&&(Mb(i)?v.push(d$):v.push(f$(i.extraArgument))),Ft.NODE_ENV!=="production"){if(l){let h={};Mb(l)||(h=l),v.unshift(x$(h))}if(u){let h={};Mb(u)||(h=u),v.push(C$(h))}if(d){let h={};Mb(d)||(h=d),v.unshift(g$(h))}}return v},E$="RTK_autoBatch",Mj=t=>r=>{setTimeout(r,t)},w$=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Mj(10),R$=(t={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,d=!1,v=!1;const h=new Set,y=t.type==="tick"?queueMicrotask:t.type==="raf"?w$:t.type==="callback"?t.queueNotification:Mj(t.timeout),x=()=>{v=!1,d&&(d=!1,h.forEach(C=>C()))};return Object.assign({},l,{subscribe(C){const w=()=>u&&C(),R=l.subscribe(w);return h.add(C),()=>{R(),h.delete(C)}},dispatch(C){var w;try{return u=!((w=C==null?void 0:C.meta)!=null&&w[E$]),d=!u,d&&(v||(v=!0,y(x))),l.dispatch(C)}finally{u=!0}}})},_$=t=>function(i){const{autoBatch:l=!0}=i??{};let u=new Aj(t);return l&&u.push(R$(typeof l=="object"?l:void 0)),u},hc=Ft.NODE_ENV==="production";function Pm(t){const r=S$(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:d=void 0,enhancers:v=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Mm(i))h=Vz(i);else throw new Error(Ft.NODE_ENV==="production"?_n(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(!hc&&l&&typeof l!="function")throw new Error(Ft.NODE_ENV==="production"?_n(2):"`middleware` field must be a callback");let y;if(typeof l=="function"){if(y=l(r),!hc&&!Array.isArray(y))throw new Error(Ft.NODE_ENV==="production"?_n(3):"when using a middleware builder function, an array of middleware must be returned")}else y=r();if(!hc&&y.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?_n(4):"each middleware provided to configureStore must be a function");let x=f0;u&&(x=h$({trace:!hc,...typeof u=="object"&&u}));const C=Bz(...y),w=_$(C);if(!hc&&v&&typeof v!="function")throw new Error(Ft.NODE_ENV==="production"?_n(5):"`enhancers` field must be a callback");let R=typeof v=="function"?v(w):w();if(!hc&&!Array.isArray(R))throw new Error(Ft.NODE_ENV==="production"?_n(6):"`enhancers` callback must return an array");if(!hc&&R.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?_n(7):"each enhancer provided to configureStore must be a function");!hc&&y.length&&!R.includes(C)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const j=x(...R);return gj(h,d,j)}function Lj(t){const r={},i=[];let l;const u={addCase(d,v){if(Ft.NODE_ENV!=="production"){if(i.length>0)throw new Error(Ft.NODE_ENV==="production"?_n(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(l)throw new Error(Ft.NODE_ENV==="production"?_n(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const h=typeof d=="string"?d:d.type;if(!h)throw new Error(Ft.NODE_ENV==="production"?_n(28):"`builder.addCase` cannot be called with an empty action type");if(h in r)throw new Error(Ft.NODE_ENV==="production"?_n(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${h}'`);return r[h]=v,u},addMatcher(d,v){if(Ft.NODE_ENV!=="production"&&l)throw new Error(Ft.NODE_ENV==="production"?_n(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return i.push({matcher:d,reducer:v}),u},addDefaultCase(d){if(Ft.NODE_ENV!=="production"&&l)throw new Error(Ft.NODE_ENV==="production"?_n(31):"`builder.addDefaultCase` can only be called once");return l=d,u}};return t(u),[r,i,l]}function T$(t){return typeof t=="function"}function N$(t,r){if(Ft.NODE_ENV!=="production"&&typeof r=="object")throw new Error(Ft.NODE_ENV==="production"?_n(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[i,l,u]=Lj(r),d;if(T$(t))d=()=>fI(t());else{const h=fI(t);d=()=>h}function v(h=d(),y){let x=[i[y.type],...l.filter(({matcher:C})=>C(y)).map(({reducer:C})=>C)];return x.filter(C=>!!C).length===0&&(x=[u]),x.reduce((C,w)=>{if(w)if(yc(C)){const j=w(C,y);return j===void 0?C:j}else{if(ru(C))return Eo(C,R=>w(R,y));{const R=w(C,y);if(R===void 0){if(C===null)return C;throw new Error(Ft.NODE_ENV==="production"?_n(9):"A case reducer on a non-draftable value must not return undefined")}return R}}return C},h)}return v.getInitialState=d,v}var I$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pj=(t=21)=>{let r="",i=t;for(;i--;)r+=I$[Math.random()*64|0];return r},A$=(t,r)=>Nj(t)?t.match(r):t(r);function j$(...t){return r=>t.some(i=>A$(i,r))}var O$=["name","message","stack","code"],kE=class{constructor(t,r){NE(this,"_type");this.payload=t,this.meta=r}},hI=class{constructor(t,r){NE(this,"_type");this.payload=t,this.meta=r}},D$=t=>{if(typeof t=="object"&&t!==null){const r={};for(const i of O$)typeof t[i]=="string"&&(r[i]=t[i]);return r}return{message:String(t)}},Di=(()=>{function t(r,i,l){const u=tu(r+"/fulfilled",(y,x,C,w)=>({payload:y,meta:{...w||{},arg:C,requestId:x,requestStatus:"fulfilled"}})),d=tu(r+"/pending",(y,x,C)=>({payload:void 0,meta:{...C||{},arg:x,requestId:y,requestStatus:"pending"}})),v=tu(r+"/rejected",(y,x,C,w,R)=>({payload:w,error:(l&&l.serializeError||D$)(y||"Rejected"),meta:{...R||{},arg:C,requestId:x,rejectedWithValue:!!w,requestStatus:"rejected",aborted:(y==null?void 0:y.name)==="AbortError",condition:(y==null?void 0:y.name)==="ConditionError"}}));function h(y){return(x,C,w)=>{const R=l!=null&&l.idGenerator?l.idGenerator(y):Pj(),j=new AbortController;let N,T;function A(F){T=F,j.abort()}const M=async function(){var U,P;let F;try{let z=(U=l==null?void 0:l.condition)==null?void 0:U.call(l,y,{getState:C,extra:w});if(M$(z)&&(z=await z),z===!1||j.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const X=new Promise((Y,pe)=>{N=()=>{pe({name:"AbortError",message:T||"Aborted"})},j.signal.addEventListener("abort",N)});x(d(R,y,(P=l==null?void 0:l.getPendingMeta)==null?void 0:P.call(l,{requestId:R,arg:y},{getState:C,extra:w}))),F=await Promise.race([X,Promise.resolve(i(y,{dispatch:x,getState:C,extra:w,requestId:R,signal:j.signal,abort:A,rejectWithValue:(Y,pe)=>new kE(Y,pe),fulfillWithValue:(Y,pe)=>new hI(Y,pe)})).then(Y=>{if(Y instanceof kE)throw Y;return Y instanceof hI?u(Y.payload,R,y,Y.meta):u(Y,R,y)})])}catch(z){F=z instanceof kE?v(null,R,y,z.payload,z.meta):v(z,R,y)}finally{N&&j.signal.removeEventListener("abort",N)}return l&&!l.dispatchConditionRejection&&v.match(F)&&F.meta.condition||x(F),F}();return Object.assign(M,{abort:A,requestId:R,arg:y,unwrap(){return M.then(k$)}})}}return Object.assign(h,{pending:d,rejected:v,fulfilled:u,settled:j$(v,u),typePrefix:r})}return t.withTypes=()=>t,t})();function k$(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function M$(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var L$=Symbol.for("rtk-slice-createasyncthunk");function P$(t,r){return`${t}/${r}`}function F$({creators:t}={}){var i;const r=(i=t==null?void 0:t.asyncThunk)==null?void 0:i[L$];return function(u){const{name:d,reducerPath:v=d}=u;if(!d)throw new Error(Ft.NODE_ENV==="production"?_n(11):"`name` is a required option for createSlice");typeof process<"u"&&Ft.NODE_ENV==="development"&&u.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const h=(typeof u.reducers=="function"?u.reducers(B$()):u.reducers)||{},y=Object.keys(h),x={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},C={addCase(V,U){const P=typeof V=="string"?V:V.type;if(!P)throw new Error(Ft.NODE_ENV==="production"?_n(12):"`context.addCase` cannot be called with an empty action type");if(P in x.sliceCaseReducersByType)throw new Error(Ft.NODE_ENV==="production"?_n(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return x.sliceCaseReducersByType[P]=U,C},addMatcher(V,U){return x.sliceMatchers.push({matcher:V,reducer:U}),C},exposeAction(V,U){return x.actionCreators[V]=U,C},exposeCaseReducer(V,U){return x.sliceCaseReducersByName[V]=U,C}};y.forEach(V=>{const U=h[V],P={reducerName:V,type:P$(d,V),createNotation:typeof u.reducers=="function"};$$(U)?H$(P,U,C,r):z$(P,U,C)});function w(){if(Ft.NODE_ENV!=="production"&&typeof u.extraReducers=="object")throw new Error(Ft.NODE_ENV==="production"?_n(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[V={},U=[],P=void 0]=typeof u.extraReducers=="function"?Lj(u.extraReducers):[u.extraReducers],z={...V,...x.sliceCaseReducersByType};return N$(u.initialState,X=>{for(let Y in z)X.addCase(Y,z[Y]);for(let Y of x.sliceMatchers)X.addMatcher(Y.matcher,Y.reducer);for(let Y of U)X.addMatcher(Y.matcher,Y.reducer);P&&X.addDefaultCase(P)})}const R=V=>V,j=new Map;let N;function T(V,U){return N||(N=w()),N(V,U)}function A(){return N||(N=w()),N.getInitialState()}function M(V,U=!1){function P(X){let Y=X[V];if(typeof Y>"u"){if(U)Y=A();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?_n(15):"selectSlice returned undefined for an uninjected slice reducer")}return Y}function z(X=R){const Y=pI(j,U,{insert:()=>new WeakMap});return pI(Y,X,{insert:()=>{const pe={};for(const[ie,ge]of Object.entries(u.selectors??{}))pe[ie]=V$(ge,X,A,U);return pe}})}return{reducerPath:V,getSelectors:z,get selectors(){return z(P)},selectSlice:P}}const F={name:d,reducer:T,actions:x.actionCreators,caseReducers:x.sliceCaseReducersByName,getInitialState:A,...M(v),injectInto(V,{reducerPath:U,...P}={}){const z=U??v;return V.inject({reducerPath:z,reducer:T},P),{...F,...M(z,!0)}}};return F}}function V$(t,r,i,l){function u(d,...v){let h=r(d);if(typeof h>"u"){if(l)h=i();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?_n(16):"selectState returned undefined for an uninjected slice reducer")}return t(h,...v)}return u.unwrapped=t,u}var z0=F$();function B$(){function t(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return t.withTypes=()=>t,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:t}}function z$({type:t,reducerName:r,createNotation:i},l,u){let d,v;if("reducer"in l){if(i&&!U$(l))throw new Error(Ft.NODE_ENV==="production"?_n(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");d=l.reducer,v=l.prepare}else d=l;u.addCase(t,d).exposeCaseReducer(r,d).exposeAction(r,v?tu(t,v):tu(t))}function $$(t){return t._reducerDefinitionType==="asyncThunk"}function U$(t){return t._reducerDefinitionType==="reducerWithPrepare"}function H$({type:t,reducerName:r},i,l,u){if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:d,fulfilled:v,pending:h,rejected:y,settled:x,options:C}=i,w=u(t,d,C);l.exposeAction(r,w),v&&l.addCase(w.fulfilled,v),h&&l.addCase(w.pending,h),y&&l.addCase(w.rejected,y),x&&l.addMatcher(w.settled,x),l.exposeCaseReducer(r,{fulfilled:v||Lb,pending:h||Lb,rejected:y||Lb,settled:x||Lb})}function Lb(){}var G$=(t,r)=>{if(typeof t!="function")throw new Error(Ft.NODE_ENV==="production"?_n(32):`${r} is not a function`)},lR="listenerMiddleware",W$=t=>{let{type:r,actionCreator:i,matcher:l,predicate:u,effect:d}=t;if(r)u=tu(r).match;else if(i)r=i.type,u=i.match;else if(l)u=l;else if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(21):"Creating or removing a listener requires one of the known fields for matching an action");return G$(d,"options.listener"),{predicate:u,type:r,effect:d}},X$=Object.assign(t=>{const{type:r,predicate:i,effect:l}=W$(t);return{id:Pj(),effect:l,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?_n(22):"Unsubscribe not initialized")}}},{withTypes:()=>X$}),Y$=Object.assign(tu(`${lR}/add`),{withTypes:()=>Y$});tu(`${lR}/removeAll`);var Z$=Object.assign(tu(`${lR}/remove`),{withTypes:()=>Z$});function _n(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var k=tf();const pr=Kp(k),v0=xz({__proto__:null,default:pr},[k]);var bw={exports:{}},ME={};/**
|
|
248
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),T.warnIfExceeded()),A}}}function Mb(t){return typeof t=="boolean"}var S$=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:d=!0}=r??{};let v=new Aj;if(i&&(Mb(i)?v.push(d$):v.push(f$(i.extraArgument))),Ft.NODE_ENV!=="production"){if(l){let h={};Mb(l)||(h=l),v.unshift(x$(h))}if(u){let h={};Mb(u)||(h=u),v.push(C$(h))}if(d){let h={};Mb(d)||(h=d),v.unshift(g$(h))}}return v},E$="RTK_autoBatch",Mj=t=>r=>{setTimeout(r,t)},w$=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Mj(10),R$=(t={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,d=!1,v=!1;const h=new Set,y=t.type==="tick"?queueMicrotask:t.type==="raf"?w$:t.type==="callback"?t.queueNotification:Mj(t.timeout),x=()=>{v=!1,d&&(d=!1,h.forEach(C=>C()))};return Object.assign({},l,{subscribe(C){const w=()=>u&&C(),R=l.subscribe(w);return h.add(C),()=>{R(),h.delete(C)}},dispatch(C){var w;try{return u=!((w=C==null?void 0:C.meta)!=null&&w[E$]),d=!u,d&&(v||(v=!0,y(x))),l.dispatch(C)}finally{u=!0}}})},_$=t=>function(i){const{autoBatch:l=!0}=i??{};let u=new Aj(t);return l&&u.push(R$(typeof l=="object"?l:void 0)),u},hc=Ft.NODE_ENV==="production";function Pm(t){const r=S$(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:d=void 0,enhancers:v=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Mm(i))h=Vz(i);else throw new Error(Ft.NODE_ENV==="production"?_n(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(!hc&&l&&typeof l!="function")throw new Error(Ft.NODE_ENV==="production"?_n(2):"`middleware` field must be a callback");let y;if(typeof l=="function"){if(y=l(r),!hc&&!Array.isArray(y))throw new Error(Ft.NODE_ENV==="production"?_n(3):"when using a middleware builder function, an array of middleware must be returned")}else y=r();if(!hc&&y.some(A=>typeof A!="function"))throw new Error(Ft.NODE_ENV==="production"?_n(4):"each middleware provided to configureStore must be a function");let x=f0;u&&(x=h$({trace:!hc,...typeof u=="object"&&u}));const C=Bz(...y),w=_$(C);if(!hc&&v&&typeof v!="function")throw new Error(Ft.NODE_ENV==="production"?_n(5):"`enhancers` field must be a callback");let R=typeof v=="function"?v(w):w();if(!hc&&!Array.isArray(R))throw new Error(Ft.NODE_ENV==="production"?_n(6):"`enhancers` callback must return an array");if(!hc&&R.some(A=>typeof A!="function"))throw new Error(Ft.NODE_ENV==="production"?_n(7):"each enhancer provided to configureStore must be a function");!hc&&y.length&&!R.includes(C)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const j=x(...R);return gj(h,d,j)}function Lj(t){const r={},i=[];let l;const u={addCase(d,v){if(Ft.NODE_ENV!=="production"){if(i.length>0)throw new Error(Ft.NODE_ENV==="production"?_n(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(l)throw new Error(Ft.NODE_ENV==="production"?_n(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const h=typeof d=="string"?d:d.type;if(!h)throw new Error(Ft.NODE_ENV==="production"?_n(28):"`builder.addCase` cannot be called with an empty action type");if(h in r)throw new Error(Ft.NODE_ENV==="production"?_n(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${h}'`);return r[h]=v,u},addMatcher(d,v){if(Ft.NODE_ENV!=="production"&&l)throw new Error(Ft.NODE_ENV==="production"?_n(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return i.push({matcher:d,reducer:v}),u},addDefaultCase(d){if(Ft.NODE_ENV!=="production"&&l)throw new Error(Ft.NODE_ENV==="production"?_n(31):"`builder.addDefaultCase` can only be called once");return l=d,u}};return t(u),[r,i,l]}function T$(t){return typeof t=="function"}function N$(t,r){if(Ft.NODE_ENV!=="production"&&typeof r=="object")throw new Error(Ft.NODE_ENV==="production"?_n(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[i,l,u]=Lj(r),d;if(T$(t))d=()=>fI(t());else{const h=fI(t);d=()=>h}function v(h=d(),y){let x=[i[y.type],...l.filter(({matcher:C})=>C(y)).map(({reducer:C})=>C)];return x.filter(C=>!!C).length===0&&(x=[u]),x.reduce((C,w)=>{if(w)if(yc(C)){const j=w(C,y);return j===void 0?C:j}else{if(ru(C))return Eo(C,R=>w(R,y));{const R=w(C,y);if(R===void 0){if(C===null)return C;throw new Error(Ft.NODE_ENV==="production"?_n(9):"A case reducer on a non-draftable value must not return undefined")}return R}}return C},h)}return v.getInitialState=d,v}var I$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pj=(t=21)=>{let r="",i=t;for(;i--;)r+=I$[Math.random()*64|0];return r},A$=(t,r)=>Nj(t)?t.match(r):t(r);function j$(...t){return r=>t.some(i=>A$(i,r))}var O$=["name","message","stack","code"],kE=class{constructor(t,r){NE(this,"_type");this.payload=t,this.meta=r}},hI=class{constructor(t,r){NE(this,"_type");this.payload=t,this.meta=r}},D$=t=>{if(typeof t=="object"&&t!==null){const r={};for(const i of O$)typeof t[i]=="string"&&(r[i]=t[i]);return r}return{message:String(t)}},Di=(()=>{function t(r,i,l){const u=tu(r+"/fulfilled",(y,x,C,w)=>({payload:y,meta:{...w||{},arg:C,requestId:x,requestStatus:"fulfilled"}})),d=tu(r+"/pending",(y,x,C)=>({payload:void 0,meta:{...C||{},arg:x,requestId:y,requestStatus:"pending"}})),v=tu(r+"/rejected",(y,x,C,w,R)=>({payload:w,error:(l&&l.serializeError||D$)(y||"Rejected"),meta:{...R||{},arg:C,requestId:x,rejectedWithValue:!!w,requestStatus:"rejected",aborted:(y==null?void 0:y.name)==="AbortError",condition:(y==null?void 0:y.name)==="ConditionError"}}));function h(y){return(x,C,w)=>{const R=l!=null&&l.idGenerator?l.idGenerator(y):Pj(),j=new AbortController;let A,T;function I(F){T=F,j.abort()}const M=async function(){var U,P;let F;try{let z=(U=l==null?void 0:l.condition)==null?void 0:U.call(l,y,{getState:C,extra:w});if(M$(z)&&(z=await z),z===!1||j.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const X=new Promise((Y,pe)=>{A=()=>{pe({name:"AbortError",message:T||"Aborted"})},j.signal.addEventListener("abort",A)});x(d(R,y,(P=l==null?void 0:l.getPendingMeta)==null?void 0:P.call(l,{requestId:R,arg:y},{getState:C,extra:w}))),F=await Promise.race([X,Promise.resolve(i(y,{dispatch:x,getState:C,extra:w,requestId:R,signal:j.signal,abort:I,rejectWithValue:(Y,pe)=>new kE(Y,pe),fulfillWithValue:(Y,pe)=>new hI(Y,pe)})).then(Y=>{if(Y instanceof kE)throw Y;return Y instanceof hI?u(Y.payload,R,y,Y.meta):u(Y,R,y)})])}catch(z){F=z instanceof kE?v(null,R,y,z.payload,z.meta):v(z,R,y)}finally{A&&j.signal.removeEventListener("abort",A)}return l&&!l.dispatchConditionRejection&&v.match(F)&&F.meta.condition||x(F),F}();return Object.assign(M,{abort:I,requestId:R,arg:y,unwrap(){return M.then(k$)}})}}return Object.assign(h,{pending:d,rejected:v,fulfilled:u,settled:j$(v,u),typePrefix:r})}return t.withTypes=()=>t,t})();function k$(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function M$(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var L$=Symbol.for("rtk-slice-createasyncthunk");function P$(t,r){return`${t}/${r}`}function F$({creators:t}={}){var i;const r=(i=t==null?void 0:t.asyncThunk)==null?void 0:i[L$];return function(u){const{name:d,reducerPath:v=d}=u;if(!d)throw new Error(Ft.NODE_ENV==="production"?_n(11):"`name` is a required option for createSlice");typeof process<"u"&&Ft.NODE_ENV==="development"&&u.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const h=(typeof u.reducers=="function"?u.reducers(B$()):u.reducers)||{},y=Object.keys(h),x={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},C={addCase(V,U){const P=typeof V=="string"?V:V.type;if(!P)throw new Error(Ft.NODE_ENV==="production"?_n(12):"`context.addCase` cannot be called with an empty action type");if(P in x.sliceCaseReducersByType)throw new Error(Ft.NODE_ENV==="production"?_n(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return x.sliceCaseReducersByType[P]=U,C},addMatcher(V,U){return x.sliceMatchers.push({matcher:V,reducer:U}),C},exposeAction(V,U){return x.actionCreators[V]=U,C},exposeCaseReducer(V,U){return x.sliceCaseReducersByName[V]=U,C}};y.forEach(V=>{const U=h[V],P={reducerName:V,type:P$(d,V),createNotation:typeof u.reducers=="function"};$$(U)?H$(P,U,C,r):z$(P,U,C)});function w(){if(Ft.NODE_ENV!=="production"&&typeof u.extraReducers=="object")throw new Error(Ft.NODE_ENV==="production"?_n(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[V={},U=[],P=void 0]=typeof u.extraReducers=="function"?Lj(u.extraReducers):[u.extraReducers],z={...V,...x.sliceCaseReducersByType};return N$(u.initialState,X=>{for(let Y in z)X.addCase(Y,z[Y]);for(let Y of x.sliceMatchers)X.addMatcher(Y.matcher,Y.reducer);for(let Y of U)X.addMatcher(Y.matcher,Y.reducer);P&&X.addDefaultCase(P)})}const R=V=>V,j=new Map;let A;function T(V,U){return A||(A=w()),A(V,U)}function I(){return A||(A=w()),A.getInitialState()}function M(V,U=!1){function P(X){let Y=X[V];if(typeof Y>"u"){if(U)Y=I();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?_n(15):"selectSlice returned undefined for an uninjected slice reducer")}return Y}function z(X=R){const Y=pI(j,U,{insert:()=>new WeakMap});return pI(Y,X,{insert:()=>{const pe={};for(const[ie,ge]of Object.entries(u.selectors??{}))pe[ie]=V$(ge,X,I,U);return pe}})}return{reducerPath:V,getSelectors:z,get selectors(){return z(P)},selectSlice:P}}const F={name:d,reducer:T,actions:x.actionCreators,caseReducers:x.sliceCaseReducersByName,getInitialState:I,...M(v),injectInto(V,{reducerPath:U,...P}={}){const z=U??v;return V.inject({reducerPath:z,reducer:T},P),{...F,...M(z,!0)}}};return F}}function V$(t,r,i,l){function u(d,...v){let h=r(d);if(typeof h>"u"){if(l)h=i();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?_n(16):"selectState returned undefined for an uninjected slice reducer")}return t(h,...v)}return u.unwrapped=t,u}var z0=F$();function B$(){function t(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return t.withTypes=()=>t,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:t}}function z$({type:t,reducerName:r,createNotation:i},l,u){let d,v;if("reducer"in l){if(i&&!U$(l))throw new Error(Ft.NODE_ENV==="production"?_n(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");d=l.reducer,v=l.prepare}else d=l;u.addCase(t,d).exposeCaseReducer(r,d).exposeAction(r,v?tu(t,v):tu(t))}function $$(t){return t._reducerDefinitionType==="asyncThunk"}function U$(t){return t._reducerDefinitionType==="reducerWithPrepare"}function H$({type:t,reducerName:r},i,l,u){if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:d,fulfilled:v,pending:h,rejected:y,settled:x,options:C}=i,w=u(t,d,C);l.exposeAction(r,w),v&&l.addCase(w.fulfilled,v),h&&l.addCase(w.pending,h),y&&l.addCase(w.rejected,y),x&&l.addMatcher(w.settled,x),l.exposeCaseReducer(r,{fulfilled:v||Lb,pending:h||Lb,rejected:y||Lb,settled:x||Lb})}function Lb(){}var G$=(t,r)=>{if(typeof t!="function")throw new Error(Ft.NODE_ENV==="production"?_n(32):`${r} is not a function`)},lR="listenerMiddleware",W$=t=>{let{type:r,actionCreator:i,matcher:l,predicate:u,effect:d}=t;if(r)u=tu(r).match;else if(i)r=i.type,u=i.match;else if(l)u=l;else if(!u)throw new Error(Ft.NODE_ENV==="production"?_n(21):"Creating or removing a listener requires one of the known fields for matching an action");return G$(d,"options.listener"),{predicate:u,type:r,effect:d}},X$=Object.assign(t=>{const{type:r,predicate:i,effect:l}=W$(t);return{id:Pj(),effect:l,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?_n(22):"Unsubscribe not initialized")}}},{withTypes:()=>X$}),Y$=Object.assign(tu(`${lR}/add`),{withTypes:()=>Y$});tu(`${lR}/removeAll`);var Z$=Object.assign(tu(`${lR}/remove`),{withTypes:()=>Z$});function _n(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var k=tf();const pr=Kp(k),v0=xz({__proto__:null,default:pr},[k]);var bw={exports:{}},ME={};/**
|
|
249
249
|
* @license React
|
|
250
250
|
* use-sync-external-store-with-selector.production.min.js
|
|
251
251
|
*
|
|
@@ -253,7 +253,7 @@ Take a look at the reducer(s) handling this action type: ${j.type}.
|
|
|
253
253
|
*
|
|
254
254
|
* This source code is licensed under the MIT license found in the
|
|
255
255
|
* LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/var vI;function q$(){if(vI)return ME;vI=1;var t=tf();function r(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var i=typeof Object.is=="function"?Object.is:r,l=t.useSyncExternalStore,u=t.useRef,d=t.useEffect,v=t.useMemo,h=t.useDebugValue;return ME.useSyncExternalStoreWithSelector=function(y,x,C,w,R){var j=u(null);if(j.current===null){var
|
|
256
|
+
*/var vI;function q$(){if(vI)return ME;vI=1;var t=tf();function r(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var i=typeof Object.is=="function"?Object.is:r,l=t.useSyncExternalStore,u=t.useRef,d=t.useEffect,v=t.useMemo,h=t.useDebugValue;return ME.useSyncExternalStoreWithSelector=function(y,x,C,w,R){var j=u(null);if(j.current===null){var A={hasValue:!1,value:null};j.current=A}else A=j.current;j=v(function(){function I(P){if(!M){if(M=!0,F=P,P=w(P),R!==void 0&&A.hasValue){var z=A.value;if(R(z,P))return V=z}return V=P}if(z=V,i(F,P))return z;var X=w(P);return R!==void 0&&R(z,X)?z:(F=P,V=X)}var M=!1,F,V,U=C===void 0?null:C;return[function(){return I(x())},U===null?void 0:function(){return I(U())}]},[x,C,w,R]);var T=l(y,j[0],j[1]);return d(function(){A.hasValue=!0,A.value=T},[T]),h(T),T},ME}var LE={},mI;function J$(){if(mI)return LE;mI=1;var t={};/**
|
|
257
257
|
* @license React
|
|
258
258
|
* use-sync-external-store-with-selector.development.js
|
|
259
259
|
*
|
|
@@ -261,42 +261,42 @@ 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=tf();function i(C,w){return C===w&&(C!==0||1/C===1/w)||C!==C&&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 x(C,w,R,j,
|
|
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:T,selected:
|
|
266
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:V})}R.current&&(R.current=!1)}return
|
|
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=tf();function i(C,w){return C===w&&(C!==0||1/C===1/w)||C!==C&&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 x(C,w,R,j,A){var T=d(null),I;T.current===null?(I={hasValue:!1,value:null},T.current=I):I=T.current;var M=h(function(){var P=!1,z,X,Y=function(ae){if(!P){P=!0,z=ae;var Re=j(ae);if(A!==void 0&&I.hasValue){var be=I.value;if(A(be,Re))return X=be,be}return X=Re,Re}var xe=z,Ae=X;if(l(xe,ae))return Ae;var Le=j(ae);return A!==void 0&&A(Ae,Le)?Ae:(z=ae,X=Le,Le)},pe=R===void 0?null:R,ie=function(){return Y(w())},ge=pe===null?void 0:function(){return Y(pe())};return[ie,ge]},[w,R,j,A]),F=M[0],V=M[1],U=u(C,F,V);return v(function(){I.hasValue=!0,I.value=U},[U]),y(U),U}LE.useSyncExternalStoreWithSelector=x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),LE}var Q$={};Q$.NODE_ENV==="production"?bw.exports=q$():bw.exports=J$();var K$=bw.exports,ds={},qt="default"in v0?pr:v0,gI=Symbol.for("react-redux-context"),yI=typeof globalThis<"u"?globalThis:{};function eU(){if(!qt.createContext)return{};const t=yI[gI]??(yI[gI]=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 au=eU(),Fj=()=>{throw new Error("uSES not initialized!")};function uR(t=au){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 Vj=uR(),Bj=Fj,tU=t=>{Bj=t},nU=(t,r)=>t===r;function rU(t=au){const r=t===au?Vj:uR(t),i=(l,u={})=>{const{equalityFn:d=nU,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:x,stabilityCheck:C,identityFunctionCheck:w}=r(),R=qt.useRef(!0),j=qt.useCallback({[l.name](T){const I=l(T);if(ds.NODE_ENV!=="production"){const{identityFunctionCheck:M,stabilityCheck:F}={stabilityCheck:C,identityFunctionCheck:w,...v};if(F==="always"||F==="once"&&R.current){const V=l(T);if(!d(I,V)){let U;try{throw new Error}catch(P){({stack:U}=P)}console.warn("Selector "+(l.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
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:T,selected:I,selected2:V,stack:U})}}if((M==="always"||M==="once"&&R.current)&&I===T){let V;try{throw new Error}catch(U){({stack:V}=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:V})}R.current&&(R.current=!1)}return I}}[l.name],[l,C,v.stabilityCheck]),A=Bj(y.addNestedSub,h.getState,x||h.getState,j,d);return qt.useDebugValue(A),A};return Object.assign(i,{withTypes:()=>i}),i}var Jn=rU(),aU=Symbol.for("react.element"),iU=Symbol.for("react.portal"),zj=Symbol.for("react.fragment"),$j=Symbol.for("react.strict_mode"),Uj=Symbol.for("react.profiler"),Hj=Symbol.for("react.provider"),cR=Symbol.for("react.context"),oU=Symbol.for("react.server_context"),dR=Symbol.for("react.forward_ref"),Gj=Symbol.for("react.suspense"),Wj=Symbol.for("react.suspense_list"),$0=Symbol.for("react.memo"),Xj=Symbol.for("react.lazy"),sU=Symbol.for("react.offscreen"),lU=Symbol.for("react.client.reference"),uU=dR,cU=$0;function dU(t){return typeof t=="string"||typeof t=="function"||t===zj||t===Uj||t===$j||t===Gj||t===Wj||t===sU||typeof t=="object"&&t!==null&&(t.$$typeof===Xj||t.$$typeof===$0||t.$$typeof===Hj||t.$$typeof===cR||t.$$typeof===dR||t.$$typeof===lU||t.getModuleId!==void 0)}function Yj(t){if(typeof t=="object"&&t!==null){const r=t.$$typeof;switch(r){case aU:{const i=t.type;switch(i){case zj:case Uj:case $j:case Gj:case Wj:return i;default:{const l=i&&i.$$typeof;switch(l){case oU:case cR:case dR:case Xj:case $0:case Hj:return l;default:return r}}}}case iU:return r}}}function fU(t){return Yj(t)===cR}function pU(t){return Yj(t)===$0}function fR(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")||fR(`The selector for ${r} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${r} in connect.`)}function hU(t,r,i){PE(t,"mapStateToProps"),PE(r,"mapDispatchToProps"),PE(i,"mergeProps")}function vU(t,r,i,l,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:v}){let h=!1,y,x,C,w,R;function j(F,V){return y=F,x=V,C=t(y,x),w=r(l,x),R=i(C,w,x),h=!0,R}function A(){return C=t(y,x),r.dependsOnOwnProps&&(w=r(l,x)),R=i(C,w,x),R}function T(){return t.dependsOnOwnProps&&(C=t(y,x)),r.dependsOnOwnProps&&(w=r(l,x)),R=i(C,w,x),R}function I(){const F=t(y,x),V=!v(F,C);return C=F,V&&(R=i(C,w,x)),R}function M(F,V){const U=!d(V,x),P=!u(F,y,V,x);return y=F,x=V,U&&P?A():U?T():P?I():R}return function(V,U){return h?M(V,U):j(V,U)}}function mU(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"&&hU(d,v,h),vU(d,v,h,t,u)}function gU(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 yU(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 Zj(t,r,i){yU(t)||fR(`${i}() in ${r} must return a plain object. Instead received ${t}.`)}function xw(t){return function(i){const l=t(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function bI(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function qj(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=bI(t);let x=d(h,y);return typeof x=="function"&&(d.mapToProps=x,d.dependsOnOwnProps=bI(x),x=d(h,y)),ds.NODE_ENV!=="production"&&Zj(x,u,r),x},d}}function pR(t,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function bU(t){return t&&typeof t=="object"?xw(r=>gU(t,r)):t?typeof t=="function"?qj(t,"mapDispatchToProps"):pR(t,"mapDispatchToProps"):xw(r=>({dispatch:r}))}function xU(t){return t?typeof t=="function"?qj(t,"mapStateToProps"):pR(t,"mapStateToProps"):xw(()=>({}))}function CU(t,r,i){return{...i,...t,...r}}function SU(t){return function(i,{displayName:l,areMergedPropsEqual:u}){let d=!1,v;return function(y,x,C){const w=t(y,x,C);return d?u(w,v)||(v=w):(d=!0,v=w,ds.NODE_ENV!=="production"&&Zj(v,l,"mergeProps")),v}}}function EU(t){return t?typeof t=="function"?SU(t):pR(t,"mergeProps"):()=>CU}function wU(t){t()}function RU(){let t=null,r=null;return{clear(){t=null,r=null},notify(){wU(()=>{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 xI={notify(){},get:()=>[]};function Jj(t,r){let i,l=xI,u=0,d=!1;function v(T){C();const I=l.subscribe(T);let M=!1;return()=>{M||(M=!0,I(),w())}}function h(){l.notify()}function y(){A.onStateChange&&A.onStateChange()}function x(){return d}function C(){u++,i||(i=r?r.addNestedSub(y):t.subscribe(y),l=RU())}function w(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=xI)}function R(){d||(d=!0,C())}function j(){d&&(d=!1,w())}const A={addNestedSub:v,notifyNestedSubs:h,handleChangeWrapper:y,isSubscribed:x,trySubscribe:R,tryUnsubscribe:j,getListeners:()=>l};return A}var _U=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m0=_U?qt.useLayoutEffect:qt.useEffect;function CI(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function FE(t,r){if(CI(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])||!CI(t[i[u]],r[i[u]]))return!1;return!0}var TU={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},NU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},IU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},AU={[uU]:IU,[cU]:Qj};function SI(t){return pU(t)?Qj:AU[t.$$typeof]||TU}var jU=Object.defineProperty,OU=Object.getOwnPropertyNames,EI=Object.getOwnPropertySymbols,DU=Object.getOwnPropertyDescriptor,kU=Object.getPrototypeOf,wI=Object.prototype;function Cw(t,r){if(typeof r!="string"){if(wI){const d=kU(r);d&&d!==wI&&Cw(t,d)}let i=OU(r);EI&&(i=i.concat(EI(r)));const l=SI(t),u=SI(r);for(let d=0;d<i.length;++d){const v=i[d];if(!NU[v]&&!(u&&u[v])&&!(l&&l[v])){const h=DU(r,v);try{jU(t,v,h)}catch{}}}}return t}var Kj=Fj,MU=t=>{Kj=t},LU=[null,null],PU=t=>{try{return JSON.stringify(t)}catch{return String(t)}};function FU(t,r,i){m0(()=>t(...r),i)}function VU(t,r,i,l,u,d){t.current=l,i.current=!1,u.current&&(u.current=null,d())}function BU(t,r,i,l,u,d,v,h,y,x,C){if(!t)return()=>{};let w=!1,R=null;const j=()=>{if(w||!h.current)return;const T=r.getState();let I,M;try{I=l(T,u.current)}catch(F){M=F,R=F}M||(R=null),I===d.current?v.current||x():(d.current=I,y.current=I,v.current=!0,C())};return i.onStateChange=j,i.trySubscribe(),j(),()=>{if(w=!0,i.tryUnsubscribe(),i.onStateChange=null,R)throw R}}function zU(t,r){return t===r}var RI=!1;function $U(t,r,i,{pure:l,areStatesEqual:u=zU,areOwnPropsEqual:d=FE,areStatePropsEqual:v=FE,areMergedPropsEqual:h=FE,forwardRef:y=!1,context:x=au}={}){ds.NODE_ENV!=="production"&&l!==void 0&&!RI&&(RI=!0,fR('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const C=x,w=xU(t),R=bU(r),j=EU(i),A=!!t;return I=>{if(ds.NODE_ENV!=="production"&&!dU(I))throw new Error(`You must pass a component to the function returned by connect. Instead received ${PU(I)}`);const M=I.displayName||I.name||"Component",F=`Connect(${M})`,V={shouldHandleStateChanges:A,displayName:F,wrappedComponentName:M,WrappedComponent:I,initMapStateToProps:w,initMapDispatchToProps:R,initMergeProps:j,areStatesEqual:u,areStatePropsEqual:v,areOwnPropsEqual:d,areMergedPropsEqual:h};function U(X){const[Y,pe,ie]=qt.useMemo(()=>{const{reactReduxForwardedRef:ot,...je}=X;return[X.context,ot,je]},[X]),ge=qt.useMemo(()=>{let ot=C;if(Y!=null&&Y.Consumer&&ds.NODE_ENV!=="production"){if(!fU(qt.createElement(Y.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");ot=Y}return ot},[Y,C]),ae=qt.useContext(ge),Re=!!X.store&&!!X.store.getState&&!!X.store.dispatch,be=!!ae&&!!ae.store;if(ds.NODE_ENV!=="production"&&!Re&&!be)throw new Error(`Could not find "store" in the context of "${F}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${F} in connect options.`);const xe=Re?X.store:ae.store,Ae=be?ae.getServerState:xe.getState,Le=qt.useMemo(()=>mU(xe.dispatch,V),[xe]),[ne,Oe]=qt.useMemo(()=>{if(!A)return LU;const ot=Jj(xe,Re?void 0:ae.subscription),je=ot.notifyNestedSubs.bind(ot);return[ot,je]},[xe,Re,ae]),G=qt.useMemo(()=>Re?ae:{...ae,subscription:ne},[Re,ae,ne]),Z=qt.useRef(),re=qt.useRef(ie),Ce=qt.useRef(),we=qt.useRef(!1);qt.useRef(!1);const Te=qt.useRef(!1),Ie=qt.useRef();m0(()=>(Te.current=!0,()=>{Te.current=!1}),[]);const ue=qt.useMemo(()=>()=>Ce.current&&ie===re.current?Ce.current:Le(xe.getState(),ie),[xe,ie]),de=qt.useMemo(()=>je=>ne?BU(A,xe,ne,Le,re,Z,we,Te,Ce,Oe,je):()=>{},[ne]);FU(VU,[re,Z,we,ie,Ce,Oe]);let Ve;try{Ve=Kj(de,ue,Ae?()=>Le(Ae(),ie):ue)}catch(ot){throw Ie.current&&(ot.message+=`
|
|
267
267
|
The error may be correlated with this previous error:
|
|
268
268
|
${Ie.current.stack}
|
|
269
269
|
|
|
270
|
-
`),ot}m0(()=>{Ie.current=void 0,Ce.current=void 0,Z.current=Ve});const Ge=qt.useMemo(()=>qt.createElement(A,{...Ve,ref:pe}),[pe,A,Ve]);return qt.useMemo(()=>N?qt.createElement(ge.Provider,{value:G},Ge):Ge,[ge,Ge,G])}const z=qt.memo(U);if(z.WrappedComponent=A,z.displayName=U.displayName=F,y){const Y=qt.forwardRef(function(ie,ge){return qt.createElement(z,{...ie,reactReduxForwardedRef:ge})});return Y.displayName=F,Y.WrappedComponent=A,Cw(Y,A)}return Cw(z,A)}}var ps=$U;function UU({store:t,context:r,children:i,serverState:l,stabilityCheck:u="once",identityFunctionCheck:d="once"}){const v=qt.useMemo(()=>{const x=Jj(t);return{store:t,subscription:x,getServerState:l?()=>l:void 0,stabilityCheck:u,identityFunctionCheck:d}},[t,l,u,d]),h=qt.useMemo(()=>t.getState(),[t]);m0(()=>{const{subscription:x}=v;return x.onStateChange=x.notifyNestedSubs,x.trySubscribe(),h!==t.getState()&&x.notifyNestedSubs(),()=>{x.tryUnsubscribe(),x.onStateChange=void 0}},[v,h]);const y=r||au;return qt.createElement(y.Provider,{value:v},i)}var eh=UU;function eO(t=au){const r=t===au?Vj:uR(t),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var HU=eO();function GU(t=au){const r=t===au?HU:eO(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var No=GU();tU(K$.useSyncExternalStoreWithSelector);MU(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"}},$p=(t,r,i="round")=>{const l=Math.pow(10,r||0);return Math[i](t*l)/l},WU=t=>new Date(`${t}T00:00:00`),XU={year:"numeric",month:"short",day:"numeric"},Hd=(t,r)=>WU(t).toLocaleString("en-us",r||XU),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})},hR=(t,r)=>{if(t.startDate&&t.endDate){const u=Hd(t.startDate,r),d=Hd(t.endDate,r);return`${t.allocationType}: ${u} to ${d}`}const i=Hd(t.entryDate,r),l=t.status=="Incomplete"?"Started":"Submitted";return`${t.allocationType}: ${l} ${i}`},bc=t=>m.jsx("i",{className:`bi bi-${t}`}),U0=t=>{const r=t.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:t,short:r&&r[3]||null}},_I=t=>{const r=U0(t.name);return r.short||r.full},g0=(t,r)=>t.isCredit>r.isCredit||t.isActive>r.isActive||_I(t)<_I(r)?-1:1,TI=(...t)=>{for(let r of t)if(r!=null)return r;return null},tO=(t,r="and",i=", ")=>t.reduce((l,u,d)=>m.jsxs(m.Fragment,{children:[l,t.length-1>d?i:` ${r} `,u]})),vR=t=>t?m.jsxs(m.Fragment,{children:[bc("check-circle")," Yes"]}):m.jsxs(m.Fragment,{children:[bc("x-circle")," No"]}),mR=t=>tO(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,nO=(t,r,i)=>`1 ${y0(t,1)} = ${ga(r)} ${y0(i,r)}`,rO=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"}],aO={};for(let t of H0)aO[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 gR(t){t&&(Jt.routes={...Jt.routes,...t})}const Rw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},VE={};function iO(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 YU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function ZU(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 qU(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:II(r),points:II(i)}}function NI({activeOrg:t,basemapStyle:r,creditLevels:i,creditType:l,geoJSON:u,organizationType:d}){const v={},h=[];if(u&&i){const x=d==="user"?"rp":"user",C=u[`${d}Points`],w=u[`${x}Points`],R=`${d}Credits`,j=`${x}Credits`;v.organizations={type:"geojson",data:C};const N={user:[],rp:[]},T=[];i.points.forEach((M,F)=>{Object.keys(Rw).forEach(V=>{N[V].push(M[1],Rw[V].colors[F])}),T.push(M[1],5*(F+1))});const A=[];if(i.lines.forEach((M,F)=>{A.push(M[1],1*(F+1))}),h.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",R],...T],"circle-color":["interpolate",["linear"],["get",R],...N[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 M=["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"],M,...T],"circle-color":["interpolate",["linear"],M,...N[x]],"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(x=>x.id!=="Marine waterbody/label/2x large"),...h]}}function JU(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 QU(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:JU(...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 II(t,r=[0,.3,.6,.9]){return r.map((i,l)=>{const u=KU(t,i),d=l===r.length-1?"+":"";return[`${iO(Math.round(u))}${d}`,u]})}function KU(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 eH="_fullscreen_1iid9_6",tH="_map_1iid9_14",Pb={"allocations-map":"_allocations-map_1iid9_1",fullscreen:eH,map:tH},nH="_group_11k83_1",rH="_button_11k83_6",aH="_icon_11k83_16",BE={group:nH,button:rH,icon:aH};function AI({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 iH="_controls_1be4t_1",oH={controls:iH};function sH({creditType:t,organizationType:r,setCreditType:i,setOrganizationType:l}){return m.jsxs("div",{className:oH.controls,children:[m.jsx("h2",{children:"ACCESS Allocations"}),m.jsx(AI,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:t,setValue:i}),m.jsx(AI,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:t==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:l})]})}const lH="_legend_odgg9_1",uH="_symbols_odgg9_17",cH="_symbol_odgg9_17",Jb={legend:lH,symbols:uH,symbol:cH};function dH(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 fH({activeOrg:t,creditLevels:r,organizationType:i}){if(t||!r)return;const l=r.points.map((u,d)=>m.jsxs("div",{className:Jb.symbol,children:[dH(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 pH="_info_oxxoh_1",hH="_user_oxxoh_7",vH="_rp_oxxoh_10",mH="_credits_oxxoh_15",Qb={info:pH,user:hH,rp:vH,credits:mH};function jI(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 gH({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(x=>y[v].push([i[x],h[x]])),m.jsx("div",{className:`${Jb.legend} ${Qb.info}`,children:m.jsxs("p",{className:Qb[l],children:["Researchers at ",jI(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",m.jsxs("span",{className:Qb.credits,children:[iO(d)," ACCESS Credits"]}),r!=="allocated"?m.jsxs(m.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",jI(y.rp,"rp","resource provider")]}):"","."]})})}function yH(){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,x]=k.useState(!1),[C,w]=k.useState(null),[R,j]=k.useState(null),[N,T]=k.useState(null),[A,M]=k.useState("user"),[F,V]=k.useState("exchanged");return k.useEffect(()=>{(async()=>d(await YU()))()},[]),k.useEffect(()=>{(async U=>{const[P,z]=await Promise.all(["organizations",`credits_${U}`].map(ZU));if(!N){const Y={};P.features.forEach(pe=>Y[pe.id.toString()]=pe.properties.name),T(Y)}const X=QU(P,z,F);w(X),U==="exchanged"&&!v&&h(qU(X))})(F)},[F]),k.useEffect(()=>{R&&R.setStyle(NI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:F,geoJSON:C,organizationType:A}))},[i,C,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(()=>{F==="allocated"&&M("user")},[F]),k.useLayoutEffect(()=>j(new maplibregl.Map({container:r.current,style:NI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:F,geoJSON:C,organizationType:A}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),k.useLayoutEffect(()=>t.current.addEventListener("keydown",U=>{U.key==="Escape"&&x(!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(sH,{creditType:F,fullscreen:y,organizationType:A,setCreditType:V,setFullscreen:x,setOrganizationType:M}),m.jsx(fH,{activeOrg:i,creditLevels:v,organizationType:A}),m.jsx(gH,{activeOrg:i,creditType:F,organizationMap:N,organizationType:A}),m.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Pb.fullscreen,onClick:()=>x(!y),children:m.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const bH="_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:bH,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"},xH=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)}},CH=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),OI=(t,r)=>{r.current||(r.current=setInterval(()=>{window.scrollBy(0,t*10)},16))},zE=t=>{t.current&&(clearInterval(t.current),t.current=null)};function SH({availableResources:t,relativeUrlRoot:r}){const i=k.useMemo(()=>CH(t),[t]),[l,u]=k.useState(i),d=k.useRef(null),v=k.useRef(null);k.useEffect(()=>{u(i)},[i]);const h=(C,w)=>{d.current=w},y=(C,w)=>{if(C.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:N}=C,T=130;N<T?OI(-1,v):window.innerHeight-N<T?OI(1,v):zE(v)},x=()=>{d.current=null,zE(v),xH(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((C,w)=>m.jsxs("div",{className:`${ls["resources-item"]}`,draggable:!0,onDragStart:R=>h(R,w),onDragOver:R=>y(R,w),onDrop:x,children:[m.jsx("span",{className:ls["drag-handle"]}),m.jsx("span",{className:ls["resource-name"],children:m.jsx("a",{href:`${r}/resources/${C.resource_id}`,className:ls["resource-link"],children:C.display_resource_name})}),m.jsx("span",{className:ls["resource-repo"],children:C.resource_repository_key||"N/A"})]},C.resource_id))]})]})}var _w={exports:{}},Fb={exports:{}},wn={};/** @license React v16.13.1
|
|
270
|
+
`),ot}m0(()=>{Ie.current=void 0,Ce.current=void 0,Z.current=Ve});const Ge=qt.useMemo(()=>qt.createElement(I,{...Ve,ref:pe}),[pe,I,Ve]);return qt.useMemo(()=>A?qt.createElement(ge.Provider,{value:G},Ge):Ge,[ge,Ge,G])}const z=qt.memo(U);if(z.WrappedComponent=I,z.displayName=U.displayName=F,y){const Y=qt.forwardRef(function(ie,ge){return qt.createElement(z,{...ie,reactReduxForwardedRef:ge})});return Y.displayName=F,Y.WrappedComponent=I,Cw(Y,I)}return Cw(z,I)}}var ps=$U;function UU({store:t,context:r,children:i,serverState:l,stabilityCheck:u="once",identityFunctionCheck:d="once"}){const v=qt.useMemo(()=>{const x=Jj(t);return{store:t,subscription:x,getServerState:l?()=>l:void 0,stabilityCheck:u,identityFunctionCheck:d}},[t,l,u,d]),h=qt.useMemo(()=>t.getState(),[t]);m0(()=>{const{subscription:x}=v;return x.onStateChange=x.notifyNestedSubs,x.trySubscribe(),h!==t.getState()&&x.notifyNestedSubs(),()=>{x.tryUnsubscribe(),x.onStateChange=void 0}},[v,h]);const y=r||au;return qt.createElement(y.Provider,{value:v},i)}var eh=UU;function eO(t=au){const r=t===au?Vj:uR(t),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var HU=eO();function GU(t=au){const r=t===au?HU:eO(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var No=GU();tU(K$.useSyncExternalStoreWithSelector);MU(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"}},$p=(t,r,i="round")=>{const l=Math.pow(10,r||0);return Math[i](t*l)/l},WU=t=>new Date(`${t}T00:00:00`),XU={year:"numeric",month:"short",day:"numeric"},Hd=(t,r)=>WU(t).toLocaleString("en-us",r||XU),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})},hR=(t,r)=>{if(t.startDate&&t.endDate){const u=Hd(t.startDate,r),d=Hd(t.endDate,r);return`${t.allocationType}: ${u} to ${d}`}const i=Hd(t.entryDate,r),l=t.status=="Incomplete"?"Started":"Submitted";return`${t.allocationType}: ${l} ${i}`},bc=t=>m.jsx("i",{className:`bi bi-${t}`}),U0=t=>{const r=t.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:t,short:r&&r[3]||null}},_I=t=>{const r=U0(t.name);return r.short||r.full},g0=(t,r)=>t.isCredit>r.isCredit||t.isActive>r.isActive||_I(t)<_I(r)?-1:1,TI=(...t)=>{for(let r of t)if(r!=null)return r;return null},tO=(t,r="and",i=", ")=>t.reduce((l,u,d)=>m.jsxs(m.Fragment,{children:[l,t.length-1>d?i:` ${r} `,u]})),vR=t=>t?m.jsxs(m.Fragment,{children:[bc("check-circle")," Yes"]}):m.jsxs(m.Fragment,{children:[bc("x-circle")," No"]}),mR=t=>tO(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,nO=(t,r,i)=>`1 ${y0(t,1)} = ${ga(r)} ${y0(i,r)}`,rO=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"}],aO={};for(let t of H0)aO[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 gR(t){t&&(Jt.routes={...Jt.routes,...t})}const Rw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},VE={};function iO(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 YU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function ZU(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 qU(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:II(r),points:II(i)}}function NI({activeOrg:t,basemapStyle:r,creditLevels:i,creditType:l,geoJSON:u,organizationType:d}){const v={},h=[];if(u&&i){const x=d==="user"?"rp":"user",C=u[`${d}Points`],w=u[`${x}Points`],R=`${d}Credits`,j=`${x}Credits`;v.organizations={type:"geojson",data:C};const A={user:[],rp:[]},T=[];i.points.forEach((M,F)=>{Object.keys(Rw).forEach(V=>{A[V].push(M[1],Rw[V].colors[F])}),T.push(M[1],5*(F+1))});const I=[];if(i.lines.forEach((M,F)=>{I.push(M[1],1*(F+1))}),h.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",R],...T],"circle-color":["interpolate",["linear"],["get",R],...A[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 M=["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"],M,...T],"circle-color":["interpolate",["linear"],M,...A[x]],"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"],...I]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...v},layers:[...y.layers.filter(x=>x.id!=="Marine waterbody/label/2x large"),...h]}}function JU(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 QU(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:JU(...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 II(t,r=[0,.3,.6,.9]){return r.map((i,l)=>{const u=KU(t,i),d=l===r.length-1?"+":"";return[`${iO(Math.round(u))}${d}`,u]})}function KU(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 eH="_fullscreen_1iid9_6",tH="_map_1iid9_14",Pb={"allocations-map":"_allocations-map_1iid9_1",fullscreen:eH,map:tH},nH="_group_11k83_1",rH="_button_11k83_6",aH="_icon_11k83_16",BE={group:nH,button:rH,icon:aH};function AI({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 iH="_controls_1be4t_1",oH={controls:iH};function sH({creditType:t,organizationType:r,setCreditType:i,setOrganizationType:l}){return m.jsxs("div",{className:oH.controls,children:[m.jsx("h2",{children:"ACCESS Allocations"}),m.jsx(AI,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:t,setValue:i}),m.jsx(AI,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:t==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:l})]})}const lH="_legend_odgg9_1",uH="_symbols_odgg9_17",cH="_symbol_odgg9_17",Jb={legend:lH,symbols:uH,symbol:cH};function dH(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 fH({activeOrg:t,creditLevels:r,organizationType:i}){if(t||!r)return;const l=r.points.map((u,d)=>m.jsxs("div",{className:Jb.symbol,children:[dH(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 pH="_info_oxxoh_1",hH="_user_oxxoh_7",vH="_rp_oxxoh_10",mH="_credits_oxxoh_15",Qb={info:pH,user:hH,rp:vH,credits:mH};function jI(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 gH({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(x=>y[v].push([i[x],h[x]])),m.jsx("div",{className:`${Jb.legend} ${Qb.info}`,children:m.jsxs("p",{className:Qb[l],children:["Researchers at ",jI(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",m.jsxs("span",{className:Qb.credits,children:[iO(d)," ACCESS Credits"]}),r!=="allocated"?m.jsxs(m.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",jI(y.rp,"rp","resource provider")]}):"","."]})})}function yH(){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,x]=k.useState(!1),[C,w]=k.useState(null),[R,j]=k.useState(null),[A,T]=k.useState(null),[I,M]=k.useState("user"),[F,V]=k.useState("exchanged");return k.useEffect(()=>{(async()=>d(await YU()))()},[]),k.useEffect(()=>{(async U=>{const[P,z]=await Promise.all(["organizations",`credits_${U}`].map(ZU));if(!A){const Y={};P.features.forEach(pe=>Y[pe.id.toString()]=pe.properties.name),T(Y)}const X=QU(P,z,F);w(X),U==="exchanged"&&!v&&h(qU(X))})(F)},[F]),k.useEffect(()=>{R&&R.setStyle(NI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:F,geoJSON:C,organizationType:I}))},[i,C,R,I]),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(()=>{F==="allocated"&&M("user")},[F]),k.useLayoutEffect(()=>j(new maplibregl.Map({container:r.current,style:NI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:F,geoJSON:C,organizationType:I}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),k.useLayoutEffect(()=>t.current.addEventListener("keydown",U=>{U.key==="Escape"&&x(!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(sH,{creditType:F,fullscreen:y,organizationType:I,setCreditType:V,setFullscreen:x,setOrganizationType:M}),m.jsx(fH,{activeOrg:i,creditLevels:v,organizationType:I}),m.jsx(gH,{activeOrg:i,creditType:F,organizationMap:A,organizationType:I}),m.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Pb.fullscreen,onClick:()=>x(!y),children:m.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const bH="_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:bH,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"},xH=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)}},CH=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),OI=(t,r)=>{r.current||(r.current=setInterval(()=>{window.scrollBy(0,t*10)},16))},zE=t=>{t.current&&(clearInterval(t.current),t.current=null)};function SH({availableResources:t,relativeUrlRoot:r}){const i=k.useMemo(()=>CH(t),[t]),[l,u]=k.useState(i),d=k.useRef(null),v=k.useRef(null);k.useEffect(()=>{u(i)},[i]);const h=(C,w)=>{d.current=w},y=(C,w)=>{if(C.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:A}=C,T=130;A<T?OI(-1,v):window.innerHeight-A<T?OI(1,v):zE(v)},x=()=>{d.current=null,zE(v),xH(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((C,w)=>m.jsxs("div",{className:`${ls["resources-item"]}`,draggable:!0,onDragStart:R=>h(R,w),onDragOver:R=>y(R,w),onDrop:x,children:[m.jsx("span",{className:ls["drag-handle"]}),m.jsx("span",{className:ls["resource-name"],children:m.jsx("a",{href:`${r}/resources/${C.resource_id}`,className:ls["resource-link"],children:C.display_resource_name})}),m.jsx("span",{className:ls["resource-repo"],children:C.resource_repository_key||"N/A"})]},C.resource_id))]})]})}var _w={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.
|
|
274
274
|
*
|
|
275
275
|
* This source code is licensed under the MIT license found in the
|
|
276
276
|
* LICENSE file in the root directory of this source tree.
|
|
277
|
-
*/var DI;function EH(){if(DI)return wn;DI=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,d=t?Symbol.for("react.profiler"):60114,v=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,y=t?Symbol.for("react.async_mode"):60111,x=t?Symbol.for("react.concurrent_mode"):60111,C=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,R=t?Symbol.for("react.suspense_list"):60120,j=t?Symbol.for("react.memo"):60115,
|
|
277
|
+
*/var DI;function EH(){if(DI)return wn;DI=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,d=t?Symbol.for("react.profiler"):60114,v=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,y=t?Symbol.for("react.async_mode"):60111,x=t?Symbol.for("react.concurrent_mode"):60111,C=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,R=t?Symbol.for("react.suspense_list"):60120,j=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,T=t?Symbol.for("react.block"):60121,I=t?Symbol.for("react.fundamental"):60117,M=t?Symbol.for("react.responder"):60118,F=t?Symbol.for("react.scope"):60119;function V(P){if(typeof P=="object"&&P!==null){var z=P.$$typeof;switch(z){case r:switch(P=P.type,P){case y:case x:case l:case d:case u:case w:return P;default:switch(P=P&&P.$$typeof,P){case h:case C:case A:case j:case v:return P;default:return z}}case i:return z}}}function U(P){return V(P)===x}return wn.AsyncMode=y,wn.ConcurrentMode=x,wn.ContextConsumer=h,wn.ContextProvider=v,wn.Element=r,wn.ForwardRef=C,wn.Fragment=l,wn.Lazy=A,wn.Memo=j,wn.Portal=i,wn.Profiler=d,wn.StrictMode=u,wn.Suspense=w,wn.isAsyncMode=function(P){return U(P)||V(P)===y},wn.isConcurrentMode=U,wn.isContextConsumer=function(P){return V(P)===h},wn.isContextProvider=function(P){return V(P)===v},wn.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===r},wn.isForwardRef=function(P){return V(P)===C},wn.isFragment=function(P){return V(P)===l},wn.isLazy=function(P){return V(P)===A},wn.isMemo=function(P){return V(P)===j},wn.isPortal=function(P){return V(P)===i},wn.isProfiler=function(P){return V(P)===d},wn.isStrictMode=function(P){return V(P)===u},wn.isSuspense=function(P){return V(P)===w},wn.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===l||P===x||P===d||P===u||P===w||P===R||typeof P=="object"&&P!==null&&(P.$$typeof===A||P.$$typeof===j||P.$$typeof===v||P.$$typeof===h||P.$$typeof===C||P.$$typeof===I||P.$$typeof===M||P.$$typeof===F||P.$$typeof===T)},wn.typeOf=V,wn}var Rn={},kI;function wH(){if(kI)return Rn;kI=1;var t={};/** @license React v16.13.1
|
|
278
278
|
* react-is.development.js
|
|
279
279
|
*
|
|
280
280
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
281
281
|
*
|
|
282
282
|
* This source code is licensed under the MIT license found in the
|
|
283
283
|
* LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/return t.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,u=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,v=r?Symbol.for("react.profiler"):60114,h=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,x=r?Symbol.for("react.async_mode"):60111,C=r?Symbol.for("react.concurrent_mode"):60111,w=r?Symbol.for("react.forward_ref"):60112,R=r?Symbol.for("react.suspense"):60113,j=r?Symbol.for("react.suspense_list"):60120,
|
|
284
|
+
*/return t.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,u=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,v=r?Symbol.for("react.profiler"):60114,h=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,x=r?Symbol.for("react.async_mode"):60111,C=r?Symbol.for("react.concurrent_mode"):60111,w=r?Symbol.for("react.forward_ref"):60112,R=r?Symbol.for("react.suspense"):60113,j=r?Symbol.for("react.suspense_list"):60120,A=r?Symbol.for("react.memo"):60115,T=r?Symbol.for("react.lazy"):60116,I=r?Symbol.for("react.block"):60121,M=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,V=r?Symbol.for("react.scope"):60119;function U(je){return typeof je=="string"||typeof je=="function"||je===u||je===C||je===v||je===d||je===R||je===j||typeof je=="object"&&je!==null&&(je.$$typeof===T||je.$$typeof===A||je.$$typeof===h||je.$$typeof===y||je.$$typeof===w||je.$$typeof===M||je.$$typeof===F||je.$$typeof===V||je.$$typeof===I)}function P(je){if(typeof je=="object"&&je!==null){var Rt=je.$$typeof;switch(Rt){case i:var dt=je.type;switch(dt){case x:case C:case u:case v:case d:case R:return dt;default:var en=dt&&dt.$$typeof;switch(en){case y:case w:case T:case A:case h:return en;default:return Rt}}case l:return Rt}}}var z=x,X=C,Y=y,pe=h,ie=i,ge=w,ae=u,Re=T,be=A,xe=l,Ae=v,Le=d,ne=R,Oe=!1;function G(je){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(je)||P(je)===x}function Z(je){return P(je)===C}function re(je){return P(je)===y}function Ce(je){return P(je)===h}function we(je){return typeof je=="object"&&je!==null&&je.$$typeof===i}function Te(je){return P(je)===w}function Ie(je){return P(je)===u}function ue(je){return P(je)===T}function de(je){return P(je)===A}function Ve(je){return P(je)===l}function Ge(je){return P(je)===v}function tt(je){return P(je)===d}function ot(je){return P(je)===R}Rn.AsyncMode=z,Rn.ConcurrentMode=X,Rn.ContextConsumer=Y,Rn.ContextProvider=pe,Rn.Element=ie,Rn.ForwardRef=ge,Rn.Fragment=ae,Rn.Lazy=Re,Rn.Memo=be,Rn.Portal=xe,Rn.Profiler=Ae,Rn.StrictMode=Le,Rn.Suspense=ne,Rn.isAsyncMode=G,Rn.isConcurrentMode=Z,Rn.isContextConsumer=re,Rn.isContextProvider=Ce,Rn.isElement=we,Rn.isForwardRef=Te,Rn.isFragment=Ie,Rn.isLazy=ue,Rn.isMemo=de,Rn.isPortal=Ve,Rn.isProfiler=Ge,Rn.isStrictMode=tt,Rn.isSuspense=ot,Rn.isValidElementType=U,Rn.typeOf=P}(),Rn}var MI;function yR(){if(MI)return Fb.exports;MI=1;var t={};return t.NODE_ENV==="production"?Fb.exports=EH():Fb.exports=wH(),Fb.exports}/*
|
|
285
285
|
object-assign
|
|
286
286
|
(c) Sindre Sorhus
|
|
287
287
|
@license MIT
|
|
288
|
-
*/var $E,LI;function RH(){if(LI)return $E;LI=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(C){return v[C]});if(y.join("")!=="0123456789")return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(C){x[C]=C}),Object.keys(Object.assign({},x)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $E=u()?Object.assign:function(d,v){for(var h,y=l(d),x,C=1;C<arguments.length;C++){h=Object(arguments[C]);for(var w in h)r.call(h,w)&&(y[w]=h[w]);if(t){x=t(h);for(var R=0;R<x.length;R++)i.call(h,x[R])&&(y[x[R]]=h[x[R]])}}return y},$E}var UE,PI;function bR(){if(PI)return UE;PI=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return UE=t,UE}var HE,FI;function oO(){return FI||(FI=1,HE=Function.call.bind(Object.prototype.hasOwnProperty)),HE}var GE,VI;function _H(){if(VI)return GE;VI=1;var t={},r=function(){};if(t.NODE_ENV!=="production"){var i=bR(),l={},u=oO();r=function(v){var h="Warning: "+v;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}}}function d(v,h,y,x,C){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((x||"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,x,y,null,i)}catch(T){R=T}if(R&&!(R instanceof Error)&&r((x||"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
|
|
289
|
-
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var je=ot(de,tt,Te,Ie,ue+"."+tt,l);if(je)return je}return null}return M(re)}function xe(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(xe);if(Z===null||y(Z))return!0;var re=R(Z);if(re){var Ce=re.call(Z),we;if(re!==Z.entries){for(;!(we=Ce.next()).done;)if(!xe(we.value))return!1}else for(;!(we=Ce.next()).done;){var Te=we.value;if(Te&&!xe(Te[1]))return!1}}else return!1;return!0;default:return!1}}function Ae(Z,re){return Z==="symbol"?!0:re?re["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&re instanceof Symbol:!1}function Le(Z){var re=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":Ae(re,Z)?"symbol":re}function ne(Z){if(typeof Z>"u"||Z===null)return""+Z;var re=Le(Z);if(re==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return re}function Oe(Z){var re=ne(Z);switch(re){case"array":case"object":return"an "+re;case"boolean":case"date":case"regexp":return"a "+re;default:return re}}function G(Z){return!Z.constructor||!Z.constructor.name?j:Z.constructor.name}return N.checkPropTypes=d,N.resetWarningCache=d.resetWarningCache,N.PropTypes=N,N},WE}var XE,zI;function NH(){if(zI)return XE;zI=1;var t=bR();function r(){}function i(){}return i.resetWarningCache=r,XE=function(){function l(v,h,y,x,C,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 IH={};if(IH.NODE_ENV!=="production"){var AH=yR(),jH=!0;_w.exports=TH()(AH.isElement,jH)}else _w.exports=NH()();var OH=_w.exports;const Be=Kp(OH);function th(){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:Be.string,options:Be.arrayOf(Be.shape({value:Be.oneOfType([Be.string,Be.number]).isRequired,label:Be.string.isRequired,additionalInfo:Be.string})).isRequired,value:Be.oneOfType([Be.string,Be.number]),onChange:Be.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 DH="_blurred_16xcy_16",ql={"advanced-settings":"_advanced-settings_16xcy_1","header-wrapper":"_header-wrapper_16xcy_5","content-container":"_content-container_16xcy_11",blurred:DH,"warning-banner":"_warning-banner_16xcy_21","alt-warning-banner":"_alt-warning-banner_16xcy_40 _warning-banner_16xcy_21"},xR=({headerText:t,header:r,children:i,isEditing:l=!1,onEditingChange:u,warningMessage:d=""})=>{const v=t&&t.type==="label";return m.jsxs("div",{className:ql["advanced-settings"],children:[(t||r)&&m.jsxs("div",{className:ql["header-wrapper"],children:[t,r&&m.jsx("div",{className:`${ql["header-buttons-container"]} ${l?"":ql.blurred}`,children:r})]}),m.jsxs("div",{style:{width:"100%"},children:[!l&&m.jsxs("div",{className:v?`${ql["alt-warning-banner"]}`:ql["warning-banner"],children:[m.jsxs("span",{className:ql["warning-text"],children:[m.jsx("strong",{children:"CAUTION! "})," ",d]}),m.jsx("button",{className:"btn btn-danger",onClick:()=>u(!0),children:"I understand the risks"})]}),m.jsx("div",{className:`${ql["content-container"]} ${l?"":ql.blurred}`,children:i})]})]})};xR.propTypes={headerText:Be.node,header:Be.node,children:Be.node.isRequired,isEditing:Be.bool,onEditingChange:Be.func.isRequired,warningMessage:Be.string};const Tw=t=>({type:"SET_RESOURCE_DATA",payload:t}),kH=t=>({type:"SET_LOADING",payload:t}),$I=(t,r)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:t,color:r}}),sm=(t,r)=>({type:"UPDATE_RESOURCE_FIELD",field:t,value:r}),YE=(t,r)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:t,updates:r}}),sO=pr.memo(function({resourceDetails:r,resourceTypesOptions:i,unitTypesOptions:l,dispatch:u,isDollarValueEditing:d,onDollarValueEditingChange:v}){return m.jsxs(m.Fragment,{children:[m.jsx(gm,{label:"Resource Name",value:r.resource_name,onChange:h=>u(sm("resource_name",h.target.value)),inputClassName:"span8"}),m.jsx(gm,{label:"Resource ID",value:r.resource_id,disabled:!0,inputClassName:"span8"}),m.jsx(xR,{headerText:m.jsx("label",{children:"Dollar Value per SUs"}),isEditing:d,onEditingChange:v,warningMessage:"Dollar value is for reporting and should only be modified if the SU rate changes.",children:m.jsx(gm,{value:r.dollar_value,onChange:h=>u(sm("dollar_value",h.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:h=>u(sm("description",h.target.value)),inputClassName:"span8"}),m.jsx(Rm,{label:"Resource Type",options:i,value:r.resource_type_id,onChange:h=>u(sm("resource_type_id",h.target.value)),className:"span8"}),m.jsx(Rm,{label:"Unit Type",options:l,value:r.unit_type_id,onChange:h=>u(sm("unit_type_id",h.target.value)),className:"span8"})]})});sO.propTypes={resourceDetails:Be.object.isRequired,resourceTypesOptions:Be.array.isRequired,unitTypesOptions:Be.array.isRequired,dispatch:Be.func.isRequired};const MH="_grid_afccc_1",LH="_important_afccc_30",PH="_input_afccc_34",FH="_edited_afccc_38",VH="_disabled_afccc_46",BH="_scroll_afccc_59",Gd={grid:MH,important:LH,input:PH,edited:FH,disabled:VH,scroll:BH};function zH({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 CR=({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}));CR.propTypes={title:Be.string.isRequired,placement:Be.oneOf(["top","bottom","left","right"]),children:Be.node.isRequired};CR.defaultProps={placement:"top"};const $H="_datepicker_19wnv_1",UH="_error_19wnv_1",UI={datepicker:$H,error:UH},HH=({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:`${UI.datepicker} ${y?UI.error:""}`,value:t||"",onChange:x=>r(x.target.value),disabled:i,min:d||"1900-01-01",max:v||"2100-12-31"})})},lm=(t,r,i)=>{if(r.onChange){r.onChange(i,t);return}const l=t[r.key];l!=null&&l.onChange&&l.onChange(i)},GH={text:zH,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=>lm(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=>lm(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=>lm(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(HH,{value:l.value,onChange:u=>lm(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 lm(r,t,(l=r[t.key])==null?void 0:l.id)},children:m.jsx("i",{className:"fa fa-trash"})})})};function su({columns:t,rows:r,classes:i,frozenColumns:l=0,minWidth:u,rowClasses:d=[],scroll:v=!0,scrollBehavior:h="smooth",scrollRowIndex:y=0}){const x=k.useRef();k.useLayoutEffect(()=>{if(!v||!x.current)return;const T=x.current.querySelector(`tbody tr:nth-child(${y+1})`);T&&T.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,y,h]);const C=[0];for(let T=0;T<l;T++)C[T+1]=C[T]+(t[T].width||100);const w=(T,A)=>T<l?{position:"sticky",left:`${C[T]}px`,minWidth:`${t[T].width||100}px`,width:`${t[T].width||100}px`,zIndex:A||1}:{},R=t.map((T,A)=>m.jsxs("th",{className:T.headerClass||T.class||"",style:w(A,100),children:[T.formatHeader?T.formatHeader(T.name,T):T.name,T.tooltip&&m.jsx(CR,{title:T.tooltip,placement:"bottom",children:m.jsx("i",{className:"icon-info-sign"})})]},T.key)),j=r.map((T,A)=>{const M=t.map((F,V)=>{const U=GH[F.type||"text"];return m.jsx(U,{column:F,row:T,style:w(V)},F.key)});return m.jsx("tr",{className:d[A]||"",children:M},A)}),N={};return u&&(N.minWidth=u),m.jsx("div",{className:`${Gd.grid} ${v?Gd.scroll:""} ${i||""}`,ref:x,children:m.jsxs("table",{className:"table table-bordered",style:N,children:[m.jsx("thead",{children:m.jsx("tr",{children:R})}),m.jsx("tbody",{children:j})]})})}const Nw={"header-buttons":"_header-buttons_15oxx_1","allocation-types-grid":"_allocation-types-grid_15oxx_6","vertical-align-center":"_vertical-align-center_15oxx_10"},lO=({onAddAllocationType:t,onAddRequiredResource:r})=>m.jsxs("div",{className:Nw["header-buttons"],children:[m.jsxs("button",{className:"btn btn-primary",onClick:t,children:[m.jsx("i",{className:"fa fa-plus"})," Add Allocation Type"]}),m.jsxs("button",{className:"btn btn-primary",onClick:r,children:[m.jsx("i",{className:"fa fa-plus"})," Add Required Resource"]})]});lO.propTypes={headerText:Be.node,onAddAllocationType:Be.func.isRequired,onAddRequiredResource:Be.func.isRequired};const uO=pr.memo(function({columns:r,rows:i}){return m.jsx("div",{className:Nw["allocation-types-grid"],children:m.jsx(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Nw["vertical-align-center"]),scroll:!1})})});uO.propTypes={columns:Be.array.isRequired,rows:Be.array.isRequired};const Iw=({show:t,onClose:r,title:i,children:l,onSave:u,buttonText:d})=>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:d})})]})})})}):null;Iw.propTypes={show:Be.bool.isRequired,onClose:Be.func.isRequired,title:Be.string.isRequired,children:Be.node.isRequired,onSave:Be.func.isRequired,buttonText:Be.string};const Pp={"exchange-rates-grid":"_exchange-rates-grid_5qkd5_1","header-container":"_header-container_5qkd5_5","header-buttons":"_header-buttons_5qkd5_11","vertical-align-center":"_vertical-align-center_5qkd5_18","error-summary":"_error-summary_5qkd5_35"},cO=pr.memo(function({columns:r,rows:i,onAddDiscountRate:l,dateErrors:u=[]}){return m.jsxs("div",{className:Pp["exchange-rates-grid"],children:[m.jsxs("div",{className:Pp["header-container"],children:[m.jsx("h2",{className:Pp["header-title"],children:"Exchange Rates"}),m.jsx("div",{className:Pp["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(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Pp["vertical-align-center"]),scroll:!1}),u.length>0&&m.jsx("div",{className:Pp["error-summary"],children:m.jsx("ul",{children:u.map((d,v)=>m.jsx("li",{children:d},v))})})]})});cO.propTypes={columns:Be.array.isRequired,rows:Be.array.isRequired,onAddDiscountRate:Be.func.isRequired,dateErrors:Be.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:"×"})})]}),WH=(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}},XH=async(t,r)=>await(await fetch(`${r}/resources/${t}.json`)).json(),YH=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})})),ZH=(t,r)=>{const[i,l]=k.useReducer(WH,{resourceData:null,loading:!0,errors:[],successMessage:{message:"",color:""}}),u=k.useCallback(async(v,h)=>{let y=[h];try{const x=await v.json();x.errors?y=x.errors:x.message&&(y=[x.message])}catch(x){console.error("Error parsing error response:",x)}l({type:"SET_ERRORS",payload:y})},[]),d=k.useCallback(async()=>{l(kH(!0));try{const v=await XH(t,r);l(Tw(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}},dO=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)||[]}},qH=(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 N;(N=j.required_resources)==null||N.forEach(T=>{w.add(T.resource_name)})}),Array.from(w).sort((j,N)=>j.localeCompare(N)).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 N;return[j.key,{checked:((N=w.required_resources)==null?void 0:N.some(T=>T.resource_name===j.key))||!1,onChange:T=>v(w.allocation_type_id,j.key,T,w)}]}))}}):[],requiredResourcesColumns:y}},JH=(t,r,i)=>{const{availableResources:l,availableAllocationTypes:u,allowedActionsOptions:d}=dO(t),[v,h]=k.useState(!1),[y,x]=k.useState(!1),[C,w]=k.useState([]),[R,j]=k.useState(""),N=k.useCallback((P,z)=>{i(YE(P,{allowed_action:{resource_state_type_id:z}}))},[i]),T=k.useCallback((P,z)=>{i(YE(P,{comment:z}))},[i]),A=k.useCallback((P,z,X,Y)=>{const pe=X?[...Y.required_resources||[],{resource_name:z,required_resource_id:t.required_resources_available.find(ie=>ie.resource_name===z).resource_id}]:(Y.required_resources||[]).filter(ie=>ie.resource_name!==z);i(YE(P,{required_resources:pe}))},[t,i]);k.useEffect(()=>{if(v&&r){const P=r.allocation_types.flatMap(z=>z.required_resources||[]).map(z=>z.required_resource_id);w(P)}},[v,r]);const M=k.useCallback((P,z)=>{w(X=>z?[...X,P]:X.filter(Y=>Y!==P))},[]),F=k.useCallback(()=>{const P=r.allocation_types.flatMap(pe=>pe.required_resources||[]).map(pe=>pe.required_resource_id),z=C.filter(pe=>!P.includes(pe)),X=P.filter(pe=>!C.includes(pe)),Y=r.allocation_types.map(pe=>{const ie=pe.required_resources||[],ge=z.map(Re=>{const be=l.find(xe=>xe.resource_id===Re);return{resource_name:be.resource_name,required_resource_id:be.resource_id}}),ae=ie.filter(Re=>!X.includes(Re.required_resource_id)).concat(ge.filter(Re=>!ie.some(be=>be.required_resource_id===Re.required_resource_id)));return{...pe,required_resources:ae}});i(Tw({...t,resource_details:{...r,allocation_types:Y}})),w([]),h(!1)},[C,l,r,t,i]),V=k.useCallback(P=>{const z=P.target.value;j(z)},[]),U=k.useCallback(()=>{var X,Y;if(!R)return;const P=u.find(pe=>pe.allocation_type_id.toString()===R),z=(X=r.allocation_types)==null?void 0:X.some(pe=>pe.allocation_type_id===P.allocation_type_id);if(P&&!z){const pe=(Y=d[0])==null?void 0:Y.value,ie=[...r.allocation_types||[],{allocation_type_id:P.allocation_type_id,display_name:P.display_name,allowed_action:{resource_state_type_id:pe},comment:"",required_resources:[]}];i(Tw({...t,resource_details:{...r,allocation_types:ie}})),x(!1)}},[R,u,r,t,i,d]);return{showAddResourceModal:v,setShowAddResourceModal:h,showAddAllocationTypeModal:y,setShowAddAllocationTypeModal:x,selectedNewResource:C,handleSelectNewResource:M,handleSaveResources:F,selectedNewAllocationType:R,handleSelectNewAllocationType:V,handleSaveAllocationType:U,handleAllowedActionChange:N,handleCommentChange:T,handleRequiredResourceChange:A}},QH=(t,r,i,l,u,d)=>k.useCallback(async()=>{var y,x,C;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:(C=(x=t.exchange_rates)==null?void 0:x.discount_rates)==null?void 0:C.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 YH(r,i,v,h);if(w.ok){const R=await w.json();return d($I(R.message||"Resource updated successfully!","success")),await l(),!0}else return await u(w,"Failed to update resource"),!1}catch{return d($I("Error updating resource. Please try again later.","danger")),!1}},[t,r,i,l,u]),KH=(t=!1)=>{const[r,i]=k.useState(t);return{isEditing:r,handleEditingChange:u=>{i(u)}}},eG=(t,r)=>{const i=k.useCallback(j=>{var T,A;r({type:"DELETE_EXCHANGE_RATE",payload:j}),(((A=(T=t==null?void 0:t.resource_details)==null?void 0:T.exchange_rates)==null?void 0:A.discount_rates.filter(M=>M.id!==j))||[]).forEach(M=>{M.begin_date&&M.end_date&&r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:M.id,changes:{start_date_error:"",end_date_error:""}}})})},[r,t]),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:"conversion",name:"Resource Units per ACCESS Credit",width:150},{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=j=>{r({type:"UPDATE_BASE_RATE",payload:j})},d=(j,N)=>{const T={exchange_rate:N},A={};N?A.rate_error="":A.rate_error="Exchange Rate cannot be empty",r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...T,...A}}})},v=()=>{var T,A;const j=[];return(((A=(T=t==null?void 0:t.resource_details)==null?void 0:T.exchange_rates)==null?void 0:A.discount_rates)||[]).forEach(M=>{M.start_date_error&&j.push(M.start_date_error),M.end_date_error&&j.push(M.end_date_error),M.rate_error&&j.push(M.rate_error)}),j.filter((M,F)=>M&&M!==""&&(!M.includes("overlaps")||j.indexOf(M)===F))},h=j=>{const N=new Date(j);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(N)},y=(j,N,T,A)=>{const M=new Date(j).getTime(),F=new Date(N).getTime(),V=new Date(T).getTime(),U=new Date(A).getTime();return M<=U&&V<=F},x=(j,N)=>{let T="";if(j.begin_date&&j.end_date){const A=N.filter(M=>M.id!==j.id);for(const M of A)if(M.begin_date&&M.end_date&&y(j.begin_date,j.end_date,M.begin_date,M.end_date)){T=`The selected date range (${h(j.begin_date)} to ${h(j.end_date)}) overlaps with an existing discount rate (${h(M.begin_date)} to ${h(M.end_date)})`;break}}return T},C=(j,N,T)=>{var ie,ge;const A={start_date:"begin_date",end_date:"end_date"},M=ae=>{const Re=new Date(ae);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(Re)},F=((ge=(ie=t==null?void 0:t.resource_details)==null?void 0:ie.exchange_rates)==null?void 0:ge.discount_rates)||[],V=F.find(ae=>ae.id===j);if(!V)return;const U={[A[N]]:T},P={},z=N==="end_date",X=()=>{if(!T)return P[`${N}_error`]="Date cannot be empty or invalid",!1;const ae=l.find(Ae=>Ae.key===N),Re=(ae==null?void 0:ae.minDate)||"1900-01-01",be=(ae==null?void 0:ae.maxDate)||"2100-12-31",xe=z&&V.begin_date?V.begin_date:Re;return T<xe?(P[`${N}_error`]=`${N.replace("_"," ")} ${M(T)} cannot be before ${M(xe)}`,!1):T>be?(P[`${N}_error`]=`${N.replace("_"," ")} cannot be after ${M(be)}`,!1):(P[`${N}_error`]="",!0)},Y=()=>{const ae=N==="end_date"?T:V.end_date;if(N==="start_date"&&ae){if(T>ae)return P.end_date_error=`end date ${M(ae)} cannot be before ${M(T)}`,!1;P.end_date_error=P.end_date_error||""}return!0},pe=()=>{console.log("validating overlaps");const ae=N==="start_date"?T:V.begin_date,Re=N==="end_date"?T:V.end_date;if(ae&&Re){const be=x({...V,begin_date:ae,end_date:Re},F);return P.start_date_error=be,P.end_date_error=be,!be}return!0};if(!X()){r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...P}}});return}Y(),pe(),z&&!V.begin_date?P.start_date_error="Date cannot be empty or invalid":!z&&!V.end_date&&(P.end_date_error="Date cannot be empty or invalid"),r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...P}}})},w=()=>{var P,z;const j=((z=(P=t==null?void 0:t.resource_details)==null?void 0:P.exchange_rates)==null?void 0:z.discount_rates)||[];let T=new Date;j.forEach(X=>{if(X.end_date){const Y=new Date(X.end_date);Y>T&&(T=Y)}});const A=new Date(T);A.setDate(A.getDate()+1);const M=A.toISOString().split("T")[0],F=new Date(A);F.setDate(F.getDate()+15);const V=F.toISOString().split("T")[0],U={id:Date.now(),exchange_rate:"1.0",begin_date:M,end_date:V,is_new:!0};r({type:"ADD_EXCHANGE_RATE",payload:U})};return{exchangeRateColumns:l,exchangeRateRows:(()=>{var V,U;const j=(V=t==null?void 0:t.resource_details)==null?void 0:V.exchange_rates,N=(j==null?void 0:j.base_rate)??"",T=(j==null?void 0:j.discount_rates)||[],A=new Date().toISOString().split("T")[0],M=((U=t==null?void 0:t.resource_details)==null?void 0:U.unit_type)||"Resource Units",F=P=>!P||Number(P)===0?"-":`${(1/Number(P)).toFixed(2)} ${M}`;return[{rate_type:"Base Rate",rate:{value:N.toString(),onChange:P=>u(P)},conversion:F(N)},...T.map(P=>{var pe;const z=P.is_new||P.begin_date>A,X=z||P.begin_date==="",Y=P.is_new||P.end_date>=A||P.end_date==="";return{rate_type:"Discount",rate:{value:((pe=P.exchange_rate)==null?void 0:pe.toString())||"",onChange:z?ie=>d(P.id,ie):null,disabled:!z},conversion:F(P.exchange_rate),start_date:{value:P.begin_date||"",onChange:ie=>C(P.id,"start_date",ie),error:P.start_date_error,disabled:!X},end_date:{value:P.end_date||"",onChange:ie=>C(P.id,"end_date",ie),error:P.end_date_error,disabled:!Y},actions:{id:P.id}}})]})(),handleAddDiscountRate:w,handleDeleteRate:i,dateErrors:v()}};function fO({resourceId:t,relativeUrlRoot:r,setExternalSubmit:i}){const{state:l,dispatch:u,handleError:d,fetchData:v}=ZH(t,r),{isEditing:h,handleEditingChange:y}=KH(),{resourceData:x,loading:C,errors:w,successMessage:R}=l,j=x==null?void 0:x.resource_details,N=x==null?void 0:x.uses_exchange_rates,{allowedActionsOptions:T,resourceTypesOptions:A,unitTypesOptions:M,availableResources:F,availableAllocationTypes:V}=dO(x),{showAddResourceModal:U,setShowAddResourceModal:P,showAddAllocationTypeModal:z,setShowAddAllocationTypeModal:X,selectedNewResource:Y,handleSelectNewResource:pe,handleSaveResources:ie,selectedNewAllocationType:ge,handleSelectNewAllocationType:ae,handleSaveAllocationType:Re,handleAllowedActionChange:be,handleCommentChange:xe,handleRequiredResourceChange:Ae}=JH(x,j,u),{exchangeRateColumns:Le,exchangeRateRows:ne,handleAddDiscountRate:Oe,dateErrors:G}=eG(x,u),Z=QH(j,t,r,v,d,u);k.useEffect(()=>{i&&G.length==0?i(Z):i(null)},[Z,i,G]);const{allocationColumns:re,allocationRows:Ce}=qH(j,F,Y,T,be,xe,Ae),[we,Te]=k.useState(!1);return C?m.jsx(th,{}):w.length>0?m.jsx("div",{children:w.map((Ie,ue)=>m.jsx(Mr,{color:"danger",children:Ie},ue))}):x?m.jsxs("div",{className:"edit-resource",children:[R.message&&m.jsx(Mr,{color:R.color,children:R.message}),m.jsxs("div",{children:[m.jsx("h2",{children:"Resource Propeties"}),m.jsx("div",{style:{marginBottom:"0.75rem"},children:m.jsx("p",{style:{margin:"0",fontStyle:"italic",fontWeight:"bold"},children:"Any modifications to these resource properties will be applied globally and impact resources on other all allocations process"})}),m.jsx(sO,{resourceDetails:j,resourceTypesOptions:A,unitTypesOptions:M,dispatch:u,isDollarValueEditing:we,onDollarValueEditingChange:Te})]}),N&&m.jsx(cO,{columns:Le,rows:ne,onAddDiscountRate:Oe,dateErrors:G}),m.jsx(xR,{headerText:m.jsx("h2",{children:"Allocation Types"}),header:m.jsx(lO,{onAddAllocationType:()=>h&&X(!0),onAddRequiredResource:()=>h&&P(!0)}),isEditing:h,onEditingChange:y,warningMessage:`Incorrect allocations
|
|
288
|
+
*/var $E,LI;function RH(){if(LI)return $E;LI=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(C){return v[C]});if(y.join("")!=="0123456789")return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(C){x[C]=C}),Object.keys(Object.assign({},x)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $E=u()?Object.assign:function(d,v){for(var h,y=l(d),x,C=1;C<arguments.length;C++){h=Object(arguments[C]);for(var w in h)r.call(h,w)&&(y[w]=h[w]);if(t){x=t(h);for(var R=0;R<x.length;R++)i.call(h,x[R])&&(y[x[R]]=h[x[R]])}}return y},$E}var UE,PI;function bR(){if(PI)return UE;PI=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return UE=t,UE}var HE,FI;function oO(){return FI||(FI=1,HE=Function.call.bind(Object.prototype.hasOwnProperty)),HE}var GE,VI;function _H(){if(VI)return GE;VI=1;var t={},r=function(){};if(t.NODE_ENV!=="production"){var i=bR(),l={},u=oO();r=function(v){var h="Warning: "+v;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}}}function d(v,h,y,x,C){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((x||"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,x,y,null,i)}catch(T){R=T}if(R&&!(R instanceof Error)&&r((x||"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 A=C?C():"";r("Failed "+y+" type: "+R.message+(A??""))}}}}return d.resetWarningCache=function(){t.NODE_ENV!=="production"&&(l={})},GE=d,GE}var WE,BI;function TH(){if(BI)return WE;BI=1;var t={},r=yR(),i=RH(),l=bR(),u=oO(),d=_H(),v=function(){};t.NODE_ENV!=="production"&&(v=function(y){var x="Warning: "+y;typeof console<"u"&&console.error(x);try{throw new Error(x)}catch{}});function h(){return null}return WE=function(y,x){var C=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function R(Z){var re=Z&&(C&&Z[C]||Z[w]);if(typeof re=="function")return re}var j="<<anonymous>>",A={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:V(),arrayOf:U,element:P(),elementType:z(),instanceOf:X,node:ge(),objectOf:pe,oneOf:Y,oneOfType:ie,shape:Re,exact:be};function T(Z,re){return Z===re?Z!==0||1/Z===1/re:Z!==Z&&re!==re}function I(Z,re){this.message=Z,this.data=re&&typeof re=="object"?re:{},this.stack=""}I.prototype=Error.prototype;function M(Z){if(t.NODE_ENV!=="production")var re={},Ce=0;function we(Ie,ue,de,Ve,Ge,tt,ot){if(Ve=Ve||j,tt=tt||de,ot!==l){if(x){var je=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 je.name="Invariant Violation",je}else if(t.NODE_ENV!=="production"&&typeof console<"u"){var Rt=Ve+":"+de;!re[Rt]&&Ce<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."),re[Rt]=!0,Ce++)}}return ue[de]==null?Ie?ue[de]===null?new I("The "+Ge+" `"+tt+"` is marked as required "+("in `"+Ve+"`, but its value is `null`.")):new I("The "+Ge+" `"+tt+"` is marked as required in "+("`"+Ve+"`, but its value is `undefined`.")):null:Z(ue,de,Ve,Ge,tt)}var Te=we.bind(null,!1);return Te.isRequired=we.bind(null,!0),Te}function F(Z){function re(Ce,we,Te,Ie,ue,de){var Ve=Ce[we],Ge=Le(Ve);if(Ge!==Z){var tt=ne(Ve);return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+tt+"` supplied to `"+Te+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return M(re)}function V(){return M(h)}function U(Z){function re(Ce,we,Te,Ie,ue){if(typeof Z!="function")return new I("Property `"+ue+"` of component `"+Te+"` has invalid PropType notation inside arrayOf.");var de=Ce[we];if(!Array.isArray(de)){var Ve=Le(de);return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Ve+"` supplied to `"+Te+"`, expected an array."))}for(var Ge=0;Ge<de.length;Ge++){var tt=Z(de,Ge,Te,Ie,ue+"["+Ge+"]",l);if(tt instanceof Error)return tt}return null}return M(re)}function P(){function Z(re,Ce,we,Te,Ie){var ue=re[Ce];if(!y(ue)){var de=Le(ue);return new I("Invalid "+Te+" `"+Ie+"` of type "+("`"+de+"` supplied to `"+we+"`, expected a single ReactElement."))}return null}return M(Z)}function z(){function Z(re,Ce,we,Te,Ie){var ue=re[Ce];if(!r.isValidElementType(ue)){var de=Le(ue);return new I("Invalid "+Te+" `"+Ie+"` of type "+("`"+de+"` supplied to `"+we+"`, expected a single ReactElement type."))}return null}return M(Z)}function X(Z){function re(Ce,we,Te,Ie,ue){if(!(Ce[we]instanceof Z)){var de=Z.name||j,Ve=G(Ce[we]);return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Ve+"` supplied to `"+Te+"`, expected ")+("instance of `"+de+"`."))}return null}return M(re)}function Y(Z){if(!Array.isArray(Z))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 re(Ce,we,Te,Ie,ue){for(var de=Ce[we],Ve=0;Ve<Z.length;Ve++)if(T(de,Z[Ve]))return null;var Ge=JSON.stringify(Z,function(ot,je){var Rt=ne(je);return Rt==="symbol"?String(je):je});return new I("Invalid "+Ie+" `"+ue+"` of value `"+String(de)+"` "+("supplied to `"+Te+"`, expected one of "+Ge+"."))}return M(re)}function pe(Z){function re(Ce,we,Te,Ie,ue){if(typeof Z!="function")return new I("Property `"+ue+"` of component `"+Te+"` has invalid PropType notation inside objectOf.");var de=Ce[we],Ve=Le(de);if(Ve!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Ve+"` supplied to `"+Te+"`, expected an object."));for(var Ge in de)if(u(de,Ge)){var tt=Z(de,Ge,Te,Ie,ue+"."+Ge,l);if(tt instanceof Error)return tt}return null}return M(re)}function ie(Z){if(!Array.isArray(Z))return t.NODE_ENV!=="production"&&v("Invalid argument supplied to oneOfType, expected an instance of array."),h;for(var re=0;re<Z.length;re++){var Ce=Z[re];if(typeof Ce!="function")return v("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(Ce)+" at index "+re+"."),h}function we(Te,Ie,ue,de,Ve){for(var Ge=[],tt=0;tt<Z.length;tt++){var ot=Z[tt],je=ot(Te,Ie,ue,de,Ve,l);if(je==null)return null;je.data&&u(je.data,"expectedType")&&Ge.push(je.data.expectedType)}var Rt=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new I("Invalid "+de+" `"+Ve+"` supplied to "+("`"+ue+"`"+Rt+"."))}return M(we)}function ge(){function Z(re,Ce,we,Te,Ie){return xe(re[Ce])?null:new I("Invalid "+Te+" `"+Ie+"` supplied to "+("`"+we+"`, expected a ReactNode."))}return M(Z)}function ae(Z,re,Ce,we,Te){return new I((Z||"React class")+": "+re+" type `"+Ce+"."+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Te+"`.")}function Re(Z){function re(Ce,we,Te,Ie,ue){var de=Ce[we],Ve=Le(de);if(Ve!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type `"+Ve+"` "+("supplied to `"+Te+"`, expected `object`."));for(var Ge in Z){var tt=Z[Ge];if(typeof tt!="function")return ae(Te,Ie,ue,Ge,ne(tt));var ot=tt(de,Ge,Te,Ie,ue+"."+Ge,l);if(ot)return ot}return null}return M(re)}function be(Z){function re(Ce,we,Te,Ie,ue){var de=Ce[we],Ve=Le(de);if(Ve!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type `"+Ve+"` "+("supplied to `"+Te+"`, expected `object`."));var Ge=i({},Ce[we],Z);for(var tt in Ge){var ot=Z[tt];if(u(Z,tt)&&typeof ot!="function")return ae(Te,Ie,ue,tt,ne(ot));if(!ot)return new I("Invalid "+Ie+" `"+ue+"` key `"+tt+"` supplied to `"+Te+"`.\nBad object: "+JSON.stringify(Ce[we],null," ")+`
|
|
289
|
+
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var je=ot(de,tt,Te,Ie,ue+"."+tt,l);if(je)return je}return null}return M(re)}function xe(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(xe);if(Z===null||y(Z))return!0;var re=R(Z);if(re){var Ce=re.call(Z),we;if(re!==Z.entries){for(;!(we=Ce.next()).done;)if(!xe(we.value))return!1}else for(;!(we=Ce.next()).done;){var Te=we.value;if(Te&&!xe(Te[1]))return!1}}else return!1;return!0;default:return!1}}function Ae(Z,re){return Z==="symbol"?!0:re?re["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&re instanceof Symbol:!1}function Le(Z){var re=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":Ae(re,Z)?"symbol":re}function ne(Z){if(typeof Z>"u"||Z===null)return""+Z;var re=Le(Z);if(re==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return re}function Oe(Z){var re=ne(Z);switch(re){case"array":case"object":return"an "+re;case"boolean":case"date":case"regexp":return"a "+re;default:return re}}function G(Z){return!Z.constructor||!Z.constructor.name?j:Z.constructor.name}return A.checkPropTypes=d,A.resetWarningCache=d.resetWarningCache,A.PropTypes=A,A},WE}var XE,zI;function NH(){if(zI)return XE;zI=1;var t=bR();function r(){}function i(){}return i.resetWarningCache=r,XE=function(){function l(v,h,y,x,C,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 IH={};if(IH.NODE_ENV!=="production"){var AH=yR(),jH=!0;_w.exports=TH()(AH.isElement,jH)}else _w.exports=NH()();var OH=_w.exports;const Be=Kp(OH);function th(){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:Be.string,options:Be.arrayOf(Be.shape({value:Be.oneOfType([Be.string,Be.number]).isRequired,label:Be.string.isRequired,additionalInfo:Be.string})).isRequired,value:Be.oneOfType([Be.string,Be.number]),onChange:Be.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 DH="_blurred_16xcy_16",ql={"advanced-settings":"_advanced-settings_16xcy_1","header-wrapper":"_header-wrapper_16xcy_5","content-container":"_content-container_16xcy_11",blurred:DH,"warning-banner":"_warning-banner_16xcy_21","alt-warning-banner":"_alt-warning-banner_16xcy_40 _warning-banner_16xcy_21"},xR=({headerText:t,header:r,children:i,isEditing:l=!1,onEditingChange:u,warningMessage:d=""})=>{const v=t&&t.type==="label";return m.jsxs("div",{className:ql["advanced-settings"],children:[(t||r)&&m.jsxs("div",{className:ql["header-wrapper"],children:[t,r&&m.jsx("div",{className:`${ql["header-buttons-container"]} ${l?"":ql.blurred}`,children:r})]}),m.jsxs("div",{style:{width:"100%"},children:[!l&&m.jsxs("div",{className:v?`${ql["alt-warning-banner"]}`:ql["warning-banner"],children:[m.jsxs("span",{className:ql["warning-text"],children:[m.jsx("strong",{children:"CAUTION! "})," ",d]}),m.jsx("button",{className:"btn btn-danger",onClick:()=>u(!0),children:"I understand the risks"})]}),m.jsx("div",{className:`${ql["content-container"]} ${l?"":ql.blurred}`,children:i})]})]})};xR.propTypes={headerText:Be.node,header:Be.node,children:Be.node.isRequired,isEditing:Be.bool,onEditingChange:Be.func.isRequired,warningMessage:Be.string};const Tw=t=>({type:"SET_RESOURCE_DATA",payload:t}),kH=t=>({type:"SET_LOADING",payload:t}),$I=(t,r)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:t,color:r}}),sm=(t,r)=>({type:"UPDATE_RESOURCE_FIELD",field:t,value:r}),YE=(t,r)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:t,updates:r}}),sO=pr.memo(function({resourceDetails:r,resourceTypesOptions:i,unitTypesOptions:l,dispatch:u,isDollarValueEditing:d,onDollarValueEditingChange:v}){return m.jsxs(m.Fragment,{children:[m.jsx(gm,{label:"Resource Name",value:r.resource_name,onChange:h=>u(sm("resource_name",h.target.value)),inputClassName:"span8"}),m.jsx(gm,{label:"Resource ID",value:r.resource_id,disabled:!0,inputClassName:"span8"}),m.jsx(xR,{headerText:m.jsx("label",{children:"Dollar Value per SUs"}),isEditing:d,onEditingChange:v,warningMessage:"Dollar value is for reporting and should only be modified if the SU rate changes.",children:m.jsx(gm,{value:r.dollar_value,onChange:h=>u(sm("dollar_value",h.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:h=>u(sm("description",h.target.value)),inputClassName:"span8"}),m.jsx(Rm,{label:"Resource Type",options:i,value:r.resource_type_id,onChange:h=>u(sm("resource_type_id",h.target.value)),className:"span8"}),m.jsx(Rm,{label:"Unit Type",options:l,value:r.unit_type_id,onChange:h=>u(sm("unit_type_id",h.target.value)),className:"span8"})]})});sO.propTypes={resourceDetails:Be.object.isRequired,resourceTypesOptions:Be.array.isRequired,unitTypesOptions:Be.array.isRequired,dispatch:Be.func.isRequired};const MH="_grid_afccc_1",LH="_important_afccc_30",PH="_input_afccc_34",FH="_edited_afccc_38",VH="_disabled_afccc_46",BH="_scroll_afccc_59",Gd={grid:MH,important:LH,input:PH,edited:FH,disabled:VH,scroll:BH};function zH({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 CR=({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}));CR.propTypes={title:Be.string.isRequired,placement:Be.oneOf(["top","bottom","left","right"]),children:Be.node.isRequired};CR.defaultProps={placement:"top"};const $H="_datepicker_19wnv_1",UH="_error_19wnv_1",UI={datepicker:$H,error:UH},HH=({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:`${UI.datepicker} ${y?UI.error:""}`,value:t||"",onChange:x=>r(x.target.value),disabled:i,min:d||"1900-01-01",max:v||"2100-12-31"})})},lm=(t,r,i)=>{if(r.onChange){r.onChange(i,t);return}const l=t[r.key];l!=null&&l.onChange&&l.onChange(i)},GH={text:zH,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=>lm(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=>lm(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=>lm(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(HH,{value:l.value,onChange:u=>lm(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 lm(r,t,(l=r[t.key])==null?void 0:l.id)},children:m.jsx("i",{className:"fa fa-trash"})})})};function su({columns:t,rows:r,classes:i,frozenColumns:l=0,minWidth:u,rowClasses:d=[],scroll:v=!0,scrollBehavior:h="smooth",scrollRowIndex:y=0}){const x=k.useRef();k.useLayoutEffect(()=>{if(!v||!x.current)return;const T=x.current.querySelector(`tbody tr:nth-child(${y+1})`);T&&T.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,y,h]);const C=[0];for(let T=0;T<l;T++)C[T+1]=C[T]+(t[T].width||100);const w=(T,I)=>T<l?{position:"sticky",left:`${C[T]}px`,minWidth:`${t[T].width||100}px`,width:`${t[T].width||100}px`,zIndex:I||1}:{},R=t.map((T,I)=>m.jsxs("th",{className:T.headerClass||T.class||"",style:w(I,100),children:[T.formatHeader?T.formatHeader(T.name,T):T.name,T.tooltip&&m.jsx(CR,{title:T.tooltip,placement:"bottom",children:m.jsx("i",{className:"icon-info-sign"})})]},T.key)),j=r.map((T,I)=>{const M=t.map((F,V)=>{const U=GH[F.type||"text"];return m.jsx(U,{column:F,row:T,style:w(V)},F.key)});return m.jsx("tr",{className:d[I]||"",children:M},I)}),A={};return u&&(A.minWidth=u),m.jsx("div",{className:`${Gd.grid} ${v?Gd.scroll:""} ${i||""}`,ref:x,children:m.jsxs("table",{className:"table table-bordered",style:A,children:[m.jsx("thead",{children:m.jsx("tr",{children:R})}),m.jsx("tbody",{children:j})]})})}const Nw={"header-buttons":"_header-buttons_15oxx_1","allocation-types-grid":"_allocation-types-grid_15oxx_6","vertical-align-center":"_vertical-align-center_15oxx_10"},lO=({onAddAllocationType:t,onAddRequiredResource:r})=>m.jsxs("div",{className:Nw["header-buttons"],children:[m.jsxs("button",{className:"btn btn-primary",onClick:t,children:[m.jsx("i",{className:"fa fa-plus"})," Add Allocation Type"]}),m.jsxs("button",{className:"btn btn-primary",onClick:r,children:[m.jsx("i",{className:"fa fa-plus"})," Add Required Resource"]})]});lO.propTypes={headerText:Be.node,onAddAllocationType:Be.func.isRequired,onAddRequiredResource:Be.func.isRequired};const uO=pr.memo(function({columns:r,rows:i}){return m.jsx("div",{className:Nw["allocation-types-grid"],children:m.jsx(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Nw["vertical-align-center"]),scroll:!1})})});uO.propTypes={columns:Be.array.isRequired,rows:Be.array.isRequired};const Iw=({show:t,onClose:r,title:i,children:l,onSave:u,buttonText:d})=>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:d})})]})})})}):null;Iw.propTypes={show:Be.bool.isRequired,onClose:Be.func.isRequired,title:Be.string.isRequired,children:Be.node.isRequired,onSave:Be.func.isRequired,buttonText:Be.string};const Pp={"exchange-rates-grid":"_exchange-rates-grid_5qkd5_1","header-container":"_header-container_5qkd5_5","header-buttons":"_header-buttons_5qkd5_11","vertical-align-center":"_vertical-align-center_5qkd5_18","error-summary":"_error-summary_5qkd5_35"},cO=pr.memo(function({columns:r,rows:i,onAddDiscountRate:l,dateErrors:u=[]}){return m.jsxs("div",{className:Pp["exchange-rates-grid"],children:[m.jsxs("div",{className:Pp["header-container"],children:[m.jsx("h2",{className:Pp["header-title"],children:"Exchange Rates"}),m.jsx("div",{className:Pp["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(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Pp["vertical-align-center"]),scroll:!1}),u.length>0&&m.jsx("div",{className:Pp["error-summary"],children:m.jsx("ul",{children:u.map((d,v)=>m.jsx("li",{children:d},v))})})]})});cO.propTypes={columns:Be.array.isRequired,rows:Be.array.isRequired,onAddDiscountRate:Be.func.isRequired,dateErrors:Be.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:"×"})})]}),WH=(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}},XH=async(t,r)=>await(await fetch(`${r}/resources/${t}.json`)).json(),YH=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})})),ZH=(t,r)=>{const[i,l]=k.useReducer(WH,{resourceData:null,loading:!0,errors:[],successMessage:{message:"",color:""}}),u=k.useCallback(async(v,h)=>{let y=[h];try{const x=await v.json();x.errors?y=x.errors:x.message&&(y=[x.message])}catch(x){console.error("Error parsing error response:",x)}l({type:"SET_ERRORS",payload:y})},[]),d=k.useCallback(async()=>{l(kH(!0));try{const v=await XH(t,r);l(Tw(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}},dO=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)||[]}},qH=(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 A;(A=j.required_resources)==null||A.forEach(T=>{w.add(T.resource_name)})}),Array.from(w).sort((j,A)=>j.localeCompare(A)).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 A;return[j.key,{checked:((A=w.required_resources)==null?void 0:A.some(T=>T.resource_name===j.key))||!1,onChange:T=>v(w.allocation_type_id,j.key,T,w)}]}))}}):[],requiredResourcesColumns:y}},JH=(t,r,i)=>{const{availableResources:l,availableAllocationTypes:u,allowedActionsOptions:d}=dO(t),[v,h]=k.useState(!1),[y,x]=k.useState(!1),[C,w]=k.useState([]),[R,j]=k.useState(""),A=k.useCallback((P,z)=>{i(YE(P,{allowed_action:{resource_state_type_id:z}}))},[i]),T=k.useCallback((P,z)=>{i(YE(P,{comment:z}))},[i]),I=k.useCallback((P,z,X,Y)=>{const pe=X?[...Y.required_resources||[],{resource_name:z,required_resource_id:t.required_resources_available.find(ie=>ie.resource_name===z).resource_id}]:(Y.required_resources||[]).filter(ie=>ie.resource_name!==z);i(YE(P,{required_resources:pe}))},[t,i]);k.useEffect(()=>{if(v&&r){const P=r.allocation_types.flatMap(z=>z.required_resources||[]).map(z=>z.required_resource_id);w(P)}},[v,r]);const M=k.useCallback((P,z)=>{w(X=>z?[...X,P]:X.filter(Y=>Y!==P))},[]),F=k.useCallback(()=>{const P=r.allocation_types.flatMap(pe=>pe.required_resources||[]).map(pe=>pe.required_resource_id),z=C.filter(pe=>!P.includes(pe)),X=P.filter(pe=>!C.includes(pe)),Y=r.allocation_types.map(pe=>{const ie=pe.required_resources||[],ge=z.map(Re=>{const be=l.find(xe=>xe.resource_id===Re);return{resource_name:be.resource_name,required_resource_id:be.resource_id}}),ae=ie.filter(Re=>!X.includes(Re.required_resource_id)).concat(ge.filter(Re=>!ie.some(be=>be.required_resource_id===Re.required_resource_id)));return{...pe,required_resources:ae}});i(Tw({...t,resource_details:{...r,allocation_types:Y}})),w([]),h(!1)},[C,l,r,t,i]),V=k.useCallback(P=>{const z=P.target.value;j(z)},[]),U=k.useCallback(()=>{var X,Y;if(!R)return;const P=u.find(pe=>pe.allocation_type_id.toString()===R),z=(X=r.allocation_types)==null?void 0:X.some(pe=>pe.allocation_type_id===P.allocation_type_id);if(P&&!z){const pe=(Y=d[0])==null?void 0:Y.value,ie=[...r.allocation_types||[],{allocation_type_id:P.allocation_type_id,display_name:P.display_name,allowed_action:{resource_state_type_id:pe},comment:"",required_resources:[]}];i(Tw({...t,resource_details:{...r,allocation_types:ie}})),x(!1)}},[R,u,r,t,i,d]);return{showAddResourceModal:v,setShowAddResourceModal:h,showAddAllocationTypeModal:y,setShowAddAllocationTypeModal:x,selectedNewResource:C,handleSelectNewResource:M,handleSaveResources:F,selectedNewAllocationType:R,handleSelectNewAllocationType:V,handleSaveAllocationType:U,handleAllowedActionChange:A,handleCommentChange:T,handleRequiredResourceChange:I}},QH=(t,r,i,l,u,d)=>k.useCallback(async()=>{var y,x,C;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:(C=(x=t.exchange_rates)==null?void 0:x.discount_rates)==null?void 0:C.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 YH(r,i,v,h);if(w.ok){const R=await w.json();return d($I(R.message||"Resource updated successfully!","success")),await l(),!0}else return await u(w,"Failed to update resource"),!1}catch{return d($I("Error updating resource. Please try again later.","danger")),!1}},[t,r,i,l,u]),KH=(t=!1)=>{const[r,i]=k.useState(t);return{isEditing:r,handleEditingChange:u=>{i(u)}}},eG=(t,r)=>{const i=k.useCallback(j=>{var T,I;r({type:"DELETE_EXCHANGE_RATE",payload:j}),(((I=(T=t==null?void 0:t.resource_details)==null?void 0:T.exchange_rates)==null?void 0:I.discount_rates.filter(M=>M.id!==j))||[]).forEach(M=>{M.begin_date&&M.end_date&&r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:M.id,changes:{start_date_error:"",end_date_error:""}}})})},[r,t]),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:"conversion",name:"Resource Units per ACCESS Credit",width:150},{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=j=>{r({type:"UPDATE_BASE_RATE",payload:j})},d=(j,A)=>{const T={exchange_rate:A},I={};A?I.rate_error="":I.rate_error="Exchange Rate cannot be empty",r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...T,...I}}})},v=()=>{var T,I;const j=[];return(((I=(T=t==null?void 0:t.resource_details)==null?void 0:T.exchange_rates)==null?void 0:I.discount_rates)||[]).forEach(M=>{M.start_date_error&&j.push(M.start_date_error),M.end_date_error&&j.push(M.end_date_error),M.rate_error&&j.push(M.rate_error)}),j.filter((M,F)=>M&&M!==""&&(!M.includes("overlaps")||j.indexOf(M)===F))},h=j=>{const A=new Date(j);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(A)},y=(j,A,T,I)=>{const M=new Date(j).getTime(),F=new Date(A).getTime(),V=new Date(T).getTime(),U=new Date(I).getTime();return M<=U&&V<=F},x=(j,A)=>{let T="";if(j.begin_date&&j.end_date){const I=A.filter(M=>M.id!==j.id);for(const M of I)if(M.begin_date&&M.end_date&&y(j.begin_date,j.end_date,M.begin_date,M.end_date)){T=`The selected date range (${h(j.begin_date)} to ${h(j.end_date)}) overlaps with an existing discount rate (${h(M.begin_date)} to ${h(M.end_date)})`;break}}return T},C=(j,A,T)=>{var ie,ge;const I={start_date:"begin_date",end_date:"end_date"},M=ae=>{const Re=new Date(ae);return new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}).format(Re)},F=((ge=(ie=t==null?void 0:t.resource_details)==null?void 0:ie.exchange_rates)==null?void 0:ge.discount_rates)||[],V=F.find(ae=>ae.id===j);if(!V)return;const U={[I[A]]:T},P={},z=A==="end_date",X=()=>{if(!T)return P[`${A}_error`]="Date cannot be empty or invalid",!1;const ae=l.find(Ae=>Ae.key===A),Re=(ae==null?void 0:ae.minDate)||"1900-01-01",be=(ae==null?void 0:ae.maxDate)||"2100-12-31",xe=z&&V.begin_date?V.begin_date:Re;return T<xe?(P[`${A}_error`]=`${A.replace("_"," ")} ${M(T)} cannot be before ${M(xe)}`,!1):T>be?(P[`${A}_error`]=`${A.replace("_"," ")} cannot be after ${M(be)}`,!1):(P[`${A}_error`]="",!0)},Y=()=>{const ae=A==="end_date"?T:V.end_date;if(A==="start_date"&&ae){if(T>ae)return P.end_date_error=`end date ${M(ae)} cannot be before ${M(T)}`,!1;P.end_date_error=P.end_date_error||""}return!0},pe=()=>{console.log("validating overlaps");const ae=A==="start_date"?T:V.begin_date,Re=A==="end_date"?T:V.end_date;if(ae&&Re){const be=x({...V,begin_date:ae,end_date:Re},F);return P.start_date_error=be,P.end_date_error=be,!be}return!0};if(!X()){r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...P}}});return}Y(),pe(),z&&!V.begin_date?P.start_date_error="Date cannot be empty or invalid":!z&&!V.end_date&&(P.end_date_error="Date cannot be empty or invalid"),r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...P}}})},w=()=>{var P,z;const j=((z=(P=t==null?void 0:t.resource_details)==null?void 0:P.exchange_rates)==null?void 0:z.discount_rates)||[];let T=new Date;j.forEach(X=>{if(X.end_date){const Y=new Date(X.end_date);Y>T&&(T=Y)}});const I=new Date(T);I.setDate(I.getDate()+1);const M=I.toISOString().split("T")[0],F=new Date(I);F.setDate(F.getDate()+15);const V=F.toISOString().split("T")[0],U={id:Date.now(),exchange_rate:"1.0",begin_date:M,end_date:V,is_new:!0};r({type:"ADD_EXCHANGE_RATE",payload:U})};return{exchangeRateColumns:l,exchangeRateRows:(()=>{var V,U;const j=(V=t==null?void 0:t.resource_details)==null?void 0:V.exchange_rates,A=(j==null?void 0:j.base_rate)??"",T=(j==null?void 0:j.discount_rates)||[],I=new Date().toISOString().split("T")[0],M=((U=t==null?void 0:t.resource_details)==null?void 0:U.unit_type)||"Resource Units",F=P=>!P||Number(P)===0?"-":`${(1/Number(P)).toFixed(2)} ${M}`;return[{rate_type:"Base Rate",rate:{value:A.toString(),onChange:P=>u(P)},conversion:F(A)},...T.map(P=>{var pe;const z=P.is_new||P.begin_date>I,X=z||P.begin_date==="",Y=P.is_new||P.end_date>=I||P.end_date==="";return{rate_type:"Discount",rate:{value:((pe=P.exchange_rate)==null?void 0:pe.toString())||"",onChange:z?ie=>d(P.id,ie):null,disabled:!z},conversion:F(P.exchange_rate),start_date:{value:P.begin_date||"",onChange:ie=>C(P.id,"start_date",ie),error:P.start_date_error,disabled:!X},end_date:{value:P.end_date||"",onChange:ie=>C(P.id,"end_date",ie),error:P.end_date_error,disabled:!Y},actions:{id:P.id}}})]})(),handleAddDiscountRate:w,handleDeleteRate:i,dateErrors:v()}};function fO({resourceId:t,relativeUrlRoot:r,setExternalSubmit:i}){const{state:l,dispatch:u,handleError:d,fetchData:v}=ZH(t,r),{isEditing:h,handleEditingChange:y}=KH(),{resourceData:x,loading:C,errors:w,successMessage:R}=l,j=x==null?void 0:x.resource_details,A=x==null?void 0:x.uses_exchange_rates,{allowedActionsOptions:T,resourceTypesOptions:I,unitTypesOptions:M,availableResources:F,availableAllocationTypes:V}=dO(x),{showAddResourceModal:U,setShowAddResourceModal:P,showAddAllocationTypeModal:z,setShowAddAllocationTypeModal:X,selectedNewResource:Y,handleSelectNewResource:pe,handleSaveResources:ie,selectedNewAllocationType:ge,handleSelectNewAllocationType:ae,handleSaveAllocationType:Re,handleAllowedActionChange:be,handleCommentChange:xe,handleRequiredResourceChange:Ae}=JH(x,j,u),{exchangeRateColumns:Le,exchangeRateRows:ne,handleAddDiscountRate:Oe,dateErrors:G}=eG(x,u),Z=QH(j,t,r,v,d,u);k.useEffect(()=>{i&&G.length==0?i(Z):i(null)},[Z,i,G]);const{allocationColumns:re,allocationRows:Ce}=qH(j,F,Y,T,be,xe,Ae),[we,Te]=k.useState(!1);return C?m.jsx(th,{}):w.length>0?m.jsx("div",{children:w.map((Ie,ue)=>m.jsx(Mr,{color:"danger",children:Ie},ue))}):x?m.jsxs("div",{className:"edit-resource",children:[R.message&&m.jsx(Mr,{color:R.color,children:R.message}),m.jsxs("div",{children:[m.jsx("h2",{children:"Resource Propeties"}),m.jsx("div",{style:{marginBottom:"0.75rem"},children:m.jsx("p",{style:{margin:"0",fontStyle:"italic",fontWeight:"bold"},children:"Any modifications to these resource properties will be applied globally and impact resources on other all allocations process"})}),m.jsx(sO,{resourceDetails:j,resourceTypesOptions:I,unitTypesOptions:M,dispatch:u,isDollarValueEditing:we,onDollarValueEditingChange:Te})]}),A&&m.jsx(cO,{columns:Le,rows:ne,onAddDiscountRate:Oe,dateErrors:G}),m.jsx(xR,{headerText:m.jsx("h2",{children:"Allocation Types"}),header:m.jsx(lO,{onAddAllocationType:()=>h&&X(!0),onAddRequiredResource:()=>h&&P(!0)}),isEditing:h,onEditingChange:y,warningMessage:`Incorrect allocations
|
|
290
290
|
process settings can make a resource unavailable for allocation.
|
|
291
|
-
Please proceed with caution.`,children:m.jsx(uO,{columns:re,rows:Ce})}),m.jsx(Iw,{show:U,onClose:()=>P(!1),title:"Add Required Resource",onSave:ie,buttonText:"Save",children:m.jsx("div",{children:F.map(Ie=>m.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[m.jsx("input",{type:"checkbox",style:{margin:0},checked:Y.includes(Ie.resource_id),onChange:ue=>pe(Ie.resource_id,ue.target.checked)}),Ie.resource_name]},Ie.resource_id))})}),m.jsx(Iw,{show:z,onClose:()=>X(!1),title:"Add Allocation Type",onSave:Re,buttonText:"Save",children:m.jsx(Rm,{label:"Select Allocation Type",options:[{value:"",label:"Select an allocation type to add",disabled:!0},...V.map(Ie=>({value:Ie.allocation_type_id,label:Ie.display_name}))],value:ge,onChange:ae})})]}):m.jsx("div",{children:"No resource data available."})}fO.propTypes={resourceId:Be.number.isRequired,relativeUrlRoot:Be.string.isRequired,setExternalSubmit:Be.func};const ta={error:"error",pending:"pending",success:"success"},b0=t=>t.endDate||t.startDate||(t.actions[0]||{}).entryDate,HI=t=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[t.role]||"04"} ${t.lastName}, ${t.firstName}`,tG=(t,{grantNumber:r,projectManager:i,requestMasterId:l,requests:u,title:d,users:v},h)=>{r=r||l,u.sort((C,w)=>b0(C)>b0(w)?-1:1);const y=u.find(C=>C.timeStatus=="current"),x=y?y.requestId:null;t.projects[r]={currentRequestId:x,grantNumber:r,isManager:i,requestsList:u.map(C=>{const{actions:w,allocationType:R,endDate:j,requestId:N,startDate:T,status:A}=C,M=w.map(({entryDate:F})=>F).sort()[0].split("T")[0];return nG(t,C,{entryDate:M,grantNumber:r}),{allocationType:R,endDate:j,entryDate:M,requestId:N,startDate:T,status:A}}),selectedRequestId:x||u[0].requestId,status:h,tab:"overview",title:d,users:v.map(({email:C,firstName:w,lastName:R,organization:j,resources:N,role:T,username:A})=>{const M=N.filter(z=>z.userAccountState=="active"&&z.unitType!="ACCESS Credits"),F=M.map(z=>z.xrasResourceId),V=M.filter(z=>z.resourceProviderState=="pending-active").map(z=>z.xrasResourceId),U=N.filter(z=>z.userAccountState!="active").map(z=>z.xrasResourceId),P={};for(let z of M)P[z.xrasResourceId]=z.resourceUsername;return{email:C,firstName:w,initialResourceIds:[...F],initialRole:T,lastName:R,organization:j,resourceAccountPendingIds:V,resourceAccountInactiveIds:U,resourceIds:F,resourceUsernames:P,role:T,username:A}}).sort((C,w)=>HI(C)<HI(w)?-1:1),usersNewRowIndex:0,usersStatus:null},t.projects[r].currentUser=t.projects[r].users.find(({username:C})=>C==t.username)},nG=(t,{actions:r,allocationType:i,allowedActions:l,endDate:u,requestId:d,requestType:v,resources:h,startDate:y,status:x,timeStatus:C},{entryDate:w,grantNumber:R})=>{h=h||[];const j={actions:r.map(({actionId:A,actionStatusType:M,actionType:F,allowedOperations:V,approvedStartDate:U,detailAvailable:P,entryDate:z,isRequest:X,requestedStartDate:Y,resources:pe})=>({actionId:A,allowedOperations:V,detailAvailable:P,date:(z||U||Y).split("T")[0],deleteStatus:null,isRequest:X,resources:pe.map(Aw).sort(g0),showDeleteModal:!1,status:M,type:F})),allocationType:i,allowedActions:rG(l),endDate:u,entryDate:w,exchangeActionId:null,exchangeStatus:null,grantNumber:R,isMaximize:i=="Maximize",requestId:d,resources:h.map(Aw).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:x,timeStatus:C,type:v,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let N={};for(let A of j.actions)if(["Exchange","Transfer"].includes(A.type)&&["Submitted","Under Review"].includes(A.status)){j.exchangeActionId=A.actionId;for(let M of A.resources)N[M.resourceId]=M;for(let M of j.resources)M.resourceId in N&&(M.requested+=N[M.resourceId].requested,delete N[M.resourceId]);j.resources.push(...Object.values(N).map(M=>({...M,isNew:!0})));break}const T=j.allowedActions.Exchange||j.allowedActions.Transfer;if(T){N={};for(let A of T.resources)N[A.resourceId]=A;for(let A of j.resources)A.resourceId in N&&(A.questions=N[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},rG=t=>{const r={};for(let{actionType:i,allowedResources:l,opportunityId:u,opportunityName:d}of t){let v={name:i,resources:l.map(Aw).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},GI=(t,r)=>t.relativeOrder<r.relativeOrder?-1:1,Aw=({allocationState:t,amountAllocated:r,amountApproved:i,amountRequested:l,amountUsed:u,attributeSets:d,baseExchangeRate:v,currentExchangeRate:h,currentExchangeRateEndDate:y,currentExchangeRateType:x,dependentResourceXrasIds:C,displayResourceName:w,endDate:R,exchangeRate:j,organizationId:N,organizationFaviconUrl:T,organizationName:A,resourceRepositoryKey:M,resourceType:F,startDate:V,unitType:U,userGuideUrl:P,xrasResourceId:z})=>{const X=U=="[Yes = 1, No = 0]",Y=U=="ACCESS Credits";return{allocated:$p(TI(r,i)||0,0,"floor"),decimalPlaces:0,endDate:R,exchangeRates:{base:{type:"base",unitCost:X?0:v||j},current:{endDate:y,type:(x||"base").toLowerCase(),unitCost:X?0:h||j}},icon:Y?"credit":F.toLowerCase(),isActive:t=="active",isBoolean:X,isCredit:Y,isFake:!1,isUnderReview:!1,isNew:!1,name:w.trim(),questions:(d||[]).filter(({isActive:pe})=>pe).sort(GI).map(pe=>({attributeSetId:pe.attributeSetId,attributes:pe.attributes.sort(GI).map(ie=>({required:ie.isRequired,resourceAttributeId:ie.resourceAttributeId,label:ie.attributeName})),fieldType:pe.attributeSetRelationType,label:pe.attributeSetName,resourceId:z,values:[]})),resourceProvider:{organizationId:N,name:A,favicon:T},requested:$p(TI(l,r)||0,0,"floor"),requires:C||[],resourceId:z,resourceRepositoryKey:M,startDate:V,type:F,unit:U,used:$p(u||0,0,"ceil"),userGuideUrl:P}},pO=(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],aG=(t,r)=>Ks(t,r).users.find(({username:i})=>i==r.payload.username),jw=({allocated:t,isActive:r,isCredit:i})=>t>0&&r&&!i,WI=t=>t.hasChanges=t.isNew||t.role!=t.initialRole||!pO(t.resourceIds,t.initialResourceIds),hO=()=>document.querySelector("meta[name=csrf-token]").content,iG=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({})}),vO=Di("api/fetchProjectDetail",async({grantNumber:t},{rejectWithValue:r})=>r({grantNumber:t})),mO=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(x=>x.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:hO()};return(await fetch(v,{body:Object.keys(h).map(x=>`${encodeURIComponent(x)}=${encodeURIComponent(h[x])}`).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:x,isFake:C,questions:w,requested:R,resourceId:j}of l.resources)if(R!=x&&!C){u[j]={resource_id:j,requested:1,amount:R-x};for(let{attributes:N,values:T,fieldType:A}of w)if(T.length){let M=N[0].resourceAttributeId,F=["drop_down","single_sel","multi_sel"].includes(A),U={resource_attribute_id:A=="multi_sel"?T:F?T[0]:M};F||(U.attribute_value=T[0]),d[M]=U}}const v={authenticity_token:hO(),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 x=parseInt(y.url.split("/").pop(),10);return{requestId:t,exchangeActionId:x}}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(x=>!pO(x.resourceIds,x.initialResourceIds)||x.isNew).length==0?[]:u.map(x=>({username:x.username,resources:x.resourceIds})),v=u.filter(x=>x.role!=x.initialRole).map(x=>({username:x.username,role:Sw[x.role],initialRole:Sw[x.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})}),gO=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(jw).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=$p(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=aG(t,r);i.role=r.payload.role,WI(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 x=y.resourceIds.indexOf(d);v&&x==-1?y.resourceIds.push(d):!v&&x>=0&&y.resourceIds.splice(x,1)}else y.resourceIds=v?l.resources.filter(jw).map(({resourceId:x})=>x):[];WI(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,C=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&&tG(r,l,C),{grantNumber:u||d,status:C,title:y}}),r.projectListLoading=!1}).addCase(Kb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(vO.rejected,(r,i)=>{const{grantNumber:l}=i.payload;r.projects[l]={error:"Failed to load project data."}}).addCase(mO.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})}}),oG=t=>t.api.error,sG=t=>t.api.projectsList,lG=t=>t.api.projectListLoading,uG=(t,r)=>Ks(t.api,{payload:{grantNumber:r}}),cG=(t,r)=>ea(t.api,{payload:{requestId:r}}),dG=t=>t.api.username,{addResource:fG,addUser:pG,closeUsageDetailModal:hG,hideAlert:Gq,resetResources:vG,resetUsers:mG,setRequest:gG,setResourceQuestionValues:yG,setResourceRequest:bG,setResourcesReason:xG,setTab:CG,setUserRole:SG,toggleActionsModal:EG,toggleConfirmModal:wG,toggleDeleteModal:RG,toggleResourcesModal:_G,toggleUsersResources:TG}=gO.actions,NG=gO.reducer,IG=t=>{const r=Jn(oG),i=Jn(lG),l=Jn(sG),u=No();return k.useEffect(()=>{u(Kb(t))},[]),{error:r,loading:i,projects:l}},Ji=(t,r)=>{const i=Jn(d=>uG(d,t)),l=Jn(dG),u=No();return k.useEffect(()=>{!i&&!r&&u(vO({grantNumber:t}))},[r]),{project:i,addUser:d=>u(pG({grantNumber:t,user:d})),resetUsers:()=>u(mG({grantNumber:t})),saveUsers:()=>u(r0({grantNumber:t})),setRequest:d=>u(gG({grantNumber:t,requestId:d})),setTab:d=>u(CG({grantNumber:t,tab:d})),setUserRole:(d,v)=>u(SG({grantNumber:t,username:d,role:v})),statuses:ta,toggleUsersResources:(d,v,h)=>u(TG({grantNumber:t,username:v,resourceId:h,checked:d})),username:l}},ri=(t,r)=>{const i=Jn(u=>cG(u,t)),l=No();return k.useEffect(()=>{i||l(mO({grantNumber:r,requestId:t}))},[r,t]),{request:i,addResource:u=>l(fG({requestId:t,resourceId:u})),closeUsageDetailModal:()=>l(hG({requestId:t})),deleteAction:u=>l(t0({actionId:u,requestId:t})),openUsageDetailModal:u=>l(e0({grantNumber:i.grantNumber,requestId:t,resourceRepositoryKey:u})),resetResources:()=>l(vG({requestId:t})),saveResources:()=>l(n0({requestId:t})),setResourceQuestionValues:(u,d,v)=>l(yG({requestId:t,resourceId:u,attributeSetId:d,values:v})),setResourceRequest:(u,d)=>l(bG({requestId:t,resourceId:u,requested:d})),setResourcesReason:u=>l(xG({requestId:t,reason:u})),statuses:ta,toggleActionsModal:()=>l(EG({requestId:t})),toggleConfirmModal:()=>l(wG({requestId:t})),toggleDeleteModal:u=>l(RG({requestId:t,actionId:u})),toggleResourcesModal:()=>l(_G({requestId:t}))}},AG="_project_qqnbz_1",jG="_expand_qqnbz_5",XI={project:AG,expand:jG},OG="_returnedForCorrectionsNotes_jujbd_1",DG={returnedForCorrectionsNotes:OG};function yO(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[x,...C]=y;let w=i==null?void 0:i(x,...C);return d(x),w},[i])]}var bO={};const x0={prefix:String(Math.round(Math.random()*1e10)),current:0},xO=pr.createContext(x0),kG=pr.createContext(!1);let MG=!!(typeof window<"u"&&window.document&&window.document.createElement),ZE=new WeakMap;function LG(t=!1){let r=k.useContext(xO),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 PG(t){let r=k.useContext(xO);r===x0&&!MG&&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=LG(!!t),l=r===x0&&bO.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${l}-${i}`}function FG(t){let r=pr.useId(),[i]=k.useState($G()),l=i||bO.NODE_ENV==="test"?"react-aria":`react-aria${x0.prefix}`;return t||`${l}-${r}`}const CO=typeof pr.useId=="function"?FG:PG;function VG(){return!1}function BG(){return!0}function zG(t){return()=>{}}function $G(){return typeof pr.useSyncExternalStore=="function"?pr.useSyncExternalStore(zG,VG,BG):k.useContext(kG)}const UG=k.createContext(null),nh=UG,HG=k.createContext(null),qd=(t,r=null)=>t!=null?String(t):r||null,iu=HG;function GG(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t},[t]),r}function yr(t){const r=GG(t);return k.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const YI=t=>!t||typeof t=="function"?t:r=>{t.current=r};function WG(t,r){const i=YI(t),l=YI(r);return u=>{i&&i(u),l&&l(u)}}function hs(t,r){return k.useMemo(()=>WG(t,r),[t,r])}function SR({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),x=k.cloneElement(t,{ref:y});return r?x:u||!v.current&&l?null:x}const XG=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],YG=["activeKey","getControlledId","getControllerId"],ZG=["as"];function Ow(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 SO(t){let{active:r,eventKey:i,mountOnEnter:l,transition:u,unmountOnExit:d,role:v="tabpanel",onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}=t,j=Ow(t,XG);const N=k.useContext(nh);if(!N)return[Object.assign({},j,{role:v}),{eventKey:i,isActive:r,mountOnEnter:l,transition:u,unmountOnExit:d,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}];const{activeKey:T,getControlledId:A,getControllerId:M}=N,F=Ow(N,YG),V=qd(i);return[Object.assign({},j,{role:v,id:A(i),"aria-labelledby":M(i)}),{eventKey:i,isActive:r==null&&V!=null?qd(T)===V:r,transition:u||F.transition,mountOnEnter:l??F.mountOnEnter,unmountOnExit:d??F.unmountOnExit,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}]}const EO=k.forwardRef((t,r)=>{let{as:i="div"}=t,l=Ow(t,ZG);const[u,{isActive:d,onEnter:v,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:j,transition:N=SR}]=SO(l);return m.jsx(nh.Provider,{value:null,children:m.jsx(iu.Provider,{value:null,children:m.jsx(N,{in:d,onEnter:v,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:j,children:m.jsx(i,Object.assign({},u,{ref:r,hidden:!d,"aria-hidden":!d}))})})})});EO.displayName="TabPanel";const wO=t=>{const{id:r,generateChildId:i,onSelect:l,activeKey:u,defaultActiveKey:d,transition:v,mountOnEnter:h,unmountOnExit:y,children:x}=t,[C,w]=yO(u,d,l),R=CO(r),j=k.useMemo(()=>i||((T,A)=>R?`${R}-${A}-${T}`:null),[R,i]),N=k.useMemo(()=>({onSelect:w,activeKey:C,transition:v,mountOnEnter:h||!1,unmountOnExit:y||!1,getControlledId:T=>j(T,"tabpane"),getControllerId:T=>j(T,"tab")}),[w,C,v,h,y,j]);return m.jsx(nh.Provider,{value:N,children:m.jsx(iu.Provider,{value:w||null,children:x})})};wO.Panel=EO;const RO=wO;var _O={exports:{}};/*!
|
|
291
|
+
Please proceed with caution.`,children:m.jsx(uO,{columns:re,rows:Ce})}),m.jsx(Iw,{show:U,onClose:()=>P(!1),title:"Add Required Resource",onSave:ie,buttonText:"Save",children:m.jsx("div",{children:F.map(Ie=>m.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[m.jsx("input",{type:"checkbox",style:{margin:0},checked:Y.includes(Ie.resource_id),onChange:ue=>pe(Ie.resource_id,ue.target.checked)}),Ie.resource_name]},Ie.resource_id))})}),m.jsx(Iw,{show:z,onClose:()=>X(!1),title:"Add Allocation Type",onSave:Re,buttonText:"Save",children:m.jsx(Rm,{label:"Select Allocation Type",options:[{value:"",label:"Select an allocation type to add",disabled:!0},...V.map(Ie=>({value:Ie.allocation_type_id,label:Ie.display_name}))],value:ge,onChange:ae})})]}):m.jsx("div",{children:"No resource data available."})}fO.propTypes={resourceId:Be.number.isRequired,relativeUrlRoot:Be.string.isRequired,setExternalSubmit:Be.func};const ta={error:"error",pending:"pending",success:"success"},b0=t=>t.endDate||t.startDate||(t.actions[0]||{}).entryDate,HI=t=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[t.role]||"04"} ${t.lastName}, ${t.firstName}`,tG=(t,{grantNumber:r,projectManager:i,requestMasterId:l,requests:u,title:d,users:v},h)=>{r=r||l,u.sort((C,w)=>b0(C)>b0(w)?-1:1);const y=u.find(C=>C.timeStatus=="current"),x=y?y.requestId:null;t.projects[r]={currentRequestId:x,grantNumber:r,isManager:i,requestsList:u.map(C=>{const{actions:w,allocationType:R,endDate:j,requestId:A,startDate:T,status:I}=C,M=w.map(({entryDate:F})=>F).sort()[0].split("T")[0];return nG(t,C,{entryDate:M,grantNumber:r}),{allocationType:R,endDate:j,entryDate:M,requestId:A,startDate:T,status:I}}),selectedRequestId:x||u[0].requestId,status:h,tab:"overview",title:d,users:v.map(({email:C,firstName:w,lastName:R,organization:j,resources:A,role:T,username:I})=>{const M=A.filter(z=>z.userAccountState=="active"&&z.unitType!="ACCESS Credits"),F=M.map(z=>z.xrasResourceId),V=M.filter(z=>z.resourceProviderState=="pending-active").map(z=>z.xrasResourceId),U=A.filter(z=>z.userAccountState!="active").map(z=>z.xrasResourceId),P={};for(let z of M)P[z.xrasResourceId]=z.resourceUsername;return{email:C,firstName:w,initialResourceIds:[...F],initialRole:T,lastName:R,organization:j,resourceAccountPendingIds:V,resourceAccountInactiveIds:U,resourceIds:F,resourceUsernames:P,role:T,username:I}}).sort((C,w)=>HI(C)<HI(w)?-1:1),usersNewRowIndex:0,usersStatus:null},t.projects[r].currentUser=t.projects[r].users.find(({username:C})=>C==t.username)},nG=(t,{actions:r,allocationType:i,allowedActions:l,endDate:u,requestId:d,requestType:v,resources:h,startDate:y,status:x,timeStatus:C},{entryDate:w,grantNumber:R})=>{h=h||[];const j={actions:r.map(({actionId:I,actionStatusType:M,actionType:F,allowedOperations:V,approvedStartDate:U,detailAvailable:P,entryDate:z,isRequest:X,requestedStartDate:Y,resources:pe})=>({actionId:I,allowedOperations:V,detailAvailable:P,date:(z||U||Y).split("T")[0],deleteStatus:null,isRequest:X,resources:pe.map(Aw).sort(g0),showDeleteModal:!1,status:M,type:F})),allocationType:i,allowedActions:rG(l),endDate:u,entryDate:w,exchangeActionId:null,exchangeStatus:null,grantNumber:R,isMaximize:i=="Maximize",requestId:d,resources:h.map(Aw).filter(I=>I.isCredit||I.allocated>0).sort(g0),resourcesReason:"",returnedForCorrections:!!r.find(I=>I.returnedForCorrections),returnedForCorrectionsNotes:r.map(I=>I.adminComments).join(","),showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:x,timeStatus:C,type:v,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let A={};for(let I of j.actions)if(["Exchange","Transfer"].includes(I.type)&&["Submitted","Under Review"].includes(I.status)){j.exchangeActionId=I.actionId;for(let M of I.resources)A[M.resourceId]=M;for(let M of j.resources)M.resourceId in A&&(M.requested+=A[M.resourceId].requested,delete A[M.resourceId]);j.resources.push(...Object.values(A).map(M=>({...M,isNew:!0})));break}const T=j.allowedActions.Exchange||j.allowedActions.Transfer;if(T){A={};for(let I of T.resources)A[I.resourceId]=I;for(let I of j.resources)I.resourceId in A&&(I.questions=A[I.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},rG=t=>{const r={};for(let{actionType:i,allowedResources:l,opportunityId:u,opportunityName:d}of t){let v={name:i,resources:l.map(Aw).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},GI=(t,r)=>t.relativeOrder<r.relativeOrder?-1:1,Aw=({allocationState:t,amountAllocated:r,amountApproved:i,amountRequested:l,amountUsed:u,attributeSets:d,baseExchangeRate:v,currentExchangeRate:h,currentExchangeRateEndDate:y,currentExchangeRateType:x,dependentResourceXrasIds:C,displayResourceName:w,endDate:R,exchangeRate:j,organizationId:A,organizationFaviconUrl:T,organizationName:I,resourceRepositoryKey:M,resourceType:F,startDate:V,unitType:U,userGuideUrl:P,xrasResourceId:z})=>{const X=U=="[Yes = 1, No = 0]",Y=U=="ACCESS Credits";return{allocated:$p(TI(r,i)||0,0,"floor"),decimalPlaces:0,endDate:R,exchangeRates:{base:{type:"base",unitCost:X?0:v||j},current:{endDate:y,type:(x||"base").toLowerCase(),unitCost:X?0:h||j}},icon:Y?"credit":F.toLowerCase(),isActive:t=="active",isBoolean:X,isCredit:Y,isFake:!1,isUnderReview:!1,isNew:!1,name:w.trim(),questions:(d||[]).filter(({isActive:pe})=>pe).sort(GI).map(pe=>({attributeSetId:pe.attributeSetId,attributes:pe.attributes.sort(GI).map(ie=>({required:ie.isRequired,resourceAttributeId:ie.resourceAttributeId,label:ie.attributeName})),fieldType:pe.attributeSetRelationType,label:pe.attributeSetName,resourceId:z,values:[]})),resourceProvider:{organizationId:A,name:I,favicon:T},requested:$p(TI(l,r)||0,0,"floor"),requires:C||[],resourceId:z,resourceRepositoryKey:M,startDate:V,type:F,unit:U,used:$p(u||0,0,"ceil"),userGuideUrl:P}},pO=(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],aG=(t,r)=>Ks(t,r).users.find(({username:i})=>i==r.payload.username),jw=({allocated:t,isActive:r,isCredit:i})=>t>0&&r&&!i,WI=t=>t.hasChanges=t.isNew||t.role!=t.initialRole||!pO(t.resourceIds,t.initialResourceIds),hO=()=>document.querySelector("meta[name=csrf-token]").content,iG=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({})}),vO=Di("api/fetchProjectDetail",async({grantNumber:t},{rejectWithValue:r})=>r({grantNumber:t})),mO=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(x=>x.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:hO()};return(await fetch(v,{body:Object.keys(h).map(x=>`${encodeURIComponent(x)}=${encodeURIComponent(h[x])}`).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:x,isFake:C,questions:w,requested:R,resourceId:j}of l.resources)if(R!=x&&!C){u[j]={resource_id:j,requested:1,amount:R-x};for(let{attributes:A,values:T,fieldType:I}of w)if(T.length){let M=A[0].resourceAttributeId,F=["drop_down","single_sel","multi_sel"].includes(I),U={resource_attribute_id:I=="multi_sel"?T:F?T[0]:M};F||(U.attribute_value=T[0]),d[M]=U}}const v={authenticity_token:hO(),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 x=parseInt(y.url.split("/").pop(),10);return{requestId:t,exchangeActionId:x}}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(x=>!pO(x.resourceIds,x.initialResourceIds)||x.isNew).length==0?[]:u.map(x=>({username:x.username,resources:x.resourceIds})),v=u.filter(x=>x.role!=x.initialRole).map(x=>({username:x.username,role:Sw[x.role],initialRole:Sw[x.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})}),gO=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(jw).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=$p(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=aG(t,r);i.role=r.payload.role,WI(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 x=y.resourceIds.indexOf(d);v&&x==-1?y.resourceIds.push(d):!v&&x>=0&&y.resourceIds.splice(x,1)}else y.resourceIds=v?l.resources.filter(jw).map(({resourceId:x})=>x):[];WI(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,C=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&&tG(r,l,C),{grantNumber:u||d,status:C,title:y}}),r.projectListLoading=!1}).addCase(Kb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(vO.rejected,(r,i)=>{const{grantNumber:l}=i.payload;r.projects[l]={error:"Failed to load project data."}}).addCase(mO.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})}}),oG=t=>t.api.error,sG=t=>t.api.projectsList,lG=t=>t.api.projectListLoading,uG=(t,r)=>Ks(t.api,{payload:{grantNumber:r}}),cG=(t,r)=>ea(t.api,{payload:{requestId:r}}),dG=t=>t.api.username,{addResource:fG,addUser:pG,closeUsageDetailModal:hG,hideAlert:Gq,resetResources:vG,resetUsers:mG,setRequest:gG,setResourceQuestionValues:yG,setResourceRequest:bG,setResourcesReason:xG,setTab:CG,setUserRole:SG,toggleActionsModal:EG,toggleConfirmModal:wG,toggleDeleteModal:RG,toggleResourcesModal:_G,toggleUsersResources:TG}=gO.actions,NG=gO.reducer,IG=t=>{const r=Jn(oG),i=Jn(lG),l=Jn(sG),u=No();return k.useEffect(()=>{u(Kb(t))},[]),{error:r,loading:i,projects:l}},Ji=(t,r)=>{const i=Jn(d=>uG(d,t)),l=Jn(dG),u=No();return k.useEffect(()=>{!i&&!r&&u(vO({grantNumber:t}))},[r]),{project:i,addUser:d=>u(pG({grantNumber:t,user:d})),resetUsers:()=>u(mG({grantNumber:t})),saveUsers:()=>u(r0({grantNumber:t})),setRequest:d=>u(gG({grantNumber:t,requestId:d})),setTab:d=>u(CG({grantNumber:t,tab:d})),setUserRole:(d,v)=>u(SG({grantNumber:t,username:d,role:v})),statuses:ta,toggleUsersResources:(d,v,h)=>u(TG({grantNumber:t,username:v,resourceId:h,checked:d})),username:l}},ri=(t,r)=>{const i=Jn(u=>cG(u,t)),l=No();return k.useEffect(()=>{i||l(mO({grantNumber:r,requestId:t}))},[r,t]),{request:i,addResource:u=>l(fG({requestId:t,resourceId:u})),closeUsageDetailModal:()=>l(hG({requestId:t})),deleteAction:u=>l(t0({actionId:u,requestId:t})),openUsageDetailModal:u=>l(e0({grantNumber:i.grantNumber,requestId:t,resourceRepositoryKey:u})),resetResources:()=>l(vG({requestId:t})),saveResources:()=>l(n0({requestId:t})),setResourceQuestionValues:(u,d,v)=>l(yG({requestId:t,resourceId:u,attributeSetId:d,values:v})),setResourceRequest:(u,d)=>l(bG({requestId:t,resourceId:u,requested:d})),setResourcesReason:u=>l(xG({requestId:t,reason:u})),statuses:ta,toggleActionsModal:()=>l(EG({requestId:t})),toggleConfirmModal:()=>l(wG({requestId:t})),toggleDeleteModal:u=>l(RG({requestId:t,actionId:u})),toggleResourcesModal:()=>l(_G({requestId:t}))}},AG="_project_qqnbz_1",jG="_expand_qqnbz_5",XI={project:AG,expand:jG},OG="_returnedForCorrectionsNotes_jujbd_1",DG={returnedForCorrectionsNotes:OG};function yO(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[x,...C]=y;let w=i==null?void 0:i(x,...C);return d(x),w},[i])]}var bO={};const x0={prefix:String(Math.round(Math.random()*1e10)),current:0},xO=pr.createContext(x0),kG=pr.createContext(!1);let MG=!!(typeof window<"u"&&window.document&&window.document.createElement),ZE=new WeakMap;function LG(t=!1){let r=k.useContext(xO),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 PG(t){let r=k.useContext(xO);r===x0&&!MG&&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=LG(!!t),l=r===x0&&bO.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${l}-${i}`}function FG(t){let r=pr.useId(),[i]=k.useState($G()),l=i||bO.NODE_ENV==="test"?"react-aria":`react-aria${x0.prefix}`;return t||`${l}-${r}`}const CO=typeof pr.useId=="function"?FG:PG;function VG(){return!1}function BG(){return!0}function zG(t){return()=>{}}function $G(){return typeof pr.useSyncExternalStore=="function"?pr.useSyncExternalStore(zG,VG,BG):k.useContext(kG)}const UG=k.createContext(null),nh=UG,HG=k.createContext(null),qd=(t,r=null)=>t!=null?String(t):r||null,iu=HG;function GG(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t},[t]),r}function yr(t){const r=GG(t);return k.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const YI=t=>!t||typeof t=="function"?t:r=>{t.current=r};function WG(t,r){const i=YI(t),l=YI(r);return u=>{i&&i(u),l&&l(u)}}function hs(t,r){return k.useMemo(()=>WG(t,r),[t,r])}function SR({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),x=k.cloneElement(t,{ref:y});return r?x:u||!v.current&&l?null:x}const XG=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],YG=["activeKey","getControlledId","getControllerId"],ZG=["as"];function Ow(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 SO(t){let{active:r,eventKey:i,mountOnEnter:l,transition:u,unmountOnExit:d,role:v="tabpanel",onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}=t,j=Ow(t,XG);const A=k.useContext(nh);if(!A)return[Object.assign({},j,{role:v}),{eventKey:i,isActive:r,mountOnEnter:l,transition:u,unmountOnExit:d,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}];const{activeKey:T,getControlledId:I,getControllerId:M}=A,F=Ow(A,YG),V=qd(i);return[Object.assign({},j,{role:v,id:I(i),"aria-labelledby":M(i)}),{eventKey:i,isActive:r==null&&V!=null?qd(T)===V:r,transition:u||F.transition,mountOnEnter:l??F.mountOnEnter,unmountOnExit:d??F.unmountOnExit,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}]}const EO=k.forwardRef((t,r)=>{let{as:i="div"}=t,l=Ow(t,ZG);const[u,{isActive:d,onEnter:v,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:j,transition:A=SR}]=SO(l);return m.jsx(nh.Provider,{value:null,children:m.jsx(iu.Provider,{value:null,children:m.jsx(A,{in:d,onEnter:v,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:j,children:m.jsx(i,Object.assign({},u,{ref:r,hidden:!d,"aria-hidden":!d}))})})})});EO.displayName="TabPanel";const wO=t=>{const{id:r,generateChildId:i,onSelect:l,activeKey:u,defaultActiveKey:d,transition:v,mountOnEnter:h,unmountOnExit:y,children:x}=t,[C,w]=yO(u,d,l),R=CO(r),j=k.useMemo(()=>i||((T,I)=>R?`${R}-${I}-${T}`:null),[R,i]),A=k.useMemo(()=>({onSelect:w,activeKey:C,transition:v,mountOnEnter:h||!1,unmountOnExit:y||!1,getControlledId:T=>j(T,"tabpane"),getControllerId:T=>j(T,"tab")}),[w,C,v,h,y,j]);return m.jsx(nh.Provider,{value:A,children:m.jsx(iu.Provider,{value:w||null,children:x})})};wO.Panel=EO;const RO=wO;var _O={exports:{}};/*!
|
|
292
292
|
Copyright (c) 2018 Jed Watson.
|
|
293
293
|
Licensed under the MIT License (MIT), see
|
|
294
294
|
http://jedwatson.github.io/classnames
|
|
295
|
-
*/(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})()})(_O);var qG=_O.exports;const Qt=Kp(qG);function ER(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 C0(t,r){return C0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},C0(t,r)}function JG(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,C0(t,r)}const ZI={disabled:!1};var TO={},QG=TO.NODE_ENV!=="production"?Be.oneOfType([Be.number,Be.shape({enter:Be.number,exit:Be.number,appear:Be.number}).isRequired]):null;TO.NODE_ENV!=="production"&&Be.oneOfType([Be.string,Be.shape({enter:Be.string,exit:Be.string,active:Be.string}),Be.shape({enter:Be.string,enterDone:Be.string,enterActive:Be.string,exit:Be.string,exitDone:Be.string,exitActive:Be.string})]);const NO=pr.createContext(null);var KG=function(r){return r.scrollTop},e3={},ym="unmounted",mc="exited",Ql="entering",gc="entered",S0="exiting",lu=function(t){JG(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=mc,d.appearStatus=Ql):y=gc:l.unmountOnExit||l.mountOnEnter?y=ym:y=mc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(u,d){var v=u.in;return v&&d.status===ym?{status:mc}: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!==Ql&&v!==gc&&(d=Ql):(v===Ql||v===gc)&&(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===Ql){if(this.props.unmountOnExit||this.props.mountOnEnter){var v=this.props.nodeRef?this.props.nodeRef.current:$d.findDOMNode(this);v&&KG(v)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mc&&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]:[$d.findDOMNode(this),h],x=y[0],C=y[1],w=this.getTimeouts(),R=h?w.appear:w.enter;if(!u&&!v||ZI.disabled){this.safeSetState({status:gc},function(){d.props.onEntered(x)});return}this.props.onEnter(x,C),this.safeSetState({status:Ql},function(){d.props.onEntering(x,C),d.onTransitionEnd(R,function(){d.safeSetState({status:gc},function(){d.props.onEntered(x,C)})})})},i.performExit=function(){var u=this,d=this.props.exit,v=this.getTimeouts(),h=this.props.nodeRef?void 0:$d.findDOMNode(this);if(!d||ZI.disabled){this.safeSetState({status:mc},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:mc},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:$d.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],x=y[0],C=y[1];this.props.addEndListener(x,C)}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=ER(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(NO.Provider,{value:null},typeof v=="function"?v(u,h):pr.cloneElement(pr.Children.only(v),h))},r}(pr.Component);lu.contextType=NO;lu.propTypes=e3.NODE_ENV!=="production"?{nodeRef:Be.shape({current:typeof Element>"u"?Be.any:function(t,r,i,l,u,d){var v=t[r];return Be.instanceOf(v&&"ownerDocument"in v?v.ownerDocument.defaultView.Element:Element)(t,r,i,l,u,d)}}),children:Be.oneOfType([Be.func.isRequired,Be.element.isRequired]).isRequired,in:Be.bool,mountOnEnter:Be.bool,unmountOnExit:Be.bool,appear:Be.bool,enter:Be.bool,exit:Be.bool,timeout:function(r){var i=QG;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:Be.func,onEnter:Be.func,onEntering:Be.func,onEntered:Be.func,onExit:Be.func,onExiting:Be.func,onExited:Be.func}:{};function Fp(){}lu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fp,onEntering:Fp,onEntered:Fp,onExit:Fp,onExiting:Fp,onExited:Fp};lu.UNMOUNTED=ym;lu.EXITED=mc;lu.ENTERING=Ql;lu.ENTERED=gc;lu.EXITING=S0;const t3=lu;function rh(t){return t&&t.ownerDocument||document}function n3(t){var r=rh(t);return r&&r.defaultView||window}function r3(t,r){return n3(t).getComputedStyle(t,r)}var a3=/([A-Z])/g;function i3(t){return t.replace(a3,"-$1").toLowerCase()}var o3=/^ms-/;function Bb(t){return i3(t).replace(o3,"-ms-")}var s3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function l3(t){return!!(t&&s3.test(t))}function nu(t,r){var i="",l="";if(typeof r=="string")return t.style.getPropertyValue(Bb(r))||r3(t).getPropertyValue(Bb(r));Object.keys(r).forEach(function(u){var d=r[u];!d&&d!==0?t.style.removeProperty(Bb(u)):l3(u)?l+=u+"("+d+") ":i+=Bb(u)+": "+d+";"}),l&&(i+="transform: "+l+";"),t.style.cssText+=";"+i}const ah=!!(typeof window<"u"&&window.document&&window.document.createElement);var Dw=!1,kw=!1;try{var qE={get passive(){return Dw=!0},get once(){return kw=Dw=!0}};ah&&(window.addEventListener("test",qE,qE),window.removeEventListener("test",qE,!0))}catch{}function wR(t,r,i,l){if(l&&typeof l!="boolean"&&!kw){var u=l.once,d=l.capture,v=i;!kw&&u&&(v=i.__once||function h(y){this.removeEventListener(r,h,d),i.call(this,y)},i.__once=v),t.addEventListener(r,v,Dw?l:d)}t.addEventListener(r,i,l)}function Mw(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 eu(t,r,i,l){return wR(t,r,i,l),function(){Mw(t,r,i,l)}}function u3(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 c3(t){var r=nu(t,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function d3(t,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||u3(t,"transitionend",!0)},r+i),d=eu(t,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),d()}}function IO(t,r,i,l){i==null&&(i=c3(t)||0);var u=d3(t,i,l),d=eu(t,"transitionend",r);return function(){u(),d()}}function qI(t,r){const i=nu(t,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function AO(t,r){const i=qI(t,"transitionDuration"),l=qI(t,"transitionDelay"),u=IO(t,d=>{d.target===t&&(u(),r(d))},i+l)}function jO(t){t.offsetHeight}function E0(t){return t&&"setState"in t?$d.findDOMNode(t):t??null}const f3=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:d,addEndListener:v,children:h,childRef:y,...x},C)=>{const w=k.useRef(null),R=hs(w,y),j=z=>{R(E0(z))},N=z=>X=>{z&&w.current&&z(w.current,X)},T=k.useCallback(N(t),[t]),A=k.useCallback(N(r),[r]),M=k.useCallback(N(i),[i]),F=k.useCallback(N(l),[l]),V=k.useCallback(N(u),[u]),U=k.useCallback(N(d),[d]),P=k.useCallback(N(v),[v]);return m.jsx(t3,{ref:C,...x,onEnter:T,onEntered:M,onEntering:A,onExit:F,onExited:U,onExiting:V,addEndListener:P,nodeRef:w,children:typeof h=="function"?(z,X)=>h(z,{...X,ref:j}):pr.cloneElement(h,{ref:j})})}),OO=f3,p3={[Ql]:"show",[gc]:"show"},DO=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,x)=>{jO(y),l==null||l(y,x)},[l]);return m.jsx(OO,{ref:d,addEndListener:AO,...v,onEnter:h,childRef:r.ref,children:(y,x)=>k.cloneElement(r,{...x,className:Qt("fade",t,r.props.className,p3[y],i[y])})})});DO.displayName="Fade";const Wp=DO;function RR(t){return typeof t=="boolean"?t?Wp:SR:t}const kO=({transition:t,...r})=>m.jsx(RO,{...r,transition:RR(t)});kO.displayName="TabContainer";const h3=kO,v3=["xxl","xl","lg","md","sm","xs"],m3="xs",MO=k.createContext({prefixes:{},breakpoints:v3,minBreakpoint:m3});function xn(t,r){const{prefixes:i}=k.useContext(MO);return t||i[r]||r}function G0(){const{dir:t}=k.useContext(MO);return t==="rtl"}const LO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"tab-content"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));LO.displayName="TabContent";const PO=LO,FO=k.forwardRef(({bsPrefix:t,transition:r,...i},l)=>{const[{className:u,as:d="div",...v},{isActive:h,onEnter:y,onEntering:x,onEntered:C,onExit:w,onExiting:R,onExited:j,mountOnEnter:N,unmountOnExit:T,transition:A=Wp}]=SO({...i,transition:RR(r)}),M=xn(t,"tab-pane");return m.jsx(nh.Provider,{value:null,children:m.jsx(iu.Provider,{value:null,children:m.jsx(A,{in:h,onEnter:y,onEntering:x,onEntered:C,onExit:w,onExiting:R,onExited:j,mountOnEnter:N,unmountOnExit:T,children:m.jsx(d,{...v,ref:l,className:Qt(u,M,h&&"active")})})})})});FO.displayName="TabPane";const VO=FO,g3={eventKey:Be.oneOfType([Be.string,Be.number]),title:Be.node.isRequired,disabled:Be.bool,tabClassName:Be.string,tabAttrs:Be.object},BO=()=>{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")};BO.propTypes=g3;const zb=Object.assign(BO,{Container:h3,Content:PO,Pane:VO});function Tt(){return Tt=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},Tt.apply(this,arguments)}var y3={},b3=function(t,r,i,l,u,d,v,h){if(y3.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 x=[i,l,u,d,v,h],C=0;y=new Error(r.replace(/%s/g,function(){return x[C++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},x3=b3;const JI=Kp(x3);function QI(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function C3(t){var r=S3(t,"string");return typeof r=="symbol"?r:String(r)}function S3(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 zO(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(x){for(var C=arguments.length,w=new Array(C>1?C-1:0),R=1;R<C;R++)w[R-1]=arguments[R];i&&i.apply(void 0,[x].concat(w)),v(x)},[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=ER(d,[QI(l),l].map(C3)),x=r[l],C=zO(h,v,t[x]),w=C[0],R=C[1];return Tt({},y,(u={},u[l]=w,u[x]=R,u))},t)}var KI={exports:{}},Lw={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(l){function u(v,h,y,x,C,w){var R=x||"<<anonymous>>",j=w||y;if(h[y]==null)return v?new Error("Required "+C+" `"+j+"` was not specified "+("in `"+R+"`.")):null;for(var N=arguments.length,T=Array(N>6?N-6:0),A=6;A<N;A++)T[A-6]=arguments[A];return l.apply(void 0,[h,y,R,C,j].concat(T))}var d=u.bind(null,!1);return d.isRequired=u.bind(null,!0),d}t.exports=r.default})(Lw,Lw.exports);var E3=Lw.exports;(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=E3,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 x(){for(var C=arguments.length,w=Array(C),R=0;R<C;R++)w[R]=arguments[R];var j=null;return h.forEach(function(N){if(j==null){var T=N.apply(void 0,w);T!=null&&(j=T)}}),j}return(0,l.default)(x)}t.exports=r.default})(KI,KI.exports);var w3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kl(t,r){return w3(t.querySelectorAll(r))}function $O(){const[,t]=k.useReducer(r=>!r,!1);return t}const UO=k.createContext(null);UO.displayName="NavContext";const _R=UO,R3="data-rr-ui-",_3="rrUi";function ih(t){return`${R3}${t}`}function T3(t){return`${_3}${t}`}const N3=["as","disabled"];function I3(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 A3(t){return!t||t.trim()==="#"}function TR({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 x={tagName:t};if(t==="button")return[{type:y||"button",disabled:r},x];const C=R=>{if((r||t==="a"&&A3(i))&&R.preventDefault(),r){R.stopPropagation();return}v==null||v(R)},w=R=>{R.key===" "&&(R.preventDefault(),C(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:C,onKeyDown:w},x]}const NR=k.forwardRef((t,r)=>{let{as:i,disabled:l}=t,u=I3(t,N3);const[d,{tagName:v}]=TR(Object.assign({tagName:i,disabled:l},u));return m.jsx(v,Object.assign({},u,d,{ref:r}))});NR.displayName="Button";const j3=["as","active","eventKey"];function O3(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 HO({key:t,onClick:r,active:i,id:l,role:u,disabled:d}){const v=k.useContext(iu),h=k.useContext(_R),y=k.useContext(nh);let x=i;const C={role:u};if(h){!u&&h.role==="tablist"&&(C.role="tab");const w=h.getControllerId(t??null),R=h.getControlledId(t??null);C[ih("event-key")]=t,C.id=w||l,x=i==null&&t!=null?h.activeKey===t:i,(x||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(C["aria-controls"]=R)}return C.role==="tab"&&(C["aria-selected"]=x,x||(C.tabIndex=-1),d&&(C.tabIndex=-1,C["aria-disabled"]=!0)),C.onClick=yr(w=>{d||(r==null||r(w),t!=null&&v&&!w.isPropagationStopped()&&v(t,w))}),[C,{isActive:x}]}const GO=k.forwardRef((t,r)=>{let{as:i=NR,active:l,eventKey:u}=t,d=O3(t,j3);const[v,h]=HO(Object.assign({key:qd(u,d.href),active:l},d));return v[ih("active")]=h.isActive,m.jsx(i,Object.assign({},d,v,{ref:r}))});GO.displayName="NavItem";const D3=GO,k3=["as","onSelect","activeKey","role","onKeyDown"];function M3(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 eA=()=>{},tA=ih("event-key"),WO=k.forwardRef((t,r)=>{let{as:i="div",onSelect:l,activeKey:u,role:d,onKeyDown:v}=t,h=M3(t,k3);const y=$O(),x=k.useRef(!1),C=k.useContext(iu),w=k.useContext(nh);let R,j;w&&(d=d||"tablist",u=w.activeKey,R=w.getControlledId,j=w.getControllerId);const N=k.useRef(null),T=V=>{const U=N.current;if(!U)return null;const P=Kl(U,`[${tA}]:not([aria-disabled=true])`),z=U.querySelector("[aria-selected=true]");if(!z||z!==document.activeElement)return null;const X=P.indexOf(z);if(X===-1)return null;let Y=X+V;return Y>=P.length&&(Y=0),Y<0&&(Y=P.length-1),P[Y]},A=(V,U)=>{V!=null&&(l==null||l(V,U),C==null||C(V,U))},M=V=>{if(v==null||v(V),!w)return;let U;switch(V.key){case"ArrowLeft":case"ArrowUp":U=T(-1);break;case"ArrowRight":case"ArrowDown":U=T(1);break;default:return}U&&(V.preventDefault(),A(U.dataset[T3("EventKey")]||null,V),x.current=!0,y())};k.useEffect(()=>{if(N.current&&x.current){const V=N.current.querySelector(`[${tA}][aria-selected=true]`);V==null||V.focus()}x.current=!1});const F=hs(r,N);return m.jsx(iu.Provider,{value:A,children:m.jsx(_R.Provider,{value:{role:d,activeKey:qd(u),getControlledId:R||eA,getControllerId:j||eA},children:m.jsx(i,Object.assign({},h,{onKeyDown:M,ref:F,role:d}))})})});WO.displayName="Nav";const L3=Object.assign(WO,{Item:D3}),XO=k.createContext(null);XO.displayName="NavbarContext";const YO=XO,ZO=k.createContext(null);ZO.displayName="CardHeaderContext";const P3=ZO,qO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"nav-item"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));qO.displayName="NavItem";const JO=qO;function w0(){return k.useState(null)}function F3(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 IR(){const t=k.useRef(!0),r=k.useRef(()=>t.current);return k.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),r.current}function QO(t){const r=k.useRef(null);return k.useEffect(()=>{r.current=t}),r.current}const V3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",B3=typeof document<"u",R0=B3||V3?k.useLayoutEffect:k.useEffect,z3=["onKeyDown"];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 U3(t){return!t||t.trim()==="#"}const KO=k.forwardRef((t,r)=>{let{onKeyDown:i}=t,l=$3(t,z3);const[u]=TR(Object.assign({tagName:"a"},l)),d=yr(v=>{u.onKeyDown(v),i==null||i(v)});return U3(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}))});KO.displayName="Anchor";const eD=KO,tD=k.forwardRef(({bsPrefix:t,className:r,as:i=eD,active:l,eventKey:u,disabled:d=!1,...v},h)=>{t=xn(t,"nav-link");const[y,x]=HO({key:qd(u,v.href),active:l,disabled:d,...v});return m.jsx(i,{...v,...y,ref:h,disabled:d,className:Qt(r,t,d&&"disabled",x.isActive&&"active")})});tD.displayName="NavLink";const nD=tD,rD=k.forwardRef((t,r)=>{const{as:i="div",bsPrefix:l,variant:u,fill:d=!1,justify:v=!1,navbar:h,navbarScroll:y,className:x,activeKey:C,...w}=W0(t,{activeKey:"onSelect"}),R=xn(l,"nav");let j,N,T=!1;const A=k.useContext(YO),M=k.useContext(P3);return A?(j=A.bsPrefix,T=h??!0):M&&({cardHeaderBsPrefix:N}=M),m.jsx(L3,{as:i,ref:r,activeKey:C,className:Qt(x,{[R]:!T,[`${j}-nav`]:T,[`${j}-nav-scroll`]:T&&y,[`${N}-${u}`]:!!N,[`${R}-${u}`]:!!u,[`${R}-fill`]:d,[`${R}-justified`]:v}),...w})});rD.displayName="Nav";const H3=Object.assign(rD,{Item:JO,Link:nD});function nA(t,r){let i=0;return k.Children.map(t,l=>k.isValidElement(l)?r(l,i++):l)}function G3(t,r){let i=0;k.Children.forEach(t,l=>{k.isValidElement(l)&&r(l,i++)})}function W3(t){let r;return G3(t,i=>{r==null&&(r=i.props.eventKey)}),r}function X3(t){const{title:r,eventKey:i,disabled:l,tabClassName:u,tabAttrs:d,id:v}=t.props;return r==null?null:m.jsx(JO,{as:"li",role:"presentation",children:m.jsx(nD,{as:"button",type:"button",eventKey:i,disabled:l,id:v,className:u,...d,children:r})})}const aD=t=>{const{id:r,onSelect:i,transition:l,mountOnEnter:u=!1,unmountOnExit:d=!1,variant:v="tabs",children:h,activeKey:y=W3(h),...x}=W0(t,{activeKey:"onSelect"});return m.jsxs(RO,{id:r,activeKey:y,onSelect:i,transition:RR(l),mountOnEnter:u,unmountOnExit:d,children:[m.jsx(H3,{...x,role:"tablist",as:"ul",variant:v,children:nA(h,X3)}),m.jsx(PO,{children:nA(h,C=>{const w={...C.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,m.jsx(VO,{...w})})})]})};aD.displayName="Tabs";const Y3=aD,Z3=k.createContext(null),X0=Z3;var rA=Object.prototype.hasOwnProperty;function aA(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=aA(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=aA(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(rA.call(t,i)&&++l&&!rA.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 q3(t){const r=IR();return[t[0],k.useCallback(i=>{if(r())return t[1](i)},[r,t[1]])]}var Ai="top",_o="bottom",To="right",ji="left",AR="auto",Fm=[Ai,_o,To,ji],Xp="start",_m="end",J3="clippingParents",iD="viewport",um="popper",Q3="reference",iA=Fm.reduce(function(t,r){return t.concat([r+"-"+Xp,r+"-"+_m])},[]),oD=[].concat(Fm,[AR]).reduce(function(t,r){return t.concat([r,r+"-"+Xp,r+"-"+_m])},[]),K3="beforeRead",e9="read",t9="afterRead",n9="beforeMain",r9="main",a9="afterMain",i9="beforeWrite",o9="write",s9="afterWrite",l9=[K3,e9,t9,n9,r9,a9,i9,o9,s9];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 Jd(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 jR(t){if(typeof ShadowRoot>"u")return!1;var r=Qi(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}var Wd=Math.max,_0=Math.min,Yp=Math.round;function Pw(){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 sD(){return!/^((?!chrome|android).)*safari/i.test(Pw())}function Zp(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&&Yp(l.width)/t.offsetWidth||1,d=t.offsetHeight>0&&Yp(l.height)/t.offsetHeight||1);var v=Jd(t)?Qi(t):window,h=v.visualViewport,y=!sD()&&i,x=(l.left+(y&&h?h.offsetLeft:0))/u,C=(l.top+(y&&h?h.offsetTop:0))/d,w=l.width/u,R=l.height/d;return{width:w,height:R,top:C,right:x+w,bottom:C+R,left:x,x,y:C}}function OR(t){var r=Zp(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 lD(t,r){var i=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(i&&jR(i)){var l=r;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function xc(t){return t?(t.nodeName||"").toLowerCase():null}function ou(t){return Qi(t).getComputedStyle(t)}function u9(t){return["table","td","th"].indexOf(xc(t))>=0}function Cc(t){return((Jd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Y0(t){return xc(t)==="html"?t:t.assignedSlot||t.parentNode||(jR(t)?t.host:null)||Cc(t)}function oA(t){return!nl(t)||ou(t).position==="fixed"?null:t.offsetParent}function c9(t){var r=/firefox/i.test(Pw()),i=/Trident/i.test(Pw());if(i&&nl(t)){var l=ou(t);if(l.position==="fixed")return null}var u=Y0(t);for(jR(u)&&(u=u.host);nl(u)&&["html","body"].indexOf(xc(u))<0;){var d=ou(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=oA(t);i&&u9(i)&&ou(i).position==="static";)i=oA(i);return i&&(xc(i)==="html"||xc(i)==="body"&&ou(i).position==="static")?r:i||c9(t)||r}function DR(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xm(t,r,i){return Wd(t,_0(r,i))}function d9(t,r,i){var l=xm(t,r,i);return l>i?i:l}function uD(){return{top:0,right:0,bottom:0,left:0}}function cD(t){return Object.assign({},uD(),t)}function dD(t,r){return r.reduce(function(i,l){return i[l]=t,i},{})}var f9=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,cD(typeof r!="number"?r:dD(r,Fm))};function p9(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=DR(h),x=[ji,To].indexOf(h)>=0,C=x?"height":"width";if(!(!d||!v)){var w=f9(u.padding,i),R=OR(d),j=y==="y"?Ai:ji,N=y==="y"?_o:To,T=i.rects.reference[C]+i.rects.reference[y]-v[y]-i.rects.popper[C],A=v[y]-i.rects.reference[y],M=Vm(d),F=M?y==="y"?M.clientHeight||0:M.clientWidth||0:0,V=T/2-A/2,U=w[j],P=F-R[C]-w[N],z=F/2-R[C]/2+V,X=xm(U,z,P),Y=y;i.modifiersData[l]=(r={},r[Y]=X,r.centerOffset=X-z,r)}}function h9(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)||lD(r.elements.popper,u)&&(r.elements.arrow=u))}const v9={name:"arrow",enabled:!0,phase:"main",fn:p9,effect:h9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qp(t){return t.split("-")[1]}var m9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function g9(t,r){var i=t.x,l=t.y,u=r.devicePixelRatio||1;return{x:Yp(i*u)/u||0,y:Yp(l*u)/u||0}}function sA(t){var r,i=t.popper,l=t.popperRect,u=t.placement,d=t.variation,v=t.offsets,h=t.position,y=t.gpuAcceleration,x=t.adaptive,C=t.roundOffsets,w=t.isFixed,R=v.x,j=R===void 0?0:R,N=v.y,T=N===void 0?0:N,A=typeof C=="function"?C({x:j,y:T}):{x:j,y:T};j=A.x,T=A.y;var M=v.hasOwnProperty("x"),F=v.hasOwnProperty("y"),V=ji,U=Ai,P=window;if(x){var z=Vm(i),X="clientHeight",Y="clientWidth";if(z===Qi(i)&&(z=Cc(i),ou(z).position!=="static"&&h==="absolute"&&(X="scrollHeight",Y="scrollWidth")),z=z,u===Ai||(u===ji||u===To)&&d===_m){U=_o;var pe=w&&z===P&&P.visualViewport?P.visualViewport.height:z[X];T-=pe-l.height,T*=y?1:-1}if(u===ji||(u===Ai||u===_o)&&d===_m){V=To;var ie=w&&z===P&&P.visualViewport?P.visualViewport.width:z[Y];j-=ie-l.width,j*=y?1:-1}}var ge=Object.assign({position:h},x&&m9),ae=C===!0?g9({x:j,y:T},Qi(i)):{x:j,y:T};if(j=ae.x,T=ae.y,y){var Re;return Object.assign({},ge,(Re={},Re[U]=F?"0":"",Re[V]=M?"0":"",Re.transform=(P.devicePixelRatio||1)<=1?"translate("+j+"px, "+T+"px)":"translate3d("+j+"px, "+T+"px, 0)",Re))}return Object.assign({},ge,(r={},r[U]=F?T+"px":"",r[V]=M?j+"px":"",r.transform="",r))}function y9(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,x={placement:tl(r.placement),variation:qp(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,sA(Object.assign({},x,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:v,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,sA(Object.assign({},x,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const b9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:y9,data:{}};var $b={passive:!0};function x9(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),x=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&x.forEach(function(C){C.addEventListener("scroll",i.update,$b)}),h&&y.addEventListener("resize",i.update,$b),function(){d&&x.forEach(function(C){C.removeEventListener("scroll",i.update,$b)}),h&&y.removeEventListener("resize",i.update,$b)}}const C9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:x9,data:{}};var S9={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(r){return S9[r]})}var E9={start:"end",end:"start"};function lA(t){return t.replace(/start|end/g,function(r){return E9[r]})}function kR(t){var r=Qi(t),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function MR(t){return Zp(Cc(t)).left+kR(t).scrollLeft}function w9(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 x=sD();(x||!x&&r==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}return{width:d,height:v,x:h+MR(t),y}}function R9(t){var r,i=Cc(t),l=kR(t),u=(r=t.ownerDocument)==null?void 0:r.body,d=Wd(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),v=Wd(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),h=-l.scrollLeft+MR(t),y=-l.scrollTop;return ou(u||i).direction==="rtl"&&(h+=Wd(i.clientWidth,u?u.clientWidth:0)-d),{width:d,height:v,x:h,y}}function LR(t){var r=ou(t),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function fD(t){return["html","body","#document"].indexOf(xc(t))>=0?t.ownerDocument.body:nl(t)&&LR(t)?t:fD(Y0(t))}function Cm(t,r){var i;r===void 0&&(r=[]);var l=fD(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),d=Qi(l),v=u?[d].concat(d.visualViewport||[],LR(l)?l:[]):l,h=r.concat(v);return u?h:h.concat(Cm(Y0(v)))}function Fw(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _9(t,r){var i=Zp(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 uA(t,r,i){return r===iD?Fw(w9(t,i)):Jd(r)?_9(r,i):Fw(R9(Cc(t)))}function T9(t){var r=Cm(Y0(t)),i=["absolute","fixed"].indexOf(ou(t).position)>=0,l=i&&nl(t)?Vm(t):t;return Jd(l)?r.filter(function(u){return Jd(u)&&lD(u,l)&&xc(u)!=="body"}):[]}function N9(t,r,i,l){var u=r==="clippingParents"?T9(t):[].concat(r),d=[].concat(u,[i]),v=d[0],h=d.reduce(function(y,x){var C=uA(t,x,l);return y.top=Wd(C.top,y.top),y.right=_0(C.right,y.right),y.bottom=_0(C.bottom,y.bottom),y.left=Wd(C.left,y.left),y},uA(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 pD(t){var r=t.reference,i=t.element,l=t.placement,u=l?tl(l):null,d=l?qp(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 _o:y={x:v,y:r.y+r.height};break;case To: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 x=u?DR(u):null;if(x!=null){var C=x==="y"?"height":"width";switch(d){case Xp:y[x]=y[x]-(r[C]/2-i[C]/2);break;case _m:y[x]=y[x]+(r[C]/2-i[C]/2);break}}return y}function Tm(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?J3:h,x=i.rootBoundary,C=x===void 0?iD:x,w=i.elementContext,R=w===void 0?um:w,j=i.altBoundary,N=j===void 0?!1:j,T=i.padding,A=T===void 0?0:T,M=cD(typeof A!="number"?A:dD(A,Fm)),F=R===um?Q3:um,V=t.rects.popper,U=t.elements[N?F:R],P=N9(Jd(U)?U:U.contextElement||Cc(t.elements.popper),y,C,v),z=Zp(t.elements.reference),X=pD({reference:z,element:V,strategy:"absolute",placement:u}),Y=Fw(Object.assign({},V,X)),pe=R===um?Y:z,ie={top:P.top-pe.top+M.top,bottom:pe.bottom-P.bottom+M.bottom,left:P.left-pe.left+M.left,right:pe.right-P.right+M.right},ge=t.modifiersData.offset;if(R===um&&ge){var ae=ge[u];Object.keys(ie).forEach(function(Re){var be=[To,_o].indexOf(Re)>=0?1:-1,xe=[Ai,_o].indexOf(Re)>=0?"y":"x";ie[Re]+=ae[xe]*be})}return ie}function I9(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,x=y===void 0?oD:y,C=qp(l),w=C?h?iA:iA.filter(function(N){return qp(N)===C}):Fm,R=w.filter(function(N){return x.indexOf(N)>=0});R.length===0&&(R=w);var j=R.reduce(function(N,T){return N[T]=Tm(t,{placement:T,boundary:u,rootBoundary:d,padding:v})[tl(T)],N},{});return Object.keys(j).sort(function(N,T){return j[N]-j[T]})}function A9(t){if(tl(t)===AR)return[];var r=a0(t);return[lA(t),r,lA(r)]}function j9(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,x=i.padding,C=i.boundary,w=i.rootBoundary,R=i.altBoundary,j=i.flipVariations,N=j===void 0?!0:j,T=i.allowedAutoPlacements,A=r.options.placement,M=tl(A),F=M===A,V=y||(F||!N?[a0(A)]:A9(A)),U=[A].concat(V).reduce(function(we,Te){return we.concat(tl(Te)===AR?I9(r,{placement:Te,boundary:C,rootBoundary:w,padding:x,flipVariations:N,allowedAutoPlacements:T}):Te)},[]),P=r.rects.reference,z=r.rects.popper,X=new Map,Y=!0,pe=U[0],ie=0;ie<U.length;ie++){var ge=U[ie],ae=tl(ge),Re=qp(ge)===Xp,be=[Ai,_o].indexOf(ae)>=0,xe=be?"width":"height",Ae=Tm(r,{placement:ge,boundary:C,rootBoundary:w,altBoundary:R,padding:x}),Le=be?Re?To:ji:Re?_o:Ai;P[xe]>z[xe]&&(Le=a0(Le));var ne=a0(Le),Oe=[];if(d&&Oe.push(Ae[ae]<=0),h&&Oe.push(Ae[Le]<=0,Ae[ne]<=0),Oe.every(function(we){return we})){pe=ge,Y=!1;break}X.set(ge,Oe)}if(Y)for(var G=N?3:1,Z=function(Te){var Ie=U.find(function(ue){var de=X.get(ue);if(de)return de.slice(0,Te).every(function(Ve){return Ve})});if(Ie)return pe=Ie,"break"},re=G;re>0;re--){var Ce=Z(re);if(Ce==="break")break}r.placement!==pe&&(r.modifiersData[l]._skip=!0,r.placement=pe,r.reset=!0)}}const O9={name:"flip",enabled:!0,phase:"main",fn:j9,requiresIfExists:["offset"],data:{_skip:!1}};function cA(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 dA(t){return[Ai,To,_o,ji].some(function(r){return t[r]>=0})}function D9(t){var r=t.state,i=t.name,l=r.rects.reference,u=r.rects.popper,d=r.modifiersData.preventOverflow,v=Tm(r,{elementContext:"reference"}),h=Tm(r,{altBoundary:!0}),y=cA(v,l),x=cA(h,u,d),C=dA(y),w=dA(x);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:x,isReferenceHidden:C,hasPopperEscaped:w},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":w})}const k9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D9};function M9(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,To].indexOf(l)>=0?{x:h,y:v}:{x:v,y:h}}function L9(t){var r=t.state,i=t.options,l=t.name,u=i.offset,d=u===void 0?[0,0]:u,v=oD.reduce(function(C,w){return C[w]=M9(w,r.rects,d),C},{}),h=v[r.placement],y=h.x,x=h.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=x),r.modifiersData[l]=v}const P9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:L9};function F9(t){var r=t.state,i=t.name;r.modifiersData[i]=pD({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const V9={name:"popperOffsets",enabled:!0,phase:"read",fn:F9,data:{}};function B9(t){return t==="x"?"y":"x"}function z9(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,x=i.rootBoundary,C=i.altBoundary,w=i.padding,R=i.tether,j=R===void 0?!0:R,N=i.tetherOffset,T=N===void 0?0:N,A=Tm(r,{boundary:y,rootBoundary:x,padding:w,altBoundary:C}),M=tl(r.placement),F=qp(r.placement),V=!F,U=DR(M),P=B9(U),z=r.modifiersData.popperOffsets,X=r.rects.reference,Y=r.rects.popper,pe=typeof T=="function"?T(Object.assign({},r.rects,{placement:r.placement})):T,ie=typeof pe=="number"?{mainAxis:pe,altAxis:pe}:Object.assign({mainAxis:0,altAxis:0},pe),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,ae={x:0,y:0};if(z){if(d){var Re,be=U==="y"?Ai:ji,xe=U==="y"?_o:To,Ae=U==="y"?"height":"width",Le=z[U],ne=Le+A[be],Oe=Le-A[xe],G=j?-Y[Ae]/2:0,Z=F===Xp?X[Ae]:Y[Ae],re=F===Xp?-Y[Ae]:-X[Ae],Ce=r.elements.arrow,we=j&&Ce?OR(Ce):{width:0,height:0},Te=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:uD(),Ie=Te[be],ue=Te[xe],de=xm(0,X[Ae],we[Ae]),Ve=V?X[Ae]/2-G-de-Ie-ie.mainAxis:Z-de-Ie-ie.mainAxis,Ge=V?-X[Ae]/2+G+de+ue+ie.mainAxis:re+de+ue+ie.mainAxis,tt=r.elements.arrow&&Vm(r.elements.arrow),ot=tt?U==="y"?tt.clientTop||0:tt.clientLeft||0:0,je=(Re=ge==null?void 0:ge[U])!=null?Re:0,Rt=Le+Ve-je-ot,dt=Le+Ge-je,en=xm(j?_0(ne,Rt):ne,Le,j?Wd(Oe,dt):Oe);z[U]=en,ae[U]=en-Le}if(h){var sn,ln=U==="x"?Ai:ji,In=U==="x"?_o:To,Vt=z[P],Cn=P==="y"?"height":"width",Qn=Vt+A[ln],_r=Vt-A[In],Hn=[Ai,ji].indexOf(M)!==-1,Tr=(sn=ge==null?void 0:ge[P])!=null?sn:0,St=Hn?Qn:Vt-X[Cn]-Y[Cn]-Tr+ie.altAxis,Pn=Hn?Vt+X[Cn]+Y[Cn]-Tr-ie.altAxis:_r,un=j&&Hn?d9(St,Vt,Pn):xm(j?St:Qn,Vt,j?Pn:_r);z[P]=un,ae[P]=un-Vt}r.modifiersData[l]=ae}}const $9={name:"preventOverflow",enabled:!0,phase:"main",fn:z9,requiresIfExists:["offset"]};function U9(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function H9(t){return t===Qi(t)||!nl(t)?kR(t):U9(t)}function G9(t){var r=t.getBoundingClientRect(),i=Yp(r.width)/t.offsetWidth||1,l=Yp(r.height)/t.offsetHeight||1;return i!==1||l!==1}function W9(t,r,i){i===void 0&&(i=!1);var l=nl(r),u=nl(r)&&G9(r),d=Cc(r),v=Zp(t,u,i),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(l||!l&&!i)&&((xc(r)!=="body"||LR(d))&&(h=H9(r)),nl(r)?(y=Zp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=MR(d))),{x:v.left+h.scrollLeft-y.x,y:v.top+h.scrollTop-y.y,width:v.width,height:v.height}}function X9(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 Y9(t){var r=X9(t);return l9.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function Z9(t){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(t())})})),r}}function q9(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 fA={placement:"bottom",modifiers:[],strategy:"absolute"};function pA(){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 J9(t){t===void 0&&(t={});var r=t,i=r.defaultModifiers,l=i===void 0?[]:i,u=r.defaultOptions,d=u===void 0?fA:u;return function(h,y,x){x===void 0&&(x=d);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},fA,d),modifiersData:{},elements:{reference:h,popper:y},attributes:{},styles:{}},w=[],R=!1,j={state:C,setOptions:function(M){var F=typeof M=="function"?M(C.options):M;T(),C.options=Object.assign({},d,C.options,F),C.scrollParents={reference:Jd(h)?Cm(h):h.contextElement?Cm(h.contextElement):[],popper:Cm(y)};var V=Y9(q9([].concat(l,C.options.modifiers)));return C.orderedModifiers=V.filter(function(U){return U.enabled}),N(),j.update()},forceUpdate:function(){if(!R){var M=C.elements,F=M.reference,V=M.popper;if(pA(F,V)){C.rects={reference:W9(F,Vm(V),C.options.strategy==="fixed"),popper:OR(V)},C.reset=!1,C.placement=C.options.placement,C.orderedModifiers.forEach(function(ie){return C.modifiersData[ie.name]=Object.assign({},ie.data)});for(var U=0;U<C.orderedModifiers.length;U++){if(C.reset===!0){C.reset=!1,U=-1;continue}var P=C.orderedModifiers[U],z=P.fn,X=P.options,Y=X===void 0?{}:X,pe=P.name;typeof z=="function"&&(C=z({state:C,options:Y,name:pe,instance:j})||C)}}}},update:Z9(function(){return new Promise(function(A){j.forceUpdate(),A(C)})}),destroy:function(){T(),R=!0}};if(!pA(h,y))return j;j.setOptions(x).then(function(A){!R&&x.onFirstUpdate&&x.onFirstUpdate(A)});function N(){C.orderedModifiers.forEach(function(A){var M=A.name,F=A.options,V=F===void 0?{}:F,U=A.effect;if(typeof U=="function"){var P=U({state:C,name:M,instance:j,options:V}),z=function(){};w.push(P||z)}})}function T(){w.forEach(function(A){return A()}),w=[]}return j}}const Q9=J9({defaultModifiers:[k9,V9,b9,C9,P9,O9,$9,v9]}),K9=["enabled","placement","strategy","modifiers"];function e4(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 t4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},n4={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)}}},r4=[];function hD(t,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:d="absolute",modifiers:v=r4}=i,h=e4(i,K9);const y=k.useRef(v),x=k.useRef(),C=k.useCallback(()=>{var A;(A=x.current)==null||A.update()},[]),w=k.useCallback(()=>{var A;(A=x.current)==null||A.forceUpdate()},[]),[R,j]=q3(k.useState({placement:u,update:C,forceUpdate:w,attributes:{},styles:{popper:{},arrow:{}}})),N=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:A})=>{const M={},F={};Object.keys(A.elements).forEach(V=>{M[V]=A.styles[V],F[V]=A.attributes[V]}),j({state:A,styles:M,attributes:F,update:C,forceUpdate:w,placement:A.placement})}}),[C,w,j]),T=k.useMemo(()=>(bm(y.current,v)||(y.current=v),y.current),[v]);return k.useEffect(()=>{!x.current||!l||x.current.setOptions({placement:u,strategy:d,modifiers:[...T,N,t4]})},[d,u,N,l,T]),k.useEffect(()=>{if(!(!l||t==null||r==null))return x.current=Q9(t,r,Object.assign({},h,{placement:u,strategy:d,modifiers:[...T,n4,N]})),()=>{x.current!=null&&(x.current.destroy(),x.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 a4={},i4=a4.NODE_ENV!=="production",vD=function(){};if(i4){var o4=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{}};vD=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||o4.apply(null,[r].concat(i))}}var s4=vD;const PR=Kp(s4),hA=()=>{};function l4(t){return t.button===0}function u4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const i0=t=>t&&("current"in t?t.current:t),vA={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function mD(t,r=hA,{disabled:i,clickTrigger:l="click"}={}){const u=k.useRef(!1),d=k.useRef(!1),v=k.useCallback(x=>{const C=i0(t);PR(!!C,"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=!C||u4(x)||!l4(x)||!!Nm(C,x.target)||d.current,d.current=!1},[t]),h=yr(x=>{const C=i0(t);C&&Nm(C,x.target)&&(d.current=!0)}),y=yr(x=>{u.current||r(x)});k.useEffect(()=>{var x,C;if(i||t==null)return;const w=rh(i0(t)),R=w.defaultView||window;let j=(x=R.event)!=null?x:(C=R.parent)==null?void 0:C.event,N=null;vA[l]&&(N=eu(w,vA[l],h,!0));const T=eu(w,l,v,!0),A=eu(w,l,F=>{if(F===j){j=void 0;return}y(F)});let M=[];return"ontouchstart"in w.documentElement&&(M=[].slice.call(w.body.children).map(F=>eu(F,"mousemove",hA))),()=>{N==null||N(),T(),A(),M.forEach(F=>F())}},[t,i,l,v,h,y])}function c4(t){const r={};return Array.isArray(t)?(t==null||t.forEach(i=>{r[i.name]=i}),r):t||r}function d4(t={}){return Array.isArray(t)?t:Object.keys(t).map(r=>(t[r].name=r,t[r]))}function gD({enabled:t,enableEvents:r,placement:i,flip:l,offset:u,fixed:d,containerPadding:v,arrowElement:h,popperConfig:y={}}){var x,C,w,R,j;const N=c4(y.modifiers);return Object.assign({},y,{placement:i,enabled:t,strategy:d?"fixed":y.strategy,modifiers:d4(Object.assign({},N,{eventListeners:{enabled:r,options:(x=N.eventListeners)==null?void 0:x.options},preventOverflow:Object.assign({},N.preventOverflow,{options:v?Object.assign({padding:v},(C=N.preventOverflow)==null?void 0:C.options):(w=N.preventOverflow)==null?void 0:w.options}),offset:{options:Object.assign({offset:u},(R=N.offset)==null?void 0:R.options)},arrow:Object.assign({},N.arrow,{enabled:!!h,options:Object.assign({},(j=N.arrow)==null?void 0:j.options,{element:h})}),flip:Object.assign({enabled:!!l},N.flip)}))})}const f4=["children"];function p4(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 h4=()=>{};function yD(t={}){const r=k.useContext(X0),[i,l]=w0(),u=k.useRef(!1),{flip:d,offset:v,rootCloseEvent:h,fixed:y=!1,placement:x,popperConfig:C={},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 N=z=>{r==null||r.toggle(!1,z)},{placement:T,setMenu:A,menuElement:M,toggleElement:F}=r||{},V=hD(F,M,gD({placement:x||T||"bottom-start",enabled:R,enableEvents:w??j,offset:v,flip:d,fixed:y,arrowElement:i,popperConfig:C})),U=Object.assign({ref:A||h4,"aria-labelledby":F==null?void 0:F.id},V.attributes.popper,{style:V.styles.popper}),P={show:j,placement:T,hasShown:u.current,toggle:r==null?void 0:r.toggle,popper:R?V:null,arrowProps:R?Object.assign({ref:l},V.attributes.arrow,{style:V.styles.arrow}):{}};return mD(M,N,{clickTrigger:h,disabled:!j}),[U,P]}const v4={usePopper:!0};function FR(t){let{children:r}=t,i=p4(t,f4);const[l,u]=yD(i);return m.jsx(m.Fragment,{children:r(l,u)})}FR.displayName="DropdownMenu";FR.defaultProps=v4;const bD=t=>{var r;return((r=t.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},mA=()=>{};function xD(){const t=CO(),{show:r=!1,toggle:i=mA,setToggle:l,menuElement:u}=k.useContext(X0)||{},d=k.useCallback(h=>{i(!r,h)},[r,i]),v={id:t,ref:l||mA,onClick:d,"aria-expanded":!!r};return u&&bD(u)&&(v["aria-haspopup"]=!0),[v,{show:r,toggle:i}]}function CD({children:t}){const[r,i]=xD();return m.jsx(m.Fragment,{children:t(r,i)})}CD.displayName="DropdownToggle";const m4=["eventKey","disabled","onClick","active","as"];function g4(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 SD({key:t,href:r,active:i,disabled:l,onClick:u}){const d=k.useContext(iu),v=k.useContext(_R),{activeKey:h}=v||{},y=qd(t,r),x=i==null&&t!=null?qd(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":x,[ih("dropdown-item")]:""},{isActive:x}]}const ED=k.forwardRef((t,r)=>{let{eventKey:i,disabled:l,onClick:u,active:d,as:v=NR}=t,h=g4(t,m4);const[y]=SD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,Object.assign({},h,{ref:r},y))});ED.displayName="DropdownItem";const wD=k.createContext(ah?window:void 0);wD.Provider;function Z0(){return k.useContext(wD)}function gA(){const t=$O(),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=`* [${ih("dropdown-item")}]`,focusFirstItemOnShow:d,placement:v="bottom-start",children:h}){const y=Z0(),[x,C]=yO(r,t,l),[w,R]=gA(),j=w.current,[N,T]=gA(),A=N.current,M=QO(x),F=k.useRef(null),V=k.useRef(!1),U=k.useContext(iu),P=k.useCallback((ge,ae,Re=ae==null?void 0:ae.type)=>{C(ge,{originalEvent:ae,source:Re})},[C]),z=yr((ge,ae)=>{i==null||i(ge,ae),P(!1,ae,"select"),ae.isPropagationStopped()||U==null||U(ge,ae)}),X=k.useMemo(()=>({toggle:P,placement:v,show:x,menuElement:j,toggleElement:A,setMenu:R,setToggle:T}),[P,v,x,j,A,R,T]);j&&M&&!x&&(V.current=j.contains(j.ownerDocument.activeElement));const Y=yr(()=>{A&&A.focus&&A.focus()}),pe=yr(()=>{const ge=F.current;let ae=d;if(ae==null&&(ae=w.current&&bD(w.current)?"keyboard":!1),ae===!1||ae==="keyboard"&&!/^key.+$/.test(ge))return;const Re=Kl(w.current,u)[0];Re&&Re.focus&&Re.focus()});k.useEffect(()=>{x?pe():V.current&&(V.current=!1,Y())},[x,V,Y,pe]),k.useEffect(()=>{F.current=null});const ie=(ge,ae)=>{if(!w.current)return null;const Re=Kl(w.current,u);let be=Re.indexOf(ge)+ae;return be=Math.max(0,Math.min(be,Re.length)),Re[be]};return F3(k.useCallback(()=>y.document,[y]),"keydown",ge=>{var ae,Re;const{key:be}=ge,xe=ge.target,Ae=(ae=w.current)==null?void 0:ae.contains(xe),Le=(Re=N.current)==null?void 0:Re.contains(xe);if(/input|textarea/i.test(xe.tagName)&&(be===" "||be!=="Escape"&&Ae||be==="Escape"&&xe.type==="search")||!Ae&&!Le||be==="Tab"&&(!w.current||!x))return;F.current=ge.type;const Oe={originalEvent:ge,source:ge.type};switch(be){case"ArrowUp":{const G=ie(xe,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!x)C(!0,Oe);else{const G=ie(xe,1);G&&G.focus&&G.focus()}return;case"Tab":wR(xe.ownerDocument,"keyup",G=>{var Z;(G.key==="Tab"&&!G.target||!((Z=w.current)!=null&&Z.contains(G.target)))&&C(!1,Oe)},{once:!0});break;case"Escape":be==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),C(!1,Oe);break}}),m.jsx(iu.Provider,{value:z,children:m.jsx(X0.Provider,{value:X,children:h})})}Bm.displayName="Dropdown";Bm.Menu=FR;Bm.Toggle=CD;Bm.Item=ED;const RD=k.createContext({});RD.displayName="DropdownContext";const _D=RD,TD=k.forwardRef(({className:t,bsPrefix:r,as:i="hr",role:l="separator",...u},d)=>(r=xn(r,"dropdown-divider"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));TD.displayName="DropdownDivider";const y4=TD,ND=k.forwardRef(({className:t,bsPrefix:r,as:i="div",role:l="heading",...u},d)=>(r=xn(r,"dropdown-header"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));ND.displayName="DropdownHeader";const b4=ND,ID=k.forwardRef(({bsPrefix:t,className:r,eventKey:i,disabled:l=!1,onClick:u,active:d,as:v=eD,...h},y)=>{const x=xn(t,"dropdown-item"),[C,w]=SD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,{...h,...C,ref:y,className:Qt(r,x,w.isActive&&"active",l&&"disabled")})});ID.displayName="DropdownItem";const x4=ID,AD=k.forwardRef(({className:t,bsPrefix:r,as:i="span",...l},u)=>(r=xn(r,"dropdown-item-text"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));AD.displayName="DropdownItemText";const C4=AD,jD=k.createContext(null);jD.displayName="InputGroupContext";const OD=jD;var yA={};function DD(t,r){if(yA.NODE_ENV==="production")return t;const i=k.useCallback(l=>{l==null||!l.isReactComponent||(yA.NODE_ENV!=="production"?JI(!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`):JI(!1))},[r]);return hs(i,t)}var S4={};function kD(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",x=i?"left-start":"right-start",C=i?"left-end":"right-end";let w=t?v:d;return r==="up"?w=t?u:l:r==="end"?w=t?C:x:r==="start"?w=t?y:h:r==="down-centered"?w="bottom":r==="up-centered"&&(w="top"),w}const MD=k.forwardRef(({bsPrefix:t,className:r,align:i,rootCloseEvent:l,flip:u=!0,show:d,renderOnMount:v,as:h="div",popperConfig:y,variant:x,...C},w)=>{let R=!1;const j=k.useContext(YO),N=xn(t,"dropdown-menu"),{align:T,drop:A,isRTL:M}=k.useContext(_D);i=i||T;const F=k.useContext(OD),V=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(S4.NODE_ENV!=="production"&&PR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const ae=ge[0],Re=i[ae];R=Re==="start",V.push(`${N}-${ae}-${Re}`)}}else i==="end"&&(R=!0);const U=kD(R,A,M),[P,{hasShown:z,popper:X,show:Y,toggle:pe}]=yD({flip:u,rootCloseEvent:l,show:d,usePopper:!j&&V.length===0,offset:[0,2],popperConfig:y,placement:U});if(P.ref=hs(DD(w,"DropdownMenu"),P.ref),R0(()=>{Y&&(X==null||X.update())},[Y]),!z&&!v&&!F)return null;typeof h!="string"&&(P.show=Y,P.close=()=>pe==null?void 0:pe(!1),P.align=i);let ie=C.style;return X!=null&&X.placement&&(ie={...C.style,...P.style},C["x-placement"]=X.placement),m.jsx(h,{...C,...P,style:ie,...(V.length||j)&&{"data-bs-popper":"static"},className:Qt(r,N,Y&&"show",R&&`${N}-end`,x&&`${N}-${x}`,...V)})});MD.displayName="DropdownMenu";const E4=MD,LD=k.forwardRef(({as:t,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:d=!1,className:v,...h},y)=>{const x=xn(r,"btn"),[C,{tagName:w}]=TR({tagName:t,disabled:d,...h}),R=w;return m.jsx(R,{...C,...h,ref:y,disabled:d,className:Qt(v,x,u&&"active",i&&`${x}-${i}`,l&&`${x}-${l}`,h.href&&d&&"disabled")})});LD.displayName="Button";const w4=LD,PD=k.forwardRef(({bsPrefix:t,split:r,className:i,childBsPrefix:l,as:u=w4,...d},v)=>{const h=xn(t,"dropdown-toggle"),y=k.useContext(X0);l!==void 0&&(d.bsPrefix=l);const[x]=xD();return x.ref=hs(x.ref,DD(v,"DropdownToggle")),m.jsx(u,{className:Qt(i,h,r&&`${h}-split`,(y==null?void 0:y.show)&&"show"),...x,...d})});PD.displayName="DropdownToggle";const R4=PD,FD=k.forwardRef((t,r)=>{const{bsPrefix:i,drop:l="down",show:u,className:d,align:v="start",onSelect:h,onToggle:y,focusFirstItemOnShow:x,as:C="div",navbar:w,autoClose:R=!0,...j}=W0(t,{show:"onToggle"}),N=k.useContext(OD),T=xn(i,"dropdown"),A=G0(),M=X=>R===!1?X==="click":R==="inside"?X!=="rootClose":R==="outside"?X!=="select":!0,F=yr((X,Y)=>{var pe,ie;!((pe=Y.originalEvent)==null||(ie=pe.target)==null)&&ie.classList.contains("dropdown-toggle")&&Y.source==="mousedown"||(Y.originalEvent.currentTarget===document&&(Y.source!=="keydown"||Y.originalEvent.key==="Escape")&&(Y.source="rootClose"),M(Y.source)&&(y==null||y(X,Y)))}),U=kD(v==="end",l,A),P=k.useMemo(()=>({align:v,drop:l,isRTL:A}),[v,l,A]),z={down:T,"down-centered":`${T}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return m.jsx(_D.Provider,{value:P,children:m.jsx(Bm,{placement:U,show:u,onSelect:h,onToggle:F,focusFirstItemOnShow:x,itemSelector:`.${T}-item:not(.disabled):not(:disabled)`,children:N?j.children:m.jsx(C,{...j,ref:r,className:Qt(d,u&&"show",z[l])})})})});FD.displayName="Dropdown";const Ub=Object.assign(FD,{Toggle:R4,Menu:E4,Item:x4,ItemText:C4,Divider:y4,Header:b4});var Hb;function bA(t){if((!Hb&&Hb!==0||t)&&ah){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 _4(t){const r=k.useRef(t);return r.current=t,r}function VR(t){const r=_4(t);k.useEffect(()=>()=>r.current(),[])}function JE(t){t===void 0&&(t=rh());try{var r=t.activeElement;return!r||!r.nodeName?null:r}catch{return t.body}}function T4(t=document){const r=t.defaultView;return Math.abs(r.innerWidth-t.documentElement.clientWidth)}const xA=ih("modal-open");class N4{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return T4(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(nu(u,l)||"0",10)+r.scrollBarWidth}px`),u.setAttribute(xA,""),nu(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(xA),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 BR=N4,QE=(t,r)=>ah?t==null?(r||rh()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function Vw(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 I4({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 A4({children:t,in:r,onExited:i,onEntered:l,transition:u}){const[d,v]=k.useState(!r);r&&d&&v(!1);const h=I4({in:!!r,onTransition:x=>{const C=()=>{x.isStale()||(x.in?l==null||l(x.element,x.initial):(v(!0),i==null||i(x.element)))};Promise.resolve(u(x)).then(C,w=>{throw x.in||v(!0),w})}}),y=hs(h,t.ref);return d&&!r?null:k.cloneElement(t,{ref:y})}function Bw(t,r,i){return t?m.jsx(t,Object.assign({},i)):r?m.jsx(A4,Object.assign({},i,{transition:r})):m.jsx(SR,Object.assign({},i))}function VD(t){return t.code==="Escape"||t.keyCode===27}const j4=["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 O4(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 D4(t){return KE||(KE=new BR({ownerDocument:t==null?void 0:t.document})),KE}function k4(t){const r=Z0(),i=t||D4(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 BD=k.forwardRef((t,r)=>{let{show:i=!1,role:l="dialog",className:u,style:d,children:v,backdrop:h=!0,keyboard:y=!0,onBackdropClick:x,onEscapeKeyDown:C,transition:w,runTransition:R,backdropTransition:j,runBackdropTransition:N,autoFocus:T=!0,enforceFocus:A=!0,restoreFocus:M=!0,restoreFocusOptions:F,renderDialog:V,renderBackdrop:U=dt=>m.jsx("div",Object.assign({},dt)),manager:P,container:z,onShow:X,onHide:Y=()=>{},onExit:pe,onExited:ie,onExiting:ge,onEnter:ae,onEntering:Re,onEntered:be}=t,xe=O4(t,j4);const Ae=Z0(),Le=Vw(z),ne=k4(P),Oe=IR(),G=QO(i),[Z,re]=k.useState(!i),Ce=k.useRef(null);k.useImperativeHandle(r,()=>ne,[ne]),ah&&!G&&i&&(Ce.current=JE(Ae==null?void 0:Ae.document)),i&&Z&&re(!1);const we=yr(()=>{if(ne.add(),Ge.current=eu(document,"keydown",de),Ve.current=eu(document,"focus",()=>setTimeout(Ie),!0),X&&X(),T){var dt,en;const sn=JE((dt=(en=ne.dialog)==null?void 0:en.ownerDocument)!=null?dt:Ae==null?void 0:Ae.document);ne.dialog&&sn&&!Nm(ne.dialog,sn)&&(Ce.current=sn,ne.dialog.focus())}}),Te=yr(()=>{if(ne.remove(),Ge.current==null||Ge.current(),Ve.current==null||Ve.current(),M){var dt;(dt=Ce.current)==null||dt.focus==null||dt.focus(F),Ce.current=null}});k.useEffect(()=>{!i||!Le||we()},[i,Le,we]),k.useEffect(()=>{Z&&Te()},[Z,Te]),VR(()=>{Te()});const Ie=yr(()=>{if(!A||!Oe()||!ne.isTopModal())return;const dt=JE(Ae==null?void 0:Ae.document);ne.dialog&&dt&&!Nm(ne.dialog,dt)&&ne.dialog.focus()}),ue=yr(dt=>{dt.target===dt.currentTarget&&(x==null||x(dt),h===!0&&Y())}),de=yr(dt=>{y&&VD(dt)&&ne.isTopModal()&&(C==null||C(dt),dt.defaultPrevented||Y())}),Ve=k.useRef(),Ge=k.useRef(),tt=(...dt)=>{re(!0),ie==null||ie(...dt)};if(!Le)return null;const ot=Object.assign({role:l,ref:ne.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},xe,{style:d,className:u,tabIndex:-1});let je=V?V(ot):m.jsx("div",Object.assign({},ot,{children:k.cloneElement(v,{role:"document"})}));je=Bw(w,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:pe,onExiting:ge,onExited:tt,onEnter:ae,onEntering:Re,onEntered:be,children:je});let Rt=null;return h&&(Rt=U({ref:ne.setBackdropRef,onClick:ue}),Rt=Bw(j,N,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Rt})),m.jsx(m.Fragment,{children:$d.createPortal(m.jsxs(m.Fragment,{children:[Rt,je]}),Le)})});BD.displayName="Modal";const M4=Object.assign(BD,{Manager:BR});function zw(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function L4(t,r){t.classList?t.classList.add(r):zw(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function CA(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function P4(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=CA(t.className,r):t.setAttribute("class",CA(t.className&&t.className.baseVal||"",r))}const Vp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class F4 extends BR{adjustAndStore(r,i,l){const u=i.style[r];i.dataset[r]=u,nu(i,{[r]:`${parseFloat(nu(i,r))+l}px`})}restore(r,i){const l=i.dataset[r];l!==void 0&&(delete i.dataset[r],nu(i,{[r]:l}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(L4(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,Vp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth)),Kl(i,Vp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(u,d,-r.scrollBarWidth)),Kl(i,Vp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();P4(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,Vp.FIXED_CONTENT).forEach(d=>this.restore(l,d)),Kl(i,Vp.STICKY_CONTENT).forEach(d=>this.restore(u,d)),Kl(i,Vp.NAVBAR_TOGGLER).forEach(d=>this.restore(u,d))}}let ew;function V4(t){return ew||(ew=new F4(t)),ew}const zD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"modal-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));zD.displayName="ModalBody";const B4=zD,z4=k.createContext({onHide(){}}),$D=z4,UD=k.forwardRef(({bsPrefix:t,className:r,contentClassName:i,centered:l,size:u,fullscreen:d,children:v,scrollable:h,...y},x)=>{t=xn(t,"modal");const C=`${t}-dialog`,w=typeof d=="string"?`${t}-fullscreen-${d}`:`${t}-fullscreen`;return m.jsx("div",{...y,ref:x,className:Qt(C,r,u&&`${t}-${u}`,l&&`${C}-centered`,h&&`${C}-scrollable`,d&&w),children:m.jsx("div",{className:Qt(`${t}-content`,i),children:v})})});UD.displayName="ModalDialog";const HD=UD,GD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"modal-footer"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));GD.displayName="ModalFooter";const $4=GD,U4={"aria-label":Be.string,onClick:Be.func,variant:Be.oneOf(["white"])},zR=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}));zR.displayName="CloseButton";zR.propTypes=U4;const H4=zR,G4=k.forwardRef(({closeLabel:t="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...d},v)=>{const h=k.useContext($D),y=yr(()=>{h==null||h.onHide(),l==null||l()});return m.jsxs("div",{ref:v,...d,children:[u,i&&m.jsx(H4,{"aria-label":t,variant:r,onClick:y})]})}),W4=G4,WD=k.forwardRef(({bsPrefix:t,className:r,closeLabel:i="Close",closeButton:l=!1,...u},d)=>(t=xn(t,"modal-header"),m.jsx(W4,{ref:d,...u,className:Qt(r,t),closeLabel:i,closeButton:l})));WD.displayName="ModalHeader";const X4=WD,Y4=t=>k.forwardRef((r,i)=>m.jsx("div",{...r,ref:i,className:Qt(r.className,t)})),Z4=Y4("h4"),XD=k.forwardRef(({className:t,bsPrefix:r,as:i=Z4,...l},u)=>(r=xn(r,"modal-title"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));XD.displayName="ModalTitle";const q4=XD;function J4(t){return m.jsx(Wp,{...t,timeout:null})}function Q4(t){return m.jsx(Wp,{...t,timeout:null})}const YD=k.forwardRef(({bsPrefix:t,className:r,style:i,dialogClassName:l,contentClassName:u,children:d,dialogAs:v=HD,"data-bs-theme":h,"aria-labelledby":y,"aria-describedby":x,"aria-label":C,show:w=!1,animation:R=!0,backdrop:j=!0,keyboard:N=!0,onEscapeKeyDown:T,onShow:A,onHide:M,container:F,autoFocus:V=!0,enforceFocus:U=!0,restoreFocus:P=!0,restoreFocusOptions:z,onEntered:X,onExit:Y,onExiting:pe,onEnter:ie,onEntering:ge,onExited:ae,backdropClassName:Re,manager:be,...xe},Ae)=>{const[Le,ne]=k.useState({}),[Oe,G]=k.useState(!1),Z=k.useRef(!1),re=k.useRef(!1),Ce=k.useRef(null),[we,Te]=w0(),Ie=hs(Ae,Te),ue=yr(M),de=G0();t=xn(t,"modal");const Ve=k.useMemo(()=>({onHide:ue}),[ue]);function Ge(){return be||V4({isRTL:de})}function tt(St){if(!ah)return;const Pn=Ge().getScrollbarWidth()>0,un=St.scrollHeight>rh(St).documentElement.clientHeight;ne({paddingRight:Pn&&!un?bA():void 0,paddingLeft:!Pn&&un?bA():void 0})}const ot=yr(()=>{we&&tt(we.dialog)});VR(()=>{Mw(window,"resize",ot),Ce.current==null||Ce.current()});const je=()=>{Z.current=!0},Rt=St=>{Z.current&&we&&St.target===we.dialog&&(re.current=!0),Z.current=!1},dt=()=>{G(!0),Ce.current=IO(we.dialog,()=>{G(!1)})},en=St=>{St.target===St.currentTarget&&dt()},sn=St=>{if(j==="static"){en(St);return}if(re.current||St.target!==St.currentTarget){re.current=!1;return}M==null||M()},ln=St=>{N?T==null||T(St):(St.preventDefault(),j==="static"&&dt())},In=(St,Pn)=>{St&&tt(St),ie==null||ie(St,Pn)},Vt=St=>{Ce.current==null||Ce.current(),Y==null||Y(St)},Cn=(St,Pn)=>{ge==null||ge(St,Pn),wR(window,"resize",ot)},Qn=St=>{St&&(St.style.display=""),ae==null||ae(St),Mw(window,"resize",ot)},_r=k.useCallback(St=>m.jsx("div",{...St,className:Qt(`${t}-backdrop`,Re,!R&&"show")}),[R,Re,t]),Hn={...i,...Le};Hn.display="block";const Tr=St=>m.jsx("div",{role:"dialog",...St,style:Hn,className:Qt(r,t,Oe&&`${t}-static`,!R&&"show"),onClick:j?sn:void 0,onMouseUp:Rt,"data-bs-theme":h,"aria-label":C,"aria-labelledby":y,"aria-describedby":x,children:m.jsx(v,{...xe,onMouseDown:je,className:l,contentClassName:u,children:d})});return m.jsx($D.Provider,{value:Ve,children:m.jsx(M4,{show:w,ref:Ie,backdrop:j,container:F,keyboard:!0,autoFocus:V,enforceFocus:U,restoreFocus:P,restoreFocusOptions:z,onEscapeKeyDown:ln,onShow:A,onHide:M,onEnter:In,onEntering:Cn,onEntered:X,onExit:Vt,onExiting:pe,onExited:Qn,manager:Ge(),transition:R?J4:void 0,backdropTransition:R?Q4:void 0,renderBackdrop:_r,renderDialog:Tr})})});YD.displayName="Modal";const Ln=Object.assign(YD,{Body:B4,Header:X4,Title:q4,Footer:$4,Dialog:HD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),K4=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 eW({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((x,C)=>x.opportunityId<C.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(x=>[x.opportunityName,`${Jt.routes.renew_request_path(t)}?opportunity_id=${x.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((x,C)=>x.isEnabled<C.isEnabled?1:-1);const y=h.map(({id:x,action:C,isEnabled:w,button:R,enabled:j,disabled:N})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(C)&&C.length?m.jsxs(Ub,{className:"d-flex flex-column",children:[m.jsx(Ub.Toggle,{as:K4,children:R}),m.jsx(Ub.Menu,{children:C.map(([T,A,M])=>m.jsx(Ub.Item,{href:A,onClick:F=>{M!=="get"&&(F.preventDefault(),F.target.dataset.method=M,$&&$.rails&&$.rails.handleMethod($(F.target)))},children:T},A))})]}):m.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${w?"":"disabled"}`,href:w?C:"",children:m.jsx("span",{children:R})})}),m.jsx("div",{className:"col-sm-8 mb-2",children:w?j:N})]},x));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 tW({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-rO(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 nW({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,x=h==ta.pending,C=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:[C&&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,": ",Hd(v.date)]})," ","on"," "]}),"request ",m.jsx("strong",{children:hR(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:x,children:"Cancel"}),m.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>l(i),disabled:x,children:x?"Deleting...":"Delete"})]})})]})}function T0({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 ZD({action:t,request:r,toggleDeleteModal:i}){const l=t.allowedOperations||[],u=[];l.includes("Edit")&&u.push(m.jsx(T0,{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(T0,{color:"danger",icon:"trash",onClick:()=>i(t.actionId),title:"Edit action"},"delete"));const d=`${t.type}: ${Hd(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 Xd({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:[bc(Jt.resourceTypeIcons[t.icon])," ",u,!t.isCredit&&t.userGuideUrl&&r?m.jsx(T0,{icon:"book",href:t.userGuideUrl,target:"_blank",title:`${t.name} User Guide`}):null]})}function Jp({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 rW=t=>m.jsx("span",{className:t<0?"text-danger":"",children:t===0?"":t.toLocaleString()});function aW({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],x=v[h-1],C=(T,A)=>T?m.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(T.requestId),children:[A=="prev"?m.jsx("i",{className:"bi bi-chevron-left"}):null,hR(T),A=="next"?m.jsx("i",{className:"bi bi-chevron-right"}):null]}):m.jsx("span",{}),w=new Set,R=[];for(let T of i.actions)for(let A of T.resources)w.has(A.resourceId)||(w.add(A.resourceId),R.push(A));R.sort(g0);const j=[{key:"action",name:"Action Details",format:(T,A)=>m.jsx(ZD,{action:A,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:T=>m.jsx(Jp,{status:T})},...R.map(T=>({key:`resource${T.resourceId}`,name:T.name,icon:T.icon,class:"text-end",format:T.isBoolean?A=>A?vR(A):null:rW,formatHeader:(A,M)=>m.jsx(Xd,{resource:M,userGuide:!1})}))],N=i.actions.map(T=>{const A={...T};for(let{resourceId:M}of R)A[`resource${M}`]=0;for(let{resourceId:M,approved:F,requested:V}of T.resources)A[`resource${M}`]=F||V||0;return A});return m.jsxs("div",{className:"history",children:[m.jsx(su,{columns:j,rows:N}),m.jsxs("div",{className:"buttons d-flex justify-content-between",children:[C(y,"prev"),C(x,"next")]})]})}function iW({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(ZD,{action:v,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:d=>m.jsx(Jp,{status:d})}];if(i.actions&&i.actions.length)return m.jsx(su,{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 oW={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function sW(t,r){const i=`offset${t[0].toUpperCase()}${t.slice(1)}`,l=r[i],u=oW[t];return l+parseInt(nu(r,u[0]),10)+parseInt(nu(r,u[1]),10)}const lW={[mc]:"collapse",[S0]:"collapsing",[Ql]:"collapsing",[gc]:"collapse show"},uW=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:d,children:v,dimension:h="height",in:y=!1,timeout:x=300,mountOnEnter:C=!1,unmountOnExit:w=!1,appear:R=!1,getDimensionValue:j=sW,...N},T)=>{const A=typeof h=="function"?h():h,M=k.useMemo(()=>cm(z=>{z.style[A]="0"},t),[A,t]),F=k.useMemo(()=>cm(z=>{const X=`scroll${A[0].toUpperCase()}${A.slice(1)}`;z.style[A]=`${z[X]}px`},r),[A,r]),V=k.useMemo(()=>cm(z=>{z.style[A]=null},i),[A,i]),U=k.useMemo(()=>cm(z=>{z.style[A]=`${j(A,z)}px`,jO(z)},l),[l,j,A]),P=k.useMemo(()=>cm(z=>{z.style[A]=null},u),[A,u]);return m.jsx(OO,{ref:T,addEndListener:AO,...N,"aria-expanded":N.role?y:null,onEnter:M,onEntering:F,onEntered:V,onExit:U,onExiting:P,childRef:v.ref,in:y,timeout:x,mountOnEnter:C,unmountOnExit:w,appear:R,children:(z,X)=>pr.cloneElement(v,{...X,className:Qt(d,v.props.className,lW[z],A==="width"&&"collapse-horizontal")})})}),cW=uW;function qD(t,r){return Array.isArray(t)?t.includes(r):t===r}const JD=k.createContext({});JD.displayName="AccordionContext";const q0=JD,QD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,children:l,eventKey:u,...d},v)=>{const{activeEventKey:h}=k.useContext(q0);return r=xn(r,"accordion-collapse"),m.jsx(cW,{ref:v,in:qD(h,u),...d,className:Qt(i,r),children:m.jsx(t,{children:k.Children.only(l)})})});QD.displayName="AccordionCollapse";const KD=QD,ek=k.createContext({eventKey:""});ek.displayName="AccordionItemContext";const $R=ek,tk=k.forwardRef(({as:t="div",bsPrefix:r,className:i,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,...x},C)=>{r=xn(r,"accordion-body");const{eventKey:w}=k.useContext($R);return m.jsx(KD,{eventKey:w,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,children:m.jsx(t,{ref:C,...x,className:Qt(i,r)})})});tk.displayName="AccordionBody";const dW=tk;function fW(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 nk=k.forwardRef(({as:t="button",bsPrefix:r,className:i,onClick:l,...u},d)=>{r=xn(r,"accordion-button");const{eventKey:v}=k.useContext($R),h=fW(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,!qD(y,v)&&"collapsed")})});nk.displayName="AccordionButton";const rk=nk,ak=k.forwardRef(({as:t="h2",bsPrefix:r,className:i,children:l,onClick:u,...d},v)=>(r=xn(r,"accordion-header"),m.jsx(t,{ref:v,...d,className:Qt(i,r),children:m.jsx(rk,{onClick:u,children:l})})));ak.displayName="AccordionHeader";const pW=ak,ik=k.forwardRef(({as:t="div",bsPrefix:r,className:i,eventKey:l,...u},d)=>{r=xn(r,"accordion-item");const v=k.useMemo(()=>({eventKey:l}),[l]);return m.jsx($R.Provider,{value:v,children:m.jsx(t,{ref:d,...u,className:Qt(i,r)})})});ik.displayName="AccordionItem";const hW=ik,ok=k.forwardRef((t,r)=>{const{as:i="div",activeKey:l,bsPrefix:u,className:d,onSelect:v,flush:h,alwaysOpen:y,...x}=W0(t,{activeKey:"onSelect"}),C=xn(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,...x,className:Qt(d,C,h&&`${C}-flush`)})})});ok.displayName="Accordion";const us=Object.assign(ok,{Button:rk,Collapse:KD,Item:hW,Header:pW,Body:dW}),$w=2**31-1;function sk(t,r,i){const l=i-Date.now();t.current=l<=$w?setTimeout(r,l):setTimeout(()=>sk(t,r,i),$w)}function vW(){const t=IR(),r=k.useRef();return VR(()=>clearTimeout(r.current)),k.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,d=0){t()&&(i(),d<=$w?r.current=setTimeout(u,d):sk(r,u,Date.now()+d))}return{set:l,clear:i,handleRef:r}},[])}const mW=()=>{};function gW(t,r,{disabled:i,clickTrigger:l}={}){const u=r||mW;mD(t,u,{disabled:i,clickTrigger:l});const d=yr(v=>{VD(v)&&u(v)});k.useEffect(()=>{if(i||t==null)return;const v=rh(i0(t));let h=(v.defaultView||window).event;const y=eu(v,"keyup",x=>{if(x===h){h=void 0;return}d(x)});return()=>{y()}},[t,i,d])}const lk=k.forwardRef((t,r)=>{const{flip:i,offset:l,placement:u,containerPadding:d,popperConfig:v={},transition:h,runTransition:y}=t,[x,C]=w0(),[w,R]=w0(),j=hs(C,r),N=Vw(t.container),T=Vw(t.target),[A,M]=k.useState(!t.show),F=hD(T,x,gD({placement:u,enableEvents:!!t.show,containerPadding:d||5,flip:i,offset:l,arrowElement:w,popperConfig:v}));t.show&&A&&M(!1);const V=(...ge)=>{M(!0),t.onExited&&t.onExited(...ge)},U=t.show||!A;if(gW(x,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!U)return null;const{onExit:P,onExiting:z,onEnter:X,onEntering:Y,onEntered:pe}=t;let ie=t.children(Object.assign({},F.attributes.popper,{style:F.styles.popper,ref:j}),{popper:F,placement:u,show:!!t.show,arrowProps:Object.assign({},F.attributes.arrow,{style:F.styles.arrow,ref:R})});return ie=Bw(h,y,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ie,onExit:P,onExiting:z,onExited:V,onEnter:X,onEntering:Y,onEntered:pe}),N?$d.createPortal(ie,N):null});lk.displayName="Overlay";const yW=lk,uk=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"popover-header"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));uk.displayName="PopoverHeader";const bW=uk,ck=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"popover-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));ck.displayName="PopoverBody";const dk=ck;function fk(t,r){let i=t;return t==="left"?i=r?"end":"start":t==="right"&&(i=r?"start":"end"),i}function pk(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const xW=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,body:d,arrowProps:v,hasDoneInitialMeasure:h,popper:y,show:x,...C},w)=>{const R=xn(t,"popover"),j=G0(),[N]=(r==null?void 0:r.split("-"))||[],T=fk(N,j);let A=l;return x&&!h&&(A={...l,...pk(y==null?void 0:y.strategy)}),m.jsxs("div",{ref:w,role:"tooltip",style:A,"x-placement":N,className:Qt(i,R,N&&`bs-popover-${T}`),...C,children:[m.jsx("div",{className:"popover-arrow",...v}),d?m.jsx(dk,{children:u}):u]})}),CW=Object.assign(xW,{Header:bW,Body:dk,POPPER_OFFSET:[0,8]}),hk=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,arrowProps:d,hasDoneInitialMeasure:v,popper:h,show:y,...x},C)=>{t=xn(t,"tooltip");const w=G0(),[R]=(r==null?void 0:r.split("-"))||[],j=fk(R,w);let N=l;return y&&!v&&(N={...l,...pk(h==null?void 0:h.strategy)}),m.jsxs("div",{ref:C,style:N,role:"tooltip","x-placement":R,className:Qt(i,t,`bs-tooltip-${j}`),...x,children:[m.jsx("div",{className:"tooltip-arrow",...d}),m.jsx("div",{className:`${t}-inner`,children:u})]})});hk.displayName="Tooltip";const J0=Object.assign(hk,{TOOLTIP_OFFSET:[0,6]});function SW(t){const r=k.useRef(null),i=xn(void 0,"popover"),l=xn(void 0,"tooltip"),u=k.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(r.current){if(zw(r.current,i))return CW.POPPER_OFFSET;if(zw(r.current,l))return J0.TOOLTIP_OFFSET}return[0,0]}}}),[t,i,l]);return[r,[u]]}function EW(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 vk=k.forwardRef(({children:t,transition:r=Wp,popperConfig:i={},rootClose:l=!1,placement:u="top",show:d=!1,...v},h)=>{const y=k.useRef({}),[x,C]=k.useState(null),[w,R]=SW(v.offset),j=hs(h,w),N=r===!0?Wp:r||void 0,T=yr(A=>{C(A),i==null||i.onFirstUpdate==null||i.onFirstUpdate(A)});return R0(()=>{x&&v.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[x,v.target]),k.useEffect(()=>{d||C(null)},[d]),m.jsx(yW,{...v,ref:j,popperConfig:{...i,modifiers:R.concat(i.modifiers||[]),onFirstUpdate:T},transition:N,rootClose:l,placement:u,show:d,children:(A,{arrowProps:M,popper:F,show:V})=>{var U,P;EW(A,M);const z=F==null?void 0:F.placement,X=Object.assign(y.current,{state:F==null?void 0:F.state,scheduleUpdate:F==null?void 0:F.update,placement:z,outOfBoundaries:(F==null||(U=F.state)==null||(P=U.modifiersData.hide)==null?void 0:P.isReferenceHidden)||!1,strategy:i.strategy}),Y=!!x;return typeof t=="function"?t({...A,placement:z,show:V,...!r&&V&&{className:"show"},popper:X,arrowProps:M,hasDoneInitialMeasure:Y}):k.cloneElement(t,{...A,placement:z,arrowProps:M,popper:X,hasDoneInitialMeasure:Y,className:Qt(t.props.className,!r&&V&&"show"),style:{...t.props.style,...A.style}})}})});vk.displayName="Overlay";const mk=vk;var wW={};function RW(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function SA(t,r,i){const[l]=r,u=l.currentTarget,d=l.relatedTarget||l.nativeEvent[i];(!d||d!==u)&&!Nm(u,d)&&t(...r)}Be.oneOf(["click","hover","focus"]);const _W=({trigger:t=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:d=!1,onToggle:v,delay:h,placement:y,flip:x=y&&y.indexOf("auto")!==-1,...C})=>{const w=k.useRef(null),R=hs(w,i.ref),j=vW(),N=k.useRef(""),[T,A]=zO(u,d,v),M=RW(h),{onFocus:F,onBlur:V,onClick:U}=typeof i!="function"?k.Children.only(i).props:{},P=xe=>{R(E0(xe))},z=k.useCallback(()=>{if(j.clear(),N.current="show",!M.show){A(!0);return}j.set(()=>{N.current==="show"&&A(!0)},M.show)},[M.show,A,j]),X=k.useCallback(()=>{if(j.clear(),N.current="hide",!M.hide){A(!1);return}j.set(()=>{N.current==="hide"&&A(!1)},M.hide)},[M.hide,A,j]),Y=k.useCallback((...xe)=>{z(),F==null||F(...xe)},[z,F]),pe=k.useCallback((...xe)=>{X(),V==null||V(...xe)},[X,V]),ie=k.useCallback((...xe)=>{A(!T),U==null||U(...xe)},[U,A,T]),ge=k.useCallback((...xe)=>{SA(z,xe,"fromElement")},[z]),ae=k.useCallback((...xe)=>{SA(X,xe,"toElement")},[X]),Re=t==null?[]:[].concat(t),be={ref:P};return Re.indexOf("click")!==-1&&(be.onClick=ie),Re.indexOf("focus")!==-1&&(be.onFocus=Y,be.onBlur=pe),Re.indexOf("hover")!==-1&&(wW.NODE_ENV!=="production"&&PR(Re.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.'),be.onMouseOver=ge,be.onMouseOut=ae),m.jsxs(m.Fragment,{children:[typeof i=="function"?i(be):k.cloneElement(i,be),m.jsx(mk,{...C,show:T,onHide:X,flip:x,placement:y,popperConfig:l,target:w.current,children:r})]})},UR=_W;function TW({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,x="Exchange"in i.allowedActions,C=i.exchangeActionId!==null,w=[{key:"name",name:"Resource",format:(R,j)=>m.jsx(Xd,{resource:j})},{key:"isActive",name:"Status",format:R=>m.jsx(Jp,{status:R?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(R,j)=>{if(j.isBoolean)return vR(j.allocated);const N=j.allocated-R,T=Math.max(N,0)*100/j.allocated;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:`usage bg-${j.color}`,style:{width:`${Math.min(T,100)}%`}}),ga(N,{abbreviate:!0})," of"," ",ga(j.allocated,{abbreviate:!0})," ",j.unit," ","remaining (",Math.round(T),"%)"]})}},{key:"endDate",name:"End Date",format:R=>Hd(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 N=l.currentUser.resourceUsernames[j.resourceId];if(N)return N;if(l.currentUser.resourceAccountPendingIds.includes(j.resourceId))return m.jsx(Jp,{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 T=m.jsxs(J0,{children:["Please contact ",mR(l)," to request access to this resource."]});return m.jsx(UR,{overlay:T,children:m.jsx("a",{href:"#",onClick:A=>{A.preventDefault()},children:"Request access"})})}}),m.jsxs("div",{className:"overview",children:[x&&!C&&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:[bc(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:bc("chevron-right")})]})]}):null,h.length?m.jsx(su,{columns:w,rows:h}):null]})}const NW=[{key:"role",name:"Role",format:t=>m.jsxs(m.Fragment,{children:[bc(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(" ")}}],IW=({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(su,{rows:l,columns:NW}):null};function AW({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(TW,{requestId:t,grantNumber:r}),l.isManager?m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(IW,{requestId:t,grantNumber:r})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(iW,{requestId:t})})]}):null]})}function Qd(t){"@babel/helpers - typeof";return Qd=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},Qd(t)}function jW(t,r){if(Qd(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(Qd(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function gk(t){var r=jW(t,"string");return Qd(r)=="symbol"?r:String(r)}function zp(t,r,i){return r=gk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function EA(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?EA(Object(i),!0).forEach(function(l){zp(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):EA(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function OW(t){if(Array.isArray(t))return t}function DW(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,x=!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(C){x=!0,u=C}finally{try{if(!y&&i.return!=null&&(v=i.return(),Object(v)!==v))return}finally{if(x)throw u}}return h}}function Uw(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 yk(t,r){if(t){if(typeof t=="string")return Uw(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 Uw(t,r)}}function kW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
296
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function na(t,r){return OW(t)||DW(t,r)||yk(t,r)||kW()}function al(t,r){if(t==null)return{};var i=ER(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 MW=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function bk(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,x=t.onChange,C=t.onInputChange,w=t.onMenuClose,R=t.onMenuOpen,j=t.value,
|
|
295
|
+
*/(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})()})(_O);var qG=_O.exports;const Qt=Kp(qG);function ER(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 C0(t,r){return C0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},C0(t,r)}function JG(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,C0(t,r)}const ZI={disabled:!1};var TO={},QG=TO.NODE_ENV!=="production"?Be.oneOfType([Be.number,Be.shape({enter:Be.number,exit:Be.number,appear:Be.number}).isRequired]):null;TO.NODE_ENV!=="production"&&Be.oneOfType([Be.string,Be.shape({enter:Be.string,exit:Be.string,active:Be.string}),Be.shape({enter:Be.string,enterDone:Be.string,enterActive:Be.string,exit:Be.string,exitDone:Be.string,exitActive:Be.string})]);const NO=pr.createContext(null);var KG=function(r){return r.scrollTop},e3={},ym="unmounted",mc="exited",Ql="entering",gc="entered",S0="exiting",lu=function(t){JG(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=mc,d.appearStatus=Ql):y=gc:l.unmountOnExit||l.mountOnEnter?y=ym:y=mc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(u,d){var v=u.in;return v&&d.status===ym?{status:mc}: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!==Ql&&v!==gc&&(d=Ql):(v===Ql||v===gc)&&(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===Ql){if(this.props.unmountOnExit||this.props.mountOnEnter){var v=this.props.nodeRef?this.props.nodeRef.current:$d.findDOMNode(this);v&&KG(v)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mc&&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]:[$d.findDOMNode(this),h],x=y[0],C=y[1],w=this.getTimeouts(),R=h?w.appear:w.enter;if(!u&&!v||ZI.disabled){this.safeSetState({status:gc},function(){d.props.onEntered(x)});return}this.props.onEnter(x,C),this.safeSetState({status:Ql},function(){d.props.onEntering(x,C),d.onTransitionEnd(R,function(){d.safeSetState({status:gc},function(){d.props.onEntered(x,C)})})})},i.performExit=function(){var u=this,d=this.props.exit,v=this.getTimeouts(),h=this.props.nodeRef?void 0:$d.findDOMNode(this);if(!d||ZI.disabled){this.safeSetState({status:mc},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:mc},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:$d.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],x=y[0],C=y[1];this.props.addEndListener(x,C)}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=ER(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(NO.Provider,{value:null},typeof v=="function"?v(u,h):pr.cloneElement(pr.Children.only(v),h))},r}(pr.Component);lu.contextType=NO;lu.propTypes=e3.NODE_ENV!=="production"?{nodeRef:Be.shape({current:typeof Element>"u"?Be.any:function(t,r,i,l,u,d){var v=t[r];return Be.instanceOf(v&&"ownerDocument"in v?v.ownerDocument.defaultView.Element:Element)(t,r,i,l,u,d)}}),children:Be.oneOfType([Be.func.isRequired,Be.element.isRequired]).isRequired,in:Be.bool,mountOnEnter:Be.bool,unmountOnExit:Be.bool,appear:Be.bool,enter:Be.bool,exit:Be.bool,timeout:function(r){var i=QG;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:Be.func,onEnter:Be.func,onEntering:Be.func,onEntered:Be.func,onExit:Be.func,onExiting:Be.func,onExited:Be.func}:{};function Fp(){}lu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fp,onEntering:Fp,onEntered:Fp,onExit:Fp,onExiting:Fp,onExited:Fp};lu.UNMOUNTED=ym;lu.EXITED=mc;lu.ENTERING=Ql;lu.ENTERED=gc;lu.EXITING=S0;const t3=lu;function rh(t){return t&&t.ownerDocument||document}function n3(t){var r=rh(t);return r&&r.defaultView||window}function r3(t,r){return n3(t).getComputedStyle(t,r)}var a3=/([A-Z])/g;function i3(t){return t.replace(a3,"-$1").toLowerCase()}var o3=/^ms-/;function Bb(t){return i3(t).replace(o3,"-ms-")}var s3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function l3(t){return!!(t&&s3.test(t))}function nu(t,r){var i="",l="";if(typeof r=="string")return t.style.getPropertyValue(Bb(r))||r3(t).getPropertyValue(Bb(r));Object.keys(r).forEach(function(u){var d=r[u];!d&&d!==0?t.style.removeProperty(Bb(u)):l3(u)?l+=u+"("+d+") ":i+=Bb(u)+": "+d+";"}),l&&(i+="transform: "+l+";"),t.style.cssText+=";"+i}const ah=!!(typeof window<"u"&&window.document&&window.document.createElement);var Dw=!1,kw=!1;try{var qE={get passive(){return Dw=!0},get once(){return kw=Dw=!0}};ah&&(window.addEventListener("test",qE,qE),window.removeEventListener("test",qE,!0))}catch{}function wR(t,r,i,l){if(l&&typeof l!="boolean"&&!kw){var u=l.once,d=l.capture,v=i;!kw&&u&&(v=i.__once||function h(y){this.removeEventListener(r,h,d),i.call(this,y)},i.__once=v),t.addEventListener(r,v,Dw?l:d)}t.addEventListener(r,i,l)}function Mw(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 eu(t,r,i,l){return wR(t,r,i,l),function(){Mw(t,r,i,l)}}function u3(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 c3(t){var r=nu(t,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function d3(t,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||u3(t,"transitionend",!0)},r+i),d=eu(t,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),d()}}function IO(t,r,i,l){i==null&&(i=c3(t)||0);var u=d3(t,i,l),d=eu(t,"transitionend",r);return function(){u(),d()}}function qI(t,r){const i=nu(t,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function AO(t,r){const i=qI(t,"transitionDuration"),l=qI(t,"transitionDelay"),u=IO(t,d=>{d.target===t&&(u(),r(d))},i+l)}function jO(t){t.offsetHeight}function E0(t){return t&&"setState"in t?$d.findDOMNode(t):t??null}const f3=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:d,addEndListener:v,children:h,childRef:y,...x},C)=>{const w=k.useRef(null),R=hs(w,y),j=z=>{R(E0(z))},A=z=>X=>{z&&w.current&&z(w.current,X)},T=k.useCallback(A(t),[t]),I=k.useCallback(A(r),[r]),M=k.useCallback(A(i),[i]),F=k.useCallback(A(l),[l]),V=k.useCallback(A(u),[u]),U=k.useCallback(A(d),[d]),P=k.useCallback(A(v),[v]);return m.jsx(t3,{ref:C,...x,onEnter:T,onEntered:M,onEntering:I,onExit:F,onExited:U,onExiting:V,addEndListener:P,nodeRef:w,children:typeof h=="function"?(z,X)=>h(z,{...X,ref:j}):pr.cloneElement(h,{ref:j})})}),OO=f3,p3={[Ql]:"show",[gc]:"show"},DO=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,x)=>{jO(y),l==null||l(y,x)},[l]);return m.jsx(OO,{ref:d,addEndListener:AO,...v,onEnter:h,childRef:r.ref,children:(y,x)=>k.cloneElement(r,{...x,className:Qt("fade",t,r.props.className,p3[y],i[y])})})});DO.displayName="Fade";const Wp=DO;function RR(t){return typeof t=="boolean"?t?Wp:SR:t}const kO=({transition:t,...r})=>m.jsx(RO,{...r,transition:RR(t)});kO.displayName="TabContainer";const h3=kO,v3=["xxl","xl","lg","md","sm","xs"],m3="xs",MO=k.createContext({prefixes:{},breakpoints:v3,minBreakpoint:m3});function xn(t,r){const{prefixes:i}=k.useContext(MO);return t||i[r]||r}function G0(){const{dir:t}=k.useContext(MO);return t==="rtl"}const LO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"tab-content"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));LO.displayName="TabContent";const PO=LO,FO=k.forwardRef(({bsPrefix:t,transition:r,...i},l)=>{const[{className:u,as:d="div",...v},{isActive:h,onEnter:y,onEntering:x,onEntered:C,onExit:w,onExiting:R,onExited:j,mountOnEnter:A,unmountOnExit:T,transition:I=Wp}]=SO({...i,transition:RR(r)}),M=xn(t,"tab-pane");return m.jsx(nh.Provider,{value:null,children:m.jsx(iu.Provider,{value:null,children:m.jsx(I,{in:h,onEnter:y,onEntering:x,onEntered:C,onExit:w,onExiting:R,onExited:j,mountOnEnter:A,unmountOnExit:T,children:m.jsx(d,{...v,ref:l,className:Qt(u,M,h&&"active")})})})})});FO.displayName="TabPane";const VO=FO,g3={eventKey:Be.oneOfType([Be.string,Be.number]),title:Be.node.isRequired,disabled:Be.bool,tabClassName:Be.string,tabAttrs:Be.object},BO=()=>{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")};BO.propTypes=g3;const zb=Object.assign(BO,{Container:h3,Content:PO,Pane:VO});function Tt(){return Tt=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},Tt.apply(this,arguments)}var y3={},b3=function(t,r,i,l,u,d,v,h){if(y3.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 x=[i,l,u,d,v,h],C=0;y=new Error(r.replace(/%s/g,function(){return x[C++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},x3=b3;const JI=Kp(x3);function QI(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function C3(t){var r=S3(t,"string");return typeof r=="symbol"?r:String(r)}function S3(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 zO(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(x){for(var C=arguments.length,w=new Array(C>1?C-1:0),R=1;R<C;R++)w[R-1]=arguments[R];i&&i.apply(void 0,[x].concat(w)),v(x)},[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=ER(d,[QI(l),l].map(C3)),x=r[l],C=zO(h,v,t[x]),w=C[0],R=C[1];return Tt({},y,(u={},u[l]=w,u[x]=R,u))},t)}var KI={exports:{}},Lw={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(l){function u(v,h,y,x,C,w){var R=x||"<<anonymous>>",j=w||y;if(h[y]==null)return v?new Error("Required "+C+" `"+j+"` was not specified "+("in `"+R+"`.")):null;for(var A=arguments.length,T=Array(A>6?A-6:0),I=6;I<A;I++)T[I-6]=arguments[I];return l.apply(void 0,[h,y,R,C,j].concat(T))}var d=u.bind(null,!1);return d.isRequired=u.bind(null,!0),d}t.exports=r.default})(Lw,Lw.exports);var E3=Lw.exports;(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=E3,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 x(){for(var C=arguments.length,w=Array(C),R=0;R<C;R++)w[R]=arguments[R];var j=null;return h.forEach(function(A){if(j==null){var T=A.apply(void 0,w);T!=null&&(j=T)}}),j}return(0,l.default)(x)}t.exports=r.default})(KI,KI.exports);var w3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kl(t,r){return w3(t.querySelectorAll(r))}function $O(){const[,t]=k.useReducer(r=>!r,!1);return t}const UO=k.createContext(null);UO.displayName="NavContext";const _R=UO,R3="data-rr-ui-",_3="rrUi";function ih(t){return`${R3}${t}`}function T3(t){return`${_3}${t}`}const N3=["as","disabled"];function I3(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 A3(t){return!t||t.trim()==="#"}function TR({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 x={tagName:t};if(t==="button")return[{type:y||"button",disabled:r},x];const C=R=>{if((r||t==="a"&&A3(i))&&R.preventDefault(),r){R.stopPropagation();return}v==null||v(R)},w=R=>{R.key===" "&&(R.preventDefault(),C(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:C,onKeyDown:w},x]}const NR=k.forwardRef((t,r)=>{let{as:i,disabled:l}=t,u=I3(t,N3);const[d,{tagName:v}]=TR(Object.assign({tagName:i,disabled:l},u));return m.jsx(v,Object.assign({},u,d,{ref:r}))});NR.displayName="Button";const j3=["as","active","eventKey"];function O3(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 HO({key:t,onClick:r,active:i,id:l,role:u,disabled:d}){const v=k.useContext(iu),h=k.useContext(_R),y=k.useContext(nh);let x=i;const C={role:u};if(h){!u&&h.role==="tablist"&&(C.role="tab");const w=h.getControllerId(t??null),R=h.getControlledId(t??null);C[ih("event-key")]=t,C.id=w||l,x=i==null&&t!=null?h.activeKey===t:i,(x||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(C["aria-controls"]=R)}return C.role==="tab"&&(C["aria-selected"]=x,x||(C.tabIndex=-1),d&&(C.tabIndex=-1,C["aria-disabled"]=!0)),C.onClick=yr(w=>{d||(r==null||r(w),t!=null&&v&&!w.isPropagationStopped()&&v(t,w))}),[C,{isActive:x}]}const GO=k.forwardRef((t,r)=>{let{as:i=NR,active:l,eventKey:u}=t,d=O3(t,j3);const[v,h]=HO(Object.assign({key:qd(u,d.href),active:l},d));return v[ih("active")]=h.isActive,m.jsx(i,Object.assign({},d,v,{ref:r}))});GO.displayName="NavItem";const D3=GO,k3=["as","onSelect","activeKey","role","onKeyDown"];function M3(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 eA=()=>{},tA=ih("event-key"),WO=k.forwardRef((t,r)=>{let{as:i="div",onSelect:l,activeKey:u,role:d,onKeyDown:v}=t,h=M3(t,k3);const y=$O(),x=k.useRef(!1),C=k.useContext(iu),w=k.useContext(nh);let R,j;w&&(d=d||"tablist",u=w.activeKey,R=w.getControlledId,j=w.getControllerId);const A=k.useRef(null),T=V=>{const U=A.current;if(!U)return null;const P=Kl(U,`[${tA}]:not([aria-disabled=true])`),z=U.querySelector("[aria-selected=true]");if(!z||z!==document.activeElement)return null;const X=P.indexOf(z);if(X===-1)return null;let Y=X+V;return Y>=P.length&&(Y=0),Y<0&&(Y=P.length-1),P[Y]},I=(V,U)=>{V!=null&&(l==null||l(V,U),C==null||C(V,U))},M=V=>{if(v==null||v(V),!w)return;let U;switch(V.key){case"ArrowLeft":case"ArrowUp":U=T(-1);break;case"ArrowRight":case"ArrowDown":U=T(1);break;default:return}U&&(V.preventDefault(),I(U.dataset[T3("EventKey")]||null,V),x.current=!0,y())};k.useEffect(()=>{if(A.current&&x.current){const V=A.current.querySelector(`[${tA}][aria-selected=true]`);V==null||V.focus()}x.current=!1});const F=hs(r,A);return m.jsx(iu.Provider,{value:I,children:m.jsx(_R.Provider,{value:{role:d,activeKey:qd(u),getControlledId:R||eA,getControllerId:j||eA},children:m.jsx(i,Object.assign({},h,{onKeyDown:M,ref:F,role:d}))})})});WO.displayName="Nav";const L3=Object.assign(WO,{Item:D3}),XO=k.createContext(null);XO.displayName="NavbarContext";const YO=XO,ZO=k.createContext(null);ZO.displayName="CardHeaderContext";const P3=ZO,qO=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"nav-item"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));qO.displayName="NavItem";const JO=qO;function w0(){return k.useState(null)}function F3(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 IR(){const t=k.useRef(!0),r=k.useRef(()=>t.current);return k.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),r.current}function QO(t){const r=k.useRef(null);return k.useEffect(()=>{r.current=t}),r.current}const V3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",B3=typeof document<"u",R0=B3||V3?k.useLayoutEffect:k.useEffect,z3=["onKeyDown"];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 U3(t){return!t||t.trim()==="#"}const KO=k.forwardRef((t,r)=>{let{onKeyDown:i}=t,l=$3(t,z3);const[u]=TR(Object.assign({tagName:"a"},l)),d=yr(v=>{u.onKeyDown(v),i==null||i(v)});return U3(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}))});KO.displayName="Anchor";const eD=KO,tD=k.forwardRef(({bsPrefix:t,className:r,as:i=eD,active:l,eventKey:u,disabled:d=!1,...v},h)=>{t=xn(t,"nav-link");const[y,x]=HO({key:qd(u,v.href),active:l,disabled:d,...v});return m.jsx(i,{...v,...y,ref:h,disabled:d,className:Qt(r,t,d&&"disabled",x.isActive&&"active")})});tD.displayName="NavLink";const nD=tD,rD=k.forwardRef((t,r)=>{const{as:i="div",bsPrefix:l,variant:u,fill:d=!1,justify:v=!1,navbar:h,navbarScroll:y,className:x,activeKey:C,...w}=W0(t,{activeKey:"onSelect"}),R=xn(l,"nav");let j,A,T=!1;const I=k.useContext(YO),M=k.useContext(P3);return I?(j=I.bsPrefix,T=h??!0):M&&({cardHeaderBsPrefix:A}=M),m.jsx(L3,{as:i,ref:r,activeKey:C,className:Qt(x,{[R]:!T,[`${j}-nav`]:T,[`${j}-nav-scroll`]:T&&y,[`${A}-${u}`]:!!A,[`${R}-${u}`]:!!u,[`${R}-fill`]:d,[`${R}-justified`]:v}),...w})});rD.displayName="Nav";const H3=Object.assign(rD,{Item:JO,Link:nD});function nA(t,r){let i=0;return k.Children.map(t,l=>k.isValidElement(l)?r(l,i++):l)}function G3(t,r){let i=0;k.Children.forEach(t,l=>{k.isValidElement(l)&&r(l,i++)})}function W3(t){let r;return G3(t,i=>{r==null&&(r=i.props.eventKey)}),r}function X3(t){const{title:r,eventKey:i,disabled:l,tabClassName:u,tabAttrs:d,id:v}=t.props;return r==null?null:m.jsx(JO,{as:"li",role:"presentation",children:m.jsx(nD,{as:"button",type:"button",eventKey:i,disabled:l,id:v,className:u,...d,children:r})})}const aD=t=>{const{id:r,onSelect:i,transition:l,mountOnEnter:u=!1,unmountOnExit:d=!1,variant:v="tabs",children:h,activeKey:y=W3(h),...x}=W0(t,{activeKey:"onSelect"});return m.jsxs(RO,{id:r,activeKey:y,onSelect:i,transition:RR(l),mountOnEnter:u,unmountOnExit:d,children:[m.jsx(H3,{...x,role:"tablist",as:"ul",variant:v,children:nA(h,X3)}),m.jsx(PO,{children:nA(h,C=>{const w={...C.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,m.jsx(VO,{...w})})})]})};aD.displayName="Tabs";const Y3=aD,Z3=k.createContext(null),X0=Z3;var rA=Object.prototype.hasOwnProperty;function aA(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=aA(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=aA(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(rA.call(t,i)&&++l&&!rA.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 q3(t){const r=IR();return[t[0],k.useCallback(i=>{if(r())return t[1](i)},[r,t[1]])]}var Ai="top",_o="bottom",To="right",ji="left",AR="auto",Fm=[Ai,_o,To,ji],Xp="start",_m="end",J3="clippingParents",iD="viewport",um="popper",Q3="reference",iA=Fm.reduce(function(t,r){return t.concat([r+"-"+Xp,r+"-"+_m])},[]),oD=[].concat(Fm,[AR]).reduce(function(t,r){return t.concat([r,r+"-"+Xp,r+"-"+_m])},[]),K3="beforeRead",e9="read",t9="afterRead",n9="beforeMain",r9="main",a9="afterMain",i9="beforeWrite",o9="write",s9="afterWrite",l9=[K3,e9,t9,n9,r9,a9,i9,o9,s9];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 Jd(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 jR(t){if(typeof ShadowRoot>"u")return!1;var r=Qi(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}var Wd=Math.max,_0=Math.min,Yp=Math.round;function Pw(){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 sD(){return!/^((?!chrome|android).)*safari/i.test(Pw())}function Zp(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&&Yp(l.width)/t.offsetWidth||1,d=t.offsetHeight>0&&Yp(l.height)/t.offsetHeight||1);var v=Jd(t)?Qi(t):window,h=v.visualViewport,y=!sD()&&i,x=(l.left+(y&&h?h.offsetLeft:0))/u,C=(l.top+(y&&h?h.offsetTop:0))/d,w=l.width/u,R=l.height/d;return{width:w,height:R,top:C,right:x+w,bottom:C+R,left:x,x,y:C}}function OR(t){var r=Zp(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 lD(t,r){var i=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(i&&jR(i)){var l=r;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function xc(t){return t?(t.nodeName||"").toLowerCase():null}function ou(t){return Qi(t).getComputedStyle(t)}function u9(t){return["table","td","th"].indexOf(xc(t))>=0}function Cc(t){return((Jd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Y0(t){return xc(t)==="html"?t:t.assignedSlot||t.parentNode||(jR(t)?t.host:null)||Cc(t)}function oA(t){return!nl(t)||ou(t).position==="fixed"?null:t.offsetParent}function c9(t){var r=/firefox/i.test(Pw()),i=/Trident/i.test(Pw());if(i&&nl(t)){var l=ou(t);if(l.position==="fixed")return null}var u=Y0(t);for(jR(u)&&(u=u.host);nl(u)&&["html","body"].indexOf(xc(u))<0;){var d=ou(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=oA(t);i&&u9(i)&&ou(i).position==="static";)i=oA(i);return i&&(xc(i)==="html"||xc(i)==="body"&&ou(i).position==="static")?r:i||c9(t)||r}function DR(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xm(t,r,i){return Wd(t,_0(r,i))}function d9(t,r,i){var l=xm(t,r,i);return l>i?i:l}function uD(){return{top:0,right:0,bottom:0,left:0}}function cD(t){return Object.assign({},uD(),t)}function dD(t,r){return r.reduce(function(i,l){return i[l]=t,i},{})}var f9=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,cD(typeof r!="number"?r:dD(r,Fm))};function p9(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=DR(h),x=[ji,To].indexOf(h)>=0,C=x?"height":"width";if(!(!d||!v)){var w=f9(u.padding,i),R=OR(d),j=y==="y"?Ai:ji,A=y==="y"?_o:To,T=i.rects.reference[C]+i.rects.reference[y]-v[y]-i.rects.popper[C],I=v[y]-i.rects.reference[y],M=Vm(d),F=M?y==="y"?M.clientHeight||0:M.clientWidth||0:0,V=T/2-I/2,U=w[j],P=F-R[C]-w[A],z=F/2-R[C]/2+V,X=xm(U,z,P),Y=y;i.modifiersData[l]=(r={},r[Y]=X,r.centerOffset=X-z,r)}}function h9(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)||lD(r.elements.popper,u)&&(r.elements.arrow=u))}const v9={name:"arrow",enabled:!0,phase:"main",fn:p9,effect:h9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qp(t){return t.split("-")[1]}var m9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function g9(t,r){var i=t.x,l=t.y,u=r.devicePixelRatio||1;return{x:Yp(i*u)/u||0,y:Yp(l*u)/u||0}}function sA(t){var r,i=t.popper,l=t.popperRect,u=t.placement,d=t.variation,v=t.offsets,h=t.position,y=t.gpuAcceleration,x=t.adaptive,C=t.roundOffsets,w=t.isFixed,R=v.x,j=R===void 0?0:R,A=v.y,T=A===void 0?0:A,I=typeof C=="function"?C({x:j,y:T}):{x:j,y:T};j=I.x,T=I.y;var M=v.hasOwnProperty("x"),F=v.hasOwnProperty("y"),V=ji,U=Ai,P=window;if(x){var z=Vm(i),X="clientHeight",Y="clientWidth";if(z===Qi(i)&&(z=Cc(i),ou(z).position!=="static"&&h==="absolute"&&(X="scrollHeight",Y="scrollWidth")),z=z,u===Ai||(u===ji||u===To)&&d===_m){U=_o;var pe=w&&z===P&&P.visualViewport?P.visualViewport.height:z[X];T-=pe-l.height,T*=y?1:-1}if(u===ji||(u===Ai||u===_o)&&d===_m){V=To;var ie=w&&z===P&&P.visualViewport?P.visualViewport.width:z[Y];j-=ie-l.width,j*=y?1:-1}}var ge=Object.assign({position:h},x&&m9),ae=C===!0?g9({x:j,y:T},Qi(i)):{x:j,y:T};if(j=ae.x,T=ae.y,y){var Re;return Object.assign({},ge,(Re={},Re[U]=F?"0":"",Re[V]=M?"0":"",Re.transform=(P.devicePixelRatio||1)<=1?"translate("+j+"px, "+T+"px)":"translate3d("+j+"px, "+T+"px, 0)",Re))}return Object.assign({},ge,(r={},r[U]=F?T+"px":"",r[V]=M?j+"px":"",r.transform="",r))}function y9(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,x={placement:tl(r.placement),variation:qp(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,sA(Object.assign({},x,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:v,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,sA(Object.assign({},x,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const b9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:y9,data:{}};var $b={passive:!0};function x9(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),x=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&x.forEach(function(C){C.addEventListener("scroll",i.update,$b)}),h&&y.addEventListener("resize",i.update,$b),function(){d&&x.forEach(function(C){C.removeEventListener("scroll",i.update,$b)}),h&&y.removeEventListener("resize",i.update,$b)}}const C9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:x9,data:{}};var S9={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(r){return S9[r]})}var E9={start:"end",end:"start"};function lA(t){return t.replace(/start|end/g,function(r){return E9[r]})}function kR(t){var r=Qi(t),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function MR(t){return Zp(Cc(t)).left+kR(t).scrollLeft}function w9(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 x=sD();(x||!x&&r==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}return{width:d,height:v,x:h+MR(t),y}}function R9(t){var r,i=Cc(t),l=kR(t),u=(r=t.ownerDocument)==null?void 0:r.body,d=Wd(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),v=Wd(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),h=-l.scrollLeft+MR(t),y=-l.scrollTop;return ou(u||i).direction==="rtl"&&(h+=Wd(i.clientWidth,u?u.clientWidth:0)-d),{width:d,height:v,x:h,y}}function LR(t){var r=ou(t),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function fD(t){return["html","body","#document"].indexOf(xc(t))>=0?t.ownerDocument.body:nl(t)&&LR(t)?t:fD(Y0(t))}function Cm(t,r){var i;r===void 0&&(r=[]);var l=fD(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),d=Qi(l),v=u?[d].concat(d.visualViewport||[],LR(l)?l:[]):l,h=r.concat(v);return u?h:h.concat(Cm(Y0(v)))}function Fw(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _9(t,r){var i=Zp(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 uA(t,r,i){return r===iD?Fw(w9(t,i)):Jd(r)?_9(r,i):Fw(R9(Cc(t)))}function T9(t){var r=Cm(Y0(t)),i=["absolute","fixed"].indexOf(ou(t).position)>=0,l=i&&nl(t)?Vm(t):t;return Jd(l)?r.filter(function(u){return Jd(u)&&lD(u,l)&&xc(u)!=="body"}):[]}function N9(t,r,i,l){var u=r==="clippingParents"?T9(t):[].concat(r),d=[].concat(u,[i]),v=d[0],h=d.reduce(function(y,x){var C=uA(t,x,l);return y.top=Wd(C.top,y.top),y.right=_0(C.right,y.right),y.bottom=_0(C.bottom,y.bottom),y.left=Wd(C.left,y.left),y},uA(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 pD(t){var r=t.reference,i=t.element,l=t.placement,u=l?tl(l):null,d=l?qp(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 _o:y={x:v,y:r.y+r.height};break;case To: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 x=u?DR(u):null;if(x!=null){var C=x==="y"?"height":"width";switch(d){case Xp:y[x]=y[x]-(r[C]/2-i[C]/2);break;case _m:y[x]=y[x]+(r[C]/2-i[C]/2);break}}return y}function Tm(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?J3:h,x=i.rootBoundary,C=x===void 0?iD:x,w=i.elementContext,R=w===void 0?um:w,j=i.altBoundary,A=j===void 0?!1:j,T=i.padding,I=T===void 0?0:T,M=cD(typeof I!="number"?I:dD(I,Fm)),F=R===um?Q3:um,V=t.rects.popper,U=t.elements[A?F:R],P=N9(Jd(U)?U:U.contextElement||Cc(t.elements.popper),y,C,v),z=Zp(t.elements.reference),X=pD({reference:z,element:V,strategy:"absolute",placement:u}),Y=Fw(Object.assign({},V,X)),pe=R===um?Y:z,ie={top:P.top-pe.top+M.top,bottom:pe.bottom-P.bottom+M.bottom,left:P.left-pe.left+M.left,right:pe.right-P.right+M.right},ge=t.modifiersData.offset;if(R===um&&ge){var ae=ge[u];Object.keys(ie).forEach(function(Re){var be=[To,_o].indexOf(Re)>=0?1:-1,xe=[Ai,_o].indexOf(Re)>=0?"y":"x";ie[Re]+=ae[xe]*be})}return ie}function I9(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,x=y===void 0?oD:y,C=qp(l),w=C?h?iA:iA.filter(function(A){return qp(A)===C}):Fm,R=w.filter(function(A){return x.indexOf(A)>=0});R.length===0&&(R=w);var j=R.reduce(function(A,T){return A[T]=Tm(t,{placement:T,boundary:u,rootBoundary:d,padding:v})[tl(T)],A},{});return Object.keys(j).sort(function(A,T){return j[A]-j[T]})}function A9(t){if(tl(t)===AR)return[];var r=a0(t);return[lA(t),r,lA(r)]}function j9(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,x=i.padding,C=i.boundary,w=i.rootBoundary,R=i.altBoundary,j=i.flipVariations,A=j===void 0?!0:j,T=i.allowedAutoPlacements,I=r.options.placement,M=tl(I),F=M===I,V=y||(F||!A?[a0(I)]:A9(I)),U=[I].concat(V).reduce(function(we,Te){return we.concat(tl(Te)===AR?I9(r,{placement:Te,boundary:C,rootBoundary:w,padding:x,flipVariations:A,allowedAutoPlacements:T}):Te)},[]),P=r.rects.reference,z=r.rects.popper,X=new Map,Y=!0,pe=U[0],ie=0;ie<U.length;ie++){var ge=U[ie],ae=tl(ge),Re=qp(ge)===Xp,be=[Ai,_o].indexOf(ae)>=0,xe=be?"width":"height",Ae=Tm(r,{placement:ge,boundary:C,rootBoundary:w,altBoundary:R,padding:x}),Le=be?Re?To:ji:Re?_o:Ai;P[xe]>z[xe]&&(Le=a0(Le));var ne=a0(Le),Oe=[];if(d&&Oe.push(Ae[ae]<=0),h&&Oe.push(Ae[Le]<=0,Ae[ne]<=0),Oe.every(function(we){return we})){pe=ge,Y=!1;break}X.set(ge,Oe)}if(Y)for(var G=A?3:1,Z=function(Te){var Ie=U.find(function(ue){var de=X.get(ue);if(de)return de.slice(0,Te).every(function(Ve){return Ve})});if(Ie)return pe=Ie,"break"},re=G;re>0;re--){var Ce=Z(re);if(Ce==="break")break}r.placement!==pe&&(r.modifiersData[l]._skip=!0,r.placement=pe,r.reset=!0)}}const O9={name:"flip",enabled:!0,phase:"main",fn:j9,requiresIfExists:["offset"],data:{_skip:!1}};function cA(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 dA(t){return[Ai,To,_o,ji].some(function(r){return t[r]>=0})}function D9(t){var r=t.state,i=t.name,l=r.rects.reference,u=r.rects.popper,d=r.modifiersData.preventOverflow,v=Tm(r,{elementContext:"reference"}),h=Tm(r,{altBoundary:!0}),y=cA(v,l),x=cA(h,u,d),C=dA(y),w=dA(x);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:x,isReferenceHidden:C,hasPopperEscaped:w},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":w})}const k9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D9};function M9(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,To].indexOf(l)>=0?{x:h,y:v}:{x:v,y:h}}function L9(t){var r=t.state,i=t.options,l=t.name,u=i.offset,d=u===void 0?[0,0]:u,v=oD.reduce(function(C,w){return C[w]=M9(w,r.rects,d),C},{}),h=v[r.placement],y=h.x,x=h.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=x),r.modifiersData[l]=v}const P9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:L9};function F9(t){var r=t.state,i=t.name;r.modifiersData[i]=pD({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const V9={name:"popperOffsets",enabled:!0,phase:"read",fn:F9,data:{}};function B9(t){return t==="x"?"y":"x"}function z9(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,x=i.rootBoundary,C=i.altBoundary,w=i.padding,R=i.tether,j=R===void 0?!0:R,A=i.tetherOffset,T=A===void 0?0:A,I=Tm(r,{boundary:y,rootBoundary:x,padding:w,altBoundary:C}),M=tl(r.placement),F=qp(r.placement),V=!F,U=DR(M),P=B9(U),z=r.modifiersData.popperOffsets,X=r.rects.reference,Y=r.rects.popper,pe=typeof T=="function"?T(Object.assign({},r.rects,{placement:r.placement})):T,ie=typeof pe=="number"?{mainAxis:pe,altAxis:pe}:Object.assign({mainAxis:0,altAxis:0},pe),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,ae={x:0,y:0};if(z){if(d){var Re,be=U==="y"?Ai:ji,xe=U==="y"?_o:To,Ae=U==="y"?"height":"width",Le=z[U],ne=Le+I[be],Oe=Le-I[xe],G=j?-Y[Ae]/2:0,Z=F===Xp?X[Ae]:Y[Ae],re=F===Xp?-Y[Ae]:-X[Ae],Ce=r.elements.arrow,we=j&&Ce?OR(Ce):{width:0,height:0},Te=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:uD(),Ie=Te[be],ue=Te[xe],de=xm(0,X[Ae],we[Ae]),Ve=V?X[Ae]/2-G-de-Ie-ie.mainAxis:Z-de-Ie-ie.mainAxis,Ge=V?-X[Ae]/2+G+de+ue+ie.mainAxis:re+de+ue+ie.mainAxis,tt=r.elements.arrow&&Vm(r.elements.arrow),ot=tt?U==="y"?tt.clientTop||0:tt.clientLeft||0:0,je=(Re=ge==null?void 0:ge[U])!=null?Re:0,Rt=Le+Ve-je-ot,dt=Le+Ge-je,en=xm(j?_0(ne,Rt):ne,Le,j?Wd(Oe,dt):Oe);z[U]=en,ae[U]=en-Le}if(h){var sn,ln=U==="x"?Ai:ji,In=U==="x"?_o:To,Vt=z[P],Cn=P==="y"?"height":"width",Qn=Vt+I[ln],_r=Vt-I[In],Hn=[Ai,ji].indexOf(M)!==-1,Tr=(sn=ge==null?void 0:ge[P])!=null?sn:0,St=Hn?Qn:Vt-X[Cn]-Y[Cn]-Tr+ie.altAxis,Pn=Hn?Vt+X[Cn]+Y[Cn]-Tr-ie.altAxis:_r,un=j&&Hn?d9(St,Vt,Pn):xm(j?St:Qn,Vt,j?Pn:_r);z[P]=un,ae[P]=un-Vt}r.modifiersData[l]=ae}}const $9={name:"preventOverflow",enabled:!0,phase:"main",fn:z9,requiresIfExists:["offset"]};function U9(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function H9(t){return t===Qi(t)||!nl(t)?kR(t):U9(t)}function G9(t){var r=t.getBoundingClientRect(),i=Yp(r.width)/t.offsetWidth||1,l=Yp(r.height)/t.offsetHeight||1;return i!==1||l!==1}function W9(t,r,i){i===void 0&&(i=!1);var l=nl(r),u=nl(r)&&G9(r),d=Cc(r),v=Zp(t,u,i),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(l||!l&&!i)&&((xc(r)!=="body"||LR(d))&&(h=H9(r)),nl(r)?(y=Zp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=MR(d))),{x:v.left+h.scrollLeft-y.x,y:v.top+h.scrollTop-y.y,width:v.width,height:v.height}}function X9(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 Y9(t){var r=X9(t);return l9.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function Z9(t){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(t())})})),r}}function q9(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 fA={placement:"bottom",modifiers:[],strategy:"absolute"};function pA(){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 J9(t){t===void 0&&(t={});var r=t,i=r.defaultModifiers,l=i===void 0?[]:i,u=r.defaultOptions,d=u===void 0?fA:u;return function(h,y,x){x===void 0&&(x=d);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},fA,d),modifiersData:{},elements:{reference:h,popper:y},attributes:{},styles:{}},w=[],R=!1,j={state:C,setOptions:function(M){var F=typeof M=="function"?M(C.options):M;T(),C.options=Object.assign({},d,C.options,F),C.scrollParents={reference:Jd(h)?Cm(h):h.contextElement?Cm(h.contextElement):[],popper:Cm(y)};var V=Y9(q9([].concat(l,C.options.modifiers)));return C.orderedModifiers=V.filter(function(U){return U.enabled}),A(),j.update()},forceUpdate:function(){if(!R){var M=C.elements,F=M.reference,V=M.popper;if(pA(F,V)){C.rects={reference:W9(F,Vm(V),C.options.strategy==="fixed"),popper:OR(V)},C.reset=!1,C.placement=C.options.placement,C.orderedModifiers.forEach(function(ie){return C.modifiersData[ie.name]=Object.assign({},ie.data)});for(var U=0;U<C.orderedModifiers.length;U++){if(C.reset===!0){C.reset=!1,U=-1;continue}var P=C.orderedModifiers[U],z=P.fn,X=P.options,Y=X===void 0?{}:X,pe=P.name;typeof z=="function"&&(C=z({state:C,options:Y,name:pe,instance:j})||C)}}}},update:Z9(function(){return new Promise(function(I){j.forceUpdate(),I(C)})}),destroy:function(){T(),R=!0}};if(!pA(h,y))return j;j.setOptions(x).then(function(I){!R&&x.onFirstUpdate&&x.onFirstUpdate(I)});function A(){C.orderedModifiers.forEach(function(I){var M=I.name,F=I.options,V=F===void 0?{}:F,U=I.effect;if(typeof U=="function"){var P=U({state:C,name:M,instance:j,options:V}),z=function(){};w.push(P||z)}})}function T(){w.forEach(function(I){return I()}),w=[]}return j}}const Q9=J9({defaultModifiers:[k9,V9,b9,C9,P9,O9,$9,v9]}),K9=["enabled","placement","strategy","modifiers"];function e4(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 t4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},n4={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)}}},r4=[];function hD(t,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:d="absolute",modifiers:v=r4}=i,h=e4(i,K9);const y=k.useRef(v),x=k.useRef(),C=k.useCallback(()=>{var I;(I=x.current)==null||I.update()},[]),w=k.useCallback(()=>{var I;(I=x.current)==null||I.forceUpdate()},[]),[R,j]=q3(k.useState({placement:u,update:C,forceUpdate:w,attributes:{},styles:{popper:{},arrow:{}}})),A=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:I})=>{const M={},F={};Object.keys(I.elements).forEach(V=>{M[V]=I.styles[V],F[V]=I.attributes[V]}),j({state:I,styles:M,attributes:F,update:C,forceUpdate:w,placement:I.placement})}}),[C,w,j]),T=k.useMemo(()=>(bm(y.current,v)||(y.current=v),y.current),[v]);return k.useEffect(()=>{!x.current||!l||x.current.setOptions({placement:u,strategy:d,modifiers:[...T,A,t4]})},[d,u,A,l,T]),k.useEffect(()=>{if(!(!l||t==null||r==null))return x.current=Q9(t,r,Object.assign({},h,{placement:u,strategy:d,modifiers:[...T,n4,A]})),()=>{x.current!=null&&(x.current.destroy(),x.current=void 0,j(I=>Object.assign({},I,{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 a4={},i4=a4.NODE_ENV!=="production",vD=function(){};if(i4){var o4=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{}};vD=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||o4.apply(null,[r].concat(i))}}var s4=vD;const PR=Kp(s4),hA=()=>{};function l4(t){return t.button===0}function u4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const i0=t=>t&&("current"in t?t.current:t),vA={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function mD(t,r=hA,{disabled:i,clickTrigger:l="click"}={}){const u=k.useRef(!1),d=k.useRef(!1),v=k.useCallback(x=>{const C=i0(t);PR(!!C,"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=!C||u4(x)||!l4(x)||!!Nm(C,x.target)||d.current,d.current=!1},[t]),h=yr(x=>{const C=i0(t);C&&Nm(C,x.target)&&(d.current=!0)}),y=yr(x=>{u.current||r(x)});k.useEffect(()=>{var x,C;if(i||t==null)return;const w=rh(i0(t)),R=w.defaultView||window;let j=(x=R.event)!=null?x:(C=R.parent)==null?void 0:C.event,A=null;vA[l]&&(A=eu(w,vA[l],h,!0));const T=eu(w,l,v,!0),I=eu(w,l,F=>{if(F===j){j=void 0;return}y(F)});let M=[];return"ontouchstart"in w.documentElement&&(M=[].slice.call(w.body.children).map(F=>eu(F,"mousemove",hA))),()=>{A==null||A(),T(),I(),M.forEach(F=>F())}},[t,i,l,v,h,y])}function c4(t){const r={};return Array.isArray(t)?(t==null||t.forEach(i=>{r[i.name]=i}),r):t||r}function d4(t={}){return Array.isArray(t)?t:Object.keys(t).map(r=>(t[r].name=r,t[r]))}function gD({enabled:t,enableEvents:r,placement:i,flip:l,offset:u,fixed:d,containerPadding:v,arrowElement:h,popperConfig:y={}}){var x,C,w,R,j;const A=c4(y.modifiers);return Object.assign({},y,{placement:i,enabled:t,strategy:d?"fixed":y.strategy,modifiers:d4(Object.assign({},A,{eventListeners:{enabled:r,options:(x=A.eventListeners)==null?void 0:x.options},preventOverflow:Object.assign({},A.preventOverflow,{options:v?Object.assign({padding:v},(C=A.preventOverflow)==null?void 0:C.options):(w=A.preventOverflow)==null?void 0:w.options}),offset:{options:Object.assign({offset:u},(R=A.offset)==null?void 0:R.options)},arrow:Object.assign({},A.arrow,{enabled:!!h,options:Object.assign({},(j=A.arrow)==null?void 0:j.options,{element:h})}),flip:Object.assign({enabled:!!l},A.flip)}))})}const f4=["children"];function p4(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 h4=()=>{};function yD(t={}){const r=k.useContext(X0),[i,l]=w0(),u=k.useRef(!1),{flip:d,offset:v,rootCloseEvent:h,fixed:y=!1,placement:x,popperConfig:C={},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 A=z=>{r==null||r.toggle(!1,z)},{placement:T,setMenu:I,menuElement:M,toggleElement:F}=r||{},V=hD(F,M,gD({placement:x||T||"bottom-start",enabled:R,enableEvents:w??j,offset:v,flip:d,fixed:y,arrowElement:i,popperConfig:C})),U=Object.assign({ref:I||h4,"aria-labelledby":F==null?void 0:F.id},V.attributes.popper,{style:V.styles.popper}),P={show:j,placement:T,hasShown:u.current,toggle:r==null?void 0:r.toggle,popper:R?V:null,arrowProps:R?Object.assign({ref:l},V.attributes.arrow,{style:V.styles.arrow}):{}};return mD(M,A,{clickTrigger:h,disabled:!j}),[U,P]}const v4={usePopper:!0};function FR(t){let{children:r}=t,i=p4(t,f4);const[l,u]=yD(i);return m.jsx(m.Fragment,{children:r(l,u)})}FR.displayName="DropdownMenu";FR.defaultProps=v4;const bD=t=>{var r;return((r=t.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},mA=()=>{};function xD(){const t=CO(),{show:r=!1,toggle:i=mA,setToggle:l,menuElement:u}=k.useContext(X0)||{},d=k.useCallback(h=>{i(!r,h)},[r,i]),v={id:t,ref:l||mA,onClick:d,"aria-expanded":!!r};return u&&bD(u)&&(v["aria-haspopup"]=!0),[v,{show:r,toggle:i}]}function CD({children:t}){const[r,i]=xD();return m.jsx(m.Fragment,{children:t(r,i)})}CD.displayName="DropdownToggle";const m4=["eventKey","disabled","onClick","active","as"];function g4(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 SD({key:t,href:r,active:i,disabled:l,onClick:u}){const d=k.useContext(iu),v=k.useContext(_R),{activeKey:h}=v||{},y=qd(t,r),x=i==null&&t!=null?qd(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":x,[ih("dropdown-item")]:""},{isActive:x}]}const ED=k.forwardRef((t,r)=>{let{eventKey:i,disabled:l,onClick:u,active:d,as:v=NR}=t,h=g4(t,m4);const[y]=SD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,Object.assign({},h,{ref:r},y))});ED.displayName="DropdownItem";const wD=k.createContext(ah?window:void 0);wD.Provider;function Z0(){return k.useContext(wD)}function gA(){const t=$O(),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=`* [${ih("dropdown-item")}]`,focusFirstItemOnShow:d,placement:v="bottom-start",children:h}){const y=Z0(),[x,C]=yO(r,t,l),[w,R]=gA(),j=w.current,[A,T]=gA(),I=A.current,M=QO(x),F=k.useRef(null),V=k.useRef(!1),U=k.useContext(iu),P=k.useCallback((ge,ae,Re=ae==null?void 0:ae.type)=>{C(ge,{originalEvent:ae,source:Re})},[C]),z=yr((ge,ae)=>{i==null||i(ge,ae),P(!1,ae,"select"),ae.isPropagationStopped()||U==null||U(ge,ae)}),X=k.useMemo(()=>({toggle:P,placement:v,show:x,menuElement:j,toggleElement:I,setMenu:R,setToggle:T}),[P,v,x,j,I,R,T]);j&&M&&!x&&(V.current=j.contains(j.ownerDocument.activeElement));const Y=yr(()=>{I&&I.focus&&I.focus()}),pe=yr(()=>{const ge=F.current;let ae=d;if(ae==null&&(ae=w.current&&bD(w.current)?"keyboard":!1),ae===!1||ae==="keyboard"&&!/^key.+$/.test(ge))return;const Re=Kl(w.current,u)[0];Re&&Re.focus&&Re.focus()});k.useEffect(()=>{x?pe():V.current&&(V.current=!1,Y())},[x,V,Y,pe]),k.useEffect(()=>{F.current=null});const ie=(ge,ae)=>{if(!w.current)return null;const Re=Kl(w.current,u);let be=Re.indexOf(ge)+ae;return be=Math.max(0,Math.min(be,Re.length)),Re[be]};return F3(k.useCallback(()=>y.document,[y]),"keydown",ge=>{var ae,Re;const{key:be}=ge,xe=ge.target,Ae=(ae=w.current)==null?void 0:ae.contains(xe),Le=(Re=A.current)==null?void 0:Re.contains(xe);if(/input|textarea/i.test(xe.tagName)&&(be===" "||be!=="Escape"&&Ae||be==="Escape"&&xe.type==="search")||!Ae&&!Le||be==="Tab"&&(!w.current||!x))return;F.current=ge.type;const Oe={originalEvent:ge,source:ge.type};switch(be){case"ArrowUp":{const G=ie(xe,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!x)C(!0,Oe);else{const G=ie(xe,1);G&&G.focus&&G.focus()}return;case"Tab":wR(xe.ownerDocument,"keyup",G=>{var Z;(G.key==="Tab"&&!G.target||!((Z=w.current)!=null&&Z.contains(G.target)))&&C(!1,Oe)},{once:!0});break;case"Escape":be==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),C(!1,Oe);break}}),m.jsx(iu.Provider,{value:z,children:m.jsx(X0.Provider,{value:X,children:h})})}Bm.displayName="Dropdown";Bm.Menu=FR;Bm.Toggle=CD;Bm.Item=ED;const RD=k.createContext({});RD.displayName="DropdownContext";const _D=RD,TD=k.forwardRef(({className:t,bsPrefix:r,as:i="hr",role:l="separator",...u},d)=>(r=xn(r,"dropdown-divider"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));TD.displayName="DropdownDivider";const y4=TD,ND=k.forwardRef(({className:t,bsPrefix:r,as:i="div",role:l="heading",...u},d)=>(r=xn(r,"dropdown-header"),m.jsx(i,{ref:d,className:Qt(t,r),role:l,...u})));ND.displayName="DropdownHeader";const b4=ND,ID=k.forwardRef(({bsPrefix:t,className:r,eventKey:i,disabled:l=!1,onClick:u,active:d,as:v=eD,...h},y)=>{const x=xn(t,"dropdown-item"),[C,w]=SD({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,{...h,...C,ref:y,className:Qt(r,x,w.isActive&&"active",l&&"disabled")})});ID.displayName="DropdownItem";const x4=ID,AD=k.forwardRef(({className:t,bsPrefix:r,as:i="span",...l},u)=>(r=xn(r,"dropdown-item-text"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));AD.displayName="DropdownItemText";const C4=AD,jD=k.createContext(null);jD.displayName="InputGroupContext";const OD=jD;var yA={};function DD(t,r){if(yA.NODE_ENV==="production")return t;const i=k.useCallback(l=>{l==null||!l.isReactComponent||(yA.NODE_ENV!=="production"?JI(!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`):JI(!1))},[r]);return hs(i,t)}var S4={};function kD(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",x=i?"left-start":"right-start",C=i?"left-end":"right-end";let w=t?v:d;return r==="up"?w=t?u:l:r==="end"?w=t?C:x:r==="start"?w=t?y:h:r==="down-centered"?w="bottom":r==="up-centered"&&(w="top"),w}const MD=k.forwardRef(({bsPrefix:t,className:r,align:i,rootCloseEvent:l,flip:u=!0,show:d,renderOnMount:v,as:h="div",popperConfig:y,variant:x,...C},w)=>{let R=!1;const j=k.useContext(YO),A=xn(t,"dropdown-menu"),{align:T,drop:I,isRTL:M}=k.useContext(_D);i=i||T;const F=k.useContext(OD),V=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(S4.NODE_ENV!=="production"&&PR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const ae=ge[0],Re=i[ae];R=Re==="start",V.push(`${A}-${ae}-${Re}`)}}else i==="end"&&(R=!0);const U=kD(R,I,M),[P,{hasShown:z,popper:X,show:Y,toggle:pe}]=yD({flip:u,rootCloseEvent:l,show:d,usePopper:!j&&V.length===0,offset:[0,2],popperConfig:y,placement:U});if(P.ref=hs(DD(w,"DropdownMenu"),P.ref),R0(()=>{Y&&(X==null||X.update())},[Y]),!z&&!v&&!F)return null;typeof h!="string"&&(P.show=Y,P.close=()=>pe==null?void 0:pe(!1),P.align=i);let ie=C.style;return X!=null&&X.placement&&(ie={...C.style,...P.style},C["x-placement"]=X.placement),m.jsx(h,{...C,...P,style:ie,...(V.length||j)&&{"data-bs-popper":"static"},className:Qt(r,A,Y&&"show",R&&`${A}-end`,x&&`${A}-${x}`,...V)})});MD.displayName="DropdownMenu";const E4=MD,LD=k.forwardRef(({as:t,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:d=!1,className:v,...h},y)=>{const x=xn(r,"btn"),[C,{tagName:w}]=TR({tagName:t,disabled:d,...h}),R=w;return m.jsx(R,{...C,...h,ref:y,disabled:d,className:Qt(v,x,u&&"active",i&&`${x}-${i}`,l&&`${x}-${l}`,h.href&&d&&"disabled")})});LD.displayName="Button";const w4=LD,PD=k.forwardRef(({bsPrefix:t,split:r,className:i,childBsPrefix:l,as:u=w4,...d},v)=>{const h=xn(t,"dropdown-toggle"),y=k.useContext(X0);l!==void 0&&(d.bsPrefix=l);const[x]=xD();return x.ref=hs(x.ref,DD(v,"DropdownToggle")),m.jsx(u,{className:Qt(i,h,r&&`${h}-split`,(y==null?void 0:y.show)&&"show"),...x,...d})});PD.displayName="DropdownToggle";const R4=PD,FD=k.forwardRef((t,r)=>{const{bsPrefix:i,drop:l="down",show:u,className:d,align:v="start",onSelect:h,onToggle:y,focusFirstItemOnShow:x,as:C="div",navbar:w,autoClose:R=!0,...j}=W0(t,{show:"onToggle"}),A=k.useContext(OD),T=xn(i,"dropdown"),I=G0(),M=X=>R===!1?X==="click":R==="inside"?X!=="rootClose":R==="outside"?X!=="select":!0,F=yr((X,Y)=>{var pe,ie;!((pe=Y.originalEvent)==null||(ie=pe.target)==null)&&ie.classList.contains("dropdown-toggle")&&Y.source==="mousedown"||(Y.originalEvent.currentTarget===document&&(Y.source!=="keydown"||Y.originalEvent.key==="Escape")&&(Y.source="rootClose"),M(Y.source)&&(y==null||y(X,Y)))}),U=kD(v==="end",l,I),P=k.useMemo(()=>({align:v,drop:l,isRTL:I}),[v,l,I]),z={down:T,"down-centered":`${T}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return m.jsx(_D.Provider,{value:P,children:m.jsx(Bm,{placement:U,show:u,onSelect:h,onToggle:F,focusFirstItemOnShow:x,itemSelector:`.${T}-item:not(.disabled):not(:disabled)`,children:A?j.children:m.jsx(C,{...j,ref:r,className:Qt(d,u&&"show",z[l])})})})});FD.displayName="Dropdown";const Ub=Object.assign(FD,{Toggle:R4,Menu:E4,Item:x4,ItemText:C4,Divider:y4,Header:b4});var Hb;function bA(t){if((!Hb&&Hb!==0||t)&&ah){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 _4(t){const r=k.useRef(t);return r.current=t,r}function VR(t){const r=_4(t);k.useEffect(()=>()=>r.current(),[])}function JE(t){t===void 0&&(t=rh());try{var r=t.activeElement;return!r||!r.nodeName?null:r}catch{return t.body}}function T4(t=document){const r=t.defaultView;return Math.abs(r.innerWidth-t.documentElement.clientWidth)}const xA=ih("modal-open");class N4{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return T4(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(nu(u,l)||"0",10)+r.scrollBarWidth}px`),u.setAttribute(xA,""),nu(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(xA),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 BR=N4,QE=(t,r)=>ah?t==null?(r||rh()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function Vw(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 I4({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 A4({children:t,in:r,onExited:i,onEntered:l,transition:u}){const[d,v]=k.useState(!r);r&&d&&v(!1);const h=I4({in:!!r,onTransition:x=>{const C=()=>{x.isStale()||(x.in?l==null||l(x.element,x.initial):(v(!0),i==null||i(x.element)))};Promise.resolve(u(x)).then(C,w=>{throw x.in||v(!0),w})}}),y=hs(h,t.ref);return d&&!r?null:k.cloneElement(t,{ref:y})}function Bw(t,r,i){return t?m.jsx(t,Object.assign({},i)):r?m.jsx(A4,Object.assign({},i,{transition:r})):m.jsx(SR,Object.assign({},i))}function VD(t){return t.code==="Escape"||t.keyCode===27}const j4=["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 O4(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 D4(t){return KE||(KE=new BR({ownerDocument:t==null?void 0:t.document})),KE}function k4(t){const r=Z0(),i=t||D4(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 BD=k.forwardRef((t,r)=>{let{show:i=!1,role:l="dialog",className:u,style:d,children:v,backdrop:h=!0,keyboard:y=!0,onBackdropClick:x,onEscapeKeyDown:C,transition:w,runTransition:R,backdropTransition:j,runBackdropTransition:A,autoFocus:T=!0,enforceFocus:I=!0,restoreFocus:M=!0,restoreFocusOptions:F,renderDialog:V,renderBackdrop:U=dt=>m.jsx("div",Object.assign({},dt)),manager:P,container:z,onShow:X,onHide:Y=()=>{},onExit:pe,onExited:ie,onExiting:ge,onEnter:ae,onEntering:Re,onEntered:be}=t,xe=O4(t,j4);const Ae=Z0(),Le=Vw(z),ne=k4(P),Oe=IR(),G=QO(i),[Z,re]=k.useState(!i),Ce=k.useRef(null);k.useImperativeHandle(r,()=>ne,[ne]),ah&&!G&&i&&(Ce.current=JE(Ae==null?void 0:Ae.document)),i&&Z&&re(!1);const we=yr(()=>{if(ne.add(),Ge.current=eu(document,"keydown",de),Ve.current=eu(document,"focus",()=>setTimeout(Ie),!0),X&&X(),T){var dt,en;const sn=JE((dt=(en=ne.dialog)==null?void 0:en.ownerDocument)!=null?dt:Ae==null?void 0:Ae.document);ne.dialog&&sn&&!Nm(ne.dialog,sn)&&(Ce.current=sn,ne.dialog.focus())}}),Te=yr(()=>{if(ne.remove(),Ge.current==null||Ge.current(),Ve.current==null||Ve.current(),M){var dt;(dt=Ce.current)==null||dt.focus==null||dt.focus(F),Ce.current=null}});k.useEffect(()=>{!i||!Le||we()},[i,Le,we]),k.useEffect(()=>{Z&&Te()},[Z,Te]),VR(()=>{Te()});const Ie=yr(()=>{if(!I||!Oe()||!ne.isTopModal())return;const dt=JE(Ae==null?void 0:Ae.document);ne.dialog&&dt&&!Nm(ne.dialog,dt)&&ne.dialog.focus()}),ue=yr(dt=>{dt.target===dt.currentTarget&&(x==null||x(dt),h===!0&&Y())}),de=yr(dt=>{y&&VD(dt)&&ne.isTopModal()&&(C==null||C(dt),dt.defaultPrevented||Y())}),Ve=k.useRef(),Ge=k.useRef(),tt=(...dt)=>{re(!0),ie==null||ie(...dt)};if(!Le)return null;const ot=Object.assign({role:l,ref:ne.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},xe,{style:d,className:u,tabIndex:-1});let je=V?V(ot):m.jsx("div",Object.assign({},ot,{children:k.cloneElement(v,{role:"document"})}));je=Bw(w,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:pe,onExiting:ge,onExited:tt,onEnter:ae,onEntering:Re,onEntered:be,children:je});let Rt=null;return h&&(Rt=U({ref:ne.setBackdropRef,onClick:ue}),Rt=Bw(j,A,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Rt})),m.jsx(m.Fragment,{children:$d.createPortal(m.jsxs(m.Fragment,{children:[Rt,je]}),Le)})});BD.displayName="Modal";const M4=Object.assign(BD,{Manager:BR});function zw(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function L4(t,r){t.classList?t.classList.add(r):zw(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function CA(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function P4(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=CA(t.className,r):t.setAttribute("class",CA(t.className&&t.className.baseVal||"",r))}const Vp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class F4 extends BR{adjustAndStore(r,i,l){const u=i.style[r];i.dataset[r]=u,nu(i,{[r]:`${parseFloat(nu(i,r))+l}px`})}restore(r,i){const l=i.dataset[r];l!==void 0&&(delete i.dataset[r],nu(i,{[r]:l}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(L4(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,Vp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth)),Kl(i,Vp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(u,d,-r.scrollBarWidth)),Kl(i,Vp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();P4(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,Vp.FIXED_CONTENT).forEach(d=>this.restore(l,d)),Kl(i,Vp.STICKY_CONTENT).forEach(d=>this.restore(u,d)),Kl(i,Vp.NAVBAR_TOGGLER).forEach(d=>this.restore(u,d))}}let ew;function V4(t){return ew||(ew=new F4(t)),ew}const zD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"modal-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));zD.displayName="ModalBody";const B4=zD,z4=k.createContext({onHide(){}}),$D=z4,UD=k.forwardRef(({bsPrefix:t,className:r,contentClassName:i,centered:l,size:u,fullscreen:d,children:v,scrollable:h,...y},x)=>{t=xn(t,"modal");const C=`${t}-dialog`,w=typeof d=="string"?`${t}-fullscreen-${d}`:`${t}-fullscreen`;return m.jsx("div",{...y,ref:x,className:Qt(C,r,u&&`${t}-${u}`,l&&`${C}-centered`,h&&`${C}-scrollable`,d&&w),children:m.jsx("div",{className:Qt(`${t}-content`,i),children:v})})});UD.displayName="ModalDialog";const HD=UD,GD=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"modal-footer"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));GD.displayName="ModalFooter";const $4=GD,U4={"aria-label":Be.string,onClick:Be.func,variant:Be.oneOf(["white"])},zR=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}));zR.displayName="CloseButton";zR.propTypes=U4;const H4=zR,G4=k.forwardRef(({closeLabel:t="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...d},v)=>{const h=k.useContext($D),y=yr(()=>{h==null||h.onHide(),l==null||l()});return m.jsxs("div",{ref:v,...d,children:[u,i&&m.jsx(H4,{"aria-label":t,variant:r,onClick:y})]})}),W4=G4,WD=k.forwardRef(({bsPrefix:t,className:r,closeLabel:i="Close",closeButton:l=!1,...u},d)=>(t=xn(t,"modal-header"),m.jsx(W4,{ref:d,...u,className:Qt(r,t),closeLabel:i,closeButton:l})));WD.displayName="ModalHeader";const X4=WD,Y4=t=>k.forwardRef((r,i)=>m.jsx("div",{...r,ref:i,className:Qt(r.className,t)})),Z4=Y4("h4"),XD=k.forwardRef(({className:t,bsPrefix:r,as:i=Z4,...l},u)=>(r=xn(r,"modal-title"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));XD.displayName="ModalTitle";const q4=XD;function J4(t){return m.jsx(Wp,{...t,timeout:null})}function Q4(t){return m.jsx(Wp,{...t,timeout:null})}const YD=k.forwardRef(({bsPrefix:t,className:r,style:i,dialogClassName:l,contentClassName:u,children:d,dialogAs:v=HD,"data-bs-theme":h,"aria-labelledby":y,"aria-describedby":x,"aria-label":C,show:w=!1,animation:R=!0,backdrop:j=!0,keyboard:A=!0,onEscapeKeyDown:T,onShow:I,onHide:M,container:F,autoFocus:V=!0,enforceFocus:U=!0,restoreFocus:P=!0,restoreFocusOptions:z,onEntered:X,onExit:Y,onExiting:pe,onEnter:ie,onEntering:ge,onExited:ae,backdropClassName:Re,manager:be,...xe},Ae)=>{const[Le,ne]=k.useState({}),[Oe,G]=k.useState(!1),Z=k.useRef(!1),re=k.useRef(!1),Ce=k.useRef(null),[we,Te]=w0(),Ie=hs(Ae,Te),ue=yr(M),de=G0();t=xn(t,"modal");const Ve=k.useMemo(()=>({onHide:ue}),[ue]);function Ge(){return be||V4({isRTL:de})}function tt(St){if(!ah)return;const Pn=Ge().getScrollbarWidth()>0,un=St.scrollHeight>rh(St).documentElement.clientHeight;ne({paddingRight:Pn&&!un?bA():void 0,paddingLeft:!Pn&&un?bA():void 0})}const ot=yr(()=>{we&&tt(we.dialog)});VR(()=>{Mw(window,"resize",ot),Ce.current==null||Ce.current()});const je=()=>{Z.current=!0},Rt=St=>{Z.current&&we&&St.target===we.dialog&&(re.current=!0),Z.current=!1},dt=()=>{G(!0),Ce.current=IO(we.dialog,()=>{G(!1)})},en=St=>{St.target===St.currentTarget&&dt()},sn=St=>{if(j==="static"){en(St);return}if(re.current||St.target!==St.currentTarget){re.current=!1;return}M==null||M()},ln=St=>{A?T==null||T(St):(St.preventDefault(),j==="static"&&dt())},In=(St,Pn)=>{St&&tt(St),ie==null||ie(St,Pn)},Vt=St=>{Ce.current==null||Ce.current(),Y==null||Y(St)},Cn=(St,Pn)=>{ge==null||ge(St,Pn),wR(window,"resize",ot)},Qn=St=>{St&&(St.style.display=""),ae==null||ae(St),Mw(window,"resize",ot)},_r=k.useCallback(St=>m.jsx("div",{...St,className:Qt(`${t}-backdrop`,Re,!R&&"show")}),[R,Re,t]),Hn={...i,...Le};Hn.display="block";const Tr=St=>m.jsx("div",{role:"dialog",...St,style:Hn,className:Qt(r,t,Oe&&`${t}-static`,!R&&"show"),onClick:j?sn:void 0,onMouseUp:Rt,"data-bs-theme":h,"aria-label":C,"aria-labelledby":y,"aria-describedby":x,children:m.jsx(v,{...xe,onMouseDown:je,className:l,contentClassName:u,children:d})});return m.jsx($D.Provider,{value:Ve,children:m.jsx(M4,{show:w,ref:Ie,backdrop:j,container:F,keyboard:!0,autoFocus:V,enforceFocus:U,restoreFocus:P,restoreFocusOptions:z,onEscapeKeyDown:ln,onShow:I,onHide:M,onEnter:In,onEntering:Cn,onEntered:X,onExit:Vt,onExiting:pe,onExited:Qn,manager:Ge(),transition:R?J4:void 0,backdropTransition:R?Q4:void 0,renderBackdrop:_r,renderDialog:Tr})})});YD.displayName="Modal";const Ln=Object.assign(YD,{Body:B4,Header:X4,Title:q4,Footer:$4,Dialog:HD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),K4=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 eW({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((x,C)=>x.opportunityId<C.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(x=>[x.opportunityName,`${Jt.routes.renew_request_path(t)}?opportunity_id=${x.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((x,C)=>x.isEnabled<C.isEnabled?1:-1);const y=h.map(({id:x,action:C,isEnabled:w,button:R,enabled:j,disabled:A})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(C)&&C.length?m.jsxs(Ub,{className:"d-flex flex-column",children:[m.jsx(Ub.Toggle,{as:K4,children:R}),m.jsx(Ub.Menu,{children:C.map(([T,I,M])=>m.jsx(Ub.Item,{href:I,onClick:F=>{M!=="get"&&(F.preventDefault(),F.target.dataset.method=M,$&&$.rails&&$.rails.handleMethod($(F.target)))},children:T},I))})]}):m.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${w?"":"disabled"}`,href:w?C:"",children:m.jsx("span",{children:R})})}),m.jsx("div",{className:"col-sm-8 mb-2",children:w?j:A})]},x));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 tW({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-rO(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 nW({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,x=h==ta.pending,C=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:[C&&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,": ",Hd(v.date)]})," ","on"," "]}),"request ",m.jsx("strong",{children:hR(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:x,children:"Cancel"}),m.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>l(i),disabled:x,children:x?"Deleting...":"Delete"})]})})]})}function T0({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 ZD({action:t,request:r,toggleDeleteModal:i}){const l=t.allowedOperations||[],u=[];l.includes("Edit")&&u.push(m.jsx(T0,{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(T0,{color:"danger",icon:"trash",onClick:()=>i(t.actionId),title:"Edit action"},"delete"));const d=`${t.type}: ${Hd(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 Xd({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:[bc(Jt.resourceTypeIcons[t.icon])," ",u,!t.isCredit&&t.userGuideUrl&&r?m.jsx(T0,{icon:"book",href:t.userGuideUrl,target:"_blank",title:`${t.name} User Guide`}):null]})}function Jp({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 rW=t=>m.jsx("span",{className:t<0?"text-danger":"",children:t===0?"":t.toLocaleString()});function aW({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],x=v[h-1],C=(T,I)=>T?m.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(T.requestId),children:[I=="prev"?m.jsx("i",{className:"bi bi-chevron-left"}):null,hR(T),I=="next"?m.jsx("i",{className:"bi bi-chevron-right"}):null]}):m.jsx("span",{}),w=new Set,R=[];for(let T of i.actions)for(let I of T.resources)w.has(I.resourceId)||(w.add(I.resourceId),R.push(I));R.sort(g0);const j=[{key:"action",name:"Action Details",format:(T,I)=>m.jsx(ZD,{action:I,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:T=>m.jsx(Jp,{status:T})},...R.map(T=>({key:`resource${T.resourceId}`,name:T.name,icon:T.icon,class:"text-end",format:T.isBoolean?I=>I?vR(I):null:rW,formatHeader:(I,M)=>m.jsx(Xd,{resource:M,userGuide:!1})}))],A=i.actions.map(T=>{const I={...T};for(let{resourceId:M}of R)I[`resource${M}`]=0;for(let{resourceId:M,approved:F,requested:V}of T.resources)I[`resource${M}`]=F||V||0;return I});return m.jsxs("div",{className:"history",children:[m.jsx(su,{columns:j,rows:A}),m.jsxs("div",{className:"buttons d-flex justify-content-between",children:[C(y,"prev"),C(x,"next")]})]})}function iW({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(ZD,{action:v,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:d=>m.jsx(Jp,{status:d})}];if(i.actions&&i.actions.length)return m.jsx(su,{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 oW={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function sW(t,r){const i=`offset${t[0].toUpperCase()}${t.slice(1)}`,l=r[i],u=oW[t];return l+parseInt(nu(r,u[0]),10)+parseInt(nu(r,u[1]),10)}const lW={[mc]:"collapse",[S0]:"collapsing",[Ql]:"collapsing",[gc]:"collapse show"},uW=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:d,children:v,dimension:h="height",in:y=!1,timeout:x=300,mountOnEnter:C=!1,unmountOnExit:w=!1,appear:R=!1,getDimensionValue:j=sW,...A},T)=>{const I=typeof h=="function"?h():h,M=k.useMemo(()=>cm(z=>{z.style[I]="0"},t),[I,t]),F=k.useMemo(()=>cm(z=>{const X=`scroll${I[0].toUpperCase()}${I.slice(1)}`;z.style[I]=`${z[X]}px`},r),[I,r]),V=k.useMemo(()=>cm(z=>{z.style[I]=null},i),[I,i]),U=k.useMemo(()=>cm(z=>{z.style[I]=`${j(I,z)}px`,jO(z)},l),[l,j,I]),P=k.useMemo(()=>cm(z=>{z.style[I]=null},u),[I,u]);return m.jsx(OO,{ref:T,addEndListener:AO,...A,"aria-expanded":A.role?y:null,onEnter:M,onEntering:F,onEntered:V,onExit:U,onExiting:P,childRef:v.ref,in:y,timeout:x,mountOnEnter:C,unmountOnExit:w,appear:R,children:(z,X)=>pr.cloneElement(v,{...X,className:Qt(d,v.props.className,lW[z],I==="width"&&"collapse-horizontal")})})}),cW=uW;function qD(t,r){return Array.isArray(t)?t.includes(r):t===r}const JD=k.createContext({});JD.displayName="AccordionContext";const q0=JD,QD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,children:l,eventKey:u,...d},v)=>{const{activeEventKey:h}=k.useContext(q0);return r=xn(r,"accordion-collapse"),m.jsx(cW,{ref:v,in:qD(h,u),...d,className:Qt(i,r),children:m.jsx(t,{children:k.Children.only(l)})})});QD.displayName="AccordionCollapse";const KD=QD,ek=k.createContext({eventKey:""});ek.displayName="AccordionItemContext";const $R=ek,tk=k.forwardRef(({as:t="div",bsPrefix:r,className:i,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,...x},C)=>{r=xn(r,"accordion-body");const{eventKey:w}=k.useContext($R);return m.jsx(KD,{eventKey:w,onEnter:l,onEntering:u,onEntered:d,onExit:v,onExiting:h,onExited:y,children:m.jsx(t,{ref:C,...x,className:Qt(i,r)})})});tk.displayName="AccordionBody";const dW=tk;function fW(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 nk=k.forwardRef(({as:t="button",bsPrefix:r,className:i,onClick:l,...u},d)=>{r=xn(r,"accordion-button");const{eventKey:v}=k.useContext($R),h=fW(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,!qD(y,v)&&"collapsed")})});nk.displayName="AccordionButton";const rk=nk,ak=k.forwardRef(({as:t="h2",bsPrefix:r,className:i,children:l,onClick:u,...d},v)=>(r=xn(r,"accordion-header"),m.jsx(t,{ref:v,...d,className:Qt(i,r),children:m.jsx(rk,{onClick:u,children:l})})));ak.displayName="AccordionHeader";const pW=ak,ik=k.forwardRef(({as:t="div",bsPrefix:r,className:i,eventKey:l,...u},d)=>{r=xn(r,"accordion-item");const v=k.useMemo(()=>({eventKey:l}),[l]);return m.jsx($R.Provider,{value:v,children:m.jsx(t,{ref:d,...u,className:Qt(i,r)})})});ik.displayName="AccordionItem";const hW=ik,ok=k.forwardRef((t,r)=>{const{as:i="div",activeKey:l,bsPrefix:u,className:d,onSelect:v,flush:h,alwaysOpen:y,...x}=W0(t,{activeKey:"onSelect"}),C=xn(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,...x,className:Qt(d,C,h&&`${C}-flush`)})})});ok.displayName="Accordion";const us=Object.assign(ok,{Button:rk,Collapse:KD,Item:hW,Header:pW,Body:dW}),$w=2**31-1;function sk(t,r,i){const l=i-Date.now();t.current=l<=$w?setTimeout(r,l):setTimeout(()=>sk(t,r,i),$w)}function vW(){const t=IR(),r=k.useRef();return VR(()=>clearTimeout(r.current)),k.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,d=0){t()&&(i(),d<=$w?r.current=setTimeout(u,d):sk(r,u,Date.now()+d))}return{set:l,clear:i,handleRef:r}},[])}const mW=()=>{};function gW(t,r,{disabled:i,clickTrigger:l}={}){const u=r||mW;mD(t,u,{disabled:i,clickTrigger:l});const d=yr(v=>{VD(v)&&u(v)});k.useEffect(()=>{if(i||t==null)return;const v=rh(i0(t));let h=(v.defaultView||window).event;const y=eu(v,"keyup",x=>{if(x===h){h=void 0;return}d(x)});return()=>{y()}},[t,i,d])}const lk=k.forwardRef((t,r)=>{const{flip:i,offset:l,placement:u,containerPadding:d,popperConfig:v={},transition:h,runTransition:y}=t,[x,C]=w0(),[w,R]=w0(),j=hs(C,r),A=Vw(t.container),T=Vw(t.target),[I,M]=k.useState(!t.show),F=hD(T,x,gD({placement:u,enableEvents:!!t.show,containerPadding:d||5,flip:i,offset:l,arrowElement:w,popperConfig:v}));t.show&&I&&M(!1);const V=(...ge)=>{M(!0),t.onExited&&t.onExited(...ge)},U=t.show||!I;if(gW(x,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!U)return null;const{onExit:P,onExiting:z,onEnter:X,onEntering:Y,onEntered:pe}=t;let ie=t.children(Object.assign({},F.attributes.popper,{style:F.styles.popper,ref:j}),{popper:F,placement:u,show:!!t.show,arrowProps:Object.assign({},F.attributes.arrow,{style:F.styles.arrow,ref:R})});return ie=Bw(h,y,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ie,onExit:P,onExiting:z,onExited:V,onEnter:X,onEntering:Y,onEntered:pe}),A?$d.createPortal(ie,A):null});lk.displayName="Overlay";const yW=lk,uk=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"popover-header"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));uk.displayName="PopoverHeader";const bW=uk,ck=k.forwardRef(({className:t,bsPrefix:r,as:i="div",...l},u)=>(r=xn(r,"popover-body"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));ck.displayName="PopoverBody";const dk=ck;function fk(t,r){let i=t;return t==="left"?i=r?"end":"start":t==="right"&&(i=r?"start":"end"),i}function pk(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const xW=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,body:d,arrowProps:v,hasDoneInitialMeasure:h,popper:y,show:x,...C},w)=>{const R=xn(t,"popover"),j=G0(),[A]=(r==null?void 0:r.split("-"))||[],T=fk(A,j);let I=l;return x&&!h&&(I={...l,...pk(y==null?void 0:y.strategy)}),m.jsxs("div",{ref:w,role:"tooltip",style:I,"x-placement":A,className:Qt(i,R,A&&`bs-popover-${T}`),...C,children:[m.jsx("div",{className:"popover-arrow",...v}),d?m.jsx(dk,{children:u}):u]})}),CW=Object.assign(xW,{Header:bW,Body:dk,POPPER_OFFSET:[0,8]}),hk=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,arrowProps:d,hasDoneInitialMeasure:v,popper:h,show:y,...x},C)=>{t=xn(t,"tooltip");const w=G0(),[R]=(r==null?void 0:r.split("-"))||[],j=fk(R,w);let A=l;return y&&!v&&(A={...l,...pk(h==null?void 0:h.strategy)}),m.jsxs("div",{ref:C,style:A,role:"tooltip","x-placement":R,className:Qt(i,t,`bs-tooltip-${j}`),...x,children:[m.jsx("div",{className:"tooltip-arrow",...d}),m.jsx("div",{className:`${t}-inner`,children:u})]})});hk.displayName="Tooltip";const J0=Object.assign(hk,{TOOLTIP_OFFSET:[0,6]});function SW(t){const r=k.useRef(null),i=xn(void 0,"popover"),l=xn(void 0,"tooltip"),u=k.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(r.current){if(zw(r.current,i))return CW.POPPER_OFFSET;if(zw(r.current,l))return J0.TOOLTIP_OFFSET}return[0,0]}}}),[t,i,l]);return[r,[u]]}function EW(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 vk=k.forwardRef(({children:t,transition:r=Wp,popperConfig:i={},rootClose:l=!1,placement:u="top",show:d=!1,...v},h)=>{const y=k.useRef({}),[x,C]=k.useState(null),[w,R]=SW(v.offset),j=hs(h,w),A=r===!0?Wp:r||void 0,T=yr(I=>{C(I),i==null||i.onFirstUpdate==null||i.onFirstUpdate(I)});return R0(()=>{x&&v.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[x,v.target]),k.useEffect(()=>{d||C(null)},[d]),m.jsx(yW,{...v,ref:j,popperConfig:{...i,modifiers:R.concat(i.modifiers||[]),onFirstUpdate:T},transition:A,rootClose:l,placement:u,show:d,children:(I,{arrowProps:M,popper:F,show:V})=>{var U,P;EW(I,M);const z=F==null?void 0:F.placement,X=Object.assign(y.current,{state:F==null?void 0:F.state,scheduleUpdate:F==null?void 0:F.update,placement:z,outOfBoundaries:(F==null||(U=F.state)==null||(P=U.modifiersData.hide)==null?void 0:P.isReferenceHidden)||!1,strategy:i.strategy}),Y=!!x;return typeof t=="function"?t({...I,placement:z,show:V,...!r&&V&&{className:"show"},popper:X,arrowProps:M,hasDoneInitialMeasure:Y}):k.cloneElement(t,{...I,placement:z,arrowProps:M,popper:X,hasDoneInitialMeasure:Y,className:Qt(t.props.className,!r&&V&&"show"),style:{...t.props.style,...I.style}})}})});vk.displayName="Overlay";const mk=vk;var wW={};function RW(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function SA(t,r,i){const[l]=r,u=l.currentTarget,d=l.relatedTarget||l.nativeEvent[i];(!d||d!==u)&&!Nm(u,d)&&t(...r)}Be.oneOf(["click","hover","focus"]);const _W=({trigger:t=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:d=!1,onToggle:v,delay:h,placement:y,flip:x=y&&y.indexOf("auto")!==-1,...C})=>{const w=k.useRef(null),R=hs(w,i.ref),j=vW(),A=k.useRef(""),[T,I]=zO(u,d,v),M=RW(h),{onFocus:F,onBlur:V,onClick:U}=typeof i!="function"?k.Children.only(i).props:{},P=xe=>{R(E0(xe))},z=k.useCallback(()=>{if(j.clear(),A.current="show",!M.show){I(!0);return}j.set(()=>{A.current==="show"&&I(!0)},M.show)},[M.show,I,j]),X=k.useCallback(()=>{if(j.clear(),A.current="hide",!M.hide){I(!1);return}j.set(()=>{A.current==="hide"&&I(!1)},M.hide)},[M.hide,I,j]),Y=k.useCallback((...xe)=>{z(),F==null||F(...xe)},[z,F]),pe=k.useCallback((...xe)=>{X(),V==null||V(...xe)},[X,V]),ie=k.useCallback((...xe)=>{I(!T),U==null||U(...xe)},[U,I,T]),ge=k.useCallback((...xe)=>{SA(z,xe,"fromElement")},[z]),ae=k.useCallback((...xe)=>{SA(X,xe,"toElement")},[X]),Re=t==null?[]:[].concat(t),be={ref:P};return Re.indexOf("click")!==-1&&(be.onClick=ie),Re.indexOf("focus")!==-1&&(be.onFocus=Y,be.onBlur=pe),Re.indexOf("hover")!==-1&&(wW.NODE_ENV!=="production"&&PR(Re.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.'),be.onMouseOver=ge,be.onMouseOut=ae),m.jsxs(m.Fragment,{children:[typeof i=="function"?i(be):k.cloneElement(i,be),m.jsx(mk,{...C,show:T,onHide:X,flip:x,placement:y,popperConfig:l,target:w.current,children:r})]})},UR=_W;function TW({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,x="Exchange"in i.allowedActions,C=i.exchangeActionId!==null,w=[{key:"name",name:"Resource",format:(R,j)=>m.jsx(Xd,{resource:j})},{key:"isActive",name:"Status",format:R=>m.jsx(Jp,{status:R?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(R,j)=>{if(j.isBoolean)return vR(j.allocated);const A=j.allocated-R,T=Math.max(A,0)*100/j.allocated;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:`usage bg-${j.color}`,style:{width:`${Math.min(T,100)}%`}}),ga(A,{abbreviate:!0})," of"," ",ga(j.allocated,{abbreviate:!0})," ",j.unit," ","remaining (",Math.round(T),"%)"]})}},{key:"endDate",name:"End Date",format:R=>Hd(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 A=l.currentUser.resourceUsernames[j.resourceId];if(A)return A;if(l.currentUser.resourceAccountPendingIds.includes(j.resourceId))return m.jsx(Jp,{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:I=>{I.preventDefault(),u("users")},children:"Grant access"});const T=m.jsxs(J0,{children:["Please contact ",mR(l)," to request access to this resource."]});return m.jsx(UR,{overlay:T,children:m.jsx("a",{href:"#",onClick:I=>{I.preventDefault()},children:"Request access"})})}}),m.jsxs("div",{className:"overview",children:[x&&!C&&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:[bc(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:bc("chevron-right")})]})]}):null,h.length?m.jsx(su,{columns:w,rows:h}):null]})}const NW=[{key:"role",name:"Role",format:t=>m.jsxs(m.Fragment,{children:[bc(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(" ")}}],IW=({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(su,{rows:l,columns:NW}):null};function AW({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(TW,{requestId:t,grantNumber:r}),l.isManager?m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(IW,{requestId:t,grantNumber:r})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(iW,{requestId:t})})]}):null]})}function Qd(t){"@babel/helpers - typeof";return Qd=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},Qd(t)}function jW(t,r){if(Qd(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r||"default");if(Qd(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function gk(t){var r=jW(t,"string");return Qd(r)=="symbol"?r:String(r)}function zp(t,r,i){return r=gk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function EA(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?EA(Object(i),!0).forEach(function(l){zp(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):EA(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function OW(t){if(Array.isArray(t))return t}function DW(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,x=!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(C){x=!0,u=C}finally{try{if(!y&&i.return!=null&&(v=i.return(),Object(v)!==v))return}finally{if(x)throw u}}return h}}function Uw(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 yk(t,r){if(t){if(typeof t=="string")return Uw(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 Uw(t,r)}}function kW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
296
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function na(t,r){return OW(t)||DW(t,r)||yk(t,r)||kW()}function al(t,r){if(t==null)return{};var i=ER(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 MW=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function bk(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,x=t.onChange,C=t.onInputChange,w=t.onMenuClose,R=t.onMenuOpen,j=t.value,A=al(t,MW),T=k.useState(h!==void 0?h:i),I=na(T,2),M=I[0],F=I[1],V=k.useState(y!==void 0?y:u),U=na(V,2),P=U[0],z=U[1],X=k.useState(j!==void 0?j:v),Y=na(X,2),pe=Y[0],ie=Y[1],ge=k.useCallback(function(ne,Oe){typeof x=="function"&&x(ne,Oe),ie(ne)},[x]),ae=k.useCallback(function(ne,Oe){var G;typeof C=="function"&&(G=C(ne,Oe)),F(G!==void 0?G:ne)},[C]),Re=k.useCallback(function(){typeof R=="function"&&R(),z(!0)},[R]),be=k.useCallback(function(){typeof w=="function"&&w(),z(!1)},[w]),xe=h!==void 0?h:M,Ae=y!==void 0?y:P,Le=j!==void 0?j:pe;return bt(bt({},A),{},{inputValue:xe,menuIsOpen:Ae,onChange:ge,onInputChange:ae,onMenuClose:be,onMenuOpen:Re,value:Le})}function LW(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function wA(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,gk(l.key),l)}}function PW(t,r,i){return r&&wA(t.prototype,r),i&&wA(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function FW(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&&C0(t,r)}function N0(t){return N0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},N0(t)}function xk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xk=function(){return!!t})()}function VW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BW(t,r){if(r&&(Qd(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VW(t)}function zW(t){var r=xk();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 BW(this,u)}}function $W(t){if(Array.isArray(t))return Uw(t)}function UW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function HW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
297
297
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HR(t){return $W(t)||UW(t)||yk(t)||HW()}var Gb={};function GW(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 WW(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 XW=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(WW(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:
|
|
298
|
-
`+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=GW(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-",GR="comm",WR="rule",XR="decl",YW="@import",Ck="@keyframes",ZW="@layer",qW=Math.abs,Q0=String.fromCharCode,JW=Object.assign;function QW(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 Sk(t){return t.trim()}function KW(t,r){return(t=r.exec(t))?t[0]:t}function bn(t,r,i){return t.replace(r,i)}function Hw(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 YR(t){return t.length}function Wb(t,r){return r.push(t),t}function e5(t,r){return t.map(r).join("")}var K0=1,Qp=1,Ek=0,Oi=0,kr=0,oh="";function ex(t,r,i,l,u,d,v){return{value:t,root:r,parent:i,type:l,props:u,children:d,line:K0,column:Qp,length:v,return:""}}function dm(t,r){return JW(ex("",null,null,"",null,null,0),t,{length:-t.length},r)}function t5(){return kr}function n5(){return kr=Oi>0?ma(oh,--Oi):0,Qp--,kr===10&&(Qp=1,K0--),kr}function Yi(){return kr=Oi<Ek?ma(oh,Oi++):0,Qp++,kr===10&&(Qp=1,K0++),kr}function rl(){return ma(oh,Oi)}function o0(){return Oi}function zm(t,r){return Im(oh,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 wk(t){return K0=Qp=1,Ek=el(oh=t),Oi=0,[]}function Rk(t){return oh="",t}function s0(t){return Sk(zm(Oi-1,Gw(t===91?t+2:t===40?t+1:t)))}function r5(t){for(;(kr=rl())&&kr<33;)Yi();return Am(t)>2||Am(kr)>3?"":" "}function a5(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 Gw(t){for(;Yi();)switch(kr){case t:return Oi;case 34:case 39:t!==34&&t!==39&&Gw(kr);break;case 40:t===41&&Gw(t);break;case 92:Yi();break}return Oi}function i5(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 o5(t){for(;!Am(rl());)Yi();return zm(t,Oi)}function s5(t){return Rk(l0("",null,null,null,[""],t=wk(t),0,[0],t))}function l0(t,r,i,l,u,d,v,h,y){for(var x=0,C=0,w=v,R=0,j=0,N=0,T=1,A=1,M=1,F=0,V="",U=u,P=d,z=l,X=V;A;)switch(N=F,F=Yi()){case 40:if(N!=108&&ma(X,w-1)==58){Hw(X+=bn(s0(F),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:X+=s0(F);break;case 9:case 10:case 13:case 32:X+=r5(N);break;case 92:X+=a5(o0()-1,7);continue;case 47:switch(rl()){case 42:case 47:Wb(l5(i5(Yi(),o0()),r,i),y);break;default:X+="/"}break;case 123*T:h[x++]=el(X)*M;case 125*T:case 59:case 0:switch(F){case 0:case 125:A=0;case 59+C:M==-1&&(X=bn(X,/\f/g,"")),j>0&&el(X)-w&&Wb(j>32?_A(X+";",l,i,w-1):_A(bn(X," ","")+";",l,i,w-2),y);break;case 59:X+=";";default:if(Wb(z=RA(X,r,i,x,C,u,h,V,U=[],P=[],w),d),F===123)if(C===0)l0(X,r,z,z,U,d,w,h,P);else switch(R===99&&ma(X,3)===110?100:R){case 100:case 108:case 109:case 115:l0(t,z,z,l&&Wb(RA(t,z,z,0,0,u,h,V,u,U=[],w),P),u,P,w,h,l?U:P);break;default:l0(X,z,z,z,[""],P,0,h,P)}}x=C=j=0,T=M=1,V=X="",w=v;break;case 58:w=1+el(X),j=N;default:if(T<1){if(F==123)--T;else if(F==125&&T++==0&&n5()==125)continue}switch(X+=Q0(F),F*T){case 38:M=C>0?1:(X+="\f",-1);break;case 44:h[x++]=(el(X)-1)*M,M=1;break;case 64:rl()===45&&(X+=s0(Yi())),R=rl(),C=w=el(V=X+=o5(o0())),F++;break;case 45:N===45&&el(X)==2&&(T=0)}}return d}function RA(t,r,i,l,u,d,v,h,y,x,C){for(var w=u-1,R=u===0?d:[""],j=YR(R),N=0,T=0,A=0;N<l;++N)for(var M=0,F=Im(t,w+1,w=qW(T=v[N])),V=t;M<j;++M)(V=Sk(T>0?R[M]+" "+F:bn(F,/&\f/g,R[M])))&&(y[A++]=V);return ex(t,r,i,u===0?WR:h,y,x,C)}function l5(t,r,i){return ex(t,r,i,GR,Q0(t5()),Im(t,2,-2),0)}function _A(t,r,i,l){return ex(t,r,i,XR,Im(t,0,l),Im(t,l+1,-1),l)}function Up(t,r){for(var i="",l=YR(t),u=0;u<l;u++)i+=r(t[u],u,t,r)||"";return i}function u5(t,r,i,l){switch(t.type){case ZW:if(t.children.length)break;case YW:case XR:return t.return=t.return||t.value;case GR:return"";case Ck:return t.return=t.value+"{"+Up(t.children,l)+"}";case WR:t.value=t.props.join(",")}return el(i=Up(t.children,l))?t.return=t.value+"{"+i+"}":""}function c5(t){var r=YR(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 d5(t){return function(r){r.root||(r=r.return)&&t(r)}}function f5(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var fm={},p5=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)},h5=function(r,i){var l=-1,u=44;do switch(Am(u)){case 0:u===38&&rl()===12&&(i[l]=1),r[l]+=p5(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},v5=function(r,i){return Rk(h5(wk(r),i))},TA=new WeakMap,m5=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&&!TA.get(l))&&!u){TA.set(r,!0);for(var d=[],v=v5(i,d),h=l.props,y=0,x=0;y<v.length;y++)for(var C=0;C<h.length;C++,x++)r.props[x]=d[y]?v[y].replace(/&\f/g,h[C]):h[C]+" "+v[y]}}},g5=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},y5="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",b5=function(r){return r.type==="comm"&&r.children.indexOf(y5)>-1},x5=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 x=h[y];if(x.line<i.line)break;if(x.column<i.column){if(b5(x))return;break}}d.forEach(function(C){console.error('The pseudo class "'+C+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+C.split("-child")[0]+'-of-type".')})}}}},_k=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},C5=function(r,i){for(var l=r-1;l>=0;l--)if(!_k(i[l]))return!0;return!1},NA=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},S5=function(r,i,l){_k(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."),NA(r)):C5(i,l)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),NA(r)))};function Tk(t,r){switch(QW(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~Hw(t,"stretch")?Tk(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-(~Hw(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 E5=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case XR:r.return=Tk(r.value,r.length);break;case Ck:return Up([dm(r,{value:bn(r.value,"@","@"+yn)})],u);case WR:if(r.length)return e5(r.props,function(d){switch(KW(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Up([dm(r,{props:[bn(d,/:(read-\w+)/,":"+I0+"$1")]})],u);case"::placeholder":return Up([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""})}},w5=[E5],R5=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.
|
|
299
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(T){var
|
|
298
|
+
`+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=GW(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-",GR="comm",WR="rule",XR="decl",YW="@import",Ck="@keyframes",ZW="@layer",qW=Math.abs,Q0=String.fromCharCode,JW=Object.assign;function QW(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 Sk(t){return t.trim()}function KW(t,r){return(t=r.exec(t))?t[0]:t}function bn(t,r,i){return t.replace(r,i)}function Hw(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 YR(t){return t.length}function Wb(t,r){return r.push(t),t}function e5(t,r){return t.map(r).join("")}var K0=1,Qp=1,Ek=0,Oi=0,kr=0,oh="";function ex(t,r,i,l,u,d,v){return{value:t,root:r,parent:i,type:l,props:u,children:d,line:K0,column:Qp,length:v,return:""}}function dm(t,r){return JW(ex("",null,null,"",null,null,0),t,{length:-t.length},r)}function t5(){return kr}function n5(){return kr=Oi>0?ma(oh,--Oi):0,Qp--,kr===10&&(Qp=1,K0--),kr}function Yi(){return kr=Oi<Ek?ma(oh,Oi++):0,Qp++,kr===10&&(Qp=1,K0++),kr}function rl(){return ma(oh,Oi)}function o0(){return Oi}function zm(t,r){return Im(oh,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 wk(t){return K0=Qp=1,Ek=el(oh=t),Oi=0,[]}function Rk(t){return oh="",t}function s0(t){return Sk(zm(Oi-1,Gw(t===91?t+2:t===40?t+1:t)))}function r5(t){for(;(kr=rl())&&kr<33;)Yi();return Am(t)>2||Am(kr)>3?"":" "}function a5(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 Gw(t){for(;Yi();)switch(kr){case t:return Oi;case 34:case 39:t!==34&&t!==39&&Gw(kr);break;case 40:t===41&&Gw(t);break;case 92:Yi();break}return Oi}function i5(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 o5(t){for(;!Am(rl());)Yi();return zm(t,Oi)}function s5(t){return Rk(l0("",null,null,null,[""],t=wk(t),0,[0],t))}function l0(t,r,i,l,u,d,v,h,y){for(var x=0,C=0,w=v,R=0,j=0,A=0,T=1,I=1,M=1,F=0,V="",U=u,P=d,z=l,X=V;I;)switch(A=F,F=Yi()){case 40:if(A!=108&&ma(X,w-1)==58){Hw(X+=bn(s0(F),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:X+=s0(F);break;case 9:case 10:case 13:case 32:X+=r5(A);break;case 92:X+=a5(o0()-1,7);continue;case 47:switch(rl()){case 42:case 47:Wb(l5(i5(Yi(),o0()),r,i),y);break;default:X+="/"}break;case 123*T:h[x++]=el(X)*M;case 125*T:case 59:case 0:switch(F){case 0:case 125:I=0;case 59+C:M==-1&&(X=bn(X,/\f/g,"")),j>0&&el(X)-w&&Wb(j>32?_A(X+";",l,i,w-1):_A(bn(X," ","")+";",l,i,w-2),y);break;case 59:X+=";";default:if(Wb(z=RA(X,r,i,x,C,u,h,V,U=[],P=[],w),d),F===123)if(C===0)l0(X,r,z,z,U,d,w,h,P);else switch(R===99&&ma(X,3)===110?100:R){case 100:case 108:case 109:case 115:l0(t,z,z,l&&Wb(RA(t,z,z,0,0,u,h,V,u,U=[],w),P),u,P,w,h,l?U:P);break;default:l0(X,z,z,z,[""],P,0,h,P)}}x=C=j=0,T=M=1,V=X="",w=v;break;case 58:w=1+el(X),j=A;default:if(T<1){if(F==123)--T;else if(F==125&&T++==0&&n5()==125)continue}switch(X+=Q0(F),F*T){case 38:M=C>0?1:(X+="\f",-1);break;case 44:h[x++]=(el(X)-1)*M,M=1;break;case 64:rl()===45&&(X+=s0(Yi())),R=rl(),C=w=el(V=X+=o5(o0())),F++;break;case 45:A===45&&el(X)==2&&(T=0)}}return d}function RA(t,r,i,l,u,d,v,h,y,x,C){for(var w=u-1,R=u===0?d:[""],j=YR(R),A=0,T=0,I=0;A<l;++A)for(var M=0,F=Im(t,w+1,w=qW(T=v[A])),V=t;M<j;++M)(V=Sk(T>0?R[M]+" "+F:bn(F,/&\f/g,R[M])))&&(y[I++]=V);return ex(t,r,i,u===0?WR:h,y,x,C)}function l5(t,r,i){return ex(t,r,i,GR,Q0(t5()),Im(t,2,-2),0)}function _A(t,r,i,l){return ex(t,r,i,XR,Im(t,0,l),Im(t,l+1,-1),l)}function Up(t,r){for(var i="",l=YR(t),u=0;u<l;u++)i+=r(t[u],u,t,r)||"";return i}function u5(t,r,i,l){switch(t.type){case ZW:if(t.children.length)break;case YW:case XR:return t.return=t.return||t.value;case GR:return"";case Ck:return t.return=t.value+"{"+Up(t.children,l)+"}";case WR:t.value=t.props.join(",")}return el(i=Up(t.children,l))?t.return=t.value+"{"+i+"}":""}function c5(t){var r=YR(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 d5(t){return function(r){r.root||(r=r.return)&&t(r)}}function f5(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var fm={},p5=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)},h5=function(r,i){var l=-1,u=44;do switch(Am(u)){case 0:u===38&&rl()===12&&(i[l]=1),r[l]+=p5(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},v5=function(r,i){return Rk(h5(wk(r),i))},TA=new WeakMap,m5=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&&!TA.get(l))&&!u){TA.set(r,!0);for(var d=[],v=v5(i,d),h=l.props,y=0,x=0;y<v.length;y++)for(var C=0;C<h.length;C++,x++)r.props[x]=d[y]?v[y].replace(/&\f/g,h[C]):h[C]+" "+v[y]}}},g5=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},y5="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",b5=function(r){return r.type==="comm"&&r.children.indexOf(y5)>-1},x5=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 x=h[y];if(x.line<i.line)break;if(x.column<i.column){if(b5(x))return;break}}d.forEach(function(C){console.error('The pseudo class "'+C+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+C.split("-child")[0]+'-of-type".')})}}}},_k=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},C5=function(r,i){for(var l=r-1;l>=0;l--)if(!_k(i[l]))return!0;return!1},NA=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},S5=function(r,i,l){_k(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."),NA(r)):C5(i,l)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),NA(r)))};function Tk(t,r){switch(QW(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~Hw(t,"stretch")?Tk(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-(~Hw(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 E5=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case XR:r.return=Tk(r.value,r.length);break;case Ck:return Up([dm(r,{value:bn(r.value,"@","@"+yn)})],u);case WR:if(r.length)return e5(r.props,function(d){switch(KW(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Up([dm(r,{props:[bn(d,/:(read-\w+)/,":"+I0+"$1")]})],u);case"::placeholder":return Up([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""})}},w5=[E5],R5=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.
|
|
299
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(T){var I=T.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var u=r.stylisPlugins||w5;if(fm.NODE_ENV!=="production"&&/[^a-z-]/.test(i))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+i+'" was passed');var d={},v,h=[];v=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(T){for(var I=T.getAttribute("data-emotion").split(" "),M=1;M<I.length;M++)d[I[M]]=!0;h.push(T)});var y,x=[m5,g5];fm.NODE_ENV!=="production"&&x.push(x5({get compat(){return A.compat}}),S5);{var C,w=[u5,fm.NODE_ENV!=="production"?function(T){T.root||(T.return?C.insert(T.return):T.value&&T.type!==GR&&C.insert(T.value+"{}"))}:d5(function(T){C.insert(T)})],R=c5(x.concat(u,w)),j=function(I){return Up(s5(I),R)};y=function(I,M,F,V){C=F,fm.NODE_ENV!=="production"&&M.map!==void 0&&(C={insert:function(P){F.insert(P+M.map)}}),j(I?I+"{"+M.styles+"}":M.styles),V&&(A.inserted[M.name]=!0)}}var A={key:i,sheet:new XW({key:i,container:v,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:d,registered:{},insert:y};return A.sheet.hydrate(h),A},Nk=yR(),_5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ik={};Ik[Nk.ForwardRef]=_5;Ik[Nk.Memo]=T5;var N5=!0;function Ak(t,r,i){var l="";return i.split(" ").forEach(function(u){t[u]!==void 0?r.push(t[u]+";"):l+=u+" "}),l}var ZR=function(r,i,l){var u=r.key+"-"+i.name;(l===!1||N5===!1)&&r.registered[u]===void 0&&(r.registered[u]=i.styles)},qR=function(r,i,l){ZR(r,i,l);var u=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var d=i;do r.insert(i===d?"."+u:"",d,r.sheet,!0),d=d.next;while(d!==void 0)}};function I5(t){for(var r=0,i,l=0,u=t.length;u>=4;++l,u-=4)i=t.charCodeAt(l)&255|(t.charCodeAt(++l)&255)<<8|(t.charCodeAt(++l)&255)<<16|(t.charCodeAt(++l)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(t.charCodeAt(l+2)&255)<<16;case 2:r^=(t.charCodeAt(l+1)&255)<<8;case 1:r^=t.charCodeAt(l)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var A5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ro={},IA=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
300
300
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
301
301
|
You can read more about this here:
|
|
302
302
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,j5="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",O5=/[A-Z]|^ms/g,jk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,JR=function(r){return r.charCodeAt(1)===45},AA=function(r){return r!=null&&typeof r!="boolean"},tw=f5(function(t){return JR(t)?t:t.replace(O5,"-$&").toLowerCase()}),A0=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(jk,function(l,u,d){return cs={name:u,styles:d,next:cs},u})}return A5[r]!==1&&!JR(r)&&typeof i=="number"&&i!==0?i+"px":i};if(Ro.NODE_ENV!=="production"){var D5=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,k5=["normal","none","initial","inherit","unset"],M5=A0,L5=/^-ms-/,P5=/-(.)/g,jA={};A0=function(r,i){if(r==="content"&&(typeof i!="string"||k5.indexOf(i)===-1&&!D5.test(i)&&(i.charAt(0)!==i.charAt(i.length-1)||i.charAt(0)!=='"'&&i.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+i+"\"'`");var l=M5(r,i);return l!==""&&!JR(r)&&r.indexOf("-")!==-1&&jA[r]===void 0&&(jA[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(L5,"ms-").replace(P5,function(u,d){return d.toUpperCase()})+"?")),l}}var Ok="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function jm(t,r,i){if(i==null)return"";if(i.__emotion_styles!==void 0){if(Ro.NODE_ENV!=="production"&&i.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Ok);return i}switch(typeof i){case"boolean":return"";case"object":{if(i.anim===1)return cs={name:i.name,styles:i.styles,next:cs},i.name;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)cs={name:l.name,styles:l.styles,next:cs},l=l.next;var u=i.styles+";";return Ro.NODE_ENV!=="production"&&i.map!==void 0&&(u+=i.map),u}return F5(t,r,i)}case"function":{if(t!==void 0){var d=cs,v=i(t);return cs=d,jm(t,r,v)}else Ro.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(Ro.NODE_ENV!=="production"){var h=[],y=i.replace(jk,function(C,w,R){var j="animation"+h.length;return h.push("const "+j+" = keyframes`"+R.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+j+"}"});h.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(h,["`"+y+"`"]).join(`
|
|
@@ -305,7 +305,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
305
305
|
You should wrap it with \`css\` like this:
|
|
306
306
|
|
|
307
307
|
`+("css`"+y+"`"))}break}if(r==null)return i;var x=r[i];return x!==void 0?x:i}function F5(t,r,i){var l="";if(Array.isArray(i))for(var u=0;u<i.length;u++)l+=jm(t,r,i[u])+";";else for(var d in i){var v=i[d];if(typeof v!="object")r!=null&&r[v]!==void 0?l+=d+"{"+r[v]+"}":AA(v)&&(l+=tw(d)+":"+A0(d,v)+";");else{if(d==="NO_COMPONENT_SELECTOR"&&Ro.NODE_ENV!=="production")throw new Error(Ok);if(Array.isArray(v)&&typeof v[0]=="string"&&(r==null||r[v[0]]===void 0))for(var h=0;h<v.length;h++)AA(v[h])&&(l+=tw(d)+":"+A0(d,v[h])+";");else{var y=jm(t,r,v);switch(d){case"animation":case"animationName":{l+=tw(d)+":"+y+";";break}default:Ro.NODE_ENV!=="production"&&d==="undefined"&&console.error(j5),l+=d+"{"+y+"}"}}}}return l}var OA=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Dk;Ro.NODE_ENV!=="production"&&(Dk=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var cs,Om=function(r,i,l){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var u=!0,d="";cs=void 0;var v=r[0];v==null||v.raw===void 0?(u=!1,d+=jm(l,i,v)):(Ro.NODE_ENV!=="production"&&v[0]===void 0&&console.error(IA),d+=v[0]);for(var h=1;h<r.length;h++)d+=jm(l,i,r[h]),u&&(Ro.NODE_ENV!=="production"&&v[h]===void 0&&console.error(IA),d+=v[h]);var y;Ro.NODE_ENV!=="production"&&(d=d.replace(Dk,function(R){return y=R,""})),OA.lastIndex=0;for(var x="",C;(C=OA.exec(d))!==null;)x+="-"+C[1];var w=I5(d)+x;return Ro.NODE_ENV!=="production"?{name:w,styles:d,map:y,next:cs,toString:function(){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)."}}:{name:w,styles:d,next:cs}},V5=function(r){return r()},kk=v0.useInsertionEffect?v0.useInsertionEffect:!1,Mk=kk||V5,DA=kk||k.useLayoutEffect,Kd={},QR={}.hasOwnProperty,KR=k.createContext(typeof HTMLElement<"u"?R5({key:"css"}):null);Kd.NODE_ENV!=="production"&&(KR.displayName="EmotionCacheContext");KR.Provider;var e1=function(r){return k.forwardRef(function(i,l){var u=k.useContext(KR);return r(i,u,l)})},tx=k.createContext({});Kd.NODE_ENV!=="production"&&(tx.displayName="EmotionThemeContext");var kA=function(r){var i=r.split(".");return i[i.length-1]},B5=function(r){var i=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);if(i||(i=/^([A-Za-z0-9$.]+)@/.exec(r),i))return kA(i[1])},z5=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),$5=function(r){return r.replace(/\$/g,"-")},U5=function(r){if(r)for(var i=r.split(`
|
|
308
|
-
`),l=0;l<i.length;l++){var u=B5(i[l]);if(u){if(z5.has(u))break;if(/^[A-Z]/.test(u))return $5(u)}}},Ww="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",H5=function(r,i){if(Kd.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[Ww]=r,Kd.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=U5(new Error().stack);d&&(l[Xw]=d)}return l},G5=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return ZR(i,l,u),Mk(function(){return qR(i,l,u)}),null},Lk=e1(function(t,r,i){var l=t.css;typeof l=="string"&&r.registered[l]!==void 0&&(l=r.registered[l]);var u=t[Ww],d=[l],v="";typeof t.className=="string"?v=Ak(r.registered,d,t.className):t.className!=null&&(v=t.className+" ");var h=Om(d,void 0,k.useContext(tx));if(Kd.NODE_ENV!=="production"&&h.name.indexOf("-")===-1){var y=t[Xw];y&&(h=Om([h,"label:"+y+";"]))}v+=r.key+"-"+h.name;var x={};for(var C in t)QR.call(t,C)&&C!=="css"&&C!==Ww&&(Kd.NODE_ENV==="production"||C!==Xw)&&(x[C]=t[C]);return x.ref=i,x.className=v,k.createElement(k.Fragment,null,k.createElement(G5,{cache:r,serialized:h,isStringTag:typeof u=="string"}),k.createElement(u,x))});Kd.NODE_ENV!=="production"&&(Lk.displayName="EmotionCssPropInternal");var W5=Lk,ef={},X5={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]=W5,d[1]=H5(r,i);for(var v=2;v<u;v++)d[v]=l[v];return k.createElement.apply(null,d)},MA=!1,Y5=e1(function(t,r){ef.NODE_ENV!=="production"&&!MA&&(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?"),MA=!0);var i=t.styles,l=Om([i],void 0,k.useContext(tx)),u=k.useRef();return DA(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]),DA(function(){var d=u.current,v=d[0],h=d[1];if(h){d[1]=!1;return}if(l.next!==void 0&&qR(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});ef.NODE_ENV!=="production"&&(Y5.displayName="EmotionGlobal");function t1(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Om(r)}var Z5=function(){var r=t1.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_"}}},q5=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{ef.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 J5(t,r,i){var l=[],u=Ak(t,l,i);return l.length<2?i:u+r(l)}var Q5=function(r){var i=r.cache,l=r.serializedArr;return Mk(function(){for(var u=0;u<l.length;u++)qR(i,l[u],!1)}),null},K5=e1(function(t,r){var i=!1,l=[],u=function(){if(i&&ef.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var x=arguments.length,C=new Array(x),w=0;w<x;w++)C[w]=arguments[w];var R=Om(C,r.registered);return l.push(R),ZR(r,R,!1),r.key+"-"+R.name},d=function(){if(i&&ef.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var x=arguments.length,C=new Array(x),w=0;w<x;w++)C[w]=arguments[w];return J5(r.registered,u,q5(C))},v={css:u,cx:d,theme:k.useContext(tx)},h=t.children(v);return i=!0,k.createElement(k.Fragment,null,k.createElement(Q5,{cache:r,serializedArr:l}),h)});ef.NODE_ENV!=="production"&&(K5.displayName="EmotionClassNames");if(ef.NODE_ENV!=="production"){var LA=!0,eX=typeof jest<"u"||typeof vi<"u";if(LA&&!eX){var PA=typeof globalThis<"u"?globalThis:LA?window:global,FA="__EMOTION_REACT_"+X5.version.split(".")[0]+"__";PA[FA]&&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."),PA[FA]=!0}}function tX(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}const nX=Math.min,rX=Math.max,j0=Math.round,Xb=Math.floor,O0=t=>({x:t,y:t});function aX(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Pk(t){return Vk(t)?(t.nodeName||"").toLowerCase():"#document"}function fs(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Fk(t){var r;return(r=(Vk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Vk(t){return t instanceof Node||t instanceof fs(t).Node}function Yw(t){return t instanceof Element||t instanceof fs(t).Element}function n1(t){return t instanceof HTMLElement||t instanceof fs(t).HTMLElement}function VA(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fs(t).ShadowRoot}function Bk(t){const{overflow:r,overflowX:i,overflowY:l,display:u}=r1(t);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!["inline","contents"].includes(u)}function iX(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oX(t){return["html","body","#document"].includes(Pk(t))}function r1(t){return fs(t).getComputedStyle(t)}function sX(t){if(Pk(t)==="html")return t;const r=t.assignedSlot||t.parentNode||VA(t)&&t.host||Fk(t);return VA(r)?r.host:r}function zk(t){const r=sX(t);return oX(r)?t.ownerDocument?t.ownerDocument.body:t.body:n1(r)&&Bk(r)?r:zk(r)}function D0(t,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const u=zk(t),d=u===((l=t.ownerDocument)==null?void 0:l.body),v=fs(u);return d?r.concat(v,v.visualViewport||[],Bk(u)?u:[],v.frameElement&&i?D0(v.frameElement):[]):r.concat(u,D0(u,[],i))}function lX(t){const r=r1(t);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const u=n1(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 a1(t){return Yw(t)?t:t.contextElement}function nw(t){const r=a1(t);if(!n1(r))return O0(1);const i=r.getBoundingClientRect(),{width:l,height:u,$:d}=lX(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 uX=O0(0);function cX(t){const r=fs(t);return!iX()||!r.visualViewport?uX:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function dX(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(t)?!1:r}function BA(t,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const u=t.getBoundingClientRect(),d=a1(t);let v=O0(1);r&&(l?Yw(l)&&(v=nw(l)):v=nw(t));const h=dX(d,i,l)?cX(d):O0(0);let y=(u.left+h.x)/v.x,x=(u.top+h.y)/v.y,C=u.width/v.x,w=u.height/v.y;if(d){const R=fs(d),j=l&&Yw(l)?fs(l):l;let N=R.frameElement;for(;N&&l&&j!==R;){const T=nw(N),A=N.getBoundingClientRect(),M=r1(N),F=A.left+(N.clientLeft+parseFloat(M.paddingLeft))*T.x,V=A.top+(N.clientTop+parseFloat(M.paddingTop))*T.y;y*=T.x,x*=T.y,C*=T.x,w*=T.y,y+=F,x+=V,N=fs(N).frameElement}}return aX({width:C,height:w,x:y,y:x})}function fX(t,r){let i=null,l;const u=Fk(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:x,top:C,width:w,height:R}=t.getBoundingClientRect();if(h||r(),!w||!R)return;const j=Xb(C),N=Xb(u.clientWidth-(x+w)),T=Xb(u.clientHeight-(C+R)),A=Xb(x),F={rootMargin:-j+"px "+-N+"px "+-T+"px "+-A+"px",threshold:rX(0,nX(1,y))||1};let V=!0;function U(P){const z=P[0].intersectionRatio;if(z!==y){if(!V)return v();z?v(!1,z):l=setTimeout(()=>{v(!1,1e-7)},100)}V=!1}try{i=new IntersectionObserver(U,{...F,root:u.ownerDocument})}catch{i=new IntersectionObserver(U,F)}i.observe(t)}return v(!0),d}function pX(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,x=a1(t),C=u||d?[...x?D0(x):[],...D0(r)]:[];C.forEach(M=>{u&&M.addEventListener("scroll",i,{passive:!0}),d&&M.addEventListener("resize",i)});const w=x&&h?fX(x,i):null;let R=-1,j=null;v&&(j=new ResizeObserver(M=>{let[F]=M;F&&F.target===x&&j&&(j.unobserve(r),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var V;(V=j)==null||V.observe(r)})),i()}),x&&!y&&j.observe(x),j.observe(r));let N,T=y?BA(t):null;y&&A();function A(){const M=BA(t);T&&(M.x!==T.x||M.y!==T.y||M.width!==T.width||M.height!==T.height)&&i(),T=M,N=requestAnimationFrame(A)}return i(),()=>{var M;C.forEach(F=>{u&&F.removeEventListener("scroll",i),d&&F.removeEventListener("resize",i)}),w==null||w(),(M=j)==null||M.disconnect(),j=null,y&&cancelAnimationFrame(N)}}var Zw=k.useLayoutEffect,qw={},hX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],k0=function(){};function vX(t,r){return r?r[0]==="-"?t+r:t+"__"+r:t}function mX(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(vX(t,v)));return d.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var zA=function(r){return _X(r)?r.filter(Boolean):Qd(r)==="object"&&r!==null?[r]:[]},$k=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,hX);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 gX(t,r,i){if(i){var l=i(t,r);if(typeof l=="string")return l}return t}function nx(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function yX(t){return nx(t)?window.innerHeight:t.clientHeight}function Uk(t){return nx(t)?window.pageYOffset:t.scrollTop}function M0(t,r){if(nx(t)){window.scrollTo(0,r);return}t.scrollTop=r}function bX(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 xX(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=Uk(t),d=r-u,v=10,h=0;function y(){h+=v;var x=xX(h,u,d,i);M0(t,x),h<i?window.requestAnimationFrame(y):l(t)}y()}function $A(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 CX(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 UA(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function SX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Hk=!1,EX={get passive(){return Hk=!0}},Zb=typeof window<"u"?window:{};Zb.addEventListener&&Zb.removeEventListener&&(Zb.addEventListener("p",k0,EX),Zb.removeEventListener("p",k0,!1));var wX=Hk;function RX(t){return t!=null}function _X(t){return Array.isArray(t)}function qb(t,r,i){return t?r:i}var TX=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),x=y[0],C=y[1];return v[x]=C,v},{})},NX=["children","innerProps"],IX=["children","innerProps"];function AX(t){var r=t.maxHeight,i=t.menuEl,l=t.minHeight,u=t.placement,d=t.shouldScroll,v=t.isFixedPosition,h=t.controlHeight,y=bX(i),x={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return x;var C=y.getBoundingClientRect(),w=C.height,R=i.getBoundingClientRect(),j=R.bottom,N=R.height,T=R.top,A=i.offsetParent.getBoundingClientRect(),M=A.top,F=v?window.innerHeight:yX(y),V=Uk(y),U=parseInt(getComputedStyle(i).marginBottom,10),P=parseInt(getComputedStyle(i).marginTop,10),z=M-P,X=F-T,Y=z+V,pe=w-V-T,ie=j-F+V+U,ge=V+T-P,ae=160;switch(u){case"auto":case"bottom":if(X>=N)return{placement:"bottom",maxHeight:r};if(pe>=N&&!v)return d&&Yb(y,ie,ae),{placement:"bottom",maxHeight:r};if(!v&&pe>=l||v&&X>=l){d&&Yb(y,ie,ae);var Re=v?X-U:pe-U;return{placement:"bottom",maxHeight:Re}}if(u==="auto"||v){var be=r,xe=v?z:Y;return xe>=l&&(be=Math.min(xe-U-h,r)),{placement:"top",maxHeight:be}}if(u==="bottom")return d&&M0(y,ie),{placement:"bottom",maxHeight:r};break;case"top":if(z>=N)return{placement:"top",maxHeight:r};if(Y>=N&&!v)return d&&Yb(y,ge,ae),{placement:"top",maxHeight:r};if(!v&&Y>=l||v&&z>=l){var Ae=r;return(!v&&Y>=l||v&&z>=l)&&(Ae=v?z-P:Y-P),d&&Yb(y,ge,ae),{placement:"top",maxHeight:Ae}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(u,'".'))}return x}function jX(t){var r={bottom:"top",top:"bottom"};return t?r[t]:"bottom"}var Gk=function(r){return r==="auto"?"bottom":r},OX=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"},zp(l,jX(u),"100%"),zp(l,"position","absolute"),zp(l,"width","100%"),zp(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})},Wk=k.createContext(null),DX=function(r){var i=r.children,l=r.minMenuHeight,u=r.maxMenuHeight,d=r.menuPlacement,v=r.menuPosition,h=r.menuShouldScrollIntoView,y=r.theme,x=k.useContext(Wk)||{},C=x.setPortalPlacement,w=k.useRef(null),R=k.useState(u),j=na(R,2),N=j[0],T=j[1],A=k.useState(null),M=na(A,2),F=M[0],V=M[1],U=y.spacing.controlHeight;return Zw(function(){var P=w.current;if(P){var z=v==="fixed",X=h&&!z,Y=AX({maxHeight:u,menuEl:P,minHeight:l,placement:d,shouldScroll:X,isFixedPosition:z,controlHeight:U});T(Y.maxHeight),V(Y.placement),C==null||C(Y.placement)}},[u,d,v,h,l,C,U]),i({ref:w,placerProps:bt(bt({},r),{},{placement:F||Gk(d),maxHeight:N})})},kX=function(r){var i=r.children,l=r.innerRef,u=r.innerProps;return wt("div",Tt({},br(r,"menu",{menu:!0}),{ref:l},u),i)},MX=kX,LX=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})},PX=function(r){var i=r.children,l=r.innerProps,u=r.innerRef,d=r.isMulti;return wt("div",Tt({},br(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:u},l),i)},Xk=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")})},FX=Xk,VX=Xk,BX=function(r){var i=r.children,l=i===void 0?"No options":i,u=r.innerProps,d=al(r,NX);return wt("div",Tt({},br(bt(bt({},d),{},{children:l,innerProps:u}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),u),l)},zX=function(r){var i=r.children,l=i===void 0?"Loading...":i,u=r.innerProps,d=al(r,IX);return wt("div",Tt({},br(bt(bt({},d),{},{children:l,innerProps:u}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),u),l)},$X=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}},UX=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),x=k.useRef(null),C=k.useState(Gk(v)),w=na(C,2),R=w[0],j=w[1],N=k.useMemo(function(){return{setPortalPlacement:j}},[]),T=k.useState(null),A=na(T,2),M=A[0],F=A[1],V=k.useCallback(function(){if(u){var X=CX(u),Y=h==="fixed"?0:window.pageYOffset,pe=X[R]+Y;(pe!==(M==null?void 0:M.offset)||X.left!==(M==null?void 0:M.rect.left)||X.width!==(M==null?void 0:M.rect.width))&&F({offset:pe,rect:X})}},[u,h,R,M==null?void 0:M.offset,M==null?void 0:M.rect.left,M==null?void 0:M.rect.width]);Zw(function(){V()},[V]);var U=k.useCallback(function(){typeof x.current=="function"&&(x.current(),x.current=null),u&&y.current&&(x.current=pX(u,y.current,V,{elementResize:"ResizeObserver"in window}))},[u,V]);Zw(function(){U()},[U]);var P=k.useCallback(function(X){y.current=X,U()},[U]);if(!i&&h!=="fixed"||!M)return null;var z=wt("div",Tt({ref:P},br(bt(bt({},r),{},{offset:M.offset,position:h,rect:M.rect}),"menuPortal",{"menu-portal":!0}),d),l);return wt(Wk.Provider,{value:N},i?aR.createPortal(z,i):z)},HX=function(r){var i=r.isDisabled,l=r.isRtl;return{label:"container",direction:l?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},GX=function(r){var i=r.children,l=r.innerProps,u=r.isDisabled,d=r.isRtl;return wt("div",Tt({},br(r,"container",{"--is-disabled":u,"--is-rtl":d}),l),i)},WX=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")})},XX=function(r){var i=r.children,l=r.innerProps,u=r.isMulti,d=r.hasValue;return wt("div",Tt({},br(r,"valueContainer",{"value-container":!0,"value-container--is-multi":u,"value-container--has-value":d}),l),i)},YX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ZX=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"indicatorsContainer",{indicators:!0}),l),i)},HA,qX=["size"],JX=["innerProps","isRtl","size"];function QX(){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 KX=qw.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:QX},Yk=function(r){var i=r.size,l=al(r,qX);return wt("svg",Tt({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:KX},l))},i1=function(r){return wt(Yk,Tt({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"}))},Zk=function(r){return wt(Yk,Tt({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"}))},qk=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}})},eY=qk,tY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),l),i||wt(Zk,null))},nY=qk,rY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),l),i||wt(i1,null))},aY=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})},iY=function(r){var i=r.innerProps;return wt("span",Tt({},i,br(r,"indicatorSeparator",{"indicator-separator":!0})))},oY=Z5(HA||(HA=tX([`
|
|
308
|
+
`),l=0;l<i.length;l++){var u=B5(i[l]);if(u){if(z5.has(u))break;if(/^[A-Z]/.test(u))return $5(u)}}},Ww="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",H5=function(r,i){if(Kd.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[Ww]=r,Kd.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=U5(new Error().stack);d&&(l[Xw]=d)}return l},G5=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return ZR(i,l,u),Mk(function(){return qR(i,l,u)}),null},Lk=e1(function(t,r,i){var l=t.css;typeof l=="string"&&r.registered[l]!==void 0&&(l=r.registered[l]);var u=t[Ww],d=[l],v="";typeof t.className=="string"?v=Ak(r.registered,d,t.className):t.className!=null&&(v=t.className+" ");var h=Om(d,void 0,k.useContext(tx));if(Kd.NODE_ENV!=="production"&&h.name.indexOf("-")===-1){var y=t[Xw];y&&(h=Om([h,"label:"+y+";"]))}v+=r.key+"-"+h.name;var x={};for(var C in t)QR.call(t,C)&&C!=="css"&&C!==Ww&&(Kd.NODE_ENV==="production"||C!==Xw)&&(x[C]=t[C]);return x.ref=i,x.className=v,k.createElement(k.Fragment,null,k.createElement(G5,{cache:r,serialized:h,isStringTag:typeof u=="string"}),k.createElement(u,x))});Kd.NODE_ENV!=="production"&&(Lk.displayName="EmotionCssPropInternal");var W5=Lk,ef={},X5={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]=W5,d[1]=H5(r,i);for(var v=2;v<u;v++)d[v]=l[v];return k.createElement.apply(null,d)},MA=!1,Y5=e1(function(t,r){ef.NODE_ENV!=="production"&&!MA&&(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?"),MA=!0);var i=t.styles,l=Om([i],void 0,k.useContext(tx)),u=k.useRef();return DA(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]),DA(function(){var d=u.current,v=d[0],h=d[1];if(h){d[1]=!1;return}if(l.next!==void 0&&qR(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});ef.NODE_ENV!=="production"&&(Y5.displayName="EmotionGlobal");function t1(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Om(r)}var Z5=function(){var r=t1.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_"}}},q5=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{ef.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 J5(t,r,i){var l=[],u=Ak(t,l,i);return l.length<2?i:u+r(l)}var Q5=function(r){var i=r.cache,l=r.serializedArr;return Mk(function(){for(var u=0;u<l.length;u++)qR(i,l[u],!1)}),null},K5=e1(function(t,r){var i=!1,l=[],u=function(){if(i&&ef.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var x=arguments.length,C=new Array(x),w=0;w<x;w++)C[w]=arguments[w];var R=Om(C,r.registered);return l.push(R),ZR(r,R,!1),r.key+"-"+R.name},d=function(){if(i&&ef.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var x=arguments.length,C=new Array(x),w=0;w<x;w++)C[w]=arguments[w];return J5(r.registered,u,q5(C))},v={css:u,cx:d,theme:k.useContext(tx)},h=t.children(v);return i=!0,k.createElement(k.Fragment,null,k.createElement(Q5,{cache:r,serializedArr:l}),h)});ef.NODE_ENV!=="production"&&(K5.displayName="EmotionClassNames");if(ef.NODE_ENV!=="production"){var LA=!0,eX=typeof jest<"u"||typeof vi<"u";if(LA&&!eX){var PA=typeof globalThis<"u"?globalThis:LA?window:global,FA="__EMOTION_REACT_"+X5.version.split(".")[0]+"__";PA[FA]&&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."),PA[FA]=!0}}function tX(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}const nX=Math.min,rX=Math.max,j0=Math.round,Xb=Math.floor,O0=t=>({x:t,y:t});function aX(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Pk(t){return Vk(t)?(t.nodeName||"").toLowerCase():"#document"}function fs(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Fk(t){var r;return(r=(Vk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Vk(t){return t instanceof Node||t instanceof fs(t).Node}function Yw(t){return t instanceof Element||t instanceof fs(t).Element}function n1(t){return t instanceof HTMLElement||t instanceof fs(t).HTMLElement}function VA(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fs(t).ShadowRoot}function Bk(t){const{overflow:r,overflowX:i,overflowY:l,display:u}=r1(t);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!["inline","contents"].includes(u)}function iX(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oX(t){return["html","body","#document"].includes(Pk(t))}function r1(t){return fs(t).getComputedStyle(t)}function sX(t){if(Pk(t)==="html")return t;const r=t.assignedSlot||t.parentNode||VA(t)&&t.host||Fk(t);return VA(r)?r.host:r}function zk(t){const r=sX(t);return oX(r)?t.ownerDocument?t.ownerDocument.body:t.body:n1(r)&&Bk(r)?r:zk(r)}function D0(t,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const u=zk(t),d=u===((l=t.ownerDocument)==null?void 0:l.body),v=fs(u);return d?r.concat(v,v.visualViewport||[],Bk(u)?u:[],v.frameElement&&i?D0(v.frameElement):[]):r.concat(u,D0(u,[],i))}function lX(t){const r=r1(t);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const u=n1(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 a1(t){return Yw(t)?t:t.contextElement}function nw(t){const r=a1(t);if(!n1(r))return O0(1);const i=r.getBoundingClientRect(),{width:l,height:u,$:d}=lX(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 uX=O0(0);function cX(t){const r=fs(t);return!iX()||!r.visualViewport?uX:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function dX(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(t)?!1:r}function BA(t,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const u=t.getBoundingClientRect(),d=a1(t);let v=O0(1);r&&(l?Yw(l)&&(v=nw(l)):v=nw(t));const h=dX(d,i,l)?cX(d):O0(0);let y=(u.left+h.x)/v.x,x=(u.top+h.y)/v.y,C=u.width/v.x,w=u.height/v.y;if(d){const R=fs(d),j=l&&Yw(l)?fs(l):l;let A=R.frameElement;for(;A&&l&&j!==R;){const T=nw(A),I=A.getBoundingClientRect(),M=r1(A),F=I.left+(A.clientLeft+parseFloat(M.paddingLeft))*T.x,V=I.top+(A.clientTop+parseFloat(M.paddingTop))*T.y;y*=T.x,x*=T.y,C*=T.x,w*=T.y,y+=F,x+=V,A=fs(A).frameElement}}return aX({width:C,height:w,x:y,y:x})}function fX(t,r){let i=null,l;const u=Fk(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:x,top:C,width:w,height:R}=t.getBoundingClientRect();if(h||r(),!w||!R)return;const j=Xb(C),A=Xb(u.clientWidth-(x+w)),T=Xb(u.clientHeight-(C+R)),I=Xb(x),F={rootMargin:-j+"px "+-A+"px "+-T+"px "+-I+"px",threshold:rX(0,nX(1,y))||1};let V=!0;function U(P){const z=P[0].intersectionRatio;if(z!==y){if(!V)return v();z?v(!1,z):l=setTimeout(()=>{v(!1,1e-7)},100)}V=!1}try{i=new IntersectionObserver(U,{...F,root:u.ownerDocument})}catch{i=new IntersectionObserver(U,F)}i.observe(t)}return v(!0),d}function pX(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,x=a1(t),C=u||d?[...x?D0(x):[],...D0(r)]:[];C.forEach(M=>{u&&M.addEventListener("scroll",i,{passive:!0}),d&&M.addEventListener("resize",i)});const w=x&&h?fX(x,i):null;let R=-1,j=null;v&&(j=new ResizeObserver(M=>{let[F]=M;F&&F.target===x&&j&&(j.unobserve(r),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var V;(V=j)==null||V.observe(r)})),i()}),x&&!y&&j.observe(x),j.observe(r));let A,T=y?BA(t):null;y&&I();function I(){const M=BA(t);T&&(M.x!==T.x||M.y!==T.y||M.width!==T.width||M.height!==T.height)&&i(),T=M,A=requestAnimationFrame(I)}return i(),()=>{var M;C.forEach(F=>{u&&F.removeEventListener("scroll",i),d&&F.removeEventListener("resize",i)}),w==null||w(),(M=j)==null||M.disconnect(),j=null,y&&cancelAnimationFrame(A)}}var Zw=k.useLayoutEffect,qw={},hX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],k0=function(){};function vX(t,r){return r?r[0]==="-"?t+r:t+"__"+r:t}function mX(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(vX(t,v)));return d.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var zA=function(r){return _X(r)?r.filter(Boolean):Qd(r)==="object"&&r!==null?[r]:[]},$k=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,hX);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 gX(t,r,i){if(i){var l=i(t,r);if(typeof l=="string")return l}return t}function nx(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function yX(t){return nx(t)?window.innerHeight:t.clientHeight}function Uk(t){return nx(t)?window.pageYOffset:t.scrollTop}function M0(t,r){if(nx(t)){window.scrollTo(0,r);return}t.scrollTop=r}function bX(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 xX(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=Uk(t),d=r-u,v=10,h=0;function y(){h+=v;var x=xX(h,u,d,i);M0(t,x),h<i?window.requestAnimationFrame(y):l(t)}y()}function $A(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 CX(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 UA(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function SX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Hk=!1,EX={get passive(){return Hk=!0}},Zb=typeof window<"u"?window:{};Zb.addEventListener&&Zb.removeEventListener&&(Zb.addEventListener("p",k0,EX),Zb.removeEventListener("p",k0,!1));var wX=Hk;function RX(t){return t!=null}function _X(t){return Array.isArray(t)}function qb(t,r,i){return t?r:i}var TX=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),x=y[0],C=y[1];return v[x]=C,v},{})},NX=["children","innerProps"],IX=["children","innerProps"];function AX(t){var r=t.maxHeight,i=t.menuEl,l=t.minHeight,u=t.placement,d=t.shouldScroll,v=t.isFixedPosition,h=t.controlHeight,y=bX(i),x={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return x;var C=y.getBoundingClientRect(),w=C.height,R=i.getBoundingClientRect(),j=R.bottom,A=R.height,T=R.top,I=i.offsetParent.getBoundingClientRect(),M=I.top,F=v?window.innerHeight:yX(y),V=Uk(y),U=parseInt(getComputedStyle(i).marginBottom,10),P=parseInt(getComputedStyle(i).marginTop,10),z=M-P,X=F-T,Y=z+V,pe=w-V-T,ie=j-F+V+U,ge=V+T-P,ae=160;switch(u){case"auto":case"bottom":if(X>=A)return{placement:"bottom",maxHeight:r};if(pe>=A&&!v)return d&&Yb(y,ie,ae),{placement:"bottom",maxHeight:r};if(!v&&pe>=l||v&&X>=l){d&&Yb(y,ie,ae);var Re=v?X-U:pe-U;return{placement:"bottom",maxHeight:Re}}if(u==="auto"||v){var be=r,xe=v?z:Y;return xe>=l&&(be=Math.min(xe-U-h,r)),{placement:"top",maxHeight:be}}if(u==="bottom")return d&&M0(y,ie),{placement:"bottom",maxHeight:r};break;case"top":if(z>=A)return{placement:"top",maxHeight:r};if(Y>=A&&!v)return d&&Yb(y,ge,ae),{placement:"top",maxHeight:r};if(!v&&Y>=l||v&&z>=l){var Ae=r;return(!v&&Y>=l||v&&z>=l)&&(Ae=v?z-P:Y-P),d&&Yb(y,ge,ae),{placement:"top",maxHeight:Ae}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(u,'".'))}return x}function jX(t){var r={bottom:"top",top:"bottom"};return t?r[t]:"bottom"}var Gk=function(r){return r==="auto"?"bottom":r},OX=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"},zp(l,jX(u),"100%"),zp(l,"position","absolute"),zp(l,"width","100%"),zp(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})},Wk=k.createContext(null),DX=function(r){var i=r.children,l=r.minMenuHeight,u=r.maxMenuHeight,d=r.menuPlacement,v=r.menuPosition,h=r.menuShouldScrollIntoView,y=r.theme,x=k.useContext(Wk)||{},C=x.setPortalPlacement,w=k.useRef(null),R=k.useState(u),j=na(R,2),A=j[0],T=j[1],I=k.useState(null),M=na(I,2),F=M[0],V=M[1],U=y.spacing.controlHeight;return Zw(function(){var P=w.current;if(P){var z=v==="fixed",X=h&&!z,Y=AX({maxHeight:u,menuEl:P,minHeight:l,placement:d,shouldScroll:X,isFixedPosition:z,controlHeight:U});T(Y.maxHeight),V(Y.placement),C==null||C(Y.placement)}},[u,d,v,h,l,C,U]),i({ref:w,placerProps:bt(bt({},r),{},{placement:F||Gk(d),maxHeight:A})})},kX=function(r){var i=r.children,l=r.innerRef,u=r.innerProps;return wt("div",Tt({},br(r,"menu",{menu:!0}),{ref:l},u),i)},MX=kX,LX=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})},PX=function(r){var i=r.children,l=r.innerProps,u=r.innerRef,d=r.isMulti;return wt("div",Tt({},br(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:u},l),i)},Xk=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")})},FX=Xk,VX=Xk,BX=function(r){var i=r.children,l=i===void 0?"No options":i,u=r.innerProps,d=al(r,NX);return wt("div",Tt({},br(bt(bt({},d),{},{children:l,innerProps:u}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),u),l)},zX=function(r){var i=r.children,l=i===void 0?"Loading...":i,u=r.innerProps,d=al(r,IX);return wt("div",Tt({},br(bt(bt({},d),{},{children:l,innerProps:u}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),u),l)},$X=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}},UX=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),x=k.useRef(null),C=k.useState(Gk(v)),w=na(C,2),R=w[0],j=w[1],A=k.useMemo(function(){return{setPortalPlacement:j}},[]),T=k.useState(null),I=na(T,2),M=I[0],F=I[1],V=k.useCallback(function(){if(u){var X=CX(u),Y=h==="fixed"?0:window.pageYOffset,pe=X[R]+Y;(pe!==(M==null?void 0:M.offset)||X.left!==(M==null?void 0:M.rect.left)||X.width!==(M==null?void 0:M.rect.width))&&F({offset:pe,rect:X})}},[u,h,R,M==null?void 0:M.offset,M==null?void 0:M.rect.left,M==null?void 0:M.rect.width]);Zw(function(){V()},[V]);var U=k.useCallback(function(){typeof x.current=="function"&&(x.current(),x.current=null),u&&y.current&&(x.current=pX(u,y.current,V,{elementResize:"ResizeObserver"in window}))},[u,V]);Zw(function(){U()},[U]);var P=k.useCallback(function(X){y.current=X,U()},[U]);if(!i&&h!=="fixed"||!M)return null;var z=wt("div",Tt({ref:P},br(bt(bt({},r),{},{offset:M.offset,position:h,rect:M.rect}),"menuPortal",{"menu-portal":!0}),d),l);return wt(Wk.Provider,{value:A},i?aR.createPortal(z,i):z)},HX=function(r){var i=r.isDisabled,l=r.isRtl;return{label:"container",direction:l?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},GX=function(r){var i=r.children,l=r.innerProps,u=r.isDisabled,d=r.isRtl;return wt("div",Tt({},br(r,"container",{"--is-disabled":u,"--is-rtl":d}),l),i)},WX=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")})},XX=function(r){var i=r.children,l=r.innerProps,u=r.isMulti,d=r.hasValue;return wt("div",Tt({},br(r,"valueContainer",{"value-container":!0,"value-container--is-multi":u,"value-container--has-value":d}),l),i)},YX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ZX=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"indicatorsContainer",{indicators:!0}),l),i)},HA,qX=["size"],JX=["innerProps","isRtl","size"];function QX(){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 KX=qw.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:QX},Yk=function(r){var i=r.size,l=al(r,qX);return wt("svg",Tt({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:KX},l))},i1=function(r){return wt(Yk,Tt({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"}))},Zk=function(r){return wt(Yk,Tt({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"}))},qk=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}})},eY=qk,tY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),l),i||wt(Zk,null))},nY=qk,rY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),l),i||wt(i1,null))},aY=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})},iY=function(r){var i=r.innerProps;return wt("span",Tt({},i,br(r,"indicatorSeparator",{"indicator-separator":!0})))},oY=Z5(HA||(HA=tX([`
|
|
309
309
|
0%, 80%, 100% { opacity: 0; }
|
|
310
310
|
40% { opacity: 1; }
|
|
311
|
-
`]))),sY=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:t1({animation:"".concat(oY," 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"},qw.NODE_ENV==="production"?"":";label:LoadingDot;",qw.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 */")})},lY=function(r){var i=r.innerProps,l=r.isRtl,u=r.size,d=u===void 0?4:u,v=al(r,JX);return wt("div",Tt({},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}))},uY=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}})},cY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.innerRef,v=r.innerProps,h=r.menuIsOpen;return wt("div",Tt({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)},dY=cY,fY=["data"],pY=function(r,i){var l=r.theme.spacing;return i?{}:{paddingBottom:l.baseUnit*2,paddingTop:l.baseUnit*2}},hY=function(r){var i=r.children,l=r.cx,u=r.getStyles,d=r.getClassNames,v=r.Heading,h=r.headingProps,y=r.innerProps,x=r.label,C=r.theme,w=r.selectProps;return wt("div",Tt({},br(r,"group",{group:!0}),y),wt(v,Tt({},h,{selectProps:w,theme:C,getStyles:u,getClassNames:d,cx:l}),x),wt("div",null,i))},vY=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"})},mY=function(r){var i=$k(r);i.data;var l=al(i,fY);return wt("div",Tt({},br(r,"groupHeading",{"group-heading":!0}),l))},gY=hY,yY=["innerRef","isDisabled","isHidden","inputClassName"],bY=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)":""},xY),i?{}:{margin:v.baseUnit/2,paddingBottom:v.baseUnit/2,paddingTop:v.baseUnit/2,color:h.neutral80})},Jk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},xY={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"},Jk)},CY=function(r){return bt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Jk)},SY=function(r){var i=r.cx,l=r.value,u=$k(r),d=u.innerRef,v=u.isDisabled,h=u.isHidden,y=u.inputClassName,x=al(u,yY);return wt("div",Tt({},br(r,"input",{"input-container":!0}),{"data-value":l||""}),wt("input",Tt({className:i({input:!0},y),ref:d,style:CY(h),disabled:v},x)))},EY=SY,wY=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})},RY=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})},_Y=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}})},Qk=function(r){var i=r.children,l=r.innerProps;return wt("div",l,i)},TY=Qk,NY=Qk;function IY(t){var r=t.children,i=t.innerProps;return wt("div",Tt({role:"button"},i),r||wt(i1,{size:14}))}var AY=function(r){var i=r.children,l=r.components,u=r.data,d=r.innerProps,v=r.isDisabled,h=r.removeProps,y=r.selectProps,x=l.Container,C=l.Label,w=l.Remove;return wt(x,{data:u,innerProps:bt(bt({},br(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":v})),d),selectProps:y},wt(C,{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}))},jY=AY,OY=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}})},DY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.isSelected,v=r.innerRef,h=r.innerProps;return wt("div",Tt({},br(r,"option",{option:!0,"option--is-disabled":l,"option--is-focused":u,"option--is-selected":d}),{ref:v,"aria-disabled":l},h),i)},kY=DY,MY=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})},LY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"placeholder",{placeholder:!0}),l),i)},PY=LY,FY=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})},VY=function(r){var i=r.children,l=r.isDisabled,u=r.innerProps;return wt("div",Tt({},br(r,"singleValue",{"single-value":!0,"single-value--is-disabled":l}),u),i)},BY=VY,zY={ClearIndicator:rY,Control:dY,DropdownIndicator:tY,DownChevron:Zk,CrossIcon:i1,Group:gY,GroupHeading:mY,IndicatorsContainer:ZX,IndicatorSeparator:iY,Input:EY,LoadingIndicator:lY,Menu:MX,MenuList:PX,MenuPortal:UX,LoadingMessage:zX,NoOptionsMessage:BX,MultiValue:jY,MultiValueContainer:TY,MultiValueLabel:NY,MultiValueRemove:IY,Option:kY,Placeholder:PY,SelectContainer:GX,SingleValue:BY,ValueContainer:XX},$Y=function(r){return bt(bt({},zY),r.components)},GA=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function UY(t,r){return!!(t===r||GA(t)&&GA(r))}function HY(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!UY(t[i],r[i]))return!1;return!0}function GY(t,r){r===void 0&&(r=HY);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 WY(){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 XY=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:WY},YY=function(r){return wt("span",Tt({css:XY},r))},WA=YY,ZY={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,x=r.isSelected,C=r.isAppleDevice,w=function(T,A){return T&&T.length?"".concat(T.indexOf(A)+1," of ").concat(T.length):""};if(i==="value"&&h)return"value ".concat(v," focused, ").concat(w(h,l),".");if(i==="menu"&&C){var R=y?" disabled":"",j="".concat(x?" 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:"",".")}},qY=function(r){var i=r.ariaSelection,l=r.focusedOption,u=r.focusedValue,d=r.focusableOptions,v=r.isFocused,h=r.selectValue,y=r.selectProps,x=r.id,C=r.isAppleDevice,w=y.ariaLiveMessages,R=y.getOptionLabel,j=y.inputValue,N=y.isMulti,T=y.isOptionDisabled,A=y.isSearchable,M=y.menuIsOpen,F=y.options,V=y.screenReaderStatus,U=y.tabSelectsValue,P=y.isLoading,z=y["aria-label"],X=y["aria-live"],Y=k.useMemo(function(){return bt(bt({},ZY),w||{})},[w]),pe=k.useMemo(function(){var xe="";if(i&&Y.onChange){var Ae=i.option,Le=i.options,ne=i.removedValue,Oe=i.removedValues,G=i.value,Z=function(de){return Array.isArray(de)?null:de},re=ne||Ae||Z(G),Ce=re?R(re):"",we=Le||Oe||void 0,Te=we?we.map(R):[],Ie=bt({isDisabled:re&&T(re,h),label:Ce,labels:Te},i);xe=Y.onChange(Ie)}return xe},[i,Y,T,h,R]),ie=k.useMemo(function(){var xe="",Ae=l||u,Le=!!(l&&h&&h.includes(l));if(Ae&&Y.onFocus){var ne={focused:Ae,label:R(Ae),isDisabled:T(Ae,h),isSelected:Le,options:d,context:Ae===l?"menu":"value",selectValue:h,isAppleDevice:C};xe=Y.onFocus(ne)}return xe},[l,u,R,T,Y,d,h,C]),ge=k.useMemo(function(){var xe="";if(M&&F.length&&!P&&Y.onFilter){var Ae=V({count:d.length});xe=Y.onFilter({inputValue:j,resultsMessage:Ae})}return xe},[d,j,M,Y,F,V,P]),ae=(i==null?void 0:i.action)==="initial-input-focus",Re=k.useMemo(function(){var xe="";if(Y.guidance){var Ae=u?"value":M?"menu":"input";xe=Y.guidance({"aria-label":z,context:Ae,isDisabled:l&&T(l,h),isMulti:N,isSearchable:A,tabSelectsValue:U,isInitialFocus:ae})}return xe},[z,l,u,N,T,A,M,Y,h,U,ae]),be=wt(k.Fragment,null,wt("span",{id:"aria-selection"},pe),wt("span",{id:"aria-focused"},ie),wt("span",{id:"aria-results"},ge),wt("span",{id:"aria-guidance"},Re));return wt(k.Fragment,null,wt(WA,{id:x},ae&&be),wt(WA,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},v&&!ae&&be))},JY=qY,Jw=[{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źẑżžẓẕƶȥɀⱬꝣ"}],QY=new RegExp("["+Jw.map(function(t){return t.letters}).join("")+"]","g"),Kk={};for(var aw=0;aw<Jw.length;aw++)for(var iw=Jw[aw],ow=0;ow<iw.letters.length;ow++)Kk[iw.letters[ow]]=iw.base;var eM=function(r){return r.replace(QY,function(i){return Kk[i]})},KY=GY(eM),XA=function(r){return r.replace(/^\s+|\s+$/g,"")},eZ=function(r){return"".concat(r.label," ").concat(r.value)},tZ=function(r){return function(i,l){if(i.data.__isNew__)return!0;var u=bt({ignoreCase:!0,ignoreAccents:!0,stringify:eZ,trim:!0,matchFrom:"any"},r),d=u.ignoreCase,v=u.ignoreAccents,h=u.stringify,y=u.trim,x=u.matchFrom,C=y?XA(l):l,w=y?XA(h(i)):h(i);return d&&(C=C.toLowerCase(),w=w.toLowerCase()),v&&(C=KY(C),w=eM(w)),x==="start"?w.substr(0,C.length)===C:w.indexOf(C)>-1}},nZ=["innerRef"];function rZ(t){var r=t.innerRef,i=al(t,nZ),l=TX(i,"onExited","in","enter","exit","appear");return wt("input",Tt({ref:r},l,{css:t1({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 aZ=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function iZ(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),x=k.useRef(null),C=k.useCallback(function(A,M){if(x.current!==null){var F=x.current,V=F.scrollTop,U=F.scrollHeight,P=F.clientHeight,z=x.current,X=M>0,Y=U-P-V,pe=!1;Y>M&&v.current&&(l&&l(A),v.current=!1),X&&h.current&&(d&&d(A),h.current=!1),X&&M>Y?(i&&!v.current&&i(A),z.scrollTop=U,pe=!0,v.current=!0):!X&&-M>V&&(u&&!h.current&&u(A),z.scrollTop=0,pe=!0,h.current=!0),pe&&aZ(A)}},[i,l,u,d]),w=k.useCallback(function(A){C(A,A.deltaY)},[C]),R=k.useCallback(function(A){y.current=A.changedTouches[0].clientY},[]),j=k.useCallback(function(A){var M=y.current-A.changedTouches[0].clientY;C(A,M)},[C]),N=k.useCallback(function(A){if(A){var M=wX?{passive:!1}:!1;A.addEventListener("wheel",w,M),A.addEventListener("touchstart",R,M),A.addEventListener("touchmove",j,M)}},[j,R,w]),T=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=x.current;return N(A),function(){T(A)}}},[r,N,T]),function(A){x.current=A}}var YA=["boxSizing","height","overflow","paddingRight","position"],ZA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function qA(t){t.preventDefault()}function JA(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 KA(){return"ontouchstart"in window||navigator.maxTouchPoints}var ej=!!(typeof window<"u"&&window.document&&window.document.createElement),pm=0,Bp={capture:!1,passive:!1};function oZ(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(ej){var x=document.body,C=x&&x.style;if(l&&YA.forEach(function(N){var T=C&&C[N];u.current[N]=T}),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(ZA).forEach(function(N){var T=ZA[N];C&&(C[N]=T)}),C&&(C.paddingRight="".concat(j,"px"))}x&&KA()&&(x.addEventListener("touchmove",qA,Bp),y&&(y.addEventListener("touchstart",QA,Bp),y.addEventListener("touchmove",JA,Bp))),pm+=1}},[l]),h=k.useCallback(function(y){if(ej){var x=document.body,C=x&&x.style;pm=Math.max(pm-1,0),l&&pm<1&&YA.forEach(function(w){var R=u.current[w];C&&(C[w]=R)}),x&&KA()&&(x.removeEventListener("touchmove",qA,Bp),y&&(y.removeEventListener("touchstart",QA,Bp),y.removeEventListener("touchmove",JA,Bp)))}},[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 sZ(){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 lZ=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},uZ=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:sZ};function cZ(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,x=iZ({isEnabled:u,onBottomArrive:d,onBottomLeave:v,onTopArrive:h,onTopLeave:y}),C=oZ({isEnabled:i}),w=function(j){x(j),C(j)};return wt(k.Fragment,null,i&&wt("div",{onClick:lZ,css:uZ}),r(w))}function dZ(){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 fZ=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:dZ},pZ=function(r){var i=r.name,l=r.onFocus;return wt("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:l,css:fZ,value:"",onChange:function(){}})},hZ=pZ;function o1(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 vZ(){return o1(/^iPhone/i)}function tM(){return o1(/^Mac/i)}function mZ(){return o1(/^iPad/i)||tM()&&navigator.maxTouchPoints>1}function gZ(){return vZ()||mZ()}function yZ(){return tM()||gZ()}var bZ=function(r){return r.label},xZ=function(r){return r.label},CZ=function(r){return r.value},SZ=function(r){return!!r.isDisabled},EZ={clearIndicator:nY,container:HX,control:uY,dropdownIndicator:eY,group:pY,groupHeading:vY,indicatorsContainer:YX,indicatorSeparator:aY,input:bY,loadingIndicator:sY,loadingMessage:VX,menu:OX,menuList:LX,menuPortal:$X,multiValue:wY,multiValueLabel:RY,multiValueRemove:_Y,noOptionsMessage:FX,option:OY,placeholder:MY,singleValue:FY,valueContainer:WX},wZ={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%)"},RZ=4,nM=4,_Z=38,TZ=nM*2,NZ={baseUnit:nM,controlHeight:_Z,menuGutter:TZ},sw={borderRadius:RZ,colors:wZ,spacing:NZ},IZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:UA(),captureMenuScroll:!UA(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:tZ(),formatGroupLabel:bZ,getOptionLabel:xZ,getOptionValue:CZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:SZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!SX(),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 tj(t,r,i,l){var u=iM(t,r,i),d=oM(t,r,i),v=aM(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 tj(t,v,r,h)}).filter(function(v){return rj(t,v)});return u.length>0?{type:"group",data:i,options:u,index:l}:void 0}var d=tj(t,i,r,l);return rj(t,d)?d:void 0}).filter(RX)}function rM(t){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,HR(i.options.map(function(l){return l.data}))):r.push(i.data),r},[])}function nj(t,r){return t.reduce(function(i,l){return l.type==="group"?i.push.apply(i,HR(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 AZ(t,r){return rM(u0(t,r))}function rj(t,r){var i=t.inputValue,l=i===void 0?"":i,u=r.data,d=r.isSelected,v=r.label,h=r.value;return(!lM(t)||!d)&&sM(t,{label:v,value:h,data:u},l)}function jZ(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 OZ(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},aM=function(r,i){return r.getOptionLabel(i)},L0=function(r,i){return r.getOptionValue(i)};function iM(t,r,i){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(r,i):!1}function oM(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 sM(t,r,i){return t.filterOption?t.filterOption(r,i):!0}var lM=function(r){var i=r.hideSelectedOptions,l=r.isMulti;return i===void 0?l:i},DZ=1,s1=function(t){FW(i,t);var r=zW(i);function i(l){var u;if(LW(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=yZ(),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,x){var C=u.props,w=C.onChange,R=C.name;x.name=R,u.ariaOnChange(y,x),w(y,x)},u.setValue=function(y,x,C){var w=u.props,R=w.closeMenuOnSelect,j=w.isMulti,N=w.inputValue;u.onInputChange("",{action:"set-value",prevInputValue:N}),R&&(u.setState({inputIsHiddenAfterUpdate:!j}),u.onMenuClose()),u.setState({clearFocusValueOnUpdate:!0}),u.onChange(y,{action:x,option:C})},u.selectOption=function(y){var x=u.props,C=x.blurInputOnSelect,w=x.isMulti,R=x.name,j=u.state.selectValue,N=w&&u.isOptionSelected(y,j),T=u.isOptionDisabled(y,j);if(N){var A=u.getOptionValue(y);u.setValue(j.filter(function(M){return u.getOptionValue(M)!==A}),"deselect-option",y)}else if(!T)w?u.setValue([].concat(HR(j),[y]),"select-option",y):u.setValue(y,"select-option");else{u.ariaOnChange(y,{action:"select-option",option:y,name:R});return}C&&u.blurInput()},u.removeValue=function(y){var x=u.props.isMulti,C=u.state.selectValue,w=u.getOptionValue(y),R=C.filter(function(N){return u.getOptionValue(N)!==w}),j=qb(x,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,x=u.state.selectValue,C=x[x.length-1],w=x.slice(0,x.length-1),R=qb(y,w,w[0]||null);u.onChange(R,{action:"pop-value",removedValue:C})},u.getFocusedOptionId=function(y){return lw(u.state.focusableOptionsWithIds,y)},u.getFocusableOptionsWithIds=function(){return nj(u0(u.props,u.state.selectValue),u.getElementId("option"))},u.getValue=function(){return u.state.selectValue},u.cx=function(){for(var y=arguments.length,x=new Array(y),C=0;C<y;C++)x[C]=arguments[C];return mX.apply(void 0,[u.props.classNamePrefix].concat(x))},u.getOptionLabel=function(y){return aM(u.props,y)},u.getOptionValue=function(y){return L0(u.props,y)},u.getStyles=function(y,x){var C=u.props.unstyled,w=EZ[y](x,C);w.boxSizing="border-box";var R=u.props.styles[y];return R?R(w,x):w},u.getClassNames=function(y,x){var C,w;return(C=(w=u.props.classNames)[y])===null||C===void 0?void 0:C.call(w,x)},u.getElementId=function(y){return"".concat(u.state.instancePrefix,"-").concat(y)},u.getComponents=function(){return $Y(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 rM(u.buildCategorizedOptions())},u.getFocusableOptions=function(){return u.props.menuIsOpen?u.buildFocusableOptions():[]},u.ariaOnChange=function(y,x){u.setState({ariaSelection:bt({value:y},x)})},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 x=u.props.openMenuOnClick;u.state.isFocused?u.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&u.onMenuClose():x&&u.openMenu("first"):(x&&(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 x=u.props,C=x.isMulti,w=x.menuIsOpen;u.focusInput(),w?(u.setState({inputIsHiddenAfterUpdate:!C}),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&&nx(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 x=y.touches,C=x&&x.item(0);C&&(u.initialTouchX=C.clientX,u.initialTouchY=C.clientY,u.userIsDragging=!1)},u.onTouchMove=function(y){var x=y.touches,C=x&&x.item(0);if(C){var w=Math.abs(C.clientX-u.initialTouchX),R=Math.abs(C.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 x=u.props.inputValue,C=y.currentTarget.value;u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange(C,{action:"input-change",prevInputValue:x}),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 x=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:x}),u.onMenuClose(),u.setState({focusedValue:null,isFocused:!1})},u.onOptionHover=function(y){if(!(u.blockOptionHover||u.state.focusedOption===y)){var x=u.getFocusableOptions(),C=x.indexOf(y);u.setState({focusedOption:y,focusedOptionId:C>-1?u.getFocusedOptionId(y):null})}},u.shouldHideSelectedOptions=function(){return lM(u.props)},u.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),u.focus()},u.onKeyDown=function(y){var x=u.props,C=x.isMulti,w=x.backspaceRemovesValue,R=x.escapeClearsValue,j=x.inputValue,N=x.isClearable,T=x.isDisabled,A=x.menuIsOpen,M=x.onKeyDown,F=x.tabSelectsValue,V=x.openMenuOnFocus,U=u.state,P=U.focusedOption,z=U.focusedValue,X=U.selectValue;if(!T&&!(typeof M=="function"&&(M(y),y.defaultPrevented))){switch(u.blockOptionHover=!0,y.key){case"ArrowLeft":if(!C||j)return;u.focusValue("previous");break;case"ArrowRight":if(!C||j)return;u.focusValue("next");break;case"Delete":case"Backspace":if(j)return;if(z)u.removeValue(z);else{if(!w)return;C?u.popValue():N&&u.clearValue()}break;case"Tab":if(u.isComposing||y.shiftKey||!A||!F||!P||V&&u.isOptionSelected(P,X))return;u.selectOption(P);break;case"Enter":if(y.keyCode===229)break;if(A){if(!P||u.isComposing)return;u.selectOption(P);break}return;case"Escape":A?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:j}),u.onMenuClose()):N&&R&&u.clearValue();break;case" ":if(j)return;if(!A){u.openMenu("first");break}if(!P)return;u.selectOption(P);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||++DZ),u.state.selectValue=zA(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 PW(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&&$A(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&&($A(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,x=this.buildFocusableOptions(),C=u==="first"?0:x.length-1;if(!this.props.isMulti){var w=x.indexOf(h[0]);w>-1&&(C=w)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:x[C],focusedOptionId:this.getFocusedOptionId(x[C])},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 x=v.length-1,C=-1;if(v.length){switch(u){case"previous":y===0?C=0:y===-1?C=x:C=y-1;break;case"next":y>-1&&y<x&&(C=y+1);break}this.setState({inputIsHidden:C!==-1,focusedValue:v[C]})}}}},{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,x=h.indexOf(v);v||(x=-1),u==="up"?y=x>0?x-1:h.length-1:u==="down"?y=(x+1)%h.length:u==="pageup"?(y=x-d,y<0&&(y=0)):u==="pagedown"?(y=x+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,x=this.selectOption,C=this.setValue,w=this.props,R=w.isMulti,j=w.isRtl,N=w.options,T=this.hasValue();return{clearValue:u,cx:d,getStyles:v,getClassNames:h,getValue:y,hasValue:T,isMulti:R,isRtl:j,options:N,selectOption:x,selectProps:w,setValue:C,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 iM(this.props,u,d)}},{key:"isOptionSelected",value:function(u,d){return oM(this.props,u,d)}},{key:"filterOption",value:function(u,d){return sM(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,x=u.tabIndex,C=u.form,w=u.menuIsOpen,R=u.required,j=this.getComponents(),N=j.Input,T=this.state,A=T.inputIsHidden,M=T.ariaSelection,F=this.commonProps,V=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()?(M==null?void 0:M.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return v?k.createElement(N,Tt({},F,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:V,innerRef:this.getInputRef,isDisabled:d,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:x,form:C,type:"text",value:y},U)):k.createElement(rZ,Tt({id:V,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:k0,onFocus:this.onInputFocus,disabled:d,tabIndex:x,inputMode:"none",form:C,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var u=this,d=this.getComponents(),v=d.MultiValue,h=d.MultiValueContainer,y=d.MultiValueLabel,x=d.MultiValueRemove,C=d.SingleValue,w=d.Placeholder,R=this.commonProps,j=this.props,N=j.controlShouldRenderValue,T=j.isDisabled,A=j.isMulti,M=j.inputValue,F=j.placeholder,V=this.state,U=V.selectValue,P=V.focusedValue,z=V.isFocused;if(!this.hasValue()||!N)return M?null:k.createElement(w,Tt({},R,{key:"placeholder",isDisabled:T,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),F);if(A)return U.map(function(Y,pe){var ie=Y===P,ge="".concat(u.getOptionLabel(Y),"-").concat(u.getOptionValue(Y));return k.createElement(v,Tt({},R,{components:{Container:h,Label:y,Remove:x},isFocused:ie,isDisabled:T,key:ge,index:pe,removeProps:{onClick:function(){return u.removeValue(Y)},onTouchEnd:function(){return u.removeValue(Y)},onMouseDown:function(Re){Re.preventDefault()}},data:Y}),u.formatOptionLabel(Y,"value"))});if(M)return null;var X=U[0];return k.createElement(C,Tt({},R,{data:X,isDisabled:T}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var u=this.getComponents(),d=u.ClearIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||x)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,Tt({},v,{innerProps:w,isFocused:C}))}},{key:"renderLoadingIndicator",value:function(){var u=this.getComponents(),d=u.LoadingIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!d||!x)return null;var w={"aria-hidden":"true"};return k.createElement(d,Tt({},v,{innerProps:w,isDisabled:y,isFocused:C}))}},{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,x=this.state.isFocused;return k.createElement(v,Tt({},h,{isDisabled:y,isFocused:x}))}},{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,x={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,Tt({},v,{innerProps:x,isDisabled:h,isFocused:y}))}},{key:"renderMenu",value:function(){var u=this,d=this.getComponents(),v=d.Group,h=d.GroupHeading,y=d.Menu,x=d.MenuList,C=d.MenuPortal,w=d.LoadingMessage,R=d.NoOptionsMessage,j=d.Option,N=this.commonProps,T=this.state.focusedOption,A=this.props,M=A.captureMenuScroll,F=A.inputValue,V=A.isLoading,U=A.loadingMessage,P=A.minMenuHeight,z=A.maxMenuHeight,X=A.menuIsOpen,Y=A.menuPlacement,pe=A.menuPosition,ie=A.menuPortalTarget,ge=A.menuShouldBlockScroll,ae=A.menuShouldScrollIntoView,Re=A.noOptionsMessage,be=A.onMenuScrollToTop,xe=A.onMenuScrollToBottom;if(!X)return null;var Ae=function(Ce,we){var Te=Ce.type,Ie=Ce.data,ue=Ce.isDisabled,de=Ce.isSelected,Ve=Ce.label,Ge=Ce.value,tt=T===Ie,ot=ue?void 0:function(){return u.onOptionHover(Ie)},je=ue?void 0:function(){return u.selectOption(Ie)},Rt="".concat(u.getElementId("option"),"-").concat(we),dt={id:Rt,onClick:je,onMouseMove:ot,onMouseOver:ot,tabIndex:-1,role:"option","aria-selected":u.isAppleDevice?void 0:de};return k.createElement(j,Tt({},N,{innerProps:dt,data:Ie,isDisabled:ue,isSelected:de,key:Rt,label:Ve,type:Te,value:Ge,isFocused:tt,innerRef:tt?u.getFocusedOptionRef:void 0}),u.formatOptionLabel(Ce.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var Ce=re.data,we=re.options,Te=re.index,Ie="".concat(u.getElementId("group"),"-").concat(Te),ue="".concat(Ie,"-heading");return k.createElement(v,Tt({},N,{key:Ie,data:Ce,options:we,Heading:h,headingProps:{id:ue,data:re.data},label:u.formatGroupLabel(re.data)}),re.options.map(function(de){return Ae(de,"".concat(Te,"-").concat(de.index))}))}else if(re.type==="option")return Ae(re,"".concat(re.index))});else if(V){var ne=U({inputValue:F});if(ne===null)return null;Le=k.createElement(w,N,ne)}else{var Oe=Re({inputValue:F});if(Oe===null)return null;Le=k.createElement(R,N,Oe)}var G={minMenuHeight:P,maxMenuHeight:z,menuPlacement:Y,menuPosition:pe,menuShouldScrollIntoView:ae},Z=k.createElement(DX,Tt({},N,G),function(re){var Ce=re.ref,we=re.placerProps,Te=we.placement,Ie=we.maxHeight;return k.createElement(y,Tt({},N,G,{innerRef:Ce,innerProps:{onMouseDown:u.onMenuMouseDown,onMouseMove:u.onMenuMouseMove},isLoading:V,placement:Te}),k.createElement(cZ,{captureEnabled:M,onTopArrive:be,onBottomArrive:xe,lockEnabled:ge},function(ue){return k.createElement(x,Tt({},N,{innerRef:function(Ve){u.getMenuListRef(Ve),ue(Ve)},innerProps:{role:"listbox","aria-multiselectable":N.isMulti,id:u.getElementId("listbox")},isLoading:V,maxHeight:Ie,focusedOption:T}),Le)}))});return ie||pe==="fixed"?k.createElement(C,Tt({},N,{appendTo:ie,controlElement:this.controlRef,menuPlacement:Y,menuPosition:pe}),Z):Z}},{key:"renderFormField",value:function(){var u=this,d=this.props,v=d.delimiter,h=d.isDisabled,y=d.isMulti,x=d.name,C=d.required,w=this.state.selectValue;if(C&&!this.hasValue()&&!h)return k.createElement(hZ,{name:x,onFocus:this.onValueInputFocus});if(!(!x||h))if(y)if(v){var R=w.map(function(T){return u.getOptionValue(T)}).join(v);return k.createElement("input",{name:x,type:"hidden",value:R})}else{var j=w.length>0?w.map(function(T,A){return k.createElement("input",{key:"i-".concat(A),name:x,type:"hidden",value:u.getOptionValue(T)})}):k.createElement("input",{name:x,type:"hidden",value:""});return k.createElement("div",null,j)}else{var N=w[0]?this.getOptionValue(w[0]):"";return k.createElement("input",{name:x,type:"hidden",value:N})}}},{key:"renderLiveRegion",value:function(){var u=this.commonProps,d=this.state,v=d.ariaSelection,h=d.focusedOption,y=d.focusedValue,x=d.isFocused,C=d.selectValue,w=this.getFocusableOptions();return k.createElement(JY,Tt({},u,{id:this.getElementId("live-region"),ariaSelection:v,focusedOption:h,focusedValue:y,isFocused:x,selectValue:C,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,x=this.props,C=x.className,w=x.id,R=x.isDisabled,j=x.menuIsOpen,N=this.state.isFocused,T=this.commonProps=this.getCommonProps();return k.createElement(h,Tt({},T,{className:C,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:R,isFocused:N}),this.renderLiveRegion(),k.createElement(d,Tt({},T,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:R,isFocused:N,menuIsOpen:j}),k.createElement(y,Tt({},T,{isDisabled:R}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(v,Tt({},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,x=d.ariaSelection,C=d.isFocused,w=d.prevWasFocused,R=d.instancePrefix,j=u.options,N=u.value,T=u.menuIsOpen,A=u.inputValue,M=u.isMulti,F=zA(N),V={};if(v&&(N!==v.value||j!==v.options||T!==v.menuIsOpen||A!==v.inputValue)){var U=T?AZ(u,F):[],P=T?nj(u0(u,F),"".concat(R,"-option")):[],z=h?jZ(d,F):null,X=OZ(d,U),Y=lw(P,X);V={selectValue:F,focusedOption:X,focusedOptionId:Y,focusableOptionsWithIds:P,focusedValue:z,clearFocusValueOnUpdate:!1}}var pe=y!=null&&u!==v?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},ie=x,ge=C&&w;return C&&!ge&&(ie={value:qb(M,F,F[0]||null),options:F,action:"initial-input-focus"},ge=!w),(x==null?void 0:x.action)==="initial-input-focus"&&(ie=null),bt(bt(bt({},V),pe),{},{prevProps:u,ariaSelection:ie,prevWasFocused:ge})}}]),i}(k.Component);s1.defaultProps=IZ;var kZ=k.forwardRef(function(t,r){var i=bk(t);return k.createElement(s1,Tt({ref:r},i))}),l1=kZ;const MZ=`, ${new Date().getFullYear()}`;function aj({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`,x=y;if(u.endDate){const C=u.endDate?` until ${Hd(u.endDate).replace(MZ,"")}`:"";i||(y+=C),x+=C}else i||(y+=" for you"),x+=u.institutionType?` for researchers from ${u.institutionType}`:" for you";return x+=`: ${nO(r.unit,u.unitCost,t.name)}`,m.jsxs("span",{className:`badge text-bg-${v} ms-2`,title:x,style:{cursor:"help"},children:[m.jsx("i",{className:`bi bi-${d} me-1`}),y]})}function Hp({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:x,trigger:C="click",visible:w=!0}){const R=typeof d=="string"||d instanceof String,[j,N]=k.useState(R?localStorage.getItem(d)!="true":d),[T,A]=k.useState(!1);k.useEffect(()=>{setTimeout(()=>A(!0),100)},[]);const M=()=>{R&&localStorage.setItem(d,"true")},F=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:()=>{M(),N(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:m.jsx("i",{className:"bi bi-x-lg"})}),r]});return x&&x.current?m.jsx(mk,{target:x.current,placement:y,show:j&&w&&T,children:F}):m.jsx(UR,{placement:y,onToggle:V=>{M(),N(V)},overlay:F,show:j&&w&&T,trigger:C,children:m.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:m.jsx("i",{className:`bi bi-${u}`})})})}function LZ({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 PZ="_items_c2dbg_1",FZ="_item_c2dbg_1",VZ="_details_c2dbg_14",BZ="_text_c2dbg_20",zZ="_number_c2dbg_35",$Z="_outer_c2dbg_50",UZ="_inner_c2dbg_61",Jl={items:PZ,item:FZ,details:VZ,text:BZ,number:zZ,outer:$Z,inner:UZ},hm=(t,r)=>`${Math.cos(2*Math.PI*t)*r} ${Math.sin(2*Math.PI*t)*r}`;function HZ({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=[],x=[];let C=-.25;const w=[...h,v].map((R,j)=>{if(!R)return null;const N=j+1,A=ww(R)/d,M=R.requested-R.used,F=Math.max(0,M),V=R.isCredit?d/R.exchangeRates.base.unitCost:R.requested,U=V==0?0:100*F/V,z=`var(--bs-${R.isCredit?i:l[j%l.length]})`;if(A>0){const X=C,Y=C+A/2,pe=C+=A,ie=A>.5?1:0,ge=[`M ${hm(X,100)}`,`A 100 100 0 ${ie} 1 ${hm(pe,100)}`,`L ${hm(pe,50)}`,`A 50 50 0 ${ie} 0 ${hm(X,50)}`].join(" "),[ae,Re]=hm(Y,75).split(" ").map(be=>parseFloat(be));y.push(m.jsx("path",{d:ge,style:{fill:z}},R.resourceId)),x.push(m.jsx("circle",{cx:ae,cy:Re,r:"8",fill:"black"},`${R.resourceId}-circle`),m.jsx("text",{x:ae-4,y:Re+4,fill:"white",className:Jl.number,children:N},`${R.resourceId}-text`))}return R.isCredit&&x.push(m.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:m.jsx("div",{className:Jl.text,children:m.jsxs("div",{children:[m.jsx("strong",{children:ga(F,{abbreviate:!0})}),R.unit," available"]})})},"center-text")),m.jsxs("li",{className:Jl.item,children:[m.jsx("span",{className:Jl.number,children:N}),m.jsx("span",{className:`${Jl.outer} ms-2 me-2`,style:{borderColor:z},children:m.jsx("span",{className:Jl.inner,style:{backgroundColor:z,width:`${U}%`}})}),m.jsxs("strong",{className:Jl.name,children:[m.jsx(Xd,{resource:R,userGuide:!1}),": "]}),m.jsxs("span",{className:Jl.details,children:[ga(M,{abbreviate:!0})," ",R.isCredit?null:m.jsxs(m.Fragment,{children:["of ",ga(V,{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,x]})}),m.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:m.jsx("ul",{className:Jl.items,children:w})})]})}const ij=t=>t;function GZ({classes:t,clean:r=ij,format:i=ij,label:l,setValue:u,style:d,value:v}){const h=i(v),[y,x]=k.useState(h);return k.useEffect(()=>{x(h)},[h]),m.jsx("input",{type:"text","aria-label":l,className:`form-control ${t}`,value:y,style:d,onChange:C=>x(C.target.value),onBlur:C=>{const w=r(C.target.value);x(i(w)),u(w)},onKeyDown:C=>{C.code=="Enter"&&(C.preventDefault(),C.target.blur())}})}function WZ({requestId:t,grantNumber:r}){const{request:i,addResource:l,openUsageDetailModal:u,resetResources:d,setResourceRequest:v,setResourcesReason:h,statuses:y,toggleActionsModal:x,toggleConfirmModal:C,toggleResourcesModal:w}=ri(t,r),{project:R}=Ji(r||i&&i.grantNumber),j=k.useRef(null),N=k.useRef(null);if(!i||!R)return;const T="Exchange"in i.allowedActions,A="Renewal"in i.allowedActions,M="Supplement"in i.allowedActions,F=i.exchangeStatus==y.pending,V=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,P=i.exchangeActionId!==null,z=i.resources,X=i.resourcesReason,Y={};for(let ue of z)Y[ue.resourceId]=ue;const pe=()=>{rO(i)>=.75?x():C()},ie=[];for(let ue of z){let de=[];if(ue.requested>0){for(let Ve of ue.requires||[]){let Ge=Y[Ve];if(Ge){if(Ge.requested>0){de=[];break}de.push(Ge)}}de.length&&ie.push(m.jsxs("span",{children:[m.jsx(Xd,{resource:ue,userGuide:!1})," requires"," ",tO(de.map(Ve=>m.jsx(Xd,{resource:Ve,userGuide:!1},Ve.resourceId)),"or"),"."]},ue.resourceId))}}const ge=ie.length>0;let ae;V?ae=m.jsx(Mr,{color:"info",children:"Your exchange request has been submitted."}):P?ae=m.jsx(Mr,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?ae=m.jsx(Mr,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!R.isManager?ae=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",mR(R)," to request a change."]}):ge&&(ae=m.jsxs(Mr,{color:"warning",children:[ie," Please adjust your balance values."]}));const Re=X.length>0;let be=!1,xe=!1;for(let ue of z)if(ue.isNew&&(be=!0),ue.allocated!=ue.requested&&(xe=!0),be&&xe)break;const Ae=z.map(ue=>ue.resourceId),Le={},ne=T&&!V&&!P?i.allowedActions.Exchange.resources.filter(ue=>!Ae.includes(ue.resourceId)).map(ue=>{Le[ue.resourceId]=ue;const de=U0(ue.name),Ve=de.short?`${de.short} (${de.full.replace(/ \([^(]+\)/,"")})`:de.full;return{value:ue.resourceId,label:Ve}}):[],Oe=T?i.allowedActions.Exchange.resources.map(ue=>ue.resourceId):[];let G;const Z=[],re=[];for(let ue of z)ue.isCredit?G=ue:(Z.push(ue),re.push(!V&&!P&&(ue.isNew||ue.allocated!=ue.requested)?Gd.edited:Oe.includes(ue.resourceId)?"":Gd.disabled));const Ce=`Add ${Z.length?"another":"a"} resource to your exchange...`,we=ue=>ue.requested-ue.used,Te=(ue,de)=>{const Ve=de.allocated-de.used,Ge=$p(Number(ue.replace(/[^0-9-.]/g,"")),de.decimalPlaces),tt=Math.min(0,Ve);if(Ge<tt)return tt;let ot=G.requested*G.exchangeRates.base.unitCost;const je=(de.allocated-de.requested)*de.exchangeRates.base.unitCost,Rt=Math.min(ot,je);ot-=Rt;let dt=de.requested-de.used+Rt/de.exchangeRates.base.unitCost;return ot>0&&(dt+=ot/de.exchangeRates.current.unitCost),Ge>dt?$p(dt,de.decimalPlaces,"floor"):Ge},Ie=[{key:"name",name:"Resource",format:(ue,de)=>m.jsx(Xd,{resource:de}),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(ue,de)=>m.jsx(Jp,{status:ue?"Active":de.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(ue,de)=>de.isBoolean?m.jsx(m.Fragment,{children:"—"}):[m.jsx("abbr",{title:nO(ue,de.exchangeRates.base.unitCost,G.name),children:ue},"base"),m.jsx(aj,{creditResource:G,resource:de,short:!0},"discount")]},{key:"used",name:"Usage",class:"text-end",format:(ue,de)=>de.isBoolean?m.jsx(m.Fragment,{children:"—"}):m.jsxs(m.Fragment,{children:[ga(ue),(R.currentUser.resourceIds.includes(de.resourceId)||R.currentUser.resourceAccountInactiveIds.includes(de.resourceId))&&m.jsx(T0,{icon:"table",onClick:()=>u(de.resourceRepositoryKey),target:"_blank",title:`${de.name} Usage Details`})]})}];return T&&Ie.push({key:"requested",name:"Balance",class:"text-end",rowClass:ue=>!V&&!P&&Oe.includes(ue.resourceId)?Gd.input:"",format:(ue,de)=>{const Ve=!V&&!P&&Oe.includes(de.resourceId);return de.isBoolean?m.jsx("input",{className:"form-check-input",type:"checkbox",checked:ue==1,disabled:!Ve,onChange:Ge=>v(de.resourceId,Ge.target.checked?1:0)}):Ve?m.jsx(GZ,{classes:"text-end w-100",clean:Ge=>Te(Ge,de),format:ga,label:`Balance for ${de.name}`,setValue:Ge=>{v(de.resourceId,Ge+de.used)},style:{padding:"0.1rem 0.5rem"},value:we(de)}):ga(we(de))},formatHeader:ue=>m.jsxs(m.Fragment,{children:[ue,!V&&!P?m.jsx(Hp,{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:[ae,z.length?m.jsx(HZ,{requestId:t}):null,G&&(T||A||M)?m.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[m.jsxs("span",{children:[bc(Jt.resourceTypeIcons.credit)," ",ga(G.requested,G)," ",G.unit," available to exchange"]}),A||M?m.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:pe,children:[bc(Jt.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,Z.length?m.jsx(su,{columns:Ie,rows:Z,rowClasses:re,classes:ne.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."}),ne.length?m.jsxs(m.Fragment,{children:[m.jsx(LZ,{resources:T&&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(l1,{classNames:{control:()=>"react-select mb-1"},options:ne,onChange:ue=>l(ue.value),placeholder:Ce,value:null,"aria-label":Ce,formatOptionLabel:({value:ue,label:de})=>[de,m.jsx(aj,{creditResource:G,resource:Le[ue]},"discount")]})}),Z.length?null:m.jsx(Hp,{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,T&&!V&&!P?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:ue=>h(ue.target.value),style:{minHeight:"3rem"}})]}),m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:F||!xe&&!Re&&!be,onClick:d,children:"Reset Form"}),m.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:F||!xe||!Re||ge,onClick:w,children:F?"Submitting...":"Submit for Approval"})]}),xe&&!ge?m.jsx(Hp,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:N,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 XZ({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:x,resourceId:C,values:w}=t,R=h[0],j=R.required?"required":"",N=V=>u(C,v,V.target.value?[V.target.value]:[]),T=V=>{u(C,v,Array.from(V.target.options).filter(({selected:U})=>U).map(({value:U})=>parseInt(U,10)))},A=V=>{const U=parseInt(V.target.value,10),P=V.target.checked?[...w,U]:w.filter(z=>z!=U);u(C,v,P)},M=V=>{const U=parseInt(V.target.value);u(C,v,isNaN(U)?[]:[U])};let F;if(["calendar","integer_only","text"].includes(y)){const V={calendar:"date",integer_only:"number",text:"text"}[y];F=m.jsx("input",{className:"form-control",id:d,type:V,placeholder:R.label,required:R.required,value:w[0]||"",onChange:y=="integer_only"?M:N})}else if(y=="textarea")F=m.jsx("textarea",{className:"form-control",id:d,placeholder:R.label,required:R.required,value:w[0]||"",onChange:N});else if(y=="drop_down"||h.length>=10){const V=y=="multi_sel";F=m.jsxs("select",{id:d,className:"form-select",required:R.required,multiple:V,onChange:V?T:M,value:V?w:w[0]||"",children:[V?null:m.jsx("option",{}),h.map(U=>m.jsx("option",{value:U.resourceAttributeId,children:U.label},U.resourceAttributeId))]})}else F=m.jsx("div",{id:d,children:h.map(V=>{const U=`resource-attribute-${V.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:V.resourceAttributeId,checked:w.includes(V.resourceAttributeId),onChange:y=="single_sel"?M:A}),m.jsx("label",{className:"form-check-label",htmlFor:U,children:V.label})]},V.resourceAttributeId)})});return m.jsxs("div",{className:"mb-3",children:[m.jsx("label",{htmlFor:d,className:`form-label ${j}`,children:x}),F]})}function YZ({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(x=>x.allocated!=x.requested).map(x=>{const C=x.requested-x.allocated;return x.questions&&v.push(...x.questions),m.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[x.name,m.jsx("span",{className:`badge bg-${C>0?"primary":"danger"} rounded-pill`,children:x.isBoolean?vR(x.requested):m.jsxs(m.Fragment,{children:[C>0?"+":"",ga(C,x)," ",x.unit]})})]},x.resourceId)}),y=v.some(({attributes:x,values:C})=>C.length==0&&x[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(x=>m.jsx(XZ,{question:x,requestId:t,grantNumber:r},x.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 uM({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 ZZ({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(th,{});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:x,users:C}=l.usageDetail,{full:w,short:R}=U0(y),j=l.resources.find(M=>M.resourceRepositoryKey==x),N=M=>ga(M,{decimalPlaces:j?j.decimalPlaces:void 0}),T={};for(let M of i.users)T[M.username]=M;v=m.jsxs(m.Fragment,{children:["Usage: ",R||w," for ",h]});const A=[{key:"name",name:"Name",format:(M,{lastName:F,firstName:V,portalUsername:U})=>{const P=T[U];return P?m.jsx(uM,{user:P}):`${F}, ${V}`}},{key:"portalUsername",name:"Resource Username",format:M=>{const F=T[M],V=F?F.resourceUsernames[j.resourceId]:null;return V||m.jsx(m.Fragment,{children:"—"})}},{key:"role",name:"Role",format:M=>aO[M].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:N},{key:"lastMonth",name:"Last Month",class:"text-end",format:N},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:N},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:N},{key:"total",name:"All Time",class:"text-end",format:N}];d=C.length?m.jsx(su,{rows:C,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 qZ=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function JZ(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,x=t.filterOption,C=x===void 0?null:x,w=al(t,qZ),R=w.inputValue,j=k.useRef(void 0),N=k.useRef(!1),T=k.useState(Array.isArray(i)?i:void 0),A=na(T,2),M=A[0],F=A[1],V=k.useState(typeof R<"u"?R:""),U=na(V,2),P=U[0],z=U[1],X=k.useState(i===!0),Y=na(X,2),pe=Y[0],ie=Y[1],ge=k.useState(void 0),ae=na(ge,2),Re=ae[0],be=ae[1],xe=k.useState([]),Ae=na(xe,2),Le=Ae[0],ne=Ae[1],Oe=k.useState(!1),G=na(Oe,2),Z=G[0],re=G[1],Ce=k.useState({}),we=na(Ce,2),Te=we[0],Ie=we[1],ue=k.useState(void 0),de=na(ue,2),Ve=de[0],Ge=de[1],tt=k.useState(void 0),ot=na(tt,2),je=ot[0],Rt=ot[1];u!==je&&(Ie({}),Rt(u)),i!==Ve&&(F(Array.isArray(i)?i:void 0),Ge(i)),k.useEffect(function(){return N.current=!0,function(){N.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(P,function(ln){N.current&&(F(ln||[]),ie(!!j.current))})},[]);var en=k.useCallback(function(ln,In){var Vt=gX(ln,In,y);if(!Vt){j.current=void 0,z(""),be(""),ne([]),ie(!1),re(!1);return}if(u&&Te[Vt])z(Vt),be(Vt),ne(Te[Vt]),ie(!1),re(!1);else{var Cn=j.current={};z(Vt),ie(!0),re(!Re),dt(Vt,function(Qn){N&&Cn===j.current&&(j.current=void 0,ie(!1),be(Vt),ne(Qn||[]),re(!1),Ie(Qn?bt(bt({},Te),{},zp({},Vt,Qn)):Te))})}},[u,dt,Re,Te,y]),sn=Z?[]:P&&Re?Le:M||[];return bt(bt({},w),{},{options:sn,isLoading:pe||h,onInputChange:en,filterOption:C})}var QZ=k.forwardRef(function(t,r){var i=JZ(t),l=bk(i);return k.createElement(s1,Tt({ref:r},l))}),KZ=QZ;const oj=({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:x=>i(x.target.checked),ref:d,type:"checkbox"}),m.jsx("label",{className:"form-check-label",htmlFor:v,"aria-description":`${h?"Deselect":"Select"} ${t}`})]})};function e6({grantNumber:t,requestId:r}){const{project:i,addUser:l,resetUsers:u,saveUsers:d,setTab:v,setUserRole:h,statuses:y,toggleUsersResources:x}=Ji(t),{request:C}=i?ri(r||i.currentRequestId,t):{request:null};if(!i||!i.currentRequestId||!C||i.error||C.error)return;const w=i.isManager,R="Exchange"in C.allowedActions,j=i.usersStatus==y.pending,N=i.usersStatus==y.success,T=i.usersStatus==y.error,A=i.users,M=C.resources.filter(jw),F=M.length==0,V=A.find(ie=>ie.hasChanges)!==void 0,U=A.find(ie=>ie.role!="pi")!==void 0;let P;N&&!V?P=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."}):T?P=m.jsx(Mr,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?M.length?F&&(P=m.jsx(Mr,{color:"warning",children:"This project does not have any active resources."})):P=m.jsxs(Mr,{color:"warning",children:["This project does not have any resources."," ",R?m.jsx("a",{href:Jt.routes.request_action_path(C.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."]}):P=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",mR(i)," to request a change."]});const z=(ie,ge)=>{let ae,Re,be,xe;if(ge.key=="all"){ae="all resources for all users",Re=Ae=>x(Ae),be=0;for(let Ae of A)be+=Ae.resourceIds.length;xe=A.length*M.length}else ae=`all users for ${ge.name}`,Re=Ae=>x(Ae,null,ge.key),be=A.filter(({resourceIds:Ae})=>Ae.includes(ge.key)).length,xe=A.length;return m.jsxs(m.Fragment,{children:[ge.key=="all"?ie:m.jsx(Xd,{resource:ge,userGuide:!1}),m.jsx("br",{}),m.jsx(oj,{description:ae,disabled:ge.disabled,onChange:Re,selectedLength:be,totalLength:xe})]})},X=H0.map(({role:ie,name:ge})=>m.jsx("option",{value:ie,children:ge},ie)),Y=[{key:"name",name:"Name",width:200,format:(ie,ge)=>m.jsx(uM,{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:ae=>h(ge.username,ae.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(ae=>ae.key==ie||!["pi","co_pi"].includes(ae.key))})}];M.length&&Y.push({key:"all",name:"All Resources",class:`text-center ${Gd.important}`,disabled:!w||F,width:100,format:(ie,ge)=>m.jsx(oj,{description:`all users for ${ge.name}`,disabled:!w||F,onChange:ae=>x(ae,ge.username),selectedLength:ge.resourceIds.length,totalLength:M.length}),formatHeader:z});for(let ie of M)Y.push({key:ie.resourceId,name:ie.name,class:"text-center",disabled:!w||!ie.isActive,icon:ie.icon,format:(ge,ae)=>m.jsx(m.Fragment,{children:m.jsx("input",{className:"form-check-input",disabled:!w||!ie.isActive,onChange:Re=>x(Re.target.checked,ae.username,ie.resourceId),type:"checkbox",checked:ae.resourceIds.includes(ie.resourceId)})}),formatHeader:z});const pe=A.map(ie=>ie.hasChanges?Gd.edited:"");return m.jsxs(m.Fragment,{children:[P,m.jsx(su,{rows:A,columns:Y,frozenColumns:M.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:pe,scrollRowIndex:i.usersNewRowIndex}),w&&M.length&&!F?m.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:m.jsx(KZ,{classNames:{control:()=>"react-select"},loadOptions:async ie=>(await iG(ie)).map(ae=>({value:ae,label:`${ae.username} (${ae.firstName} ${ae.lastName}, ${ae.organization}${ae.email?`, ${ae.email}`:""})`})),onChange:ie=>l(ie.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,w&&(M.length&&!F||U)?m.jsxs("div",{className:"d-flex mt-3",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:j||!V,onClick:u,children:"Reset Form"}),m.jsx("button",{type:"button",className:"btn btn-secondary",disabled:j||!V,onClick:d,children:j?"Saving...":"Save Changes"})]}):null]})}function t6({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:x})=>x),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:DG.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:x=>{x.preventDefault(),u(l.currentRequestId)},children:"Go to the current request."}):null]}):null,m.jsxs(Y3,{activeKey:l.tab,onSelect:d,className:"mt-3 mb-3",children:[m.jsx(zb,{eventKey:"overview",title:"Overview",className:"mb-0",children:m.jsx(AW,{requestId:t,grantNumber:r})}),m.jsx(zb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:m.jsx(WZ,{requestId:t})}),m.jsx(zb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:m.jsx(e6,{grantNumber:r})}),m.jsx(zb,{eventKey:"history",title:"History",children:m.jsx(aW,{requestId:t})})]}),m.jsx(eW,{grantNumber:r,requestId:t}),m.jsx(tW,{grantNumber:r,requestId:t}),m.jsx(nW,{grantNumber:r,requestId:t,actionId:h?h.actionId:null}),m.jsx(YZ,{grantNumber:r,requestId:t}),m.jsx(ZZ,{grantNumber:r,requestId:t})]})}function n6({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",x=>{x.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(x=>x.isRequest);if(y){const x=y.allowedOperations||[];x.includes("Edit")&&h.push(["Edit",Jt.routes.edit_request_path(i.requestId),"pencil"]),x.includes("Delete")&&h.push(["Delete",C=>{C.preventDefault(),u(y.actionId)},"trash","danger"])}return h.map(([x,C,w,R])=>{const j=m.jsxs(m.Fragment,{children:[" ",w&&m.jsx("i",{className:`bi bi-${w} me-1`}),x]});return typeof C=="function"?m.jsx("button",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,onClick:C,children:j},x):m.jsx("a",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,href:C,children:j},x)})}function r6({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 x=null;if(u&&v)if(v.error)x=m.jsx(Mr,{color:"danger",children:v.error});else{let C;const w=v.requestsList.map(R=>(R.requestId==v.selectedRequestId&&(C=R),m.jsx("option",{value:R.requestId,children:hR(R)},R.requestId)));x=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(n6,{requestId:v.selectedRequestId,grantNumber:r})]}),C?m.jsx(t6,{...C,grantNumber:r}):null]})}return m.jsxs("div",{className:`${XI.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:XI.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(Jp,{status:l||v.status})]}),m.jsx("div",{className:"card-body",id:y,hidden:!u||!v,children:x})]})}function a6({username:t,openFirst:r=1}){const{error:i,loading:l,projects:u}=IG(t);return l?m.jsx(th,{}):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(r6,{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 cM={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:[]}},i6=Di("projectsBrowser/initApp",async(t,{getState:r,dispatch:i})=>{const l=window.location.search,u=new URLSearchParams(l);u.has("_requestNumber")&&(i(Kw({name:"requestNumber",value:u.get("_requestNumber")})),i(fM(!0))),await i(Qw()),await i(Yd()),i(o6())}),o6=Di("projectsBrowser/filterCleanup",async(t,{getState:r,dispatch:i})=>{const u=r().projectsBrowser.typeLists;i(dM({...u,orgs:["-- ALL --"].concat(u.orgs)}))}),Qw=Di("projectsBrowser/getFilters",async(t,{getState:r,dispatch:i})=>{const u=`${r().projectsBrowser.apiUrl}?filters=1`,v=await(await fetch(u)).json();i(dM(v.filters))}),Yd=Di("projectsBrowser/getProjects",async(t,{getState:r,dispatch:i})=>{const l=r().projectsBrowser,u=l.filters,d=l.typeLists,v=d.fosTypes.filter(C=>C.checked);let h=`${l.apiUrl}?page=${l.pageData.current_page}`;return u.requestNumber!=""?(h+=`&request_number=${u.requestNumber}`,i(lj(!0))):(i(lj(!1)),v.length!=d.fosTypes.length&&(h+=`&fos=${v.map(C=>C.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()}),u1=z0({name:"projectsBrowser",initialState:cM,reducers:{resetFilters:t=>{t.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},u1.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(Yd.pending,r=>{r.projectsLoaded=!1}).addCase(Yd.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(Yd.rejected,(r,i)=>{console.log(i.error)}).addCase(Qw.pending,r=>{r.filtersLoaded=!1}).addCase(Qw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:s6,setApiUrl:Wq,setShowPagination:sj,setTypeLists:dM,toggleAllFos:l6,toggleFos:u6,toggleListFiltered:fM,toggleSingleEntry:lj,updateFilter:Kw,updatePageData:eR}=u1.actions,c6=t=>t.projectsBrowser.filters,d6=t=>t.projectsBrowser.filtersLoaded,f6=t=>t.projectsBrowser.listIsFiltered,p6=t=>t.projectsBrowser.singleEntry,h6=t=>t.projectsBrowser.projectsLoaded,v6=t=>t.projectsBrowser.pageData,m6=t=>t.projectsBrowser.projects,g6=t=>t.projectsBrowser.filtersLoaded&&t.projectsBrowser.projectsLoaded&&t.projectsBrowser.pageData.last_page>1,y6=t=>t.projectsBrowser.typeLists,b6=u1.reducer;const x6=()=>{const t=No(),r=Jn(c6),i=Jn(y6),l=Jn(f6),u=i.orgs.map(T=>({label:T,value:T})),d=k.useRef(),[v,h]=k.useState(null),y={height:"200px",overflowX:"auto",padding:"2px"},x=T=>{t(Kw({name:T.target.name,value:T.target.value}))},C=()=>{window.scrollTo(0,0),R(!0),t(sj(!1)),t(eR({current_page:1})),t(Yd())},w=()=>{h(null),t(sj(!1)),t(eR({current_page:1})),t(s6()),l&&(window.scrollTo(0,0),t(Yd()),R(!1))},R=T=>{t(fM(T))},j=T=>{h(T),t(Kw({name:"org",value:T.value}))},N=()=>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(l6())}}),m.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(T=>m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:"checkbox",value:T.fosTypeId,id:`fos_${T.fosTypeId}`,checked:T.checked,onChange:()=>t(u6(T))}),m.jsx("label",{className:"form-check-label",htmlFor:`fos_${T.fosTypeId}`,children:T.fosName})]},`fos_${T.fosTypeId}`))]}),m.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),m.jsx("div",{className:"mb-3",children:m.jsx(l1,{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:T=>x(T),children:[m.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((T,A)=>m.jsx("option",{value:T,children:T},`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:T=>x(T),children:[m.jsx("option",{value:"",children:"-- All --"}),i.resources.map((T,A)=>m.jsx("option",{value:T.resourceId,children:T.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:T=>x(T)})}),m.jsxs("div",{className:"mt-2",children:[m.jsx("button",{className:"btn btn-primary me-2",onClick:C,children:"Submit"}),m.jsx("button",{className:"btn btn-secondary",disabled:N(),onClick:w,children:"Reset"})]})]})})};const C6=({project:t})=>{const r=t.resources,[i,l]=k.useState(!1),d=Jn(p6)?["0","1"]:[],v=j=>{let N=j.units?j.units:j.resourceUnits;const T=j.allocation?j.allocation:j.amount;if(N=="[Yes = 1, No = 0]"||N=="Yes / No")return T=="1.0"?"Yes":"No";{let A="0";return parseInt(T)&&(A=parseInt(T).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),N=="ACCESS Credits"&&(N=m.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),N=="Dollars"?`$${A}`:m.jsxs(m.Fragment,{children:[A," ",N]})}},h=()=>{const{origin:j,pathname:N}=window.location,T=`${j}${N}?_requestNumber=${t.requestNumber}`;navigator.clipboard.writeText(T),setTimeout(()=>l(!1),2e3)},y=()=>t.requestNumber&&t.requestNumber!=""?`(${t.requestNumber})`:m.jsx(m.Fragment,{}),x=m.jsx(J0,{id:"link-tooltip",children:"Link Copied!"}),C=()=>{if(y()){const j={background:"none",border:"none",color:"#fff",fontSize:"24px"};return m.jsx(UR,{placement:"left",trigger:"click",defaultShow:i,show:i,onToggle:()=>l(!i),overlay:x,children:m.jsx("button",{onClick:h,style:j,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,{})},w=()=>!t.coPis||t.coPis.length<=0?"":m.jsxs(m.Fragment,{children:[m.jsx("br",{}),m.jsxs("small",{className:"fst-italic",children:["CoPI(s): ",t.coPis.map(j=>`${j.name} (${j.organization})`).join(";")]})]}),R=()=>!t.beginDate||!t.endDate?"-":m.jsxs(m.Fragment,{children:[t.beginDate," to ",t.endDate]});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,") "]})]}),w()]}),m.jsx("div",{children:C()})]})}),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.jsx("div",{className:"col",children:R()})]}),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((j,N)=>m.jsxs("tr",{children:[m.jsx("td",{children:j.resourceName}),m.jsx("td",{style:{whiteSpace:"nowrap"},children:v(j)})]},`resource_${t.requestId}_${N}`))})]})})]}),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})})]})]})]})]})},S6=()=>{const t=Jn(m6);return t.length==0?m.jsx("div",{children:"No Projects Found"}):m.jsx("div",{children:t.map((r,i)=>m.jsx(C6,{project:r},`project_${i}`))})};const uj=()=>{const t=No(),r=Jn(v6),[i,l]=k.useState([]),[u,d]=k.useState("0"),v=Array.from({length:r.last_page},(N,T)=>T),h=10,y={width:"50px",textAlign:"center"};k.useEffect(()=>{w()},[r]);const x=N=>{const T=parseInt(N);t(eR({current_page:N})),t(Yd(T))},C=N=>(event.preventDefault(),d("0"),x(N),!1),w=()=>{const N=[];if(r.last_page>h)if(r.current_page>4){N.push(1),N.push("spacer");for(var T=1;T>0;T--)r.current_page-T>1&&N.push(r.current_page-T);N.push(["current",r.current_page]);for(var T=1;T<2;T++)r.current_page+T<=r.last_page&&N.push(r.current_page+T);r.last_page-r.current_page>1&&(N.push("spacer"),N.push(r.last_page))}else[1,2,3,4,5].forEach(A=>{A==r.current_page?N.push(["current",A]):N.push(A)}),N.push("spacer"),N.push(r.last_page);else for(var T=1;T<=r.last_page;T++)T==r.current_page?N.push(["current",T]):N.push(T);l(N)},R=N=>{let T="";return typeof N=="object"?[N,T]=N:T=N,N=="spacer"?m.jsx("li",{className:"page-item disabled",children:m.jsx("span",{className:"page-link",style:y,children:". . ."})}):N=="current"?m.jsx("li",{className:"page-item active","aria-current":"page",children:m.jsx("span",{className:"page-link",style:y,children:T})}):m.jsx("li",{className:"page-item",children:m.jsx("button",{className:"page-link",style:y,onClick:()=>x(N),children:T})})},j=()=>m.jsx("li",{className:"page-item",children:m.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:u,onChange:N=>C(N.target.value),children:[m.jsx("option",{value:"0",children:"Go To"}),v.map(N=>m.jsx("option",{value:N+1,children:N+1},`page_option_${N}`))]})});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:()=>x(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((N,T)=>m.jsx(pr.Fragment,{children:R(N)},`page_${T}`)),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:()=>x(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},E6=({api_url:t})=>{const r=No(),i=Jn(h6),l=Jn(d6),u=Jn(g6),d=m.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(i6())},[]),m.jsx("div",{className:"container-fluid",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-3",children:m.jsx(x6,{})}),m.jsxs("div",{className:"col-sm-9",children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(uj,{}):""})}),m.jsx("div",{className:"row",id:"projectListRow",children:m.jsx("div",{className:"col",children:i&&l?m.jsx(S6,{}):d})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(uj,{scroll:"projects_browser_app"}):""})})]})]})})},w6=t=>t.publications_store.publication,R6=t=>t.publications_store.publication.doi,_6=t=>t.publications_store.publication_types,pM=t=>t.publications_store.publication.authors,T6=t=>t.publications_store.tag_categories,N6=t=>t.publications_store.projects,I6=t=>t.publications_store.publication.tags,A6=t=>t.publications_store.errors,hM=t=>t.publications_store.data_loaded,vM=t=>t.publications_store.show_saved,c1=t=>t.publications_store.saving,j6=t=>t.publications_store.modal,mM=t=>t.publications_store.form_valid,gM=t=>!c1(t)&&hM(t)&&mM(t)&&yM(t)&&t.publications_store.projects.filter(r=>r.selected).length>0,yM=t=>{const r=pM(t);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},bM=t=>({type:"UPDATE_PUBLICATION",payload:t}),O6=t=>({type:"UPDATE_FIELD",payload:t}),tR=t=>({type:"CHANGE_PUB_TYPE",payload:t}),D6=t=>({type:"SET_PUBLICATION",payload:t}),k6=()=>({type:"ADD_AUTHOR"}),M6=t=>({type:"UPDATE_AUTHOR",payload:t}),L6=t=>({type:"TOGGLE_REQUEST",payload:t}),km=t=>({type:"UPDATE_ERRORS",payload:t}),xM=t=>({type:"HIDE_ERROR",payload:t}),P6=t=>({type:"UPDATE_SELECTED_TAGS",payload:t}),F6=t=>({type:"DELETE_AUTHOR",payload:t}),V6=t=>({type:"DATA_LOADED",payload:t}),CM=t=>({type:"UPDATE_SHOW_SAVED",payload:t}),B6=()=>({type:"RESET_STATE"}),uw=t=>({type:"UPDATE_SAVING",payload:t}),z6=t=>({type:"SET_FORM_VALID",payload:t}),SM=t=>({type:"SET_GRANT_NUMBER",payload:t}),$6=t=>({type:"ADD_PROJECT",payload:t}),U6=(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}},H6=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:G6(r)},r))})]}):null;function G6(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const W6=()=>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(tR(v?v.publication_type:"Other")),t(D6(d))}else t(km(u))},d=>{t(km(u))})},X6=()=>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($6(u)),t(SM(""))},()=>{t(km("Unable to find a project with this grant number."))})},EM=()=>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(V6(i))})},wM=()=>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}=U6(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!h){v.length>0&&Array.from(v).forEach(j=>{t(xM(j.id))});const R=H6(y);t(km(R));return}const x={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(R=>({...R,order:0})),tags:u,projects:l};let C,w;d.publication_id?(C=Jt.routes.publication_path(d.publication_id),w="PATCH"):(C=Jt.routes.publications_path(),w="POST"),t(uw(!0)),await fetch(C,{method:w,headers:{"Content-Type":"application/json"},body:JSON.stringify(x)}).then(R=>{i.redirect?window.location.href=Jt.routes.publications_path():(d.publication_id||(t(B6()),t(EM())),t(CM(!0)),t(uw(!1)))},()=>{t(uw(!1)),t(km("There was an error saving this publication."))})},Y6=({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"})]})]})}),Z6=t=>({doi:R6(t)}),q6=t=>({updatePublication:r=>t(bM({key:"doi",value:r})),doiLookup:()=>t(W6())}),J6=ps(Z6,q6)(Y6),Q6=({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"})})})]})},K6=t=>({updateAuthor:r=>t(M6(r)),deleteAuthor:r=>t(F6(r))}),cj=ps(null,K6)(Q6),e8=({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(cj,{author:d,authorKey:v},`author_${v}`)),l&&m.jsx(cj,{author:r()})]})]}),m.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},t8=t=>({authors:pM(t),authors_exist:yM(t)}),n8=t=>({addAuthor:()=>t(k6())}),r8=ps(t8,n8)(e8),a8=({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(l1,{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})})]})},i8=t=>({updateSelectedTags:r=>t(P6(r))}),o8=t=>({publication_tags:I6(t)}),s8=ps(o8,i8)(a8),l8=({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}`))})]})})},u8=t=>({projects:N6(t)}),c8=t=>({toggleProject:r=>t(L6(r))}),d8=ps(u8,c8)(l8),f8=({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"})]})]})}),p8=t=>({setGrantNumber:r=>t(SM(r)),grantSearch:()=>t(X6())}),h8=t=>({grant_number:t.publications_store.grant_number}),v8=ps(h8,p8)(f8),m8=({publication:t,updateField:r,publication_types:i,changePubType:l,updatePublication:u,tag_categories:d,savePublication:v,modal:h,save_enabled:y,setFormValid:x,form_valid:C})=>{const w=F=>{F.target.value.trim()==""?x(!1):x(!0),u({key:"title",value:F.target.value})},R=()=>t.fields.map((F,V)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:`field_${F.csl_field_name}`,className:"form-label",children:F.name}),m.jsx("input",{type:"text",className:"form-control",name:`field_${F.csl_field_name}`,id:`field_${F.csl_field_name}`,value:F.field_value,onChange:U=>r({index:V,value:U.target.value})})]})},`field_${F.csl_field_name}`)),j=()=>{const F=new Date().getFullYear()+2;let V=1980;const U=[];for(;V<=F;)U.push(V++);const P=["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 ${C?"":"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:P.map((X,Y)=>m.jsx("option",{value:Y+1,children:X},`month_${Y}`))})]})})]})},N=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(J6,{}),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:F=>l(F.target.value),children:i.map(F=>m.jsx("option",{value:F.publication_type,children:F.publication_type},`pub_type_${F.type_id}`))})]})}),j(),R()]})]}),T=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Authors"}),m.jsxs(Hp,{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(r8,{})})]}),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(Hp,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),m.jsx("div",{className:"card-body",children:d.map((F,V)=>m.jsx(s8,{index:V,category:F},`tc_${V}`))})]}),M=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(Hp,{children:"Click/Tap each project that this publication is related to."})]}),m.jsxs("div",{className:"card-body",children:[m.jsx(d8,{}),m.jsx("hr",{}),m.jsx(v8,{})]})]});return m.jsxs(m.Fragment,{children:[N,T,A,M,h?null:m.jsx("p",{className:"mt-3",children:m.jsx("button",{onClick:()=>v(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},g8=t=>({publication:w6(t),publication_types:_6(t),tag_categories:T6(t),saving:c1(t),modal:j6(t),save_enabled:gM(t),form_valid:mM(t)}),y8=t=>({updateField:r=>t(O6(r)),changePubType:r=>t(tR(r)),updatePublication:r=>t(bM(r)),savePublication:()=>t(wM()),setFormValid:r=>t(z6(r))}),b8=ps(g8,y8)(m8),x8=({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}`))}),C8=t=>({errors:A6(t)}),S8=t=>({hideError:r=>t(xM(r))}),E8=ps(C8,S8)(x8),w8=({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,{})},R8=t=>({show_saved:vM(t)}),_8=t=>({updateShowSaved:r=>t(CM(r))}),T8=ps(R8,_8)(w8),N8=({getData:t,data_loaded:r})=>(k.useEffect(()=>{t()},[]),m.jsxs(m.Fragment,{children:[m.jsx(T8,{}),m.jsx(E8,{}),r?m.jsx(b8,{}):m.jsx(th,{})]})),I8=t=>({data_loaded:hM(t)}),A8=t=>({getData:()=>t(EM())}),RM=ps(I8,A8)(N8),j8=({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(RM,{})}),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"})]})},O8=t=>({saving:c1(t),showSaved:vM(t),save_enabled:gM(t)}),D8=t=>({savePublication:()=>t(wM())}),k8=ps(O8,D8)(j8),M8=({usernames:t=[],publication_ids:r=[]})=>{const[i,l]=k.useState(t),[u,d]=k.useState(r),[v,h]=k.useState([]),y=k.useRef(i),x=T=>{y.current=T,l(T)},C=async()=>{const A=await(await fetch(Jt.routes.search_publications_path({usernames:i}))).json();h(A)};k.useEffect(()=>{C()},[i]),k.useEffect(()=>{addEventListener("requestAddRole",T=>x([...y.current,T.detail.username])),addEventListener("requestRemoveRole",T=>x(y.current.filter(A=>A!=T.detail.username)))},[]);let w=!1,R=!1;const j=v.map(T=>{const A=u.includes(T.publication_id);w=w||A,R=R||!A;const M=new Date(T.publication_year,T.publication_month-1);return m.jsxs("tr",{children:[m.jsx("td",{children:m.jsx("input",{type:"checkbox",name:"publication_ids[]",value:T.publication_id,checked:A,onChange:()=>d(A?u.filter(F=>F!=T.publication_id):[...u,T.publication_id])})}),m.jsx("td",{children:T.title}),m.jsx("td",{children:T.authors.map(F=>`${F.first_name} ${F.last_name}`).join(", ")}),m.jsx("td",{children:T.publication_type}),m.jsxs("td",{children:[M.toLocaleString("default",{month:"short"})," ",T.publication_year]})]},T.publication_id)}),N=`${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":N,title:N,checked:w&&!R,onChange:()=>d(R?v.map(T=>T.publication_id):[]),ref:T=>{T&&(T.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(k8,{updatePublications:C})]})},L8=()=>`${Math.random().toString(36).slice(2)}`,nR=document.querySelector("#publications-react"),P8=nR?nR.dataset:{},dj={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:P8.redirect||!1,modal:nR==null,form_valid:!1,grant_number:""},F8=(t=dj,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(x=>x.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:L8(),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 dj;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}},V8={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(fj(!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(U8({data:l,params:t})),r(fj(!0))});Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(G8(t)),r(TM())});const B8=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)}))},z8=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(rR(d.allowedResources,d.excludedResources,v.resourceName)){const{categories:h,formattedResource:y}=$8(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}},rR=(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,$8=(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]&&rR(t.allowedCategories,t.excludedCategories,h.categoryName)&&(i[y]={categoryId:y,categoryName:h.categoryName,categoryDescription:h.categoryDescription,features:{}}),h.features.forEach(x=>{const C={featureId:x.featureId,name:x.name,description:x.description,categoryId:y,selected:!1},w=rR(t.allowedFilters,t.excludedFilters,C.name);w&&l.push(C),i[y]&&w&&!i[y].features[x.featureId]&&(i[y].features[x.featureId]=C)}))});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}},_M=z0({name:"resourceCatalog",initialState:V8,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,{resources:l,catalogs:u,categories:d}=z8(i);t.catalogs=u,t.onRamps=r.params.onRamps;for(const v in d){const h=d[v],y=[];for(const x in h.features)y.push(h.features[x]);t.filters.push({...h,features:y.sort((x,C)=>x.name>C.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(x=>x.categoryId==v.categoryId).features.find(x=>x.featureId==v.featureId);y.selected=!y.selected}const i=B8(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(x=>{let C=!1;h.featureIds.forEach(w=>{x.indexOf(w)>=0&&(C=!0)}),C&&(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:U8,processData:Xq,resetFilters:H8,setResourcesLoaded:fj,toggleCatalog:G8,toggleFilter:TM}=_M.actions,NM=t=>t.resourceCatalog.catalogs,W8=t=>t.resourceCatalog.filters,X8=t=>t.resourceCatalog.hasErrors,Y8=t=>t.resourceCatalog.resourcesLoaded,Z8=t=>t.resourceCatalog.filteredResources,q8=_M.reducer,J8="_access_1yrq0_2",Q8="_resourceName_1yrq0_6",K8="_description_1yrq0_11",eq="_filterBar_1yrq0_15",tq="_cardBg_1yrq0_20",nq="_active_1yrq0_25",rq="_plainButton_1yrq0_30",aq="_btnSecondary_1yrq0_40",iq="_filtersHidden_1yrq0_51",oq="_filtersVisible_1yrq0_57",wo={access:J8,resourceName:Q8,description:K8,filterBar:eq,cardBg:tq,active:nq,plainButton:rq,btnSecondary:aq,filtersHidden:iq,filtersVisible:oq},sq=({resource:t})=>{const[r,i]=k.useState(!0),l=x=>{const C={"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 C[x]?m.jsx("i",{title:x,className:`bi bi-${C[x]} me-2 `},`${t.resourceId}_${C[x]}`):""},u=()=>m.jsxs("span",{className:"float-end",children:[t.features.map(x=>l(x)),t.resourceType]}),d=x=>x.length==0?"":m.jsx(m.Fragment,{children:x.map((C,w)=>m.jsx("span",{className:"badge text-bg-secondary me-2",children:C},`feature_${t.resourceId}_${w}`))}),v=()=>{let x=t.resourceDescription;return x&&x!=""?(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:x}}),""]})})]})):""},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"})]})})]})})})})},lq=({filter:t})=>{const r=No(),i=()=>{r(TM(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})]})})})},uq=({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(lq,{filter:r},r.featureId))]})}),cq=({onReset:t})=>{const r=No(),i=Jn(NM),l=Jn(W8),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(uq,{category:d},d.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(H8()),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"})]})},dq=()=>{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(cq,{onReset:l})})]})})})})},fq=()=>{const t=Jn(Z8);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(dq,{}),t.map(r=>m.jsx(sq,{resource:r},r.resourceId))]})})},pq=({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"}),"."]})]})})]}),hq=({catalogSources:t=[],onRamps:r=!1,baseUrl:i})=>{const l=No(),u=Jn(Y8),d=Jn(X8),v=Jn(NM),h=Object.keys(v).map(x=>v[x]);k.useEffect(()=>{l(c0({catalogSources:t,onRamps:r}))},[]);const y=()=>r&&h.length>1?m.jsx(m.Fragment,{children:h.filter(x=>x.catalogLabel!="ACCESS").map((x,C)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsxs("h4",{className:"border-bottom",children:["About ",x.catalogLabel]}),m.jsx("div",{dangerouslySetInnerHTML:{__html:x.description}})]})},`catalog_${C}`))}):"";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(pq,{baseUrl:i}):"",y(),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx(fq,{})})})]}):m.jsx(th,{})},vq={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(gq({data:l,params:t}))}),mq=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)}))},pj=(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)},IM=z0({name:"resourceCatalog",initialState:vq,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=[],x={};i.filter(C=>!d.includes(C.resourceName)).forEach(C=>{const w=[];let R="";C.featureCategories.filter(N=>N.categoryIsFilter).forEach(N=>{const T=N.categoryId;N.categoryName=="ACCESS Resource Grouping"?R=N.features[0].name:(!x[T]&&pj(v,l,N.categoryName)&&(x[T]={categoryId:T,categoryName:N.categoryName,categoryDescription:N.categoryDescription,features:{}}),N.features.forEach(A=>{const M={featureId:A.featureId,name:A.name,description:A.description,categoryId:T,selected:!1},F=pj(h,u,M.name);F&&w.push(M),x[T]&&F&&!x[T].features[A.featureId]&&(x[T].features[A.featureId]=M)}))});const j={resourceName:C.resourceName,resourceId:C.resourceId,resourceType:C.resourceType,organization:C.organization,units:C.units,userGuideUrl:C.userGuideUrl,resourceDescription:C.resourceDescription,description:C.description,recommendedUse:C.recommendedUse,features:w.map(N=>N.name).sort((N,T)=>N>T),featureIds:w.map(N=>N.featureId),sortCategory:R};y.push(j)});for(const C in x){const w=x[C],R=[];for(const j in w.features)R.push(w.features[j]);t.filters.push({...w,features:R.sort((j,N)=>j.name>N.name)})}v.length>0?t.filters=t.filters.sort((C,w)=>v.indexOf(C.categoryName)>v.indexOf(w.categoryName)):t.filters=t.filters.sort((C,w)=>C.categoryName.localeCompare(w.categoryName)),t.resources=y.sort((C,w)=>C.resourceName.localeCompare(w.resourceName)).sort((C,w)=>t.resourceSorting[C.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=mq(t.filters);if(d.length>0){const v=[],h=d.map(y=>y.features.map(x=>x.featureId));t.resources.forEach(y=>{let x=0;h.forEach(C=>{let w=!1;y.featureIds.forEach(R=>{C.indexOf(R)>=0&&(w=!0)}),w&&(x+=1)}),x>=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:gq,processData:Yq,resetFilters:yq,toggleFilter:bq}=IM.actions,xq=t=>t.resourceCatalog.hasErrors,Cq=t=>t.resourceCatalog.resourcesLoaded,Sq=t=>t.resourceCatalog.filters,Eq=t=>t.resourceCatalog.filteredResources,wq=IM.reducer,Rq=({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)]})]})},_q=()=>{const t=Jn(Eq);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(Rq,{resource:r},r.resourceId))})]})},Tq=({filter:t})=>{const r=No(),i=()=>{r(bq(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})]})})})},Nq=({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(Tq,{filter:r},r.featureId))]})}),Iq=()=>{const t=No(),r=Jn(Sq),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(Nq,{category:l},l.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(yq()),disabled:i.length==0,children:"Reset Filters"})]})},Aq=({apiUrl:t,excludedCategories:r=[],excludedFilters:i=[],excludedResources:l=[],allowedCategories:u=[],allowedFilters:d=[]})=>{const v=No(),h=Jn(Cq),y=Jn(xq);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(Iq,{})}),m.jsx("div",{className:"col-sm-8",children:m.jsx(_q,{})})]})}):m.jsx(th,{})};function jq(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"),x=document.createElement("div"),C=document.createElement("link"),w=document.createElement("link"),R=document.createElement("link");return u=u??(typeof document>"u"?require("url").pathToFileURL(__filename).href:GN&&GN.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),C.rel="stylesheet",C.href=`${u}/bootstrap.css`,w.rel="stylesheet",w.href=`${u}/xras-ui.css`,R.rel="stylesheet",R.href=`${u}/access.css`,y.appendChild(x),h.appendChild(y),v.appendChild(h),d.appendChild(C),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")),x}function Oq({target:t}){Xi.createRoot(t).render(m.jsx(yH,{}))}function Dq({target:t,availableResources:r,relativeUrlRoot:i}){Xi.createRoot(t).render(m.jsx(SH,{availableResources:r,relativeUrlRoot:i}))}function kq({resourceId:t,target:r,setExternalSubmit:i,relativeUrlRoot:l}){Xi.createRoot(r).render(m.jsx(fO,{resourceId:t,setExternalSubmit:i,relativeUrlRoot:l}))}function Mq({target:t,username:r,routes:i}){gR(i);const l=Pm({reducer:{api:NG}});Xi.createRoot(t).render(m.jsx(eh,{store:l,children:m.jsx(a6,{username:r})}))}function Lq({target:t,apiUrl:r}){const i=Pm({reducer:{projectsBrowser:b6},preloadedState:{projectsBrowser:{...cM,apiUrl:r}}});Xi.createRoot(t).render(m.jsx(eh,{store:i,children:m.jsx(E6,{})}))}function AM(){return Pm({reducer:{publications_store:F8}})}function Pq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(eh,{store:AM(),children:m.jsx(RM,{})}))}function Fq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(eh,{store:AM(),children:m.jsx(M8,{...JSON.parse(t.dataset.publicationsSelectProps)})}))}function Vq({target:t,catalogSources:r,onRamps:i,baseUrl:l}){const u=Pm({reducer:{resourceCatalog:q8}});Xi.createRoot(t).render(m.jsx(eh,{store:u,children:m.jsx(hq,{catalogSources:r,onRamps:i,baseUrl:l})}))}function Bq({target:t,apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v}){const h=Pm({reducer:{resourceCatalog:wq}});Xi.createRoot(t).render(m.jsx(eh,{store:h,children:m.jsx(Aq,{apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v})}))}exports.allocationsMap=Oq;exports.editResource=kq;exports.onRampsResourceCatalog=Vq;exports.projects=Mq;exports.projectsBrowser=Lq;exports.publications=Pq;exports.publicationsSelect=Fq;exports.resourceCatalog=Bq;exports.resources=Dq;exports.shadowTarget=jq;
|
|
311
|
+
`]))),sY=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:t1({animation:"".concat(oY," 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"},qw.NODE_ENV==="production"?"":";label:LoadingDot;",qw.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 */")})},lY=function(r){var i=r.innerProps,l=r.isRtl,u=r.size,d=u===void 0?4:u,v=al(r,JX);return wt("div",Tt({},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}))},uY=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}})},cY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.innerRef,v=r.innerProps,h=r.menuIsOpen;return wt("div",Tt({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)},dY=cY,fY=["data"],pY=function(r,i){var l=r.theme.spacing;return i?{}:{paddingBottom:l.baseUnit*2,paddingTop:l.baseUnit*2}},hY=function(r){var i=r.children,l=r.cx,u=r.getStyles,d=r.getClassNames,v=r.Heading,h=r.headingProps,y=r.innerProps,x=r.label,C=r.theme,w=r.selectProps;return wt("div",Tt({},br(r,"group",{group:!0}),y),wt(v,Tt({},h,{selectProps:w,theme:C,getStyles:u,getClassNames:d,cx:l}),x),wt("div",null,i))},vY=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"})},mY=function(r){var i=$k(r);i.data;var l=al(i,fY);return wt("div",Tt({},br(r,"groupHeading",{"group-heading":!0}),l))},gY=hY,yY=["innerRef","isDisabled","isHidden","inputClassName"],bY=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)":""},xY),i?{}:{margin:v.baseUnit/2,paddingBottom:v.baseUnit/2,paddingTop:v.baseUnit/2,color:h.neutral80})},Jk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},xY={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"},Jk)},CY=function(r){return bt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Jk)},SY=function(r){var i=r.cx,l=r.value,u=$k(r),d=u.innerRef,v=u.isDisabled,h=u.isHidden,y=u.inputClassName,x=al(u,yY);return wt("div",Tt({},br(r,"input",{"input-container":!0}),{"data-value":l||""}),wt("input",Tt({className:i({input:!0},y),ref:d,style:CY(h),disabled:v},x)))},EY=SY,wY=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})},RY=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})},_Y=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}})},Qk=function(r){var i=r.children,l=r.innerProps;return wt("div",l,i)},TY=Qk,NY=Qk;function IY(t){var r=t.children,i=t.innerProps;return wt("div",Tt({role:"button"},i),r||wt(i1,{size:14}))}var AY=function(r){var i=r.children,l=r.components,u=r.data,d=r.innerProps,v=r.isDisabled,h=r.removeProps,y=r.selectProps,x=l.Container,C=l.Label,w=l.Remove;return wt(x,{data:u,innerProps:bt(bt({},br(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":v})),d),selectProps:y},wt(C,{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}))},jY=AY,OY=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}})},DY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,d=r.isSelected,v=r.innerRef,h=r.innerProps;return wt("div",Tt({},br(r,"option",{option:!0,"option--is-disabled":l,"option--is-focused":u,"option--is-selected":d}),{ref:v,"aria-disabled":l},h),i)},kY=DY,MY=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})},LY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},br(r,"placeholder",{placeholder:!0}),l),i)},PY=LY,FY=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})},VY=function(r){var i=r.children,l=r.isDisabled,u=r.innerProps;return wt("div",Tt({},br(r,"singleValue",{"single-value":!0,"single-value--is-disabled":l}),u),i)},BY=VY,zY={ClearIndicator:rY,Control:dY,DropdownIndicator:tY,DownChevron:Zk,CrossIcon:i1,Group:gY,GroupHeading:mY,IndicatorsContainer:ZX,IndicatorSeparator:iY,Input:EY,LoadingIndicator:lY,Menu:MX,MenuList:PX,MenuPortal:UX,LoadingMessage:zX,NoOptionsMessage:BX,MultiValue:jY,MultiValueContainer:TY,MultiValueLabel:NY,MultiValueRemove:IY,Option:kY,Placeholder:PY,SelectContainer:GX,SingleValue:BY,ValueContainer:XX},$Y=function(r){return bt(bt({},zY),r.components)},GA=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function UY(t,r){return!!(t===r||GA(t)&&GA(r))}function HY(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!UY(t[i],r[i]))return!1;return!0}function GY(t,r){r===void 0&&(r=HY);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 WY(){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 XY=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:WY},YY=function(r){return wt("span",Tt({css:XY},r))},WA=YY,ZY={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,x=r.isSelected,C=r.isAppleDevice,w=function(T,I){return T&&T.length?"".concat(T.indexOf(I)+1," of ").concat(T.length):""};if(i==="value"&&h)return"value ".concat(v," focused, ").concat(w(h,l),".");if(i==="menu"&&C){var R=y?" disabled":"",j="".concat(x?" 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:"",".")}},qY=function(r){var i=r.ariaSelection,l=r.focusedOption,u=r.focusedValue,d=r.focusableOptions,v=r.isFocused,h=r.selectValue,y=r.selectProps,x=r.id,C=r.isAppleDevice,w=y.ariaLiveMessages,R=y.getOptionLabel,j=y.inputValue,A=y.isMulti,T=y.isOptionDisabled,I=y.isSearchable,M=y.menuIsOpen,F=y.options,V=y.screenReaderStatus,U=y.tabSelectsValue,P=y.isLoading,z=y["aria-label"],X=y["aria-live"],Y=k.useMemo(function(){return bt(bt({},ZY),w||{})},[w]),pe=k.useMemo(function(){var xe="";if(i&&Y.onChange){var Ae=i.option,Le=i.options,ne=i.removedValue,Oe=i.removedValues,G=i.value,Z=function(de){return Array.isArray(de)?null:de},re=ne||Ae||Z(G),Ce=re?R(re):"",we=Le||Oe||void 0,Te=we?we.map(R):[],Ie=bt({isDisabled:re&&T(re,h),label:Ce,labels:Te},i);xe=Y.onChange(Ie)}return xe},[i,Y,T,h,R]),ie=k.useMemo(function(){var xe="",Ae=l||u,Le=!!(l&&h&&h.includes(l));if(Ae&&Y.onFocus){var ne={focused:Ae,label:R(Ae),isDisabled:T(Ae,h),isSelected:Le,options:d,context:Ae===l?"menu":"value",selectValue:h,isAppleDevice:C};xe=Y.onFocus(ne)}return xe},[l,u,R,T,Y,d,h,C]),ge=k.useMemo(function(){var xe="";if(M&&F.length&&!P&&Y.onFilter){var Ae=V({count:d.length});xe=Y.onFilter({inputValue:j,resultsMessage:Ae})}return xe},[d,j,M,Y,F,V,P]),ae=(i==null?void 0:i.action)==="initial-input-focus",Re=k.useMemo(function(){var xe="";if(Y.guidance){var Ae=u?"value":M?"menu":"input";xe=Y.guidance({"aria-label":z,context:Ae,isDisabled:l&&T(l,h),isMulti:A,isSearchable:I,tabSelectsValue:U,isInitialFocus:ae})}return xe},[z,l,u,A,T,I,M,Y,h,U,ae]),be=wt(k.Fragment,null,wt("span",{id:"aria-selection"},pe),wt("span",{id:"aria-focused"},ie),wt("span",{id:"aria-results"},ge),wt("span",{id:"aria-guidance"},Re));return wt(k.Fragment,null,wt(WA,{id:x},ae&&be),wt(WA,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},v&&!ae&&be))},JY=qY,Jw=[{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źẑżžẓẕƶȥɀⱬꝣ"}],QY=new RegExp("["+Jw.map(function(t){return t.letters}).join("")+"]","g"),Kk={};for(var aw=0;aw<Jw.length;aw++)for(var iw=Jw[aw],ow=0;ow<iw.letters.length;ow++)Kk[iw.letters[ow]]=iw.base;var eM=function(r){return r.replace(QY,function(i){return Kk[i]})},KY=GY(eM),XA=function(r){return r.replace(/^\s+|\s+$/g,"")},eZ=function(r){return"".concat(r.label," ").concat(r.value)},tZ=function(r){return function(i,l){if(i.data.__isNew__)return!0;var u=bt({ignoreCase:!0,ignoreAccents:!0,stringify:eZ,trim:!0,matchFrom:"any"},r),d=u.ignoreCase,v=u.ignoreAccents,h=u.stringify,y=u.trim,x=u.matchFrom,C=y?XA(l):l,w=y?XA(h(i)):h(i);return d&&(C=C.toLowerCase(),w=w.toLowerCase()),v&&(C=KY(C),w=eM(w)),x==="start"?w.substr(0,C.length)===C:w.indexOf(C)>-1}},nZ=["innerRef"];function rZ(t){var r=t.innerRef,i=al(t,nZ),l=TX(i,"onExited","in","enter","exit","appear");return wt("input",Tt({ref:r},l,{css:t1({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 aZ=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function iZ(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),x=k.useRef(null),C=k.useCallback(function(I,M){if(x.current!==null){var F=x.current,V=F.scrollTop,U=F.scrollHeight,P=F.clientHeight,z=x.current,X=M>0,Y=U-P-V,pe=!1;Y>M&&v.current&&(l&&l(I),v.current=!1),X&&h.current&&(d&&d(I),h.current=!1),X&&M>Y?(i&&!v.current&&i(I),z.scrollTop=U,pe=!0,v.current=!0):!X&&-M>V&&(u&&!h.current&&u(I),z.scrollTop=0,pe=!0,h.current=!0),pe&&aZ(I)}},[i,l,u,d]),w=k.useCallback(function(I){C(I,I.deltaY)},[C]),R=k.useCallback(function(I){y.current=I.changedTouches[0].clientY},[]),j=k.useCallback(function(I){var M=y.current-I.changedTouches[0].clientY;C(I,M)},[C]),A=k.useCallback(function(I){if(I){var M=wX?{passive:!1}:!1;I.addEventListener("wheel",w,M),I.addEventListener("touchstart",R,M),I.addEventListener("touchmove",j,M)}},[j,R,w]),T=k.useCallback(function(I){I&&(I.removeEventListener("wheel",w,!1),I.removeEventListener("touchstart",R,!1),I.removeEventListener("touchmove",j,!1))},[j,R,w]);return k.useEffect(function(){if(r){var I=x.current;return A(I),function(){T(I)}}},[r,A,T]),function(I){x.current=I}}var YA=["boxSizing","height","overflow","paddingRight","position"],ZA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function qA(t){t.preventDefault()}function JA(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 KA(){return"ontouchstart"in window||navigator.maxTouchPoints}var ej=!!(typeof window<"u"&&window.document&&window.document.createElement),pm=0,Bp={capture:!1,passive:!1};function oZ(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(ej){var x=document.body,C=x&&x.style;if(l&&YA.forEach(function(A){var T=C&&C[A];u.current[A]=T}),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(ZA).forEach(function(A){var T=ZA[A];C&&(C[A]=T)}),C&&(C.paddingRight="".concat(j,"px"))}x&&KA()&&(x.addEventListener("touchmove",qA,Bp),y&&(y.addEventListener("touchstart",QA,Bp),y.addEventListener("touchmove",JA,Bp))),pm+=1}},[l]),h=k.useCallback(function(y){if(ej){var x=document.body,C=x&&x.style;pm=Math.max(pm-1,0),l&&pm<1&&YA.forEach(function(w){var R=u.current[w];C&&(C[w]=R)}),x&&KA()&&(x.removeEventListener("touchmove",qA,Bp),y&&(y.removeEventListener("touchstart",QA,Bp),y.removeEventListener("touchmove",JA,Bp)))}},[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 sZ(){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 lZ=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},uZ=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:sZ};function cZ(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,x=iZ({isEnabled:u,onBottomArrive:d,onBottomLeave:v,onTopArrive:h,onTopLeave:y}),C=oZ({isEnabled:i}),w=function(j){x(j),C(j)};return wt(k.Fragment,null,i&&wt("div",{onClick:lZ,css:uZ}),r(w))}function dZ(){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 fZ=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:dZ},pZ=function(r){var i=r.name,l=r.onFocus;return wt("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:l,css:fZ,value:"",onChange:function(){}})},hZ=pZ;function o1(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 vZ(){return o1(/^iPhone/i)}function tM(){return o1(/^Mac/i)}function mZ(){return o1(/^iPad/i)||tM()&&navigator.maxTouchPoints>1}function gZ(){return vZ()||mZ()}function yZ(){return tM()||gZ()}var bZ=function(r){return r.label},xZ=function(r){return r.label},CZ=function(r){return r.value},SZ=function(r){return!!r.isDisabled},EZ={clearIndicator:nY,container:HX,control:uY,dropdownIndicator:eY,group:pY,groupHeading:vY,indicatorsContainer:YX,indicatorSeparator:aY,input:bY,loadingIndicator:sY,loadingMessage:VX,menu:OX,menuList:LX,menuPortal:$X,multiValue:wY,multiValueLabel:RY,multiValueRemove:_Y,noOptionsMessage:FX,option:OY,placeholder:MY,singleValue:FY,valueContainer:WX},wZ={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%)"},RZ=4,nM=4,_Z=38,TZ=nM*2,NZ={baseUnit:nM,controlHeight:_Z,menuGutter:TZ},sw={borderRadius:RZ,colors:wZ,spacing:NZ},IZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:UA(),captureMenuScroll:!UA(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:tZ(),formatGroupLabel:bZ,getOptionLabel:xZ,getOptionValue:CZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:SZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!SX(),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 tj(t,r,i,l){var u=iM(t,r,i),d=oM(t,r,i),v=aM(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 tj(t,v,r,h)}).filter(function(v){return rj(t,v)});return u.length>0?{type:"group",data:i,options:u,index:l}:void 0}var d=tj(t,i,r,l);return rj(t,d)?d:void 0}).filter(RX)}function rM(t){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,HR(i.options.map(function(l){return l.data}))):r.push(i.data),r},[])}function nj(t,r){return t.reduce(function(i,l){return l.type==="group"?i.push.apply(i,HR(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 AZ(t,r){return rM(u0(t,r))}function rj(t,r){var i=t.inputValue,l=i===void 0?"":i,u=r.data,d=r.isSelected,v=r.label,h=r.value;return(!lM(t)||!d)&&sM(t,{label:v,value:h,data:u},l)}function jZ(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 OZ(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},aM=function(r,i){return r.getOptionLabel(i)},L0=function(r,i){return r.getOptionValue(i)};function iM(t,r,i){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(r,i):!1}function oM(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 sM(t,r,i){return t.filterOption?t.filterOption(r,i):!0}var lM=function(r){var i=r.hideSelectedOptions,l=r.isMulti;return i===void 0?l:i},DZ=1,s1=function(t){FW(i,t);var r=zW(i);function i(l){var u;if(LW(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=yZ(),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,x){var C=u.props,w=C.onChange,R=C.name;x.name=R,u.ariaOnChange(y,x),w(y,x)},u.setValue=function(y,x,C){var w=u.props,R=w.closeMenuOnSelect,j=w.isMulti,A=w.inputValue;u.onInputChange("",{action:"set-value",prevInputValue:A}),R&&(u.setState({inputIsHiddenAfterUpdate:!j}),u.onMenuClose()),u.setState({clearFocusValueOnUpdate:!0}),u.onChange(y,{action:x,option:C})},u.selectOption=function(y){var x=u.props,C=x.blurInputOnSelect,w=x.isMulti,R=x.name,j=u.state.selectValue,A=w&&u.isOptionSelected(y,j),T=u.isOptionDisabled(y,j);if(A){var I=u.getOptionValue(y);u.setValue(j.filter(function(M){return u.getOptionValue(M)!==I}),"deselect-option",y)}else if(!T)w?u.setValue([].concat(HR(j),[y]),"select-option",y):u.setValue(y,"select-option");else{u.ariaOnChange(y,{action:"select-option",option:y,name:R});return}C&&u.blurInput()},u.removeValue=function(y){var x=u.props.isMulti,C=u.state.selectValue,w=u.getOptionValue(y),R=C.filter(function(A){return u.getOptionValue(A)!==w}),j=qb(x,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,x=u.state.selectValue,C=x[x.length-1],w=x.slice(0,x.length-1),R=qb(y,w,w[0]||null);u.onChange(R,{action:"pop-value",removedValue:C})},u.getFocusedOptionId=function(y){return lw(u.state.focusableOptionsWithIds,y)},u.getFocusableOptionsWithIds=function(){return nj(u0(u.props,u.state.selectValue),u.getElementId("option"))},u.getValue=function(){return u.state.selectValue},u.cx=function(){for(var y=arguments.length,x=new Array(y),C=0;C<y;C++)x[C]=arguments[C];return mX.apply(void 0,[u.props.classNamePrefix].concat(x))},u.getOptionLabel=function(y){return aM(u.props,y)},u.getOptionValue=function(y){return L0(u.props,y)},u.getStyles=function(y,x){var C=u.props.unstyled,w=EZ[y](x,C);w.boxSizing="border-box";var R=u.props.styles[y];return R?R(w,x):w},u.getClassNames=function(y,x){var C,w;return(C=(w=u.props.classNames)[y])===null||C===void 0?void 0:C.call(w,x)},u.getElementId=function(y){return"".concat(u.state.instancePrefix,"-").concat(y)},u.getComponents=function(){return $Y(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 rM(u.buildCategorizedOptions())},u.getFocusableOptions=function(){return u.props.menuIsOpen?u.buildFocusableOptions():[]},u.ariaOnChange=function(y,x){u.setState({ariaSelection:bt({value:y},x)})},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 x=u.props.openMenuOnClick;u.state.isFocused?u.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&u.onMenuClose():x&&u.openMenu("first"):(x&&(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 x=u.props,C=x.isMulti,w=x.menuIsOpen;u.focusInput(),w?(u.setState({inputIsHiddenAfterUpdate:!C}),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&&nx(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 x=y.touches,C=x&&x.item(0);C&&(u.initialTouchX=C.clientX,u.initialTouchY=C.clientY,u.userIsDragging=!1)},u.onTouchMove=function(y){var x=y.touches,C=x&&x.item(0);if(C){var w=Math.abs(C.clientX-u.initialTouchX),R=Math.abs(C.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 x=u.props.inputValue,C=y.currentTarget.value;u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange(C,{action:"input-change",prevInputValue:x}),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 x=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:x}),u.onMenuClose(),u.setState({focusedValue:null,isFocused:!1})},u.onOptionHover=function(y){if(!(u.blockOptionHover||u.state.focusedOption===y)){var x=u.getFocusableOptions(),C=x.indexOf(y);u.setState({focusedOption:y,focusedOptionId:C>-1?u.getFocusedOptionId(y):null})}},u.shouldHideSelectedOptions=function(){return lM(u.props)},u.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),u.focus()},u.onKeyDown=function(y){var x=u.props,C=x.isMulti,w=x.backspaceRemovesValue,R=x.escapeClearsValue,j=x.inputValue,A=x.isClearable,T=x.isDisabled,I=x.menuIsOpen,M=x.onKeyDown,F=x.tabSelectsValue,V=x.openMenuOnFocus,U=u.state,P=U.focusedOption,z=U.focusedValue,X=U.selectValue;if(!T&&!(typeof M=="function"&&(M(y),y.defaultPrevented))){switch(u.blockOptionHover=!0,y.key){case"ArrowLeft":if(!C||j)return;u.focusValue("previous");break;case"ArrowRight":if(!C||j)return;u.focusValue("next");break;case"Delete":case"Backspace":if(j)return;if(z)u.removeValue(z);else{if(!w)return;C?u.popValue():A&&u.clearValue()}break;case"Tab":if(u.isComposing||y.shiftKey||!I||!F||!P||V&&u.isOptionSelected(P,X))return;u.selectOption(P);break;case"Enter":if(y.keyCode===229)break;if(I){if(!P||u.isComposing)return;u.selectOption(P);break}return;case"Escape":I?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:j}),u.onMenuClose()):A&&R&&u.clearValue();break;case" ":if(j)return;if(!I){u.openMenu("first");break}if(!P)return;u.selectOption(P);break;case"ArrowUp":I?u.focusOption("up"):u.openMenu("last");break;case"ArrowDown":I?u.focusOption("down"):u.openMenu("first");break;case"PageUp":if(!I)return;u.focusOption("pageup");break;case"PageDown":if(!I)return;u.focusOption("pagedown");break;case"Home":if(!I)return;u.focusOption("first");break;case"End":if(!I)return;u.focusOption("last");break;default:return}y.preventDefault()}},u.state.instancePrefix="react-select-"+(u.props.instanceId||++DZ),u.state.selectValue=zA(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 PW(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&&$A(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&&($A(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,x=this.buildFocusableOptions(),C=u==="first"?0:x.length-1;if(!this.props.isMulti){var w=x.indexOf(h[0]);w>-1&&(C=w)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:x[C],focusedOptionId:this.getFocusedOptionId(x[C])},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 x=v.length-1,C=-1;if(v.length){switch(u){case"previous":y===0?C=0:y===-1?C=x:C=y-1;break;case"next":y>-1&&y<x&&(C=y+1);break}this.setState({inputIsHidden:C!==-1,focusedValue:v[C]})}}}},{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,x=h.indexOf(v);v||(x=-1),u==="up"?y=x>0?x-1:h.length-1:u==="down"?y=(x+1)%h.length:u==="pageup"?(y=x-d,y<0&&(y=0)):u==="pagedown"?(y=x+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,x=this.selectOption,C=this.setValue,w=this.props,R=w.isMulti,j=w.isRtl,A=w.options,T=this.hasValue();return{clearValue:u,cx:d,getStyles:v,getClassNames:h,getValue:y,hasValue:T,isMulti:R,isRtl:j,options:A,selectOption:x,selectProps:w,setValue:C,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 iM(this.props,u,d)}},{key:"isOptionSelected",value:function(u,d){return oM(this.props,u,d)}},{key:"filterOption",value:function(u,d){return sM(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,x=u.tabIndex,C=u.form,w=u.menuIsOpen,R=u.required,j=this.getComponents(),A=j.Input,T=this.state,I=T.inputIsHidden,M=T.ariaSelection,F=this.commonProps,V=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()?(M==null?void 0:M.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return v?k.createElement(A,Tt({},F,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:V,innerRef:this.getInputRef,isDisabled:d,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:x,form:C,type:"text",value:y},U)):k.createElement(rZ,Tt({id:V,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:k0,onFocus:this.onInputFocus,disabled:d,tabIndex:x,inputMode:"none",form:C,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var u=this,d=this.getComponents(),v=d.MultiValue,h=d.MultiValueContainer,y=d.MultiValueLabel,x=d.MultiValueRemove,C=d.SingleValue,w=d.Placeholder,R=this.commonProps,j=this.props,A=j.controlShouldRenderValue,T=j.isDisabled,I=j.isMulti,M=j.inputValue,F=j.placeholder,V=this.state,U=V.selectValue,P=V.focusedValue,z=V.isFocused;if(!this.hasValue()||!A)return M?null:k.createElement(w,Tt({},R,{key:"placeholder",isDisabled:T,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),F);if(I)return U.map(function(Y,pe){var ie=Y===P,ge="".concat(u.getOptionLabel(Y),"-").concat(u.getOptionValue(Y));return k.createElement(v,Tt({},R,{components:{Container:h,Label:y,Remove:x},isFocused:ie,isDisabled:T,key:ge,index:pe,removeProps:{onClick:function(){return u.removeValue(Y)},onTouchEnd:function(){return u.removeValue(Y)},onMouseDown:function(Re){Re.preventDefault()}},data:Y}),u.formatOptionLabel(Y,"value"))});if(M)return null;var X=U[0];return k.createElement(C,Tt({},R,{data:X,isDisabled:T}),this.formatOptionLabel(X,"value"))}},{key:"renderClearIndicator",value:function(){var u=this.getComponents(),d=u.ClearIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||x)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,Tt({},v,{innerProps:w,isFocused:C}))}},{key:"renderLoadingIndicator",value:function(){var u=this.getComponents(),d=u.LoadingIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!d||!x)return null;var w={"aria-hidden":"true"};return k.createElement(d,Tt({},v,{innerProps:w,isDisabled:y,isFocused:C}))}},{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,x=this.state.isFocused;return k.createElement(v,Tt({},h,{isDisabled:y,isFocused:x}))}},{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,x={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(d,Tt({},v,{innerProps:x,isDisabled:h,isFocused:y}))}},{key:"renderMenu",value:function(){var u=this,d=this.getComponents(),v=d.Group,h=d.GroupHeading,y=d.Menu,x=d.MenuList,C=d.MenuPortal,w=d.LoadingMessage,R=d.NoOptionsMessage,j=d.Option,A=this.commonProps,T=this.state.focusedOption,I=this.props,M=I.captureMenuScroll,F=I.inputValue,V=I.isLoading,U=I.loadingMessage,P=I.minMenuHeight,z=I.maxMenuHeight,X=I.menuIsOpen,Y=I.menuPlacement,pe=I.menuPosition,ie=I.menuPortalTarget,ge=I.menuShouldBlockScroll,ae=I.menuShouldScrollIntoView,Re=I.noOptionsMessage,be=I.onMenuScrollToTop,xe=I.onMenuScrollToBottom;if(!X)return null;var Ae=function(Ce,we){var Te=Ce.type,Ie=Ce.data,ue=Ce.isDisabled,de=Ce.isSelected,Ve=Ce.label,Ge=Ce.value,tt=T===Ie,ot=ue?void 0:function(){return u.onOptionHover(Ie)},je=ue?void 0:function(){return u.selectOption(Ie)},Rt="".concat(u.getElementId("option"),"-").concat(we),dt={id:Rt,onClick:je,onMouseMove:ot,onMouseOver:ot,tabIndex:-1,role:"option","aria-selected":u.isAppleDevice?void 0:de};return k.createElement(j,Tt({},A,{innerProps:dt,data:Ie,isDisabled:ue,isSelected:de,key:Rt,label:Ve,type:Te,value:Ge,isFocused:tt,innerRef:tt?u.getFocusedOptionRef:void 0}),u.formatOptionLabel(Ce.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var Ce=re.data,we=re.options,Te=re.index,Ie="".concat(u.getElementId("group"),"-").concat(Te),ue="".concat(Ie,"-heading");return k.createElement(v,Tt({},A,{key:Ie,data:Ce,options:we,Heading:h,headingProps:{id:ue,data:re.data},label:u.formatGroupLabel(re.data)}),re.options.map(function(de){return Ae(de,"".concat(Te,"-").concat(de.index))}))}else if(re.type==="option")return Ae(re,"".concat(re.index))});else if(V){var ne=U({inputValue:F});if(ne===null)return null;Le=k.createElement(w,A,ne)}else{var Oe=Re({inputValue:F});if(Oe===null)return null;Le=k.createElement(R,A,Oe)}var G={minMenuHeight:P,maxMenuHeight:z,menuPlacement:Y,menuPosition:pe,menuShouldScrollIntoView:ae},Z=k.createElement(DX,Tt({},A,G),function(re){var Ce=re.ref,we=re.placerProps,Te=we.placement,Ie=we.maxHeight;return k.createElement(y,Tt({},A,G,{innerRef:Ce,innerProps:{onMouseDown:u.onMenuMouseDown,onMouseMove:u.onMenuMouseMove},isLoading:V,placement:Te}),k.createElement(cZ,{captureEnabled:M,onTopArrive:be,onBottomArrive:xe,lockEnabled:ge},function(ue){return k.createElement(x,Tt({},A,{innerRef:function(Ve){u.getMenuListRef(Ve),ue(Ve)},innerProps:{role:"listbox","aria-multiselectable":A.isMulti,id:u.getElementId("listbox")},isLoading:V,maxHeight:Ie,focusedOption:T}),Le)}))});return ie||pe==="fixed"?k.createElement(C,Tt({},A,{appendTo:ie,controlElement:this.controlRef,menuPlacement:Y,menuPosition:pe}),Z):Z}},{key:"renderFormField",value:function(){var u=this,d=this.props,v=d.delimiter,h=d.isDisabled,y=d.isMulti,x=d.name,C=d.required,w=this.state.selectValue;if(C&&!this.hasValue()&&!h)return k.createElement(hZ,{name:x,onFocus:this.onValueInputFocus});if(!(!x||h))if(y)if(v){var R=w.map(function(T){return u.getOptionValue(T)}).join(v);return k.createElement("input",{name:x,type:"hidden",value:R})}else{var j=w.length>0?w.map(function(T,I){return k.createElement("input",{key:"i-".concat(I),name:x,type:"hidden",value:u.getOptionValue(T)})}):k.createElement("input",{name:x,type:"hidden",value:""});return k.createElement("div",null,j)}else{var A=w[0]?this.getOptionValue(w[0]):"";return k.createElement("input",{name:x,type:"hidden",value:A})}}},{key:"renderLiveRegion",value:function(){var u=this.commonProps,d=this.state,v=d.ariaSelection,h=d.focusedOption,y=d.focusedValue,x=d.isFocused,C=d.selectValue,w=this.getFocusableOptions();return k.createElement(JY,Tt({},u,{id:this.getElementId("live-region"),ariaSelection:v,focusedOption:h,focusedValue:y,isFocused:x,selectValue:C,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,x=this.props,C=x.className,w=x.id,R=x.isDisabled,j=x.menuIsOpen,A=this.state.isFocused,T=this.commonProps=this.getCommonProps();return k.createElement(h,Tt({},T,{className:C,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:R,isFocused:A}),this.renderLiveRegion(),k.createElement(d,Tt({},T,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:R,isFocused:A,menuIsOpen:j}),k.createElement(y,Tt({},T,{isDisabled:R}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(v,Tt({},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,x=d.ariaSelection,C=d.isFocused,w=d.prevWasFocused,R=d.instancePrefix,j=u.options,A=u.value,T=u.menuIsOpen,I=u.inputValue,M=u.isMulti,F=zA(A),V={};if(v&&(A!==v.value||j!==v.options||T!==v.menuIsOpen||I!==v.inputValue)){var U=T?AZ(u,F):[],P=T?nj(u0(u,F),"".concat(R,"-option")):[],z=h?jZ(d,F):null,X=OZ(d,U),Y=lw(P,X);V={selectValue:F,focusedOption:X,focusedOptionId:Y,focusableOptionsWithIds:P,focusedValue:z,clearFocusValueOnUpdate:!1}}var pe=y!=null&&u!==v?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},ie=x,ge=C&&w;return C&&!ge&&(ie={value:qb(M,F,F[0]||null),options:F,action:"initial-input-focus"},ge=!w),(x==null?void 0:x.action)==="initial-input-focus"&&(ie=null),bt(bt(bt({},V),pe),{},{prevProps:u,ariaSelection:ie,prevWasFocused:ge})}}]),i}(k.Component);s1.defaultProps=IZ;var kZ=k.forwardRef(function(t,r){var i=bk(t);return k.createElement(s1,Tt({ref:r},i))}),l1=kZ;const MZ=`, ${new Date().getFullYear()}`;function aj({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`,x=y;if(u.endDate){const C=u.endDate?` until ${Hd(u.endDate).replace(MZ,"")}`:"";i||(y+=C),x+=C}else i||(y+=" for you"),x+=u.institutionType?` for researchers from ${u.institutionType}`:" for you";return x+=`: ${nO(r.unit,u.unitCost,t.name)}`,m.jsxs("span",{className:`badge text-bg-${v} ms-2`,title:x,style:{cursor:"help"},children:[m.jsx("i",{className:`bi bi-${d} me-1`}),y]})}function Hp({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:x,trigger:C="click",visible:w=!0}){const R=typeof d=="string"||d instanceof String,[j,A]=k.useState(R?localStorage.getItem(d)!="true":d),[T,I]=k.useState(!1);k.useEffect(()=>{setTimeout(()=>I(!0),100)},[]);const M=()=>{R&&localStorage.setItem(d,"true")},F=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:()=>{M(),A(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:m.jsx("i",{className:"bi bi-x-lg"})}),r]});return x&&x.current?m.jsx(mk,{target:x.current,placement:y,show:j&&w&&T,children:F}):m.jsx(UR,{placement:y,onToggle:V=>{M(),A(V)},overlay:F,show:j&&w&&T,trigger:C,children:m.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:m.jsx("i",{className:`bi bi-${u}`})})})}function LZ({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 PZ="_items_c2dbg_1",FZ="_item_c2dbg_1",VZ="_details_c2dbg_14",BZ="_text_c2dbg_20",zZ="_number_c2dbg_35",$Z="_outer_c2dbg_50",UZ="_inner_c2dbg_61",Jl={items:PZ,item:FZ,details:VZ,text:BZ,number:zZ,outer:$Z,inner:UZ},hm=(t,r)=>`${Math.cos(2*Math.PI*t)*r} ${Math.sin(2*Math.PI*t)*r}`;function HZ({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=[],x=[];let C=-.25;const w=[...h,v].map((R,j)=>{if(!R)return null;const A=j+1,I=ww(R)/d,M=R.requested-R.used,F=Math.max(0,M),V=R.isCredit?d/R.exchangeRates.base.unitCost:R.requested,U=V==0?0:100*F/V,z=`var(--bs-${R.isCredit?i:l[j%l.length]})`;if(I>0){const X=C,Y=C+I/2,pe=C+=I,ie=I>.5?1:0,ge=[`M ${hm(X,100)}`,`A 100 100 0 ${ie} 1 ${hm(pe,100)}`,`L ${hm(pe,50)}`,`A 50 50 0 ${ie} 0 ${hm(X,50)}`].join(" "),[ae,Re]=hm(Y,75).split(" ").map(be=>parseFloat(be));y.push(m.jsx("path",{d:ge,style:{fill:z}},R.resourceId)),x.push(m.jsx("circle",{cx:ae,cy:Re,r:"8",fill:"black"},`${R.resourceId}-circle`),m.jsx("text",{x:ae-4,y:Re+4,fill:"white",className:Jl.number,children:A},`${R.resourceId}-text`))}return R.isCredit&&x.push(m.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:m.jsx("div",{className:Jl.text,children:m.jsxs("div",{children:[m.jsx("strong",{children:ga(F,{abbreviate:!0})}),R.unit," available"]})})},"center-text")),m.jsxs("li",{className:Jl.item,children:[m.jsx("span",{className:Jl.number,children:A}),m.jsx("span",{className:`${Jl.outer} ms-2 me-2`,style:{borderColor:z},children:m.jsx("span",{className:Jl.inner,style:{backgroundColor:z,width:`${U}%`}})}),m.jsxs("strong",{className:Jl.name,children:[m.jsx(Xd,{resource:R,userGuide:!1}),": "]}),m.jsxs("span",{className:Jl.details,children:[ga(M,{abbreviate:!0})," ",R.isCredit?null:m.jsxs(m.Fragment,{children:["of ",ga(V,{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,x]})}),m.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:m.jsx("ul",{className:Jl.items,children:w})})]})}const ij=t=>t;function GZ({classes:t,clean:r=ij,format:i=ij,label:l,setValue:u,style:d,value:v}){const h=i(v),[y,x]=k.useState(h);return k.useEffect(()=>{x(h)},[h]),m.jsx("input",{type:"text","aria-label":l,className:`form-control ${t}`,value:y,style:d,onChange:C=>x(C.target.value),onBlur:C=>{const w=r(C.target.value);x(i(w)),u(w)},onKeyDown:C=>{C.code=="Enter"&&(C.preventDefault(),C.target.blur())}})}function WZ({requestId:t,grantNumber:r}){const{request:i,addResource:l,openUsageDetailModal:u,resetResources:d,setResourceRequest:v,setResourcesReason:h,statuses:y,toggleActionsModal:x,toggleConfirmModal:C,toggleResourcesModal:w}=ri(t,r),{project:R}=Ji(r||i&&i.grantNumber),j=k.useRef(null),A=k.useRef(null);if(!i||!R)return;const T="Exchange"in i.allowedActions,I="Renewal"in i.allowedActions,M="Supplement"in i.allowedActions,F=i.exchangeStatus==y.pending,V=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,P=i.exchangeActionId!==null,z=i.resources,X=i.resourcesReason,Y={};for(let ue of z)Y[ue.resourceId]=ue;const pe=()=>{rO(i)>=.75?x():C()},ie=[];for(let ue of z){let de=[];if(ue.requested>0){for(let Ve of ue.requires||[]){let Ge=Y[Ve];if(Ge){if(Ge.requested>0){de=[];break}de.push(Ge)}}de.length&&ie.push(m.jsxs("span",{children:[m.jsx(Xd,{resource:ue,userGuide:!1})," requires"," ",tO(de.map(Ve=>m.jsx(Xd,{resource:Ve,userGuide:!1},Ve.resourceId)),"or"),"."]},ue.resourceId))}}const ge=ie.length>0;let ae;V?ae=m.jsx(Mr,{color:"info",children:"Your exchange request has been submitted."}):P?ae=m.jsx(Mr,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?ae=m.jsx(Mr,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!R.isManager?ae=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",mR(R)," to request a change."]}):ge&&(ae=m.jsxs(Mr,{color:"warning",children:[ie," Please adjust your balance values."]}));const Re=X.length>0;let be=!1,xe=!1;for(let ue of z)if(ue.isNew&&(be=!0),ue.allocated!=ue.requested&&(xe=!0),be&&xe)break;const Ae=z.map(ue=>ue.resourceId),Le={},ne=T&&!V&&!P?i.allowedActions.Exchange.resources.filter(ue=>!Ae.includes(ue.resourceId)).map(ue=>{Le[ue.resourceId]=ue;const de=U0(ue.name),Ve=de.short?`${de.short} (${de.full.replace(/ \([^(]+\)/,"")})`:de.full;return{value:ue.resourceId,label:Ve}}):[],Oe=T?i.allowedActions.Exchange.resources.map(ue=>ue.resourceId):[];let G;const Z=[],re=[];for(let ue of z)ue.isCredit?G=ue:(Z.push(ue),re.push(!V&&!P&&(ue.isNew||ue.allocated!=ue.requested)?Gd.edited:Oe.includes(ue.resourceId)?"":Gd.disabled));const Ce=`Add ${Z.length?"another":"a"} resource to your exchange...`,we=ue=>ue.requested-ue.used,Te=(ue,de)=>{const Ve=de.allocated-de.used,Ge=$p(Number(ue.replace(/[^0-9-.]/g,"")),de.decimalPlaces),tt=Math.min(0,Ve);if(Ge<tt)return tt;let ot=G.requested*G.exchangeRates.base.unitCost;const je=(de.allocated-de.requested)*de.exchangeRates.base.unitCost,Rt=Math.min(ot,je);ot-=Rt;let dt=de.requested-de.used+Rt/de.exchangeRates.base.unitCost;return ot>0&&(dt+=ot/de.exchangeRates.current.unitCost),Ge>dt?$p(dt,de.decimalPlaces,"floor"):Ge},Ie=[{key:"name",name:"Resource",format:(ue,de)=>m.jsx(Xd,{resource:de}),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(ue,de)=>m.jsx(Jp,{status:ue?"Active":de.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(ue,de)=>de.isBoolean?m.jsx(m.Fragment,{children:"—"}):[m.jsx("abbr",{title:nO(ue,de.exchangeRates.base.unitCost,G.name),children:ue},"base"),m.jsx(aj,{creditResource:G,resource:de,short:!0},"discount")]},{key:"used",name:"Usage",class:"text-end",format:(ue,de)=>de.isBoolean?m.jsx(m.Fragment,{children:"—"}):m.jsxs(m.Fragment,{children:[ga(ue),(R.currentUser.resourceIds.includes(de.resourceId)||R.currentUser.resourceAccountInactiveIds.includes(de.resourceId))&&m.jsx(T0,{icon:"table",onClick:()=>u(de.resourceRepositoryKey),target:"_blank",title:`${de.name} Usage Details`})]})}];return T&&Ie.push({key:"requested",name:"Balance",class:"text-end",rowClass:ue=>!V&&!P&&Oe.includes(ue.resourceId)?Gd.input:"",format:(ue,de)=>{const Ve=!V&&!P&&Oe.includes(de.resourceId);return de.isBoolean?m.jsx("input",{className:"form-check-input",type:"checkbox",checked:ue==1,disabled:!Ve,onChange:Ge=>v(de.resourceId,Ge.target.checked?1:0)}):Ve?m.jsx(GZ,{classes:"text-end w-100",clean:Ge=>Te(Ge,de),format:ga,label:`Balance for ${de.name}`,setValue:Ge=>{v(de.resourceId,Ge+de.used)},style:{padding:"0.1rem 0.5rem"},value:we(de)}):ga(we(de))},formatHeader:ue=>m.jsxs(m.Fragment,{children:[ue,!V&&!P?m.jsx(Hp,{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:[ae,z.length?m.jsx(HZ,{requestId:t}):null,G&&(T||I||M)?m.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[m.jsxs("span",{children:[bc(Jt.resourceTypeIcons.credit)," ",ga(G.requested,G)," ",G.unit," available to exchange"]}),I||M?m.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:pe,children:[bc(Jt.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,Z.length?m.jsx(su,{columns:Ie,rows:Z,rowClasses:re,classes:ne.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."}),ne.length?m.jsxs(m.Fragment,{children:[m.jsx(LZ,{resources:T&&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(l1,{classNames:{control:()=>"react-select mb-1"},options:ne,onChange:ue=>l(ue.value),placeholder:Ce,value:null,"aria-label":Ce,formatOptionLabel:({value:ue,label:de})=>[de,m.jsx(aj,{creditResource:G,resource:Le[ue]},"discount")]})}),Z.length?null:m.jsx(Hp,{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,T&&!V&&!P?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:ue=>h(ue.target.value),style:{minHeight:"3rem"}})]}),m.jsxs("div",{className:"d-flex",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:F||!xe&&!Re&&!be,onClick:d,children:"Reset Form"}),m.jsx("button",{ref:A,type:"button",className:"btn btn-secondary",disabled:F||!xe||!Re||ge,onClick:w,children:F?"Submitting...":"Submit for Approval"})]}),xe&&!ge?m.jsx(Hp,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:A,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 XZ({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:x,resourceId:C,values:w}=t,R=h[0],j=R.required?"required":"",A=V=>u(C,v,V.target.value?[V.target.value]:[]),T=V=>{u(C,v,Array.from(V.target.options).filter(({selected:U})=>U).map(({value:U})=>parseInt(U,10)))},I=V=>{const U=parseInt(V.target.value,10),P=V.target.checked?[...w,U]:w.filter(z=>z!=U);u(C,v,P)},M=V=>{const U=parseInt(V.target.value);u(C,v,isNaN(U)?[]:[U])};let F;if(["calendar","integer_only","text"].includes(y)){const V={calendar:"date",integer_only:"number",text:"text"}[y];F=m.jsx("input",{className:"form-control",id:d,type:V,placeholder:R.label,required:R.required,value:w[0]||"",onChange:y=="integer_only"?M:A})}else if(y=="textarea")F=m.jsx("textarea",{className:"form-control",id:d,placeholder:R.label,required:R.required,value:w[0]||"",onChange:A});else if(y=="drop_down"||h.length>=10){const V=y=="multi_sel";F=m.jsxs("select",{id:d,className:"form-select",required:R.required,multiple:V,onChange:V?T:M,value:V?w:w[0]||"",children:[V?null:m.jsx("option",{}),h.map(U=>m.jsx("option",{value:U.resourceAttributeId,children:U.label},U.resourceAttributeId))]})}else F=m.jsx("div",{id:d,children:h.map(V=>{const U=`resource-attribute-${V.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:V.resourceAttributeId,checked:w.includes(V.resourceAttributeId),onChange:y=="single_sel"?M:I}),m.jsx("label",{className:"form-check-label",htmlFor:U,children:V.label})]},V.resourceAttributeId)})});return m.jsxs("div",{className:"mb-3",children:[m.jsx("label",{htmlFor:d,className:`form-label ${j}`,children:x}),F]})}function YZ({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(x=>x.allocated!=x.requested).map(x=>{const C=x.requested-x.allocated;return x.questions&&v.push(...x.questions),m.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[x.name,m.jsx("span",{className:`badge bg-${C>0?"primary":"danger"} rounded-pill`,children:x.isBoolean?vR(x.requested):m.jsxs(m.Fragment,{children:[C>0?"+":"",ga(C,x)," ",x.unit]})})]},x.resourceId)}),y=v.some(({attributes:x,values:C})=>C.length==0&&x[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(x=>m.jsx(XZ,{question:x,requestId:t,grantNumber:r},x.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 uM({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 ZZ({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(th,{});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:x,users:C}=l.usageDetail,{full:w,short:R}=U0(y),j=l.resources.find(M=>M.resourceRepositoryKey==x),A=M=>ga(M,{decimalPlaces:j?j.decimalPlaces:void 0}),T={};for(let M of i.users)T[M.username]=M;v=m.jsxs(m.Fragment,{children:["Usage: ",R||w," for ",h]});const I=[{key:"name",name:"Name",format:(M,{lastName:F,firstName:V,portalUsername:U})=>{const P=T[U];return P?m.jsx(uM,{user:P}):`${F}, ${V}`}},{key:"portalUsername",name:"Resource Username",format:M=>{const F=T[M],V=F?F.resourceUsernames[j.resourceId]:null;return V||m.jsx(m.Fragment,{children:"—"})}},{key:"role",name:"Role",format:M=>aO[M].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:A},{key:"lastMonth",name:"Last Month",class:"text-end",format:A},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:A},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:A},{key:"total",name:"All Time",class:"text-end",format:A}];d=C.length?m.jsx(su,{rows:C,columns:I}):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 qZ=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function JZ(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,x=t.filterOption,C=x===void 0?null:x,w=al(t,qZ),R=w.inputValue,j=k.useRef(void 0),A=k.useRef(!1),T=k.useState(Array.isArray(i)?i:void 0),I=na(T,2),M=I[0],F=I[1],V=k.useState(typeof R<"u"?R:""),U=na(V,2),P=U[0],z=U[1],X=k.useState(i===!0),Y=na(X,2),pe=Y[0],ie=Y[1],ge=k.useState(void 0),ae=na(ge,2),Re=ae[0],be=ae[1],xe=k.useState([]),Ae=na(xe,2),Le=Ae[0],ne=Ae[1],Oe=k.useState(!1),G=na(Oe,2),Z=G[0],re=G[1],Ce=k.useState({}),we=na(Ce,2),Te=we[0],Ie=we[1],ue=k.useState(void 0),de=na(ue,2),Ve=de[0],Ge=de[1],tt=k.useState(void 0),ot=na(tt,2),je=ot[0],Rt=ot[1];u!==je&&(Ie({}),Rt(u)),i!==Ve&&(F(Array.isArray(i)?i:void 0),Ge(i)),k.useEffect(function(){return A.current=!0,function(){A.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(P,function(ln){A.current&&(F(ln||[]),ie(!!j.current))})},[]);var en=k.useCallback(function(ln,In){var Vt=gX(ln,In,y);if(!Vt){j.current=void 0,z(""),be(""),ne([]),ie(!1),re(!1);return}if(u&&Te[Vt])z(Vt),be(Vt),ne(Te[Vt]),ie(!1),re(!1);else{var Cn=j.current={};z(Vt),ie(!0),re(!Re),dt(Vt,function(Qn){A&&Cn===j.current&&(j.current=void 0,ie(!1),be(Vt),ne(Qn||[]),re(!1),Ie(Qn?bt(bt({},Te),{},zp({},Vt,Qn)):Te))})}},[u,dt,Re,Te,y]),sn=Z?[]:P&&Re?Le:M||[];return bt(bt({},w),{},{options:sn,isLoading:pe||h,onInputChange:en,filterOption:C})}var QZ=k.forwardRef(function(t,r){var i=JZ(t),l=bk(i);return k.createElement(s1,Tt({ref:r},l))}),KZ=QZ;const oj=({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:x=>i(x.target.checked),ref:d,type:"checkbox"}),m.jsx("label",{className:"form-check-label",htmlFor:v,"aria-description":`${h?"Deselect":"Select"} ${t}`})]})};function e6({grantNumber:t,requestId:r}){const{project:i,addUser:l,resetUsers:u,saveUsers:d,setTab:v,setUserRole:h,statuses:y,toggleUsersResources:x}=Ji(t),{request:C}=i?ri(r||i.currentRequestId,t):{request:null};if(!i||!i.currentRequestId||!C||i.error||C.error)return;const w=i.isManager,R="Exchange"in C.allowedActions,j=i.usersStatus==y.pending,A=i.usersStatus==y.success,T=i.usersStatus==y.error,I=i.users,M=C.resources.filter(jw),F=M.length==0,V=I.find(ie=>ie.hasChanges)!==void 0,U=I.find(ie=>ie.role!="pi")!==void 0;let P;A&&!V?P=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."}):T?P=m.jsx(Mr,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?M.length?F&&(P=m.jsx(Mr,{color:"warning",children:"This project does not have any active resources."})):P=m.jsxs(Mr,{color:"warning",children:["This project does not have any resources."," ",R?m.jsx("a",{href:Jt.routes.request_action_path(C.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."]}):P=m.jsxs(Mr,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",mR(i)," to request a change."]});const z=(ie,ge)=>{let ae,Re,be,xe;if(ge.key=="all"){ae="all resources for all users",Re=Ae=>x(Ae),be=0;for(let Ae of I)be+=Ae.resourceIds.length;xe=I.length*M.length}else ae=`all users for ${ge.name}`,Re=Ae=>x(Ae,null,ge.key),be=I.filter(({resourceIds:Ae})=>Ae.includes(ge.key)).length,xe=I.length;return m.jsxs(m.Fragment,{children:[ge.key=="all"?ie:m.jsx(Xd,{resource:ge,userGuide:!1}),m.jsx("br",{}),m.jsx(oj,{description:ae,disabled:ge.disabled,onChange:Re,selectedLength:be,totalLength:xe})]})},X=H0.map(({role:ie,name:ge})=>m.jsx("option",{value:ie,children:ge},ie)),Y=[{key:"name",name:"Name",width:200,format:(ie,ge)=>m.jsx(uM,{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:ae=>h(ge.username,ae.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(ae=>ae.key==ie||!["pi","co_pi"].includes(ae.key))})}];M.length&&Y.push({key:"all",name:"All Resources",class:`text-center ${Gd.important}`,disabled:!w||F,width:100,format:(ie,ge)=>m.jsx(oj,{description:`all users for ${ge.name}`,disabled:!w||F,onChange:ae=>x(ae,ge.username),selectedLength:ge.resourceIds.length,totalLength:M.length}),formatHeader:z});for(let ie of M)Y.push({key:ie.resourceId,name:ie.name,class:"text-center",disabled:!w||!ie.isActive,icon:ie.icon,format:(ge,ae)=>m.jsx(m.Fragment,{children:m.jsx("input",{className:"form-check-input",disabled:!w||!ie.isActive,onChange:Re=>x(Re.target.checked,ae.username,ie.resourceId),type:"checkbox",checked:ae.resourceIds.includes(ie.resourceId)})}),formatHeader:z});const pe=I.map(ie=>ie.hasChanges?Gd.edited:"");return m.jsxs(m.Fragment,{children:[P,m.jsx(su,{rows:I,columns:Y,frozenColumns:M.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:pe,scrollRowIndex:i.usersNewRowIndex}),w&&M.length&&!F?m.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:m.jsx(KZ,{classNames:{control:()=>"react-select"},loadOptions:async ie=>(await iG(ie)).map(ae=>({value:ae,label:`${ae.username} (${ae.firstName} ${ae.lastName}, ${ae.organization}${ae.email?`, ${ae.email}`:""})`})),onChange:ie=>l(ie.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,w&&(M.length&&!F||U)?m.jsxs("div",{className:"d-flex mt-3",children:[m.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:j||!V,onClick:u,children:"Reset Form"}),m.jsx("button",{type:"button",className:"btn btn-secondary",disabled:j||!V,onClick:d,children:j?"Saving...":"Save Changes"})]}):null]})}function t6({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:x})=>x),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:DG.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:x=>{x.preventDefault(),u(l.currentRequestId)},children:"Go to the current request."}):null]}):null,m.jsxs(Y3,{activeKey:l.tab,onSelect:d,className:"mt-3 mb-3",children:[m.jsx(zb,{eventKey:"overview",title:"Overview",className:"mb-0",children:m.jsx(AW,{requestId:t,grantNumber:r})}),m.jsx(zb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:m.jsx(WZ,{requestId:t})}),m.jsx(zb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:m.jsx(e6,{grantNumber:r})}),m.jsx(zb,{eventKey:"history",title:"History",children:m.jsx(aW,{requestId:t})})]}),m.jsx(eW,{grantNumber:r,requestId:t}),m.jsx(tW,{grantNumber:r,requestId:t}),m.jsx(nW,{grantNumber:r,requestId:t,actionId:h?h.actionId:null}),m.jsx(YZ,{grantNumber:r,requestId:t}),m.jsx(ZZ,{grantNumber:r,requestId:t})]})}function n6({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",x=>{x.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(x=>x.isRequest);if(y){const x=y.allowedOperations||[];x.includes("Edit")&&h.push(["Edit",Jt.routes.edit_request_path(i.requestId),"pencil"]),x.includes("Delete")&&h.push(["Delete",C=>{C.preventDefault(),u(y.actionId)},"trash","danger"])}return h.map(([x,C,w,R])=>{const j=m.jsxs(m.Fragment,{children:[" ",w&&m.jsx("i",{className:`bi bi-${w} me-1`}),x]});return typeof C=="function"?m.jsx("button",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,onClick:C,children:j},x):m.jsx("a",{className:`btn btn-${R||"primary"} ms-2 text-nowrap`,href:C,children:j},x)})}function r6({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 x=null;if(u&&v)if(v.error)x=m.jsx(Mr,{color:"danger",children:v.error});else{let C;const w=v.requestsList.map(R=>(R.requestId==v.selectedRequestId&&(C=R),m.jsx("option",{value:R.requestId,children:hR(R)},R.requestId)));x=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(n6,{requestId:v.selectedRequestId,grantNumber:r})]}),C?m.jsx(t6,{...C,grantNumber:r}):null]})}return m.jsxs("div",{className:`${XI.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:XI.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(Jp,{status:l||v.status})]}),m.jsx("div",{className:"card-body",id:y,hidden:!u||!v,children:x})]})}function a6({username:t,openFirst:r=1}){const{error:i,loading:l,projects:u}=IG(t);return l?m.jsx(th,{}):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(r6,{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 cM={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:[]}},i6=Di("projectsBrowser/initApp",async(t,{getState:r,dispatch:i})=>{const l=window.location.search,u=new URLSearchParams(l);u.has("_requestNumber")&&(i(Kw({name:"requestNumber",value:u.get("_requestNumber")})),i(fM(!0))),await i(Qw()),await i(Yd()),i(o6())}),o6=Di("projectsBrowser/filterCleanup",async(t,{getState:r,dispatch:i})=>{const u=r().projectsBrowser.typeLists;i(dM({...u,orgs:["-- ALL --"].concat(u.orgs)}))}),Qw=Di("projectsBrowser/getFilters",async(t,{getState:r,dispatch:i})=>{const u=`${r().projectsBrowser.apiUrl}?filters=1`,v=await(await fetch(u)).json();i(dM(v.filters))}),Yd=Di("projectsBrowser/getProjects",async(t,{getState:r,dispatch:i})=>{const l=r().projectsBrowser,u=l.filters,d=l.typeLists,v=d.fosTypes.filter(C=>C.checked);let h=`${l.apiUrl}?page=${l.pageData.current_page}`;return u.requestNumber!=""?(h+=`&request_number=${u.requestNumber}`,i(lj(!0))):(i(lj(!1)),v.length!=d.fosTypes.length&&(h+=`&fos=${v.map(C=>C.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()}),u1=z0({name:"projectsBrowser",initialState:cM,reducers:{resetFilters:t=>{t.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},t.singleEntry=!1,u1.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(Yd.pending,r=>{r.projectsLoaded=!1}).addCase(Yd.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(Yd.rejected,(r,i)=>{console.log(i.error)}).addCase(Qw.pending,r=>{r.filtersLoaded=!1}).addCase(Qw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:s6,setApiUrl:Wq,setShowPagination:sj,setTypeLists:dM,toggleAllFos:l6,toggleFos:u6,toggleListFiltered:fM,toggleSingleEntry:lj,updateFilter:Kw,updatePageData:eR}=u1.actions,c6=t=>t.projectsBrowser.filters,d6=t=>t.projectsBrowser.filtersLoaded,f6=t=>t.projectsBrowser.listIsFiltered,p6=t=>t.projectsBrowser.singleEntry,h6=t=>t.projectsBrowser.projectsLoaded,v6=t=>t.projectsBrowser.pageData,m6=t=>t.projectsBrowser.projects,g6=t=>t.projectsBrowser.filtersLoaded&&t.projectsBrowser.projectsLoaded&&t.projectsBrowser.pageData.last_page>1,y6=t=>t.projectsBrowser.typeLists,b6=u1.reducer;const x6=()=>{const t=No(),r=Jn(c6),i=Jn(y6),l=Jn(f6),u=i.orgs.map(T=>({label:T,value:T})),d=k.useRef(),[v,h]=k.useState(null),y={height:"200px",overflowX:"auto",padding:"2px"},x=T=>{t(Kw({name:T.target.name,value:T.target.value}))},C=()=>{window.scrollTo(0,0),R(!0),t(sj(!1)),t(eR({current_page:1})),t(Yd())},w=()=>{h(null),t(sj(!1)),t(eR({current_page:1})),t(s6()),l&&(window.scrollTo(0,0),t(Yd()),R(!1))},R=T=>{t(fM(T))},j=T=>{h(T),t(Kw({name:"org",value:T.value}))},A=()=>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(l6())}}),m.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(T=>m.jsxs("div",{className:"form-check",children:[m.jsx("input",{className:"form-check-input",type:"checkbox",value:T.fosTypeId,id:`fos_${T.fosTypeId}`,checked:T.checked,onChange:()=>t(u6(T))}),m.jsx("label",{className:"form-check-label",htmlFor:`fos_${T.fosTypeId}`,children:T.fosName})]},`fos_${T.fosTypeId}`))]}),m.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),m.jsx("div",{className:"mb-3",children:m.jsx(l1,{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:T=>x(T),children:[m.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((T,I)=>m.jsx("option",{value:T,children:T},`allocation_type_${I}`))]})}),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:T=>x(T),children:[m.jsx("option",{value:"",children:"-- All --"}),i.resources.map((T,I)=>m.jsx("option",{value:T.resourceId,children:T.resourceName},`resource_${I}`))]})}),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:T=>x(T)})}),m.jsxs("div",{className:"mt-2",children:[m.jsx("button",{className:"btn btn-primary me-2",onClick:C,children:"Submit"}),m.jsx("button",{className:"btn btn-secondary",disabled:A(),onClick:w,children:"Reset"})]})]})})};const C6=({project:t})=>{const r=t.resources,[i,l]=k.useState(!1),u=Jn(p6);let d={flush:!0,className:"mt-3 mb-1",alwaysOpen:!0};const v=T=>{let I=T.units?T.units:T.resourceUnits;const M=T.allocation?T.allocation:T.amount;if(I=="[Yes = 1, No = 0]"||I=="Yes / No")return M=="1.0"?"Yes":"No";{let F="0";return parseInt(M)&&(F=parseInt(M).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),I=="ACCESS Credits"&&(I=m.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),I=="Dollars"?`$${F}`:m.jsxs(m.Fragment,{children:[F," ",I]})}},h=()=>{const{origin:T,pathname:I}=window.location,M=`${T}${I}?_requestNumber=${t.requestNumber}`;navigator.clipboard.writeText(M),setTimeout(()=>l(!1),2e3)},y=()=>t.requestNumber&&t.requestNumber!=""?`(${t.requestNumber})`:"",x=m.jsx(J0,{id:"link-tooltip",children:"Link Copied!"}),C=()=>{if(y()){const T={background:"none",border:"none",color:"#fff",fontSize:"24px"};return m.jsx(UR,{placement:"left",trigger:"click",defaultShow:i,show:i,onToggle:()=>l(!i),overlay:x,children:m.jsx("button",{onClick:h,style:T,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,{})},w=()=>!t.coPis||t.coPis.length<=0?"":m.jsxs(m.Fragment,{children:[m.jsx("br",{}),m.jsxs("small",{className:"fst-italic",children:["CoPI(s): ",t.coPis.map(T=>`${T.name} (${T.organization})`).join(";")]})]}),R=()=>!t.beginDate||!t.endDate?"-":m.jsxs(m.Fragment,{children:[t.beginDate," to ",t.endDate]}),j=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((T,I)=>m.jsxs("tr",{children:[m.jsx("td",{children:T.resourceName}),m.jsx("td",{style:{whiteSpace:"nowrap"},children:v(T)})]},`resource_${t.requestId}_${I}`))})]}),A=()=>u?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"row mt-2 fw-bold",children:m.jsx("div",{className:"col-3 border-bottom",children:"Resources"})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:j})}),m.jsx("div",{className:"row mt-2 fw-bold",children:m.jsx("div",{className:"col-3 border-bottom",children:"Abstract"})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:t.abstract})})})]}):m.jsxs(us,{...d,children:[m.jsxs(us.Item,{eventKey:"0",children:[m.jsx(us.Header,{children:"Resources"}),m.jsx(us.Body,{children:j})]}),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})})]})]});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,") "]})]}),w()]}),m.jsx("div",{children:C()})]})}),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.jsx("div",{className:"col",children:R()})]}),A()]})]})},S6=()=>{const t=Jn(m6);return t.length==0?m.jsx("div",{children:"No Projects Found"}):m.jsx("div",{children:t.map((r,i)=>m.jsx(C6,{project:r},`project_${i}`))})};const uj=()=>{const t=No(),r=Jn(v6),[i,l]=k.useState([]),[u,d]=k.useState("0"),v=Array.from({length:r.last_page},(A,T)=>T),h=10,y={width:"50px",textAlign:"center"};k.useEffect(()=>{w()},[r]);const x=A=>{const T=parseInt(A);t(eR({current_page:A})),t(Yd(T))},C=A=>(event.preventDefault(),d("0"),x(A),!1),w=()=>{const A=[];if(r.last_page>h)if(r.current_page>4){A.push(1),A.push("spacer");for(var T=1;T>0;T--)r.current_page-T>1&&A.push(r.current_page-T);A.push(["current",r.current_page]);for(var T=1;T<2;T++)r.current_page+T<=r.last_page&&A.push(r.current_page+T);r.last_page-r.current_page>1&&(A.push("spacer"),A.push(r.last_page))}else[1,2,3,4,5].forEach(I=>{I==r.current_page?A.push(["current",I]):A.push(I)}),A.push("spacer"),A.push(r.last_page);else for(var T=1;T<=r.last_page;T++)T==r.current_page?A.push(["current",T]):A.push(T);l(A)},R=A=>{let T="";return typeof A=="object"?[A,T]=A:T=A,A=="spacer"?m.jsx("li",{className:"page-item disabled",children:m.jsx("span",{className:"page-link",style:y,children:". . ."})}):A=="current"?m.jsx("li",{className:"page-item active","aria-current":"page",children:m.jsx("span",{className:"page-link",style:y,children:T})}):m.jsx("li",{className:"page-item",children:m.jsx("button",{className:"page-link",style:y,onClick:()=>x(A),children:T})})},j=()=>m.jsx("li",{className:"page-item",children:m.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:u,onChange:A=>C(A.target.value),children:[m.jsx("option",{value:"0",children:"Go To"}),v.map(A=>m.jsx("option",{value:A+1,children:A+1},`page_option_${A}`))]})});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:()=>x(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((A,T)=>m.jsx(pr.Fragment,{children:R(A)},`page_${T}`)),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:()=>x(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},E6=({api_url:t})=>{const r=No(),i=Jn(h6),l=Jn(d6),u=Jn(g6),d=m.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(i6())},[]),m.jsx("div",{className:"container-fluid",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-3",children:m.jsx(x6,{})}),m.jsxs("div",{className:"col-sm-9",children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(uj,{}):""})}),m.jsx("div",{className:"row",id:"projectListRow",children:m.jsx("div",{className:"col",children:i&&l?m.jsx(S6,{}):d})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(uj,{scroll:"projects_browser_app"}):""})})]})]})})},w6=t=>t.publications_store.publication,R6=t=>t.publications_store.publication.doi,_6=t=>t.publications_store.publication_types,pM=t=>t.publications_store.publication.authors,T6=t=>t.publications_store.tag_categories,N6=t=>t.publications_store.projects,I6=t=>t.publications_store.publication.tags,A6=t=>t.publications_store.errors,hM=t=>t.publications_store.data_loaded,vM=t=>t.publications_store.show_saved,c1=t=>t.publications_store.saving,j6=t=>t.publications_store.modal,mM=t=>t.publications_store.form_valid,gM=t=>!c1(t)&&hM(t)&&mM(t)&&yM(t)&&t.publications_store.projects.filter(r=>r.selected).length>0,yM=t=>{const r=pM(t);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},bM=t=>({type:"UPDATE_PUBLICATION",payload:t}),O6=t=>({type:"UPDATE_FIELD",payload:t}),tR=t=>({type:"CHANGE_PUB_TYPE",payload:t}),D6=t=>({type:"SET_PUBLICATION",payload:t}),k6=()=>({type:"ADD_AUTHOR"}),M6=t=>({type:"UPDATE_AUTHOR",payload:t}),L6=t=>({type:"TOGGLE_REQUEST",payload:t}),km=t=>({type:"UPDATE_ERRORS",payload:t}),xM=t=>({type:"HIDE_ERROR",payload:t}),P6=t=>({type:"UPDATE_SELECTED_TAGS",payload:t}),F6=t=>({type:"DELETE_AUTHOR",payload:t}),V6=t=>({type:"DATA_LOADED",payload:t}),CM=t=>({type:"UPDATE_SHOW_SAVED",payload:t}),B6=()=>({type:"RESET_STATE"}),uw=t=>({type:"UPDATE_SAVING",payload:t}),z6=t=>({type:"SET_FORM_VALID",payload:t}),SM=t=>({type:"SET_GRANT_NUMBER",payload:t}),$6=t=>({type:"ADD_PROJECT",payload:t}),U6=(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}},H6=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:G6(r)},r))})]}):null;function G6(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const W6=()=>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(tR(v?v.publication_type:"Other")),t(D6(d))}else t(km(u))},d=>{t(km(u))})},X6=()=>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($6(u)),t(SM(""))},()=>{t(km("Unable to find a project with this grant number."))})},EM=()=>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(V6(i))})},wM=()=>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}=U6(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!h){v.length>0&&Array.from(v).forEach(j=>{t(xM(j.id))});const R=H6(y);t(km(R));return}const x={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(R=>({...R,order:0})),tags:u,projects:l};let C,w;d.publication_id?(C=Jt.routes.publication_path(d.publication_id),w="PATCH"):(C=Jt.routes.publications_path(),w="POST"),t(uw(!0)),await fetch(C,{method:w,headers:{"Content-Type":"application/json"},body:JSON.stringify(x)}).then(R=>{i.redirect?window.location.href=Jt.routes.publications_path():(d.publication_id||(t(B6()),t(EM())),t(CM(!0)),t(uw(!1)))},()=>{t(uw(!1)),t(km("There was an error saving this publication."))})},Y6=({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"})]})]})}),Z6=t=>({doi:R6(t)}),q6=t=>({updatePublication:r=>t(bM({key:"doi",value:r})),doiLookup:()=>t(W6())}),J6=ps(Z6,q6)(Y6),Q6=({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"})})})]})},K6=t=>({updateAuthor:r=>t(M6(r)),deleteAuthor:r=>t(F6(r))}),cj=ps(null,K6)(Q6),e8=({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(cj,{author:d,authorKey:v},`author_${v}`)),l&&m.jsx(cj,{author:r()})]})]}),m.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},t8=t=>({authors:pM(t),authors_exist:yM(t)}),n8=t=>({addAuthor:()=>t(k6())}),r8=ps(t8,n8)(e8),a8=({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(l1,{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})})]})},i8=t=>({updateSelectedTags:r=>t(P6(r))}),o8=t=>({publication_tags:I6(t)}),s8=ps(o8,i8)(a8),l8=({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}`))})]})})},u8=t=>({projects:N6(t)}),c8=t=>({toggleProject:r=>t(L6(r))}),d8=ps(u8,c8)(l8),f8=({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"})]})]})}),p8=t=>({setGrantNumber:r=>t(SM(r)),grantSearch:()=>t(X6())}),h8=t=>({grant_number:t.publications_store.grant_number}),v8=ps(h8,p8)(f8),m8=({publication:t,updateField:r,publication_types:i,changePubType:l,updatePublication:u,tag_categories:d,savePublication:v,modal:h,save_enabled:y,setFormValid:x,form_valid:C})=>{const w=F=>{F.target.value.trim()==""?x(!1):x(!0),u({key:"title",value:F.target.value})},R=()=>t.fields.map((F,V)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:`field_${F.csl_field_name}`,className:"form-label",children:F.name}),m.jsx("input",{type:"text",className:"form-control",name:`field_${F.csl_field_name}`,id:`field_${F.csl_field_name}`,value:F.field_value,onChange:U=>r({index:V,value:U.target.value})})]})},`field_${F.csl_field_name}`)),j=()=>{const F=new Date().getFullYear()+2;let V=1980;const U=[];for(;V<=F;)U.push(V++);const P=["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 ${C?"":"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:P.map((X,Y)=>m.jsx("option",{value:Y+1,children:X},`month_${Y}`))})]})})]})},A=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(J6,{}),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:F=>l(F.target.value),children:i.map(F=>m.jsx("option",{value:F.publication_type,children:F.publication_type},`pub_type_${F.type_id}`))})]})}),j(),R()]})]}),T=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Authors"}),m.jsxs(Hp,{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(r8,{})})]}),I=m.jsxs("div",{className:"card mt-3",children:[m.jsxs("div",{className:"card-header d-flex",children:[m.jsx("h2",{children:"Tags"}),m.jsx(Hp,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),m.jsx("div",{className:"card-body",children:d.map((F,V)=>m.jsx(s8,{index:V,category:F},`tc_${V}`))})]}),M=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(Hp,{children:"Click/Tap each project that this publication is related to."})]}),m.jsxs("div",{className:"card-body",children:[m.jsx(d8,{}),m.jsx("hr",{}),m.jsx(v8,{})]})]});return m.jsxs(m.Fragment,{children:[A,T,I,M,h?null:m.jsx("p",{className:"mt-3",children:m.jsx("button",{onClick:()=>v(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},g8=t=>({publication:w6(t),publication_types:_6(t),tag_categories:T6(t),saving:c1(t),modal:j6(t),save_enabled:gM(t),form_valid:mM(t)}),y8=t=>({updateField:r=>t(O6(r)),changePubType:r=>t(tR(r)),updatePublication:r=>t(bM(r)),savePublication:()=>t(wM()),setFormValid:r=>t(z6(r))}),b8=ps(g8,y8)(m8),x8=({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}`))}),C8=t=>({errors:A6(t)}),S8=t=>({hideError:r=>t(xM(r))}),E8=ps(C8,S8)(x8),w8=({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,{})},R8=t=>({show_saved:vM(t)}),_8=t=>({updateShowSaved:r=>t(CM(r))}),T8=ps(R8,_8)(w8),N8=({getData:t,data_loaded:r})=>(k.useEffect(()=>{t()},[]),m.jsxs(m.Fragment,{children:[m.jsx(T8,{}),m.jsx(E8,{}),r?m.jsx(b8,{}):m.jsx(th,{})]})),I8=t=>({data_loaded:hM(t)}),A8=t=>({getData:()=>t(EM())}),RM=ps(I8,A8)(N8),j8=({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(RM,{})}),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"})]})},O8=t=>({saving:c1(t),showSaved:vM(t),save_enabled:gM(t)}),D8=t=>({savePublication:()=>t(wM())}),k8=ps(O8,D8)(j8),M8=({usernames:t=[],publication_ids:r=[]})=>{const[i,l]=k.useState(t),[u,d]=k.useState(r),[v,h]=k.useState([]),y=k.useRef(i),x=T=>{y.current=T,l(T)},C=async()=>{const I=await(await fetch(Jt.routes.search_publications_path({usernames:i}))).json();h(I)};k.useEffect(()=>{C()},[i]),k.useEffect(()=>{addEventListener("requestAddRole",T=>x([...y.current,T.detail.username])),addEventListener("requestRemoveRole",T=>x(y.current.filter(I=>I!=T.detail.username)))},[]);let w=!1,R=!1;const j=v.map(T=>{const I=u.includes(T.publication_id);w=w||I,R=R||!I;const M=new Date(T.publication_year,T.publication_month-1);return m.jsxs("tr",{children:[m.jsx("td",{children:m.jsx("input",{type:"checkbox",name:"publication_ids[]",value:T.publication_id,checked:I,onChange:()=>d(I?u.filter(F=>F!=T.publication_id):[...u,T.publication_id])})}),m.jsx("td",{children:T.title}),m.jsx("td",{children:T.authors.map(F=>`${F.first_name} ${F.last_name}`).join(", ")}),m.jsx("td",{children:T.publication_type}),m.jsxs("td",{children:[M.toLocaleString("default",{month:"short"})," ",T.publication_year]})]},T.publication_id)}),A=`${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":A,title:A,checked:w&&!R,onChange:()=>d(R?v.map(T=>T.publication_id):[]),ref:T=>{T&&(T.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(k8,{updatePublications:C})]})},L8=()=>`${Math.random().toString(36).slice(2)}`,nR=document.querySelector("#publications-react"),P8=nR?nR.dataset:{},dj={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:P8.redirect||!1,modal:nR==null,form_valid:!1,grant_number:""},F8=(t=dj,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(x=>x.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:L8(),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 dj;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}},V8={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(fj(!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(U8({data:l,params:t})),r(fj(!0))});Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(G8(t)),r(TM())});const B8=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)}))},z8=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(rR(d.allowedResources,d.excludedResources,v.resourceName)){const{categories:h,formattedResource:y}=$8(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}},rR=(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,$8=(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]&&rR(t.allowedCategories,t.excludedCategories,h.categoryName)&&(i[y]={categoryId:y,categoryName:h.categoryName,categoryDescription:h.categoryDescription,features:{}}),h.features.forEach(x=>{const C={featureId:x.featureId,name:x.name,description:x.description,categoryId:y,selected:!1},w=rR(t.allowedFilters,t.excludedFilters,C.name);w&&l.push(C),i[y]&&w&&!i[y].features[x.featureId]&&(i[y].features[x.featureId]=C)}))});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}},_M=z0({name:"resourceCatalog",initialState:V8,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,{resources:l,catalogs:u,categories:d}=z8(i);t.catalogs=u,t.onRamps=r.params.onRamps;for(const v in d){const h=d[v],y=[];for(const x in h.features)y.push(h.features[x]);t.filters.push({...h,features:y.sort((x,C)=>x.name>C.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(x=>x.categoryId==v.categoryId).features.find(x=>x.featureId==v.featureId);y.selected=!y.selected}const i=B8(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(x=>{let C=!1;h.featureIds.forEach(w=>{x.indexOf(w)>=0&&(C=!0)}),C&&(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:U8,processData:Xq,resetFilters:H8,setResourcesLoaded:fj,toggleCatalog:G8,toggleFilter:TM}=_M.actions,NM=t=>t.resourceCatalog.catalogs,W8=t=>t.resourceCatalog.filters,X8=t=>t.resourceCatalog.hasErrors,Y8=t=>t.resourceCatalog.resourcesLoaded,Z8=t=>t.resourceCatalog.filteredResources,q8=_M.reducer,J8="_access_1yrq0_2",Q8="_resourceName_1yrq0_6",K8="_description_1yrq0_11",eq="_filterBar_1yrq0_15",tq="_cardBg_1yrq0_20",nq="_active_1yrq0_25",rq="_plainButton_1yrq0_30",aq="_btnSecondary_1yrq0_40",iq="_filtersHidden_1yrq0_51",oq="_filtersVisible_1yrq0_57",wo={access:J8,resourceName:Q8,description:K8,filterBar:eq,cardBg:tq,active:nq,plainButton:rq,btnSecondary:aq,filtersHidden:iq,filtersVisible:oq},sq=({resource:t})=>{const[r,i]=k.useState(!0),l=x=>{const C={"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 C[x]?m.jsx("i",{title:x,className:`bi bi-${C[x]} me-2 `},`${t.resourceId}_${C[x]}`):""},u=()=>m.jsxs("span",{className:"float-end",children:[t.features.map(x=>l(x)),t.resourceType]}),d=x=>x.length==0?"":m.jsx(m.Fragment,{children:x.map((C,w)=>m.jsx("span",{className:"badge text-bg-secondary me-2",children:C},`feature_${t.resourceId}_${w}`))}),v=()=>{let x=t.resourceDescription;return x&&x!=""?(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:x}}),""]})})]})):""},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"})]})})]})})})})},lq=({filter:t})=>{const r=No(),i=()=>{r(TM(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})]})})})},uq=({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(lq,{filter:r},r.featureId))]})}),cq=({onReset:t})=>{const r=No(),i=Jn(NM),l=Jn(W8),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(uq,{category:d},d.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(H8()),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"})]})},dq=()=>{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(cq,{onReset:l})})]})})})})},fq=()=>{const t=Jn(Z8);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(dq,{}),t.map(r=>m.jsx(sq,{resource:r},r.resourceId))]})})},pq=({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"}),"."]})]})})]}),hq=({catalogSources:t=[],onRamps:r=!1,baseUrl:i})=>{const l=No(),u=Jn(Y8),d=Jn(X8),v=Jn(NM),h=Object.keys(v).map(x=>v[x]);k.useEffect(()=>{l(c0({catalogSources:t,onRamps:r}))},[]);const y=()=>r&&h.length>1?m.jsx(m.Fragment,{children:h.filter(x=>x.catalogLabel!="ACCESS").map((x,C)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsxs("h4",{className:"border-bottom",children:["About ",x.catalogLabel]}),m.jsx("div",{dangerouslySetInnerHTML:{__html:x.description}})]})},`catalog_${C}`))}):"";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(pq,{baseUrl:i}):"",y(),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx(fq,{})})})]}):m.jsx(th,{})},vq={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(gq({data:l,params:t}))}),mq=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)}))},pj=(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)},IM=z0({name:"resourceCatalog",initialState:vq,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=[],x={};i.filter(C=>!d.includes(C.resourceName)).forEach(C=>{const w=[];let R="";C.featureCategories.filter(A=>A.categoryIsFilter).forEach(A=>{const T=A.categoryId;A.categoryName=="ACCESS Resource Grouping"?R=A.features[0].name:(!x[T]&&pj(v,l,A.categoryName)&&(x[T]={categoryId:T,categoryName:A.categoryName,categoryDescription:A.categoryDescription,features:{}}),A.features.forEach(I=>{const M={featureId:I.featureId,name:I.name,description:I.description,categoryId:T,selected:!1},F=pj(h,u,M.name);F&&w.push(M),x[T]&&F&&!x[T].features[I.featureId]&&(x[T].features[I.featureId]=M)}))});const j={resourceName:C.resourceName,resourceId:C.resourceId,resourceType:C.resourceType,organization:C.organization,units:C.units,userGuideUrl:C.userGuideUrl,resourceDescription:C.resourceDescription,description:C.description,recommendedUse:C.recommendedUse,features:w.map(A=>A.name).sort((A,T)=>A>T),featureIds:w.map(A=>A.featureId),sortCategory:R};y.push(j)});for(const C in x){const w=x[C],R=[];for(const j in w.features)R.push(w.features[j]);t.filters.push({...w,features:R.sort((j,A)=>j.name>A.name)})}v.length>0?t.filters=t.filters.sort((C,w)=>v.indexOf(C.categoryName)>v.indexOf(w.categoryName)):t.filters=t.filters.sort((C,w)=>C.categoryName.localeCompare(w.categoryName)),t.resources=y.sort((C,w)=>C.resourceName.localeCompare(w.resourceName)).sort((C,w)=>t.resourceSorting[C.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=mq(t.filters);if(d.length>0){const v=[],h=d.map(y=>y.features.map(x=>x.featureId));t.resources.forEach(y=>{let x=0;h.forEach(C=>{let w=!1;y.featureIds.forEach(R=>{C.indexOf(R)>=0&&(w=!0)}),w&&(x+=1)}),x>=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:gq,processData:Yq,resetFilters:yq,toggleFilter:bq}=IM.actions,xq=t=>t.resourceCatalog.hasErrors,Cq=t=>t.resourceCatalog.resourcesLoaded,Sq=t=>t.resourceCatalog.filters,Eq=t=>t.resourceCatalog.filteredResources,wq=IM.reducer,Rq=({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)]})]})},_q=()=>{const t=Jn(Eq);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(Rq,{resource:r},r.resourceId))})]})},Tq=({filter:t})=>{const r=No(),i=()=>{r(bq(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})]})})})},Nq=({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(Tq,{filter:r},r.featureId))]})}),Iq=()=>{const t=No(),r=Jn(Sq),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(Nq,{category:l},l.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(yq()),disabled:i.length==0,children:"Reset Filters"})]})},Aq=({apiUrl:t,excludedCategories:r=[],excludedFilters:i=[],excludedResources:l=[],allowedCategories:u=[],allowedFilters:d=[]})=>{const v=No(),h=Jn(Cq),y=Jn(xq);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(Iq,{})}),m.jsx("div",{className:"col-sm-8",children:m.jsx(_q,{})})]})}):m.jsx(th,{})};function jq(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"),x=document.createElement("div"),C=document.createElement("link"),w=document.createElement("link"),R=document.createElement("link");return u=u??(typeof document>"u"?require("url").pathToFileURL(__filename).href:GN&&GN.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),C.rel="stylesheet",C.href=`${u}/bootstrap.css`,w.rel="stylesheet",w.href=`${u}/xras-ui.css`,R.rel="stylesheet",R.href=`${u}/access.css`,y.appendChild(x),h.appendChild(y),v.appendChild(h),d.appendChild(C),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")),x}function Oq({target:t}){Xi.createRoot(t).render(m.jsx(yH,{}))}function Dq({target:t,availableResources:r,relativeUrlRoot:i}){Xi.createRoot(t).render(m.jsx(SH,{availableResources:r,relativeUrlRoot:i}))}function kq({resourceId:t,target:r,setExternalSubmit:i,relativeUrlRoot:l}){Xi.createRoot(r).render(m.jsx(fO,{resourceId:t,setExternalSubmit:i,relativeUrlRoot:l}))}function Mq({target:t,username:r,routes:i}){gR(i);const l=Pm({reducer:{api:NG}});Xi.createRoot(t).render(m.jsx(eh,{store:l,children:m.jsx(a6,{username:r})}))}function Lq({target:t,apiUrl:r}){const i=Pm({reducer:{projectsBrowser:b6},preloadedState:{projectsBrowser:{...cM,apiUrl:r}}});Xi.createRoot(t).render(m.jsx(eh,{store:i,children:m.jsx(E6,{})}))}function AM(){return Pm({reducer:{publications_store:F8}})}function Pq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(eh,{store:AM(),children:m.jsx(RM,{})}))}function Fq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(eh,{store:AM(),children:m.jsx(M8,{...JSON.parse(t.dataset.publicationsSelectProps)})}))}function Vq({target:t,catalogSources:r,onRamps:i,baseUrl:l}){const u=Pm({reducer:{resourceCatalog:q8}});Xi.createRoot(t).render(m.jsx(eh,{store:u,children:m.jsx(hq,{catalogSources:r,onRamps:i,baseUrl:l})}))}function Bq({target:t,apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v}){const h=Pm({reducer:{resourceCatalog:wq}});Xi.createRoot(t).render(m.jsx(eh,{store:h,children:m.jsx(Aq,{apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v})}))}exports.allocationsMap=Oq;exports.editResource=kq;exports.onRampsResourceCatalog=Vq;exports.projects=Mq;exports.projectsBrowser=Lq;exports.publications=Pq;exports.publicationsSelect=Fq;exports.resourceCatalog=Bq;exports.resources=Dq;exports.shadowTarget=jq;
|