@xras/ui 0.10.0 → 0.11.0

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.
Files changed (3) hide show
  1. package/dist/xras-ui.cjs +40 -40
  2. package/dist/xras-ui.js +2086 -2043
  3. package/package.json +1 -1
package/dist/xras-ui.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var bz=Object.defineProperty;var xz=(t,r,i)=>r in t?bz(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var IE=(t,r,i)=>(xz(t,typeof r!="symbol"?r+"":r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var XN=typeof document<"u"?document.currentScript:null;function Cz(t,r){for(var i=0;i<r.length;i++){const l=r[i];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in t)){const d=Object.getOwnPropertyDescriptor(l,u);d&&Object.defineProperty(t,u,d.get?d:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function eh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dw={exports:{}},im={},jb={exports:{}},Xt={};/**
1
+ "use strict";var bz=Object.defineProperty;var xz=(t,r,i)=>r in t?bz(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var IE=(t,r,i)=>(xz(t,typeof r!="symbol"?r+"":r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var XN=typeof document<"u"?document.currentScript:null;function Cz(t,r){for(var i=0;i<r.length;i++){const l=r[i];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in t)){const f=Object.getOwnPropertyDescriptor(l,u);f&&Object.defineProperty(t,u,f.get?f:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function eh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dw={exports:{}},im={},jb={exports:{}},Xt={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -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 YN;function Sz(){if(YN)return Xt;YN=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(){}},N=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 P(G,Z,re){this.props=G,this.context=Z,this.refs=T,this.updater=re||j}var V=P.prototype=new M;V.constructor=P,N(V,I.prototype),V.isPureReactComponent=!0;var U=Array.isArray,F=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)F.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),Be=0;Be<ue;Be++)de[Be]=arguments[Be+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(Be){return Be})):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=P,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=N({},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)F.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 Be=0;Be<de;Be++)ue[Be]=arguments[Be+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 mm={exports:{}};mm.exports;var ZN;function Ez(){return ZN||(ZN=1,function(t,r){var i={};/**
9
+ */var YN;function Sz(){if(YN)return Xt;YN=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"),f=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(){}},N=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 P(G,Z,re){this.props=G,this.context=Z,this.refs=T,this.updater=re||j}var V=P.prototype=new M;V.constructor=P,N(V,I.prototype),V.isPureReactComponent=!0;var U=Array.isArray,F=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)F.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),Be=0;Be<ue;Be++)de[Be]=arguments[Be+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(Be){return Be})):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=P,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=N({},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)F.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 Be=0;Be<de;Be++)ue[Be]=arguments[Be+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:f,_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 mm={exports:{}};mm.exports;var ZN;function Ez(){return ZN||(ZN=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"),I=Symbol.for("react.offscreen"),M=Symbol.iterator,P="@@iterator";function V(D){if(D===null||typeof D!="object")return null;var q=M&&D[M]||D[P];return typeof q=="function"?q:null}var U={current:null},F={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:F,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 Be(){}Be.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 Be;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,Tr={key:!0,ref:!0,__self:!0,__source:!0},Hn,Nr,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(){Nr||(Nr=!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)&&!Tr.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)&&!Tr.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,Ir=/\/+/g;function dn(D){return D.replace(Ir,"$&/")}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(lh){return lh})}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"),f=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"),I=Symbol.for("react.offscreen"),M=Symbol.iterator,P="@@iterator";function V(D){if(D===null||typeof D!="object")return null;var q=M&&D[M]||D[P];return typeof q=="function"?q:null}var U={current:null},F={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:F,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 Be(){}Be.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 Be;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 f: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,Tr={key:!0,ref:!0,__self:!0,__source:!0},Hn,Nr,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(){Nr||(Nr=!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)&&!Tr.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)&&!Tr.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,Ir=/\/+/g;function dn(D){return D.replace(Ir,"$&/")}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 f: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(lh){return lh})}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'))
@@ -44,7 +44,7 @@ Check the top-level render call using <`+fe+">.")}return q}function si(D,q){if(!
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var JN;function wz(){if(JN)return im;JN=1;var t=tf(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function v(h,y,x){var C,w={},R=null,j=null;x!==void 0&&(R=""+x),y.key!==void 0&&(R=""+y.key),y.ref!==void 0&&(j=y.ref);for(C in y)l.call(y,C)&&!d.hasOwnProperty(C)&&(w[C]=y[C]);if(h&&h.defaultProps)for(C in y=h.defaultProps,y)w[C]===void 0&&(w[C]=y[C]);return{$$typeof:r,type:h,key:R,ref:j,props:w,_owner:u.current}}return im.Fragment=i,im.jsx=v,im.jsxs=v,im}var om={},QN;function Rz(){if(QN)return om;QN=1;var t={};/**
47
+ */var JN;function wz(){if(JN)return im;JN=1;var t=tf(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function v(h,y,x){var C,w={},R=null,j=null;x!==void 0&&(R=""+x),y.key!==void 0&&(R=""+y.key),y.ref!==void 0&&(j=y.ref);for(C in y)l.call(y,C)&&!f.hasOwnProperty(C)&&(w[C]=y[C]);if(h&&h.defaultProps)for(C in y=h.defaultProps,y)w[C]===void 0&&(w[C]=y[C]);return{$$typeof:r,type:h,key:R,ref:j,props:w,_owner:u.current}}return im.Fragment=i,im.jsx=v,im.jsxs=v,im}var om={},QN;function Rz(){if(QN)return om;QN=1;var t={};/**
48
48
  * @license React
49
49
  * react-jsx-runtime.development.js
50
50
  *
@@ -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"),N=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 P=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=P.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 F=!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===N||F||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=P.ReactCurrentDispatcher,de;function Be(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`
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"),f=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"),N=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 P=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=P.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 F=!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===f||J===C||J===w||Y||J===N||F||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 f: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=P.ReactCurrentDispatcher,de;function Be(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 KN;function Tz(){return KN||(KN=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,N=!1,T=!1,I=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,P=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),!N)if(i(y)!==null)N=!0,Ae(F);else{var Oe=i(x);Oe!==null&&Le(U,Oe.startTime-ne)}}function F(ne,Oe){N=!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 P=="function")Re=function(){P(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(){N||j||(N=!0,Ae(F))},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),N||j||(N=!0,Ae(F))),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}}}}(AE)),AE}var jE={},eI;function Nz(){return eI||(eI=1,function(t){var r={};/**
73
+ */var KN;function Tz(){return KN||(KN=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 f=performance;t.unstable_now=function(){return f.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,N=!1,T=!1,I=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,P=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),!N)if(i(y)!==null)N=!0,Ae(F);else{var Oe=i(x);Oe!==null&&Le(U,Oe.startTime-ne)}}function F(ne,Oe){N=!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 P=="function")Re=function(){P(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(){N||j||(N=!0,Ae(F))},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),N||j||(N=!0,Ae(F))),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}}}}(AE)),AE}var jE={},eI;function Nz(){return eI||(eI=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,Ir=Xe[hn];if(C(Yr,ht)<0)hn<tn&&C(Ir,Yr)<0?(Xe[cn]=Ir,Xe[hn]=ht,cn=hn):(Xe[cn]=Yr,Xe[Gn]=ht,cn=Gn);else if(hn<tn&&C(Ir,ht)<0)Xe[cn]=Ir,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,N=4,T=5;function I(Xe,ht){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var P=performance;t.unstable_now=function(){return P.now()}}else{var V=Date,U=V.now();t.unstable_now=function(){return V.now()-U}}var F=1073741823,z=-1,X=250,Y=5e3,pe=1e4,ie=F,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 N: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 Be(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 N: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 Tr=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(Tr)};else if(typeof MessageChannel<"u"){var Nr=new MessageChannel,St=Nr.port2;Nr.port1.onmessage=Tr,Hn=function(){St.postMessage(null)}}else Hn=function(){Oe(Tr,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=N,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=Be,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)}()}(jE)),jE}var tI;function mj(){if(tI)return Ob.exports;tI=1;var t={};return t.NODE_ENV==="production"?Ob.exports=Tz():Ob.exports=Nz(),Ob.exports}/**
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 f(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,Ir=Xe[hn];if(C(Yr,ht)<0)hn<tn&&C(Ir,Yr)<0?(Xe[cn]=Ir,Xe[hn]=ht,cn=hn):(Xe[cn]=Yr,Xe[Gn]=ht,cn=Gn);else if(hn<tn&&C(Ir,ht)<0)Xe[cn]=Ir,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,N=4,T=5;function I(Xe,ht){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var P=performance;t.unstable_now=function(){return P.now()}}else{var V=Date,U=V.now();t.unstable_now=function(){return V.now()-U}}var F=1073741823,z=-1,X=250,Y=5e3,pe=1e4,ie=F,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,f(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 N: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 Be(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 N: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,f(ae,hn),v(ge)===null&&hn===v(ae)&&(ne?za():ne=!0,un(Ce,tn-cn))):(hn.sortIndex=Yr,f(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 Tr=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(Tr)};else if(typeof MessageChannel<"u"){var Nr=new MessageChannel,St=Nr.port2;Nr.port1.onmessage=Tr,Hn=function(){St.postMessage(null)}}else Hn=function(){Oe(Tr,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=N,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=Be,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)}()}(jE)),jE}var tI;function mj(){if(tI)return Ob.exports;tI=1;var t={};return t.NODE_ENV==="production"?Ob.exports=Tz():Ob.exports=Nz(),Ob.exports}/**
82
82
  * @license React
83
83
  * react-dom.production.min.js
84
84
  *
@@ -86,14 +86,14 @@ 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 nI;function Iz(){if(nI)return Ti;nI=1;var t=tf(),r=mj();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 N(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 P(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,P);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,P);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,P);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")&&(N(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,F=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
- `+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(`
89
+ */var nI;function Iz(){if(nI)return Ti;nI=1;var t=tf(),r=mj();function i(a){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)o+="&args[]="+encodeURIComponent(arguments[d]);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 f(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,d,g){if(d!==null&&d.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return g?!1:d!==null?!d.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function N(a,o,d,g){if(o===null||typeof o>"u"||j(a,o,d,g))return!0;if(g)return!1;if(d!==null)switch(d.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,d,g,S,_,L){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=g,this.attributeNamespace=S,this.mustUseProperty=d,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 P(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,P);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,P);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,P);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,d,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")&&(N(o,d,S,g)&&(d=null),g||S===null?R(o)&&(d===null?a.removeAttribute(o):a.setAttribute(o,""+d)):S.mustUseProperty?a[S.propertyName]=d===null?S.type===3?!1:"":d:(o=S.attributeName,g=S.attributeNamespace,d===null?a.removeAttribute(o):(S=S.type,d=S===3||S===4&&d===!0?"":""+d,g?a.setAttributeNS(g,o,d):a.setAttribute(o,d))))}var U=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=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(d){var o=d.stack.trim().match(/\n( *(at )?)/);Z=o&&o[1]||""}return`
90
+ `+Z+a}var Ce=!1;function we(a,o){if(!a||Ce)return"";Ce=!0;var d=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=`
93
- `+S[L].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=L&&0<=W);break}}}finally{Ce=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?re(a):""}function Te(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=we(a.type,!1),a;case 11:return a=we(a.type.render,!1),a;case 1:return a=we(a.type,!0),a;default:return""}}function Ie(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case X:return"Fragment";case z:return"Portal";case pe:return"Profiler";case Y:return"StrictMode";case Re:return"Suspense";case be:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case ie:return(a._context.displayName||"Context")+".Provider";case ae:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case xe:return o=a.displayName||null,o!==null?o:Ie(a.type)||"Memo";case Ae:o=a._payload,a=a._init;try{return Ie(a(o))}catch{}}return null}function ue(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ie(o);case 8:return o===Y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function de(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Be(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ge(a){var o=Be(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),g=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,_=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(L){g=""+L,_.call(this,L)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return g},setValue:function(L){g=""+L},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=Ge(a))}function ot(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),g="";return a&&(g=Be(a)?a.checked?"true":"false":a.value),a=g,a!==f?(o.setValue(a),!0):!1}function je(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Rt(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function dt(a,o){var f=o.defaultValue==null?"":o.defaultValue,g=o.checked!=null?o.checked:o.defaultChecked;f=de(o.value!=null?o.value:f),a._wrapperState={initialChecked:g,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function en(a,o){o=o.checked,o!=null&&V(a,"checked",o,!1)}function sn(a,o){en(a,o);var f=de(o.value),g=o.type;if(f!=null)g==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(g==="submit"||g==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?In(a,o.type,f):o.hasOwnProperty("defaultValue")&&In(a,o.type,de(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function ln(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type;if(!(g!=="submit"&&g!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,f||o===a.value||(a.value=o),a.defaultValue=o}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function In(a,o,f){(o!=="number"||je(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var Vt=Array.isArray;function Cn(a,o,f,g){if(a=a.options,o){o={};for(var S=0;S<f.length;S++)o["$"+f[S]]=!0;for(f=0;f<a.length;f++)S=o.hasOwnProperty("$"+a[f].value),a[f].selected!==S&&(a[f].selected=S),S&&g&&(a[f].defaultSelected=!0)}else{for(f=""+de(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,g&&(a[S].defaultSelected=!0);return}o!==null||a[S].disabled||(o=a[S])}o!==null&&(o.selected=!0)}}function Qn(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Tr(a,o){var f=o.value;if(f==null){if(f=o.children,o=o.defaultValue,f!=null){if(o!=null)throw Error(i(92));if(Vt(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),f=o}a._wrapperState={initialValue:de(f)}}function Hn(a,o){var f=de(o.value),g=de(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),g!=null&&(a.defaultValue=""+g)}function Nr(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function St(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?St(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var un,za=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,g,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,g,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(un=un||document.createElement("div"),un.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=un.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function $a(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ua={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xe=["Webkit","ms","Moz","O"];Object.keys(Ua).forEach(function(a){Xe.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ua[o]=Ua[a]})});function ht(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ua.hasOwnProperty(a)&&Ua[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var g=f.indexOf("--")===0,S=ht(f,o[f],g);f==="float"&&(f="cssFloat"),g?a.setProperty(f,S):a[f]=S}}var cn=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tn(a,o){if(o){if(cn[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function ir(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gn=null;function Yr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var hn=null,Ir=null,dn=null;function An(a){if(a=io(a)){if(typeof hn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=pf(o),hn(a.stateNode,a.type,o))}}function ki(a){Ir?dn?dn.push(a):dn=[a]:Ir=a}function ai(){if(Ir){var a=Ir,o=dn;if(dn=Ir=null,An(a),o)for(a=0;a<o.length;a++)An(o[a])}}function vs(a,o){return a(o)}function il(){}var ol=!1;function ms(a,o,f){if(ol)return a(o,f);ol=!0;try{return vs(a,o,f)}finally{ol=!1,(Ir!==null||dn!==null)&&(il(),ai())}}function Mi(a,o){var f=a.stateNode;if(f===null)return null;var g=pf(f);if(g===null)return null;f=g[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Li=!1;if(h)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function Io(a,o,f,g,S,_,L,W,Q){var me=Array.prototype.slice.call(arguments,3);try{o.apply(f,me)}catch(Me){this.onError(Me)}}var ya=!1,ba=null,Ha=!1,Ao=null,J={onError:function(a){ya=!0,ba=a}};function ke(a,o,f,g,S,_,L,W,Q){ya=!1,ba=null,Io.apply(J,arguments)}function He(a,o,f,g,S,_,L,W,Q){if(ke.apply(this,arguments),ya){if(ya){var me=ba;ya=!1,ba=null}else throw Error(i(198));Ha||(Ha=!0,Ao=me)}}function Ye(a){var o=a,f=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(f=o.return),a=o.return;while(a)}return o.tag===3?f:null}function Bt(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function Ht(a){if(Ye(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=Ye(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,g=o;;){var S=f.return;if(S===null)break;var _=S.alternate;if(_===null){if(g=S.return,g!==null){f=g;continue}break}if(S.child===_.child){for(_=S.child;_;){if(_===f)return Ht(S),a;if(_===g)return Ht(S),o;_=_.sibling}throw Error(i(188))}if(f.return!==g.return)f=S,g=_;else{for(var L=!1,W=S.child;W;){if(W===f){L=!0,f=S,g=_;break}if(W===g){L=!0,g=S,f=_;break}W=W.sibling}if(!L){for(W=_.child;W;){if(W===f){L=!0,f=_,g=S;break}if(W===g){L=!0,g=_,f=S;break}W=W.sibling}if(!L)throw Error(i(189))}}if(f.alternate!==g)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:o}function vt(a){return a=kt(a),a!==null?hr(a):null}function hr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=hr(a);if(o!==null)return o;a=a.sibling}return null}var jn=r.unstable_scheduleCallback,On=r.unstable_cancelCallback,Zr=r.unstable_shouldYield,Ki=r.unstable_requestPaint,Dn=r.unstable_now,xa=r.unstable_getCurrentPriorityLevel,Sc=r.unstable_ImmediatePriority,eo=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,sl=r.unstable_LowPriority,jo=r.unstable_IdlePriority,gs=null,Ca=null;function Ec(a){if(Ca&&typeof Ca.onCommitFiberRoot=="function")try{Ca.onCommitFiberRoot(gs,a,void 0,(a.current.flags&128)===128)}catch{}}var ra=Math.clz32?Math.clz32:_c,wc=Math.log,Rc=Math.LN2;function _c(a){return a>>>=0,a===0?32:31-(wc(a)/Rc|0)|0}var ll=64,uu=4194304;function Oo(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function to(a,o){var f=a.pendingLanes;if(f===0)return 0;var g=0,S=a.suspendedLanes,_=a.pingedLanes,L=f&268435455;if(L!==0){var W=L&~S;W!==0?g=Oo(W):(_&=L,_!==0&&(g=Oo(_)))}else L=f&~S,L!==0?g=Oo(L):_!==0&&(g=Oo(_));if(g===0)return 0;if(o!==0&&o!==g&&!(o&S)&&(S=g&-g,_=o&-o,S>=_||S===16&&(_&4194240)!==0))return o;if(g&4&&(g|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=g;0<o;)f=31-ra(o),S=1<<f,g|=a[f],o&=~S;return g}function oi(a,o){switch(a){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ys(a,o){for(var f=a.suspendedLanes,g=a.pingedLanes,S=a.expirationTimes,_=a.pendingLanes;0<_;){var L=31-ra(_),W=1<<L,Q=S[L];Q===-1?(!(W&f)||W&g)&&(S[L]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),_&=~W}}function no(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ul(){var a=ll;return ll<<=1,!(ll&4194240)&&(ll=64),a}function cl(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function bs(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-ra(o),a[o]=f}function Tc(a,o){var f=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var g=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-ra(f),_=1<<S;o[S]=0,g[S]=-1,a[S]=-1,f&=~_}}function Nc(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var g=31-ra(f),S=1<<g;S&o|a[g]&o&&(a[g]|=o),f&=~S}}var Ut=0;function Ic(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var cu,xs,Ac,Yt,du,dl=!1,It=[],Pi=null,Wn=null,Sa=null,si=new Map,Cs=new Map,Fn=[],Xn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jc(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(o.pointerId)}}function Lr(a,o,f,g,S,_){return a===null||a.nativeEvent!==_?(a={blockedOn:o,domEventName:f,eventSystemFlags:g,nativeEvent:_,targetContainers:[S]},o!==null&&(o=io(o),o!==null&&xs(o)),a):(a.eventSystemFlags|=g,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Ea(a,o,f,g,S){switch(o){case"focusin":return Pi=Lr(Pi,a,o,f,g,S),!0;case"dragenter":return Wn=Lr(Wn,a,o,f,g,S),!0;case"mouseover":return Sa=Lr(Sa,a,o,f,g,S),!0;case"pointerover":var _=S.pointerId;return si.set(_,Lr(si.get(_)||null,a,o,f,g,S)),!0;case"gotpointercapture":return _=S.pointerId,Cs.set(_,Lr(Cs.get(_)||null,a,o,f,g,S)),!0}return!1}function Fi(a){var o=Uo(a.target);if(o!==null){var f=Ye(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,du(a.priority,function(){Ac(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function fu(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=vu(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var g=new f.constructor(f.type,f);Gn=g,f.target.dispatchEvent(g),Gn=null}else return o=io(f),o!==null&&xs(o),a.blockedOn=f,!1;o.shift()}return!0}function fl(a,o,f){fu(a)&&f.delete(o)}function pl(){dl=!1,Pi!==null&&fu(Pi)&&(Pi=null),Wn!==null&&fu(Wn)&&(Wn=null),Sa!==null&&fu(Sa)&&(Sa=null),si.forEach(fl),Cs.forEach(fl)}function Ss(a,o){a.blockedOn===o&&(a.blockedOn=null,dl||(dl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pl)))}function li(a){function o(S){return Ss(S,a)}if(0<It.length){Ss(It[0],a);for(var f=1;f<It.length;f++){var g=It[f];g.blockedOn===a&&(g.blockedOn=null)}}for(Pi!==null&&Ss(Pi,a),Wn!==null&&Ss(Wn,a),Sa!==null&&Ss(Sa,a),si.forEach(o),Cs.forEach(o),f=0;f<Fn.length;f++)g=Fn[f],g.blockedOn===a&&(g.blockedOn=null);for(;0<Fn.length&&(f=Fn[0],f.blockedOn===null);)Fi(f),f.blockedOn===null&&Fn.shift()}var Do=U.ReactCurrentBatchConfig,pu=!0;function ko(a,o,f,g){var S=Ut,_=Do.transition;Do.transition=null;try{Ut=1,ro(a,o,f,g)}finally{Ut=S,Do.transition=_}}function hu(a,o,f,g){var S=Ut,_=Do.transition;Do.transition=null;try{Ut=4,ro(a,o,f,g)}finally{Ut=S,Do.transition=_}}function ro(a,o,f,g){if(pu){var S=vu(a,o,f,g);if(S===null)xh(a,o,g,Mo,f),jc(a,g);else if(Ea(S,a,o,f,g))g.stopPropagation();else if(jc(a,g),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var _=io(S);if(_!==null&&cu(_),_=vu(a,o,f,g),_===null&&xh(a,o,g,Mo,f),_===S)break;S=_}S!==null&&g.stopPropagation()}else xh(a,o,g,null,f)}}var Mo=null;function vu(a,o,f,g){if(Mo=null,a=Yr(g),a=Uo(a),a!==null)if(o=Ye(a),o===null)a=null;else if(f=o.tag,f===13){if(a=Bt(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return Mo=a,null}function Oc(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(xa()){case Sc:return 1;case eo:return 4;case Lt:case sl:return 16;case jo:return 536870912;default:return 16}default:return 16}}var Vi=null,mu=null,D=null;function q(){if(D)return D;var a,o=mu,f=o.length,g,S="value"in Vi?Vi.value:Vi.textContent,_=S.length;for(a=0;a<f&&o[a]===S[a];a++);var L=f-a;for(g=1;g<=L&&o[f-g]===S[_-g];g++);return D=S.slice(a,1<g?1-g:void 0)}function fe(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function ye(){return!0}function ze(){return!1}function st(a){function o(f,g,S,_,L){this._reactName=f,this._targetInst=S,this.type=g,this.nativeEvent=_,this.target=L,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(_):_[W]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?ye:ze,this.isPropagationStopped=ze,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=ye)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=ye)},persist:function(){},isPersistent:ye}),o}var Qe={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_t=st(Qe),Pt=G({},Qe,{view:0,detail:0}),fn=st(Pt),vn,mn,gn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==gn&&(gn&&a.type==="mousemove"?(vn=a.screenX-gn.screenX,mn=a.screenY-gn.screenY):mn=vn=0,gn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:mn}}),Zt=st(Vn),Es=G({},Vn,{dataTransfer:0}),gu=st(Es),Dc=G({},Pt,{relatedTarget:0}),kc=st(Dc),Lo=G({},Qe,{animationName:0,elapsedTime:0,pseudoElement:0}),Mc=st(Lo),Lc=G({},Qe,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),lh=st(Lc),ax=G({},Qe,{data:0}),$m=st(ax),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Hm[a])?!!o[a]:!1}function nf(){return Gm}var ix=G({},Pt,{key:function(a){if(a.key){var o=Um[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=fe(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?uh[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nf,charCode:function(a){return a.type==="keypress"?fe(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?fe(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Po=st(ix),ox=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rf=st(ox),ch=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nf}),dh=st(ch),sx=G({},Qe,{propertyName:0,elapsedTime:0,pseudoElement:0}),af=st(sx),Wm=G({},Vn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),wa=st(Wm),Fo=[9,13,27,32],Kn=h&&"CompositionEvent"in window,Ga=null;h&&"documentMode"in document&&(Ga=document.documentMode);var fh=h&&"TextEvent"in window&&!Ga,Pc=h&&(!Kn||Ga&&8<Ga&&11>=Ga),Xm=" ",yu=!1;function Ym(a,o){switch(a){case"keyup":return Fo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ws=!1;function lx(a,o){switch(a){case"compositionend":return Zm(o);case"keypress":return o.which!==32?null:(yu=!0,Xm);case"textInput":return a=o.data,a===Xm&&yu?null:a;default:return null}}function ux(a,o){if(ws)return a==="compositionend"||!Kn&&Ym(a,o)?(a=q(),D=mu=Vi=null,ws=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Pc&&o.locale!=="ko"?null:o.data;default:return null}}var cx={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 ph(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!cx[a.type]:o==="textarea"}function qm(a,o,f,g){ki(g),o=df(o,"onChange"),0<o.length&&(f=new _t("onChange","change",null,f,g),a.push({event:f,listeners:o}))}var Fc=null,Vc=null;function Jm(a){pg(a,0)}function Vo(a){var o=Su(a);if(ot(o))return a}function hh(a,o){if(a==="change")return o}var vh=!1;if(h){var of;if(h){var mh="oninput"in document;if(!mh){var Qm=document.createElement("div");Qm.setAttribute("oninput","return;"),mh=typeof Qm.oninput=="function"}of=mh}else of=!1;vh=of&&(!document.documentMode||9<document.documentMode)}function Km(){Fc&&(Fc.detachEvent("onpropertychange",eg),Vc=Fc=null)}function eg(a){if(a.propertyName==="value"&&Vo(Vc)){var o=[];qm(o,Vc,a,Yr(a)),ms(Jm,o)}}function dx(a,o,f){a==="focusin"?(Km(),Fc=o,Vc=f,Fc.attachEvent("onpropertychange",eg)):a==="focusout"&&Km()}function fx(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Vo(Vc)}function px(a,o){if(a==="click")return Vo(o)}function hx(a,o){if(a==="input"||a==="change")return Vo(o)}function tg(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:tg;function bu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),g=Object.keys(o);if(f.length!==g.length)return!1;for(g=0;g<f.length;g++){var S=f[g];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function ng(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function rg(a,o){var f=ng(a);a=0;for(var g;f;){if(f.nodeType===3){if(g=a+f.textContent.length,a<=o&&g>=o)return{node:f,offset:o-a};a=g}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=ng(f)}}function ag(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?ag(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function ig(){for(var a=window,o=je();o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=je(a.document)}return o}function Bc(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function hl(a){var o=ig(),f=a.focusedElem,g=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&ag(f.ownerDocument.documentElement,f)){if(g!==null&&Bc(f)){if(o=g.start,a=g.end,a===void 0&&(a=o),"selectionStart"in f)f.selectionStart=o,f.selectionEnd=Math.min(a,f.value.length);else if(a=(o=f.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var S=f.textContent.length,_=Math.min(g.start,S);g=g.end===void 0?_:Math.min(g.end,S),!a.extend&&_>g&&(S=g,g=_,_=S),S=rg(f,_);var L=rg(f,g);S&&L&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==L.node||a.focusOffset!==L.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),_>g?(a.addRange(o),a.extend(L.node,L.offset)):(o.setEnd(L.node,L.offset),a.addRange(o)))}}for(o=[],a=f;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<o.length;f++)a=o[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var sf=h&&"documentMode"in document&&11>=document.documentMode,vl=null,Rs=null,zc=null,gh=!1;function og(a,o,f){var g=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;gh||vl==null||vl!==je(g)||(g=vl,"selectionStart"in g&&Bc(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),zc&&bu(zc,g)||(zc=g,g=df(Rs,"onSelect"),0<g.length&&(o=new _t("onSelect","select",null,o,f),a.push({event:o,listeners:g}),o.target=vl)))}function lf(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var xu={animationend:lf("Animation","AnimationEnd"),animationiteration:lf("Animation","AnimationIteration"),animationstart:lf("Animation","AnimationStart"),transitionend:lf("Transition","TransitionEnd")},uf={},sg={};h&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete xu.animationend.animation,delete xu.animationiteration.animation,delete xu.animationstart.animation),"TransitionEvent"in window||delete xu.transitionend.transition);function $c(a){if(uf[a])return uf[a];if(!xu[a])return a;var o=xu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in sg)return uf[a]=o[f];return a}var qr=$c("animationend"),yh=$c("animationiteration"),lg=$c("animationstart"),ug=$c("transitionend"),cg=new Map,dg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _s(a,o){cg.set(a,o),d(o,[a])}for(var cf=0;cf<dg.length;cf++){var Uc=dg[cf],Hc=Uc.toLowerCase(),vx=Uc[0].toUpperCase()+Uc.slice(1);_s(Hc,"on"+vx)}_s(qr,"onAnimationEnd"),_s(yh,"onAnimationIteration"),_s(lg,"onAnimationStart"),_s("dblclick","onDoubleClick"),_s("focusin","onFocus"),_s("focusout","onBlur"),_s(ug,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function fg(a,o,f){var g=a.type||"unknown-event";a.currentTarget=f,He(g,o,void 0,a),a.currentTarget=null}function pg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var g=a[f],S=g.event;g=g.listeners;e:{var _=void 0;if(o)for(var L=g.length-1;0<=L;L--){var W=g[L],Q=W.instance,me=W.currentTarget;if(W=W.listener,Q!==_&&S.isPropagationStopped())break e;fg(S,W,me),_=Q}else for(L=0;L<g.length;L++){if(W=g[L],Q=W.instance,me=W.currentTarget,W=W.listener,Q!==_&&S.isPropagationStopped())break e;fg(S,W,me),_=Q}}}if(Ha)throw a=Ao,Ha=!1,Ao=null,a}function Tn(a,o){var f=o[Nh];f===void 0&&(f=o[Nh]=new Set);var g=a+"__bubble";f.has(g)||(bh(o,a,2,!1),f.add(g))}function Gc(a,o,f){var g=0;o&&(g|=4),bh(f,a,g,o)}var zo="_reactListening"+Math.random().toString(36).slice(2);function ao(a){if(!a[zo]){a[zo]=!0,l.forEach(function(f){f!=="selectionchange"&&(mx.has(f)||Gc(f,!1,a),Gc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[zo]||(o[zo]=!0,Gc("selectionchange",!1,o))}}function bh(a,o,f,g){switch(Oc(o)){case 1:var S=ko;break;case 4:S=hu;break;default:S=ro}f=S.bind(null,o,f,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),g?S!==void 0?a.addEventListener(o,f,{capture:!0,passive:S}):a.addEventListener(o,f,!0):S!==void 0?a.addEventListener(o,f,{passive:S}):a.addEventListener(o,f,!1)}function xh(a,o,f,g,S){var _=g;if(!(o&1)&&!(o&2)&&g!==null)e:for(;;){if(g===null)return;var L=g.tag;if(L===3||L===4){var W=g.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(L===4)for(L=g.return;L!==null;){var Q=L.tag;if((Q===3||Q===4)&&(Q=L.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;L=L.return}for(;W!==null;){if(L=Uo(W),L===null)return;if(Q=L.tag,Q===5||Q===6){g=_=L;continue e}W=W.parentNode}}g=g.return}ms(function(){var me=_,Me=Yr(f),Fe=[];e:{var De=cg.get(a);if(De!==void 0){var qe=_t,rt=a;switch(a){case"keypress":if(fe(f)===0)break e;case"keydown":case"keyup":qe=Po;break;case"focusin":rt="focus",qe=kc;break;case"focusout":rt="blur",qe=kc;break;case"beforeblur":case"afterblur":qe=kc;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":qe=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=gu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=dh;break;case qr:case yh:case lg:qe=Mc;break;case ug:qe=af;break;case"scroll":qe=fn;break;case"wheel":qe=wa;break;case"copy":case"cut":case"paste":qe=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=rf}var lt=(o&4)!==0,dr=!lt&&a==="scroll",oe=lt?De!==null?De+"Capture":null:De;lt=[];for(var ee=me,ce;ee!==null;){ce=ee;var $e=ce.stateNode;if(ce.tag===5&&$e!==null&&(ce=$e,oe!==null&&($e=Mi(ee,oe),$e!=null&&lt.push(Cu(ee,$e,ce)))),dr)break;ee=ee.return}0<lt.length&&(De=new qe(De,rt,null,f,Me),Fe.push({event:De,listeners:lt}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",qe=a==="mouseout"||a==="pointerout",De&&f!==Gn&&(rt=f.relatedTarget||f.fromElement)&&(Uo(rt)||rt[zi]))break e;if((qe||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,qe?(rt=f.relatedTarget||f.toElement,qe=me,rt=rt?Uo(rt):null,rt!==null&&(dr=Ye(rt),rt!==dr||rt.tag!==5&&rt.tag!==6)&&(rt=null)):(qe=null,rt=me),qe!==rt)){if(lt=Zt,$e="onMouseLeave",oe="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(lt=rf,$e="onPointerLeave",oe="onPointerEnter",ee="pointer"),dr=qe==null?De:Su(qe),ce=rt==null?De:Su(rt),De=new lt($e,ee+"leave",qe,f,Me),De.target=dr,De.relatedTarget=ce,$e=null,Uo(Me)===me&&(lt=new lt(oe,ee+"enter",rt,f,Me),lt.target=ce,lt.relatedTarget=dr,$e=lt),dr=$e,qe&&rt)t:{for(lt=qe,oe=rt,ee=0,ce=lt;ce;ce=ml(ce))ee++;for(ce=0,$e=oe;$e;$e=ml($e))ce++;for(;0<ee-ce;)lt=ml(lt),ee--;for(;0<ce-ee;)oe=ml(oe),ce--;for(;ee--;){if(lt===oe||oe!==null&&lt===oe.alternate)break t;lt=ml(lt),oe=ml(oe)}lt=null}else lt=null;qe!==null&&Ch(Fe,De,qe,lt,!1),rt!==null&&dr!==null&&Ch(Fe,dr,rt,lt,!0)}}e:{if(De=me?Su(me):window,qe=De.nodeName&&De.nodeName.toLowerCase(),qe==="select"||qe==="input"&&De.type==="file")var ct=hh;else if(ph(De))if(vh)ct=hx;else{ct=fx;var Ct=dx}else(qe=De.nodeName)&&qe.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(ct=px);if(ct&&(ct=ct(a,me))){qm(Fe,ct,f,Me);break e}Ct&&Ct(a,De,me),a==="focusout"&&(Ct=De._wrapperState)&&Ct.controlled&&De.type==="number"&&In(De,"number",De.value)}switch(Ct=me?Su(me):window,a){case"focusin":(ph(Ct)||Ct.contentEditable==="true")&&(vl=Ct,Rs=me,zc=null);break;case"focusout":zc=Rs=vl=null;break;case"mousedown":gh=!0;break;case"contextmenu":case"mouseup":case"dragend":gh=!1,og(Fe,f,Me);break;case"selectionchange":if(sf)break;case"keydown":case"keyup":og(Fe,f,Me)}var at;if(Kn)e:{switch(a){case"compositionstart":var Et="onCompositionStart";break e;case"compositionend":Et="onCompositionEnd";break e;case"compositionupdate":Et="onCompositionUpdate";break e}Et=void 0}else ws?Ym(a,f)&&(Et="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(Et="onCompositionStart");Et&&(Pc&&f.locale!=="ko"&&(ws||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&ws&&(at=q()):(Vi=Me,mu="value"in Vi?Vi.value:Vi.textContent,ws=!0)),Ct=df(me,Et),0<Ct.length&&(Et=new $m(Et,a,null,f,Me),Fe.push({event:Et,listeners:Ct}),at?Et.data=at:(at=Zm(f),at!==null&&(Et.data=at)))),(at=fh?lx(a,f):ux(a,f))&&(me=df(me,"onBeforeInput"),0<me.length&&(Me=new $m("onBeforeInput","beforeinput",null,f,Me),Fe.push({event:Me,listeners:me}),Me.data=at))}pg(Fe,o)})}function Cu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function df(a,o){for(var f=o+"Capture",g=[];a!==null;){var S=a,_=S.stateNode;S.tag===5&&_!==null&&(S=_,_=Mi(a,f),_!=null&&g.unshift(Cu(a,_,S)),_=Mi(a,o),_!=null&&g.push(Cu(a,_,S))),a=a.return}return g}function ml(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function Ch(a,o,f,g,S){for(var _=o._reactName,L=[];f!==null&&f!==g;){var W=f,Q=W.alternate,me=W.stateNode;if(Q!==null&&Q===g)break;W.tag===5&&me!==null&&(W=me,S?(Q=Mi(f,_),Q!=null&&L.unshift(Cu(f,Q,W))):S||(Q=Mi(f,_),Q!=null&&L.push(Cu(f,Q,W)))),f=f.return}L.length!==0&&a.push({event:o,listeners:L})}var hg=/\r\n?/g,Sh=/\u0000|\uFFFD/g;function vg(a){return(typeof a=="string"?a:""+a).replace(hg,`
94
- `).replace(Sh,"")}function Wc(a,o,f){if(o=vg(o),vg(a)!==o&&f)throw Error(i(425))}function ff(){}var Eh=null,wh=null;function gl(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Xc=typeof setTimeout=="function"?setTimeout:void 0,Yc=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=typeof Promise=="function"?Promise:void 0,mg=typeof queueMicrotask=="function"?queueMicrotask:typeof Rh<"u"?function(a){return Rh.resolve(null).then(a).catch(_h)}:Xc;function _h(a){setTimeout(function(){throw a})}function Th(a,o){var f=o,g=0;do{var S=f.nextSibling;if(a.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(g===0){a.removeChild(S),li(o);return}g--}else f!=="$"&&f!=="$?"&&f!=="$!"||g++;f=S}while(f);li(o)}function Wa(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Zc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"){if(o===0)return a;o--}else f==="/$"&&o++}a=a.previousSibling}return null}var $o=Math.random().toString(36).slice(2),ui="__reactFiber$"+$o,qc="__reactProps$"+$o,zi="__reactContainer$"+$o,Nh="__reactEvents$"+$o,gx="__reactListeners$"+$o,yx="__reactHandles$"+$o;function Uo(a){var o=a[ui];if(o)return o;for(var f=a.parentNode;f;){if(o=f[zi]||f[ui]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=Zc(a);a!==null;){if(f=a[ui])return f;a=Zc(a)}return o}a=f,f=a.parentNode}return null}function io(a){return a=a[ui]||a[zi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Su(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function pf(a){return a[qc]||null}var mt=[],$i=-1;function Nn(a){return{current:a}}function ut(a){0>$i||(a.current=mt[$i],mt[$i]=null,$i--)}function nn(a,o){$i++,mt[$i]=a.current,a.current=o}var ci={},Ar=Nn(ci),At=Nn(!1),aa=ci;function Xa(a,o){var f=a.type.contextTypes;if(!f)return ci;var g=a.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===o)return g.__reactInternalMemoizedMaskedChildContext;var S={},_;for(_ in f)S[_]=o[_];return g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function vr(a){return a=a.childContextTypes,a!=null}function Ra(){ut(At),ut(Ar)}function oo(a,o,f){if(Ar.current!==ci)throw Error(i(168));nn(Ar,o),nn(At,f)}function Ts(a,o,f){var g=a.stateNode;if(o=o.childContextTypes,typeof g.getChildContext!="function")return f;g=g.getChildContext();for(var S in g)if(!(S in o))throw Error(i(108,ue(a)||"Unknown",S));return G({},f,g)}function yl(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ci,aa=Ar.current,nn(Ar,a),nn(At,At.current),!0}function gg(a,o,f){var g=a.stateNode;if(!g)throw Error(i(169));f?(a=Ts(a,o,aa),g.__reactInternalMemoizedMergedChildContext=a,ut(At),ut(Ar),nn(Ar,a)):ut(At),nn(At,f)}var Ho=null,Ns=!1,Pr=!1;function hf(a){Ho===null?Ho=[a]:Ho.push(a)}function yg(a){Ns=!0,hf(a)}function so(){if(!Pr&&Ho!==null){Pr=!0;var a=0,o=Ut;try{var f=Ho;for(Ut=1;a<f.length;a++){var g=f[a];do g=g(!0);while(g!==null)}Ho=null,Ns=!1}catch(S){throw Ho!==null&&(Ho=Ho.slice(a+1)),jn(Sc,so),S}finally{Ut=o,Pr=!1}}return null}var di=[],Is=0,fi=null,bl=0,_a=[],Ta=0,Ui=null,Na=1,Fr="";function xl(a,o){di[Is++]=bl,di[Is++]=fi,fi=a,bl=o}function As(a,o,f){_a[Ta++]=Na,_a[Ta++]=Fr,_a[Ta++]=Ui,Ui=a;var g=Na;a=Fr;var S=32-ra(g)-1;g&=~(1<<S),f+=1;var _=32-ra(o)+S;if(30<_){var L=S-S%5;_=(g&(1<<L)-1).toString(32),g>>=L,S-=L,Na=1<<32-ra(o)+S|f<<S|g,Fr=_+a}else Na=1<<_|f<<S|g,Fr=a}function vf(a){a.return!==null&&(xl(a,1),As(a,1,0))}function mf(a){for(;a===fi;)fi=di[--Is],di[Is]=null,bl=di[--Is],di[Is]=null;for(;a===Ui;)Ui=_a[--Ta],_a[Ta]=null,Fr=_a[--Ta],_a[Ta]=null,Na=_a[--Ta],_a[Ta]=null}var Ya=null,Za=null,Bn=!1,pi=null;function Ih(a,o){var f=Ci(5,null,null,0);f.elementType="DELETED",f.stateNode=o,f.return=a,o=a.deletions,o===null?(a.deletions=[f],a.flags|=16):o.push(f)}function Ah(a,o){switch(a.tag){case 5:var f=a.type;return o=o.nodeType!==1||f.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,Ya=a,Za=Wa(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Ya=a,Za=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Ui!==null?{id:Na,overflow:Fr}:null,a.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=Ci(18,null,null,0),f.stateNode=o,f.return=a,a.child=f,Ya=a,Za=null,!0):!1;default:return!1}}function jh(a){return(a.mode&1)!==0&&(a.flags&128)===0}function gf(a){if(Bn){var o=Za;if(o){var f=o;if(!Ah(a,o)){if(jh(a))throw Error(i(418));o=Wa(f.nextSibling);var g=Ya;o&&Ah(a,o)?Ih(g,f):(a.flags=a.flags&-4097|2,Bn=!1,Ya=a)}}else{if(jh(a))throw Error(i(418));a.flags=a.flags&-4097|2,Bn=!1,Ya=a}}}function Oh(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Ya=a}function yf(a){if(a!==Ya)return!1;if(!Bn)return Oh(a),Bn=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!gl(a.type,a.memoizedProps)),o&&(o=Za)){if(jh(a))throw bg(),Error(i(418));for(;o;)Ih(a,o),o=Wa(o.nextSibling)}if(Oh(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"){if(o===0){Za=Wa(a.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}a=a.nextSibling}Za=null}}else Za=Ya?Wa(a.stateNode.nextSibling):null;return!0}function bg(){for(var a=Za;a;)a=Wa(a.nextSibling)}function Eu(){Za=Ya=null,Bn=!1}function mr(a){pi===null?pi=[a]:pi.push(a)}var bx=U.ReactCurrentBatchConfig;function Ia(a,o){if(a&&a.defaultProps){o=G({},o),a=a.defaultProps;for(var f in a)o[f]===void 0&&(o[f]=a[f]);return o}return o}var wu=Nn(null),lo=null,Ru=null,Jc=null;function Dh(){Jc=Ru=lo=null}function kh(a){var o=wu.current;ut(wu),a._currentValue=o}function js(a,o,f){for(;a!==null;){var g=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,g!==null&&(g.childLanes|=o)):g!==null&&(g.childLanes&o)!==o&&(g.childLanes|=o),a===f)break;a=a.return}}function or(a,o){lo=a,Jc=Ru=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Oa=!0),a.firstContext=null)}function Ue(a){var o=a._currentValue;if(Jc!==a)if(a={context:a,memoizedValue:o,next:null},Ru===null){if(lo===null)throw Error(i(308));Ru=a,lo.dependencies={lanes:0,firstContext:a}}else Ru=Ru.next=a;return o}var Jr=null;function qa(a){Jr===null?Jr=[a]:Jr.push(a)}function xg(a,o,f,g){var S=o.interleaved;return S===null?(f.next=f,qa(o)):(f.next=S.next,S.next=f),o.interleaved=f,Go(a,g)}function Go(a,o){a.lanes|=o;var f=a.alternate;for(f!==null&&(f.lanes|=o),f=a,a=a.return;a!==null;)a.childLanes|=o,f=a.alternate,f!==null&&(f.childLanes|=o),f=a,a=a.return;return f.tag===3?f.stateNode:null}var Os=!1;function Mh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cg(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function kn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function Ds(a,o,f){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,zt&2){var S=g.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),g.pending=o,Go(a,f)}return S=g.interleaved,S===null?(o.next=o,qa(g)):(o.next=S.next,S.next=o),g.interleaved=o,Go(a,f)}function bf(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,Nc(a,f)}}function Sg(a,o){var f=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,f===g)){var S=null,_=null;if(f=f.firstBaseUpdate,f!==null){do{var L={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};_===null?S=_=L:_=_.next=L,f=f.next}while(f!==null);_===null?S=_=o:_=_.next=o}else S=_=o;f={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:_,shared:g.shared,effects:g.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}function Qc(a,o,f,g){var S=a.updateQueue;Os=!1;var _=S.firstBaseUpdate,L=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,me=Q.next;Q.next=null,L===null?_=me:L.next=me,L=Q;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,W=Me.lastBaseUpdate,W!==L&&(W===null?Me.firstBaseUpdate=me:W.next=me,Me.lastBaseUpdate=Q))}if(_!==null){var Fe=S.baseState;L=0,Me=me=Q=null,W=_;do{var De=W.lane,qe=W.eventTime;if((g&De)===De){Me!==null&&(Me=Me.next={eventTime:qe,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var rt=a,lt=W;switch(De=o,qe=f,lt.tag){case 1:if(rt=lt.payload,typeof rt=="function"){Fe=rt.call(qe,Fe,De);break e}Fe=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=lt.payload,De=typeof rt=="function"?rt.call(qe,Fe,De):rt,De==null)break e;Fe=G({},Fe,De);break e;case 2:Os=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,De=S.effects,De===null?S.effects=[W]:De.push(W))}else qe={eventTime:qe,lane:De,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Me===null?(me=Me=qe,Q=Fe):Me=Me.next=qe,L|=De;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;De=W,W=De.next,De.next=null,S.lastBaseUpdate=De,S.shared.pending=null}}while(!0);if(Me===null&&(Q=Fe),S.baseState=Q,S.firstBaseUpdate=me,S.lastBaseUpdate=Me,o=S.shared.interleaved,o!==null){S=o;do L|=S.lane,S=S.next;while(S!==o)}else _===null&&(S.shared.lanes=0);Ol|=L,a.lanes=L,a.memoizedState=Fe}}function _u(a,o,f){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var g=a[o],S=g.callback;if(S!==null){if(g.callback=null,g=f,typeof S!="function")throw Error(i(191,S));S.call(g)}}}var Cl=new t.Component().refs;function Lh(a,o,f,g){o=a.memoizedState,f=f(g,o),f=f==null?o:G({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var xf={isMounted:function(a){return(a=a._reactInternals)?Ye(a)===a:!1},enqueueSetState:function(a,o,f){a=a._reactInternals;var g=Dr(),S=Zo(a),_=kn(g,S);_.payload=o,f!=null&&(_.callback=f),o=Ds(a,_,S),o!==null&&(Zn(o,a,S,g),bf(o,a,S))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var g=Dr(),S=Zo(a),_=kn(g,S);_.tag=1,_.payload=o,f!=null&&(_.callback=f),o=Ds(a,_,S),o!==null&&(Zn(o,a,S,g),bf(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=Dr(),g=Zo(a),S=kn(f,g);S.tag=2,o!=null&&(S.callback=o),o=Ds(a,S,g),o!==null&&(Zn(o,a,g,f),bf(o,a,g))}};function Eg(a,o,f,g,S,_,L){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,_,L):o.prototype&&o.prototype.isPureReactComponent?!bu(f,g)||!bu(S,_):!0}function wg(a,o,f){var g=!1,S=ci,_=o.contextType;return typeof _=="object"&&_!==null?_=Ue(_):(S=vr(o)?aa:Ar.current,g=o.contextTypes,_=(g=g!=null)?Xa(a,S):ci),o=new o(f,_),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=xf,a.stateNode=o,o._reactInternals=a,g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=_),o}function Rg(a,o,f,g){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,g),o.state!==a&&xf.enqueueReplaceState(o,o.state,null)}function Ph(a,o,f,g){var S=a.stateNode;S.props=f,S.state=a.memoizedState,S.refs=Cl,Mh(a);var _=o.contextType;typeof _=="object"&&_!==null?S.context=Ue(_):(_=vr(o)?aa:Ar.current,S.context=Xa(a,_)),S.state=a.memoizedState,_=o.getDerivedStateFromProps,typeof _=="function"&&(Lh(a,o,_,f),S.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(o=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),o!==S.state&&xf.enqueueReplaceState(S,S.state,null),Qc(a,f,S,g),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function Tu(a,o,f){if(a=f.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(i(309));var g=f.stateNode}if(!g)throw Error(i(147,a));var S=g,_=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===_?o.ref:(o=function(L){var W=S.refs;W===Cl&&(W=S.refs={}),L===null?delete W[_]:W[_]=L},o._stringRef=_,o)}if(typeof a!="string")throw Error(i(284));if(!f._owner)throw Error(i(290,a))}return a}function Kc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function _g(a){var o=a._init;return o(a._payload)}function Tg(a){function o(oe,ee){if(a){var ce=oe.deletions;ce===null?(oe.deletions=[ee],oe.flags|=16):ce.push(ee)}}function f(oe,ee){if(!a)return null;for(;ee!==null;)o(oe,ee),ee=ee.sibling;return null}function g(oe,ee){for(oe=new Map;ee!==null;)ee.key!==null?oe.set(ee.key,ee):oe.set(ee.index,ee),ee=ee.sibling;return oe}function S(oe,ee){return oe=zs(oe,ee),oe.index=0,oe.sibling=null,oe}function _(oe,ee,ce){return oe.index=ce,a?(ce=oe.alternate,ce!==null?(ce=ce.index,ce<ee?(oe.flags|=2,ee):ce):(oe.flags|=2,ee)):(oe.flags|=1048576,ee)}function L(oe){return a&&oe.alternate===null&&(oe.flags|=2),oe}function W(oe,ee,ce,$e){return ee===null||ee.tag!==6?(ee=tp(ce,oe.mode,$e),ee.return=oe,ee):(ee=S(ee,ce),ee.return=oe,ee)}function Q(oe,ee,ce,$e){var ct=ce.type;return ct===X?Me(oe,ee,ce.props.children,$e,ce.key):ee!==null&&(ee.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ae&&_g(ct)===ee.type)?($e=S(ee,ce.props),$e.ref=Tu(oe,ee,ce),$e.return=oe,$e):($e=Kf(ce.type,ce.key,ce.props,null,oe.mode,$e),$e.ref=Tu(oe,ee,ce),$e.return=oe,$e)}function me(oe,ee,ce,$e){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ce.containerInfo||ee.stateNode.implementation!==ce.implementation?(ee=yd(ce,oe.mode,$e),ee.return=oe,ee):(ee=S(ee,ce.children||[]),ee.return=oe,ee)}function Me(oe,ee,ce,$e,ct){return ee===null||ee.tag!==7?(ee=Ll(ce,oe.mode,$e,ct),ee.return=oe,ee):(ee=S(ee,ce),ee.return=oe,ee)}function Fe(oe,ee,ce){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=tp(""+ee,oe.mode,ce),ee.return=oe,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case F:return ce=Kf(ee.type,ee.key,ee.props,null,oe.mode,ce),ce.ref=Tu(oe,null,ee),ce.return=oe,ce;case z:return ee=yd(ee,oe.mode,ce),ee.return=oe,ee;case Ae:var $e=ee._init;return Fe(oe,$e(ee._payload),ce)}if(Vt(ee)||Oe(ee))return ee=Ll(ee,oe.mode,ce,null),ee.return=oe,ee;Kc(oe,ee)}return null}function De(oe,ee,ce,$e){var ct=ee!==null?ee.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number")return ct!==null?null:W(oe,ee,""+ce,$e);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case F:return ce.key===ct?Q(oe,ee,ce,$e):null;case z:return ce.key===ct?me(oe,ee,ce,$e):null;case Ae:return ct=ce._init,De(oe,ee,ct(ce._payload),$e)}if(Vt(ce)||Oe(ce))return ct!==null?null:Me(oe,ee,ce,$e,null);Kc(oe,ce)}return null}function qe(oe,ee,ce,$e,ct){if(typeof $e=="string"&&$e!==""||typeof $e=="number")return oe=oe.get(ce)||null,W(ee,oe,""+$e,ct);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case F:return oe=oe.get($e.key===null?ce:$e.key)||null,Q(ee,oe,$e,ct);case z:return oe=oe.get($e.key===null?ce:$e.key)||null,me(ee,oe,$e,ct);case Ae:var Ct=$e._init;return qe(oe,ee,ce,Ct($e._payload),ct)}if(Vt($e)||Oe($e))return oe=oe.get(ce)||null,Me(ee,oe,$e,ct,null);Kc(ee,$e)}return null}function rt(oe,ee,ce,$e){for(var ct=null,Ct=null,at=ee,Et=ee=0,wr=null;at!==null&&Et<ce.length;Et++){at.index>Et?(wr=at,at=null):wr=at.sibling;var rn=De(oe,at,ce[Et],$e);if(rn===null){at===null&&(at=wr);break}a&&at&&rn.alternate===null&&o(oe,at),ee=_(rn,ee,Et),Ct===null?ct=rn:Ct.sibling=rn,Ct=rn,at=wr}if(Et===ce.length)return f(oe,at),Bn&&xl(oe,Et),ct;if(at===null){for(;Et<ce.length;Et++)at=Fe(oe,ce[Et],$e),at!==null&&(ee=_(at,ee,Et),Ct===null?ct=at:Ct.sibling=at,Ct=at);return Bn&&xl(oe,Et),ct}for(at=g(oe,at);Et<ce.length;Et++)wr=qe(at,oe,Et,ce[Et],$e),wr!==null&&(a&&wr.alternate!==null&&at.delete(wr.key===null?Et:wr.key),ee=_(wr,ee,Et),Ct===null?ct=wr:Ct.sibling=wr,Ct=wr);return a&&at.forEach(function(qo){return o(oe,qo)}),Bn&&xl(oe,Et),ct}function lt(oe,ee,ce,$e){var ct=Oe(ce);if(typeof ct!="function")throw Error(i(150));if(ce=ct.call(ce),ce==null)throw Error(i(151));for(var Ct=ct=null,at=ee,Et=ee=0,wr=null,rn=ce.next();at!==null&&!rn.done;Et++,rn=ce.next()){at.index>Et?(wr=at,at=null):wr=at.sibling;var qo=De(oe,at,rn.value,$e);if(qo===null){at===null&&(at=wr);break}a&&at&&qo.alternate===null&&o(oe,at),ee=_(qo,ee,Et),Ct===null?ct=qo:Ct.sibling=qo,Ct=qo,at=wr}if(rn.done)return f(oe,at),Bn&&xl(oe,Et),ct;if(at===null){for(;!rn.done;Et++,rn=ce.next())rn=Fe(oe,rn.value,$e),rn!==null&&(ee=_(rn,ee,Et),Ct===null?ct=rn:Ct.sibling=rn,Ct=rn);return Bn&&xl(oe,Et),ct}for(at=g(oe,at);!rn.done;Et++,rn=ce.next())rn=qe(at,oe,Et,rn.value,$e),rn!==null&&(a&&rn.alternate!==null&&at.delete(rn.key===null?Et:rn.key),ee=_(rn,ee,Et),Ct===null?ct=rn:Ct.sibling=rn,Ct=rn);return a&&at.forEach(function(Fx){return o(oe,Fx)}),Bn&&xl(oe,Et),ct}function dr(oe,ee,ce,$e){if(typeof ce=="object"&&ce!==null&&ce.type===X&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case F:e:{for(var ct=ce.key,Ct=ee;Ct!==null;){if(Ct.key===ct){if(ct=ce.type,ct===X){if(Ct.tag===7){f(oe,Ct.sibling),ee=S(Ct,ce.props.children),ee.return=oe,oe=ee;break e}}else if(Ct.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ae&&_g(ct)===Ct.type){f(oe,Ct.sibling),ee=S(Ct,ce.props),ee.ref=Tu(oe,Ct,ce),ee.return=oe,oe=ee;break e}f(oe,Ct);break}else o(oe,Ct);Ct=Ct.sibling}ce.type===X?(ee=Ll(ce.props.children,oe.mode,$e,ce.key),ee.return=oe,oe=ee):($e=Kf(ce.type,ce.key,ce.props,null,oe.mode,$e),$e.ref=Tu(oe,ee,ce),$e.return=oe,oe=$e)}return L(oe);case z:e:{for(Ct=ce.key;ee!==null;){if(ee.key===Ct)if(ee.tag===4&&ee.stateNode.containerInfo===ce.containerInfo&&ee.stateNode.implementation===ce.implementation){f(oe,ee.sibling),ee=S(ee,ce.children||[]),ee.return=oe,oe=ee;break e}else{f(oe,ee);break}else o(oe,ee);ee=ee.sibling}ee=yd(ce,oe.mode,$e),ee.return=oe,oe=ee}return L(oe);case Ae:return Ct=ce._init,dr(oe,ee,Ct(ce._payload),$e)}if(Vt(ce))return rt(oe,ee,ce,$e);if(Oe(ce))return lt(oe,ee,ce,$e);Kc(oe,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,ee!==null&&ee.tag===6?(f(oe,ee.sibling),ee=S(ee,ce),ee.return=oe,oe=ee):(f(oe,ee),ee=tp(ce,oe.mode,$e),ee.return=oe,oe=ee),L(oe)):f(oe,ee)}return dr}var Nu=Tg(!0),Ng=Tg(!1),ed={},uo=Nn(ed),Iu=Nn(ed),td=Nn(ed);function ks(a){if(a===ed)throw Error(i(174));return a}function Fh(a,o){switch(nn(td,o),nn(Iu,a),nn(uo,ed),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Pn(o,a)}ut(uo),nn(uo,o)}function Au(){ut(uo),ut(Iu),ut(td)}function Cf(a){ks(td.current);var o=ks(uo.current),f=Pn(o,a.type);o!==f&&(nn(Iu,a),nn(uo,f))}function gt(a){Iu.current===a&&(ut(uo),ut(Iu))}var ft=Nn(0);function Kt(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var er=[];function hi(){for(var a=0;a<er.length;a++)er[a]._workInProgressVersionPrimary=null;er.length=0}var nd=U.ReactCurrentDispatcher,Vh=U.ReactCurrentBatchConfig,Sl=0,Yn=null,sr=null,_e=null,lr=!1,xt=!1,co=0,Wo=0;function tr(){throw Error(i(321))}function mi(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Bi(a[f],o[f]))return!1;return!0}function El(a,o,f,g,S,_){if(Sl=_,Yn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,nd.current=a===null||a.memoizedState===null?xx:Cx,a=f(g,S),xt){_=0;do{if(xt=!1,co=0,25<=_)throw Error(i(301));_+=1,_e=sr=null,o.updateQueue=null,nd.current=Sx,a=f(g,S)}while(xt)}if(nd.current=Mf,o=sr!==null&&sr.next!==null,Sl=0,_e=sr=Yn=null,lr=!1,o)throw Error(i(300));return a}function Ms(){var a=co!==0;return co=0,a}function Aa(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?Yn.memoizedState=_e=a:_e=_e.next=a,_e}function ja(){if(sr===null){var a=Yn.alternate;a=a!==null?a.memoizedState:null}else a=sr.next;var o=_e===null?Yn.memoizedState:_e.next;if(o!==null)_e=o,sr=a;else{if(a===null)throw Error(i(310));sr=a,a={memoizedState:sr.memoizedState,baseState:sr.baseState,baseQueue:sr.baseQueue,queue:sr.queue,next:null},_e===null?Yn.memoizedState=_e=a:_e=_e.next=a}return _e}function wl(a,o){return typeof o=="function"?o(a):o}function rd(a){var o=ja(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var g=sr,S=g.baseQueue,_=f.pending;if(_!==null){if(S!==null){var L=S.next;S.next=_.next,_.next=L}g.baseQueue=S=_,f.pending=null}if(S!==null){_=S.next,g=g.baseState;var W=L=null,Q=null,me=_;do{var Me=me.lane;if((Sl&Me)===Me)Q!==null&&(Q=Q.next={lane:0,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null}),g=me.hasEagerState?me.eagerState:a(g,me.action);else{var Fe={lane:Me,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};Q===null?(W=Q=Fe,L=g):Q=Q.next=Fe,Yn.lanes|=Me,Ol|=Me}me=me.next}while(me!==null&&me!==_);Q===null?L=g:Q.next=W,Bi(g,o.memoizedState)||(Oa=!0),o.memoizedState=g,o.baseState=L,o.baseQueue=Q,f.lastRenderedState=g}if(a=f.interleaved,a!==null){S=a;do _=S.lane,Yn.lanes|=_,Ol|=_,S=S.next;while(S!==a)}else S===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function ad(a){var o=ja(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var g=f.dispatch,S=f.pending,_=o.memoizedState;if(S!==null){f.pending=null;var L=S=S.next;do _=a(_,L.action),L=L.next;while(L!==S);Bi(_,o.memoizedState)||(Oa=!0),o.memoizedState=_,o.baseQueue===null&&(o.baseState=_),f.lastRenderedState=_}return[_,g]}function Sf(){}function Ef(a,o){var f=Yn,g=ja(),S=o(),_=!Bi(g.memoizedState,S);if(_&&(g.memoizedState=S,Oa=!0),g=g.queue,id(_f.bind(null,f,g,a),[a]),g.getSnapshot!==o||_||_e!==null&&_e.memoizedState.tag&1){if(f.flags|=2048,Rl(9,Rf.bind(null,f,g,S,o),void 0,null),rr===null)throw Error(i(349));Sl&30||wf(f,o,S)}return S}function wf(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function Rf(a,o,f,g){o.value=f,o.getSnapshot=g,Tf(o)&&Nf(a)}function _f(a,o,f){return f(function(){Tf(o)&&Nf(a)})}function Tf(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Bi(a,f)}catch{return!0}}function Nf(a){var o=Go(a,1);o!==null&&Zn(o,a,1,-1)}function If(a){var o=Aa();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:a},o.queue=a,a=a.dispatch=kf.bind(null,Yn,a),[o.memoizedState,a]}function Rl(a,o,f,g){return a={tag:a,create:o,destroy:f,deps:g,next:null},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.lastEffect=a.next=a):(f=o.lastEffect,f===null?o.lastEffect=a.next=a:(g=f.next,f.next=a,a.next=g,o.lastEffect=a)),a}function Af(){return ja().memoizedState}function ju(a,o,f,g){var S=Aa();Yn.flags|=a,S.memoizedState=Rl(1|o,f,void 0,g===void 0?null:g)}function _l(a,o,f,g){var S=ja();g=g===void 0?null:g;var _=void 0;if(sr!==null){var L=sr.memoizedState;if(_=L.destroy,g!==null&&mi(g,L.deps)){S.memoizedState=Rl(o,f,_,g);return}}Yn.flags|=a,S.memoizedState=Rl(1|o,f,_,g)}function Tl(a,o){return ju(8390656,8,a,o)}function id(a,o){return _l(2048,8,a,o)}function jf(a,o){return _l(4,2,a,o)}function Of(a,o){return _l(4,4,a,o)}function Df(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function Bh(a,o,f){return f=f!=null?f.concat([a]):null,_l(4,4,Df.bind(null,o,a),f)}function Nl(){}function zh(a,o){var f=ja();o=o===void 0?null:o;var g=f.memoizedState;return g!==null&&o!==null&&mi(o,g[1])?g[0]:(f.memoizedState=[a,o],a)}function Ou(a,o){var f=ja();o=o===void 0?null:o;var g=f.memoizedState;return g!==null&&o!==null&&mi(o,g[1])?g[0]:(a=a(),f.memoizedState=[a,o],a)}function Ls(a,o,f){return Sl&21?(Bi(f,o)||(f=ul(),Yn.lanes|=f,Ol|=f,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Oa=!0),a.memoizedState=f)}function Ja(a,o){var f=Ut;Ut=f!==0&&4>f?f:4,a(!0);var g=Vh.transition;Vh.transition={};try{a(!1),o()}finally{Ut=f,Vh.transition=g}}function Ig(){return ja().memoizedState}function Mn(a,o,f){var g=Zo(a);if(f={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null},od(a))Du(o,f);else if(f=xg(a,o,f,g),f!==null){var S=Dr();Zn(f,a,g,S),sd(f,o,g)}}function kf(a,o,f){var g=Zo(a),S={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null};if(od(a))Du(o,S);else{var _=a.alternate;if(a.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var L=o.lastRenderedState,W=_(L,f);if(S.hasEagerState=!0,S.eagerState=W,Bi(W,L)){var Q=o.interleaved;Q===null?(S.next=S,qa(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}f=xg(a,o,S,g),f!==null&&(S=Dr(),Zn(f,a,g,S),sd(f,o,g))}}function od(a){var o=a.alternate;return a===Yn||o!==null&&o===Yn}function Du(a,o){xt=lr=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function sd(a,o,f){if(f&4194240){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,Nc(a,f)}}var Mf={readContext:Ue,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useInsertionEffect:tr,useLayoutEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useMutableSource:tr,useSyncExternalStore:tr,useId:tr,unstable_isNewReconciler:!1},xx={readContext:Ue,useCallback:function(a,o){return Aa().memoizedState=[a,o===void 0?null:o],a},useContext:Ue,useEffect:Tl,useImperativeHandle:function(a,o,f){return f=f!=null?f.concat([a]):null,ju(4194308,4,Df.bind(null,o,a),f)},useLayoutEffect:function(a,o){return ju(4194308,4,a,o)},useInsertionEffect:function(a,o){return ju(4,2,a,o)},useMemo:function(a,o){var f=Aa();return o=o===void 0?null:o,a=a(),f.memoizedState=[a,o],a},useReducer:function(a,o,f){var g=Aa();return o=f!==void 0?f(o):o,g.memoizedState=g.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},g.queue=a,a=a.dispatch=Mn.bind(null,Yn,a),[g.memoizedState,a]},useRef:function(a){var o=Aa();return a={current:a},o.memoizedState=a},useState:If,useDebugValue:Nl,useDeferredValue:function(a){return Aa().memoizedState=a},useTransition:function(){var a=If(!1),o=a[0];return a=Ja.bind(null,a[1]),Aa().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,f){var g=Yn,S=Aa();if(Bn){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),rr===null)throw Error(i(349));Sl&30||wf(g,o,f)}S.memoizedState=f;var _={value:f,getSnapshot:o};return S.queue=_,Tl(_f.bind(null,g,_,a),[a]),g.flags|=2048,Rl(9,Rf.bind(null,g,_,f,o),void 0,null),f},useId:function(){var a=Aa(),o=rr.identifierPrefix;if(Bn){var f=Fr,g=Na;f=(g&~(1<<32-ra(g)-1)).toString(32)+f,o=":"+o+"R"+f,f=co++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=Wo++,o=":"+o+"r"+f.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},Cx={readContext:Ue,useCallback:zh,useContext:Ue,useEffect:id,useImperativeHandle:Bh,useInsertionEffect:jf,useLayoutEffect:Of,useMemo:Ou,useReducer:rd,useRef:Af,useState:function(){return rd(wl)},useDebugValue:Nl,useDeferredValue:function(a){var o=ja();return Ls(o,sr.memoizedState,a)},useTransition:function(){var a=rd(wl)[0],o=ja().memoizedState;return[a,o]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:Ig,unstable_isNewReconciler:!1},Sx={readContext:Ue,useCallback:zh,useContext:Ue,useEffect:id,useImperativeHandle:Bh,useInsertionEffect:jf,useLayoutEffect:Of,useMemo:Ou,useReducer:ad,useRef:Af,useState:function(){return ad(wl)},useDebugValue:Nl,useDeferredValue:function(a){var o=ja();return sr===null?o.memoizedState=a:Ls(o,sr.memoizedState,a)},useTransition:function(){var a=ad(wl)[0],o=ja().memoizedState;return[a,o]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:Ig,unstable_isNewReconciler:!1};function Ps(a,o){try{var f="",g=o;do f+=Te(g),g=g.return;while(g);var S=f}catch(_){S=`
93
+ `+S[L].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=L&&0<=W);break}}}finally{Ce=!1,Error.prepareStackTrace=d}return(a=a?a.displayName||a.name:"")?re(a):""}function Te(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=we(a.type,!1),a;case 11:return a=we(a.type.render,!1),a;case 1:return a=we(a.type,!0),a;default:return""}}function Ie(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case X:return"Fragment";case z:return"Portal";case pe:return"Profiler";case Y:return"StrictMode";case Re:return"Suspense";case be:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case ie:return(a._context.displayName||"Context")+".Provider";case ae:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case xe:return o=a.displayName||null,o!==null?o:Ie(a.type)||"Memo";case Ae:o=a._payload,a=a._init;try{return Ie(a(o))}catch{}}return null}function ue(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ie(o);case 8:return o===Y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function de(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Be(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ge(a){var o=Be(a)?"checked":"value",d=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),g=""+a[o];if(!a.hasOwnProperty(o)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var S=d.get,_=d.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(L){g=""+L,_.call(this,L)}}),Object.defineProperty(a,o,{enumerable:d.enumerable}),{getValue:function(){return g},setValue:function(L){g=""+L},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=Ge(a))}function ot(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var d=o.getValue(),g="";return a&&(g=Be(a)?a.checked?"true":"false":a.value),a=g,a!==d?(o.setValue(a),!0):!1}function je(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Rt(a,o){var d=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??a._wrapperState.initialChecked})}function dt(a,o){var d=o.defaultValue==null?"":o.defaultValue,g=o.checked!=null?o.checked:o.defaultChecked;d=de(o.value!=null?o.value:d),a._wrapperState={initialChecked:g,initialValue:d,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function en(a,o){o=o.checked,o!=null&&V(a,"checked",o,!1)}function sn(a,o){en(a,o);var d=de(o.value),g=o.type;if(d!=null)g==="number"?(d===0&&a.value===""||a.value!=d)&&(a.value=""+d):a.value!==""+d&&(a.value=""+d);else if(g==="submit"||g==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?In(a,o.type,d):o.hasOwnProperty("defaultValue")&&In(a,o.type,de(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function ln(a,o,d){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type;if(!(g!=="submit"&&g!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,d||o===a.value||(a.value=o),a.defaultValue=o}d=a.name,d!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,d!==""&&(a.name=d)}function In(a,o,d){(o!=="number"||je(a.ownerDocument)!==a)&&(d==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+d&&(a.defaultValue=""+d))}var Vt=Array.isArray;function Cn(a,o,d,g){if(a=a.options,o){o={};for(var S=0;S<d.length;S++)o["$"+d[S]]=!0;for(d=0;d<a.length;d++)S=o.hasOwnProperty("$"+a[d].value),a[d].selected!==S&&(a[d].selected=S),S&&g&&(a[d].defaultSelected=!0)}else{for(d=""+de(d),o=null,S=0;S<a.length;S++){if(a[S].value===d){a[S].selected=!0,g&&(a[S].defaultSelected=!0);return}o!==null||a[S].disabled||(o=a[S])}o!==null&&(o.selected=!0)}}function Qn(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Tr(a,o){var d=o.value;if(d==null){if(d=o.children,o=o.defaultValue,d!=null){if(o!=null)throw Error(i(92));if(Vt(d)){if(1<d.length)throw Error(i(93));d=d[0]}o=d}o==null&&(o=""),d=o}a._wrapperState={initialValue:de(d)}}function Hn(a,o){var d=de(o.value),g=de(o.defaultValue);d!=null&&(d=""+d,d!==a.value&&(a.value=d),o.defaultValue==null&&a.defaultValue!==d&&(a.defaultValue=d)),g!=null&&(a.defaultValue=""+g)}function Nr(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function St(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?St(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var un,za=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,d,g,S){MSApp.execUnsafeLocalFunction(function(){return a(o,d,g,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(un=un||document.createElement("div"),un.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=un.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function $a(a,o){if(o){var d=a.firstChild;if(d&&d===a.lastChild&&d.nodeType===3){d.nodeValue=o;return}}a.textContent=o}var Ua={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xe=["Webkit","ms","Moz","O"];Object.keys(Ua).forEach(function(a){Xe.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ua[o]=Ua[a]})});function ht(a,o,d){return o==null||typeof o=="boolean"||o===""?"":d||typeof o!="number"||o===0||Ua.hasOwnProperty(a)&&Ua[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var d in o)if(o.hasOwnProperty(d)){var g=d.indexOf("--")===0,S=ht(d,o[d],g);d==="float"&&(d="cssFloat"),g?a.setProperty(d,S):a[d]=S}}var cn=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tn(a,o){if(o){if(cn[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function ir(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gn=null;function Yr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var hn=null,Ir=null,dn=null;function An(a){if(a=io(a)){if(typeof hn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=pf(o),hn(a.stateNode,a.type,o))}}function ki(a){Ir?dn?dn.push(a):dn=[a]:Ir=a}function ai(){if(Ir){var a=Ir,o=dn;if(dn=Ir=null,An(a),o)for(a=0;a<o.length;a++)An(o[a])}}function vs(a,o){return a(o)}function il(){}var ol=!1;function ms(a,o,d){if(ol)return a(o,d);ol=!0;try{return vs(a,o,d)}finally{ol=!1,(Ir!==null||dn!==null)&&(il(),ai())}}function Mi(a,o){var d=a.stateNode;if(d===null)return null;var g=pf(d);if(g===null)return null;d=g[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(d&&typeof d!="function")throw Error(i(231,o,typeof d));return d}var Li=!1;if(h)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function Io(a,o,d,g,S,_,L,W,Q){var me=Array.prototype.slice.call(arguments,3);try{o.apply(d,me)}catch(Me){this.onError(Me)}}var ya=!1,ba=null,Ha=!1,Ao=null,J={onError:function(a){ya=!0,ba=a}};function ke(a,o,d,g,S,_,L,W,Q){ya=!1,ba=null,Io.apply(J,arguments)}function He(a,o,d,g,S,_,L,W,Q){if(ke.apply(this,arguments),ya){if(ya){var me=ba;ya=!1,ba=null}else throw Error(i(198));Ha||(Ha=!0,Ao=me)}}function Ye(a){var o=a,d=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(d=o.return),a=o.return;while(a)}return o.tag===3?d:null}function Bt(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function Ht(a){if(Ye(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=Ye(a),o===null)throw Error(i(188));return o!==a?null:a}for(var d=a,g=o;;){var S=d.return;if(S===null)break;var _=S.alternate;if(_===null){if(g=S.return,g!==null){d=g;continue}break}if(S.child===_.child){for(_=S.child;_;){if(_===d)return Ht(S),a;if(_===g)return Ht(S),o;_=_.sibling}throw Error(i(188))}if(d.return!==g.return)d=S,g=_;else{for(var L=!1,W=S.child;W;){if(W===d){L=!0,d=S,g=_;break}if(W===g){L=!0,g=S,d=_;break}W=W.sibling}if(!L){for(W=_.child;W;){if(W===d){L=!0,d=_,g=S;break}if(W===g){L=!0,g=_,d=S;break}W=W.sibling}if(!L)throw Error(i(189))}}if(d.alternate!==g)throw Error(i(190))}if(d.tag!==3)throw Error(i(188));return d.stateNode.current===d?a:o}function vt(a){return a=kt(a),a!==null?hr(a):null}function hr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=hr(a);if(o!==null)return o;a=a.sibling}return null}var jn=r.unstable_scheduleCallback,On=r.unstable_cancelCallback,Zr=r.unstable_shouldYield,Ki=r.unstable_requestPaint,Dn=r.unstable_now,xa=r.unstable_getCurrentPriorityLevel,Sc=r.unstable_ImmediatePriority,eo=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,sl=r.unstable_LowPriority,jo=r.unstable_IdlePriority,gs=null,Ca=null;function Ec(a){if(Ca&&typeof Ca.onCommitFiberRoot=="function")try{Ca.onCommitFiberRoot(gs,a,void 0,(a.current.flags&128)===128)}catch{}}var ra=Math.clz32?Math.clz32:_c,wc=Math.log,Rc=Math.LN2;function _c(a){return a>>>=0,a===0?32:31-(wc(a)/Rc|0)|0}var ll=64,uu=4194304;function Oo(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function to(a,o){var d=a.pendingLanes;if(d===0)return 0;var g=0,S=a.suspendedLanes,_=a.pingedLanes,L=d&268435455;if(L!==0){var W=L&~S;W!==0?g=Oo(W):(_&=L,_!==0&&(g=Oo(_)))}else L=d&~S,L!==0?g=Oo(L):_!==0&&(g=Oo(_));if(g===0)return 0;if(o!==0&&o!==g&&!(o&S)&&(S=g&-g,_=o&-o,S>=_||S===16&&(_&4194240)!==0))return o;if(g&4&&(g|=d&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=g;0<o;)d=31-ra(o),S=1<<d,g|=a[d],o&=~S;return g}function oi(a,o){switch(a){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ys(a,o){for(var d=a.suspendedLanes,g=a.pingedLanes,S=a.expirationTimes,_=a.pendingLanes;0<_;){var L=31-ra(_),W=1<<L,Q=S[L];Q===-1?(!(W&d)||W&g)&&(S[L]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),_&=~W}}function no(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ul(){var a=ll;return ll<<=1,!(ll&4194240)&&(ll=64),a}function cl(a){for(var o=[],d=0;31>d;d++)o.push(a);return o}function bs(a,o,d){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-ra(o),a[o]=d}function Tc(a,o){var d=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var g=a.eventTimes;for(a=a.expirationTimes;0<d;){var S=31-ra(d),_=1<<S;o[S]=0,g[S]=-1,a[S]=-1,d&=~_}}function Nc(a,o){var d=a.entangledLanes|=o;for(a=a.entanglements;d;){var g=31-ra(d),S=1<<g;S&o|a[g]&o&&(a[g]|=o),d&=~S}}var Ut=0;function Ic(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var cu,xs,Ac,Yt,du,dl=!1,It=[],Pi=null,Wn=null,Sa=null,si=new Map,Cs=new Map,Fn=[],Xn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jc(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(o.pointerId)}}function Lr(a,o,d,g,S,_){return a===null||a.nativeEvent!==_?(a={blockedOn:o,domEventName:d,eventSystemFlags:g,nativeEvent:_,targetContainers:[S]},o!==null&&(o=io(o),o!==null&&xs(o)),a):(a.eventSystemFlags|=g,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Ea(a,o,d,g,S){switch(o){case"focusin":return Pi=Lr(Pi,a,o,d,g,S),!0;case"dragenter":return Wn=Lr(Wn,a,o,d,g,S),!0;case"mouseover":return Sa=Lr(Sa,a,o,d,g,S),!0;case"pointerover":var _=S.pointerId;return si.set(_,Lr(si.get(_)||null,a,o,d,g,S)),!0;case"gotpointercapture":return _=S.pointerId,Cs.set(_,Lr(Cs.get(_)||null,a,o,d,g,S)),!0}return!1}function Fi(a){var o=Uo(a.target);if(o!==null){var d=Ye(o);if(d!==null){if(o=d.tag,o===13){if(o=Bt(d),o!==null){a.blockedOn=o,du(a.priority,function(){Ac(d)});return}}else if(o===3&&d.stateNode.current.memoizedState.isDehydrated){a.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}a.blockedOn=null}function fu(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var d=vu(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(d===null){d=a.nativeEvent;var g=new d.constructor(d.type,d);Gn=g,d.target.dispatchEvent(g),Gn=null}else return o=io(d),o!==null&&xs(o),a.blockedOn=d,!1;o.shift()}return!0}function fl(a,o,d){fu(a)&&d.delete(o)}function pl(){dl=!1,Pi!==null&&fu(Pi)&&(Pi=null),Wn!==null&&fu(Wn)&&(Wn=null),Sa!==null&&fu(Sa)&&(Sa=null),si.forEach(fl),Cs.forEach(fl)}function Ss(a,o){a.blockedOn===o&&(a.blockedOn=null,dl||(dl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pl)))}function li(a){function o(S){return Ss(S,a)}if(0<It.length){Ss(It[0],a);for(var d=1;d<It.length;d++){var g=It[d];g.blockedOn===a&&(g.blockedOn=null)}}for(Pi!==null&&Ss(Pi,a),Wn!==null&&Ss(Wn,a),Sa!==null&&Ss(Sa,a),si.forEach(o),Cs.forEach(o),d=0;d<Fn.length;d++)g=Fn[d],g.blockedOn===a&&(g.blockedOn=null);for(;0<Fn.length&&(d=Fn[0],d.blockedOn===null);)Fi(d),d.blockedOn===null&&Fn.shift()}var Do=U.ReactCurrentBatchConfig,pu=!0;function ko(a,o,d,g){var S=Ut,_=Do.transition;Do.transition=null;try{Ut=1,ro(a,o,d,g)}finally{Ut=S,Do.transition=_}}function hu(a,o,d,g){var S=Ut,_=Do.transition;Do.transition=null;try{Ut=4,ro(a,o,d,g)}finally{Ut=S,Do.transition=_}}function ro(a,o,d,g){if(pu){var S=vu(a,o,d,g);if(S===null)xh(a,o,g,Mo,d),jc(a,g);else if(Ea(S,a,o,d,g))g.stopPropagation();else if(jc(a,g),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var _=io(S);if(_!==null&&cu(_),_=vu(a,o,d,g),_===null&&xh(a,o,g,Mo,d),_===S)break;S=_}S!==null&&g.stopPropagation()}else xh(a,o,g,null,d)}}var Mo=null;function vu(a,o,d,g){if(Mo=null,a=Yr(g),a=Uo(a),a!==null)if(o=Ye(a),o===null)a=null;else if(d=o.tag,d===13){if(a=Bt(o),a!==null)return a;a=null}else if(d===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return Mo=a,null}function Oc(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(xa()){case Sc:return 1;case eo:return 4;case Lt:case sl:return 16;case jo:return 536870912;default:return 16}default:return 16}}var Vi=null,mu=null,D=null;function q(){if(D)return D;var a,o=mu,d=o.length,g,S="value"in Vi?Vi.value:Vi.textContent,_=S.length;for(a=0;a<d&&o[a]===S[a];a++);var L=d-a;for(g=1;g<=L&&o[d-g]===S[_-g];g++);return D=S.slice(a,1<g?1-g:void 0)}function fe(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function ye(){return!0}function ze(){return!1}function st(a){function o(d,g,S,_,L){this._reactName=d,this._targetInst=S,this.type=g,this.nativeEvent=_,this.target=L,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(d=a[W],this[W]=d?d(_):_[W]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?ye:ze,this.isPropagationStopped=ze,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=ye)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=ye)},persist:function(){},isPersistent:ye}),o}var Qe={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_t=st(Qe),Pt=G({},Qe,{view:0,detail:0}),fn=st(Pt),vn,mn,gn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==gn&&(gn&&a.type==="mousemove"?(vn=a.screenX-gn.screenX,mn=a.screenY-gn.screenY):mn=vn=0,gn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:mn}}),Zt=st(Vn),Es=G({},Vn,{dataTransfer:0}),gu=st(Es),Dc=G({},Pt,{relatedTarget:0}),kc=st(Dc),Lo=G({},Qe,{animationName:0,elapsedTime:0,pseudoElement:0}),Mc=st(Lo),Lc=G({},Qe,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),lh=st(Lc),ax=G({},Qe,{data:0}),$m=st(ax),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Hm[a])?!!o[a]:!1}function nf(){return Gm}var ix=G({},Pt,{key:function(a){if(a.key){var o=Um[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=fe(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?uh[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nf,charCode:function(a){return a.type==="keypress"?fe(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?fe(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Po=st(ix),ox=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rf=st(ox),ch=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nf}),dh=st(ch),sx=G({},Qe,{propertyName:0,elapsedTime:0,pseudoElement:0}),af=st(sx),Wm=G({},Vn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),wa=st(Wm),Fo=[9,13,27,32],Kn=h&&"CompositionEvent"in window,Ga=null;h&&"documentMode"in document&&(Ga=document.documentMode);var fh=h&&"TextEvent"in window&&!Ga,Pc=h&&(!Kn||Ga&&8<Ga&&11>=Ga),Xm=" ",yu=!1;function Ym(a,o){switch(a){case"keyup":return Fo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ws=!1;function lx(a,o){switch(a){case"compositionend":return Zm(o);case"keypress":return o.which!==32?null:(yu=!0,Xm);case"textInput":return a=o.data,a===Xm&&yu?null:a;default:return null}}function ux(a,o){if(ws)return a==="compositionend"||!Kn&&Ym(a,o)?(a=q(),D=mu=Vi=null,ws=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Pc&&o.locale!=="ko"?null:o.data;default:return null}}var cx={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 ph(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!cx[a.type]:o==="textarea"}function qm(a,o,d,g){ki(g),o=df(o,"onChange"),0<o.length&&(d=new _t("onChange","change",null,d,g),a.push({event:d,listeners:o}))}var Fc=null,Vc=null;function Jm(a){pg(a,0)}function Vo(a){var o=Su(a);if(ot(o))return a}function hh(a,o){if(a==="change")return o}var vh=!1;if(h){var of;if(h){var mh="oninput"in document;if(!mh){var Qm=document.createElement("div");Qm.setAttribute("oninput","return;"),mh=typeof Qm.oninput=="function"}of=mh}else of=!1;vh=of&&(!document.documentMode||9<document.documentMode)}function Km(){Fc&&(Fc.detachEvent("onpropertychange",eg),Vc=Fc=null)}function eg(a){if(a.propertyName==="value"&&Vo(Vc)){var o=[];qm(o,Vc,a,Yr(a)),ms(Jm,o)}}function dx(a,o,d){a==="focusin"?(Km(),Fc=o,Vc=d,Fc.attachEvent("onpropertychange",eg)):a==="focusout"&&Km()}function fx(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Vo(Vc)}function px(a,o){if(a==="click")return Vo(o)}function hx(a,o){if(a==="input"||a==="change")return Vo(o)}function tg(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:tg;function bu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var d=Object.keys(a),g=Object.keys(o);if(d.length!==g.length)return!1;for(g=0;g<d.length;g++){var S=d[g];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function ng(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function rg(a,o){var d=ng(a);a=0;for(var g;d;){if(d.nodeType===3){if(g=a+d.textContent.length,a<=o&&g>=o)return{node:d,offset:o-a};a=g}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=ng(d)}}function ag(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?ag(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function ig(){for(var a=window,o=je();o instanceof a.HTMLIFrameElement;){try{var d=typeof o.contentWindow.location.href=="string"}catch{d=!1}if(d)a=o.contentWindow;else break;o=je(a.document)}return o}function Bc(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function hl(a){var o=ig(),d=a.focusedElem,g=a.selectionRange;if(o!==d&&d&&d.ownerDocument&&ag(d.ownerDocument.documentElement,d)){if(g!==null&&Bc(d)){if(o=g.start,a=g.end,a===void 0&&(a=o),"selectionStart"in d)d.selectionStart=o,d.selectionEnd=Math.min(a,d.value.length);else if(a=(o=d.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var S=d.textContent.length,_=Math.min(g.start,S);g=g.end===void 0?_:Math.min(g.end,S),!a.extend&&_>g&&(S=g,g=_,_=S),S=rg(d,_);var L=rg(d,g);S&&L&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==L.node||a.focusOffset!==L.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),_>g?(a.addRange(o),a.extend(L.node,L.offset)):(o.setEnd(L.node,L.offset),a.addRange(o)))}}for(o=[],a=d;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<o.length;d++)a=o[d],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var sf=h&&"documentMode"in document&&11>=document.documentMode,vl=null,Rs=null,zc=null,gh=!1;function og(a,o,d){var g=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;gh||vl==null||vl!==je(g)||(g=vl,"selectionStart"in g&&Bc(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),zc&&bu(zc,g)||(zc=g,g=df(Rs,"onSelect"),0<g.length&&(o=new _t("onSelect","select",null,o,d),a.push({event:o,listeners:g}),o.target=vl)))}function lf(a,o){var d={};return d[a.toLowerCase()]=o.toLowerCase(),d["Webkit"+a]="webkit"+o,d["Moz"+a]="moz"+o,d}var xu={animationend:lf("Animation","AnimationEnd"),animationiteration:lf("Animation","AnimationIteration"),animationstart:lf("Animation","AnimationStart"),transitionend:lf("Transition","TransitionEnd")},uf={},sg={};h&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete xu.animationend.animation,delete xu.animationiteration.animation,delete xu.animationstart.animation),"TransitionEvent"in window||delete xu.transitionend.transition);function $c(a){if(uf[a])return uf[a];if(!xu[a])return a;var o=xu[a],d;for(d in o)if(o.hasOwnProperty(d)&&d in sg)return uf[a]=o[d];return a}var qr=$c("animationend"),yh=$c("animationiteration"),lg=$c("animationstart"),ug=$c("transitionend"),cg=new Map,dg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _s(a,o){cg.set(a,o),f(o,[a])}for(var cf=0;cf<dg.length;cf++){var Uc=dg[cf],Hc=Uc.toLowerCase(),vx=Uc[0].toUpperCase()+Uc.slice(1);_s(Hc,"on"+vx)}_s(qr,"onAnimationEnd"),_s(yh,"onAnimationIteration"),_s(lg,"onAnimationStart"),_s("dblclick","onDoubleClick"),_s("focusin","onFocus"),_s("focusout","onBlur"),_s(ug,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function fg(a,o,d){var g=a.type||"unknown-event";a.currentTarget=d,He(g,o,void 0,a),a.currentTarget=null}function pg(a,o){o=(o&4)!==0;for(var d=0;d<a.length;d++){var g=a[d],S=g.event;g=g.listeners;e:{var _=void 0;if(o)for(var L=g.length-1;0<=L;L--){var W=g[L],Q=W.instance,me=W.currentTarget;if(W=W.listener,Q!==_&&S.isPropagationStopped())break e;fg(S,W,me),_=Q}else for(L=0;L<g.length;L++){if(W=g[L],Q=W.instance,me=W.currentTarget,W=W.listener,Q!==_&&S.isPropagationStopped())break e;fg(S,W,me),_=Q}}}if(Ha)throw a=Ao,Ha=!1,Ao=null,a}function Tn(a,o){var d=o[Nh];d===void 0&&(d=o[Nh]=new Set);var g=a+"__bubble";d.has(g)||(bh(o,a,2,!1),d.add(g))}function Gc(a,o,d){var g=0;o&&(g|=4),bh(d,a,g,o)}var zo="_reactListening"+Math.random().toString(36).slice(2);function ao(a){if(!a[zo]){a[zo]=!0,l.forEach(function(d){d!=="selectionchange"&&(mx.has(d)||Gc(d,!1,a),Gc(d,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[zo]||(o[zo]=!0,Gc("selectionchange",!1,o))}}function bh(a,o,d,g){switch(Oc(o)){case 1:var S=ko;break;case 4:S=hu;break;default:S=ro}d=S.bind(null,o,d,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),g?S!==void 0?a.addEventListener(o,d,{capture:!0,passive:S}):a.addEventListener(o,d,!0):S!==void 0?a.addEventListener(o,d,{passive:S}):a.addEventListener(o,d,!1)}function xh(a,o,d,g,S){var _=g;if(!(o&1)&&!(o&2)&&g!==null)e:for(;;){if(g===null)return;var L=g.tag;if(L===3||L===4){var W=g.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(L===4)for(L=g.return;L!==null;){var Q=L.tag;if((Q===3||Q===4)&&(Q=L.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;L=L.return}for(;W!==null;){if(L=Uo(W),L===null)return;if(Q=L.tag,Q===5||Q===6){g=_=L;continue e}W=W.parentNode}}g=g.return}ms(function(){var me=_,Me=Yr(d),Fe=[];e:{var De=cg.get(a);if(De!==void 0){var qe=_t,rt=a;switch(a){case"keypress":if(fe(d)===0)break e;case"keydown":case"keyup":qe=Po;break;case"focusin":rt="focus",qe=kc;break;case"focusout":rt="blur",qe=kc;break;case"beforeblur":case"afterblur":qe=kc;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":qe=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=gu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=dh;break;case qr:case yh:case lg:qe=Mc;break;case ug:qe=af;break;case"scroll":qe=fn;break;case"wheel":qe=wa;break;case"copy":case"cut":case"paste":qe=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=rf}var lt=(o&4)!==0,dr=!lt&&a==="scroll",oe=lt?De!==null?De+"Capture":null:De;lt=[];for(var ee=me,ce;ee!==null;){ce=ee;var $e=ce.stateNode;if(ce.tag===5&&$e!==null&&(ce=$e,oe!==null&&($e=Mi(ee,oe),$e!=null&&lt.push(Cu(ee,$e,ce)))),dr)break;ee=ee.return}0<lt.length&&(De=new qe(De,rt,null,d,Me),Fe.push({event:De,listeners:lt}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",qe=a==="mouseout"||a==="pointerout",De&&d!==Gn&&(rt=d.relatedTarget||d.fromElement)&&(Uo(rt)||rt[zi]))break e;if((qe||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,qe?(rt=d.relatedTarget||d.toElement,qe=me,rt=rt?Uo(rt):null,rt!==null&&(dr=Ye(rt),rt!==dr||rt.tag!==5&&rt.tag!==6)&&(rt=null)):(qe=null,rt=me),qe!==rt)){if(lt=Zt,$e="onMouseLeave",oe="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(lt=rf,$e="onPointerLeave",oe="onPointerEnter",ee="pointer"),dr=qe==null?De:Su(qe),ce=rt==null?De:Su(rt),De=new lt($e,ee+"leave",qe,d,Me),De.target=dr,De.relatedTarget=ce,$e=null,Uo(Me)===me&&(lt=new lt(oe,ee+"enter",rt,d,Me),lt.target=ce,lt.relatedTarget=dr,$e=lt),dr=$e,qe&&rt)t:{for(lt=qe,oe=rt,ee=0,ce=lt;ce;ce=ml(ce))ee++;for(ce=0,$e=oe;$e;$e=ml($e))ce++;for(;0<ee-ce;)lt=ml(lt),ee--;for(;0<ce-ee;)oe=ml(oe),ce--;for(;ee--;){if(lt===oe||oe!==null&&lt===oe.alternate)break t;lt=ml(lt),oe=ml(oe)}lt=null}else lt=null;qe!==null&&Ch(Fe,De,qe,lt,!1),rt!==null&&dr!==null&&Ch(Fe,dr,rt,lt,!0)}}e:{if(De=me?Su(me):window,qe=De.nodeName&&De.nodeName.toLowerCase(),qe==="select"||qe==="input"&&De.type==="file")var ct=hh;else if(ph(De))if(vh)ct=hx;else{ct=fx;var Ct=dx}else(qe=De.nodeName)&&qe.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(ct=px);if(ct&&(ct=ct(a,me))){qm(Fe,ct,d,Me);break e}Ct&&Ct(a,De,me),a==="focusout"&&(Ct=De._wrapperState)&&Ct.controlled&&De.type==="number"&&In(De,"number",De.value)}switch(Ct=me?Su(me):window,a){case"focusin":(ph(Ct)||Ct.contentEditable==="true")&&(vl=Ct,Rs=me,zc=null);break;case"focusout":zc=Rs=vl=null;break;case"mousedown":gh=!0;break;case"contextmenu":case"mouseup":case"dragend":gh=!1,og(Fe,d,Me);break;case"selectionchange":if(sf)break;case"keydown":case"keyup":og(Fe,d,Me)}var at;if(Kn)e:{switch(a){case"compositionstart":var Et="onCompositionStart";break e;case"compositionend":Et="onCompositionEnd";break e;case"compositionupdate":Et="onCompositionUpdate";break e}Et=void 0}else ws?Ym(a,d)&&(Et="onCompositionEnd"):a==="keydown"&&d.keyCode===229&&(Et="onCompositionStart");Et&&(Pc&&d.locale!=="ko"&&(ws||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&ws&&(at=q()):(Vi=Me,mu="value"in Vi?Vi.value:Vi.textContent,ws=!0)),Ct=df(me,Et),0<Ct.length&&(Et=new $m(Et,a,null,d,Me),Fe.push({event:Et,listeners:Ct}),at?Et.data=at:(at=Zm(d),at!==null&&(Et.data=at)))),(at=fh?lx(a,d):ux(a,d))&&(me=df(me,"onBeforeInput"),0<me.length&&(Me=new $m("onBeforeInput","beforeinput",null,d,Me),Fe.push({event:Me,listeners:me}),Me.data=at))}pg(Fe,o)})}function Cu(a,o,d){return{instance:a,listener:o,currentTarget:d}}function df(a,o){for(var d=o+"Capture",g=[];a!==null;){var S=a,_=S.stateNode;S.tag===5&&_!==null&&(S=_,_=Mi(a,d),_!=null&&g.unshift(Cu(a,_,S)),_=Mi(a,o),_!=null&&g.push(Cu(a,_,S))),a=a.return}return g}function ml(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function Ch(a,o,d,g,S){for(var _=o._reactName,L=[];d!==null&&d!==g;){var W=d,Q=W.alternate,me=W.stateNode;if(Q!==null&&Q===g)break;W.tag===5&&me!==null&&(W=me,S?(Q=Mi(d,_),Q!=null&&L.unshift(Cu(d,Q,W))):S||(Q=Mi(d,_),Q!=null&&L.push(Cu(d,Q,W)))),d=d.return}L.length!==0&&a.push({event:o,listeners:L})}var hg=/\r\n?/g,Sh=/\u0000|\uFFFD/g;function vg(a){return(typeof a=="string"?a:""+a).replace(hg,`
94
+ `).replace(Sh,"")}function Wc(a,o,d){if(o=vg(o),vg(a)!==o&&d)throw Error(i(425))}function ff(){}var Eh=null,wh=null;function gl(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Xc=typeof setTimeout=="function"?setTimeout:void 0,Yc=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=typeof Promise=="function"?Promise:void 0,mg=typeof queueMicrotask=="function"?queueMicrotask:typeof Rh<"u"?function(a){return Rh.resolve(null).then(a).catch(_h)}:Xc;function _h(a){setTimeout(function(){throw a})}function Th(a,o){var d=o,g=0;do{var S=d.nextSibling;if(a.removeChild(d),S&&S.nodeType===8)if(d=S.data,d==="/$"){if(g===0){a.removeChild(S),li(o);return}g--}else d!=="$"&&d!=="$?"&&d!=="$!"||g++;d=S}while(d);li(o)}function Wa(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Zc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var d=a.data;if(d==="$"||d==="$!"||d==="$?"){if(o===0)return a;o--}else d==="/$"&&o++}a=a.previousSibling}return null}var $o=Math.random().toString(36).slice(2),ui="__reactFiber$"+$o,qc="__reactProps$"+$o,zi="__reactContainer$"+$o,Nh="__reactEvents$"+$o,gx="__reactListeners$"+$o,yx="__reactHandles$"+$o;function Uo(a){var o=a[ui];if(o)return o;for(var d=a.parentNode;d;){if(o=d[zi]||d[ui]){if(d=o.alternate,o.child!==null||d!==null&&d.child!==null)for(a=Zc(a);a!==null;){if(d=a[ui])return d;a=Zc(a)}return o}a=d,d=a.parentNode}return null}function io(a){return a=a[ui]||a[zi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Su(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function pf(a){return a[qc]||null}var mt=[],$i=-1;function Nn(a){return{current:a}}function ut(a){0>$i||(a.current=mt[$i],mt[$i]=null,$i--)}function nn(a,o){$i++,mt[$i]=a.current,a.current=o}var ci={},Ar=Nn(ci),At=Nn(!1),aa=ci;function Xa(a,o){var d=a.type.contextTypes;if(!d)return ci;var g=a.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===o)return g.__reactInternalMemoizedMaskedChildContext;var S={},_;for(_ in d)S[_]=o[_];return g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function vr(a){return a=a.childContextTypes,a!=null}function Ra(){ut(At),ut(Ar)}function oo(a,o,d){if(Ar.current!==ci)throw Error(i(168));nn(Ar,o),nn(At,d)}function Ts(a,o,d){var g=a.stateNode;if(o=o.childContextTypes,typeof g.getChildContext!="function")return d;g=g.getChildContext();for(var S in g)if(!(S in o))throw Error(i(108,ue(a)||"Unknown",S));return G({},d,g)}function yl(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ci,aa=Ar.current,nn(Ar,a),nn(At,At.current),!0}function gg(a,o,d){var g=a.stateNode;if(!g)throw Error(i(169));d?(a=Ts(a,o,aa),g.__reactInternalMemoizedMergedChildContext=a,ut(At),ut(Ar),nn(Ar,a)):ut(At),nn(At,d)}var Ho=null,Ns=!1,Pr=!1;function hf(a){Ho===null?Ho=[a]:Ho.push(a)}function yg(a){Ns=!0,hf(a)}function so(){if(!Pr&&Ho!==null){Pr=!0;var a=0,o=Ut;try{var d=Ho;for(Ut=1;a<d.length;a++){var g=d[a];do g=g(!0);while(g!==null)}Ho=null,Ns=!1}catch(S){throw Ho!==null&&(Ho=Ho.slice(a+1)),jn(Sc,so),S}finally{Ut=o,Pr=!1}}return null}var di=[],Is=0,fi=null,bl=0,_a=[],Ta=0,Ui=null,Na=1,Fr="";function xl(a,o){di[Is++]=bl,di[Is++]=fi,fi=a,bl=o}function As(a,o,d){_a[Ta++]=Na,_a[Ta++]=Fr,_a[Ta++]=Ui,Ui=a;var g=Na;a=Fr;var S=32-ra(g)-1;g&=~(1<<S),d+=1;var _=32-ra(o)+S;if(30<_){var L=S-S%5;_=(g&(1<<L)-1).toString(32),g>>=L,S-=L,Na=1<<32-ra(o)+S|d<<S|g,Fr=_+a}else Na=1<<_|d<<S|g,Fr=a}function vf(a){a.return!==null&&(xl(a,1),As(a,1,0))}function mf(a){for(;a===fi;)fi=di[--Is],di[Is]=null,bl=di[--Is],di[Is]=null;for(;a===Ui;)Ui=_a[--Ta],_a[Ta]=null,Fr=_a[--Ta],_a[Ta]=null,Na=_a[--Ta],_a[Ta]=null}var Ya=null,Za=null,Bn=!1,pi=null;function Ih(a,o){var d=Ci(5,null,null,0);d.elementType="DELETED",d.stateNode=o,d.return=a,o=a.deletions,o===null?(a.deletions=[d],a.flags|=16):o.push(d)}function Ah(a,o){switch(a.tag){case 5:var d=a.type;return o=o.nodeType!==1||d.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,Ya=a,Za=Wa(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Ya=a,Za=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(d=Ui!==null?{id:Na,overflow:Fr}:null,a.memoizedState={dehydrated:o,treeContext:d,retryLane:1073741824},d=Ci(18,null,null,0),d.stateNode=o,d.return=a,a.child=d,Ya=a,Za=null,!0):!1;default:return!1}}function jh(a){return(a.mode&1)!==0&&(a.flags&128)===0}function gf(a){if(Bn){var o=Za;if(o){var d=o;if(!Ah(a,o)){if(jh(a))throw Error(i(418));o=Wa(d.nextSibling);var g=Ya;o&&Ah(a,o)?Ih(g,d):(a.flags=a.flags&-4097|2,Bn=!1,Ya=a)}}else{if(jh(a))throw Error(i(418));a.flags=a.flags&-4097|2,Bn=!1,Ya=a}}}function Oh(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Ya=a}function yf(a){if(a!==Ya)return!1;if(!Bn)return Oh(a),Bn=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!gl(a.type,a.memoizedProps)),o&&(o=Za)){if(jh(a))throw bg(),Error(i(418));for(;o;)Ih(a,o),o=Wa(o.nextSibling)}if(Oh(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var d=a.data;if(d==="/$"){if(o===0){Za=Wa(a.nextSibling);break e}o--}else d!=="$"&&d!=="$!"&&d!=="$?"||o++}a=a.nextSibling}Za=null}}else Za=Ya?Wa(a.stateNode.nextSibling):null;return!0}function bg(){for(var a=Za;a;)a=Wa(a.nextSibling)}function Eu(){Za=Ya=null,Bn=!1}function mr(a){pi===null?pi=[a]:pi.push(a)}var bx=U.ReactCurrentBatchConfig;function Ia(a,o){if(a&&a.defaultProps){o=G({},o),a=a.defaultProps;for(var d in a)o[d]===void 0&&(o[d]=a[d]);return o}return o}var wu=Nn(null),lo=null,Ru=null,Jc=null;function Dh(){Jc=Ru=lo=null}function kh(a){var o=wu.current;ut(wu),a._currentValue=o}function js(a,o,d){for(;a!==null;){var g=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,g!==null&&(g.childLanes|=o)):g!==null&&(g.childLanes&o)!==o&&(g.childLanes|=o),a===d)break;a=a.return}}function or(a,o){lo=a,Jc=Ru=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Oa=!0),a.firstContext=null)}function Ue(a){var o=a._currentValue;if(Jc!==a)if(a={context:a,memoizedValue:o,next:null},Ru===null){if(lo===null)throw Error(i(308));Ru=a,lo.dependencies={lanes:0,firstContext:a}}else Ru=Ru.next=a;return o}var Jr=null;function qa(a){Jr===null?Jr=[a]:Jr.push(a)}function xg(a,o,d,g){var S=o.interleaved;return S===null?(d.next=d,qa(o)):(d.next=S.next,S.next=d),o.interleaved=d,Go(a,g)}function Go(a,o){a.lanes|=o;var d=a.alternate;for(d!==null&&(d.lanes|=o),d=a,a=a.return;a!==null;)a.childLanes|=o,d=a.alternate,d!==null&&(d.childLanes|=o),d=a,a=a.return;return d.tag===3?d.stateNode:null}var Os=!1;function Mh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cg(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function kn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function Ds(a,o,d){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,zt&2){var S=g.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),g.pending=o,Go(a,d)}return S=g.interleaved,S===null?(o.next=o,qa(g)):(o.next=S.next,S.next=o),g.interleaved=o,Go(a,d)}function bf(a,o,d){if(o=o.updateQueue,o!==null&&(o=o.shared,(d&4194240)!==0)){var g=o.lanes;g&=a.pendingLanes,d|=g,o.lanes=d,Nc(a,d)}}function Sg(a,o){var d=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,d===g)){var S=null,_=null;if(d=d.firstBaseUpdate,d!==null){do{var L={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};_===null?S=_=L:_=_.next=L,d=d.next}while(d!==null);_===null?S=_=o:_=_.next=o}else S=_=o;d={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:_,shared:g.shared,effects:g.effects},a.updateQueue=d;return}a=d.lastBaseUpdate,a===null?d.firstBaseUpdate=o:a.next=o,d.lastBaseUpdate=o}function Qc(a,o,d,g){var S=a.updateQueue;Os=!1;var _=S.firstBaseUpdate,L=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,me=Q.next;Q.next=null,L===null?_=me:L.next=me,L=Q;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,W=Me.lastBaseUpdate,W!==L&&(W===null?Me.firstBaseUpdate=me:W.next=me,Me.lastBaseUpdate=Q))}if(_!==null){var Fe=S.baseState;L=0,Me=me=Q=null,W=_;do{var De=W.lane,qe=W.eventTime;if((g&De)===De){Me!==null&&(Me=Me.next={eventTime:qe,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var rt=a,lt=W;switch(De=o,qe=d,lt.tag){case 1:if(rt=lt.payload,typeof rt=="function"){Fe=rt.call(qe,Fe,De);break e}Fe=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=lt.payload,De=typeof rt=="function"?rt.call(qe,Fe,De):rt,De==null)break e;Fe=G({},Fe,De);break e;case 2:Os=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,De=S.effects,De===null?S.effects=[W]:De.push(W))}else qe={eventTime:qe,lane:De,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Me===null?(me=Me=qe,Q=Fe):Me=Me.next=qe,L|=De;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;De=W,W=De.next,De.next=null,S.lastBaseUpdate=De,S.shared.pending=null}}while(!0);if(Me===null&&(Q=Fe),S.baseState=Q,S.firstBaseUpdate=me,S.lastBaseUpdate=Me,o=S.shared.interleaved,o!==null){S=o;do L|=S.lane,S=S.next;while(S!==o)}else _===null&&(S.shared.lanes=0);Ol|=L,a.lanes=L,a.memoizedState=Fe}}function _u(a,o,d){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var g=a[o],S=g.callback;if(S!==null){if(g.callback=null,g=d,typeof S!="function")throw Error(i(191,S));S.call(g)}}}var Cl=new t.Component().refs;function Lh(a,o,d,g){o=a.memoizedState,d=d(g,o),d=d==null?o:G({},o,d),a.memoizedState=d,a.lanes===0&&(a.updateQueue.baseState=d)}var xf={isMounted:function(a){return(a=a._reactInternals)?Ye(a)===a:!1},enqueueSetState:function(a,o,d){a=a._reactInternals;var g=Dr(),S=Zo(a),_=kn(g,S);_.payload=o,d!=null&&(_.callback=d),o=Ds(a,_,S),o!==null&&(Zn(o,a,S,g),bf(o,a,S))},enqueueReplaceState:function(a,o,d){a=a._reactInternals;var g=Dr(),S=Zo(a),_=kn(g,S);_.tag=1,_.payload=o,d!=null&&(_.callback=d),o=Ds(a,_,S),o!==null&&(Zn(o,a,S,g),bf(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var d=Dr(),g=Zo(a),S=kn(d,g);S.tag=2,o!=null&&(S.callback=o),o=Ds(a,S,g),o!==null&&(Zn(o,a,g,d),bf(o,a,g))}};function Eg(a,o,d,g,S,_,L){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,_,L):o.prototype&&o.prototype.isPureReactComponent?!bu(d,g)||!bu(S,_):!0}function wg(a,o,d){var g=!1,S=ci,_=o.contextType;return typeof _=="object"&&_!==null?_=Ue(_):(S=vr(o)?aa:Ar.current,g=o.contextTypes,_=(g=g!=null)?Xa(a,S):ci),o=new o(d,_),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=xf,a.stateNode=o,o._reactInternals=a,g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=_),o}function Rg(a,o,d,g){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(d,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(d,g),o.state!==a&&xf.enqueueReplaceState(o,o.state,null)}function Ph(a,o,d,g){var S=a.stateNode;S.props=d,S.state=a.memoizedState,S.refs=Cl,Mh(a);var _=o.contextType;typeof _=="object"&&_!==null?S.context=Ue(_):(_=vr(o)?aa:Ar.current,S.context=Xa(a,_)),S.state=a.memoizedState,_=o.getDerivedStateFromProps,typeof _=="function"&&(Lh(a,o,_,d),S.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(o=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),o!==S.state&&xf.enqueueReplaceState(S,S.state,null),Qc(a,d,S,g),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function Tu(a,o,d){if(a=d.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(i(309));var g=d.stateNode}if(!g)throw Error(i(147,a));var S=g,_=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===_?o.ref:(o=function(L){var W=S.refs;W===Cl&&(W=S.refs={}),L===null?delete W[_]:W[_]=L},o._stringRef=_,o)}if(typeof a!="string")throw Error(i(284));if(!d._owner)throw Error(i(290,a))}return a}function Kc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function _g(a){var o=a._init;return o(a._payload)}function Tg(a){function o(oe,ee){if(a){var ce=oe.deletions;ce===null?(oe.deletions=[ee],oe.flags|=16):ce.push(ee)}}function d(oe,ee){if(!a)return null;for(;ee!==null;)o(oe,ee),ee=ee.sibling;return null}function g(oe,ee){for(oe=new Map;ee!==null;)ee.key!==null?oe.set(ee.key,ee):oe.set(ee.index,ee),ee=ee.sibling;return oe}function S(oe,ee){return oe=zs(oe,ee),oe.index=0,oe.sibling=null,oe}function _(oe,ee,ce){return oe.index=ce,a?(ce=oe.alternate,ce!==null?(ce=ce.index,ce<ee?(oe.flags|=2,ee):ce):(oe.flags|=2,ee)):(oe.flags|=1048576,ee)}function L(oe){return a&&oe.alternate===null&&(oe.flags|=2),oe}function W(oe,ee,ce,$e){return ee===null||ee.tag!==6?(ee=tp(ce,oe.mode,$e),ee.return=oe,ee):(ee=S(ee,ce),ee.return=oe,ee)}function Q(oe,ee,ce,$e){var ct=ce.type;return ct===X?Me(oe,ee,ce.props.children,$e,ce.key):ee!==null&&(ee.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ae&&_g(ct)===ee.type)?($e=S(ee,ce.props),$e.ref=Tu(oe,ee,ce),$e.return=oe,$e):($e=Kf(ce.type,ce.key,ce.props,null,oe.mode,$e),$e.ref=Tu(oe,ee,ce),$e.return=oe,$e)}function me(oe,ee,ce,$e){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ce.containerInfo||ee.stateNode.implementation!==ce.implementation?(ee=yd(ce,oe.mode,$e),ee.return=oe,ee):(ee=S(ee,ce.children||[]),ee.return=oe,ee)}function Me(oe,ee,ce,$e,ct){return ee===null||ee.tag!==7?(ee=Ll(ce,oe.mode,$e,ct),ee.return=oe,ee):(ee=S(ee,ce),ee.return=oe,ee)}function Fe(oe,ee,ce){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=tp(""+ee,oe.mode,ce),ee.return=oe,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case F:return ce=Kf(ee.type,ee.key,ee.props,null,oe.mode,ce),ce.ref=Tu(oe,null,ee),ce.return=oe,ce;case z:return ee=yd(ee,oe.mode,ce),ee.return=oe,ee;case Ae:var $e=ee._init;return Fe(oe,$e(ee._payload),ce)}if(Vt(ee)||Oe(ee))return ee=Ll(ee,oe.mode,ce,null),ee.return=oe,ee;Kc(oe,ee)}return null}function De(oe,ee,ce,$e){var ct=ee!==null?ee.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number")return ct!==null?null:W(oe,ee,""+ce,$e);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case F:return ce.key===ct?Q(oe,ee,ce,$e):null;case z:return ce.key===ct?me(oe,ee,ce,$e):null;case Ae:return ct=ce._init,De(oe,ee,ct(ce._payload),$e)}if(Vt(ce)||Oe(ce))return ct!==null?null:Me(oe,ee,ce,$e,null);Kc(oe,ce)}return null}function qe(oe,ee,ce,$e,ct){if(typeof $e=="string"&&$e!==""||typeof $e=="number")return oe=oe.get(ce)||null,W(ee,oe,""+$e,ct);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case F:return oe=oe.get($e.key===null?ce:$e.key)||null,Q(ee,oe,$e,ct);case z:return oe=oe.get($e.key===null?ce:$e.key)||null,me(ee,oe,$e,ct);case Ae:var Ct=$e._init;return qe(oe,ee,ce,Ct($e._payload),ct)}if(Vt($e)||Oe($e))return oe=oe.get(ce)||null,Me(ee,oe,$e,ct,null);Kc(ee,$e)}return null}function rt(oe,ee,ce,$e){for(var ct=null,Ct=null,at=ee,Et=ee=0,wr=null;at!==null&&Et<ce.length;Et++){at.index>Et?(wr=at,at=null):wr=at.sibling;var rn=De(oe,at,ce[Et],$e);if(rn===null){at===null&&(at=wr);break}a&&at&&rn.alternate===null&&o(oe,at),ee=_(rn,ee,Et),Ct===null?ct=rn:Ct.sibling=rn,Ct=rn,at=wr}if(Et===ce.length)return d(oe,at),Bn&&xl(oe,Et),ct;if(at===null){for(;Et<ce.length;Et++)at=Fe(oe,ce[Et],$e),at!==null&&(ee=_(at,ee,Et),Ct===null?ct=at:Ct.sibling=at,Ct=at);return Bn&&xl(oe,Et),ct}for(at=g(oe,at);Et<ce.length;Et++)wr=qe(at,oe,Et,ce[Et],$e),wr!==null&&(a&&wr.alternate!==null&&at.delete(wr.key===null?Et:wr.key),ee=_(wr,ee,Et),Ct===null?ct=wr:Ct.sibling=wr,Ct=wr);return a&&at.forEach(function(qo){return o(oe,qo)}),Bn&&xl(oe,Et),ct}function lt(oe,ee,ce,$e){var ct=Oe(ce);if(typeof ct!="function")throw Error(i(150));if(ce=ct.call(ce),ce==null)throw Error(i(151));for(var Ct=ct=null,at=ee,Et=ee=0,wr=null,rn=ce.next();at!==null&&!rn.done;Et++,rn=ce.next()){at.index>Et?(wr=at,at=null):wr=at.sibling;var qo=De(oe,at,rn.value,$e);if(qo===null){at===null&&(at=wr);break}a&&at&&qo.alternate===null&&o(oe,at),ee=_(qo,ee,Et),Ct===null?ct=qo:Ct.sibling=qo,Ct=qo,at=wr}if(rn.done)return d(oe,at),Bn&&xl(oe,Et),ct;if(at===null){for(;!rn.done;Et++,rn=ce.next())rn=Fe(oe,rn.value,$e),rn!==null&&(ee=_(rn,ee,Et),Ct===null?ct=rn:Ct.sibling=rn,Ct=rn);return Bn&&xl(oe,Et),ct}for(at=g(oe,at);!rn.done;Et++,rn=ce.next())rn=qe(at,oe,Et,rn.value,$e),rn!==null&&(a&&rn.alternate!==null&&at.delete(rn.key===null?Et:rn.key),ee=_(rn,ee,Et),Ct===null?ct=rn:Ct.sibling=rn,Ct=rn);return a&&at.forEach(function(Fx){return o(oe,Fx)}),Bn&&xl(oe,Et),ct}function dr(oe,ee,ce,$e){if(typeof ce=="object"&&ce!==null&&ce.type===X&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case F:e:{for(var ct=ce.key,Ct=ee;Ct!==null;){if(Ct.key===ct){if(ct=ce.type,ct===X){if(Ct.tag===7){d(oe,Ct.sibling),ee=S(Ct,ce.props.children),ee.return=oe,oe=ee;break e}}else if(Ct.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ae&&_g(ct)===Ct.type){d(oe,Ct.sibling),ee=S(Ct,ce.props),ee.ref=Tu(oe,Ct,ce),ee.return=oe,oe=ee;break e}d(oe,Ct);break}else o(oe,Ct);Ct=Ct.sibling}ce.type===X?(ee=Ll(ce.props.children,oe.mode,$e,ce.key),ee.return=oe,oe=ee):($e=Kf(ce.type,ce.key,ce.props,null,oe.mode,$e),$e.ref=Tu(oe,ee,ce),$e.return=oe,oe=$e)}return L(oe);case z:e:{for(Ct=ce.key;ee!==null;){if(ee.key===Ct)if(ee.tag===4&&ee.stateNode.containerInfo===ce.containerInfo&&ee.stateNode.implementation===ce.implementation){d(oe,ee.sibling),ee=S(ee,ce.children||[]),ee.return=oe,oe=ee;break e}else{d(oe,ee);break}else o(oe,ee);ee=ee.sibling}ee=yd(ce,oe.mode,$e),ee.return=oe,oe=ee}return L(oe);case Ae:return Ct=ce._init,dr(oe,ee,Ct(ce._payload),$e)}if(Vt(ce))return rt(oe,ee,ce,$e);if(Oe(ce))return lt(oe,ee,ce,$e);Kc(oe,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,ee!==null&&ee.tag===6?(d(oe,ee.sibling),ee=S(ee,ce),ee.return=oe,oe=ee):(d(oe,ee),ee=tp(ce,oe.mode,$e),ee.return=oe,oe=ee),L(oe)):d(oe,ee)}return dr}var Nu=Tg(!0),Ng=Tg(!1),ed={},uo=Nn(ed),Iu=Nn(ed),td=Nn(ed);function ks(a){if(a===ed)throw Error(i(174));return a}function Fh(a,o){switch(nn(td,o),nn(Iu,a),nn(uo,ed),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Pn(o,a)}ut(uo),nn(uo,o)}function Au(){ut(uo),ut(Iu),ut(td)}function Cf(a){ks(td.current);var o=ks(uo.current),d=Pn(o,a.type);o!==d&&(nn(Iu,a),nn(uo,d))}function gt(a){Iu.current===a&&(ut(uo),ut(Iu))}var ft=Nn(0);function Kt(a){for(var o=a;o!==null;){if(o.tag===13){var d=o.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var er=[];function hi(){for(var a=0;a<er.length;a++)er[a]._workInProgressVersionPrimary=null;er.length=0}var nd=U.ReactCurrentDispatcher,Vh=U.ReactCurrentBatchConfig,Sl=0,Yn=null,sr=null,_e=null,lr=!1,xt=!1,co=0,Wo=0;function tr(){throw Error(i(321))}function mi(a,o){if(o===null)return!1;for(var d=0;d<o.length&&d<a.length;d++)if(!Bi(a[d],o[d]))return!1;return!0}function El(a,o,d,g,S,_){if(Sl=_,Yn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,nd.current=a===null||a.memoizedState===null?xx:Cx,a=d(g,S),xt){_=0;do{if(xt=!1,co=0,25<=_)throw Error(i(301));_+=1,_e=sr=null,o.updateQueue=null,nd.current=Sx,a=d(g,S)}while(xt)}if(nd.current=Mf,o=sr!==null&&sr.next!==null,Sl=0,_e=sr=Yn=null,lr=!1,o)throw Error(i(300));return a}function Ms(){var a=co!==0;return co=0,a}function Aa(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?Yn.memoizedState=_e=a:_e=_e.next=a,_e}function ja(){if(sr===null){var a=Yn.alternate;a=a!==null?a.memoizedState:null}else a=sr.next;var o=_e===null?Yn.memoizedState:_e.next;if(o!==null)_e=o,sr=a;else{if(a===null)throw Error(i(310));sr=a,a={memoizedState:sr.memoizedState,baseState:sr.baseState,baseQueue:sr.baseQueue,queue:sr.queue,next:null},_e===null?Yn.memoizedState=_e=a:_e=_e.next=a}return _e}function wl(a,o){return typeof o=="function"?o(a):o}function rd(a){var o=ja(),d=o.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=a;var g=sr,S=g.baseQueue,_=d.pending;if(_!==null){if(S!==null){var L=S.next;S.next=_.next,_.next=L}g.baseQueue=S=_,d.pending=null}if(S!==null){_=S.next,g=g.baseState;var W=L=null,Q=null,me=_;do{var Me=me.lane;if((Sl&Me)===Me)Q!==null&&(Q=Q.next={lane:0,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null}),g=me.hasEagerState?me.eagerState:a(g,me.action);else{var Fe={lane:Me,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};Q===null?(W=Q=Fe,L=g):Q=Q.next=Fe,Yn.lanes|=Me,Ol|=Me}me=me.next}while(me!==null&&me!==_);Q===null?L=g:Q.next=W,Bi(g,o.memoizedState)||(Oa=!0),o.memoizedState=g,o.baseState=L,o.baseQueue=Q,d.lastRenderedState=g}if(a=d.interleaved,a!==null){S=a;do _=S.lane,Yn.lanes|=_,Ol|=_,S=S.next;while(S!==a)}else S===null&&(d.lanes=0);return[o.memoizedState,d.dispatch]}function ad(a){var o=ja(),d=o.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=a;var g=d.dispatch,S=d.pending,_=o.memoizedState;if(S!==null){d.pending=null;var L=S=S.next;do _=a(_,L.action),L=L.next;while(L!==S);Bi(_,o.memoizedState)||(Oa=!0),o.memoizedState=_,o.baseQueue===null&&(o.baseState=_),d.lastRenderedState=_}return[_,g]}function Sf(){}function Ef(a,o){var d=Yn,g=ja(),S=o(),_=!Bi(g.memoizedState,S);if(_&&(g.memoizedState=S,Oa=!0),g=g.queue,id(_f.bind(null,d,g,a),[a]),g.getSnapshot!==o||_||_e!==null&&_e.memoizedState.tag&1){if(d.flags|=2048,Rl(9,Rf.bind(null,d,g,S,o),void 0,null),rr===null)throw Error(i(349));Sl&30||wf(d,o,S)}return S}function wf(a,o,d){a.flags|=16384,a={getSnapshot:o,value:d},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.stores=[a]):(d=o.stores,d===null?o.stores=[a]:d.push(a))}function Rf(a,o,d,g){o.value=d,o.getSnapshot=g,Tf(o)&&Nf(a)}function _f(a,o,d){return d(function(){Tf(o)&&Nf(a)})}function Tf(a){var o=a.getSnapshot;a=a.value;try{var d=o();return!Bi(a,d)}catch{return!0}}function Nf(a){var o=Go(a,1);o!==null&&Zn(o,a,1,-1)}function If(a){var o=Aa();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:a},o.queue=a,a=a.dispatch=kf.bind(null,Yn,a),[o.memoizedState,a]}function Rl(a,o,d,g){return a={tag:a,create:o,destroy:d,deps:g,next:null},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.lastEffect=a.next=a):(d=o.lastEffect,d===null?o.lastEffect=a.next=a:(g=d.next,d.next=a,a.next=g,o.lastEffect=a)),a}function Af(){return ja().memoizedState}function ju(a,o,d,g){var S=Aa();Yn.flags|=a,S.memoizedState=Rl(1|o,d,void 0,g===void 0?null:g)}function _l(a,o,d,g){var S=ja();g=g===void 0?null:g;var _=void 0;if(sr!==null){var L=sr.memoizedState;if(_=L.destroy,g!==null&&mi(g,L.deps)){S.memoizedState=Rl(o,d,_,g);return}}Yn.flags|=a,S.memoizedState=Rl(1|o,d,_,g)}function Tl(a,o){return ju(8390656,8,a,o)}function id(a,o){return _l(2048,8,a,o)}function jf(a,o){return _l(4,2,a,o)}function Of(a,o){return _l(4,4,a,o)}function Df(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function Bh(a,o,d){return d=d!=null?d.concat([a]):null,_l(4,4,Df.bind(null,o,a),d)}function Nl(){}function zh(a,o){var d=ja();o=o===void 0?null:o;var g=d.memoizedState;return g!==null&&o!==null&&mi(o,g[1])?g[0]:(d.memoizedState=[a,o],a)}function Ou(a,o){var d=ja();o=o===void 0?null:o;var g=d.memoizedState;return g!==null&&o!==null&&mi(o,g[1])?g[0]:(a=a(),d.memoizedState=[a,o],a)}function Ls(a,o,d){return Sl&21?(Bi(d,o)||(d=ul(),Yn.lanes|=d,Ol|=d,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Oa=!0),a.memoizedState=d)}function Ja(a,o){var d=Ut;Ut=d!==0&&4>d?d:4,a(!0);var g=Vh.transition;Vh.transition={};try{a(!1),o()}finally{Ut=d,Vh.transition=g}}function Ig(){return ja().memoizedState}function Mn(a,o,d){var g=Zo(a);if(d={lane:g,action:d,hasEagerState:!1,eagerState:null,next:null},od(a))Du(o,d);else if(d=xg(a,o,d,g),d!==null){var S=Dr();Zn(d,a,g,S),sd(d,o,g)}}function kf(a,o,d){var g=Zo(a),S={lane:g,action:d,hasEagerState:!1,eagerState:null,next:null};if(od(a))Du(o,S);else{var _=a.alternate;if(a.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var L=o.lastRenderedState,W=_(L,d);if(S.hasEagerState=!0,S.eagerState=W,Bi(W,L)){var Q=o.interleaved;Q===null?(S.next=S,qa(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}d=xg(a,o,S,g),d!==null&&(S=Dr(),Zn(d,a,g,S),sd(d,o,g))}}function od(a){var o=a.alternate;return a===Yn||o!==null&&o===Yn}function Du(a,o){xt=lr=!0;var d=a.pending;d===null?o.next=o:(o.next=d.next,d.next=o),a.pending=o}function sd(a,o,d){if(d&4194240){var g=o.lanes;g&=a.pendingLanes,d|=g,o.lanes=d,Nc(a,d)}}var Mf={readContext:Ue,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useInsertionEffect:tr,useLayoutEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useMutableSource:tr,useSyncExternalStore:tr,useId:tr,unstable_isNewReconciler:!1},xx={readContext:Ue,useCallback:function(a,o){return Aa().memoizedState=[a,o===void 0?null:o],a},useContext:Ue,useEffect:Tl,useImperativeHandle:function(a,o,d){return d=d!=null?d.concat([a]):null,ju(4194308,4,Df.bind(null,o,a),d)},useLayoutEffect:function(a,o){return ju(4194308,4,a,o)},useInsertionEffect:function(a,o){return ju(4,2,a,o)},useMemo:function(a,o){var d=Aa();return o=o===void 0?null:o,a=a(),d.memoizedState=[a,o],a},useReducer:function(a,o,d){var g=Aa();return o=d!==void 0?d(o):o,g.memoizedState=g.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},g.queue=a,a=a.dispatch=Mn.bind(null,Yn,a),[g.memoizedState,a]},useRef:function(a){var o=Aa();return a={current:a},o.memoizedState=a},useState:If,useDebugValue:Nl,useDeferredValue:function(a){return Aa().memoizedState=a},useTransition:function(){var a=If(!1),o=a[0];return a=Ja.bind(null,a[1]),Aa().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,d){var g=Yn,S=Aa();if(Bn){if(d===void 0)throw Error(i(407));d=d()}else{if(d=o(),rr===null)throw Error(i(349));Sl&30||wf(g,o,d)}S.memoizedState=d;var _={value:d,getSnapshot:o};return S.queue=_,Tl(_f.bind(null,g,_,a),[a]),g.flags|=2048,Rl(9,Rf.bind(null,g,_,d,o),void 0,null),d},useId:function(){var a=Aa(),o=rr.identifierPrefix;if(Bn){var d=Fr,g=Na;d=(g&~(1<<32-ra(g)-1)).toString(32)+d,o=":"+o+"R"+d,d=co++,0<d&&(o+="H"+d.toString(32)),o+=":"}else d=Wo++,o=":"+o+"r"+d.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},Cx={readContext:Ue,useCallback:zh,useContext:Ue,useEffect:id,useImperativeHandle:Bh,useInsertionEffect:jf,useLayoutEffect:Of,useMemo:Ou,useReducer:rd,useRef:Af,useState:function(){return rd(wl)},useDebugValue:Nl,useDeferredValue:function(a){var o=ja();return Ls(o,sr.memoizedState,a)},useTransition:function(){var a=rd(wl)[0],o=ja().memoizedState;return[a,o]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:Ig,unstable_isNewReconciler:!1},Sx={readContext:Ue,useCallback:zh,useContext:Ue,useEffect:id,useImperativeHandle:Bh,useInsertionEffect:jf,useLayoutEffect:Of,useMemo:Ou,useReducer:ad,useRef:Af,useState:function(){return ad(wl)},useDebugValue:Nl,useDeferredValue:function(a){var o=ja();return sr===null?o.memoizedState=a:Ls(o,sr.memoizedState,a)},useTransition:function(){var a=ad(wl)[0],o=ja().memoizedState;return[a,o]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:Ig,unstable_isNewReconciler:!1};function Ps(a,o){try{var d="",g=o;do d+=Te(g),g=g.return;while(g);var S=d}catch(_){S=`
95
95
  Error generating stack: `+_.message+`
96
- `+_.stack}return{value:a,source:o,stack:S,digest:null}}function $h(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function ld(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var Ag=typeof WeakMap=="function"?WeakMap:Map;function jg(a,o,f){f=kn(-1,f),f.tag=3,f.payload={element:null};var g=o.value;return f.callback=function(){Xf||(Xf=!0,Jh=g),ld(a,o)},f}function Og(a,o,f){f=kn(-1,f),f.tag=3;var g=a.type.getDerivedStateFromError;if(typeof g=="function"){var S=o.value;f.payload=function(){return g(S)},f.callback=function(){ld(a,o)}}var _=a.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(f.callback=function(){ld(a,o),typeof g!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var L=o.stack;this.componentDidCatch(o.value,{componentStack:L!==null?L:""})}),f}function ud(a,o,f){var g=a.pingCache;if(g===null){g=a.pingCache=new Ag;var S=new Set;g.set(o,S)}else S=g.get(o),S===void 0&&(S=new Set,g.set(o,S));S.has(f)||(S.add(f),a=Ox.bind(null,a,o,f),o.then(a,a))}function Dg(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function Uh(a,o,f,g,S){return a.mode&1?(a.flags|=65536,a.lanes=S,a):(a===o?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(o=kn(-1,1),o.tag=2,Ds(f,o,1))),f.lanes|=1),a)}var kg=U.ReactCurrentOwner,Oa=!1;function ur(a,o,f,g){o.child=a===null?Ng(o,null,f,g):Nu(o,a.child,f,g)}function ku(a,o,f,g,S){f=f.render;var _=o.ref;return or(o,S),g=El(a,o,f,g,_,S),f=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&f&&vf(o),o.flags|=1,ur(a,o,g,S),o.child)}function Fs(a,o,f,g,S){if(a===null){var _=f.type;return typeof _=="function"&&!nv(_)&&_.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=_,Lf(a,o,_,g,S)):(a=Kf(f.type,null,g,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(_=a.child,!(a.lanes&S)){var L=_.memoizedProps;if(f=f.compare,f=f!==null?f:bu,f(L,g)&&a.ref===o.ref)return cr(a,o,S)}return o.flags|=1,a=zs(_,g),a.ref=o.ref,a.return=o,o.child=a}function Lf(a,o,f,g,S){if(a!==null){var _=a.memoizedProps;if(bu(_,g)&&a.ref===o.ref)if(Oa=!1,o.pendingProps=g=_,(a.lanes&S)!==0)a.flags&131072&&(Oa=!0);else return o.lanes=a.lanes,cr(a,o,S)}return Dt(a,o,f,g,S)}function Da(a,o,f){var g=o.pendingProps,S=g.children,_=a!==null?a.memoizedState:null;if(g.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},nn(Hu,ka),ka|=f;else{if(!(f&1073741824))return a=_!==null?_.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,nn(Hu,ka),ka|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=_!==null?_.baseLanes:f,nn(Hu,ka),ka|=g}else _!==null?(g=_.baseLanes|f,o.memoizedState=null):g=f,nn(Hu,ka),ka|=g;return ur(a,o,S,f),o.child}function Il(a,o){var f=o.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(o.flags|=512,o.flags|=2097152)}function Dt(a,o,f,g,S){var _=vr(f)?aa:Ar.current;return _=Xa(o,_),or(o,S),f=El(a,o,f,g,_,S),g=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&g&&vf(o),o.flags|=1,ur(a,o,f,S),o.child)}function cd(a,o,f,g,S){if(vr(f)){var _=!0;yl(o)}else _=!1;if(or(o,S),o.stateNode===null)fd(a,o),wg(o,f,g),Ph(o,f,g,S),g=!0;else if(a===null){var L=o.stateNode,W=o.memoizedProps;L.props=W;var Q=L.context,me=f.contextType;typeof me=="object"&&me!==null?me=Ue(me):(me=vr(f)?aa:Ar.current,me=Xa(o,me));var Me=f.getDerivedStateFromProps,Fe=typeof Me=="function"||typeof L.getSnapshotBeforeUpdate=="function";Fe||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(W!==g||Q!==me)&&Rg(o,L,g,me),Os=!1;var De=o.memoizedState;L.state=De,Qc(o,g,L,S),Q=o.memoizedState,W!==g||De!==Q||At.current||Os?(typeof Me=="function"&&(Lh(o,f,Me,g),Q=o.memoizedState),(W=Os||Eg(o,f,W,g,De,Q,me))?(Fe||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(o.flags|=4194308)):(typeof L.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=g,o.memoizedState=Q),L.props=g,L.state=Q,L.context=me,g=W):(typeof L.componentDidMount=="function"&&(o.flags|=4194308),g=!1)}else{L=o.stateNode,Cg(a,o),W=o.memoizedProps,me=o.type===o.elementType?W:Ia(o.type,W),L.props=me,Fe=o.pendingProps,De=L.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=Ue(Q):(Q=vr(f)?aa:Ar.current,Q=Xa(o,Q));var qe=f.getDerivedStateFromProps;(Me=typeof qe=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(W!==Fe||De!==Q)&&Rg(o,L,g,Q),Os=!1,De=o.memoizedState,L.state=De,Qc(o,g,L,S);var rt=o.memoizedState;W!==Fe||De!==rt||At.current||Os?(typeof qe=="function"&&(Lh(o,f,qe,g),rt=o.memoizedState),(me=Os||Eg(o,f,me,g,De,rt,Q)||!1)?(Me||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(g,rt,Q),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(g,rt,Q)),typeof L.componentDidUpdate=="function"&&(o.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof L.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=g,o.memoizedState=rt),L.props=g,L.state=rt,L.context=Q,g=me):(typeof L.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),g=!1)}return Pf(a,o,f,g,_,S)}function Pf(a,o,f,g,S,_){Il(a,o);var L=(o.flags&128)!==0;if(!g&&!L)return S&&gg(o,f,!1),cr(a,o,_);g=o.stateNode,kg.current=o;var W=L&&typeof f.getDerivedStateFromError!="function"?null:g.render();return o.flags|=1,a!==null&&L?(o.child=Nu(o,a.child,null,_),o.child=Nu(o,null,W,_)):ur(a,o,W,_),o.memoizedState=g.state,S&&gg(o,f,!0),o.child}function Ex(a){var o=a.stateNode;o.pendingContext?oo(a,o.pendingContext,o.pendingContext!==o.context):o.context&&oo(a,o.context,!1),Fh(a,o.containerInfo)}function Mg(a,o,f,g,S){return Eu(),mr(S),o.flags|=256,ur(a,o,f,g),o.child}var dd={dehydrated:null,treeContext:null,retryLane:0};function Al(a){return{baseLanes:a,cachePool:null,transitions:null}}function Lg(a,o,f){var g=o.pendingProps,S=ft.current,_=!1,L=(o.flags&128)!==0,W;if((W=L)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(_=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),nn(ft,S&1),a===null)return gf(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(L=g.children,a=g.fallback,_?(g=o.mode,_=o.child,L={mode:"hidden",children:L},!(g&1)&&_!==null?(_.childLanes=0,_.pendingProps=L):_=ep(L,g,0,null),a=Ll(a,g,f,null),_.return=o,a.return=o,_.sibling=a,o.child=_,o.child.memoizedState=Al(f),o.memoizedState=dd,a):Ff(o,L));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return Hh(a,o,L,g,W,S,f);if(_){_=g.fallback,L=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:g.children};return!(L&1)&&o.child!==S?(g=o.child,g.childLanes=0,g.pendingProps=Q,o.deletions=null):(g=zs(S,Q),g.subtreeFlags=S.subtreeFlags&14680064),W!==null?_=zs(W,_):(_=Ll(_,L,f,null),_.flags|=2),_.return=o,g.return=o,g.sibling=_,o.child=g,g=_,_=o.child,L=a.child.memoizedState,L=L===null?Al(f):{baseLanes:L.baseLanes|f,cachePool:null,transitions:L.transitions},_.memoizedState=L,_.childLanes=a.childLanes&~f,o.memoizedState=dd,g}return _=a.child,a=_.sibling,g=zs(_,{mode:"visible",children:g.children}),!(o.mode&1)&&(g.lanes=f),g.return=o,g.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=g,o.memoizedState=null,g}function Ff(a,o){return o=ep({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Vf(a,o,f,g){return g!==null&&mr(g),Nu(o,a.child,null,f),a=Ff(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Hh(a,o,f,g,S,_,L){if(f)return o.flags&256?(o.flags&=-257,g=$h(Error(i(422))),Vf(a,o,L,g)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(_=g.fallback,S=o.mode,g=ep({mode:"visible",children:g.children},S,0,null),_=Ll(_,S,L,null),_.flags|=2,g.return=o,_.return=o,g.sibling=_,o.child=g,o.mode&1&&Nu(o,a.child,null,L),o.child.memoizedState=Al(L),o.memoizedState=dd,_);if(!(o.mode&1))return Vf(a,o,L,null);if(S.data==="$!"){if(g=S.nextSibling&&S.nextSibling.dataset,g)var W=g.dgst;return g=W,_=Error(i(419)),g=$h(_,g,void 0),Vf(a,o,L,g)}if(W=(L&a.childLanes)!==0,Oa||W){if(g=rr,g!==null){switch(L&-L){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=S&(g.suspendedLanes|L)?0:S,S!==0&&S!==_.retryLane&&(_.retryLane=S,Go(a,S),Zn(g,a,S,-1))}return gd(),g=$h(Error(i(421))),Vf(a,o,L,g)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=tv.bind(null,a),S._reactRetry=o,null):(a=_.treeContext,Za=Wa(S.nextSibling),Ya=o,Bn=!0,pi=null,a!==null&&(_a[Ta++]=Na,_a[Ta++]=Fr,_a[Ta++]=Ui,Na=a.id,Fr=a.overflow,Ui=o),o=Ff(o,g.children),o.flags|=4096,o)}function Pg(a,o,f){a.lanes|=o;var g=a.alternate;g!==null&&(g.lanes|=o),js(a.return,o,f)}function Bf(a,o,f,g,S){var _=a.memoizedState;_===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:f,tailMode:S}:(_.isBackwards=o,_.rendering=null,_.renderingStartTime=0,_.last=g,_.tail=f,_.tailMode=S)}function Gh(a,o,f){var g=o.pendingProps,S=g.revealOrder,_=g.tail;if(ur(a,o,g.children,f),g=ft.current,g&2)g=g&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Pg(a,f,o);else if(a.tag===19)Pg(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}if(nn(ft,g),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&Kt(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),Bf(o,!1,S,f,_);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Kt(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}Bf(o,!0,f,null,_);break;case"together":Bf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function fd(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function cr(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Ol|=o.lanes,!(f&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,f=zs(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=zs(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Xo(a,o,f){switch(o.tag){case 3:Ex(o),Eu();break;case 5:Cf(o);break;case 1:vr(o.type)&&yl(o);break;case 4:Fh(o,o.stateNode.containerInfo);break;case 10:var g=o.type._context,S=o.memoizedProps.value;nn(wu,g._currentValue),g._currentValue=S;break;case 13:if(g=o.memoizedState,g!==null)return g.dehydrated!==null?(nn(ft,ft.current&1),o.flags|=128,null):f&o.child.childLanes?Lg(a,o,f):(nn(ft,ft.current&1),a=cr(a,o,f),a!==null?a.sibling:null);nn(ft,ft.current&1);break;case 19:if(g=(f&o.childLanes)!==0,a.flags&128){if(g)return Gh(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),nn(ft,ft.current),g)break;return null;case 22:case 23:return o.lanes=0,Da(a,o,f)}return cr(a,o,f)}var fo,Mu,Lu,gi;fo=function(a,o){for(var f=o.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===o)break;for(;f.sibling===null;){if(f.return===null||f.return===o)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},Mu=function(){},Lu=function(a,o,f,g){var S=a.memoizedProps;if(S!==g){a=o.stateNode,ks(uo.current);var _=null;switch(f){case"input":S=Rt(a,S),g=Rt(a,g),_=[];break;case"select":S=G({},S,{value:void 0}),g=G({},g,{value:void 0}),_=[];break;case"textarea":S=Qn(a,S),g=Qn(a,g),_=[];break;default:typeof S.onClick!="function"&&typeof g.onClick=="function"&&(a.onclick=ff)}tn(f,g);var L;f=null;for(me in S)if(!g.hasOwnProperty(me)&&S.hasOwnProperty(me)&&S[me]!=null)if(me==="style"){var W=S[me];for(L in W)W.hasOwnProperty(L)&&(f||(f={}),f[L]="")}else me!=="dangerouslySetInnerHTML"&&me!=="children"&&me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&me!=="autoFocus"&&(u.hasOwnProperty(me)?_||(_=[]):(_=_||[]).push(me,null));for(me in g){var Q=g[me];if(W=S!=null?S[me]:void 0,g.hasOwnProperty(me)&&Q!==W&&(Q!=null||W!=null))if(me==="style")if(W){for(L in W)!W.hasOwnProperty(L)||Q&&Q.hasOwnProperty(L)||(f||(f={}),f[L]="");for(L in Q)Q.hasOwnProperty(L)&&W[L]!==Q[L]&&(f||(f={}),f[L]=Q[L])}else f||(_||(_=[]),_.push(me,f)),f=Q;else me==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(_=_||[]).push(me,Q)):me==="children"?typeof Q!="string"&&typeof Q!="number"||(_=_||[]).push(me,""+Q):me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&(u.hasOwnProperty(me)?(Q!=null&&me==="onScroll"&&Tn("scroll",a),_||W===Q||(_=[])):(_=_||[]).push(me,Q))}f&&(_=_||[]).push("style",f);var me=_;(o.updateQueue=me)&&(o.flags|=4)}},gi=function(a,o,f,g){f!==g&&(o.flags|=4)};function nr(a,o){if(!Bn)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function Qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,g=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags&14680064,g|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=g,a.childLanes=f,o}function wx(a,o,f){var g=o.pendingProps;switch(mf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(o),null;case 1:return vr(o.type)&&Ra(),Qr(o),null;case 3:return g=o.stateNode,Au(),ut(At),ut(Ar),hi(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(yf(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(Qh(pi),pi=null))),Mu(a,o),Qr(o),null;case 5:gt(o);var S=ks(td.current);if(f=o.type,a!==null&&o.stateNode!=null)Lu(a,o,f,g,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!g){if(o.stateNode===null)throw Error(i(166));return Qr(o),null}if(a=ks(uo.current),yf(o)){g=o.stateNode,f=o.type;var _=o.memoizedProps;switch(g[ui]=o,g[qc]=_,a=(o.mode&1)!==0,f){case"dialog":Tn("cancel",g),Tn("close",g);break;case"iframe":case"object":case"embed":Tn("load",g);break;case"video":case"audio":for(S=0;S<Bo.length;S++)Tn(Bo[S],g);break;case"source":Tn("error",g);break;case"img":case"image":case"link":Tn("error",g),Tn("load",g);break;case"details":Tn("toggle",g);break;case"input":dt(g,_),Tn("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!_.multiple},Tn("invalid",g);break;case"textarea":Tr(g,_),Tn("invalid",g)}tn(f,_),S=null;for(var L in _)if(_.hasOwnProperty(L)){var W=_[L];L==="children"?typeof W=="string"?g.textContent!==W&&(_.suppressHydrationWarning!==!0&&Wc(g.textContent,W,a),S=["children",W]):typeof W=="number"&&g.textContent!==""+W&&(_.suppressHydrationWarning!==!0&&Wc(g.textContent,W,a),S=["children",""+W]):u.hasOwnProperty(L)&&W!=null&&L==="onScroll"&&Tn("scroll",g)}switch(f){case"input":tt(g),ln(g,_,!0);break;case"textarea":tt(g),Nr(g);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(g.onclick=ff)}g=S,o.updateQueue=g,g!==null&&(o.flags|=4)}else{L=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=St(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=L.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof g.is=="string"?a=L.createElement(f,{is:g.is}):(a=L.createElement(f),f==="select"&&(L=a,g.multiple?L.multiple=!0:g.size&&(L.size=g.size))):a=L.createElementNS(a,f),a[ui]=o,a[qc]=g,fo(a,o,!1,!1),o.stateNode=a;e:{switch(L=ir(f,g),f){case"dialog":Tn("cancel",a),Tn("close",a),S=g;break;case"iframe":case"object":case"embed":Tn("load",a),S=g;break;case"video":case"audio":for(S=0;S<Bo.length;S++)Tn(Bo[S],a);S=g;break;case"source":Tn("error",a),S=g;break;case"img":case"image":case"link":Tn("error",a),Tn("load",a),S=g;break;case"details":Tn("toggle",a),S=g;break;case"input":dt(a,g),S=Rt(a,g),Tn("invalid",a);break;case"option":S=g;break;case"select":a._wrapperState={wasMultiple:!!g.multiple},S=G({},g,{value:void 0}),Tn("invalid",a);break;case"textarea":Tr(a,g),S=Qn(a,g),Tn("invalid",a);break;default:S=g}tn(f,S),W=S;for(_ in W)if(W.hasOwnProperty(_)){var Q=W[_];_==="style"?Mt(a,Q):_==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&za(a,Q)):_==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&$a(a,Q):typeof Q=="number"&&$a(a,""+Q):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(u.hasOwnProperty(_)?Q!=null&&_==="onScroll"&&Tn("scroll",a):Q!=null&&V(a,_,Q,L))}switch(f){case"input":tt(a),ln(a,g,!1);break;case"textarea":tt(a),Nr(a);break;case"option":g.value!=null&&a.setAttribute("value",""+de(g.value));break;case"select":a.multiple=!!g.multiple,_=g.value,_!=null?Cn(a,!!g.multiple,_,!1):g.defaultValue!=null&&Cn(a,!!g.multiple,g.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=ff)}switch(f){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,g);else{if(typeof g!="string"&&o.stateNode===null)throw Error(i(166));if(f=ks(td.current),ks(uo.current),yf(o)){if(g=o.stateNode,f=o.memoizedProps,g[ui]=o,(_=g.nodeValue!==f)&&(a=Ya,a!==null))switch(a.tag){case 3:Wc(g.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Wc(g.nodeValue,f,(a.mode&1)!==0)}_&&(o.flags|=4)}else g=(f.nodeType===9?f:f.ownerDocument).createTextNode(g),g[ui]=o,o.stateNode=g}return Qr(o),null;case 13:if(ut(ft),g=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Za!==null&&o.mode&1&&!(o.flags&128))bg(),Eu(),o.flags|=98560,_=!1;else if(_=yf(o),g!==null&&g.dehydrated!==null){if(a===null){if(!_)throw Error(i(318));if(_=o.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(i(317));_[ui]=o}else Eu(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Qr(o),_=!1}else pi!==null&&(Qh(pi),pi=null),_=!0;if(!_)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(g=g!==null,g!==(a!==null&&a.memoizedState!==null)&&g&&(o.child.flags|=8192,o.mode&1&&(a===null||ft.current&1?Sr===0&&(Sr=3):gd())),o.updateQueue!==null&&(o.flags|=4),Qr(o),null);case 4:return Au(),Mu(a,o),a===null&&ao(o.stateNode.containerInfo),Qr(o),null;case 10:return kh(o.type._context),Qr(o),null;case 17:return vr(o.type)&&Ra(),Qr(o),null;case 19:if(ut(ft),_=o.memoizedState,_===null)return Qr(o),null;if(g=(o.flags&128)!==0,L=_.rendering,L===null)if(g)nr(_,!1);else{if(Sr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(L=Kt(a),L!==null){for(o.flags|=128,nr(_,!1),g=L.updateQueue,g!==null&&(o.updateQueue=g,o.flags|=4),o.subtreeFlags=0,g=f,f=o.child;f!==null;)_=f,a=g,_.flags&=14680066,L=_.alternate,L===null?(_.childLanes=0,_.lanes=a,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=L.childLanes,_.lanes=L.lanes,_.child=L.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=L.memoizedProps,_.memoizedState=L.memoizedState,_.updateQueue=L.updateQueue,_.type=L.type,a=L.dependencies,_.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return nn(ft,ft.current&1|2),o.child}a=a.sibling}_.tail!==null&&Dn()>Wu&&(o.flags|=128,g=!0,nr(_,!1),o.lanes=4194304)}else{if(!g)if(a=Kt(L),a!==null){if(o.flags|=128,g=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),nr(_,!0),_.tail===null&&_.tailMode==="hidden"&&!L.alternate&&!Bn)return Qr(o),null}else 2*Dn()-_.renderingStartTime>Wu&&f!==1073741824&&(o.flags|=128,g=!0,nr(_,!1),o.lanes=4194304);_.isBackwards?(L.sibling=o.child,o.child=L):(f=_.last,f!==null?f.sibling=L:o.child=L,_.last=L)}return _.tail!==null?(o=_.tail,_.rendering=o,_.tail=o.sibling,_.renderingStartTime=Dn(),o.sibling=null,f=ft.current,nn(ft,g?f&1|2:f&1),o):(Qr(o),null);case 22:case 23:return Jf(),g=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==g&&(o.flags|=8192),g&&o.mode&1?ka&1073741824&&(Qr(o),o.subtreeFlags&6&&(o.flags|=8192)):Qr(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function Rx(a,o){switch(mf(o),o.tag){case 1:return vr(o.type)&&Ra(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Au(),ut(At),ut(Ar),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return gt(o),null;case 13:if(ut(ft),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Eu()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return ut(ft),null;case 4:return Au(),null;case 10:return kh(o.type._context),null;case 22:case 23:return Jf(),null;case 24:return null;default:return null}}var Pu=!1,Vr=!1,zf=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Fu(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(g){ar(a,o,g)}else f.current=null}function Wh(a,o,f){try{f()}catch(g){ar(a,o,g)}}var $f=!1;function _x(a,o){if(Eh=pu,a=ig(),Bc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var g=f.getSelection&&f.getSelection();if(g&&g.rangeCount!==0){f=g.anchorNode;var S=g.anchorOffset,_=g.focusNode;g=g.focusOffset;try{f.nodeType,_.nodeType}catch{f=null;break e}var L=0,W=-1,Q=-1,me=0,Me=0,Fe=a,De=null;t:for(;;){for(var qe;Fe!==f||S!==0&&Fe.nodeType!==3||(W=L+S),Fe!==_||g!==0&&Fe.nodeType!==3||(Q=L+g),Fe.nodeType===3&&(L+=Fe.nodeValue.length),(qe=Fe.firstChild)!==null;)De=Fe,Fe=qe;for(;;){if(Fe===a)break t;if(De===f&&++me===S&&(W=L),De===_&&++Me===g&&(Q=L),(qe=Fe.nextSibling)!==null)break;Fe=De,De=Fe.parentNode}Fe=qe}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(wh={focusedElem:a,selectionRange:f},pu=!1,nt=o;nt!==null;)if(o=nt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,nt=a;else for(;nt!==null;){o=nt;try{var rt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(rt!==null){var lt=rt.memoizedProps,dr=rt.memoizedState,oe=o.stateNode,ee=oe.getSnapshotBeforeUpdate(o.elementType===o.type?lt:Ia(o.type,lt),dr);oe.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ce=o.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($e){ar(o,o.return,$e)}if(a=o.sibling,a!==null){a.return=o.return,nt=a;break}nt=o.return}return rt=$f,$f=!1,rt}function Vu(a,o,f){var g=o.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var S=g=g.next;do{if((S.tag&a)===a){var _=S.destroy;S.destroy=void 0,_!==void 0&&Wh(o,f,_)}S=S.next}while(S!==g)}}function Uf(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var f=o=o.next;do{if((f.tag&a)===a){var g=f.create;f.destroy=g()}f=f.next}while(f!==o)}}function Hf(a){var o=a.ref;if(o!==null){var f=a.stateNode;switch(a.tag){case 5:a=f;break;default:a=f}typeof o=="function"?o(a):o.current=a}}function Fg(a){var o=a.alternate;o!==null&&(a.alternate=null,Fg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[qc],delete o[Nh],delete o[gx],delete o[yx])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Xh(a){return a.tag===5||a.tag===3||a.tag===4}function Vg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Xh(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function pd(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.nodeType===8?f.parentNode.insertBefore(a,o):f.insertBefore(a,o):(f.nodeType===8?(o=f.parentNode,o.insertBefore(a,f)):(o=f,o.appendChild(a)),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=ff));else if(g!==4&&(a=a.child,a!==null))for(pd(a,o,f),a=a.sibling;a!==null;)pd(a,o,f),a=a.sibling}function Bu(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(g!==4&&(a=a.child,a!==null))for(Bu(a,o,f),a=a.sibling;a!==null;)Bu(a,o,f),a=a.sibling}var Un=null,jr=!1;function ia(a,o,f){for(f=f.child;f!==null;)zu(a,o,f),f=f.sibling}function zu(a,o,f){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(gs,f)}catch{}switch(f.tag){case 5:Vr||Fu(f,o);case 6:var g=Un,S=jr;Un=null,ia(a,o,f),Un=g,jr=S,Un!==null&&(jr?(a=Un,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Un.removeChild(f.stateNode));break;case 18:Un!==null&&(jr?(a=Un,f=f.stateNode,a.nodeType===8?Th(a.parentNode,f):a.nodeType===1&&Th(a,f),li(a)):Th(Un,f.stateNode));break;case 4:g=Un,S=jr,Un=f.stateNode.containerInfo,jr=!0,ia(a,o,f),Un=g,jr=S;break;case 0:case 11:case 14:case 15:if(!Vr&&(g=f.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){S=g=g.next;do{var _=S,L=_.destroy;_=_.tag,L!==void 0&&(_&2||_&4)&&Wh(f,o,L),S=S.next}while(S!==g)}ia(a,o,f);break;case 1:if(!Vr&&(Fu(f,o),g=f.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=f.memoizedProps,g.state=f.memoizedState,g.componentWillUnmount()}catch(W){ar(f,o,W)}ia(a,o,f);break;case 21:ia(a,o,f);break;case 22:f.mode&1?(Vr=(g=Vr)||f.memoizedState!==null,ia(a,o,f),Vr=g):ia(a,o,f);break;default:ia(a,o,f)}}function $u(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new zf),o.forEach(function(g){var S=Dx.bind(null,a,g);f.has(g)||(f.add(g),g.then(S,S))})}}function Or(a,o){var f=o.deletions;if(f!==null)for(var g=0;g<f.length;g++){var S=f[g];try{var _=a,L=o,W=L;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,jr=!1;break e;case 3:Un=W.stateNode.containerInfo,jr=!0;break e;case 4:Un=W.stateNode.containerInfo,jr=!0;break e}W=W.return}if(Un===null)throw Error(i(160));zu(_,L,S),Un=null,jr=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(me){ar(S,o,me)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Bg(o,a),o=o.sibling}function Bg(a,o){var f=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(o,a),po(a),g&4){try{Vu(3,a,a.return),Uf(3,a)}catch(lt){ar(a,a.return,lt)}try{Vu(5,a,a.return)}catch(lt){ar(a,a.return,lt)}}break;case 1:Or(o,a),po(a),g&512&&f!==null&&Fu(f,f.return);break;case 5:if(Or(o,a),po(a),g&512&&f!==null&&Fu(f,f.return),a.flags&32){var S=a.stateNode;try{$a(S,"")}catch(lt){ar(a,a.return,lt)}}if(g&4&&(S=a.stateNode,S!=null)){var _=a.memoizedProps,L=f!==null?f.memoizedProps:_,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&_.type==="radio"&&_.name!=null&&en(S,_),ir(W,L);var me=ir(W,_);for(L=0;L<Q.length;L+=2){var Me=Q[L],Fe=Q[L+1];Me==="style"?Mt(S,Fe):Me==="dangerouslySetInnerHTML"?za(S,Fe):Me==="children"?$a(S,Fe):V(S,Me,Fe,me)}switch(W){case"input":sn(S,_);break;case"textarea":Hn(S,_);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!_.multiple;var qe=_.value;qe!=null?Cn(S,!!_.multiple,qe,!1):De!==!!_.multiple&&(_.defaultValue!=null?Cn(S,!!_.multiple,_.defaultValue,!0):Cn(S,!!_.multiple,_.multiple?[]:"",!1))}S[qc]=_}catch(lt){ar(a,a.return,lt)}}break;case 6:if(Or(o,a),po(a),g&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,_=a.memoizedProps;try{S.nodeValue=_}catch(lt){ar(a,a.return,lt)}}break;case 3:if(Or(o,a),po(a),g&4&&f!==null&&f.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(lt){ar(a,a.return,lt)}break;case 4:Or(o,a),po(a);break;case 13:Or(o,a),po(a),S=a.child,S.flags&8192&&(_=S.memoizedState!==null,S.stateNode.isHidden=_,!_||S.alternate!==null&&S.alternate.memoizedState!==null||(Wf=Dn())),g&4&&$u(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Vr=(me=Vr)||Me,Or(o,a),Vr=me):Or(o,a),po(a),g&8192){if(me=a.memoizedState!==null,(a.stateNode.isHidden=me)&&!Me&&a.mode&1)for(nt=a,Me=a.child;Me!==null;){for(Fe=nt=Me;nt!==null;){switch(De=nt,qe=De.child,De.tag){case 0:case 11:case 14:case 15:Vu(4,De,De.return);break;case 1:Fu(De,De.return);var rt=De.stateNode;if(typeof rt.componentWillUnmount=="function"){g=De,f=De.return;try{o=g,rt.props=o.memoizedProps,rt.state=o.memoizedState,rt.componentWillUnmount()}catch(lt){ar(g,f,lt)}}break;case 5:Fu(De,De.return);break;case 22:if(De.memoizedState!==null){zg(Fe);continue}}qe!==null?(qe.return=De,nt=qe):zg(Fe)}Me=Me.sibling}e:for(Me=null,Fe=a;;){if(Fe.tag===5){if(Me===null){Me=Fe;try{S=Fe.stateNode,me?(_=S.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(W=Fe.stateNode,Q=Fe.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=ht("display",L))}catch(lt){ar(a,a.return,lt)}}}else if(Fe.tag===6){if(Me===null)try{Fe.stateNode.nodeValue=me?"":Fe.memoizedProps}catch(lt){ar(a,a.return,lt)}}else if((Fe.tag!==22&&Fe.tag!==23||Fe.memoizedState===null||Fe===a)&&Fe.child!==null){Fe.child.return=Fe,Fe=Fe.child;continue}if(Fe===a)break e;for(;Fe.sibling===null;){if(Fe.return===null||Fe.return===a)break e;Me===Fe&&(Me=null),Fe=Fe.return}Me===Fe&&(Me=null),Fe.sibling.return=Fe.return,Fe=Fe.sibling}}break;case 19:Or(o,a),po(a),g&4&&$u(a);break;case 21:break;default:Or(o,a),po(a)}}function po(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Xh(f)){var g=f;break e}f=f.return}throw Error(i(160))}switch(g.tag){case 5:var S=g.stateNode;g.flags&32&&($a(S,""),g.flags&=-33);var _=Vg(a);Bu(a,_,S);break;case 3:case 4:var L=g.stateNode.containerInfo,W=Vg(a);pd(a,W,L);break;default:throw Error(i(161))}}catch(Q){ar(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function Tx(a,o,f){nt=a,Yh(a)}function Yh(a,o,f){for(var g=(a.mode&1)!==0;nt!==null;){var S=nt,_=S.child;if(S.tag===22&&g){var L=S.memoizedState!==null||Pu;if(!L){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Vr;W=Pu;var me=Vr;if(Pu=L,(Vr=Q)&&!me)for(nt=S;nt!==null;)L=nt,Q=L.child,L.tag===22&&L.memoizedState!==null?Zh(S):Q!==null?(Q.return=L,nt=Q):Zh(S);for(;_!==null;)nt=_,Yh(_),_=_.sibling;nt=S,Pu=W,Vr=me}Uu(a)}else S.subtreeFlags&8772&&_!==null?(_.return=S,nt=_):Uu(a)}}function Uu(a){for(;nt!==null;){var o=nt;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Vr||Uf(5,o);break;case 1:var g=o.stateNode;if(o.flags&4&&!Vr)if(f===null)g.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:Ia(o.type,f.memoizedProps);g.componentDidUpdate(S,f.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var _=o.updateQueue;_!==null&&_u(o,_,g);break;case 3:var L=o.updateQueue;if(L!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}_u(o,L,f)}break;case 5:var W=o.stateNode;if(f===null&&o.flags&4){f=W;var Q=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&f.focus();break;case"img":Q.src&&(f.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var me=o.alternate;if(me!==null){var Me=me.memoizedState;if(Me!==null){var Fe=Me.dehydrated;Fe!==null&&li(Fe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Vr||o.flags&512&&Hf(o)}catch(De){ar(o,o.return,De)}}if(o===a){nt=null;break}if(f=o.sibling,f!==null){f.return=o.return,nt=f;break}nt=o.return}}function zg(a){for(;nt!==null;){var o=nt;if(o===a){nt=null;break}var f=o.sibling;if(f!==null){f.return=o.return,nt=f;break}nt=o.return}}function Zh(a){for(;nt!==null;){var o=nt;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{Uf(4,o)}catch(Q){ar(o,f,Q)}break;case 1:var g=o.stateNode;if(typeof g.componentDidMount=="function"){var S=o.return;try{g.componentDidMount()}catch(Q){ar(o,S,Q)}}var _=o.return;try{Hf(o)}catch(Q){ar(o,_,Q)}break;case 5:var L=o.return;try{Hf(o)}catch(Q){ar(o,L,Q)}}}catch(Q){ar(o,o.return,Q)}if(o===a){nt=null;break}var W=o.sibling;if(W!==null){W.return=o.return,nt=W;break}nt=o.return}}var Nx=Math.ceil,jl=U.ReactCurrentDispatcher,Gf=U.ReactCurrentOwner,yi=U.ReactCurrentBatchConfig,zt=0,rr=null,zn=null,Cr=0,ka=0,Hu=Nn(0),Sr=0,hd=null,Ol=0,Gu=0,qh=0,Vs=null,Kr=null,Wf=0,Wu=1/0,Yo=null,Xf=!1,Jh=null,bi=null,Xu=!1,xi=null,Yf=0,vd=0,Zf=null,md=-1,Dl=0;function Dr(){return zt&6?Dn():md!==-1?md:md=Dn()}function Zo(a){return a.mode&1?zt&2&&Cr!==0?Cr&-Cr:bx.transition!==null?(Dl===0&&(Dl=ul()),Dl):(a=Ut,a!==0||(a=window.event,a=a===void 0?16:Oc(a.type)),a):1}function Zn(a,o,f,g){if(50<vd)throw vd=0,Zf=null,Error(i(185));bs(a,f,g),(!(zt&2)||a!==rr)&&(a===rr&&(!(zt&2)&&(Gu|=f),Sr===4&&ho(a,Cr)),Er(a,g),f===1&&zt===0&&!(o.mode&1)&&(Wu=Dn()+500,Ns&&so()))}function Er(a,o){var f=a.callbackNode;ys(a,o);var g=to(a,a===rr?Cr:0);if(g===0)f!==null&&On(f),a.callbackNode=null,a.callbackPriority=0;else if(o=g&-g,a.callbackPriority!==o){if(f!=null&&On(f),o===1)a.tag===0?yg(Yu.bind(null,a)):hf(Yu.bind(null,a)),mg(function(){!(zt&6)&&so()}),f=null;else{switch(Ic(g)){case 1:f=Sc;break;case 4:f=eo;break;case 16:f=Lt;break;case 536870912:f=jo;break;default:f=Lt}f=Zg(f,qf.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function qf(a,o){if(md=-1,Dl=0,zt&6)throw Error(i(327));var f=a.callbackNode;if(Zu()&&a.callbackNode!==f)return null;var g=to(a,a===rr?Cr:0);if(g===0)return null;if(g&30||g&a.expiredLanes||o)o=Qf(a,g);else{o=g;var S=zt;zt|=2;var _=Ug();(rr!==a||Cr!==o)&&(Yo=null,Wu=Dn()+500,Ml(a,o));do try{Ax();break}catch(W){$g(a,W)}while(!0);Dh(),jl.current=_,zt=S,zn!==null?o=0:(rr=null,Cr=0,o=Sr)}if(o!==0){if(o===2&&(S=no(a),S!==0&&(g=S,o=kl(a,S))),o===1)throw f=hd,Ml(a,0),ho(a,g),Er(a,Dn()),f;if(o===6)ho(a,g);else{if(S=a.current.alternate,!(g&30)&&!Kh(S)&&(o=Qf(a,g),o===2&&(_=no(a),_!==0&&(g=_,o=kl(a,_))),o===1))throw f=hd,Ml(a,0),ho(a,g),Er(a,Dn()),f;switch(a.finishedWork=S,a.finishedLanes=g,o){case 0:case 1:throw Error(i(345));case 2:Bs(a,Kr,Yo);break;case 3:if(ho(a,g),(g&130023424)===g&&(o=Wf+500-Dn(),10<o)){if(to(a,0)!==0)break;if(S=a.suspendedLanes,(S&g)!==g){Dr(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=Xc(Bs.bind(null,a,Kr,Yo),o);break}Bs(a,Kr,Yo);break;case 4:if(ho(a,g),(g&4194240)===g)break;for(o=a.eventTimes,S=-1;0<g;){var L=31-ra(g);_=1<<L,L=o[L],L>S&&(S=L),g&=~_}if(g=S,g=Dn()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*Nx(g/1960))-g,10<g){a.timeoutHandle=Xc(Bs.bind(null,a,Kr,Yo),g);break}Bs(a,Kr,Yo);break;case 5:Bs(a,Kr,Yo);break;default:throw Error(i(329))}}}return Er(a,Dn()),a.callbackNode===f?qf.bind(null,a):null}function kl(a,o){var f=Vs;return a.current.memoizedState.isDehydrated&&(Ml(a,o).flags|=256),a=Qf(a,o),a!==2&&(o=Kr,Kr=f,o!==null&&Qh(o)),a}function Qh(a){Kr===null?Kr=a:Kr.push.apply(Kr,a)}function Kh(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var g=0;g<f.length;g++){var S=f[g],_=S.getSnapshot;S=S.value;try{if(!Bi(_(),S))return!1}catch{return!1}}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ho(a,o){for(o&=~qh,o&=~Gu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-ra(o),g=1<<f;a[f]=-1,o&=~g}}function Yu(a){if(zt&6)throw Error(i(327));Zu();var o=to(a,0);if(!(o&1))return Er(a,Dn()),null;var f=Qf(a,o);if(a.tag!==0&&f===2){var g=no(a);g!==0&&(o=g,f=kl(a,g))}if(f===1)throw f=hd,Ml(a,0),ho(a,o),Er(a,Dn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Bs(a,Kr,Yo),Er(a,Dn()),null}function ev(a,o){var f=zt;zt|=1;try{return a(o)}finally{zt=f,zt===0&&(Wu=Dn()+500,Ns&&so())}}function vo(a){xi!==null&&xi.tag===0&&!(zt&6)&&Zu();var o=zt;zt|=1;var f=yi.transition,g=Ut;try{if(yi.transition=null,Ut=1,a)return a()}finally{Ut=g,yi.transition=f,zt=o,!(zt&6)&&so()}}function Jf(){ka=Hu.current,ut(Hu)}function Ml(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Yc(f)),zn!==null)for(f=zn.return;f!==null;){var g=f;switch(mf(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Ra();break;case 3:Au(),ut(At),ut(Ar),hi();break;case 5:gt(g);break;case 4:Au();break;case 13:ut(ft);break;case 19:ut(ft);break;case 10:kh(g.type._context);break;case 22:case 23:Jf()}f=f.return}if(rr=a,zn=a=zs(a.current,null),Cr=ka=o,Sr=0,hd=null,qh=Gu=Ol=0,Kr=Vs=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],g=f.interleaved,g!==null){f.interleaved=null;var S=g.next,_=f.pending;if(_!==null){var L=_.next;_.next=S,g.next=L}f.pending=g}Jr=null}return a}function $g(a,o){do{var f=zn;try{if(Dh(),nd.current=Mf,lr){for(var g=Yn.memoizedState;g!==null;){var S=g.queue;S!==null&&(S.pending=null),g=g.next}lr=!1}if(Sl=0,_e=sr=Yn=null,xt=!1,co=0,Gf.current=null,f===null||f.return===null){Sr=1,hd=o,zn=null;break}e:{var _=a,L=f.return,W=f,Q=o;if(o=Cr,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var me=Q,Me=W,Fe=Me.tag;if(!(Me.mode&1)&&(Fe===0||Fe===11||Fe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var qe=Dg(L);if(qe!==null){qe.flags&=-257,Uh(qe,L,W,_,o),qe.mode&1&&ud(_,me,o),o=qe,Q=me;var rt=o.updateQueue;if(rt===null){var lt=new Set;lt.add(Q),o.updateQueue=lt}else rt.add(Q);break e}else{if(!(o&1)){ud(_,me,o),gd();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var dr=Dg(L);if(dr!==null){!(dr.flags&65536)&&(dr.flags|=256),Uh(dr,L,W,_,o),mr(Ps(Q,W));break e}}_=Q=Ps(Q,W),Sr!==4&&(Sr=2),Vs===null?Vs=[_]:Vs.push(_),_=L;do{switch(_.tag){case 3:_.flags|=65536,o&=-o,_.lanes|=o;var oe=jg(_,Q,o);Sg(_,oe);break e;case 1:W=Q;var ee=_.type,ce=_.stateNode;if(!(_.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(bi===null||!bi.has(ce)))){_.flags|=65536,o&=-o,_.lanes|=o;var $e=Og(_,W,o);Sg(_,$e);break e}}_=_.return}while(_!==null)}Gg(f)}catch(ct){o=ct,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Ug(){var a=jl.current;return jl.current=Mf,a===null?Mf:a}function gd(){(Sr===0||Sr===3||Sr===2)&&(Sr=4),rr===null||!(Ol&268435455)&&!(Gu&268435455)||ho(rr,Cr)}function Qf(a,o){var f=zt;zt|=2;var g=Ug();(rr!==a||Cr!==o)&&(Yo=null,Ml(a,o));do try{Ix();break}catch(S){$g(a,S)}while(!0);if(Dh(),zt=f,jl.current=g,zn!==null)throw Error(i(261));return rr=null,Cr=0,Sr}function Ix(){for(;zn!==null;)Hg(zn)}function Ax(){for(;zn!==null&&!Zr();)Hg(zn)}function Hg(a){var o=Yg(a.alternate,a,ka);a.memoizedProps=a.pendingProps,o===null?Gg(a):zn=o,Gf.current=null}function Gg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=Rx(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Sr=6,zn=null;return}}else if(f=wx(f,o,ka),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);Sr===0&&(Sr=5)}function Bs(a,o,f){var g=Ut,S=yi.transition;try{yi.transition=null,Ut=1,jx(a,o,f,g)}finally{yi.transition=S,Ut=g}return null}function jx(a,o,f,g){do Zu();while(xi!==null);if(zt&6)throw Error(i(327));f=a.finishedWork;var S=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var _=f.lanes|f.childLanes;if(Tc(a,_),a===rr&&(zn=rr=null,Cr=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||Xu||(Xu=!0,Zg(Lt,function(){return Zu(),null})),_=(f.flags&15990)!==0,f.subtreeFlags&15990||_){_=yi.transition,yi.transition=null;var L=Ut;Ut=1;var W=zt;zt|=4,Gf.current=null,_x(a,f),Bg(f,a),hl(wh),pu=!!Eh,wh=Eh=null,a.current=f,Tx(f),Ki(),zt=W,Ut=L,yi.transition=_}else a.current=f;if(Xu&&(Xu=!1,xi=a,Yf=S),_=a.pendingLanes,_===0&&(bi=null),Ec(f.stateNode),Er(a,Dn()),o!==null)for(g=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],g(S.value,{componentStack:S.stack,digest:S.digest});if(Xf)throw Xf=!1,a=Jh,Jh=null,a;return Yf&1&&a.tag!==0&&Zu(),_=a.pendingLanes,_&1?a===Zf?vd++:(vd=0,Zf=a):vd=0,so(),null}function Zu(){if(xi!==null){var a=Ic(Yf),o=yi.transition,f=Ut;try{if(yi.transition=null,Ut=16>a?16:a,xi===null)var g=!1;else{if(a=xi,xi=null,Yf=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,nt=a.current;nt!==null;){var _=nt,L=_.child;if(nt.flags&16){var W=_.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var me=W[Q];for(nt=me;nt!==null;){var Me=nt;switch(Me.tag){case 0:case 11:case 15:Vu(8,Me,_)}var Fe=Me.child;if(Fe!==null)Fe.return=Me,nt=Fe;else for(;nt!==null;){Me=nt;var De=Me.sibling,qe=Me.return;if(Fg(Me),Me===me){nt=null;break}if(De!==null){De.return=qe,nt=De;break}nt=qe}}}var rt=_.alternate;if(rt!==null){var lt=rt.child;if(lt!==null){rt.child=null;do{var dr=lt.sibling;lt.sibling=null,lt=dr}while(lt!==null)}}nt=_}}if(_.subtreeFlags&2064&&L!==null)L.return=_,nt=L;else e:for(;nt!==null;){if(_=nt,_.flags&2048)switch(_.tag){case 0:case 11:case 15:Vu(9,_,_.return)}var oe=_.sibling;if(oe!==null){oe.return=_.return,nt=oe;break e}nt=_.return}}var ee=a.current;for(nt=ee;nt!==null;){L=nt;var ce=L.child;if(L.subtreeFlags&2064&&ce!==null)ce.return=L,nt=ce;else e:for(L=ee;nt!==null;){if(W=nt,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Uf(9,W)}}catch(ct){ar(W,W.return,ct)}if(W===L){nt=null;break e}var $e=W.sibling;if($e!==null){$e.return=W.return,nt=$e;break e}nt=W.return}}if(zt=S,so(),Ca&&typeof Ca.onPostCommitFiberRoot=="function")try{Ca.onPostCommitFiberRoot(gs,a)}catch{}g=!0}return g}finally{Ut=f,yi.transition=o}}return!1}function Wg(a,o,f){o=Ps(f,o),o=jg(a,o,1),a=Ds(a,o,1),o=Dr(),a!==null&&(bs(a,1,o),Er(a,o))}function ar(a,o,f){if(a.tag===3)Wg(a,a,f);else for(;o!==null;){if(o.tag===3){Wg(o,a,f);break}else if(o.tag===1){var g=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(bi===null||!bi.has(g))){a=Ps(f,a),a=Og(o,a,1),o=Ds(o,a,1),a=Dr(),o!==null&&(bs(o,1,a),Er(o,a));break}}o=o.return}}function Ox(a,o,f){var g=a.pingCache;g!==null&&g.delete(o),o=Dr(),a.pingedLanes|=a.suspendedLanes&f,rr===a&&(Cr&f)===f&&(Sr===4||Sr===3&&(Cr&130023424)===Cr&&500>Dn()-Wf?Ml(a,0):qh|=f),Er(a,o)}function Xg(a,o){o===0&&(a.mode&1?(o=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):o=1);var f=Dr();a=Go(a,o),a!==null&&(bs(a,o,f),Er(a,f))}function tv(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),Xg(a,f)}function Dx(a,o){var f=0;switch(a.tag){case 13:var g=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:g=a.stateNode;break;default:throw Error(i(314))}g!==null&&g.delete(o),Xg(a,f)}var Yg;Yg=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||At.current)Oa=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Oa=!1,Xo(a,o,f);Oa=!!(a.flags&131072)}else Oa=!1,Bn&&o.flags&1048576&&As(o,bl,o.index);switch(o.lanes=0,o.tag){case 2:var g=o.type;fd(a,o),a=o.pendingProps;var S=Xa(o,Ar.current);or(o,f),S=El(null,o,g,a,S,f);var _=Ms();return o.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vr(g)?(_=!0,yl(o)):_=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Mh(o),S.updater=xf,o.stateNode=S,S._reactInternals=o,Ph(o,g,a,f),o=Pf(null,o,g,!0,_,f)):(o.tag=0,Bn&&_&&vf(o),ur(null,o,S,f),o=o.child),o;case 16:g=o.elementType;e:{switch(fd(a,o),a=o.pendingProps,S=g._init,g=S(g._payload),o.type=g,S=o.tag=kx(g),a=Ia(g,a),S){case 0:o=Dt(null,o,g,a,f);break e;case 1:o=cd(null,o,g,a,f);break e;case 11:o=ku(null,o,g,a,f);break e;case 14:o=Fs(null,o,g,Ia(g.type,a),f);break e}throw Error(i(306,g,""))}return o;case 0:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),Dt(a,o,g,S,f);case 1:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),cd(a,o,g,S,f);case 3:e:{if(Ex(o),a===null)throw Error(i(387));g=o.pendingProps,_=o.memoizedState,S=_.element,Cg(a,o),Qc(o,g,null,f);var L=o.memoizedState;if(g=L.element,_.isDehydrated)if(_={element:g,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},o.updateQueue.baseState=_,o.memoizedState=_,o.flags&256){S=Ps(Error(i(423)),o),o=Mg(a,o,g,f,S);break e}else if(g!==S){S=Ps(Error(i(424)),o),o=Mg(a,o,g,f,S);break e}else for(Za=Wa(o.stateNode.containerInfo.firstChild),Ya=o,Bn=!0,pi=null,f=Ng(o,null,g,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Eu(),g===S){o=cr(a,o,f);break e}ur(a,o,g,f)}o=o.child}return o;case 5:return Cf(o),a===null&&gf(o),g=o.type,S=o.pendingProps,_=a!==null?a.memoizedProps:null,L=S.children,gl(g,S)?L=null:_!==null&&gl(g,_)&&(o.flags|=32),Il(a,o),ur(a,o,L,f),o.child;case 6:return a===null&&gf(o),null;case 13:return Lg(a,o,f);case 4:return Fh(o,o.stateNode.containerInfo),g=o.pendingProps,a===null?o.child=Nu(o,null,g,f):ur(a,o,g,f),o.child;case 11:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),ku(a,o,g,S,f);case 7:return ur(a,o,o.pendingProps,f),o.child;case 8:return ur(a,o,o.pendingProps.children,f),o.child;case 12:return ur(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(g=o.type._context,S=o.pendingProps,_=o.memoizedProps,L=S.value,nn(wu,g._currentValue),g._currentValue=L,_!==null)if(Bi(_.value,L)){if(_.children===S.children&&!At.current){o=cr(a,o,f);break e}}else for(_=o.child,_!==null&&(_.return=o);_!==null;){var W=_.dependencies;if(W!==null){L=_.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===g){if(_.tag===1){Q=kn(-1,f&-f),Q.tag=2;var me=_.updateQueue;if(me!==null){me=me.shared;var Me=me.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),me.pending=Q}}_.lanes|=f,Q=_.alternate,Q!==null&&(Q.lanes|=f),js(_.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(_.tag===10)L=_.type===o.type?null:_.child;else if(_.tag===18){if(L=_.return,L===null)throw Error(i(341));L.lanes|=f,W=L.alternate,W!==null&&(W.lanes|=f),js(L,f,o),L=_.sibling}else L=_.child;if(L!==null)L.return=_;else for(L=_;L!==null;){if(L===o){L=null;break}if(_=L.sibling,_!==null){_.return=L.return,L=_;break}L=L.return}_=L}ur(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,g=o.pendingProps.children,or(o,f),S=Ue(S),g=g(S),o.flags|=1,ur(a,o,g,f),o.child;case 14:return g=o.type,S=Ia(g,o.pendingProps),S=Ia(g.type,S),Fs(a,o,g,S,f);case 15:return Lf(a,o,o.type,o.pendingProps,f);case 17:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),fd(a,o),o.tag=1,vr(g)?(a=!0,yl(o)):a=!1,or(o,f),wg(o,g,S),Ph(o,g,S,f),Pf(null,o,g,!0,a,f);case 19:return Gh(a,o,f);case 22:return Da(a,o,f)}throw Error(i(156,o.tag))};function Zg(a,o){return jn(a,o)}function qg(a,o,f,g){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ci(a,o,f,g){return new qg(a,o,f,g)}function nv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function kx(a){if(typeof a=="function")return nv(a)?1:0;if(a!=null){if(a=a.$$typeof,a===ae)return 11;if(a===xe)return 14}return 2}function zs(a,o){var f=a.alternate;return f===null?(f=Ci(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function Kf(a,o,f,g,S,_){var L=2;if(g=a,typeof a=="function")nv(a)&&(L=1);else if(typeof a=="string")L=5;else e:switch(a){case X:return Ll(f.children,S,_,o);case Y:L=8,S|=8;break;case pe:return a=Ci(12,f,o,S|2),a.elementType=pe,a.lanes=_,a;case Re:return a=Ci(13,f,o,S),a.elementType=Re,a.lanes=_,a;case be:return a=Ci(19,f,o,S),a.elementType=be,a.lanes=_,a;case Le:return ep(f,S,_,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ie:L=10;break e;case ge:L=9;break e;case ae:L=11;break e;case xe:L=14;break e;case Ae:L=16,g=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=Ci(L,f,o,S),o.elementType=a,o.type=g,o.lanes=_,o}function Ll(a,o,f,g){return a=Ci(7,a,g,o),a.lanes=f,a}function ep(a,o,f,g){return a=Ci(22,a,g,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function tp(a,o,f){return a=Ci(6,a,null,o),a.lanes=f,a}function yd(a,o,f){return o=Ci(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function bd(a,o,f,g,S){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=g,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function rv(a,o,f,g,S,_,L,W,Q){return a=new bd(a,o,f,W,Q),o===1?(o=1,_===!0&&(o|=8)):o=0,_=Ci(3,null,null,o),a.current=_,_.stateNode=a,_.memoizedState={element:g,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mh(_),a}function Jg(a,o,f){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:g==null?null:""+g,children:a,containerInfo:o,implementation:f}}function av(a){if(!a)return ci;a=a._reactInternals;e:{if(Ye(a)!==a||a.tag!==1)throw Error(i(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(a.tag===1){var f=a.type;if(vr(f))return Ts(a,f,o)}return o}function iv(a,o,f,g,S,_,L,W,Q){return a=rv(f,g,!0,a,S,_,L,W,Q),a.context=av(null),f=a.current,g=Dr(),S=Zo(f),_=kn(g,S),_.callback=o??null,Ds(f,_,S),a.current.lanes=S,bs(a,S,g),Er(a,g),a}function np(a,o,f,g){var S=o.current,_=Dr(),L=Zo(S);return f=av(f),o.context===null?o.context=f:o.pendingContext=f,o=kn(_,L),o.payload={element:a},g=g===void 0?null:g,g!==null&&(o.callback=g),a=Ds(S,o,L),a!==null&&(Zn(a,S,L,_),bf(a,S,L)),L}function xd(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Qg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function ov(a,o){Qg(a,o),(a=a.alternate)&&Qg(a,o)}function Mx(){return null}var sv=typeof reportError=="function"?reportError:function(a){console.error(a)};function rp(a){this._internalRoot=a}Cd.prototype.render=rp.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));np(a,o,null,null)},Cd.prototype.unmount=rp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){np(null,a,null,null)}),o[zi]=null}};function Cd(a){this._internalRoot=a}Cd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Yt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Fn.length&&o!==0&&o<Fn[f].priority;f++);Fn.splice(f,0,a),f===0&&Fi(a)}};function $s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function ap(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Kg(){}function Lx(a,o,f,g,S){if(S){if(typeof g=="function"){var _=g;g=function(){var me=xd(L);_.call(me)}}var L=iv(o,g,a,0,null,!1,!1,"",Kg);return a._reactRootContainer=L,a[zi]=L.current,ao(a.nodeType===8?a.parentNode:a),vo(),L}for(;S=a.lastChild;)a.removeChild(S);if(typeof g=="function"){var W=g;g=function(){var me=xd(Q);W.call(me)}}var Q=rv(a,0,!1,null,null,!1,!1,"",Kg);return a._reactRootContainer=Q,a[zi]=Q.current,ao(a.nodeType===8?a.parentNode:a),vo(function(){np(o,Q,f,g)}),Q}function ip(a,o,f,g,S){var _=f._reactRootContainer;if(_){var L=_;if(typeof S=="function"){var W=S;S=function(){var Q=xd(L);W.call(Q)}}np(o,L,a,S)}else L=Lx(f,o,a,S,g);return xd(L)}cu=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Oo(o.pendingLanes);f!==0&&(Nc(o,f|1),Er(o,Dn()),!(zt&6)&&(Wu=Dn()+500,so()))}break;case 13:vo(function(){var g=Go(a,1);if(g!==null){var S=Dr();Zn(g,a,1,S)}}),ov(a,1)}},xs=function(a){if(a.tag===13){var o=Go(a,134217728);if(o!==null){var f=Dr();Zn(o,a,134217728,f)}ov(a,134217728)}},Ac=function(a){if(a.tag===13){var o=Zo(a),f=Go(a,o);if(f!==null){var g=Dr();Zn(f,a,o,g)}ov(a,o)}},Yt=function(){return Ut},du=function(a,o){var f=Ut;try{return Ut=a,o()}finally{Ut=f}},hn=function(a,o,f){switch(o){case"input":if(sn(a,f),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<f.length;o++){var g=f[o];if(g!==a&&g.form===a.form){var S=pf(g);if(!S)throw Error(i(90));ot(g),sn(g,S)}}}break;case"textarea":Hn(a,f);break;case"select":o=f.value,o!=null&&Cn(a,!!f.multiple,o,!1)}},vs=ev,il=vo;var Px={usingClientEntryPoint:!1,Events:[io,Su,pf,ki,ai,ev]},Sd={findFiberByHostInstance:Uo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ey={bundleType:Sd.bundleType,version:Sd.version,rendererPackageName:Sd.rendererPackageName,rendererConfig:Sd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=vt(a),a===null?null:a.stateNode},findFiberByHostInstance:Sd.findFiberByHostInstance||Mx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var op=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!op.isDisabled&&op.supportsFiber)try{gs=op.inject(ey),Ca=op}catch{}}return Ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Px,Ti.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$s(o))throw Error(i(200));return Jg(a,o,null,f)},Ti.createRoot=function(a,o){if(!$s(a))throw Error(i(299));var f=!1,g="",S=sv;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=rv(a,1,!1,null,null,f,!1,g,S),a[zi]=o.current,ao(a.nodeType===8?a.parentNode:a),new rp(o)},Ti.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=vt(o),a=a===null?null:a.stateNode,a},Ti.flushSync=function(a){return vo(a)},Ti.hydrate=function(a,o,f){if(!ap(o))throw Error(i(200));return ip(null,a,o,!0,f)},Ti.hydrateRoot=function(a,o,f){if(!$s(a))throw Error(i(405));var g=f!=null&&f.hydratedSources||null,S=!1,_="",L=sv;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(_=f.identifierPrefix),f.onRecoverableError!==void 0&&(L=f.onRecoverableError)),o=iv(o,null,a,1,f??null,S,!1,_,L),a[zi]=o.current,ao(a),g)for(a=0;a<g.length;a++)f=g[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new Cd(o)},Ti.render=function(a,o,f){if(!ap(o))throw Error(i(200));return ip(null,a,o,!1,f)},Ti.unmountComponentAtNode=function(a){if(!ap(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){ip(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},Ti.unstable_batchedUpdates=ev,Ti.unstable_renderSubtreeIntoContainer=function(a,o,f,g){if(!ap(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return ip(a,o,f,!1,g)},Ti.version="18.2.0-next-9e3b772b8-20220608",Ti}var Ni={},rI;function Az(){if(rI)return Ni;rI=1;var t={};/**
96
+ `+_.stack}return{value:a,source:o,stack:S,digest:null}}function $h(a,o,d){return{value:a,source:null,stack:d??null,digest:o??null}}function ld(a,o){try{console.error(o.value)}catch(d){setTimeout(function(){throw d})}}var Ag=typeof WeakMap=="function"?WeakMap:Map;function jg(a,o,d){d=kn(-1,d),d.tag=3,d.payload={element:null};var g=o.value;return d.callback=function(){Xf||(Xf=!0,Jh=g),ld(a,o)},d}function Og(a,o,d){d=kn(-1,d),d.tag=3;var g=a.type.getDerivedStateFromError;if(typeof g=="function"){var S=o.value;d.payload=function(){return g(S)},d.callback=function(){ld(a,o)}}var _=a.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(d.callback=function(){ld(a,o),typeof g!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var L=o.stack;this.componentDidCatch(o.value,{componentStack:L!==null?L:""})}),d}function ud(a,o,d){var g=a.pingCache;if(g===null){g=a.pingCache=new Ag;var S=new Set;g.set(o,S)}else S=g.get(o),S===void 0&&(S=new Set,g.set(o,S));S.has(d)||(S.add(d),a=Ox.bind(null,a,o,d),o.then(a,a))}function Dg(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function Uh(a,o,d,g,S){return a.mode&1?(a.flags|=65536,a.lanes=S,a):(a===o?a.flags|=65536:(a.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(o=kn(-1,1),o.tag=2,Ds(d,o,1))),d.lanes|=1),a)}var kg=U.ReactCurrentOwner,Oa=!1;function ur(a,o,d,g){o.child=a===null?Ng(o,null,d,g):Nu(o,a.child,d,g)}function ku(a,o,d,g,S){d=d.render;var _=o.ref;return or(o,S),g=El(a,o,d,g,_,S),d=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&d&&vf(o),o.flags|=1,ur(a,o,g,S),o.child)}function Fs(a,o,d,g,S){if(a===null){var _=d.type;return typeof _=="function"&&!nv(_)&&_.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(o.tag=15,o.type=_,Lf(a,o,_,g,S)):(a=Kf(d.type,null,g,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(_=a.child,!(a.lanes&S)){var L=_.memoizedProps;if(d=d.compare,d=d!==null?d:bu,d(L,g)&&a.ref===o.ref)return cr(a,o,S)}return o.flags|=1,a=zs(_,g),a.ref=o.ref,a.return=o,o.child=a}function Lf(a,o,d,g,S){if(a!==null){var _=a.memoizedProps;if(bu(_,g)&&a.ref===o.ref)if(Oa=!1,o.pendingProps=g=_,(a.lanes&S)!==0)a.flags&131072&&(Oa=!0);else return o.lanes=a.lanes,cr(a,o,S)}return Dt(a,o,d,g,S)}function Da(a,o,d){var g=o.pendingProps,S=g.children,_=a!==null?a.memoizedState:null;if(g.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},nn(Hu,ka),ka|=d;else{if(!(d&1073741824))return a=_!==null?_.baseLanes|d:d,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,nn(Hu,ka),ka|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=_!==null?_.baseLanes:d,nn(Hu,ka),ka|=g}else _!==null?(g=_.baseLanes|d,o.memoizedState=null):g=d,nn(Hu,ka),ka|=g;return ur(a,o,S,d),o.child}function Il(a,o){var d=o.ref;(a===null&&d!==null||a!==null&&a.ref!==d)&&(o.flags|=512,o.flags|=2097152)}function Dt(a,o,d,g,S){var _=vr(d)?aa:Ar.current;return _=Xa(o,_),or(o,S),d=El(a,o,d,g,_,S),g=Ms(),a!==null&&!Oa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&g&&vf(o),o.flags|=1,ur(a,o,d,S),o.child)}function cd(a,o,d,g,S){if(vr(d)){var _=!0;yl(o)}else _=!1;if(or(o,S),o.stateNode===null)fd(a,o),wg(o,d,g),Ph(o,d,g,S),g=!0;else if(a===null){var L=o.stateNode,W=o.memoizedProps;L.props=W;var Q=L.context,me=d.contextType;typeof me=="object"&&me!==null?me=Ue(me):(me=vr(d)?aa:Ar.current,me=Xa(o,me));var Me=d.getDerivedStateFromProps,Fe=typeof Me=="function"||typeof L.getSnapshotBeforeUpdate=="function";Fe||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(W!==g||Q!==me)&&Rg(o,L,g,me),Os=!1;var De=o.memoizedState;L.state=De,Qc(o,g,L,S),Q=o.memoizedState,W!==g||De!==Q||At.current||Os?(typeof Me=="function"&&(Lh(o,d,Me,g),Q=o.memoizedState),(W=Os||Eg(o,d,W,g,De,Q,me))?(Fe||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(o.flags|=4194308)):(typeof L.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=g,o.memoizedState=Q),L.props=g,L.state=Q,L.context=me,g=W):(typeof L.componentDidMount=="function"&&(o.flags|=4194308),g=!1)}else{L=o.stateNode,Cg(a,o),W=o.memoizedProps,me=o.type===o.elementType?W:Ia(o.type,W),L.props=me,Fe=o.pendingProps,De=L.context,Q=d.contextType,typeof Q=="object"&&Q!==null?Q=Ue(Q):(Q=vr(d)?aa:Ar.current,Q=Xa(o,Q));var qe=d.getDerivedStateFromProps;(Me=typeof qe=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(W!==Fe||De!==Q)&&Rg(o,L,g,Q),Os=!1,De=o.memoizedState,L.state=De,Qc(o,g,L,S);var rt=o.memoizedState;W!==Fe||De!==rt||At.current||Os?(typeof qe=="function"&&(Lh(o,d,qe,g),rt=o.memoizedState),(me=Os||Eg(o,d,me,g,De,rt,Q)||!1)?(Me||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(g,rt,Q),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(g,rt,Q)),typeof L.componentDidUpdate=="function"&&(o.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof L.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=g,o.memoizedState=rt),L.props=g,L.state=rt,L.context=Q,g=me):(typeof L.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),g=!1)}return Pf(a,o,d,g,_,S)}function Pf(a,o,d,g,S,_){Il(a,o);var L=(o.flags&128)!==0;if(!g&&!L)return S&&gg(o,d,!1),cr(a,o,_);g=o.stateNode,kg.current=o;var W=L&&typeof d.getDerivedStateFromError!="function"?null:g.render();return o.flags|=1,a!==null&&L?(o.child=Nu(o,a.child,null,_),o.child=Nu(o,null,W,_)):ur(a,o,W,_),o.memoizedState=g.state,S&&gg(o,d,!0),o.child}function Ex(a){var o=a.stateNode;o.pendingContext?oo(a,o.pendingContext,o.pendingContext!==o.context):o.context&&oo(a,o.context,!1),Fh(a,o.containerInfo)}function Mg(a,o,d,g,S){return Eu(),mr(S),o.flags|=256,ur(a,o,d,g),o.child}var dd={dehydrated:null,treeContext:null,retryLane:0};function Al(a){return{baseLanes:a,cachePool:null,transitions:null}}function Lg(a,o,d){var g=o.pendingProps,S=ft.current,_=!1,L=(o.flags&128)!==0,W;if((W=L)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(_=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),nn(ft,S&1),a===null)return gf(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(L=g.children,a=g.fallback,_?(g=o.mode,_=o.child,L={mode:"hidden",children:L},!(g&1)&&_!==null?(_.childLanes=0,_.pendingProps=L):_=ep(L,g,0,null),a=Ll(a,g,d,null),_.return=o,a.return=o,_.sibling=a,o.child=_,o.child.memoizedState=Al(d),o.memoizedState=dd,a):Ff(o,L));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return Hh(a,o,L,g,W,S,d);if(_){_=g.fallback,L=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:g.children};return!(L&1)&&o.child!==S?(g=o.child,g.childLanes=0,g.pendingProps=Q,o.deletions=null):(g=zs(S,Q),g.subtreeFlags=S.subtreeFlags&14680064),W!==null?_=zs(W,_):(_=Ll(_,L,d,null),_.flags|=2),_.return=o,g.return=o,g.sibling=_,o.child=g,g=_,_=o.child,L=a.child.memoizedState,L=L===null?Al(d):{baseLanes:L.baseLanes|d,cachePool:null,transitions:L.transitions},_.memoizedState=L,_.childLanes=a.childLanes&~d,o.memoizedState=dd,g}return _=a.child,a=_.sibling,g=zs(_,{mode:"visible",children:g.children}),!(o.mode&1)&&(g.lanes=d),g.return=o,g.sibling=null,a!==null&&(d=o.deletions,d===null?(o.deletions=[a],o.flags|=16):d.push(a)),o.child=g,o.memoizedState=null,g}function Ff(a,o){return o=ep({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Vf(a,o,d,g){return g!==null&&mr(g),Nu(o,a.child,null,d),a=Ff(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Hh(a,o,d,g,S,_,L){if(d)return o.flags&256?(o.flags&=-257,g=$h(Error(i(422))),Vf(a,o,L,g)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(_=g.fallback,S=o.mode,g=ep({mode:"visible",children:g.children},S,0,null),_=Ll(_,S,L,null),_.flags|=2,g.return=o,_.return=o,g.sibling=_,o.child=g,o.mode&1&&Nu(o,a.child,null,L),o.child.memoizedState=Al(L),o.memoizedState=dd,_);if(!(o.mode&1))return Vf(a,o,L,null);if(S.data==="$!"){if(g=S.nextSibling&&S.nextSibling.dataset,g)var W=g.dgst;return g=W,_=Error(i(419)),g=$h(_,g,void 0),Vf(a,o,L,g)}if(W=(L&a.childLanes)!==0,Oa||W){if(g=rr,g!==null){switch(L&-L){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=S&(g.suspendedLanes|L)?0:S,S!==0&&S!==_.retryLane&&(_.retryLane=S,Go(a,S),Zn(g,a,S,-1))}return gd(),g=$h(Error(i(421))),Vf(a,o,L,g)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=tv.bind(null,a),S._reactRetry=o,null):(a=_.treeContext,Za=Wa(S.nextSibling),Ya=o,Bn=!0,pi=null,a!==null&&(_a[Ta++]=Na,_a[Ta++]=Fr,_a[Ta++]=Ui,Na=a.id,Fr=a.overflow,Ui=o),o=Ff(o,g.children),o.flags|=4096,o)}function Pg(a,o,d){a.lanes|=o;var g=a.alternate;g!==null&&(g.lanes|=o),js(a.return,o,d)}function Bf(a,o,d,g,S){var _=a.memoizedState;_===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:d,tailMode:S}:(_.isBackwards=o,_.rendering=null,_.renderingStartTime=0,_.last=g,_.tail=d,_.tailMode=S)}function Gh(a,o,d){var g=o.pendingProps,S=g.revealOrder,_=g.tail;if(ur(a,o,g.children,d),g=ft.current,g&2)g=g&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Pg(a,d,o);else if(a.tag===19)Pg(a,d,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}if(nn(ft,g),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(d=o.child,S=null;d!==null;)a=d.alternate,a!==null&&Kt(a)===null&&(S=d),d=d.sibling;d=S,d===null?(S=o.child,o.child=null):(S=d.sibling,d.sibling=null),Bf(o,!1,S,d,_);break;case"backwards":for(d=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Kt(a)===null){o.child=S;break}a=S.sibling,S.sibling=d,d=S,S=a}Bf(o,!0,d,null,_);break;case"together":Bf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function fd(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function cr(a,o,d){if(a!==null&&(o.dependencies=a.dependencies),Ol|=o.lanes,!(d&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,d=zs(a,a.pendingProps),o.child=d,d.return=o;a.sibling!==null;)a=a.sibling,d=d.sibling=zs(a,a.pendingProps),d.return=o;d.sibling=null}return o.child}function Xo(a,o,d){switch(o.tag){case 3:Ex(o),Eu();break;case 5:Cf(o);break;case 1:vr(o.type)&&yl(o);break;case 4:Fh(o,o.stateNode.containerInfo);break;case 10:var g=o.type._context,S=o.memoizedProps.value;nn(wu,g._currentValue),g._currentValue=S;break;case 13:if(g=o.memoizedState,g!==null)return g.dehydrated!==null?(nn(ft,ft.current&1),o.flags|=128,null):d&o.child.childLanes?Lg(a,o,d):(nn(ft,ft.current&1),a=cr(a,o,d),a!==null?a.sibling:null);nn(ft,ft.current&1);break;case 19:if(g=(d&o.childLanes)!==0,a.flags&128){if(g)return Gh(a,o,d);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),nn(ft,ft.current),g)break;return null;case 22:case 23:return o.lanes=0,Da(a,o,d)}return cr(a,o,d)}var fo,Mu,Lu,gi;fo=function(a,o){for(var d=o.child;d!==null;){if(d.tag===5||d.tag===6)a.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===o)break;for(;d.sibling===null;){if(d.return===null||d.return===o)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},Mu=function(){},Lu=function(a,o,d,g){var S=a.memoizedProps;if(S!==g){a=o.stateNode,ks(uo.current);var _=null;switch(d){case"input":S=Rt(a,S),g=Rt(a,g),_=[];break;case"select":S=G({},S,{value:void 0}),g=G({},g,{value:void 0}),_=[];break;case"textarea":S=Qn(a,S),g=Qn(a,g),_=[];break;default:typeof S.onClick!="function"&&typeof g.onClick=="function"&&(a.onclick=ff)}tn(d,g);var L;d=null;for(me in S)if(!g.hasOwnProperty(me)&&S.hasOwnProperty(me)&&S[me]!=null)if(me==="style"){var W=S[me];for(L in W)W.hasOwnProperty(L)&&(d||(d={}),d[L]="")}else me!=="dangerouslySetInnerHTML"&&me!=="children"&&me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&me!=="autoFocus"&&(u.hasOwnProperty(me)?_||(_=[]):(_=_||[]).push(me,null));for(me in g){var Q=g[me];if(W=S!=null?S[me]:void 0,g.hasOwnProperty(me)&&Q!==W&&(Q!=null||W!=null))if(me==="style")if(W){for(L in W)!W.hasOwnProperty(L)||Q&&Q.hasOwnProperty(L)||(d||(d={}),d[L]="");for(L in Q)Q.hasOwnProperty(L)&&W[L]!==Q[L]&&(d||(d={}),d[L]=Q[L])}else d||(_||(_=[]),_.push(me,d)),d=Q;else me==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(_=_||[]).push(me,Q)):me==="children"?typeof Q!="string"&&typeof Q!="number"||(_=_||[]).push(me,""+Q):me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&(u.hasOwnProperty(me)?(Q!=null&&me==="onScroll"&&Tn("scroll",a),_||W===Q||(_=[])):(_=_||[]).push(me,Q))}d&&(_=_||[]).push("style",d);var me=_;(o.updateQueue=me)&&(o.flags|=4)}},gi=function(a,o,d,g){d!==g&&(o.flags|=4)};function nr(a,o){if(!Bn)switch(a.tailMode){case"hidden":o=a.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?a.tail=null:d.sibling=null;break;case"collapsed":d=a.tail;for(var g=null;d!==null;)d.alternate!==null&&(g=d),d=d.sibling;g===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function Qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,d=0,g=0;if(o)for(var S=a.child;S!==null;)d|=S.lanes|S.childLanes,g|=S.subtreeFlags&14680064,g|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)d|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=g,a.childLanes=d,o}function wx(a,o,d){var g=o.pendingProps;switch(mf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(o),null;case 1:return vr(o.type)&&Ra(),Qr(o),null;case 3:return g=o.stateNode,Au(),ut(At),ut(Ar),hi(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(yf(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(Qh(pi),pi=null))),Mu(a,o),Qr(o),null;case 5:gt(o);var S=ks(td.current);if(d=o.type,a!==null&&o.stateNode!=null)Lu(a,o,d,g,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!g){if(o.stateNode===null)throw Error(i(166));return Qr(o),null}if(a=ks(uo.current),yf(o)){g=o.stateNode,d=o.type;var _=o.memoizedProps;switch(g[ui]=o,g[qc]=_,a=(o.mode&1)!==0,d){case"dialog":Tn("cancel",g),Tn("close",g);break;case"iframe":case"object":case"embed":Tn("load",g);break;case"video":case"audio":for(S=0;S<Bo.length;S++)Tn(Bo[S],g);break;case"source":Tn("error",g);break;case"img":case"image":case"link":Tn("error",g),Tn("load",g);break;case"details":Tn("toggle",g);break;case"input":dt(g,_),Tn("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!_.multiple},Tn("invalid",g);break;case"textarea":Tr(g,_),Tn("invalid",g)}tn(d,_),S=null;for(var L in _)if(_.hasOwnProperty(L)){var W=_[L];L==="children"?typeof W=="string"?g.textContent!==W&&(_.suppressHydrationWarning!==!0&&Wc(g.textContent,W,a),S=["children",W]):typeof W=="number"&&g.textContent!==""+W&&(_.suppressHydrationWarning!==!0&&Wc(g.textContent,W,a),S=["children",""+W]):u.hasOwnProperty(L)&&W!=null&&L==="onScroll"&&Tn("scroll",g)}switch(d){case"input":tt(g),ln(g,_,!0);break;case"textarea":tt(g),Nr(g);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(g.onclick=ff)}g=S,o.updateQueue=g,g!==null&&(o.flags|=4)}else{L=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=St(d)),a==="http://www.w3.org/1999/xhtml"?d==="script"?(a=L.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof g.is=="string"?a=L.createElement(d,{is:g.is}):(a=L.createElement(d),d==="select"&&(L=a,g.multiple?L.multiple=!0:g.size&&(L.size=g.size))):a=L.createElementNS(a,d),a[ui]=o,a[qc]=g,fo(a,o,!1,!1),o.stateNode=a;e:{switch(L=ir(d,g),d){case"dialog":Tn("cancel",a),Tn("close",a),S=g;break;case"iframe":case"object":case"embed":Tn("load",a),S=g;break;case"video":case"audio":for(S=0;S<Bo.length;S++)Tn(Bo[S],a);S=g;break;case"source":Tn("error",a),S=g;break;case"img":case"image":case"link":Tn("error",a),Tn("load",a),S=g;break;case"details":Tn("toggle",a),S=g;break;case"input":dt(a,g),S=Rt(a,g),Tn("invalid",a);break;case"option":S=g;break;case"select":a._wrapperState={wasMultiple:!!g.multiple},S=G({},g,{value:void 0}),Tn("invalid",a);break;case"textarea":Tr(a,g),S=Qn(a,g),Tn("invalid",a);break;default:S=g}tn(d,S),W=S;for(_ in W)if(W.hasOwnProperty(_)){var Q=W[_];_==="style"?Mt(a,Q):_==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&za(a,Q)):_==="children"?typeof Q=="string"?(d!=="textarea"||Q!=="")&&$a(a,Q):typeof Q=="number"&&$a(a,""+Q):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(u.hasOwnProperty(_)?Q!=null&&_==="onScroll"&&Tn("scroll",a):Q!=null&&V(a,_,Q,L))}switch(d){case"input":tt(a),ln(a,g,!1);break;case"textarea":tt(a),Nr(a);break;case"option":g.value!=null&&a.setAttribute("value",""+de(g.value));break;case"select":a.multiple=!!g.multiple,_=g.value,_!=null?Cn(a,!!g.multiple,_,!1):g.defaultValue!=null&&Cn(a,!!g.multiple,g.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=ff)}switch(d){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,g);else{if(typeof g!="string"&&o.stateNode===null)throw Error(i(166));if(d=ks(td.current),ks(uo.current),yf(o)){if(g=o.stateNode,d=o.memoizedProps,g[ui]=o,(_=g.nodeValue!==d)&&(a=Ya,a!==null))switch(a.tag){case 3:Wc(g.nodeValue,d,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Wc(g.nodeValue,d,(a.mode&1)!==0)}_&&(o.flags|=4)}else g=(d.nodeType===9?d:d.ownerDocument).createTextNode(g),g[ui]=o,o.stateNode=g}return Qr(o),null;case 13:if(ut(ft),g=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Za!==null&&o.mode&1&&!(o.flags&128))bg(),Eu(),o.flags|=98560,_=!1;else if(_=yf(o),g!==null&&g.dehydrated!==null){if(a===null){if(!_)throw Error(i(318));if(_=o.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(i(317));_[ui]=o}else Eu(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Qr(o),_=!1}else pi!==null&&(Qh(pi),pi=null),_=!0;if(!_)return o.flags&65536?o:null}return o.flags&128?(o.lanes=d,o):(g=g!==null,g!==(a!==null&&a.memoizedState!==null)&&g&&(o.child.flags|=8192,o.mode&1&&(a===null||ft.current&1?Sr===0&&(Sr=3):gd())),o.updateQueue!==null&&(o.flags|=4),Qr(o),null);case 4:return Au(),Mu(a,o),a===null&&ao(o.stateNode.containerInfo),Qr(o),null;case 10:return kh(o.type._context),Qr(o),null;case 17:return vr(o.type)&&Ra(),Qr(o),null;case 19:if(ut(ft),_=o.memoizedState,_===null)return Qr(o),null;if(g=(o.flags&128)!==0,L=_.rendering,L===null)if(g)nr(_,!1);else{if(Sr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(L=Kt(a),L!==null){for(o.flags|=128,nr(_,!1),g=L.updateQueue,g!==null&&(o.updateQueue=g,o.flags|=4),o.subtreeFlags=0,g=d,d=o.child;d!==null;)_=d,a=g,_.flags&=14680066,L=_.alternate,L===null?(_.childLanes=0,_.lanes=a,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=L.childLanes,_.lanes=L.lanes,_.child=L.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=L.memoizedProps,_.memoizedState=L.memoizedState,_.updateQueue=L.updateQueue,_.type=L.type,a=L.dependencies,_.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),d=d.sibling;return nn(ft,ft.current&1|2),o.child}a=a.sibling}_.tail!==null&&Dn()>Wu&&(o.flags|=128,g=!0,nr(_,!1),o.lanes=4194304)}else{if(!g)if(a=Kt(L),a!==null){if(o.flags|=128,g=!0,d=a.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),nr(_,!0),_.tail===null&&_.tailMode==="hidden"&&!L.alternate&&!Bn)return Qr(o),null}else 2*Dn()-_.renderingStartTime>Wu&&d!==1073741824&&(o.flags|=128,g=!0,nr(_,!1),o.lanes=4194304);_.isBackwards?(L.sibling=o.child,o.child=L):(d=_.last,d!==null?d.sibling=L:o.child=L,_.last=L)}return _.tail!==null?(o=_.tail,_.rendering=o,_.tail=o.sibling,_.renderingStartTime=Dn(),o.sibling=null,d=ft.current,nn(ft,g?d&1|2:d&1),o):(Qr(o),null);case 22:case 23:return Jf(),g=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==g&&(o.flags|=8192),g&&o.mode&1?ka&1073741824&&(Qr(o),o.subtreeFlags&6&&(o.flags|=8192)):Qr(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function Rx(a,o){switch(mf(o),o.tag){case 1:return vr(o.type)&&Ra(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Au(),ut(At),ut(Ar),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return gt(o),null;case 13:if(ut(ft),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Eu()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return ut(ft),null;case 4:return Au(),null;case 10:return kh(o.type._context),null;case 22:case 23:return Jf(),null;case 24:return null;default:return null}}var Pu=!1,Vr=!1,zf=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Fu(a,o){var d=a.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(g){ar(a,o,g)}else d.current=null}function Wh(a,o,d){try{d()}catch(g){ar(a,o,g)}}var $f=!1;function _x(a,o){if(Eh=pu,a=ig(),Bc(a)){if("selectionStart"in a)var d={start:a.selectionStart,end:a.selectionEnd};else e:{d=(d=a.ownerDocument)&&d.defaultView||window;var g=d.getSelection&&d.getSelection();if(g&&g.rangeCount!==0){d=g.anchorNode;var S=g.anchorOffset,_=g.focusNode;g=g.focusOffset;try{d.nodeType,_.nodeType}catch{d=null;break e}var L=0,W=-1,Q=-1,me=0,Me=0,Fe=a,De=null;t:for(;;){for(var qe;Fe!==d||S!==0&&Fe.nodeType!==3||(W=L+S),Fe!==_||g!==0&&Fe.nodeType!==3||(Q=L+g),Fe.nodeType===3&&(L+=Fe.nodeValue.length),(qe=Fe.firstChild)!==null;)De=Fe,Fe=qe;for(;;){if(Fe===a)break t;if(De===d&&++me===S&&(W=L),De===_&&++Me===g&&(Q=L),(qe=Fe.nextSibling)!==null)break;Fe=De,De=Fe.parentNode}Fe=qe}d=W===-1||Q===-1?null:{start:W,end:Q}}else d=null}d=d||{start:0,end:0}}else d=null;for(wh={focusedElem:a,selectionRange:d},pu=!1,nt=o;nt!==null;)if(o=nt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,nt=a;else for(;nt!==null;){o=nt;try{var rt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(rt!==null){var lt=rt.memoizedProps,dr=rt.memoizedState,oe=o.stateNode,ee=oe.getSnapshotBeforeUpdate(o.elementType===o.type?lt:Ia(o.type,lt),dr);oe.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ce=o.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($e){ar(o,o.return,$e)}if(a=o.sibling,a!==null){a.return=o.return,nt=a;break}nt=o.return}return rt=$f,$f=!1,rt}function Vu(a,o,d){var g=o.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var S=g=g.next;do{if((S.tag&a)===a){var _=S.destroy;S.destroy=void 0,_!==void 0&&Wh(o,d,_)}S=S.next}while(S!==g)}}function Uf(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var d=o=o.next;do{if((d.tag&a)===a){var g=d.create;d.destroy=g()}d=d.next}while(d!==o)}}function Hf(a){var o=a.ref;if(o!==null){var d=a.stateNode;switch(a.tag){case 5:a=d;break;default:a=d}typeof o=="function"?o(a):o.current=a}}function Fg(a){var o=a.alternate;o!==null&&(a.alternate=null,Fg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[qc],delete o[Nh],delete o[gx],delete o[yx])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Xh(a){return a.tag===5||a.tag===3||a.tag===4}function Vg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Xh(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function pd(a,o,d){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?d.nodeType===8?d.parentNode.insertBefore(a,o):d.insertBefore(a,o):(d.nodeType===8?(o=d.parentNode,o.insertBefore(a,d)):(o=d,o.appendChild(a)),d=d._reactRootContainer,d!=null||o.onclick!==null||(o.onclick=ff));else if(g!==4&&(a=a.child,a!==null))for(pd(a,o,d),a=a.sibling;a!==null;)pd(a,o,d),a=a.sibling}function Bu(a,o,d){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?d.insertBefore(a,o):d.appendChild(a);else if(g!==4&&(a=a.child,a!==null))for(Bu(a,o,d),a=a.sibling;a!==null;)Bu(a,o,d),a=a.sibling}var Un=null,jr=!1;function ia(a,o,d){for(d=d.child;d!==null;)zu(a,o,d),d=d.sibling}function zu(a,o,d){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(gs,d)}catch{}switch(d.tag){case 5:Vr||Fu(d,o);case 6:var g=Un,S=jr;Un=null,ia(a,o,d),Un=g,jr=S,Un!==null&&(jr?(a=Un,d=d.stateNode,a.nodeType===8?a.parentNode.removeChild(d):a.removeChild(d)):Un.removeChild(d.stateNode));break;case 18:Un!==null&&(jr?(a=Un,d=d.stateNode,a.nodeType===8?Th(a.parentNode,d):a.nodeType===1&&Th(a,d),li(a)):Th(Un,d.stateNode));break;case 4:g=Un,S=jr,Un=d.stateNode.containerInfo,jr=!0,ia(a,o,d),Un=g,jr=S;break;case 0:case 11:case 14:case 15:if(!Vr&&(g=d.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){S=g=g.next;do{var _=S,L=_.destroy;_=_.tag,L!==void 0&&(_&2||_&4)&&Wh(d,o,L),S=S.next}while(S!==g)}ia(a,o,d);break;case 1:if(!Vr&&(Fu(d,o),g=d.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=d.memoizedProps,g.state=d.memoizedState,g.componentWillUnmount()}catch(W){ar(d,o,W)}ia(a,o,d);break;case 21:ia(a,o,d);break;case 22:d.mode&1?(Vr=(g=Vr)||d.memoizedState!==null,ia(a,o,d),Vr=g):ia(a,o,d);break;default:ia(a,o,d)}}function $u(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var d=a.stateNode;d===null&&(d=a.stateNode=new zf),o.forEach(function(g){var S=Dx.bind(null,a,g);d.has(g)||(d.add(g),g.then(S,S))})}}function Or(a,o){var d=o.deletions;if(d!==null)for(var g=0;g<d.length;g++){var S=d[g];try{var _=a,L=o,W=L;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,jr=!1;break e;case 3:Un=W.stateNode.containerInfo,jr=!0;break e;case 4:Un=W.stateNode.containerInfo,jr=!0;break e}W=W.return}if(Un===null)throw Error(i(160));zu(_,L,S),Un=null,jr=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(me){ar(S,o,me)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Bg(o,a),o=o.sibling}function Bg(a,o){var d=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(o,a),po(a),g&4){try{Vu(3,a,a.return),Uf(3,a)}catch(lt){ar(a,a.return,lt)}try{Vu(5,a,a.return)}catch(lt){ar(a,a.return,lt)}}break;case 1:Or(o,a),po(a),g&512&&d!==null&&Fu(d,d.return);break;case 5:if(Or(o,a),po(a),g&512&&d!==null&&Fu(d,d.return),a.flags&32){var S=a.stateNode;try{$a(S,"")}catch(lt){ar(a,a.return,lt)}}if(g&4&&(S=a.stateNode,S!=null)){var _=a.memoizedProps,L=d!==null?d.memoizedProps:_,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&_.type==="radio"&&_.name!=null&&en(S,_),ir(W,L);var me=ir(W,_);for(L=0;L<Q.length;L+=2){var Me=Q[L],Fe=Q[L+1];Me==="style"?Mt(S,Fe):Me==="dangerouslySetInnerHTML"?za(S,Fe):Me==="children"?$a(S,Fe):V(S,Me,Fe,me)}switch(W){case"input":sn(S,_);break;case"textarea":Hn(S,_);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!_.multiple;var qe=_.value;qe!=null?Cn(S,!!_.multiple,qe,!1):De!==!!_.multiple&&(_.defaultValue!=null?Cn(S,!!_.multiple,_.defaultValue,!0):Cn(S,!!_.multiple,_.multiple?[]:"",!1))}S[qc]=_}catch(lt){ar(a,a.return,lt)}}break;case 6:if(Or(o,a),po(a),g&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,_=a.memoizedProps;try{S.nodeValue=_}catch(lt){ar(a,a.return,lt)}}break;case 3:if(Or(o,a),po(a),g&4&&d!==null&&d.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(lt){ar(a,a.return,lt)}break;case 4:Or(o,a),po(a);break;case 13:Or(o,a),po(a),S=a.child,S.flags&8192&&(_=S.memoizedState!==null,S.stateNode.isHidden=_,!_||S.alternate!==null&&S.alternate.memoizedState!==null||(Wf=Dn())),g&4&&$u(a);break;case 22:if(Me=d!==null&&d.memoizedState!==null,a.mode&1?(Vr=(me=Vr)||Me,Or(o,a),Vr=me):Or(o,a),po(a),g&8192){if(me=a.memoizedState!==null,(a.stateNode.isHidden=me)&&!Me&&a.mode&1)for(nt=a,Me=a.child;Me!==null;){for(Fe=nt=Me;nt!==null;){switch(De=nt,qe=De.child,De.tag){case 0:case 11:case 14:case 15:Vu(4,De,De.return);break;case 1:Fu(De,De.return);var rt=De.stateNode;if(typeof rt.componentWillUnmount=="function"){g=De,d=De.return;try{o=g,rt.props=o.memoizedProps,rt.state=o.memoizedState,rt.componentWillUnmount()}catch(lt){ar(g,d,lt)}}break;case 5:Fu(De,De.return);break;case 22:if(De.memoizedState!==null){zg(Fe);continue}}qe!==null?(qe.return=De,nt=qe):zg(Fe)}Me=Me.sibling}e:for(Me=null,Fe=a;;){if(Fe.tag===5){if(Me===null){Me=Fe;try{S=Fe.stateNode,me?(_=S.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(W=Fe.stateNode,Q=Fe.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=ht("display",L))}catch(lt){ar(a,a.return,lt)}}}else if(Fe.tag===6){if(Me===null)try{Fe.stateNode.nodeValue=me?"":Fe.memoizedProps}catch(lt){ar(a,a.return,lt)}}else if((Fe.tag!==22&&Fe.tag!==23||Fe.memoizedState===null||Fe===a)&&Fe.child!==null){Fe.child.return=Fe,Fe=Fe.child;continue}if(Fe===a)break e;for(;Fe.sibling===null;){if(Fe.return===null||Fe.return===a)break e;Me===Fe&&(Me=null),Fe=Fe.return}Me===Fe&&(Me=null),Fe.sibling.return=Fe.return,Fe=Fe.sibling}}break;case 19:Or(o,a),po(a),g&4&&$u(a);break;case 21:break;default:Or(o,a),po(a)}}function po(a){var o=a.flags;if(o&2){try{e:{for(var d=a.return;d!==null;){if(Xh(d)){var g=d;break e}d=d.return}throw Error(i(160))}switch(g.tag){case 5:var S=g.stateNode;g.flags&32&&($a(S,""),g.flags&=-33);var _=Vg(a);Bu(a,_,S);break;case 3:case 4:var L=g.stateNode.containerInfo,W=Vg(a);pd(a,W,L);break;default:throw Error(i(161))}}catch(Q){ar(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function Tx(a,o,d){nt=a,Yh(a)}function Yh(a,o,d){for(var g=(a.mode&1)!==0;nt!==null;){var S=nt,_=S.child;if(S.tag===22&&g){var L=S.memoizedState!==null||Pu;if(!L){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Vr;W=Pu;var me=Vr;if(Pu=L,(Vr=Q)&&!me)for(nt=S;nt!==null;)L=nt,Q=L.child,L.tag===22&&L.memoizedState!==null?Zh(S):Q!==null?(Q.return=L,nt=Q):Zh(S);for(;_!==null;)nt=_,Yh(_),_=_.sibling;nt=S,Pu=W,Vr=me}Uu(a)}else S.subtreeFlags&8772&&_!==null?(_.return=S,nt=_):Uu(a)}}function Uu(a){for(;nt!==null;){var o=nt;if(o.flags&8772){var d=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Vr||Uf(5,o);break;case 1:var g=o.stateNode;if(o.flags&4&&!Vr)if(d===null)g.componentDidMount();else{var S=o.elementType===o.type?d.memoizedProps:Ia(o.type,d.memoizedProps);g.componentDidUpdate(S,d.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var _=o.updateQueue;_!==null&&_u(o,_,g);break;case 3:var L=o.updateQueue;if(L!==null){if(d=null,o.child!==null)switch(o.child.tag){case 5:d=o.child.stateNode;break;case 1:d=o.child.stateNode}_u(o,L,d)}break;case 5:var W=o.stateNode;if(d===null&&o.flags&4){d=W;var Q=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&d.focus();break;case"img":Q.src&&(d.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var me=o.alternate;if(me!==null){var Me=me.memoizedState;if(Me!==null){var Fe=Me.dehydrated;Fe!==null&&li(Fe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Vr||o.flags&512&&Hf(o)}catch(De){ar(o,o.return,De)}}if(o===a){nt=null;break}if(d=o.sibling,d!==null){d.return=o.return,nt=d;break}nt=o.return}}function zg(a){for(;nt!==null;){var o=nt;if(o===a){nt=null;break}var d=o.sibling;if(d!==null){d.return=o.return,nt=d;break}nt=o.return}}function Zh(a){for(;nt!==null;){var o=nt;try{switch(o.tag){case 0:case 11:case 15:var d=o.return;try{Uf(4,o)}catch(Q){ar(o,d,Q)}break;case 1:var g=o.stateNode;if(typeof g.componentDidMount=="function"){var S=o.return;try{g.componentDidMount()}catch(Q){ar(o,S,Q)}}var _=o.return;try{Hf(o)}catch(Q){ar(o,_,Q)}break;case 5:var L=o.return;try{Hf(o)}catch(Q){ar(o,L,Q)}}}catch(Q){ar(o,o.return,Q)}if(o===a){nt=null;break}var W=o.sibling;if(W!==null){W.return=o.return,nt=W;break}nt=o.return}}var Nx=Math.ceil,jl=U.ReactCurrentDispatcher,Gf=U.ReactCurrentOwner,yi=U.ReactCurrentBatchConfig,zt=0,rr=null,zn=null,Cr=0,ka=0,Hu=Nn(0),Sr=0,hd=null,Ol=0,Gu=0,qh=0,Vs=null,Kr=null,Wf=0,Wu=1/0,Yo=null,Xf=!1,Jh=null,bi=null,Xu=!1,xi=null,Yf=0,vd=0,Zf=null,md=-1,Dl=0;function Dr(){return zt&6?Dn():md!==-1?md:md=Dn()}function Zo(a){return a.mode&1?zt&2&&Cr!==0?Cr&-Cr:bx.transition!==null?(Dl===0&&(Dl=ul()),Dl):(a=Ut,a!==0||(a=window.event,a=a===void 0?16:Oc(a.type)),a):1}function Zn(a,o,d,g){if(50<vd)throw vd=0,Zf=null,Error(i(185));bs(a,d,g),(!(zt&2)||a!==rr)&&(a===rr&&(!(zt&2)&&(Gu|=d),Sr===4&&ho(a,Cr)),Er(a,g),d===1&&zt===0&&!(o.mode&1)&&(Wu=Dn()+500,Ns&&so()))}function Er(a,o){var d=a.callbackNode;ys(a,o);var g=to(a,a===rr?Cr:0);if(g===0)d!==null&&On(d),a.callbackNode=null,a.callbackPriority=0;else if(o=g&-g,a.callbackPriority!==o){if(d!=null&&On(d),o===1)a.tag===0?yg(Yu.bind(null,a)):hf(Yu.bind(null,a)),mg(function(){!(zt&6)&&so()}),d=null;else{switch(Ic(g)){case 1:d=Sc;break;case 4:d=eo;break;case 16:d=Lt;break;case 536870912:d=jo;break;default:d=Lt}d=Zg(d,qf.bind(null,a))}a.callbackPriority=o,a.callbackNode=d}}function qf(a,o){if(md=-1,Dl=0,zt&6)throw Error(i(327));var d=a.callbackNode;if(Zu()&&a.callbackNode!==d)return null;var g=to(a,a===rr?Cr:0);if(g===0)return null;if(g&30||g&a.expiredLanes||o)o=Qf(a,g);else{o=g;var S=zt;zt|=2;var _=Ug();(rr!==a||Cr!==o)&&(Yo=null,Wu=Dn()+500,Ml(a,o));do try{Ax();break}catch(W){$g(a,W)}while(!0);Dh(),jl.current=_,zt=S,zn!==null?o=0:(rr=null,Cr=0,o=Sr)}if(o!==0){if(o===2&&(S=no(a),S!==0&&(g=S,o=kl(a,S))),o===1)throw d=hd,Ml(a,0),ho(a,g),Er(a,Dn()),d;if(o===6)ho(a,g);else{if(S=a.current.alternate,!(g&30)&&!Kh(S)&&(o=Qf(a,g),o===2&&(_=no(a),_!==0&&(g=_,o=kl(a,_))),o===1))throw d=hd,Ml(a,0),ho(a,g),Er(a,Dn()),d;switch(a.finishedWork=S,a.finishedLanes=g,o){case 0:case 1:throw Error(i(345));case 2:Bs(a,Kr,Yo);break;case 3:if(ho(a,g),(g&130023424)===g&&(o=Wf+500-Dn(),10<o)){if(to(a,0)!==0)break;if(S=a.suspendedLanes,(S&g)!==g){Dr(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=Xc(Bs.bind(null,a,Kr,Yo),o);break}Bs(a,Kr,Yo);break;case 4:if(ho(a,g),(g&4194240)===g)break;for(o=a.eventTimes,S=-1;0<g;){var L=31-ra(g);_=1<<L,L=o[L],L>S&&(S=L),g&=~_}if(g=S,g=Dn()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*Nx(g/1960))-g,10<g){a.timeoutHandle=Xc(Bs.bind(null,a,Kr,Yo),g);break}Bs(a,Kr,Yo);break;case 5:Bs(a,Kr,Yo);break;default:throw Error(i(329))}}}return Er(a,Dn()),a.callbackNode===d?qf.bind(null,a):null}function kl(a,o){var d=Vs;return a.current.memoizedState.isDehydrated&&(Ml(a,o).flags|=256),a=Qf(a,o),a!==2&&(o=Kr,Kr=d,o!==null&&Qh(o)),a}function Qh(a){Kr===null?Kr=a:Kr.push.apply(Kr,a)}function Kh(a){for(var o=a;;){if(o.flags&16384){var d=o.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var g=0;g<d.length;g++){var S=d[g],_=S.getSnapshot;S=S.value;try{if(!Bi(_(),S))return!1}catch{return!1}}}if(d=o.child,o.subtreeFlags&16384&&d!==null)d.return=o,o=d;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ho(a,o){for(o&=~qh,o&=~Gu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var d=31-ra(o),g=1<<d;a[d]=-1,o&=~g}}function Yu(a){if(zt&6)throw Error(i(327));Zu();var o=to(a,0);if(!(o&1))return Er(a,Dn()),null;var d=Qf(a,o);if(a.tag!==0&&d===2){var g=no(a);g!==0&&(o=g,d=kl(a,g))}if(d===1)throw d=hd,Ml(a,0),ho(a,o),Er(a,Dn()),d;if(d===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Bs(a,Kr,Yo),Er(a,Dn()),null}function ev(a,o){var d=zt;zt|=1;try{return a(o)}finally{zt=d,zt===0&&(Wu=Dn()+500,Ns&&so())}}function vo(a){xi!==null&&xi.tag===0&&!(zt&6)&&Zu();var o=zt;zt|=1;var d=yi.transition,g=Ut;try{if(yi.transition=null,Ut=1,a)return a()}finally{Ut=g,yi.transition=d,zt=o,!(zt&6)&&so()}}function Jf(){ka=Hu.current,ut(Hu)}function Ml(a,o){a.finishedWork=null,a.finishedLanes=0;var d=a.timeoutHandle;if(d!==-1&&(a.timeoutHandle=-1,Yc(d)),zn!==null)for(d=zn.return;d!==null;){var g=d;switch(mf(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Ra();break;case 3:Au(),ut(At),ut(Ar),hi();break;case 5:gt(g);break;case 4:Au();break;case 13:ut(ft);break;case 19:ut(ft);break;case 10:kh(g.type._context);break;case 22:case 23:Jf()}d=d.return}if(rr=a,zn=a=zs(a.current,null),Cr=ka=o,Sr=0,hd=null,qh=Gu=Ol=0,Kr=Vs=null,Jr!==null){for(o=0;o<Jr.length;o++)if(d=Jr[o],g=d.interleaved,g!==null){d.interleaved=null;var S=g.next,_=d.pending;if(_!==null){var L=_.next;_.next=S,g.next=L}d.pending=g}Jr=null}return a}function $g(a,o){do{var d=zn;try{if(Dh(),nd.current=Mf,lr){for(var g=Yn.memoizedState;g!==null;){var S=g.queue;S!==null&&(S.pending=null),g=g.next}lr=!1}if(Sl=0,_e=sr=Yn=null,xt=!1,co=0,Gf.current=null,d===null||d.return===null){Sr=1,hd=o,zn=null;break}e:{var _=a,L=d.return,W=d,Q=o;if(o=Cr,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var me=Q,Me=W,Fe=Me.tag;if(!(Me.mode&1)&&(Fe===0||Fe===11||Fe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var qe=Dg(L);if(qe!==null){qe.flags&=-257,Uh(qe,L,W,_,o),qe.mode&1&&ud(_,me,o),o=qe,Q=me;var rt=o.updateQueue;if(rt===null){var lt=new Set;lt.add(Q),o.updateQueue=lt}else rt.add(Q);break e}else{if(!(o&1)){ud(_,me,o),gd();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var dr=Dg(L);if(dr!==null){!(dr.flags&65536)&&(dr.flags|=256),Uh(dr,L,W,_,o),mr(Ps(Q,W));break e}}_=Q=Ps(Q,W),Sr!==4&&(Sr=2),Vs===null?Vs=[_]:Vs.push(_),_=L;do{switch(_.tag){case 3:_.flags|=65536,o&=-o,_.lanes|=o;var oe=jg(_,Q,o);Sg(_,oe);break e;case 1:W=Q;var ee=_.type,ce=_.stateNode;if(!(_.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(bi===null||!bi.has(ce)))){_.flags|=65536,o&=-o,_.lanes|=o;var $e=Og(_,W,o);Sg(_,$e);break e}}_=_.return}while(_!==null)}Gg(d)}catch(ct){o=ct,zn===d&&d!==null&&(zn=d=d.return);continue}break}while(!0)}function Ug(){var a=jl.current;return jl.current=Mf,a===null?Mf:a}function gd(){(Sr===0||Sr===3||Sr===2)&&(Sr=4),rr===null||!(Ol&268435455)&&!(Gu&268435455)||ho(rr,Cr)}function Qf(a,o){var d=zt;zt|=2;var g=Ug();(rr!==a||Cr!==o)&&(Yo=null,Ml(a,o));do try{Ix();break}catch(S){$g(a,S)}while(!0);if(Dh(),zt=d,jl.current=g,zn!==null)throw Error(i(261));return rr=null,Cr=0,Sr}function Ix(){for(;zn!==null;)Hg(zn)}function Ax(){for(;zn!==null&&!Zr();)Hg(zn)}function Hg(a){var o=Yg(a.alternate,a,ka);a.memoizedProps=a.pendingProps,o===null?Gg(a):zn=o,Gf.current=null}function Gg(a){var o=a;do{var d=o.alternate;if(a=o.return,o.flags&32768){if(d=Rx(d,o),d!==null){d.flags&=32767,zn=d;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Sr=6,zn=null;return}}else if(d=wx(d,o,ka),d!==null){zn=d;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);Sr===0&&(Sr=5)}function Bs(a,o,d){var g=Ut,S=yi.transition;try{yi.transition=null,Ut=1,jx(a,o,d,g)}finally{yi.transition=S,Ut=g}return null}function jx(a,o,d,g){do Zu();while(xi!==null);if(zt&6)throw Error(i(327));d=a.finishedWork;var S=a.finishedLanes;if(d===null)return null;if(a.finishedWork=null,a.finishedLanes=0,d===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var _=d.lanes|d.childLanes;if(Tc(a,_),a===rr&&(zn=rr=null,Cr=0),!(d.subtreeFlags&2064)&&!(d.flags&2064)||Xu||(Xu=!0,Zg(Lt,function(){return Zu(),null})),_=(d.flags&15990)!==0,d.subtreeFlags&15990||_){_=yi.transition,yi.transition=null;var L=Ut;Ut=1;var W=zt;zt|=4,Gf.current=null,_x(a,d),Bg(d,a),hl(wh),pu=!!Eh,wh=Eh=null,a.current=d,Tx(d),Ki(),zt=W,Ut=L,yi.transition=_}else a.current=d;if(Xu&&(Xu=!1,xi=a,Yf=S),_=a.pendingLanes,_===0&&(bi=null),Ec(d.stateNode),Er(a,Dn()),o!==null)for(g=a.onRecoverableError,d=0;d<o.length;d++)S=o[d],g(S.value,{componentStack:S.stack,digest:S.digest});if(Xf)throw Xf=!1,a=Jh,Jh=null,a;return Yf&1&&a.tag!==0&&Zu(),_=a.pendingLanes,_&1?a===Zf?vd++:(vd=0,Zf=a):vd=0,so(),null}function Zu(){if(xi!==null){var a=Ic(Yf),o=yi.transition,d=Ut;try{if(yi.transition=null,Ut=16>a?16:a,xi===null)var g=!1;else{if(a=xi,xi=null,Yf=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,nt=a.current;nt!==null;){var _=nt,L=_.child;if(nt.flags&16){var W=_.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var me=W[Q];for(nt=me;nt!==null;){var Me=nt;switch(Me.tag){case 0:case 11:case 15:Vu(8,Me,_)}var Fe=Me.child;if(Fe!==null)Fe.return=Me,nt=Fe;else for(;nt!==null;){Me=nt;var De=Me.sibling,qe=Me.return;if(Fg(Me),Me===me){nt=null;break}if(De!==null){De.return=qe,nt=De;break}nt=qe}}}var rt=_.alternate;if(rt!==null){var lt=rt.child;if(lt!==null){rt.child=null;do{var dr=lt.sibling;lt.sibling=null,lt=dr}while(lt!==null)}}nt=_}}if(_.subtreeFlags&2064&&L!==null)L.return=_,nt=L;else e:for(;nt!==null;){if(_=nt,_.flags&2048)switch(_.tag){case 0:case 11:case 15:Vu(9,_,_.return)}var oe=_.sibling;if(oe!==null){oe.return=_.return,nt=oe;break e}nt=_.return}}var ee=a.current;for(nt=ee;nt!==null;){L=nt;var ce=L.child;if(L.subtreeFlags&2064&&ce!==null)ce.return=L,nt=ce;else e:for(L=ee;nt!==null;){if(W=nt,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Uf(9,W)}}catch(ct){ar(W,W.return,ct)}if(W===L){nt=null;break e}var $e=W.sibling;if($e!==null){$e.return=W.return,nt=$e;break e}nt=W.return}}if(zt=S,so(),Ca&&typeof Ca.onPostCommitFiberRoot=="function")try{Ca.onPostCommitFiberRoot(gs,a)}catch{}g=!0}return g}finally{Ut=d,yi.transition=o}}return!1}function Wg(a,o,d){o=Ps(d,o),o=jg(a,o,1),a=Ds(a,o,1),o=Dr(),a!==null&&(bs(a,1,o),Er(a,o))}function ar(a,o,d){if(a.tag===3)Wg(a,a,d);else for(;o!==null;){if(o.tag===3){Wg(o,a,d);break}else if(o.tag===1){var g=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(bi===null||!bi.has(g))){a=Ps(d,a),a=Og(o,a,1),o=Ds(o,a,1),a=Dr(),o!==null&&(bs(o,1,a),Er(o,a));break}}o=o.return}}function Ox(a,o,d){var g=a.pingCache;g!==null&&g.delete(o),o=Dr(),a.pingedLanes|=a.suspendedLanes&d,rr===a&&(Cr&d)===d&&(Sr===4||Sr===3&&(Cr&130023424)===Cr&&500>Dn()-Wf?Ml(a,0):qh|=d),Er(a,o)}function Xg(a,o){o===0&&(a.mode&1?(o=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):o=1);var d=Dr();a=Go(a,o),a!==null&&(bs(a,o,d),Er(a,d))}function tv(a){var o=a.memoizedState,d=0;o!==null&&(d=o.retryLane),Xg(a,d)}function Dx(a,o){var d=0;switch(a.tag){case 13:var g=a.stateNode,S=a.memoizedState;S!==null&&(d=S.retryLane);break;case 19:g=a.stateNode;break;default:throw Error(i(314))}g!==null&&g.delete(o),Xg(a,d)}var Yg;Yg=function(a,o,d){if(a!==null)if(a.memoizedProps!==o.pendingProps||At.current)Oa=!0;else{if(!(a.lanes&d)&&!(o.flags&128))return Oa=!1,Xo(a,o,d);Oa=!!(a.flags&131072)}else Oa=!1,Bn&&o.flags&1048576&&As(o,bl,o.index);switch(o.lanes=0,o.tag){case 2:var g=o.type;fd(a,o),a=o.pendingProps;var S=Xa(o,Ar.current);or(o,d),S=El(null,o,g,a,S,d);var _=Ms();return o.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vr(g)?(_=!0,yl(o)):_=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Mh(o),S.updater=xf,o.stateNode=S,S._reactInternals=o,Ph(o,g,a,d),o=Pf(null,o,g,!0,_,d)):(o.tag=0,Bn&&_&&vf(o),ur(null,o,S,d),o=o.child),o;case 16:g=o.elementType;e:{switch(fd(a,o),a=o.pendingProps,S=g._init,g=S(g._payload),o.type=g,S=o.tag=kx(g),a=Ia(g,a),S){case 0:o=Dt(null,o,g,a,d);break e;case 1:o=cd(null,o,g,a,d);break e;case 11:o=ku(null,o,g,a,d);break e;case 14:o=Fs(null,o,g,Ia(g.type,a),d);break e}throw Error(i(306,g,""))}return o;case 0:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),Dt(a,o,g,S,d);case 1:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),cd(a,o,g,S,d);case 3:e:{if(Ex(o),a===null)throw Error(i(387));g=o.pendingProps,_=o.memoizedState,S=_.element,Cg(a,o),Qc(o,g,null,d);var L=o.memoizedState;if(g=L.element,_.isDehydrated)if(_={element:g,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},o.updateQueue.baseState=_,o.memoizedState=_,o.flags&256){S=Ps(Error(i(423)),o),o=Mg(a,o,g,d,S);break e}else if(g!==S){S=Ps(Error(i(424)),o),o=Mg(a,o,g,d,S);break e}else for(Za=Wa(o.stateNode.containerInfo.firstChild),Ya=o,Bn=!0,pi=null,d=Ng(o,null,g,d),o.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Eu(),g===S){o=cr(a,o,d);break e}ur(a,o,g,d)}o=o.child}return o;case 5:return Cf(o),a===null&&gf(o),g=o.type,S=o.pendingProps,_=a!==null?a.memoizedProps:null,L=S.children,gl(g,S)?L=null:_!==null&&gl(g,_)&&(o.flags|=32),Il(a,o),ur(a,o,L,d),o.child;case 6:return a===null&&gf(o),null;case 13:return Lg(a,o,d);case 4:return Fh(o,o.stateNode.containerInfo),g=o.pendingProps,a===null?o.child=Nu(o,null,g,d):ur(a,o,g,d),o.child;case 11:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),ku(a,o,g,S,d);case 7:return ur(a,o,o.pendingProps,d),o.child;case 8:return ur(a,o,o.pendingProps.children,d),o.child;case 12:return ur(a,o,o.pendingProps.children,d),o.child;case 10:e:{if(g=o.type._context,S=o.pendingProps,_=o.memoizedProps,L=S.value,nn(wu,g._currentValue),g._currentValue=L,_!==null)if(Bi(_.value,L)){if(_.children===S.children&&!At.current){o=cr(a,o,d);break e}}else for(_=o.child,_!==null&&(_.return=o);_!==null;){var W=_.dependencies;if(W!==null){L=_.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===g){if(_.tag===1){Q=kn(-1,d&-d),Q.tag=2;var me=_.updateQueue;if(me!==null){me=me.shared;var Me=me.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),me.pending=Q}}_.lanes|=d,Q=_.alternate,Q!==null&&(Q.lanes|=d),js(_.return,d,o),W.lanes|=d;break}Q=Q.next}}else if(_.tag===10)L=_.type===o.type?null:_.child;else if(_.tag===18){if(L=_.return,L===null)throw Error(i(341));L.lanes|=d,W=L.alternate,W!==null&&(W.lanes|=d),js(L,d,o),L=_.sibling}else L=_.child;if(L!==null)L.return=_;else for(L=_;L!==null;){if(L===o){L=null;break}if(_=L.sibling,_!==null){_.return=L.return,L=_;break}L=L.return}_=L}ur(a,o,S.children,d),o=o.child}return o;case 9:return S=o.type,g=o.pendingProps.children,or(o,d),S=Ue(S),g=g(S),o.flags|=1,ur(a,o,g,d),o.child;case 14:return g=o.type,S=Ia(g,o.pendingProps),S=Ia(g.type,S),Fs(a,o,g,S,d);case 15:return Lf(a,o,o.type,o.pendingProps,d);case 17:return g=o.type,S=o.pendingProps,S=o.elementType===g?S:Ia(g,S),fd(a,o),o.tag=1,vr(g)?(a=!0,yl(o)):a=!1,or(o,d),wg(o,g,S),Ph(o,g,S,d),Pf(null,o,g,!0,a,d);case 19:return Gh(a,o,d);case 22:return Da(a,o,d)}throw Error(i(156,o.tag))};function Zg(a,o){return jn(a,o)}function qg(a,o,d,g){this.tag=a,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ci(a,o,d,g){return new qg(a,o,d,g)}function nv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function kx(a){if(typeof a=="function")return nv(a)?1:0;if(a!=null){if(a=a.$$typeof,a===ae)return 11;if(a===xe)return 14}return 2}function zs(a,o){var d=a.alternate;return d===null?(d=Ci(a.tag,o,a.key,a.mode),d.elementType=a.elementType,d.type=a.type,d.stateNode=a.stateNode,d.alternate=a,a.alternate=d):(d.pendingProps=o,d.type=a.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=a.flags&14680064,d.childLanes=a.childLanes,d.lanes=a.lanes,d.child=a.child,d.memoizedProps=a.memoizedProps,d.memoizedState=a.memoizedState,d.updateQueue=a.updateQueue,o=a.dependencies,d.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},d.sibling=a.sibling,d.index=a.index,d.ref=a.ref,d}function Kf(a,o,d,g,S,_){var L=2;if(g=a,typeof a=="function")nv(a)&&(L=1);else if(typeof a=="string")L=5;else e:switch(a){case X:return Ll(d.children,S,_,o);case Y:L=8,S|=8;break;case pe:return a=Ci(12,d,o,S|2),a.elementType=pe,a.lanes=_,a;case Re:return a=Ci(13,d,o,S),a.elementType=Re,a.lanes=_,a;case be:return a=Ci(19,d,o,S),a.elementType=be,a.lanes=_,a;case Le:return ep(d,S,_,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ie:L=10;break e;case ge:L=9;break e;case ae:L=11;break e;case xe:L=14;break e;case Ae:L=16,g=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=Ci(L,d,o,S),o.elementType=a,o.type=g,o.lanes=_,o}function Ll(a,o,d,g){return a=Ci(7,a,g,o),a.lanes=d,a}function ep(a,o,d,g){return a=Ci(22,a,g,o),a.elementType=Le,a.lanes=d,a.stateNode={isHidden:!1},a}function tp(a,o,d){return a=Ci(6,a,null,o),a.lanes=d,a}function yd(a,o,d){return o=Ci(4,a.children!==null?a.children:[],a.key,o),o.lanes=d,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function bd(a,o,d,g,S){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=g,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function rv(a,o,d,g,S,_,L,W,Q){return a=new bd(a,o,d,W,Q),o===1?(o=1,_===!0&&(o|=8)):o=0,_=Ci(3,null,null,o),a.current=_,_.stateNode=a,_.memoizedState={element:g,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mh(_),a}function Jg(a,o,d){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:g==null?null:""+g,children:a,containerInfo:o,implementation:d}}function av(a){if(!a)return ci;a=a._reactInternals;e:{if(Ye(a)!==a||a.tag!==1)throw Error(i(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(a.tag===1){var d=a.type;if(vr(d))return Ts(a,d,o)}return o}function iv(a,o,d,g,S,_,L,W,Q){return a=rv(d,g,!0,a,S,_,L,W,Q),a.context=av(null),d=a.current,g=Dr(),S=Zo(d),_=kn(g,S),_.callback=o??null,Ds(d,_,S),a.current.lanes=S,bs(a,S,g),Er(a,g),a}function np(a,o,d,g){var S=o.current,_=Dr(),L=Zo(S);return d=av(d),o.context===null?o.context=d:o.pendingContext=d,o=kn(_,L),o.payload={element:a},g=g===void 0?null:g,g!==null&&(o.callback=g),a=Ds(S,o,L),a!==null&&(Zn(a,S,L,_),bf(a,S,L)),L}function xd(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Qg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var d=a.retryLane;a.retryLane=d!==0&&d<o?d:o}}function ov(a,o){Qg(a,o),(a=a.alternate)&&Qg(a,o)}function Mx(){return null}var sv=typeof reportError=="function"?reportError:function(a){console.error(a)};function rp(a){this._internalRoot=a}Cd.prototype.render=rp.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));np(a,o,null,null)},Cd.prototype.unmount=rp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){np(null,a,null,null)}),o[zi]=null}};function Cd(a){this._internalRoot=a}Cd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Yt();a={blockedOn:null,target:a,priority:o};for(var d=0;d<Fn.length&&o!==0&&o<Fn[d].priority;d++);Fn.splice(d,0,a),d===0&&Fi(a)}};function $s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function ap(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Kg(){}function Lx(a,o,d,g,S){if(S){if(typeof g=="function"){var _=g;g=function(){var me=xd(L);_.call(me)}}var L=iv(o,g,a,0,null,!1,!1,"",Kg);return a._reactRootContainer=L,a[zi]=L.current,ao(a.nodeType===8?a.parentNode:a),vo(),L}for(;S=a.lastChild;)a.removeChild(S);if(typeof g=="function"){var W=g;g=function(){var me=xd(Q);W.call(me)}}var Q=rv(a,0,!1,null,null,!1,!1,"",Kg);return a._reactRootContainer=Q,a[zi]=Q.current,ao(a.nodeType===8?a.parentNode:a),vo(function(){np(o,Q,d,g)}),Q}function ip(a,o,d,g,S){var _=d._reactRootContainer;if(_){var L=_;if(typeof S=="function"){var W=S;S=function(){var Q=xd(L);W.call(Q)}}np(o,L,a,S)}else L=Lx(d,o,a,S,g);return xd(L)}cu=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var d=Oo(o.pendingLanes);d!==0&&(Nc(o,d|1),Er(o,Dn()),!(zt&6)&&(Wu=Dn()+500,so()))}break;case 13:vo(function(){var g=Go(a,1);if(g!==null){var S=Dr();Zn(g,a,1,S)}}),ov(a,1)}},xs=function(a){if(a.tag===13){var o=Go(a,134217728);if(o!==null){var d=Dr();Zn(o,a,134217728,d)}ov(a,134217728)}},Ac=function(a){if(a.tag===13){var o=Zo(a),d=Go(a,o);if(d!==null){var g=Dr();Zn(d,a,o,g)}ov(a,o)}},Yt=function(){return Ut},du=function(a,o){var d=Ut;try{return Ut=a,o()}finally{Ut=d}},hn=function(a,o,d){switch(o){case"input":if(sn(a,d),o=d.name,d.type==="radio"&&o!=null){for(d=a;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<d.length;o++){var g=d[o];if(g!==a&&g.form===a.form){var S=pf(g);if(!S)throw Error(i(90));ot(g),sn(g,S)}}}break;case"textarea":Hn(a,d);break;case"select":o=d.value,o!=null&&Cn(a,!!d.multiple,o,!1)}},vs=ev,il=vo;var Px={usingClientEntryPoint:!1,Events:[io,Su,pf,ki,ai,ev]},Sd={findFiberByHostInstance:Uo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ey={bundleType:Sd.bundleType,version:Sd.version,rendererPackageName:Sd.rendererPackageName,rendererConfig:Sd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=vt(a),a===null?null:a.stateNode},findFiberByHostInstance:Sd.findFiberByHostInstance||Mx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var op=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!op.isDisabled&&op.supportsFiber)try{gs=op.inject(ey),Ca=op}catch{}}return Ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Px,Ti.createPortal=function(a,o){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$s(o))throw Error(i(200));return Jg(a,o,null,d)},Ti.createRoot=function(a,o){if(!$s(a))throw Error(i(299));var d=!1,g="",S=sv;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=rv(a,1,!1,null,null,d,!1,g,S),a[zi]=o.current,ao(a.nodeType===8?a.parentNode:a),new rp(o)},Ti.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=vt(o),a=a===null?null:a.stateNode,a},Ti.flushSync=function(a){return vo(a)},Ti.hydrate=function(a,o,d){if(!ap(o))throw Error(i(200));return ip(null,a,o,!0,d)},Ti.hydrateRoot=function(a,o,d){if(!$s(a))throw Error(i(405));var g=d!=null&&d.hydratedSources||null,S=!1,_="",L=sv;if(d!=null&&(d.unstable_strictMode===!0&&(S=!0),d.identifierPrefix!==void 0&&(_=d.identifierPrefix),d.onRecoverableError!==void 0&&(L=d.onRecoverableError)),o=iv(o,null,a,1,d??null,S,!1,_,L),a[zi]=o.current,ao(a),g)for(a=0;a<g.length;a++)d=g[a],S=d._getVersion,S=S(d._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[d,S]:o.mutableSourceEagerHydrationData.push(d,S);return new Cd(o)},Ti.render=function(a,o,d){if(!ap(o))throw Error(i(200));return ip(null,a,o,!1,d)},Ti.unmountComponentAtNode=function(a){if(!ap(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){ip(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},Ti.unstable_batchedUpdates=ev,Ti.unstable_renderSubtreeIntoContainer=function(a,o,d,g){if(!ap(d))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return ip(a,o,d,!1,g)},Ti.version="18.2.0-next-9e3b772b8-20220608",Ti}var Ni={},rI;function Az(){if(rI)return Ni;rI=1;var t={};/**
97
97
  * @license React
98
98
  * react-dom.development.js
99
99
  *
@@ -101,7 +101,7 @@ 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=mj(),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,I=7,M=8,P=9,V=10,U=11,F=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,Be=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++)Be.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 Tr(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 Nr=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===Nr: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===Nr)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 Ir(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,Nr,!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 A=e.getAttribute(b);return A===""?!0:hn(n,s,c,!1)?A:A===""+s?s:A}}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=Ir(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 A=p.propertyName;if(s===null){var O=p.type;e[A]=O===un?!1:""}else e[A]=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`
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=mj(),l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=!1;function f(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,I=7,M=8,P=9,V=10,U=11,F=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,Be=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++)Be.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 Tr(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 Nr=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===Nr: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===Nr)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 Ir(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,Nr,!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 A=e.getAttribute(b);return A===""?!0:hn(n,s,c,!1)?A:A===""+s?s:A}}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=Ir(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 A=p.propertyName;if(s===null){var O=p.type;e[A]=O===un?!1:""}else e[A]=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
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 A=ve.stack.split(`
106
106
  `),O=c.stack.split(`
107
107
  `),B=A.length-1,H=O.length-1;B>=1&&H>=0&&A[B]!==O[H];)H--;for(;B>=1&&H>=0;B--,H--)if(A[B]!==O[H]){if(B!==1||H!==1)do if(B--,H--,H<0||A[B]!==O[H]){var te=`
@@ -109,7 +109,7 @@ Error generating stack: `+_.message+`
109
109
  Error generating stack: `+c.message+`
110
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 P: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 N: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 F: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(A){Hn(A),c=""+A,b.call(this,A)}}),Object.defineProperty(e,n,{enumerable:s.enumerable});var E={getValue:function(){return c},setValue:function(A){Hn(A),c=""+A},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 A=c.name;A!==""&&(c.name=""),c.defaultChecked=!c.defaultChecked,c.defaultChecked=!!c._wrapperState.initialChecked,A!==""&&(c.name=A)}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 A=gy(E);if(!A)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");hu(E),ye(E,A)}}}}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={},A=0;A<b.length;A++)E["$"+b[A]]=!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 lh(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 ax(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 uh(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 ix(e,n){Gm(e,n)}var Po="http://www.w3.org/1999/xhtml",ox="http://www.w3.org/1998/Math/MathML",rf="http://www.w3.org/2000/svg";function ch(e){switch(e){case"svg":return rf;case"math":return ox;default:return Po}}function dh(e,n){return e==null||e===Po?ch(n):e===rf&&n==="foreignObject"?Po:e}var sx=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=sx(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,fh=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 lx=/([A-Z])/g,ux=/^ms-/;function cx(e){return e.replace(lx,"-$1").toLowerCase().replace(ux,"-ms-")}var ph=function(){};{var qm=/^(?:webkit|moz|o)[A-Z]/,Fc=/^-ms-/,Vc=/-(.)/g,Jm=/;\s*$/,Vo={},hh={},vh=!1,of=!1,mh=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,mh(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){hh.hasOwnProperty(n)&&hh[n]||(hh[n]=!0,h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Jm,"")))},dx=function(e,n){vh||(vh=!0,h("`NaN` is an invalid value for the `%s` css style property.",e))},fx=function(e,n){of||(of=!0,h("`Infinity` is an invalid value for the `%s` css style property.",e))};ph=function(e,n){e.indexOf("-")>-1?Qm(e):qm.test(e)?Km(e):Jm.test(n)&&eg(e,n),typeof n=="number"&&(isNaN(n)?dx(e,n):isFinite(n)||fx(e,n))}}var px=ph;function hx(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:cx(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||px(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],A=c[b];if(A&&E!==A){var O=E+","+A;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,A)}}}}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+"]*$"),gh=new RegExp("^(aria)[A-Z]["+ht+"]*$");function og(e,n){{if(dt.call(Rs,n)&&Rs[n])return!0;if(gh.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={},yh=/^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 A=E.hasOwnProperty(p)?E[p]:null;if(A!=null)return h("Invalid event handler property `%s`. Did you mean `%s`?",n,A),qr[n]=!0,!0;if(yh.test(n))return h("Unknown event handler property `%s`. It will be ignored.",n),qr[n]=!0,!0}else if(yh.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=Ir(n),B=O!==null&&O.type===Nr;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(A){return"`"+A+"`"}).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,vx=cf|Uc|Hc,Bo=null;function mx(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 bh(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 xh(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,bh(e),n)for(var s=0;s<n.length;s++)bh(n[s])}}var Ch=function(e,n){return e(n)},hg=function(){},Sh=!1;function vg(){var e=df();e&&(hg(),ml())}function Wc(e,n,s){if(Sh)return e(n,s);Sh=!0;try{return Ch(e,n,s)}finally{Sh=!1,vg()}}function ff(e,n,s){Ch=e,hg=s}function Eh(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function wh(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&&Eh(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(wh(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 Rh(e,n,s,c,p,b,E,A,O){var B=Array.prototype.slice.call(arguments,3);try{n.apply(s,B)}catch(H){this.onError(H)}}var mg=Rh;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var _h=document.createElement("react");mg=function(n,s,c,p,b,E,A,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(){_h.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),_h.addEventListener(Ee,yt,!1),H.initEvent(Ee,!1,!1),_h.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(),Rh.apply(this,arguments)}}var Th=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,A,O){Wa=!1,Zc=null,Th.apply(qc,arguments)}function Nh(e,n,s,c,p,b,E,A,O){if(zi.apply(this,arguments),Wa){var B=Uo();$o||($o=!0,ui=B)}}function gx(){if($o){var e=ui;throw $o=!1,ui=null,e}}function yx(){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,Ar=64,At=128,aa=256,Xa=512,vr=1024,Ra=2048,oo=4096,Ts=8192,yl=16384,gg=Ra|ut|Ar|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|Ar|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 A=b.return;if(A!==null){c=p=A;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 Ih(e){var n=pi(e);return n!==null?Ah(n):null}function Ah(e){if(e.tag===N||e.tag===T)return e;for(var n=e.child;n!==null;){var s=Ah(n);if(s!==null)return s;n=n.sibling}return null}function jh(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 Oh=i.unstable_scheduleCallback,yf=i.unstable_cancelCallback,bg=i.unstable_shouldYield,Eu=i.unstable_requestPaint,mr=i.unstable_now,bx=i.unstable_getCurrentPriorityLevel,Ia=i.unstable_ImmediatePriority,wu=i.unstable_UserBlockingPriority,lo=i.unstable_NormalPriority,Ru=i.unstable_LowPriority,Jc=i.unstable_IdlePriority,Dh=i.unstable_yieldValue,kh=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 Mh(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 Dh=="function"&&(kh(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 Lh(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 Ph(){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 Fh(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,Vh=Math.log,Sl=Math.LN2;function Yn(e){var n=e>>>0;return n===0?32:31-(Vh(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,Bh=Tl,Nl=134217728,zh=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&zh;if(E!==_e){var A=E&~p;if(A!==_e)c=Du(A);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 xx(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 Cx(e,n){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,b=e.expirationTimes,E=s;E>0;){var A=Fs(E),O=1<<A,B=b[A];B===Mn?((O&c)===_e||(O&p)!==_e)&&(b[A]=xx(O,n)):B<=n&&(e.expiredLanes|=O),E&=~O}}function Sx(e){return Du(e.pendingLanes)}function Ps(e){var n=e.pendingLanes&~Ja;return n!==_e?n:n&Ja?Ja:_e}function $h(e){return(e&xt)!==_e}function ld(e){return(e&zh)!==_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 Uh(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 Ex(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 A=Fs(E),O=1<<A;c[A]=_e,p[A]=Mn,b[A]=Mn,E&=~O}}function Hh(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 Gh(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(A){var O=A.alternate;(O===null||!c.has(O))&&c.add(A)}),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 wx(e,n){return e!==0&&e<n?e:n}function Rx(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 Wh(e){nt(e)}var $f;function _x(e){$f=e}var Vu;function Uf(e){Vu=e}var Hf;function Fg(e){Hf=e}var Xh;function Vg(e){Xh=e}var pd=!1,Bu=[],Un=null,jr=null,ia=null,zu=new Map,$u=new Map,Or=[],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 Tx(e,n,s,c,p){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function Yh(e,n){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":jr=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=Tx(n,s,c,p,b);if(n!==null){var A=Qu(n);A!==null&&$f(A)}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 jr=Uu(jr,e,n,s,c,E),!0}case"mouseover":{var A=p;return ia=Uu(ia,e,n,s,c,A),!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 Zh(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,Xh(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 Nx(e){for(var n=Hf(),s={blockedOn:null,target:e,priority:n},c=0;c<Or.length&&Pu(n,Or[c].priority);c++);Or.splice(c,0,s),c===0&&Zh(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);mx(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),jr!==null&&jl(jr)&&(jr=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),jr!==null&&zt(jr,e),ia!==null&&zt(ia,e);var c=function(A){return zt(A,e)};zu.forEach(c),$u.forEach(c);for(var p=0;p<Or.length;p++){var b=Or[p];b.blockedOn===e&&(b.blockedOn=null)}for(;Or.length>0;){var E=Or[0];if(E.blockedOn!==null)break;Zh(E),E.blockedOn===null&&Or.shift()}}var zn=l.ReactCurrentBatchConfig,Cr=!0;function ka(e){Cr=!!e}function Hu(){return Cr}function Sr(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){Cr&&qh(e,n,s,c)}function qh(e,n,s,c){var p=Kr(e,n,s,c);if(p===null){Gx(e,n,c,Vs,s),Yh(e,c);return}if(zg(p,e,n,s,c)){c.stopPropagation();return}if(Yh(e,c),n&Hc&&po(e)){for(;p!==null;){var b=Qu(p);b!==null&&Wh(b);var E=Kr(e,n,s,c);if(E===null&&Gx(e,n,c,Vs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}Gx(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 A=E.tag;if(A===z){var O=vf(E);if(O!==null)return O;b=null}else if(A===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=bx();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 Jh(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 A=c>1?1-c:void 0;return xi=p.slice(e,A),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 Dr(){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 A in e)if(e.hasOwnProperty(A)){var O=e[A];O?this[A]=O(b):this[A]=b[A]}var B=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return B?this.isDefaultPrevented=Dr: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=Dr)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Dr)},persist:function(){},isPersistent:Dr}),n}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qf=Zn(Er),kl=Lt({},Er,{view:0,detail:0}),Qh=Zn(kl),Kh,ho,Yu;function ev(e){e!==Yu&&(Yu&&e.type==="mousemove"?(Kh=e.screenX-Yu.screenX,ho=e.screenY-Yu.screenY):(Kh=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:tv,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:(ev(e),Kh)},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({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),Ix=Zn(Qf),Ax=Lt({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hg=Zn(Ax),Gg=Lt({},Er,{data:0}),Bs=Zn(Gg),jx=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 Ox={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=Ox[e];return c?!!s[c]:!1}function tv(e){return Xg}var Dx=Lt({},kl,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tv,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(Dx),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:tv}),nv=Zn(Ci),kx=Lt({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),zs=Zn(kx),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 rv=Rt&&"TextEvent"in window&&!bd,Jg=Rt&&(!yd||bd&&bd>8&&bd<=11),av=32,iv=String.fromCharCode(av);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 ov(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Mx(e,n){return e==="keydown"&&n.keyCode===tp}function sv(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=ov(n):$s?sv(n,c)&&(b="onCompositionEnd"):Mx(n,c)&&(b="onCompositionStart"),!b)return null;Jg&&!Cd(c)&&(!$s&&b==="onCompositionStart"?$s=Yf(p):b==="onCompositionEnd"&&$s&&(E=Zf()));var A=ay(s,b);if(A.length>0){var O=new Bs(b,n,null,c,p);if(e.push({event:O,listeners:A}),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!==av?null:(xd=!0,iv);case"textInput":var c=n.data;return c===iv&&xd?null:c;default:return null}}function Lx(e,n){if($s){if(e==="compositionend"||!yd&&sv(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(rv?b=Kg(n,c):b=Lx(n,c),!b)return null;var E=ay(s,"onBeforeInput");if(E.length>0){var A=new jx("onBeforeInput","beforeinput",null,c,p);e.push({event:A,listeners:E}),A.data=b}}function Px(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={},A=0;A<b.length;A++)E["$"+b[A]]=!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 lh(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 ax(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 uh(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 ix(e,n){Gm(e,n)}var Po="http://www.w3.org/1999/xhtml",ox="http://www.w3.org/1998/Math/MathML",rf="http://www.w3.org/2000/svg";function ch(e){switch(e){case"svg":return rf;case"math":return ox;default:return Po}}function dh(e,n){return e==null||e===Po?ch(n):e===rf&&n==="foreignObject"?Po:e}var sx=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=sx(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,fh=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 lx=/([A-Z])/g,ux=/^ms-/;function cx(e){return e.replace(lx,"-$1").toLowerCase().replace(ux,"-ms-")}var ph=function(){};{var qm=/^(?:webkit|moz|o)[A-Z]/,Fc=/^-ms-/,Vc=/-(.)/g,Jm=/;\s*$/,Vo={},hh={},vh=!1,of=!1,mh=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,mh(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){hh.hasOwnProperty(n)&&hh[n]||(hh[n]=!0,h(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,n.replace(Jm,"")))},dx=function(e,n){vh||(vh=!0,h("`NaN` is an invalid value for the `%s` css style property.",e))},fx=function(e,n){of||(of=!0,h("`Infinity` is an invalid value for the `%s` css style property.",e))};ph=function(e,n){e.indexOf("-")>-1?Qm(e):qm.test(e)?Km(e):Jm.test(n)&&eg(e,n),typeof n=="number"&&(isNaN(n)?dx(e,n):isFinite(n)||fx(e,n))}}var px=ph;function hx(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:cx(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||px(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],A=c[b];if(A&&E!==A){var O=E+","+A;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,A)}}}}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+"]*$"),gh=new RegExp("^(aria)[A-Z]["+ht+"]*$");function og(e,n){{if(dt.call(Rs,n)&&Rs[n])return!0;if(gh.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={},yh=/^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 A=E.hasOwnProperty(p)?E[p]:null;if(A!=null)return h("Invalid event handler property `%s`. Did you mean `%s`?",n,A),qr[n]=!0,!0;if(yh.test(n))return h("Unknown event handler property `%s`. It will be ignored.",n),qr[n]=!0,!0}else if(yh.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=Ir(n),B=O!==null&&O.type===Nr;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(A){return"`"+A+"`"}).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,vx=cf|Uc|Hc,Bo=null;function mx(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 bh(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 xh(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,bh(e),n)for(var s=0;s<n.length;s++)bh(n[s])}}var Ch=function(e,n){return e(n)},hg=function(){},Sh=!1;function vg(){var e=df();e&&(hg(),ml())}function Wc(e,n,s){if(Sh)return e(n,s);Sh=!0;try{return Ch(e,n,s)}finally{Sh=!1,vg()}}function ff(e,n,s){Ch=e,hg=s}function Eh(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function wh(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&&Eh(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(wh(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 Rh(e,n,s,c,p,b,E,A,O){var B=Array.prototype.slice.call(arguments,3);try{n.apply(s,B)}catch(H){this.onError(H)}}var mg=Rh;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var _h=document.createElement("react");mg=function(n,s,c,p,b,E,A,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(){_h.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),_h.addEventListener(Ee,yt,!1),H.initEvent(Ee,!1,!1),_h.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(),Rh.apply(this,arguments)}}var Th=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,A,O){Wa=!1,Zc=null,Th.apply(qc,arguments)}function Nh(e,n,s,c,p,b,E,A,O){if(zi.apply(this,arguments),Wa){var B=Uo();$o||($o=!0,ui=B)}}function gx(){if($o){var e=ui;throw $o=!1,ui=null,e}}function yx(){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,Ar=64,At=128,aa=256,Xa=512,vr=1024,Ra=2048,oo=4096,Ts=8192,yl=16384,gg=Ra|ut|Ar|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|Ar|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 A=b.return;if(A!==null){c=p=A;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 Ih(e){var n=pi(e);return n!==null?Ah(n):null}function Ah(e){if(e.tag===N||e.tag===T)return e;for(var n=e.child;n!==null;){var s=Ah(n);if(s!==null)return s;n=n.sibling}return null}function jh(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 Oh=i.unstable_scheduleCallback,yf=i.unstable_cancelCallback,bg=i.unstable_shouldYield,Eu=i.unstable_requestPaint,mr=i.unstable_now,bx=i.unstable_getCurrentPriorityLevel,Ia=i.unstable_ImmediatePriority,wu=i.unstable_UserBlockingPriority,lo=i.unstable_NormalPriority,Ru=i.unstable_LowPriority,Jc=i.unstable_IdlePriority,Dh=i.unstable_yieldValue,kh=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 Mh(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 Dh=="function"&&(kh(e),f(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 Lh(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 Ph(){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 Fh(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,Vh=Math.log,Sl=Math.LN2;function Yn(e){var n=e>>>0;return n===0?32:31-(Vh(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,Bh=Tl,Nl=134217728,zh=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&zh;if(E!==_e){var A=E&~p;if(A!==_e)c=Du(A);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 xx(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 Cx(e,n){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,b=e.expirationTimes,E=s;E>0;){var A=Fs(E),O=1<<A,B=b[A];B===Mn?((O&c)===_e||(O&p)!==_e)&&(b[A]=xx(O,n)):B<=n&&(e.expiredLanes|=O),E&=~O}}function Sx(e){return Du(e.pendingLanes)}function Ps(e){var n=e.pendingLanes&~Ja;return n!==_e?n:n&Ja?Ja:_e}function $h(e){return(e&xt)!==_e}function ld(e){return(e&zh)!==_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 Uh(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 Ex(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 A=Fs(E),O=1<<A;c[A]=_e,p[A]=Mn,b[A]=Mn,E&=~O}}function Hh(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 Gh(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(A){var O=A.alternate;(O===null||!c.has(O))&&c.add(A)}),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 wx(e,n){return e!==0&&e<n?e:n}function Rx(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 Wh(e){nt(e)}var $f;function _x(e){$f=e}var Vu;function Uf(e){Vu=e}var Hf;function Fg(e){Hf=e}var Xh;function Vg(e){Xh=e}var pd=!1,Bu=[],Un=null,jr=null,ia=null,zu=new Map,$u=new Map,Or=[],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 Tx(e,n,s,c,p){return{blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function Yh(e,n){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":jr=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=Tx(n,s,c,p,b);if(n!==null){var A=Qu(n);A!==null&&$f(A)}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 jr=Uu(jr,e,n,s,c,E),!0}case"mouseover":{var A=p;return ia=Uu(ia,e,n,s,c,A),!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 Zh(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,Xh(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 Nx(e){for(var n=Hf(),s={blockedOn:null,target:e,priority:n},c=0;c<Or.length&&Pu(n,Or[c].priority);c++);Or.splice(c,0,s),c===0&&Zh(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);mx(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),jr!==null&&jl(jr)&&(jr=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),jr!==null&&zt(jr,e),ia!==null&&zt(ia,e);var c=function(A){return zt(A,e)};zu.forEach(c),$u.forEach(c);for(var p=0;p<Or.length;p++){var b=Or[p];b.blockedOn===e&&(b.blockedOn=null)}for(;Or.length>0;){var E=Or[0];if(E.blockedOn!==null)break;Zh(E),E.blockedOn===null&&Or.shift()}}var zn=l.ReactCurrentBatchConfig,Cr=!0;function ka(e){Cr=!!e}function Hu(){return Cr}function Sr(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){Cr&&qh(e,n,s,c)}function qh(e,n,s,c){var p=Kr(e,n,s,c);if(p===null){Gx(e,n,c,Vs,s),Yh(e,c);return}if(zg(p,e,n,s,c)){c.stopPropagation();return}if(Yh(e,c),n&Hc&&po(e)){for(;p!==null;){var b=Qu(p);b!==null&&Wh(b);var E=Kr(e,n,s,c);if(E===null&&Gx(e,n,c,Vs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}Gx(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 A=E.tag;if(A===z){var O=vf(E);if(O!==null)return O;b=null}else if(A===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=bx();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 Jh(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 A=c>1?1-c:void 0;return xi=p.slice(e,A),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 Dr(){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 A in e)if(e.hasOwnProperty(A)){var O=e[A];O?this[A]=O(b):this[A]=b[A]}var B=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return B?this.isDefaultPrevented=Dr: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=Dr)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Dr)},persist:function(){},isPersistent:Dr}),n}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qf=Zn(Er),kl=Lt({},Er,{view:0,detail:0}),Qh=Zn(kl),Kh,ho,Yu;function ev(e){e!==Yu&&(Yu&&e.type==="mousemove"?(Kh=e.screenX-Yu.screenX,ho=e.screenY-Yu.screenY):(Kh=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:tv,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:(ev(e),Kh)},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({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),Ix=Zn(Qf),Ax=Lt({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hg=Zn(Ax),Gg=Lt({},Er,{data:0}),Bs=Zn(Gg),jx=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 Ox={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=Ox[e];return c?!!s[c]:!1}function tv(e){return Xg}var Dx=Lt({},kl,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tv,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(Dx),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:tv}),nv=Zn(Ci),kx=Lt({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),zs=Zn(kx),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 rv=Rt&&"TextEvent"in window&&!bd,Jg=Rt&&(!yd||bd&&bd>8&&bd<=11),av=32,iv=String.fromCharCode(av);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 ov(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Mx(e,n){return e==="keydown"&&n.keyCode===tp}function sv(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=ov(n):$s?sv(n,c)&&(b="onCompositionEnd"):Mx(n,c)&&(b="onCompositionStart"),!b)return null;Jg&&!Cd(c)&&(!$s&&b==="onCompositionStart"?$s=Yf(p):b==="onCompositionEnd"&&$s&&(E=Zf()));var A=ay(s,b);if(A.length>0){var O=new Bs(b,n,null,c,p);if(e.push({event:O,listeners:A}),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!==av?null:(xd=!0,iv);case"textInput":var c=n.data;return c===iv&&xd?null:c;default:return null}}function Lx(e,n){if($s){if(e==="compositionend"||!yd&&sv(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(rv?b=Kg(n,c):b=Lx(n,c),!b)return null;var E=ay(s,"onBeforeInput");if(E.length>0){var A=new jx("onBeforeInput","beforeinput",null,c,p);e.push({event:A,listeners:E}),A.data=b}}function Px(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,7 +121,7 @@ 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){R1(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 Fe(){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"?(Fe(),Me(n,s)):e==="focusout"&&Fe()}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 A=s?fp(s):window,O,B;if(S(A)?O=Q:ey(A)?me?O=oe:(O=rt,B=qe):lt(A)&&(O=dr),O){var H=O(n,s);if(H){o(e,H,c,p);return}}B&&B(n,A,s),n==="focusout"&&ee(A)}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 A=n==="mouseover"||n==="pointerover",O=n==="mouseout"||n==="pointerout";if(A&&!pg(c)){var B=c.relatedTarget||c.fromElement;if(B&&(Rd(B)||Cv(B)))return}if(!(!O&&!A)){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,Ve=Rd(p);if(Ve===s){var et=new Ke(pt,Wt+"enter",he,c,p);et.target=se,et.relatedTarget=$t,le=et}QM(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 wr(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=wr(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=wr(rn(s))}}function Fx(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,A=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return OM(e,p,b,E,A)}function OM(e,n,s,c,p){var b=0,E=-1,A=-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)&&(A=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&&(A=b),(K=H.nextSibling)!==null)break;H=te,te=H.parentNode}H=K}return E===-1||A===-1?null:{start:E,end:A}}function DM(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),A=n.end===void 0?E:Math.min(n.end,b);if(!p.extend&&E>A){var O=A;A=E,E=O}var B=qo(e,E),H=qo(e,A);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>A?(p.addRange(te),p.extend(H.node,H.offset)):(te.setEnd(H.node,H.offset),p.addRange(te))}}}function p1(e){return e&&e.nodeType===Fo}function h1(e,n){return!e||!n?!1:e===n?!0:p1(e)?!1:p1(n)?h1(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1}function kM(e){return e&&e.ownerDocument&&h1(e.ownerDocument.documentElement,e)}function MM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function v1(){for(var e=window,n=ro();n instanceof e.HTMLIFrameElement;){if(MM(n))e=n.contentWindow;else return n;n=ro(e.document)}return n}function Vx(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 LM(){var e=v1();return{focusedElem:e,selectionRange:Vx(e)?FM(e):null}}function PM(e){var n=v1(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&kM(s)){c!==null&&Vx(s)&&VM(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 A=p[E];A.element.scrollLeft=A.left,A.element.scrollTop=A.top}}}function FM(e){var n;return"selectionStart"in e?n={start:e.selectionStart,end:e.selectionEnd}:n=Fx(e),n||{start:0,end:0}}function VM(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)):DM(e,n)}var BM=Rt&&"documentMode"in document&&document.documentMode<=11;function zM(){ot("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var sp=null,Bx=null,lv=null,zx=!1;function $M(e){if("selectionStart"in e&&Vx(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 UM(e){return e.window===e?e.document:e.nodeType===Ga?e:e.ownerDocument}function m1(e,n,s){var c=UM(s);if(!(zx||sp==null||sp!==ro(c))){var p=$M(sp);if(!lv||!Et(lv,p)){lv=p;var b=ay(Bx,"onSelect");if(b.length>0){var E=new qf("onSelect","select",null,n,s);e.push({event:E,listeners:b}),E.target=sp}}}}function HM(e,n,s,c,p,b,E){var A=s?fp(s):window;switch(n){case"focusin":(ey(A)||A.contentEditable==="true")&&(sp=A,Bx=s,lv=null);break;case"focusout":sp=null,Bx=null,lv=null;break;case"mousedown":zx=!0;break;case"contextmenu":case"mouseup":case"dragend":zx=!1,m1(e,c,p);break;case"selectionchange":if(BM)break;case"keydown":case"keyup":m1(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")},$x={},g1={};Rt&&(g1=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($x[e])return $x[e];if(!lp[e])return e;var n=lp[e];for(var s in n)if(n.hasOwnProperty(s)&&s in g1)return $x[e]=n[s];return e}var y1=ny("animationend"),b1=ny("animationiteration"),x1=ny("animationstart"),C1=ny("transitionend"),S1=new Map,E1=["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){S1.set(e,n),ot(n,[e])}function GM(){for(var e=0;e<E1.length;e++){var n=E1[e],s=n.toLowerCase(),c=n[0].toUpperCase()+n.slice(1);qu(s,"on"+c)}qu(y1,"onAnimationEnd"),qu(b1,"onAnimationIteration"),qu(x1,"onAnimationStart"),qu("dblclick","onDoubleClick"),qu("focusin","onFocus"),qu("focusout","onBlur"),qu(C1,"onTransitionEnd")}function WM(e,n,s,c,p,b,E){var A=S1.get(n);if(A!==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=nv;break;case y1:case b1:case x1:O=Ix;break;case C1:O=zs;break;case"scroll":O=Qh;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=qM(s,A,c.type,H,te);if(K.length>0){var he=new O(A,B,null,c,p);e.push({event:he,listeners:K})}}}}GM(),$e(),a(),zM(),np();function XM(e,n,s,c,p,b,E){WM(e,n,s,c,p,b);var A=(b&vx)===0;A&&(ct(e,n,s,c,p),ce(e,n,s,c,p),HM(e,n,s,c,p),Px(e,n,s,c,p))}var uv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Ux=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(uv));function w1(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,Nh(c,n,void 0,e),e.currentTarget=null}function YM(e,n,s){var c;if(s)for(var p=n.length-1;p>=0;p--){var b=n[p],E=b.instance,A=b.currentTarget,O=b.listener;if(E!==c&&e.isPropagationStopped())return;w1(e,O,A),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;w1(e,he,K),c=te}}function R1(e,n){for(var s=(n&Hc)!==0,c=0;c<e.length;c++){var p=e[c],b=p.event,E=p.listeners;YM(b,E,s)}gx()}function ZM(e,n,s,c,p){var b=Tn(s),E=[];XM(E,e,c,s,b,n),R1(E,n)}function qn(e,n){Ux.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=RP(n),p=KM(e,s);c.has(p)||(_1(n,e,Uc,s),c.add(p))}function Hx(e,n,s){Ux.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),_1(s,e,c,n)}var ry="_reactListening"+Math.random().toString(36).slice(2);function cv(e){if(!e[ry]){e[ry]=!0,Be.forEach(function(s){s!=="selectionchange"&&(Ux.has(s)||Hx(s,!1,e),Hx(s,!0,e))});var n=e.nodeType===Ga?e:e.ownerDocument;n!==null&&(n[ry]||(n[ry]=!0,Hx("selectionchange",!1,n)))}}function _1(e,n,s,c,p){var b=Sr(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?Jh(e,n,b,E):Wu(e,n,b)}function T1(e,n){return e===n||e.nodeType===Kn&&e.parentNode===n}function Gx(e,n,s,c,p){var b=c;if(!(n&cf)&&!(n&Uc)){var E=p;if(c!==null){var A=c;e:for(;;){if(A===null)return;var O=A.tag;if(O===R||O===j){var B=A.stateNode.containerInfo;if(T1(B,E))break;if(O===j)for(var H=A.return;H!==null;){var te=H.tag;if(te===R||te===j){var K=H.stateNode.containerInfo;if(T1(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){A=b=he;continue e}B=B.parentNode}}A=A.return}}}Wc(function(){return ZM(e,n,s,b)})}function dv(e,n,s){return{instance:e,listener:n,currentTarget:s}}function qM(e,n,s,c,p,b){for(var E=n!==null?n+"Capture":null,A=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,A!==null)){var ve=gl(B,A);ve!=null&&O.push(dv(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,A=b.tag;if(A===N&&E!==null){var O=E,B=gl(p,s);B!=null&&c.unshift(dv(p,B,O));var H=gl(p,n);H!=null&&c.push(dv(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 JM(e,n){for(var s=e,c=n,p=0,b=s;b;b=up(b))p++;for(var E=0,A=c;A;A=up(A))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 N1(e,n,s,c,p){for(var b=n._reactName,E=[],A=s;A!==null&&A!==c;){var O=A,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(A,b);he!=null&&E.unshift(dv(A,he,K))}else if(!p){var ve=gl(A,b);ve!=null&&E.push(dv(A,ve,K))}}A=A.return}E.length!==0&&e.push({event:n,listeners:E})}function QM(e,n,s,c,p){var b=c&&p?JM(c,p):null;c!==null&&N1(e,n,c,b,!1),p!==null&&s!==null&&N1(e,s,p,b,!0)}function KM(e,n){return e+"__"+(n?"capture":"bubble")}var Si=!1,fv="dangerouslySetInnerHTML",iy="suppressContentEditableWarning",Ju="suppressHydrationWarning",I1="autoFocus",Ed="children",wd="style",oy="__html",Wx,sy,pv,A1,ly,j1,O1;Wx={dialog:!0,webview:!0},sy=function(e,n){xu(e,n),sg(e,n),_s(e,n,{registrationNameDependencies:Ge,possibleRegistrationNames:tt})},j1=Rt&&!document.documentMode,pv=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)))}},A1=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)},O1=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 eL=/\r\n?/g,tL=/\u0000|\uFFFD/g;function uy(e){Tr(e);var n=typeof e=="string"?e:""+e;return n.replace(eL,`
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 d=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){R1(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){d=e,g=n,d.attachEvent("onpropertychange",De)}function Fe(){d&&(d.detachEvent("onpropertychange",De),d=null,g=null)}function De(e){e.propertyName==="value"&&W(g)&&_(e)}function qe(e,n,s){e==="focusin"?(Fe(),Me(n,s)):e==="focusout"&&Fe()}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 A=s?fp(s):window,O,B;if(S(A)?O=Q:ey(A)?me?O=oe:(O=rt,B=qe):lt(A)&&(O=dr),O){var H=O(n,s);if(H){o(e,H,c,p);return}}B&&B(n,A,s),n==="focusout"&&ee(A)}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 A=n==="mouseover"||n==="pointerover",O=n==="mouseout"||n==="pointerout";if(A&&!pg(c)){var B=c.relatedTarget||c.fromElement;if(B&&(Rd(B)||Cv(B)))return}if(!(!O&&!A)){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,Ve=Rd(p);if(Ve===s){var et=new Ke(pt,Wt+"enter",he,c,p);et.target=se,et.relatedTarget=$t,le=et}QM(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 wr(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=wr(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=wr(rn(s))}}function Fx(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,A=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return OM(e,p,b,E,A)}function OM(e,n,s,c,p){var b=0,E=-1,A=-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)&&(A=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&&(A=b),(K=H.nextSibling)!==null)break;H=te,te=H.parentNode}H=K}return E===-1||A===-1?null:{start:E,end:A}}function DM(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),A=n.end===void 0?E:Math.min(n.end,b);if(!p.extend&&E>A){var O=A;A=E,E=O}var B=qo(e,E),H=qo(e,A);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>A?(p.addRange(te),p.extend(H.node,H.offset)):(te.setEnd(H.node,H.offset),p.addRange(te))}}}function p1(e){return e&&e.nodeType===Fo}function h1(e,n){return!e||!n?!1:e===n?!0:p1(e)?!1:p1(n)?h1(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1}function kM(e){return e&&e.ownerDocument&&h1(e.ownerDocument.documentElement,e)}function MM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function v1(){for(var e=window,n=ro();n instanceof e.HTMLIFrameElement;){if(MM(n))e=n.contentWindow;else return n;n=ro(e.document)}return n}function Vx(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 LM(){var e=v1();return{focusedElem:e,selectionRange:Vx(e)?FM(e):null}}function PM(e){var n=v1(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&kM(s)){c!==null&&Vx(s)&&VM(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 A=p[E];A.element.scrollLeft=A.left,A.element.scrollTop=A.top}}}function FM(e){var n;return"selectionStart"in e?n={start:e.selectionStart,end:e.selectionEnd}:n=Fx(e),n||{start:0,end:0}}function VM(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)):DM(e,n)}var BM=Rt&&"documentMode"in document&&document.documentMode<=11;function zM(){ot("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var sp=null,Bx=null,lv=null,zx=!1;function $M(e){if("selectionStart"in e&&Vx(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 UM(e){return e.window===e?e.document:e.nodeType===Ga?e:e.ownerDocument}function m1(e,n,s){var c=UM(s);if(!(zx||sp==null||sp!==ro(c))){var p=$M(sp);if(!lv||!Et(lv,p)){lv=p;var b=ay(Bx,"onSelect");if(b.length>0){var E=new qf("onSelect","select",null,n,s);e.push({event:E,listeners:b}),E.target=sp}}}}function HM(e,n,s,c,p,b,E){var A=s?fp(s):window;switch(n){case"focusin":(ey(A)||A.contentEditable==="true")&&(sp=A,Bx=s,lv=null);break;case"focusout":sp=null,Bx=null,lv=null;break;case"mousedown":zx=!0;break;case"contextmenu":case"mouseup":case"dragend":zx=!1,m1(e,c,p);break;case"selectionchange":if(BM)break;case"keydown":case"keyup":m1(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")},$x={},g1={};Rt&&(g1=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($x[e])return $x[e];if(!lp[e])return e;var n=lp[e];for(var s in n)if(n.hasOwnProperty(s)&&s in g1)return $x[e]=n[s];return e}var y1=ny("animationend"),b1=ny("animationiteration"),x1=ny("animationstart"),C1=ny("transitionend"),S1=new Map,E1=["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){S1.set(e,n),ot(n,[e])}function GM(){for(var e=0;e<E1.length;e++){var n=E1[e],s=n.toLowerCase(),c=n[0].toUpperCase()+n.slice(1);qu(s,"on"+c)}qu(y1,"onAnimationEnd"),qu(b1,"onAnimationIteration"),qu(x1,"onAnimationStart"),qu("dblclick","onDoubleClick"),qu("focusin","onFocus"),qu("focusout","onBlur"),qu(C1,"onTransitionEnd")}function WM(e,n,s,c,p,b,E){var A=S1.get(n);if(A!==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=nv;break;case y1:case b1:case x1:O=Ix;break;case C1:O=zs;break;case"scroll":O=Qh;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=qM(s,A,c.type,H,te);if(K.length>0){var he=new O(A,B,null,c,p);e.push({event:he,listeners:K})}}}}GM(),$e(),a(),zM(),np();function XM(e,n,s,c,p,b,E){WM(e,n,s,c,p,b);var A=(b&vx)===0;A&&(ct(e,n,s,c,p),ce(e,n,s,c,p),HM(e,n,s,c,p),Px(e,n,s,c,p))}var uv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Ux=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(uv));function w1(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,Nh(c,n,void 0,e),e.currentTarget=null}function YM(e,n,s){var c;if(s)for(var p=n.length-1;p>=0;p--){var b=n[p],E=b.instance,A=b.currentTarget,O=b.listener;if(E!==c&&e.isPropagationStopped())return;w1(e,O,A),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;w1(e,he,K),c=te}}function R1(e,n){for(var s=(n&Hc)!==0,c=0;c<e.length;c++){var p=e[c],b=p.event,E=p.listeners;YM(b,E,s)}gx()}function ZM(e,n,s,c,p){var b=Tn(s),E=[];XM(E,e,c,s,b,n),R1(E,n)}function qn(e,n){Ux.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=RP(n),p=KM(e,s);c.has(p)||(_1(n,e,Uc,s),c.add(p))}function Hx(e,n,s){Ux.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),_1(s,e,c,n)}var ry="_reactListening"+Math.random().toString(36).slice(2);function cv(e){if(!e[ry]){e[ry]=!0,Be.forEach(function(s){s!=="selectionchange"&&(Ux.has(s)||Hx(s,!1,e),Hx(s,!0,e))});var n=e.nodeType===Ga?e:e.ownerDocument;n!==null&&(n[ry]||(n[ry]=!0,Hx("selectionchange",!1,n)))}}function _1(e,n,s,c,p){var b=Sr(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?Jh(e,n,b,E):Wu(e,n,b)}function T1(e,n){return e===n||e.nodeType===Kn&&e.parentNode===n}function Gx(e,n,s,c,p){var b=c;if(!(n&cf)&&!(n&Uc)){var E=p;if(c!==null){var A=c;e:for(;;){if(A===null)return;var O=A.tag;if(O===R||O===j){var B=A.stateNode.containerInfo;if(T1(B,E))break;if(O===j)for(var H=A.return;H!==null;){var te=H.tag;if(te===R||te===j){var K=H.stateNode.containerInfo;if(T1(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){A=b=he;continue e}B=B.parentNode}}A=A.return}}}Wc(function(){return ZM(e,n,s,b)})}function dv(e,n,s){return{instance:e,listener:n,currentTarget:s}}function qM(e,n,s,c,p,b){for(var E=n!==null?n+"Capture":null,A=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,A!==null)){var ve=gl(B,A);ve!=null&&O.push(dv(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,A=b.tag;if(A===N&&E!==null){var O=E,B=gl(p,s);B!=null&&c.unshift(dv(p,B,O));var H=gl(p,n);H!=null&&c.push(dv(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 JM(e,n){for(var s=e,c=n,p=0,b=s;b;b=up(b))p++;for(var E=0,A=c;A;A=up(A))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 N1(e,n,s,c,p){for(var b=n._reactName,E=[],A=s;A!==null&&A!==c;){var O=A,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(A,b);he!=null&&E.unshift(dv(A,he,K))}else if(!p){var ve=gl(A,b);ve!=null&&E.push(dv(A,ve,K))}}A=A.return}E.length!==0&&e.push({event:n,listeners:E})}function QM(e,n,s,c,p){var b=c&&p?JM(c,p):null;c!==null&&N1(e,n,c,b,!1),p!==null&&s!==null&&N1(e,s,p,b,!0)}function KM(e,n){return e+"__"+(n?"capture":"bubble")}var Si=!1,fv="dangerouslySetInnerHTML",iy="suppressContentEditableWarning",Ju="suppressHydrationWarning",I1="autoFocus",Ed="children",wd="style",oy="__html",Wx,sy,pv,A1,ly,j1,O1;Wx={dialog:!0,webview:!0},sy=function(e,n){xu(e,n),sg(e,n),_s(e,n,{registrationNameDependencies:Ge,possibleRegistrationNames:tt})},j1=Rt&&!document.documentMode,pv=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)))}},A1=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)},O1=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 eL=/\r\n?/g,tL=/\u0000|\uFFFD/g;function uy(e){Tr(e);var n=typeof e=="string"?e:""+e;return n.replace(eL,`
125
125
  `).replace(tL,"")}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 D1(e){return e.nodeType===Ga?e:e.ownerDocument}function nL(){}function dy(e){e.onclick=nL}function rL(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===fv){var A=E?E[oy]:void 0;A!=null&&Wm(n,A)}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===I1||(Ge.hasOwnProperty(b)?E!=null&&(typeof E!="function"&&ly(b,E),b==="onScroll"&&qn("scroll",n)):E!=null&&Io(n,b,E,p))}}function aL(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===fv?Wm(e,E):b===Ed?Pc(e,E):Io(e,b,E,c)}}function iL(e,n,s,c){var p,b=D1(s),E,A=c;if(A===Po&&(A=ch(e)),A===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(A,e);return A===Po&&!p&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!dt.call(Wx,e)&&(Wx[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 oL(e,n){return D1(n).createTextNode(e)}function sL(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<uv.length;E++)qn(uv[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=uh(e,s),qn("invalid",e);break;default:b=s}switch(Bc(n,b),rL(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":lh(e,s);break;default:typeof b.onClick=="function"&&dy(e);break}}function lL(e,n,s,c,p){sy(n,c);var b=null,E,A;switch(n){case"input":E=D(e,s),A=D(e,c),b=[];break;case"select":E=Mc(e,s),A=Mc(e,c),b=[];break;case"textarea":E=uh(e,s),A=uh(e,c),b=[];break;default:E=s,A=c,typeof E.onClick!="function"&&typeof A.onClick=="function"&&dy(e);break}Bc(n,A);var O,B,H=null;for(O in E)if(!(A.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===fv||O===Ed||O===iy||O===Ju||O===I1||(Ge.hasOwnProperty(O)?b||(b=[]):(b=b||[]).push(O,null));for(O in A){var K=A[O],he=E!=null?E[O]:void 0;if(!(!A.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===fv){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,A[wd]),(b=b||[]).push(wd,H)),b}function uL(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(aL(e,n,b,E),s){case"input":ye(e,p);break;case"textarea":Gm(e,p);break;case"select":ax(e,p);break}}function cL(e){{var n=e.toLowerCase();return sf.hasOwnProperty(n)&&sf[n]||null}}function dL(e,n,s,c,p,b,E){var A,O;switch(A=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<uv.length;B++)qn(uv[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 A=="boolean"){var Ke=void 0,yt=A&&we?null:Ir(ve);if(s[Ju]!==!0){if(!(ve===iy||ve===Ju||ve==="value"||ve==="checked"||ve==="selected")){if(ve===fv){var pt=e.innerHTML,Wt=Se?Se[oy]:void 0;if(Wt!=null){var $t=O1(e,Wt);$t!==pt&&pv(ve,pt,$t)}}else if(ve===wd){if(O.delete(ve),j1){var se=hx(Se);Ke=e.getAttribute("style"),se!==Ke&&pv(ve,Ke,se)}}else if(A&&!we)O.delete(ve.toLowerCase()),Ke=ii(e,ve,Se),Se!==Ke&&pv(ve,Ke,Se);else if(!Gn(ve,yt,A)&&!hn(ve,Se,yt,A)){var Ee=!1;if(yt!==null)O.delete(yt.attributeName),Ke=Li(e,ve,Se,yt);else{var le=c;if(le===Po&&(le=ch(n)),le===Po)O.delete(ve.toLowerCase());else{var Ve=cL(ve);Ve!==null&&Ve!==ve&&(Ee=!0,O.delete(Ve)),O.delete(ve)}Ke=ii(e,ve,Se)}var et=we;!et&&Se!==Ke&&!Ee&&pv(ve,Ke,Se)}}}}}switch(E&&O.size>0&&s[Ju]!==!0&&A1(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 fL(e,n,s){var c=e.nodeValue!==n;return c}function Xx(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 Yx(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 Zx(e,n,s){{if(Si)return;Si=!0,h("Expected server HTML to contain a matching <%s> in <%s>.",n,e.nodeName.toLowerCase())}}function qx(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 pL(e,n,s){switch(n){case"input":st(e,s);return;case"textarea":ix(e,s);return;case"select":$m(e,s);return}}var hv=function(){},vv=function(){};{var hL=["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"],k1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],vL=k1.concat(["button"]),mL=["dd","dt","li","option","optgroup","p","rp","rt"],M1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};vv=function(e,n){var s=Lt({},e||M1),c={tag:n};return k1.indexOf(n)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),vL.indexOf(n)!==-1&&(s.pTagInButtonScope=null),hL.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 gL=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 mL.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},yL=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},L1={};hv=function(e,n,s){s=s||M1;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=gL(e,p)?null:c,E=b?null:yL(e,s),A=b||E;if(A){var O=A.tag,B=!!b+"|"+e+"|"+O;if(!L1[B]){L1[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="/$",mv="$?",gv="$!",bL="style",Jx=null,Qx=null;function xL(e){var n,s,c=e.nodeType;switch(c){case Ga:case fh:{n=c===Ga?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:dh(null,"");break}default:{var b=c===Kn?e.parentNode:e,E=b.namespaceURI||null;n=b.tagName,s=dh(E,n);break}}{var A=n.toLowerCase(),O=vv(null,A);return{namespace:s,ancestorInfo:O}}}function CL(e,n,s){{var c=e,p=dh(c.namespace,n),b=vv(c.ancestorInfo,n);return{namespace:p,ancestorInfo:b}}}function Uq(e){return e}function SL(e){Jx=Hu(),Qx=LM();var n=null;return ka(!1),n}function EL(e){PM(Qx),ka(Jx),Jx=null,Qx=null}function wL(e,n,s,c,p){var b;{var E=c;if(hv(e,null,E.ancestorInfo),typeof n.children=="string"||typeof n.children=="number"){var A=""+n.children,O=vv(E.ancestorInfo,e);hv(null,A,O)}b=E.namespace}var B=iL(e,n,s,b);return xv(p,B),oC(B,n),B}function RL(e,n){e.appendChild(n)}function _L(e,n,s,c,p){switch(sL(e,n,s,c),n){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function TL(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 A=""+c.children,O=vv(E.ancestorInfo,n);hv(null,A,O)}}return lL(e,n,s,c)}function Kx(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 NL(e,n,s,c){{var p=s;hv(null,e,p.ancestorInfo)}var b=oL(e,n);return xv(c,b),b}function IL(){var e=window.event;return e===void 0?fo:Wf(e.type)}var eC=typeof setTimeout=="function"?setTimeout:void 0,AL=typeof clearTimeout=="function"?clearTimeout:void 0,tC=-1,P1=typeof Promise=="function"?Promise:void 0,jL=typeof queueMicrotask=="function"?queueMicrotask:typeof P1<"u"?function(e){return P1.resolve(null).then(e).catch(OL)}:eC;function OL(e){setTimeout(function(){throw e})}function DL(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 kL(e,n,s,c,p,b){uL(e,n,s,c,p),oC(e,p)}function F1(e){Pc(e,"")}function ML(e,n,s){e.nodeValue=s}function LL(e,n){e.appendChild(n)}function PL(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 FL(e,n,s){e.insertBefore(n,s)}function VL(e,n,s){e.nodeType===Kn?e.parentNode.insertBefore(n,s):e.insertBefore(n,s)}function BL(e,n){e.removeChild(n)}function zL(e,n){e.nodeType===Kn?e.parentNode.removeChild(n):e.removeChild(n)}function nC(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===mv||b===gv)&&c++}s=p}while(s);rr(n)}function $L(e,n){e.nodeType===Kn?nC(e.parentNode,n):e.nodeType===wa&&nC(e,n),rr(e)}function UL(e){e=e;var n=e.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function HL(e){e.nodeValue=""}function GL(e,n){e=e;var s=n[bL],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=ws("display",c)}function WL(e,n){e.nodeValue=n}function XL(e){e.nodeType===wa?e.textContent="":e.nodeType===Ga&&e.documentElement&&e.removeChild(e.documentElement)}function YL(e,n,s){return e.nodeType!==wa||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function ZL(e,n){return n===""||e.nodeType!==Fo?null:e}function qL(e){return e.nodeType!==Kn?null:e}function V1(e){return e.data===mv}function rC(e){return e.data===gv}function JL(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 QL(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===gv||s===mv)break;if(s===hy)return null}}return e}function yv(e){return vy(e.nextSibling)}function KL(e){return vy(e.firstChild)}function eP(e){return vy(e.firstChild)}function tP(e){return vy(e.nextSibling)}function nP(e,n,s,c,p,b,E){xv(b,e),oC(e,s);var A;{var O=p;A=O.namespace}var B=(b.mode&ft)!==gt;return dL(e,n,s,A,c,B,E)}function rP(e,n,s,c){return xv(s,e),s.mode&ft,fL(e,n)}function aP(e,n){xv(n,e)}function iP(e){for(var n=e.nextSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===hy){if(s===0)return yv(n);s--}else(c===py||c===gv||c===mv)&&s++}n=n.nextSibling}return null}function B1(e){for(var n=e.previousSibling,s=0;n;){if(n.nodeType===Kn){var c=n.data;if(c===py||c===gv||c===mv){if(s===0)return n;s--}else c===hy&&s++}n=n.previousSibling}return null}function oP(e){rr(e)}function sP(e){rr(e)}function lP(e){return e!=="head"&&e!=="body"}function uP(e,n,s,c){var p=!0;cy(n.nodeValue,s,c,p)}function cP(e,n,s,c,p,b){if(n[fy]!==!0){var E=!0;cy(c.nodeValue,p,b,E)}}function dP(e,n){n.nodeType===wa?Xx(e,n):n.nodeType===Kn||Yx(e,n)}function fP(e,n){{var s=e.parentNode;s!==null&&(n.nodeType===wa?Xx(s,n):n.nodeType===Kn||Yx(s,n))}}function pP(e,n,s,c,p){(p||n[fy]!==!0)&&(c.nodeType===wa?Xx(s,c):c.nodeType===Kn||Yx(s,c))}function hP(e,n,s){Zx(e,n)}function vP(e,n){qx(e,n)}function mP(e,n,s){{var c=e.parentNode;c!==null&&Zx(c,n)}}function gP(e,n){{var s=e.parentNode;s!==null&&qx(s,n)}}function yP(e,n,s,c,p,b){(b||n[fy]!==!0)&&Zx(s,c)}function bP(e,n,s,c,p){(p||n[fy]!==!0)&&qx(s,c)}function xP(e){h("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function CP(e){cv(e)}var cp=Math.random().toString(36).slice(2),dp="__reactFiber$"+cp,aC="__reactProps$"+cp,bv="__reactContainer$"+cp,iC="__reactEvents$"+cp,SP="__reactListeners$"+cp,EP="__reactHandles$"+cp;function wP(e){delete e[dp],delete e[aC],delete e[iC],delete e[SP],delete e[EP]}function xv(e,n){n[dp]=e}function my(e,n){n[bv]=e}function z1(e){e[bv]=null}function Cv(e){return!!e[bv]}function Rd(e){var n=e[dp];if(n)return n;for(var s=e.parentNode;s;){if(n=s[bv]||s[dp],n){var c=n.alternate;if(n.child!==null||c!==null&&c.child!==null)for(var p=B1(e);p!==null;){var b=p[dp];if(b)return b;p=B1(p)}return n}e=s,s=e.parentNode}return null}function Qu(e){var n=e[dp]||e[bv];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[aC]||null}function oC(e,n){e[aC]=n}function RP(e){var n=e[iC];return n===void 0&&(n=e[iC]=new Set),n}var $1={},U1=l.ReactDebugCurrentFrame;function yy(e){if(e){var n=e._owner,s=Ut(e.type,e._source,n?n.type:null);U1.setExtraStackFrame(s)}else U1.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 A=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}A=e[E](n,E,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){A=B}A&&!(A 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 A),yy(null)),A instanceof Error&&!(A.message in $1)&&($1[A.message]=!0,yy(p),h("Failed %s type: %s",s,A.message),yy(null))}}}var sC=[],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=sC[Pl],sC[Pl]=null,by[Pl]=null,Pl--}function La(e,n,s){Pl++,sC[Pl]=e.current,by[Pl]=s,e.current=n}var lC;lC={};var Hi={};Object.freeze(Hi);var Fl=Ku(Hi),Us=Ku(!1),uC=Hi;function pp(e,n,s){return s&&Hs(n)?uC:Fl.current}function H1(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 A=It(e)||"Unknown";Jo(c,b,"context",A)}return p&&H1(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 cC(e){Ma(Us,e),Ma(Fl,e)}function G1(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 W1(e,n,s){{var c=e.stateNode,p=n.childContextTypes;if(typeof c.getChildContext!="function"){{var b=It(e)||"Unknown";lC[b]||(lC[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 A in E)if(!(A in p))throw new Error((It(e)||"Unknown")+'.getChildContext(): key "'+A+'" 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 uC=Fl.current,La(Fl,s,e),La(Us,Us.current,e),!0}}function X1(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=W1(e,n,uC);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 _P(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,dC=!1,fC=!1;function Y1(e){Vl===null?Vl=[e]:Vl.push(e)}function TP(e){dC=!0,Y1(e)}function Z1(){dC&&tc()}function tc(){if(!fC&&Vl!==null){fC=!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,dC=!1}catch(b){throw Vl!==null&&(Vl=Vl.slice(e+1)),Oh(Ia,tc),b}finally{nr(n),fC=!1}}return null}var vp=[],mp=0,wy=null,Ry=0,mo=[],go=0,_d=null,Bl=1,zl="";function NP(e){return Nd(),(e.flags&yg)!==mt}function IP(e){return Nd(),Ry}function AP(){var e=zl,n=Bl,s=n&~jP(n);return s.toString(32)+e}function Td(e,n){Nd(),vp[mp++]=Ry,vp[mp++]=wy,wy=e,Ry=n}function q1(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),A=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=A<<he,Ke=Se|K,yt=te+p;Bl=1<<ve|Ke,zl=yt}else{var pt=A<<b,Wt=pt|E,$t=p;Bl=1<<O|Wt,zl=$t}}function pC(e){Nd();var n=e.return;if(n!==null){var s=1,c=0;Td(e,s),q1(e,s,c)}}function _y(e){return 32-nd(e)}function jP(e){return 1<<_y(e)-1}function hC(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 OP(){return Nd(),_d!==null?{id:Bl,overflow:zl}:null}function DP(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 kP(){Qo&&h("We should not be hydrating here. This is a bug in React. Please file a bug.")}function J1(){Id=!0}function MP(){return Id}function LP(e){var n=e.stateNode.containerInfo;return yo=eP(n),oa=e,Qo=!0,nc=null,Id=!1,!0}function PP(e,n,s){return yo=tP(n),oa=e,Qo=!0,nc=null,Id=!1,s!==null&&DP(e,s),!0}function Q1(e,n){switch(e.tag){case R:{dP(e.stateNode.containerInfo,n);break}case N:{var s=(e.mode&ft)!==gt;pP(e.type,e.memoizedProps,e.stateNode,n,s);break}case z:{var c=e.memoizedState;c.dehydrated!==null&&fP(c.dehydrated,n);break}}}function K1(e,n){Q1(e,n);var s=BB();s.stateNode=n,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=nn):c.push(s)}function vC(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,hP(s,c);break;case T:var p=n.pendingProps;vP(s,p);break}break}case N:{var b=e.type,E=e.memoizedProps,A=e.stateNode;switch(n.tag){case N:{var O=n.type,B=n.pendingProps,H=(e.mode&ft)!==gt;yP(b,E,A,O,B,H);break}case T:{var te=n.pendingProps,K=(e.mode&ft)!==gt;bP(b,E,A,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,mP(ve,Se);break;case T:var Ke=n.pendingProps;gP(ve,Ke);break}break}default:return}}}function e_(e,n){n.flags=n.flags&~oo|Nn,vC(e,n)}function t_(e,n){switch(e.tag){case N:{var s=e.type;e.pendingProps;var c=YL(n,s);return c!==null?(e.stateNode=c,oa=e,yo=KL(c),!0):!1}case T:{var p=e.pendingProps,b=ZL(n,p);return b!==null?(e.stateNode=b,oa=e,yo=null,!0):!1}case z:{var E=qL(n);if(E!==null){var A={dehydrated:E,treeContext:OP(),retryLane:Ja};e.memoizedState=A;var O=zB(E);return O.return=e,e.child=O,oa=e,yo=null,!0}return!1}default:return!1}}function mC(e){return(e.mode&ft)!==gt&&(e.flags&At)===mt}function gC(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function yC(e){if(Qo){var n=yo;if(!n){mC(e)&&(vC(oa,e),gC()),e_(oa,e),Qo=!1,oa=e;return}var s=n;if(!t_(e,n)){mC(e)&&(vC(oa,e),gC()),n=yv(s);var c=oa;if(!n||!t_(e,n)){e_(oa,e),Qo=!1,oa=e;return}K1(c,s)}}}function FP(e,n,s){var c=e.stateNode,p=!Id,b=nP(c,e.type,e.memoizedProps,n,s,e,p);return e.updateQueue=b,b!==null}function VP(e){var n=e.stateNode,s=e.memoizedProps,c=rP(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;uP(b,n,s,E);break}case N:{var A=p.type,O=p.memoizedProps,B=p.stateNode,H=(p.mode&ft)!==gt;cP(A,O,B,n,s,H);break}}}return c}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.");aP(s,e)}function zP(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 iP(s)}function n_(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 n_(e),Qo=!0,!1;if(e.tag!==R&&(e.tag!==N||lP(e.type)&&!Kx(e.type,e.memoizedProps))){var n=yo;if(n)if(mC(e))r_(e),gC();else for(;n;)K1(e,n),n=yv(n)}return n_(e),e.tag===z?yo=zP(e):yo=oa?yv(e.stateNode):null,!0}function $P(){return Qo&&yo!==null}function r_(e){for(var n=yo;n;)Q1(e,n),n=yv(n)}function gp(){oa=null,yo=null,Qo=!1,Id=!1}function a_(){nc!==null&&(QT(nc),nc=null)}function sa(){return Qo}function bC(e){nc===null?nc=[e]:nc.push(e)}var UP=l.ReactCurrentBatchConfig,HP=null;function GP(){return UP.transition}var Ko={recordUnsafeLifecycleWarnings:function(e,n){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,n){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var WP=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(", ")},Sv=[],Ev=[],wv=[],Rv=[],_v=[],Tv=[],jd=new Set;Ko.recordUnsafeLifecycleWarnings=function(e,n){jd.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Sv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillMount=="function"&&Ev.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&wv.push(e),e.mode&er&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Rv.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&_v.push(e),e.mode&er&&typeof n.UNSAFE_componentWillUpdate=="function"&&Tv.push(e))},Ko.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Sv.length>0&&(Sv.forEach(function(K){e.add(It(K)||"Component"),jd.add(K.type)}),Sv=[]);var n=new Set;Ev.length>0&&(Ev.forEach(function(K){n.add(It(K)||"Component"),jd.add(K.type)}),Ev=[]);var s=new Set;wv.length>0&&(wv.forEach(function(K){s.add(It(K)||"Component"),jd.add(K.type)}),wv=[]);var c=new Set;Rv.length>0&&(Rv.forEach(function(K){c.add(It(K)||"Component"),jd.add(K.type)}),Rv=[]);var p=new Set;_v.length>0&&(_v.forEach(function(K){p.add(It(K)||"Component"),jd.add(K.type)}),_v=[]);var b=new Set;if(Tv.length>0&&(Tv.forEach(function(K){b.add(It(K)||"Component"),jd.add(K.type)}),Tv=[]),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.
@@ -231,21 +231,21 @@ Check the render method of %s.`,It(Wn)||"Unknown"));var O=$l(b,E);O.payload={ele
231
231
 
232
232
  let root = createRoot(domContainer);
233
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=CN(e,Ey,null,s,c,p,b);my(E.current,e);var A=e.nodeType===Kn?e.parentNode:e;return cv(A),new _E(E)}function Nb(e){this._internalRoot=e}function tz(e){e&&Nx(e)}Nb.prototype.unstable_scheduleHydration=tz;function nz(e,n,s){if(!Ib(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");UN(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,A="",O=$N;s!=null&&(s.unstable_strictMode===!0&&(b=!0),s.identifierPrefix!==void 0&&(A=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError));var B=SN(n,null,e,Ey,c,b,E,A,O);if(my(B.current,e),cv(e),p)for(var H=0;H<p.length;H++){var te=p[H];cF(B,te)}return new Nb(B)}function Ib(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===fh||!Ce))}function rm(e){return!!(e&&(e.nodeType===wa||e.nodeType===Ga||e.nodeType===fh||e.nodeType===Kn&&e.nodeValue===" react-mount-point-unstable "))}function UN(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."),Cv(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 rz=l.ReactCurrentOwner,HN;HN=function(e){if(e._reactRootContainer&&e.nodeType!==Kn){var n=wN(e._reactRootContainer.current);n&&n.parentNode!==e&&h("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,c=TE(e),p=!!(c&&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 TE(e){return e?e.nodeType===Ga?e.documentElement:e.firstChild:null}function GN(){}function az(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=SN(n,c,e,ec,null,!1,!1,"",GN);e._reactRootContainer=E,my(E.current,e);var A=e.nodeType===Kn?e.parentNode:e;return cv(A),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=CN(e,ec,null,!1,!1,"",GN);e._reactRootContainer=H,my(H.current,e);var te=e.nodeType===Kn?e.parentNode:e;return cv(te),Wl(function(){nm(n,H,s,c)}),H}}function iz(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){HN(s),iz(p===void 0?null:p,"render");var b=s._reactRootContainer,E;if(!b)E=az(s,n,e,p,c);else{if(E=b,typeof p=="function"){var A=p;p=function(){var O=Tb(E);A.call(O)}}nm(n,E,e,p)}return Tb(E)}function oz(e){{var n=rz.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:HB(e,"findDOMNode")}function sz(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"),!rm(n))throw new Error("Target container is not a DOM element.");{var c=Cv(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 lz(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"),!rm(n))throw new Error("Target container is not a DOM element.");{var c=Cv(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 uz(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"),!rm(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 cz(e){if(!rm(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var n=Cv(e)&&e._reactRootContainer===void 0;n&&h("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=TE(e),c=s&&!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,z1(e)})}),!0}else{{var p=TE(e),b=!!(p&&Qu(p)),E=e.nodeType===wa&&rm(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(GB),_x(WB),Uf(XB),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"),xh(pL),ff(aE,nB,Wl);function dz(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 UB(e,n,null,s)}function fz(e,n,s,c){return uz(e,n,s,c)}var NE={usingClientEntryPoint:!1,Events:[Qu,fp,gy,Cu,ml,aE]};function pz(e,n){return NE.usingClientEntryPoint||h('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),ez(e,n)}function hz(e,n,s){return NE.usingClientEntryPoint||h('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),nz(e,n,s)}function vz(e){return eN()&&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 mz=KB({findFiberByHostInstance:Rd,bundleType:1,version:CE,rendererPackageName:"react-dom"});if(!mz&&Rt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var WN=window.location.protocol;/^(https?|file):$/.test(WN)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(WN==="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=NE,Ni.createPortal=dz,Ni.createRoot=pz,Ni.findDOMNode=oz,Ni.flushSync=vz,Ni.hydrate=sz,Ni.hydrateRoot=hz,Ni.render=lz,Ni.unmountComponentAtNode=cz,Ni.unstable_batchedUpdates=aE,Ni.unstable_renderSubtreeIntoContainer=fz,Ni.version=CE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var gj={};function yj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(gj.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yj)}catch(t){console.error(t)}}}gj.NODE_ENV==="production"?(yj(),fw.exports=Iz()):fw.exports=Az();var aR=fw.exports;const $d=eh(aR);var jz={},sm=aR;if(jz.NODE_ENV==="production")Xi.createRoot=sm.createRoot,Xi.hydrateRoot=sm.hydrateRoot;else{var Db=sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xi.createRoot=function(t,r){Db.usingClientEntryPoint=!0;try{return sm.createRoot(t,r)}finally{Db.usingClientEntryPoint=!1}},Xi.hydrateRoot=function(t,r,i){Db.usingClientEntryPoint=!0;try{return sm.hydrateRoot(t,r,i)}finally{Db.usingClientEntryPoint=!1}}}var _r={};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 Oz=typeof Symbol=="function"&&Symbol.observable||"@@observable",aI=Oz,OE=()=>Math.random().toString(36).substring(7).split("").join("."),Dz={INIT:`@@redux/INIT${OE()}`,REPLACE:`@@redux/REPLACE${OE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${OE()}`},Ud=Dz;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 kz(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(Pz(t))return"date";if(Lz(t))return"error";const i=Mz(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 Mz(t){return typeof t.constructor=="function"?t.constructor.name:null}function Lz(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Pz(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 _r.NODE_ENV!=="production"&&(r=kz(t)),r}function bj(t,r,i){if(typeof t!="function")throw new Error(_r.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(_r.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(_r.NODE_ENV==="production"?va(1):`Expected the enhancer to be a function. Instead, received: '${vc(i)}'`);return i(bj)(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(_r.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(_r.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${vc(I)}'`);if(y)throw new Error(_r.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 P=h++;return v.set(P,I),function(){if(M){if(y)throw new Error(_r.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(P),d=null}}}function R(I){if(!Mm(I))throw new Error(_r.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(_r.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(_r.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(_r.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{y=!0,u=l(u,I)}finally{y=!1}return(d=v).forEach(P=>{P()}),I}function j(I){if(typeof I!="function")throw new Error(_r.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${vc(I)}`);l=I,R({type:Ud.REPLACE})}function N(){const I=w;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(_r.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${vc(M)}'`);function P(){const U=M;U.next&&U.next(C())}return P(),{unsubscribe:I(P)}},[aI](){return this}}}return R({type:Ud.INIT}),{dispatch:R,subscribe:w,getState:C,replaceReducer:j,[aI]:N}}function iI(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Fz(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 Vz(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Ud.INIT})>"u")throw new Error(_r.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(_r.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 Bz(t){const r=Object.keys(t),i={};for(let v=0;v<r.length;v++){const h=r[v];_r.NODE_ENV!=="production"&&typeof t[h]>"u"&&iI(`No reducer provided for key "${h}"`),typeof t[h]=="function"&&(i[h]=t[h])}const l=Object.keys(i);let u;_r.NODE_ENV!=="production"&&(u={});let d;try{Vz(i)}catch(v){d=v}return function(h={},y){if(d)throw d;if(_r.NODE_ENV!=="production"){const w=Fz(h,i,y,u);w&&iI(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 I=y&&y.type;throw new Error(_r.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!==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 zz(...t){return r=>(i,l)=>{const u=r(i,l);let d=()=>{throw new Error(_r.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 xj(t){return Mm(t)&&"type"in t&&typeof t.type=="string"}var Lm={},Cj=Symbol.for("immer-nothing"),oI=Symbol.for("immer-draftable"),Zi=Symbol.for("immer-state"),$z=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=$z[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?Sj(t)||Array.isArray(t)||!!t[oI]||!!((r=t.constructor)!=null&&r[oI])||V0(t)||B0(t):!1}var Uz=Object.prototype.constructor.toString();function Sj(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)===Uz}function Em(t,r){F0(t)===0?Object.entries(t).forEach(([i,l])=>{r(i,l,t)}):t.forEach((i,l)=>r(l,i,t))}function F0(t){const r=t[Zi];return r?r.type_:Array.isArray(t)?1:V0(t)?2:B0(t)?3:0}function pw(t,r){return F0(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Ej(t,r,i){const l=F0(t);l===2?t.set(r,i):l===3?t.add(i):t[r]=i}function Hz(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function V0(t){return t instanceof Map}function B0(t){return t instanceof Set}function zd(t){return t.copy_||t.base_}function hw(t,r){if(V0(t))return new Map(t);if(B0(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!r&&Sj(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 z0(t)||yc(t)||!ru(t)||(F0(t)>1&&(t.set=t.add=t.clear=t.delete=Gz),Object.freeze(t),r&&Em(t,(i,l)=>iR(l,!0))),t}function Gz(){Ii(2)}function z0(t){return Object.isFrozen(t)}var Wz={};function Zd(t){const r=Wz[t];return r||Ii(0,t),r}var wm;function wj(){return wm}function Xz(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sI(t,r){r&&(Zd("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function vw(t){mw(t),t.drafts_.forEach(Yz),t.drafts_=null}function mw(t){t===wm&&(wm=t.parent_)}function lI(t){return wm=Xz(wm,t)}function Yz(t){const r=t[Zi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function uI(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[Zi].modified_&&(vw(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,[]),vw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==Cj?t:void 0}function p0(t,r,i){if(z0(r))return r;const l=r[Zi];if(!l)return Em(r,(u,d)=>cI(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),Em(d,(h,y)=>cI(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 cI(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&&!pw(r.assigned_,l)?d.concat(l):void 0,y=p0(t,u,h);if(Ej(i,l,y),yc(y))t.canAutoFreeze_=!1;else return}else v&&i.add(u);if(ru(u)&&!z0(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 Zz(t,r){const i=Array.isArray(t),l={type_:i?1:0,scope_:r?r.scope_:wj(),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=Rm);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(!pw(i,r))return qz(t,i,r);const l=i[r];return t.finalized_||!ru(l)?l:l===DE(t.base_,r)?(kE(t),t.copy_[r]=yw(l,t)):l},has(t,r){return r in zd(t)},ownKeys(t){return Reflect.ownKeys(zd(t))},set(t,r,i){const l=Rj(zd(t),r);if(l!=null&&l.set)return l.set.call(t.draft_,i),!0;if(!t.modified_){const u=DE(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(Hz(i,u)&&(i!==void 0||pw(t.base_,r)))return!0;kE(t),gw(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 DE(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,kE(t),gw(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)}},Rm={};Em(oR,(t,r)=>{Rm[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Rm.deleteProperty=function(t,r){return Lm.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Ii(13),Rm.set.call(this,t,r,void 0)};Rm.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 DE(t,r){const i=t[Zi];return(i?zd(i):t)[r]}function qz(t,r,i){var u;const l=Rj(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(t.draft_):void 0}function Rj(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 gw(t){t.modified_||(t.modified_=!0,t.parent_&&gw(t.parent_))}function kE(t){t.copy_||(t.copy_=hw(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Jz=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=lI(this),v=yw(r,void 0);let h=!0;try{u=i(v),h=!1}finally{h?vw(d):mw(d)}return sI(d,l),uI(u,d)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Cj&&(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=_j(t));const r=lI(this),i=yw(t,void 0);return i[Zi].isManual_=!0,mw(r),i}finishDraft(t,r){const i=t&&t[Zi];(!i||!i.isManual_)&&Ii(9);const{scope_:l}=i;return sI(l,r),uI(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 yw(t,r){const i=V0(t)?Zd("MapSet").proxyMap_(t,r):B0(t)?Zd("MapSet").proxySet_(t,r):Zz(t,r);return(r?r.scope_:wj()).drafts_.push(i),i}function _j(t){return yc(t)||Ii(10,t),Tj(t)}function Tj(t){if(!ru(t)||z0(t))return t;const r=t[Zi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=hw(t,r.scope_.immer_.useStrictShallowCopy_)}else i=hw(t,!0);return Em(i,(l,u)=>{Ej(i,l,Tj(u))}),r&&(r.finalized_=!1),i}var qi=new Jz,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 Qz={},Kz=(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
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=NE,Ni.createPortal=dz,Ni.createRoot=pz,Ni.findDOMNode=oz,Ni.flushSync=vz,Ni.hydrate=sz,Ni.hydrateRoot=hz,Ni.render=lz,Ni.unmountComponentAtNode=cz,Ni.unstable_batchedUpdates=aE,Ni.unstable_renderSubtreeIntoContainer=fz,Ni.version=CE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var gj={};function yj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(gj.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yj)}catch(t){console.error(t)}}}gj.NODE_ENV==="production"?(yj(),fw.exports=Iz()):fw.exports=Az();var aR=fw.exports;const $d=eh(aR);var jz={},sm=aR;if(jz.NODE_ENV==="production")Xi.createRoot=sm.createRoot,Xi.hydrateRoot=sm.hydrateRoot;else{var Db=sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xi.createRoot=function(t,r){Db.usingClientEntryPoint=!0;try{return sm.createRoot(t,r)}finally{Db.usingClientEntryPoint=!1}},Xi.hydrateRoot=function(t,r,i){Db.usingClientEntryPoint=!0;try{return sm.hydrateRoot(t,r,i)}finally{Db.usingClientEntryPoint=!1}}}var _r={};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 Oz=typeof Symbol=="function"&&Symbol.observable||"@@observable",aI=Oz,OE=()=>Math.random().toString(36).substring(7).split("").join("."),Dz={INIT:`@@redux/INIT${OE()}`,REPLACE:`@@redux/REPLACE${OE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${OE()}`},Ud=Dz;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 kz(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(Pz(t))return"date";if(Lz(t))return"error";const i=Mz(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 Mz(t){return typeof t.constructor=="function"?t.constructor.name:null}function Lz(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Pz(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 _r.NODE_ENV!=="production"&&(r=kz(t)),r}function bj(t,r,i){if(typeof t!="function")throw new Error(_r.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(_r.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(_r.NODE_ENV==="production"?va(1):`Expected the enhancer to be a function. Instead, received: '${vc(i)}'`);return i(bj)(t,r)}let l=t,u=r,f=new Map,v=f,h=0,y=!1;function x(){v===f&&(v=new Map,f.forEach((I,M)=>{v.set(M,I)}))}function C(){if(y)throw new Error(_r.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(_r.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${vc(I)}'`);if(y)throw new Error(_r.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 P=h++;return v.set(P,I),function(){if(M){if(y)throw new Error(_r.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(P),f=null}}}function R(I){if(!Mm(I))throw new Error(_r.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(_r.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(_r.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(_r.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{y=!0,u=l(u,I)}finally{y=!1}return(f=v).forEach(P=>{P()}),I}function j(I){if(typeof I!="function")throw new Error(_r.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${vc(I)}`);l=I,R({type:Ud.REPLACE})}function N(){const I=w;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(_r.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${vc(M)}'`);function P(){const U=M;U.next&&U.next(C())}return P(),{unsubscribe:I(P)}},[aI](){return this}}}return R({type:Ud.INIT}),{dispatch:R,subscribe:w,getState:C,replaceReducer:j,[aI]:N}}function iI(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function Fz(t,r,i,l){const u=Object.keys(r),f=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 ${f} 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 ${f}. Expected to find one of the known reducer keys instead: "${u.join('", "')}". Unexpected keys will be ignored.`}function Vz(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Ud.INIT})>"u")throw new Error(_r.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(_r.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 Bz(t){const r=Object.keys(t),i={};for(let v=0;v<r.length;v++){const h=r[v];_r.NODE_ENV!=="production"&&typeof t[h]>"u"&&iI(`No reducer provided for key "${h}"`),typeof t[h]=="function"&&(i[h]=t[h])}const l=Object.keys(i);let u;_r.NODE_ENV!=="production"&&(u={});let f;try{Vz(i)}catch(v){f=v}return function(h={},y){if(f)throw f;if(_r.NODE_ENV!=="production"){const w=Fz(h,i,y,u);w&&iI(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 I=y&&y.type;throw new Error(_r.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!==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 zz(...t){return r=>(i,l)=>{const u=r(i,l);let f=()=>{throw new Error(_r.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)=>f(y,...x)},h=t.map(y=>y(v));return f=f0(...h)(u.dispatch),{...u,dispatch:f}}}function xj(t){return Mm(t)&&"type"in t&&typeof t.type=="string"}var Lm={},Cj=Symbol.for("immer-nothing"),oI=Symbol.for("immer-draftable"),Zi=Symbol.for("immer-state"),$z=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=$z[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?Sj(t)||Array.isArray(t)||!!t[oI]||!!((r=t.constructor)!=null&&r[oI])||V0(t)||B0(t):!1}var Uz=Object.prototype.constructor.toString();function Sj(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)===Uz}function Em(t,r){F0(t)===0?Object.entries(t).forEach(([i,l])=>{r(i,l,t)}):t.forEach((i,l)=>r(l,i,t))}function F0(t){const r=t[Zi];return r?r.type_:Array.isArray(t)?1:V0(t)?2:B0(t)?3:0}function pw(t,r){return F0(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Ej(t,r,i){const l=F0(t);l===2?t.set(r,i):l===3?t.add(i):t[r]=i}function Hz(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function V0(t){return t instanceof Map}function B0(t){return t instanceof Set}function zd(t){return t.copy_||t.base_}function hw(t,r){if(V0(t))return new Map(t);if(B0(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!r&&Sj(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 f=l[u],v=i[f];v.writable===!1&&(v.writable=!0,v.configurable=!0),(v.get||v.set)&&(i[f]={configurable:!0,writable:!0,enumerable:v.enumerable,value:t[f]})}return Object.create(Gp(t),i)}function iR(t,r=!1){return z0(t)||yc(t)||!ru(t)||(F0(t)>1&&(t.set=t.add=t.clear=t.delete=Gz),Object.freeze(t),r&&Em(t,(i,l)=>iR(l,!0))),t}function Gz(){Ii(2)}function z0(t){return Object.isFrozen(t)}var Wz={};function Zd(t){const r=Wz[t];return r||Ii(0,t),r}var wm;function wj(){return wm}function Xz(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sI(t,r){r&&(Zd("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function vw(t){mw(t),t.drafts_.forEach(Yz),t.drafts_=null}function mw(t){t===wm&&(wm=t.parent_)}function lI(t){return wm=Xz(wm,t)}function Yz(t){const r=t[Zi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function uI(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[Zi].modified_&&(vw(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,[]),vw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==Cj?t:void 0}function p0(t,r,i){if(z0(r))return r;const l=r[Zi];if(!l)return Em(r,(u,f)=>cI(t,l,r,u,f,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 f=u,v=!1;l.type_===3&&(f=new Set(u),u.clear(),v=!0),Em(f,(h,y)=>cI(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 cI(t,r,i,l,u,f,v){if(Lm.NODE_ENV!=="production"&&u===i&&Ii(5),yc(u)){const h=f&&r&&r.type_!==3&&!pw(r.assigned_,l)?f.concat(l):void 0,y=p0(t,u,h);if(Ej(i,l,y),yc(y))t.canAutoFreeze_=!1;else return}else v&&i.add(u);if(ru(u)&&!z0(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 Zz(t,r){const i=Array.isArray(t),l={type_:i?1:0,scope_:r?r.scope_:wj(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,f=oR;i&&(u=[l],f=Rm);const{revoke:v,proxy:h}=Proxy.revocable(u,f);return l.draft_=h,l.revoke_=v,h}var oR={get(t,r){if(r===Zi)return t;const i=zd(t);if(!pw(i,r))return qz(t,i,r);const l=i[r];return t.finalized_||!ru(l)?l:l===DE(t.base_,r)?(kE(t),t.copy_[r]=yw(l,t)):l},has(t,r){return r in zd(t)},ownKeys(t){return Reflect.ownKeys(zd(t))},set(t,r,i){const l=Rj(zd(t),r);if(l!=null&&l.set)return l.set.call(t.draft_,i),!0;if(!t.modified_){const u=DE(zd(t),r),f=u==null?void 0:u[Zi];if(f&&f.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(Hz(i,u)&&(i!==void 0||pw(t.base_,r)))return!0;kE(t),gw(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 DE(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,kE(t),gw(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)}},Rm={};Em(oR,(t,r)=>{Rm[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Rm.deleteProperty=function(t,r){return Lm.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Ii(13),Rm.set.call(this,t,r,void 0)};Rm.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 DE(t,r){const i=t[Zi];return(i?zd(i):t)[r]}function qz(t,r,i){var u;const l=Rj(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(t.draft_):void 0}function Rj(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 gw(t){t.modified_||(t.modified_=!0,t.parent_&&gw(t.parent_))}function kE(t){t.copy_||(t.copy_=hw(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Jz=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,l)=>{if(typeof r=="function"&&typeof i!="function"){const f=i;i=r;const v=this;return function(y=f,...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 f=lI(this),v=yw(r,void 0);let h=!0;try{u=i(v),h=!1}finally{h?vw(f):mw(f)}return sI(f,l),uI(u,f)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Cj&&(u=void 0),this.autoFreeze_&&iR(u,!0),l){const f=[],v=[];Zd("Patches").generateReplacementPatches_(r,u,f,v),l(f,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=_j(t));const r=lI(this),i=yw(t,void 0);return i[Zi].isManual_=!0,mw(r),i}finishDraft(t,r){const i=t&&t[Zi];(!i||!i.isManual_)&&Ii(9);const{scope_:l}=i;return sI(l,r),uI(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 yw(t,r){const i=V0(t)?Zd("MapSet").proxyMap_(t,r):B0(t)?Zd("MapSet").proxySet_(t,r):Zz(t,r);return(r?r.scope_:wj()).drafts_.push(i),i}function _j(t){return yc(t)||Ii(10,t),Tj(t)}function Tj(t){if(!ru(t)||z0(t))return t;const r=t[Zi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=hw(t,r.scope_.immer_.useStrictShallowCopy_)}else i=hw(t,!0);return Em(i,(l,u)=>{Ej(i,l,Tj(u))}),r&&(r.finalized_=!1),i}var qi=new Jz,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 Qz={},Kz=(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(f){({stack:u}=f)}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
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:u})}}},e$=(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.
237
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:u})}}},e$=(t,r,i)=>{const{memoize:l,memoizeOptions:u}=r,{inputSelectorResults:f,inputSelectorResultsCopy:v}=t,h=l(()=>({}),...u);if(!(h.apply(null,f)===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})}},t$={inputStabilityCheck:"once",identityFunctionCheck:"once"};function n$(t,r=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(r)}function r$(t,r=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(r)}function a$(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 dI=t=>Array.isArray(t)?t:[t];function i$(t){const r=Array.isArray(t[0])?t[0]:t;return a$(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function fI(t,r){const i=[],{length:l}=t;for(let u=0;u<l;u++)i.push(t[u].apply(null,r));return i}var o$=(t,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:l}={...t$,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&t,run:Kz},inputStabilityCheck:{shouldRun:l==="always"||l==="once"&&t,run:e$}}},s$=class{constructor(t){this.value=t}deref(){return this.value}},l$=typeof WeakRef<"u"?WeakRef:s$,u$=0,pI=1;function kb(){return{s:u$,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 N=arguments[R];if(typeof N=="function"||typeof N=="object"&&N!==null){let T=h.o;T===null&&(h.o=T=new WeakMap);const I=T.get(N);I===void 0?(h=kb(),T.set(N,h)):h=I}else{let T=h.p;T===null&&(h.p=T=new Map);const I=T.get(N);I===void 0?(h=kb(),T.set(N,h)):h=I}}const x=h;let C;if(h.s===pI?C=h.v:(C=t.apply(null,arguments),d++),x.s=pI,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 l$(C):C}return x.v=C,C}return v.clearCache=()=>{i=kb(),v.resetResultsCount()},v.resultsCount=()=>d,v.resetResultsCount=()=>{d=0},v}function Nj(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()),n$(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:N=[],devModeChecks:T={}}=C,I=dI(R),M=dI(N),P=i$(u),V=w(function(){return d++,x.apply(null,arguments)},...I);let U=!0;const F=j(function(){v++;const X=fI(P,arguments);if(h=V.apply(null,X),Qz.NODE_ENV!=="production"){const{identityFunctionCheck:Y,inputStabilityCheck:pe}=o$(U,T);if(Y.shouldRun&&Y.run(x,X,h),pe.shouldRun){const ie=fI(P,arguments);pe.run({inputSelectorResults:X,inputSelectorResultsCopy:ie},{memoize:w,memoizeOptions:I},arguments)}U&&(U=!1)}return h},...M);return Object.assign(F,{resultFunc:x,memoizedResultFunc:V,dependencies:P,dependencyRecomputations:()=>v,resetDependencyRecomputations:()=>{v=0},lastResult:()=>h,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:w,argsMemoize:j})};return Object.assign(l,{withTypes:()=>l}),l}var c$=Nj(sR),d$=Object.assign((t,r=c$)=>{r$(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:()=>d$});function Ij(t){return({dispatch:i,getState:l})=>u=>d=>typeof d=="function"?d(i,l,t):u(d)}var f$=Ij(),p$=Ij,Ft={},h$=(...t)=>{const r=Nj(...t),i=Object.assign((...l)=>{const u=r(...l),d=(v,...h)=>u(yc(v)?_j(v):v,...h);return Object.assign(d,u),d},{withTypes:()=>i});return i};h$(sR);var v$=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)},Aj=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=>xj(l)&&l.type===t,i}function m$(t){return typeof t=="function"&&"type"in t&&Aj(t)}function g$(t){const r=t?`${t}`.split("/"):[],i=r[r.length-1]||"actionCreator";return`Detected an action creator with type "${t||"unknown"}" being dispatched.
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 y$(t={}){if(Ft.NODE_ENV==="production")return()=>i=>l=>i(l);const{isActionCreator:r=m$}=t;return()=>i=>l=>(r(l)&&console.warn(g$(l.type)),i(l))}function jj(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.
240
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:f,secondInputs:v,stack:x})}},t$={inputStabilityCheck:"once",identityFunctionCheck:"once"};function n$(t,r=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(r)}function r$(t,r=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(r)}function a$(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 dI=t=>Array.isArray(t)?t:[t];function i$(t){const r=Array.isArray(t[0])?t[0]:t;return a$(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function fI(t,r){const i=[],{length:l}=t;for(let u=0;u<l;u++)i.push(t[u].apply(null,r));return i}var o$=(t,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:l}={...t$,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&t,run:Kz},inputStabilityCheck:{shouldRun:l==="always"||l==="once"&&t,run:e$}}},s$=class{constructor(t){this.value=t}deref(){return this.value}},l$=typeof WeakRef<"u"?WeakRef:s$,u$=0,pI=1;function kb(){return{s:u$,v:void 0,o:null,p:null}}function sR(t,r={}){let i=kb();const{resultEqualityCheck:l}=r;let u,f=0;function v(){var w;let h=i;const{length:y}=arguments;for(let R=0,j=y;R<j;R++){const N=arguments[R];if(typeof N=="function"||typeof N=="object"&&N!==null){let T=h.o;T===null&&(h.o=T=new WeakMap);const I=T.get(N);I===void 0?(h=kb(),T.set(N,h)):h=I}else{let T=h.p;T===null&&(h.p=T=new Map);const I=T.get(N);I===void 0?(h=kb(),T.set(N,h)):h=I}}const x=h;let C;if(h.s===pI?C=h.v:(C=t.apply(null,arguments),f++),x.s=pI,l){const R=((w=u==null?void 0:u.deref)==null?void 0:w.call(u))??u;R!=null&&l(R,C)&&(C=R,f!==0&&f--),u=typeof C=="object"&&C!==null||typeof C=="function"?new l$(C):C}return x.v=C,C}return v.clearCache=()=>{i=kb(),v.resetResultsCount()},v.resultsCount=()=>f,v.resetResultsCount=()=>{f=0},v}function Nj(t,...r){const i=typeof t=="function"?{memoize:t,memoizeOptions:r}:t,l=(...u)=>{let f=0,v=0,h,y={},x=u.pop();typeof x=="object"&&(y=x,x=u.pop()),n$(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:N=[],devModeChecks:T={}}=C,I=dI(R),M=dI(N),P=i$(u),V=w(function(){return f++,x.apply(null,arguments)},...I);let U=!0;const F=j(function(){v++;const X=fI(P,arguments);if(h=V.apply(null,X),Qz.NODE_ENV!=="production"){const{identityFunctionCheck:Y,inputStabilityCheck:pe}=o$(U,T);if(Y.shouldRun&&Y.run(x,X,h),pe.shouldRun){const ie=fI(P,arguments);pe.run({inputSelectorResults:X,inputSelectorResultsCopy:ie},{memoize:w,memoizeOptions:I},arguments)}U&&(U=!1)}return h},...M);return Object.assign(F,{resultFunc:x,memoizedResultFunc:V,dependencies:P,dependencyRecomputations:()=>v,resetDependencyRecomputations:()=>{v=0},lastResult:()=>h,recomputations:()=>f,resetRecomputations:()=>{f=0},memoize:w,argsMemoize:j})};return Object.assign(l,{withTypes:()=>l}),l}var c$=Nj(sR),d$=Object.assign((t,r=c$)=>{r$(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(f=>t[f]);return r(l,(...f)=>f.reduce((v,h,y)=>(v[i[y]]=h,v),{}))},{withTypes:()=>d$});function Ij(t){return({dispatch:i,getState:l})=>u=>f=>typeof f=="function"?f(i,l,t):u(f)}var f$=Ij(),p$=Ij,Ft={},h$=(...t)=>{const r=Nj(...t),i=Object.assign((...l)=>{const u=r(...l),f=(v,...h)=>u(yc(v)?_j(v):v,...h);return Object.assign(f,u),f},{withTypes:()=>i});return i};h$(sR);var v$=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)},Aj=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=>xj(l)&&l.type===t,i}function m$(t){return typeof t=="function"&&"type"in t&&Aj(t)}function g$(t){const r=t?`${t}`.split("/"):[],i=r[r.length-1]||"actionCreator";return`Detected an action creator with type "${t||"unknown"}" being dispatched.
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 y$(t={}){if(Ft.NODE_ENV==="production")return()=>i=>l=>i(l);const{isActionCreator:r=m$}=t;return()=>i=>l=>(r(l)&&console.warn(g$(l.type)),i(l))}function jj(t,r){let i=0;return{measureTime(l){const u=Date.now();try{return l()}finally{const f=Date.now();i+=f-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 Oj=class gm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,gm.prototype)}static get[Symbol.species](){return gm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new gm(...r[0].concat(this)):new gm(...r.concat(this))}};function hI(t){return ru(t)?Eo(t,()=>{}):t}function vI(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 b$(t){return typeof t!="object"||t==null||Object.isFrozen(t)}function x$(t,r,i){const l=Dj(t,r,i);return{detectMutations(){return kj(t,r,l,i)}}}function Dj(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]=Dj(t,r,i[v],h))}}return d}function kj(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(N=>N instanceof RegExp?N.test(w):w===N))continue;const R=kj(t,r,i.children[C],l[C],h,w);if(R.wasMutated)return R}return{wasMutated:!1}}function C$(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=b$,ignoredPaths:u,warnAfter:d=32}=t;const v=x$.bind(null,l,u);return({getState:h})=>{let y=h(),x=v(y),C;return w=>R=>{const j=jj(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 N=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(),N}}}}function Mj(t){const r=typeof t;return t==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(t)||Mm(t)}function bw(t,r="",i=Mj,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=bw(C,w,i,l,u,d),v))return v}}return d&&Lj(t)&&d.add(t),!1}function Lj(t){if(!Object.isFrozen(t))return!1;for(const r of Object.values(t))if(!(typeof r!="object"||r===null)&&!Lj(r))return!1;return!0}function S$(t={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{const{isSerializable:r=Mj,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(!xj(j))return R(j);const N=R(j),T=jj(v,"SerializableStateInvariantMiddleware");return!y&&!(l.length&&l.indexOf(j.type)!==-1)&&T.measureTime(()=>{const I=bw(j,"",r,i,u,C);if(I){const{keyPath:M,value:P}=I;console.error(`A non-serializable value was detected in an action, in the path: \`${M}\`. Value:`,P,`
243
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var Oj=class gm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,gm.prototype)}static get[Symbol.species](){return gm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new gm(...r[0].concat(this)):new gm(...r.concat(this))}};function hI(t){return ru(t)?Eo(t,()=>{}):t}function vI(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 b$(t){return typeof t!="object"||t==null||Object.isFrozen(t)}function x$(t,r,i){const l=Dj(t,r,i);return{detectMutations(){return kj(t,r,l,i)}}}function Dj(t,r=[],i,l="",u=new Set){const f={value:i};if(!t(i)&&!u.has(i)){u.add(i),f.children={};for(const v in i){const h=l?l+"."+v:v;r.length&&r.indexOf(h)!==-1||(f.children[v]=Dj(t,r,i[v],h))}}return f}function kj(t,r=[],i,l,u=!1,f=""){const v=i?i.value:void 0,h=v===l;if(u&&!h&&!Number.isNaN(l))return{wasMutated:!0,path:f};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=f?f+"."+C:C;if(x&&r.some(N=>N instanceof RegExp?N.test(w):w===N))continue;const R=kj(t,r,i.children[C],l[C],h,w);if(R.wasMutated)return R}return{wasMutated:!1}}function C$(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=b$,ignoredPaths:u,warnAfter:f=32}=t;const v=x$.bind(null,l,u);return({getState:h})=>{let y=h(),x=v(y),C;return w=>R=>{const j=jj(f,"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 N=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(),N}}}}function Mj(t){const r=typeof t;return t==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(t)||Mm(t)}function bw(t,r="",i=Mj,l,u=[],f){let v;if(!i(t))return{keyPath:r||"<root>",value:t};if(typeof t!="object"||t===null||f!=null&&f.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=bw(C,w,i,l,u,f),v))return v}}return f&&Lj(t)&&f.add(t),!1}function Lj(t){if(!Object.isFrozen(t))return!1;for(const r of Object.values(t))if(!(typeof r!="object"||r===null)&&!Lj(r))return!1;return!0}function S$(t={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{const{isSerializable:r=Mj,getEntries:i,ignoredActions:l=[],ignoredActionPaths:u=["meta.arg","meta.baseQueryMeta"],ignoredPaths:f=[],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(!xj(j))return R(j);const N=R(j),T=jj(v,"SerializableStateInvariantMiddleware");return!y&&!(l.length&&l.indexOf(j.type)!==-1)&&T.measureTime(()=>{const I=bw(j,"",r,i,u,C);if(I){const{keyPath:M,value:P}=I;console.error(`A non-serializable value was detected in an action, in the path: \`${M}\`. Value:`,P,`
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 I=w.getState(),M=bw(I,"",r,i,d,C);if(M){const{keyPath:P,value:V}=M;console.error(`A non-serializable value was detected in the state, in the path: \`${P}\`. Value:`,V,`
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=bw(I,"",r,i,f,C);if(M){const{keyPath:P,value:V}=M;console.error(`A non-serializable value was detected in the state, in the path: \`${P}\`. 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 E$=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:d=!0}=r??{};let v=new Oj;if(i&&(Mb(i)?v.push(f$):v.push(p$(i.extraArgument))),Ft.NODE_ENV!=="production"){if(l){let h={};Mb(l)||(h=l),v.unshift(C$(h))}if(u){let h={};Mb(u)||(h=u),v.push(S$(h))}if(d){let h={};Mb(d)||(h=d),v.unshift(y$(h))}}return v},w$="RTK_autoBatch",Pj=t=>r=>{setTimeout(r,t)},R$=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Pj(10),_$=(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"?R$:t.type==="callback"?t.queueNotification:Pj(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[w$]),d=!u,d&&(v||(v=!0,y(x))),l.dispatch(C)}finally{u=!0}}})},T$=t=>function(i){const{autoBatch:l=!0}=i??{};let u=new Oj(t);return l&&u.push(_$(typeof l=="object"?l:void 0)),u},hc=Ft.NODE_ENV==="production";function Pm(t){const r=E$(),{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=Bz(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=v$({trace:!hc,...typeof u=="object"&&u}));const C=zz(...y),w=T$(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 bj(h,d,j)}function Fj(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 N$(t){return typeof t=="function"}function I$(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]=Fj(r),d;if(N$(t))d=()=>hI(t());else{const h=hI(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 A$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vj=(t=21)=>{let r="",i=t;for(;i--;)r+=A$[Math.random()*64|0];return r},j$=(t,r)=>Aj(t)?t.match(r):t(r);function O$(...t){return r=>t.some(i=>j$(i,r))}var D$=["name","message","stack","code"],ME=class{constructor(t,r){IE(this,"_type");this.payload=t,this.meta=r}},mI=class{constructor(t,r){IE(this,"_type");this.payload=t,this.meta=r}},k$=t=>{if(typeof t=="object"&&t!==null){const r={};for(const i of D$)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||k$)(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):Vj(),j=new AbortController;let N,T;function I(P){T=P,j.abort()}const M=async function(){var U,F;let P;try{let z=(U=l==null?void 0:l.condition)==null?void 0:U.call(l,y,{getState:C,extra:w});if(L$(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,(F=l==null?void 0:l.getPendingMeta)==null?void 0:F.call(l,{requestId:R,arg:y},{getState:C,extra:w}))),P=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 ME(Y,pe),fulfillWithValue:(Y,pe)=>new mI(Y,pe)})).then(Y=>{if(Y instanceof ME)throw Y;return Y instanceof mI?u(Y.payload,R,y,Y.meta):u(Y,R,y)})])}catch(z){P=z instanceof ME?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(P)&&P.meta.condition||x(P),P}();return Object.assign(M,{abort:I,requestId:R,arg:y,unwrap(){return M.then(M$)}})}}return Object.assign(h,{pending:d,rejected:v,fulfilled:u,settled:O$(v,u),typePrefix:r})}return t.withTypes=()=>t,t})();function M$(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function L$(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var P$=Symbol.for("rtk-slice-createasyncthunk");function F$(t,r){return`${t}/${r}`}function V$({creators:t}={}){var i;const r=(i=t==null?void 0:t.asyncThunk)==null?void 0:i[P$];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(z$()):u.reducers)||{},y=Object.keys(h),x={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},C={addCase(V,U){const F=typeof V=="string"?V:V.type;if(!F)throw new Error(Ft.NODE_ENV==="production"?_n(12):"`context.addCase` cannot be called with an empty action type");if(F 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: "+F);return x.sliceCaseReducersByType[F]=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],F={reducerName:V,type:F$(d,V),createNotation:typeof u.reducers=="function"};U$(U)?G$(F,U,C,r):$$(F,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=[],F=void 0]=typeof u.extraReducers=="function"?Fj(u.extraReducers):[u.extraReducers],z={...V,...x.sliceCaseReducersByType};return I$(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);F&&X.addDefaultCase(F)})}const R=V=>V,j=new Map;let N;function T(V,U){return N||(N=w()),N(V,U)}function I(){return N||(N=w()),N.getInitialState()}function M(V,U=!1){function F(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=vI(j,U,{insert:()=>new WeakMap});return vI(Y,X,{insert:()=>{const pe={};for(const[ie,ge]of Object.entries(u.selectors??{}))pe[ie]=B$(ge,X,I,U);return pe}})}return{reducerPath:V,getSelectors:z,get selectors(){return z(F)},selectSlice:F}}const P={name:d,reducer:T,actions:x.actionCreators,caseReducers:x.sliceCaseReducersByName,getInitialState:I,...M(v),injectInto(V,{reducerPath:U,...F}={}){const z=U??v;return V.inject({reducerPath:z,reducer:T},F),{...P,...M(z,!0)}}};return P}}function B$(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 $0=V$();function z$(){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 $$({type:t,reducerName:r,createNotation:i},l,u){let d,v;if("reducer"in l){if(i&&!H$(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 U$(t){return t._reducerDefinitionType==="asyncThunk"}function H$(t){return t._reducerDefinitionType==="reducerWithPrepare"}function G$({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 W$=(t,r)=>{if(typeof t!="function")throw new Error(Ft.NODE_ENV==="production"?_n(32):`${r} is not a function`)},lR="listenerMiddleware",X$=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 W$(d,"options.listener"),{predicate:u,type:r,effect:d}},Y$=Object.assign(t=>{const{type:r,predicate:i,effect:l}=X$(t);return{id:Vj(),effect:l,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?_n(22):"Unsubscribe not initialized")}}},{withTypes:()=>Y$}),Z$=Object.assign(tu(`${lR}/add`),{withTypes:()=>Z$});tu(`${lR}/removeAll`);var q$=Object.assign(tu(`${lR}/remove`),{withTypes:()=>q$});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=eh(k),v0=Cz({__proto__:null,default:pr},[k]);var xw={exports:{}},LE={};/**
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 E$=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=r??{};let v=new Oj;if(i&&(Mb(i)?v.push(f$):v.push(p$(i.extraArgument))),Ft.NODE_ENV!=="production"){if(l){let h={};Mb(l)||(h=l),v.unshift(C$(h))}if(u){let h={};Mb(u)||(h=u),v.push(S$(h))}if(f){let h={};Mb(f)||(h=f),v.unshift(y$(h))}}return v},w$="RTK_autoBatch",Pj=t=>r=>{setTimeout(r,t)},R$=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Pj(10),_$=(t={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,f=!1,v=!1;const h=new Set,y=t.type==="tick"?queueMicrotask:t.type==="raf"?R$:t.type==="callback"?t.queueNotification:Pj(t.timeout),x=()=>{v=!1,f&&(f=!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[w$]),f=!u,f&&(v||(v=!0,y(x))),l.dispatch(C)}finally{u=!0}}})},T$=t=>function(i){const{autoBatch:l=!0}=i??{};let u=new Oj(t);return l&&u.push(_$(typeof l=="object"?l:void 0)),u},hc=Ft.NODE_ENV==="production";function Pm(t){const r=E$(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:f=void 0,enhancers:v=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Mm(i))h=Bz(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=v$({trace:!hc,...typeof u=="object"&&u}));const C=zz(...y),w=T$(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 bj(h,f,j)}function Fj(t){const r={},i=[];let l;const u={addCase(f,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 f=="string"?f:f.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(f,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:f,reducer:v}),u},addDefaultCase(f){if(Ft.NODE_ENV!=="production"&&l)throw new Error(Ft.NODE_ENV==="production"?_n(31):"`builder.addDefaultCase` can only be called once");return l=f,u}};return t(u),[r,i,l]}function N$(t){return typeof t=="function"}function I$(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]=Fj(r),f;if(N$(t))f=()=>hI(t());else{const h=hI(t);f=()=>h}function v(h=f(),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=f,v}var A$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vj=(t=21)=>{let r="",i=t;for(;i--;)r+=A$[Math.random()*64|0];return r},j$=(t,r)=>Aj(t)?t.match(r):t(r);function O$(...t){return r=>t.some(i=>j$(i,r))}var D$=["name","message","stack","code"],ME=class{constructor(t,r){IE(this,"_type");this.payload=t,this.meta=r}},mI=class{constructor(t,r){IE(this,"_type");this.payload=t,this.meta=r}},k$=t=>{if(typeof t=="object"&&t!==null){const r={};for(const i of D$)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"}})),f=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||k$)(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):Vj(),j=new AbortController;let N,T;function I(P){T=P,j.abort()}const M=async function(){var U,F;let P;try{let z=(U=l==null?void 0:l.condition)==null?void 0:U.call(l,y,{getState:C,extra:w});if(L$(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(f(R,y,(F=l==null?void 0:l.getPendingMeta)==null?void 0:F.call(l,{requestId:R,arg:y},{getState:C,extra:w}))),P=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 ME(Y,pe),fulfillWithValue:(Y,pe)=>new mI(Y,pe)})).then(Y=>{if(Y instanceof ME)throw Y;return Y instanceof mI?u(Y.payload,R,y,Y.meta):u(Y,R,y)})])}catch(z){P=z instanceof ME?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(P)&&P.meta.condition||x(P),P}();return Object.assign(M,{abort:I,requestId:R,arg:y,unwrap(){return M.then(M$)}})}}return Object.assign(h,{pending:f,rejected:v,fulfilled:u,settled:O$(v,u),typePrefix:r})}return t.withTypes=()=>t,t})();function M$(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function L$(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var P$=Symbol.for("rtk-slice-createasyncthunk");function F$(t,r){return`${t}/${r}`}function V$({creators:t}={}){var i;const r=(i=t==null?void 0:t.asyncThunk)==null?void 0:i[P$];return function(u){const{name:f,reducerPath:v=f}=u;if(!f)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(z$()):u.reducers)||{},y=Object.keys(h),x={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},C={addCase(V,U){const F=typeof V=="string"?V:V.type;if(!F)throw new Error(Ft.NODE_ENV==="production"?_n(12):"`context.addCase` cannot be called with an empty action type");if(F 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: "+F);return x.sliceCaseReducersByType[F]=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],F={reducerName:V,type:F$(f,V),createNotation:typeof u.reducers=="function"};U$(U)?G$(F,U,C,r):$$(F,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=[],F=void 0]=typeof u.extraReducers=="function"?Fj(u.extraReducers):[u.extraReducers],z={...V,...x.sliceCaseReducersByType};return I$(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);F&&X.addDefaultCase(F)})}const R=V=>V,j=new Map;let N;function T(V,U){return N||(N=w()),N(V,U)}function I(){return N||(N=w()),N.getInitialState()}function M(V,U=!1){function F(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=vI(j,U,{insert:()=>new WeakMap});return vI(Y,X,{insert:()=>{const pe={};for(const[ie,ge]of Object.entries(u.selectors??{}))pe[ie]=B$(ge,X,I,U);return pe}})}return{reducerPath:V,getSelectors:z,get selectors(){return z(F)},selectSlice:F}}const P={name:f,reducer:T,actions:x.actionCreators,caseReducers:x.sliceCaseReducersByName,getInitialState:I,...M(v),injectInto(V,{reducerPath:U,...F}={}){const z=U??v;return V.inject({reducerPath:z,reducer:T},F),{...P,...M(z,!0)}}};return P}}function B$(t,r,i,l){function u(f,...v){let h=r(f);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 $0=V$();function z$(){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 $$({type:t,reducerName:r,createNotation:i},l,u){let f,v;if("reducer"in l){if(i&&!H$(l))throw new Error(Ft.NODE_ENV==="production"?_n(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");f=l.reducer,v=l.prepare}else f=l;u.addCase(t,f).exposeCaseReducer(r,f).exposeAction(r,v?tu(t,v):tu(t))}function U$(t){return t._reducerDefinitionType==="asyncThunk"}function H$(t){return t._reducerDefinitionType==="reducerWithPrepare"}function G$({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:f,fulfilled:v,pending:h,rejected:y,settled:x,options:C}=i,w=u(t,f,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 W$=(t,r)=>{if(typeof t!="function")throw new Error(Ft.NODE_ENV==="production"?_n(32):`${r} is not a function`)},lR="listenerMiddleware",X$=t=>{let{type:r,actionCreator:i,matcher:l,predicate:u,effect:f}=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 W$(f,"options.listener"),{predicate:u,type:r,effect:f}},Y$=Object.assign(t=>{const{type:r,predicate:i,effect:l}=X$(t);return{id:Vj(),effect:l,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?_n(22):"Unsubscribe not initialized")}}},{withTypes:()=>Y$}),Z$=Object.assign(tu(`${lR}/add`),{withTypes:()=>Z$});tu(`${lR}/removeAll`);var q$=Object.assign(tu(`${lR}/remove`),{withTypes:()=>q$});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=eh(k),v0=Cz({__proto__:null,default:pr},[k]);var xw={exports:{}},LE={};/**
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 gI;function J$(){if(gI)return LE;gI=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 LE.useSyncExternalStoreWithSelector=function(y,x,C,w,R){var j=u(null);if(j.current===null){var N={hasValue:!1,value:null};j.current=N}else N=j.current;j=v(function(){function I(F){if(!M){if(M=!0,P=F,F=w(F),R!==void 0&&N.hasValue){var z=N.value;if(R(z,F))return V=z}return V=F}if(z=V,i(P,F))return z;var X=w(F);return R!==void 0&&R(z,X)?z:(P=F,V=X)}var M=!1,P,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(){N.hasValue=!0,N.value=T},[T]),h(T),T},LE}var PE={},yI;function Q$(){if(yI)return PE;yI=1;var t={};/**
256
+ */var gI;function J$(){if(gI)return LE;gI=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,f=t.useEffect,v=t.useMemo,h=t.useDebugValue;return LE.useSyncExternalStoreWithSelector=function(y,x,C,w,R){var j=u(null);if(j.current===null){var N={hasValue:!1,value:null};j.current=N}else N=j.current;j=v(function(){function I(F){if(!M){if(M=!0,P=F,F=w(F),R!==void 0&&N.hasValue){var z=N.value;if(R(z,F))return V=z}return V=F}if(z=V,i(P,F))return z;var X=w(F);return R!==void 0&&R(z,X)?z:(P=F,V=X)}var M=!1,P,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 f(function(){N.hasValue=!0,N.value=T},[T]),h(T),T},LE}var PE={},yI;function Q$(){if(yI)return PE;yI=1;var t={};/**
257
257
  * @license React
258
258
  * use-sync-external-store-with-selector.development.js
259
259
  *
@@ -261,51 +261,51 @@ 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,N){var T=d(null),I;T.current===null?(I={hasValue:!1,value:null},T.current=I):I=T.current;var M=h(function(){var F=!1,z,X,Y=function(ae){if(!F){F=!0,z=ae;var Re=j(ae);if(N!==void 0&&I.hasValue){var be=I.value;if(N(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 N!==void 0&&N(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,N]),P=M[0],V=M[1],U=u(C,P,V);return v(function(){I.hasValue=!0,I.value=U},[U]),y(U),U}PE.useSyncExternalStoreWithSelector=x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),PE}var K$={};K$.NODE_ENV==="production"?xw.exports=J$():xw.exports=Q$();var eU=xw.exports,ds={},qt="default"in v0?pr:v0,bI=Symbol.for("react-redux-context"),xI=typeof globalThis<"u"?globalThis:{};function tU(){if(!qt.createContext)return{};const t=xI[bI]??(xI[bI]=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=tU(),Bj=()=>{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 zj=uR(),$j=Bj,nU=t=>{$j=t},rU=(t,r)=>t===r;function aU(t=au){const r=t===au?zj:uR(t),i=(l,u={})=>{const{equalityFn:d=rU,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:P}={stabilityCheck:C,identityFunctionCheck:w,...v};if(P==="always"||P==="once"&&R.current){const V=l(T);if(!d(I,V)){let U;try{throw new Error}catch(F){({stack:U}=F)}console.warn("Selector "+(l.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
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,f=r.useRef,v=r.useEffect,h=r.useMemo,y=r.useDebugValue;function x(C,w,R,j,N){var T=f(null),I;T.current===null?(I={hasValue:!1,value:null},T.current=I):I=T.current;var M=h(function(){var F=!1,z,X,Y=function(ae){if(!F){F=!0,z=ae;var Re=j(ae);if(N!==void 0&&I.hasValue){var be=I.value;if(N(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 N!==void 0&&N(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,N]),P=M[0],V=M[1],U=u(C,P,V);return v(function(){I.hasValue=!0,I.value=U},[U]),y(U),U}PE.useSyncExternalStoreWithSelector=x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),PE}var K$={};K$.NODE_ENV==="production"?xw.exports=J$():xw.exports=Q$();var eU=xw.exports,ds={},qt="default"in v0?pr:v0,bI=Symbol.for("react-redux-context"),xI=typeof globalThis<"u"?globalThis:{};function tU(){if(!qt.createContext)return{};const t=xI[bI]??(xI[bI]=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=tU(),Bj=()=>{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 zj=uR(),$j=Bj,nU=t=>{$j=t},rU=(t,r)=>t===r;function aU(t=au){const r=t===au?zj:uR(t),i=(l,u={})=>{const{equalityFn:f=rU,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 f!="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:P}={stabilityCheck:C,identityFunctionCheck:w,...v};if(P==="always"||P==="once"&&R.current){const V=l(T);if(!f(I,V)){let U;try{throw new Error}catch(F){({stack:U}=F)}console.warn("Selector "+(l.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
265
265
  Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state: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]),N=$j(y.addNestedSub,h.getState,x||h.getState,j,d);return qt.useDebugValue(N),N};return Object.assign(i,{withTypes:()=>i}),i}var Jn=aU(),iU=Symbol.for("react.element"),oU=Symbol.for("react.portal"),Uj=Symbol.for("react.fragment"),Hj=Symbol.for("react.strict_mode"),Gj=Symbol.for("react.profiler"),Wj=Symbol.for("react.provider"),cR=Symbol.for("react.context"),sU=Symbol.for("react.server_context"),dR=Symbol.for("react.forward_ref"),Xj=Symbol.for("react.suspense"),Yj=Symbol.for("react.suspense_list"),U0=Symbol.for("react.memo"),Zj=Symbol.for("react.lazy"),lU=Symbol.for("react.offscreen"),uU=Symbol.for("react.client.reference"),cU=dR,dU=U0;function fU(t){return typeof t=="string"||typeof t=="function"||t===Uj||t===Gj||t===Hj||t===Xj||t===Yj||t===lU||typeof t=="object"&&t!==null&&(t.$$typeof===Zj||t.$$typeof===U0||t.$$typeof===Wj||t.$$typeof===cR||t.$$typeof===dR||t.$$typeof===uU||t.getModuleId!==void 0)}function qj(t){if(typeof t=="object"&&t!==null){const r=t.$$typeof;switch(r){case iU:{const i=t.type;switch(i){case Uj:case Gj:case Hj:case Xj:case Yj:return i;default:{const l=i&&i.$$typeof;switch(l){case sU:case cR:case dR:case Zj:case U0:case Wj:return l;default:return r}}}}case oU:return r}}}function pU(t){return qj(t)===cR}function hU(t){return qj(t)===U0}function fR(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function FE(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 vU(t,r,i){FE(t,"mapStateToProps"),FE(r,"mapDispatchToProps"),FE(i,"mergeProps")}function mU(t,r,i,l,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:v}){let h=!1,y,x,C,w,R;function j(P,V){return y=P,x=V,C=t(y,x),w=r(l,x),R=i(C,w,x),h=!0,R}function N(){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 P=t(y,x),V=!v(P,C);return C=P,V&&(R=i(C,w,x)),R}function M(P,V){const U=!d(V,x),F=!u(P,y,V,x);return y=P,x=V,U&&F?N():U?T():F?I():R}return function(V,U){return h?M(V,U):j(V,U)}}function gU(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"&&vU(d,v,h),mU(d,v,h,t,u)}function yU(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 bU(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 Jj(t,r,i){bU(t)||fR(`${i}() in ${r} must return a plain object. Instead received ${t}.`)}function Cw(t){return function(i){const l=t(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function CI(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=CI(t);let x=d(h,y);return typeof x=="function"&&(d.mapToProps=x,d.dependsOnOwnProps=CI(x),x=d(h,y)),ds.NODE_ENV!=="production"&&Jj(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 xU(t){return t&&typeof t=="object"?Cw(r=>yU(t,r)):t?typeof t=="function"?Qj(t,"mapDispatchToProps"):pR(t,"mapDispatchToProps"):Cw(r=>({dispatch:r}))}function CU(t){return t?typeof t=="function"?Qj(t,"mapStateToProps"):pR(t,"mapStateToProps"):Cw(()=>({}))}function SU(t,r,i){return{...i,...t,...r}}function EU(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"&&Jj(v,l,"mergeProps")),v}}}function wU(t){return t?typeof t=="function"?EU(t):pR(t,"mergeProps"):()=>SU}function RU(t){t()}function _U(){let t=null,r=null;return{clear(){t=null,r=null},notify(){RU(()=>{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 SI={notify(){},get:()=>[]};function Kj(t,r){let i,l=SI,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(){N.onStateChange&&N.onStateChange()}function x(){return d}function C(){u++,i||(i=r?r.addNestedSub(y):t.subscribe(y),l=_U())}function w(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=SI)}function R(){d||(d=!0,C())}function j(){d&&(d=!1,w())}const N={addNestedSub:v,notifyNestedSubs:h,handleChangeWrapper:y,isSubscribed:x,trySubscribe:R,tryUnsubscribe:j,getListeners:()=>l};return N}var TU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m0=TU?qt.useLayoutEffect:qt.useEffect;function EI(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function VE(t,r){if(EI(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])||!EI(t[i[u]],r[i[u]]))return!1;return!0}var NU={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},IU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},AU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jU={[cU]:AU,[dU]:eO};function wI(t){return hU(t)?eO:jU[t.$$typeof]||NU}var OU=Object.defineProperty,DU=Object.getOwnPropertyNames,RI=Object.getOwnPropertySymbols,kU=Object.getOwnPropertyDescriptor,MU=Object.getPrototypeOf,_I=Object.prototype;function Sw(t,r){if(typeof r!="string"){if(_I){const d=MU(r);d&&d!==_I&&Sw(t,d)}let i=DU(r);RI&&(i=i.concat(RI(r)));const l=wI(t),u=wI(r);for(let d=0;d<i.length;++d){const v=i[d];if(!IU[v]&&!(u&&u[v])&&!(l&&l[v])){const h=kU(r,v);try{OU(t,v,h)}catch{}}}}return t}var tO=Bj,LU=t=>{tO=t},PU=[null,null],FU=t=>{try{return JSON.stringify(t)}catch{return String(t)}};function VU(t,r,i){m0(()=>t(...r),i)}function BU(t,r,i,l,u,d){t.current=l,i.current=!1,u.current&&(u.current=null,d())}function zU(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(P){M=P,R=P}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 $U(t,r){return t===r}var TI=!1;function UU(t,r,i,{pure:l,areStatesEqual:u=$U,areOwnPropsEqual:d=VE,areStatePropsEqual:v=VE,areMergedPropsEqual:h=VE,forwardRef:y=!1,context:x=au}={}){ds.NODE_ENV!=="production"&&l!==void 0&&!TI&&(TI=!0,fR('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const C=x,w=CU(t),R=xU(r),j=wU(i),N=!!t;return I=>{if(ds.NODE_ENV!=="production"&&!fU(I))throw new Error(`You must pass a component to the function returned by connect. Instead received ${FU(I)}`);const M=I.displayName||I.name||"Component",P=`Connect(${M})`,V={shouldHandleStateChanges:N,displayName:P,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(!pU(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 "${P}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${P} in connect options.`);const xe=Re?X.store:ae.store,Ae=be?ae.getServerState:xe.getState,Le=qt.useMemo(()=>gU(xe.dispatch,V),[xe]),[ne,Oe]=qt.useMemo(()=>{if(!N)return PU;const ot=Kj(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?zU(N,xe,ne,Le,re,Z,we,Te,Ce,Oe,je):()=>{},[ne]);VU(BU,[re,Z,we,ie,Ce,Oe]);let Be;try{Be=tO(de,ue,Ae?()=>Le(Ae(),ie):ue)}catch(ot){throw Ie.current&&(ot.message+=`
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]),N=$j(y.addNestedSub,h.getState,x||h.getState,j,f);return qt.useDebugValue(N),N};return Object.assign(i,{withTypes:()=>i}),i}var Jn=aU(),iU=Symbol.for("react.element"),oU=Symbol.for("react.portal"),Uj=Symbol.for("react.fragment"),Hj=Symbol.for("react.strict_mode"),Gj=Symbol.for("react.profiler"),Wj=Symbol.for("react.provider"),cR=Symbol.for("react.context"),sU=Symbol.for("react.server_context"),dR=Symbol.for("react.forward_ref"),Xj=Symbol.for("react.suspense"),Yj=Symbol.for("react.suspense_list"),U0=Symbol.for("react.memo"),Zj=Symbol.for("react.lazy"),lU=Symbol.for("react.offscreen"),uU=Symbol.for("react.client.reference"),cU=dR,dU=U0;function fU(t){return typeof t=="string"||typeof t=="function"||t===Uj||t===Gj||t===Hj||t===Xj||t===Yj||t===lU||typeof t=="object"&&t!==null&&(t.$$typeof===Zj||t.$$typeof===U0||t.$$typeof===Wj||t.$$typeof===cR||t.$$typeof===dR||t.$$typeof===uU||t.getModuleId!==void 0)}function qj(t){if(typeof t=="object"&&t!==null){const r=t.$$typeof;switch(r){case iU:{const i=t.type;switch(i){case Uj:case Gj:case Hj:case Xj:case Yj:return i;default:{const l=i&&i.$$typeof;switch(l){case sU:case cR:case dR:case Zj:case U0:case Wj:return l;default:return r}}}}case oU:return r}}}function pU(t){return qj(t)===cR}function hU(t){return qj(t)===U0}function fR(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function FE(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 vU(t,r,i){FE(t,"mapStateToProps"),FE(r,"mapDispatchToProps"),FE(i,"mergeProps")}function mU(t,r,i,l,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:v}){let h=!1,y,x,C,w,R;function j(P,V){return y=P,x=V,C=t(y,x),w=r(l,x),R=i(C,w,x),h=!0,R}function N(){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 P=t(y,x),V=!v(P,C);return C=P,V&&(R=i(C,w,x)),R}function M(P,V){const U=!f(V,x),F=!u(P,y,V,x);return y=P,x=V,U&&F?N():U?T():F?I():R}return function(V,U){return h?M(V,U):j(V,U)}}function gU(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const f=r(t,u),v=i(t,u),h=l(t,u);return ds.NODE_ENV!=="production"&&vU(f,v,h),mU(f,v,h,t,u)}function yU(t,r){const i={};for(const l in t){const u=t[l];typeof u=="function"&&(i[l]=(...f)=>r(u(...f)))}return i}function bU(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 Jj(t,r,i){bU(t)||fR(`${i}() in ${r} must return a plain object. Instead received ${t}.`)}function Cw(t){return function(i){const l=t(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function CI(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function Qj(t,r){return function(l,{displayName:u}){const f=function(h,y){return f.dependsOnOwnProps?f.mapToProps(h,y):f.mapToProps(h,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(h,y){f.mapToProps=t,f.dependsOnOwnProps=CI(t);let x=f(h,y);return typeof x=="function"&&(f.mapToProps=x,f.dependsOnOwnProps=CI(x),x=f(h,y)),ds.NODE_ENV!=="production"&&Jj(x,u,r),x},f}}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 xU(t){return t&&typeof t=="object"?Cw(r=>yU(t,r)):t?typeof t=="function"?Qj(t,"mapDispatchToProps"):pR(t,"mapDispatchToProps"):Cw(r=>({dispatch:r}))}function CU(t){return t?typeof t=="function"?Qj(t,"mapStateToProps"):pR(t,"mapStateToProps"):Cw(()=>({}))}function SU(t,r,i){return{...i,...t,...r}}function EU(t){return function(i,{displayName:l,areMergedPropsEqual:u}){let f=!1,v;return function(y,x,C){const w=t(y,x,C);return f?u(w,v)||(v=w):(f=!0,v=w,ds.NODE_ENV!=="production"&&Jj(v,l,"mergeProps")),v}}}function wU(t){return t?typeof t=="function"?EU(t):pR(t,"mergeProps"):()=>SU}function RU(t){t()}function _U(){let t=null,r=null;return{clear(){t=null,r=null},notify(){RU(()=>{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 SI={notify(){},get:()=>[]};function Kj(t,r){let i,l=SI,u=0,f=!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(){N.onStateChange&&N.onStateChange()}function x(){return f}function C(){u++,i||(i=r?r.addNestedSub(y):t.subscribe(y),l=_U())}function w(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=SI)}function R(){f||(f=!0,C())}function j(){f&&(f=!1,w())}const N={addNestedSub:v,notifyNestedSubs:h,handleChangeWrapper:y,isSubscribed:x,trySubscribe:R,tryUnsubscribe:j,getListeners:()=>l};return N}var TU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m0=TU?qt.useLayoutEffect:qt.useEffect;function EI(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function VE(t,r){if(EI(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])||!EI(t[i[u]],r[i[u]]))return!1;return!0}var NU={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},IU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},AU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jU={[cU]:AU,[dU]:eO};function wI(t){return hU(t)?eO:jU[t.$$typeof]||NU}var OU=Object.defineProperty,DU=Object.getOwnPropertyNames,RI=Object.getOwnPropertySymbols,kU=Object.getOwnPropertyDescriptor,MU=Object.getPrototypeOf,_I=Object.prototype;function Sw(t,r){if(typeof r!="string"){if(_I){const f=MU(r);f&&f!==_I&&Sw(t,f)}let i=DU(r);RI&&(i=i.concat(RI(r)));const l=wI(t),u=wI(r);for(let f=0;f<i.length;++f){const v=i[f];if(!IU[v]&&!(u&&u[v])&&!(l&&l[v])){const h=kU(r,v);try{OU(t,v,h)}catch{}}}}return t}var tO=Bj,LU=t=>{tO=t},PU=[null,null],FU=t=>{try{return JSON.stringify(t)}catch{return String(t)}};function VU(t,r,i){m0(()=>t(...r),i)}function BU(t,r,i,l,u,f){t.current=l,i.current=!1,u.current&&(u.current=null,f())}function zU(t,r,i,l,u,f,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(P){M=P,R=P}M||(R=null),I===f.current?v.current||x():(f.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 $U(t,r){return t===r}var TI=!1;function UU(t,r,i,{pure:l,areStatesEqual:u=$U,areOwnPropsEqual:f=VE,areStatePropsEqual:v=VE,areMergedPropsEqual:h=VE,forwardRef:y=!1,context:x=au}={}){ds.NODE_ENV!=="production"&&l!==void 0&&!TI&&(TI=!0,fR('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const C=x,w=CU(t),R=xU(r),j=wU(i),N=!!t;return I=>{if(ds.NODE_ENV!=="production"&&!fU(I))throw new Error(`You must pass a component to the function returned by connect. Instead received ${FU(I)}`);const M=I.displayName||I.name||"Component",P=`Connect(${M})`,V={shouldHandleStateChanges:N,displayName:P,wrappedComponentName:M,WrappedComponent:I,initMapStateToProps:w,initMapDispatchToProps:R,initMergeProps:j,areStatesEqual:u,areStatePropsEqual:v,areOwnPropsEqual:f,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(!pU(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 "${P}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${P} in connect options.`);const xe=Re?X.store:ae.store,Ae=be?ae.getServerState:xe.getState,Le=qt.useMemo(()=>gU(xe.dispatch,V),[xe]),[ne,Oe]=qt.useMemo(()=>{if(!N)return PU;const ot=Kj(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?zU(N,xe,ne,Le,re,Z,we,Te,Ce,Oe,je):()=>{},[ne]);VU(BU,[re,Z,we,ie,Ce,Oe]);let Be;try{Be=tO(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=Be});const Ge=qt.useMemo(()=>qt.createElement(I,{...Be,ref:pe}),[pe,I,Be]);return qt.useMemo(()=>N?qt.createElement(ge.Provider,{value:G},Ge):Ge,[ge,Ge,G])}const z=qt.memo(U);if(z.WrappedComponent=I,z.displayName=U.displayName=P,y){const Y=qt.forwardRef(function(ie,ge){return qt.createElement(z,{...ie,reactReduxForwardedRef:ge})});return Y.displayName=P,Y.WrappedComponent=I,Sw(Y,I)}return Sw(z,I)}}var ps=UU;function HU({store:t,context:r,children:i,serverState:l,stabilityCheck:u="once",identityFunctionCheck:d="once"}){const v=qt.useMemo(()=>{const x=Kj(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 th=HU;function nO(t=au){const r=t===au?zj:uR(t),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var GU=nO();function WU(t=au){const r=t===au?GU:nO(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var No=WU();nU(eU.useSyncExternalStoreWithSelector);LU(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},XU=t=>new Date(`${t}T00:00:00`),YU={year:"numeric",month:"short",day:"numeric"},Hd=(t,r)=>XU(t).toLocaleString("en-us",r||YU),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}`}),H0=t=>{const r=t.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:t,short:r&&r[3]||null}},NI=t=>{const r=H0(t.name);return r.short||r.full},g0=(t,r)=>t.isCredit>r.isCredit||t.isActive>r.isActive||NI(t)<NI(r)?-1:1,II=(...t)=>{for(let r of t)if(r!=null)return r;return null},rO=(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=>rO(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,aO=(t,r,i)=>`1 ${y0(t,1)} = ${ga(r)} ${y0(i,r)}`,iO=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},G0=[{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"}],oO={};for(let t of G0)oO[t.role]=t;const Ew={};for(let{role:t,xrasRole:r}of G0)Ew[t]=r;const ww=["info","success","secondary","warning","danger"];function Rw(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 _w={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},BE={};function sO(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 ZU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function qU(t){if(BE[t])return BE[t];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,u=await(await fetch(`${i}/${t}`)).json();return BE[t]=u,u}function JU(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:jI(r),points:jI(i)}}function AI({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,P)=>{Object.keys(_w).forEach(V=>{N[V].push(M[1],_w[V].colors[P])}),T.push(M[1],5*(P+1))});const I=[];if(i.lines.forEach((M,P)=>{I.push(M[1],1*(P+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"],...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 QU(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 KU(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:QU(...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 jI(t,r=[0,.3,.6,.9]){return r.map((i,l)=>{const u=eH(t,i),d=l===r.length-1?"+":"";return[`${sO(Math.round(u))}${d}`,u]})}function eH(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 tH="_fullscreen_1iid9_6",nH="_map_1iid9_14",Pb={"allocations-map":"_allocations-map_1iid9_1",fullscreen:tH,map:nH},rH="_group_11k83_1",aH="_button_11k83_6",iH="_icon_11k83_16",zE={group:rH,button:aH,icon:iH};function OI({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 ${zE.button}`,htmlFor:v,disabled:r.includes(v),children:[l===v?m.jsx("i",{className:`bi bi-check ${zE.icon}`}):null," ",h]},`${v}-label`))),m.jsx("div",{className:"mb-2",children:m.jsx("div",{className:`btn-group ${zE.group}`,role:"group","aria-label":i,children:d})})}const oH="_controls_1be4t_1",sH={controls:oH};function lH({creditType:t,organizationType:r,setCreditType:i,setOrganizationType:l}){return m.jsxs("div",{className:sH.controls,children:[m.jsx("h2",{children:"ACCESS Allocations"}),m.jsx(OI,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:t,setValue:i}),m.jsx(OI,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:t==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:l})]})}const uH="_legend_odgg9_1",cH="_symbols_odgg9_17",dH="_symbol_odgg9_17",Jb={legend:uH,symbols:cH,symbol:dH};function fH(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 pH({activeOrg:t,creditLevels:r,organizationType:i}){if(t||!r)return;const l=r.points.map((u,d)=>m.jsxs("div",{className:Jb.symbol,children:[fH(5*(d+1),_w[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 hH="_info_oxxoh_1",vH="_user_oxxoh_7",mH="_rp_oxxoh_10",gH="_credits_oxxoh_15",Qb={info:hH,user:vH,rp:mH,credits:gH};function DI(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 yH({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 ",DI(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",m.jsxs("span",{className:Qb.credits,children:[sO(d)," ACCESS Credits"]}),r!=="allocated"?m.jsxs(m.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",DI(y.rp,"rp","resource provider")]}):"","."]})})}function bH(){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),[I,M]=k.useState("user"),[P,V]=k.useState("exchanged");return k.useEffect(()=>{(async()=>d(await ZU()))()},[]),k.useEffect(()=>{(async U=>{const[F,z]=await Promise.all(["organizations",`credits_${U}`].map(qU));if(!N){const Y={};F.features.forEach(pe=>Y[pe.id.toString()]=pe.properties.name),T(Y)}const X=KU(F,z,P);w(X),U==="exchanged"&&!v&&h(JU(X))})(P)},[P]),k.useEffect(()=>{R&&R.setStyle(AI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,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(()=>{P==="allocated"&&M("user")},[P]),k.useLayoutEffect(()=>j(new maplibregl.Map({container:r.current,style:AI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,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(lH,{creditType:P,fullscreen:y,organizationType:I,setCreditType:V,setFullscreen:x,setOrganizationType:M}),m.jsx(pH,{activeOrg:i,creditLevels:v,organizationType:I}),m.jsx(yH,{activeOrg:i,creditType:P,organizationMap:N,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 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),kI=(t,r)=>{r.current||(r.current=setInterval(()=>{window.scrollBy(0,t*10)},16))},$E=t=>{t.current&&(clearInterval(t.current),t.current=null)},SH="_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:SH,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"};var Tw={exports:{}},Fb={exports:{}},wn={};/** @license React v16.13.1
270
+ `),ot}m0(()=>{Ie.current=void 0,Ce.current=void 0,Z.current=Be});const Ge=qt.useMemo(()=>qt.createElement(I,{...Be,ref:pe}),[pe,I,Be]);return qt.useMemo(()=>N?qt.createElement(ge.Provider,{value:G},Ge):Ge,[ge,Ge,G])}const z=qt.memo(U);if(z.WrappedComponent=I,z.displayName=U.displayName=P,y){const Y=qt.forwardRef(function(ie,ge){return qt.createElement(z,{...ie,reactReduxForwardedRef:ge})});return Y.displayName=P,Y.WrappedComponent=I,Sw(Y,I)}return Sw(z,I)}}var ps=UU;function HU({store:t,context:r,children:i,serverState:l,stabilityCheck:u="once",identityFunctionCheck:f="once"}){const v=qt.useMemo(()=>{const x=Kj(t);return{store:t,subscription:x,getServerState:l?()=>l:void 0,stabilityCheck:u,identityFunctionCheck:f}},[t,l,u,f]),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 th=HU;function nO(t=au){const r=t===au?zj:uR(t),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var GU=nO();function WU(t=au){const r=t===au?GU:nO(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var No=WU();nU(eU.useSyncExternalStoreWithSelector);LU(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},XU=t=>new Date(`${t}T00:00:00`),YU={year:"numeric",month:"short",day:"numeric"},Hd=(t,r)=>XU(t).toLocaleString("en-us",r||YU),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),f=Hd(t.endDate,r);return`${t.allocationType}: ${u} to ${f}`}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}`}),H0=t=>{const r=t.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:t,short:r&&r[3]||null}},NI=t=>{const r=H0(t.name);return r.short||r.full},g0=(t,r)=>t.isCredit>r.isCredit||t.isActive>r.isActive||NI(t)<NI(r)?-1:1,II=(...t)=>{for(let r of t)if(r!=null)return r;return null},rO=(t,r="and",i=", ")=>t.reduce((l,u,f)=>m.jsxs(m.Fragment,{children:[l,t.length-1>f?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=>rO(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,aO=(t,r,i)=>`1 ${y0(t,1)} = ${ga(r)} ${y0(i,r)}`,iO=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},G0=[{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"}],oO={};for(let t of G0)oO[t.role]=t;const Ew={};for(let{role:t,xrasRole:r}of G0)Ew[t]=r;const ww=["info","success","secondary","warning","danger"];function Rw(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 _w={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},BE={};function sO(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 ZU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function qU(t){if(BE[t])return BE[t];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,u=await(await fetch(`${i}/${t}`)).json();return BE[t]=u,u}function JU(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:jI(r),points:jI(i)}}function AI({activeOrg:t,basemapStyle:r,creditLevels:i,creditType:l,geoJSON:u,organizationType:f}){const v={},h=[];if(u&&i){const x=f==="user"?"rp":"user",C=u[`${f}Points`],w=u[`${x}Points`],R=`${f}Credits`,j=`${x}Credits`;v.organizations={type:"geojson",data:C};const N={user:[],rp:[]},T=[];i.points.forEach((M,P)=>{Object.keys(_w).forEach(V=>{N[V].push(M[1],_w[V].colors[P])}),T.push(M[1],5*(P+1))});const I=[];if(i.lines.forEach((M,P)=>{I.push(M[1],1*(P+1))}),h.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",R],...T],"circle-color":["interpolate",["linear"],["get",R],...N[f]],"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",`${f}_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 QU(t,r,i,l,u=20){return[...Array(u+1).keys()].map(f=>f/u).map(f=>{let v=f*(i-t)+t,h=f*(l-r)+r+Math.abs(Math.sin(f*Math.PI)*(i-t)*.1);return[v,h]})}function KU(t,r,i){const l={};return t.features.forEach(f=>l[f.id]={type:f.type,geometry:f.geometry,id:f.id,properties:{name:f.properties.name,abbr:f.properties.abbr,userCredits:0,userCreditsMap:{},rpCredits:0,rpCreditsMap:{}}},{}),{creditLines:{type:"FeatureCollection",features:r.result.filter(f=>l[f.user_organization_id]!==void 0&&(i==="allocated"||l[f.rp_organization_id]!==void 0)).map(f=>{const v=l[f.user_organization_id],h=l[f.rp_organization_id];if(v.properties.userCredits+=f.credits,h&&(h.properties.rpCredits+=f.credits),v.properties.userCreditsMap[f.rp_organization_id]=(v.properties.userCreditsMap[f.rp_organization_id]||0)+f.credits,h&&(h.properties.rpCreditsMap[f.user_organization_id]=(h.properties.rpCreditsMap[f.user_organization_id]||0)+f.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:QU(...l[f.user_organization_id].geometry.coordinates,...l[f.rp_organization_id].geometry.coordinates)},properties:f}}).filter(f=>f!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(l).filter(f=>f.properties.userCredits>0).sort((f,v)=>f.properties.userCredits>v.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(l).filter(f=>f.properties.rpCredits>0).sort((f,v)=>f.properties.rpCredits>v.properties.rpCredits?-1:1)}}}function jI(t,r=[0,.3,.6,.9]){return r.map((i,l)=>{const u=eH(t,i),f=l===r.length-1?"+":"";return[`${sO(Math.round(u))}${f}`,u]})}function eH(t,r){t.sort((f,v)=>f-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 tH="_fullscreen_1iid9_6",nH="_map_1iid9_14",Pb={"allocations-map":"_allocations-map_1iid9_1",fullscreen:tH,map:nH},rH="_group_11k83_1",aH="_button_11k83_6",iH="_icon_11k83_16",zE={group:rH,button:aH,icon:iH};function OI({choices:t,disabledValues:r=[],label:i,value:l,setValue:u}){const f=[];return t.forEach(([v,h])=>f.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 ${zE.button}`,htmlFor:v,disabled:r.includes(v),children:[l===v?m.jsx("i",{className:`bi bi-check ${zE.icon}`}):null," ",h]},`${v}-label`))),m.jsx("div",{className:"mb-2",children:m.jsx("div",{className:`btn-group ${zE.group}`,role:"group","aria-label":i,children:f})})}const oH="_controls_1be4t_1",sH={controls:oH};function lH({creditType:t,organizationType:r,setCreditType:i,setOrganizationType:l}){return m.jsxs("div",{className:sH.controls,children:[m.jsx("h2",{children:"ACCESS Allocations"}),m.jsx(OI,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:t,setValue:i}),m.jsx(OI,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:t==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:l})]})}const uH="_legend_odgg9_1",cH="_symbols_odgg9_17",dH="_symbol_odgg9_17",Jb={legend:uH,symbols:cH,symbol:dH};function fH(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 pH({activeOrg:t,creditLevels:r,organizationType:i}){if(t||!r)return;const l=r.points.map((u,f)=>m.jsxs("div",{className:Jb.symbol,children:[fH(5*(f+1),_w[i].colors[f]),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 hH="_info_oxxoh_1",vH="_user_oxxoh_7",mH="_rp_oxxoh_10",gH="_credits_oxxoh_15",Qb={info:hH,user:vH,rp:mH,credits:gH};function DI(t,r,i){t.sort((u,f)=>f[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,f,v,h)=>[u,m.jsx("span",{className:`name ${Qb[r]}`,children:f},f),[""," and ",", "][h.length-v-1]],[])}function yH({activeOrg:t,creditType:r,organizationMap:i,organizationType:l}){if(!t||!i)return;const u=t.properties,f=u[`${l}Credits`],v=l==="rp"?"user":"rp",h=JSON.parse(u[`${l}CreditsMap`]),y={user:[],rp:[]};return y[l].push([u.name,f]),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 ",DI(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",m.jsxs("span",{className:Qb.credits,children:[sO(f)," ACCESS Credits"]}),r!=="allocated"?m.jsxs(m.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",DI(y.rp,"rp","resource provider")]}):"","."]})})}function bH(){const t=k.useRef(null),r=k.useRef(null),[i,l]=k.useState(null),[u,f]=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),[I,M]=k.useState("user"),[P,V]=k.useState("exchanged");return k.useEffect(()=>{(async()=>f(await ZU()))()},[]),k.useEffect(()=>{(async U=>{const[F,z]=await Promise.all(["organizations",`credits_${U}`].map(qU));if(!N){const Y={};F.features.forEach(pe=>Y[pe.id.toString()]=pe.properties.name),T(Y)}const X=KU(F,z,P);w(X),U==="exchanged"&&!v&&h(JU(X))})(P)},[P]),k.useEffect(()=>{R&&R.setStyle(AI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,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(()=>{P==="allocated"&&M("user")},[P]),k.useLayoutEffect(()=>j(new maplibregl.Map({container:r.current,style:AI({activeOrg:i,basemapStyle:u,creditLevels:v,creditType:P,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(lH,{creditType:P,fullscreen:y,organizationType:I,setCreditType:V,setFullscreen:x,setOrganizationType:M}),m.jsx(pH,{activeOrg:i,creditLevels:v,organizationType:I}),m.jsx(yH,{activeOrg:i,creditType:P,organizationMap:N,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 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,f)=>({resource_id:u.resource_id,relative_order:f+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),kI=(t,r)=>{r.current||(r.current=setInterval(()=>{window.scrollBy(0,t*10)},16))},$E=t=>{t.current&&(clearInterval(t.current),t.current=null)},SH="_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:SH,"drag-handle":"_drag-handle_1vb1t_52","resource-name":"_resource-name_1vb1t_61","resource-repo":"_resource-repo_1vb1t_65","resource-link":"_resource-link_1vb1t_71"};var Tw={exports:{}},Fb={exports:{}},wn={};/** @license React v16.13.1
271
271
  * react-is.production.min.js
272
272
  *
273
273
  * Copyright (c) Facebook, Inc. and its affiliates.
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 MI;function EH(){if(MI)return wn;MI=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,N=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,P=t?Symbol.for("react.scope"):60119;function V(F){if(typeof F=="object"&&F!==null){var z=F.$$typeof;switch(z){case r:switch(F=F.type,F){case y:case x:case l:case d:case u:case w:return F;default:switch(F=F&&F.$$typeof,F){case h:case C:case N:case j:case v:return F;default:return z}}case i:return z}}}function U(F){return V(F)===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=N,wn.Memo=j,wn.Portal=i,wn.Profiler=d,wn.StrictMode=u,wn.Suspense=w,wn.isAsyncMode=function(F){return U(F)||V(F)===y},wn.isConcurrentMode=U,wn.isContextConsumer=function(F){return V(F)===h},wn.isContextProvider=function(F){return V(F)===v},wn.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===r},wn.isForwardRef=function(F){return V(F)===C},wn.isFragment=function(F){return V(F)===l},wn.isLazy=function(F){return V(F)===N},wn.isMemo=function(F){return V(F)===j},wn.isPortal=function(F){return V(F)===i},wn.isProfiler=function(F){return V(F)===d},wn.isStrictMode=function(F){return V(F)===u},wn.isSuspense=function(F){return V(F)===w},wn.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===l||F===x||F===d||F===u||F===w||F===R||typeof F=="object"&&F!==null&&(F.$$typeof===N||F.$$typeof===j||F.$$typeof===v||F.$$typeof===h||F.$$typeof===C||F.$$typeof===I||F.$$typeof===M||F.$$typeof===P||F.$$typeof===T)},wn.typeOf=V,wn}var Rn={},LI;function wH(){if(LI)return Rn;LI=1;var t={};/** @license React v16.13.1
277
+ */var MI;function EH(){if(MI)return wn;MI=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,f=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,N=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,P=t?Symbol.for("react.scope"):60119;function V(F){if(typeof F=="object"&&F!==null){var z=F.$$typeof;switch(z){case r:switch(F=F.type,F){case y:case x:case l:case f:case u:case w:return F;default:switch(F=F&&F.$$typeof,F){case h:case C:case N:case j:case v:return F;default:return z}}case i:return z}}}function U(F){return V(F)===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=N,wn.Memo=j,wn.Portal=i,wn.Profiler=f,wn.StrictMode=u,wn.Suspense=w,wn.isAsyncMode=function(F){return U(F)||V(F)===y},wn.isConcurrentMode=U,wn.isContextConsumer=function(F){return V(F)===h},wn.isContextProvider=function(F){return V(F)===v},wn.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===r},wn.isForwardRef=function(F){return V(F)===C},wn.isFragment=function(F){return V(F)===l},wn.isLazy=function(F){return V(F)===N},wn.isMemo=function(F){return V(F)===j},wn.isPortal=function(F){return V(F)===i},wn.isProfiler=function(F){return V(F)===f},wn.isStrictMode=function(F){return V(F)===u},wn.isSuspense=function(F){return V(F)===w},wn.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===l||F===x||F===f||F===u||F===w||F===R||typeof F=="object"&&F!==null&&(F.$$typeof===N||F.$$typeof===j||F.$$typeof===v||F.$$typeof===h||F.$$typeof===C||F.$$typeof===I||F.$$typeof===M||F.$$typeof===P||F.$$typeof===T)},wn.typeOf=V,wn}var Rn={},LI;function wH(){if(LI)return Rn;LI=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,N=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,P=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===N||je.$$typeof===h||je.$$typeof===y||je.$$typeof===w||je.$$typeof===M||je.$$typeof===P||je.$$typeof===V||je.$$typeof===I)}function F(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 N: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=N,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)||F(je)===x}function Z(je){return F(je)===C}function re(je){return F(je)===y}function Ce(je){return F(je)===h}function we(je){return typeof je=="object"&&je!==null&&je.$$typeof===i}function Te(je){return F(je)===w}function Ie(je){return F(je)===u}function ue(je){return F(je)===T}function de(je){return F(je)===N}function Be(je){return F(je)===l}function Ge(je){return F(je)===v}function tt(je){return F(je)===d}function ot(je){return F(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=Be,Rn.isProfiler=Ge,Rn.isStrictMode=tt,Rn.isSuspense=ot,Rn.isValidElementType=U,Rn.typeOf=F}(),Rn}var PI;function yR(){if(PI)return Fb.exports;PI=1;var t={};return t.NODE_ENV==="production"?Fb.exports=EH():Fb.exports=wH(),Fb.exports}/*
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,f=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,N=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,P=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===f||je===R||je===j||typeof je=="object"&&je!==null&&(je.$$typeof===T||je.$$typeof===N||je.$$typeof===h||je.$$typeof===y||je.$$typeof===w||je.$$typeof===M||je.$$typeof===P||je.$$typeof===V||je.$$typeof===I)}function F(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 f:case R:return dt;default:var en=dt&&dt.$$typeof;switch(en){case y:case w:case T:case N: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=N,xe=l,Ae=v,Le=f,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)||F(je)===x}function Z(je){return F(je)===C}function re(je){return F(je)===y}function Ce(je){return F(je)===h}function we(je){return typeof je=="object"&&je!==null&&je.$$typeof===i}function Te(je){return F(je)===w}function Ie(je){return F(je)===u}function ue(je){return F(je)===T}function de(je){return F(je)===N}function Be(je){return F(je)===l}function Ge(je){return F(je)===v}function tt(je){return F(je)===f}function ot(je){return F(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=Be,Rn.isProfiler=Ge,Rn.isStrictMode=tt,Rn.isSuspense=ot,Rn.isValidElementType=U,Rn.typeOf=F}(),Rn}var PI;function yR(){if(PI)return Fb.exports;PI=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 UE,FI;function RH(){if(FI)return UE;FI=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 UE=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},UE}var HE,VI;function bR(){if(VI)return HE;VI=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return HE=t,HE}var GE,BI;function lO(){return BI||(BI=1,GE=Function.call.bind(Object.prototype.hasOwnProperty)),GE}var WE,zI;function _H(){if(zI)return WE;zI=1;var t={},r=function(){};if(t.NODE_ENV!=="production"){var i=bR(),l={},u=lO();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 N=C?C():"";r("Failed "+y+" type: "+R.message+(N??""))}}}}return d.resetWarningCache=function(){t.NODE_ENV!=="production"&&(l={})},WE=d,WE}var XE,$I;function TH(){if($I)return XE;$I=1;var t={},r=yR(),i=RH(),l=bR(),u=lO(),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 XE=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>>",N={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:V(),arrayOf:U,element:F(),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,Be,Ge,tt,ot){if(Be=Be||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=Be+":"+de;!re[Rt]&&Ce<3&&(v("You are manually calling a React.PropTypes validation function for the `"+tt+"` prop on `"+Be+"`. 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 `"+Be+"`, but its value is `null`.")):new I("The "+Ge+" `"+tt+"` is marked as required in "+("`"+Be+"`, but its value is `undefined`.")):null:Z(ue,de,Be,Ge,tt)}var Te=we.bind(null,!1);return Te.isRequired=we.bind(null,!0),Te}function P(Z){function re(Ce,we,Te,Ie,ue,de){var Be=Ce[we],Ge=Le(Be);if(Ge!==Z){var tt=ne(Be);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 Be=Le(de);return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Be+"` 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 F(){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,Be=G(Ce[we]);return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Be+"` 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],Be=0;Be<Z.length;Be++)if(T(de,Z[Be]))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],Be=Le(de);if(Be!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Be+"` 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,Be){for(var Ge=[],tt=0;tt<Z.length;tt++){var ot=Z[tt],je=ot(Te,Ie,ue,de,Be,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+" `"+Be+"` 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],Be=Le(de);if(Be!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type `"+Be+"` "+("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],Be=Le(de);if(Be!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type `"+Be+"` "+("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 N.checkPropTypes=d,N.resetWarningCache=d.resetWarningCache,N.PropTypes=N,N},XE}var YE,UI;function NH(){if(UI)return YE;UI=1;var t=bR();function r(){}function i(){}return i.resetWarningCache=r,YE=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},YE}var IH={};if(IH.NODE_ENV!=="production"){var AH=yR(),jH=!0;Tw.exports=TH()(AH.isElement,jH)}else Tw.exports=NH()();var OH=Tw.exports;const Pe=eh(OH),DH=(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}},Nw=t=>({type:"SET_RESOURCE_DATA",payload:t}),kH=t=>({type:"SET_LOADING",payload:t}),HI=(t,r)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:t,color:r}}),lm=(t,r)=>({type:"UPDATE_RESOURCE_FIELD",field:t,value:r}),ZE=(t,r)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:t,updates:r}}),MH=async(t,r)=>await(await fetch(`${r}/resources/${t}.json`)).json(),LH=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})})),PH=(t,r)=>{const[i,l]=k.useReducer(DH,{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 MH(t,r);l(Nw(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}},xR=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)||[]}},FH=(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}},VH=(t,r,i)=>{const{availableResources:l,availableAllocationTypes:u,allowedActionsOptions:d}=xR(t),[v,h]=k.useState(!1),[y,x]=k.useState(!1),[C,w]=k.useState([]),[R,j]=k.useState(""),N=k.useCallback((F,z)=>{i(ZE(F,{allowed_action:{resource_state_type_id:z}}))},[i]),T=k.useCallback((F,z)=>{i(ZE(F,{comment:z}))},[i]),I=k.useCallback((F,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(ZE(F,{required_resources:pe}))},[t,i]);k.useEffect(()=>{if(v&&r){const F=r.allocation_types.flatMap(z=>z.required_resources||[]).map(z=>z.required_resource_id);w(F)}},[v,r]);const M=k.useCallback((F,z)=>{w(X=>z?[...X,F]:X.filter(Y=>Y!==F))},[]),P=k.useCallback(()=>{const F=r.allocation_types.flatMap(pe=>pe.required_resources||[]).map(pe=>pe.required_resource_id),z=C.filter(pe=>!F.includes(pe)),X=F.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(Nw({...t,resource_details:{...r,allocation_types:Y}})),w([]),h(!1)},[C,l,r,t,i]),V=k.useCallback(F=>{const z=F.target.value;j(z)},[]),U=k.useCallback(()=>{var X,Y;if(!R)return;const F=u.find(pe=>pe.allocation_type_id.toString()===R),z=(X=r.allocation_types)==null?void 0:X.some(pe=>pe.allocation_type_id===F.allocation_type_id);if(F&&!z){const pe=(Y=d[0])==null?void 0:Y.value,ie=[...r.allocation_types||[],{allocation_type_id:F.allocation_type_id,display_name:F.display_name,allowed_action:{resource_state_type_id:pe},comment:"",required_resources:[]}];i(Nw({...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:P,selectedNewAllocationType:R,handleSelectNewAllocationType:V,handleSaveAllocationType:U,handleAllowedActionChange:N,handleCommentChange:T,handleRequiredResourceChange:I}},BH=(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 LH(r,i,v,h);if(w.ok){const R=await w.json();return d(HI(R.message||"Resource updated successfully!","success")),await l(),!0}else return await u(w,"Failed to update resource"),!1}catch{return d(HI("Error updating resource. Please try again later.","danger")),!1}},[t,r,i,l,u]),zH=(t=!1)=>{const[r,i]=k.useState(t);return{isEditing:r,handleEditingChange:u=>{i(u)}}},$H={"form-wrapper":"_form-wrapper_mu0yh_1"},b0=({show:t,onClose:r,title:i,children:l,onSave:u,buttonText:d,cancelText:v="Cancel",canSave:h=!0})=>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.jsxs("div",{className:"modal-footer",style:{padding:"15px",textAlign:"right",borderTop:"1px solid #e5e5e5",backgroundColor:"#f8f9fa"},children:[m.jsx("button",{className:"btn btn-danger",onClick:r,children:v}),m.jsx("button",{className:"btn btn-success",onClick:u,disabled:!h,children:d})]})]})})})}):null;b0.propTypes={show:Pe.bool.isRequired,onClose:Pe.func.isRequired,title:Pe.string.isRequired,children:Pe.node.isRequired,onSave:Pe.func.isRequired,buttonText:Pe.string,cancelText:Pe.string,canSave:Pe.bool};const yr=({children:t,color:r,dismissable:i=!1})=>m.jsxs("div",{className:`alert alert-${r} mt-3 alert-dismissible show`,role:"alert",children:[t,i&&m.jsx("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close",children:m.jsx("span",{"aria-hidden":"true",children:"×"})})]}),Wp=({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))})]});Wp.propTypes={label:Pe.string,options:Pe.arrayOf(Pe.shape({value:Pe.oneOfType([Pe.string,Pe.number]).isRequired,label:Pe.string.isRequired,additionalInfo:Pe.string})).isRequired,value:Pe.oneOfType([Pe.string,Pe.number]),onChange:Pe.func.isRequired};function ym({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 UH="_blurred_16xcy_16",ql={"advanced-settings":"_advanced-settings_16xcy_1","header-wrapper":"_header-wrapper_16xcy_5","content-container":"_content-container_16xcy_11",blurred:UH,"warning-banner":"_warning-banner_16xcy_21","alt-warning-banner":"_alt-warning-banner_16xcy_40 _warning-banner_16xcy_21"},CR=({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})]})]})};CR.propTypes={headerText:Pe.node,header:Pe.node,children:Pe.node.isRequired,isEditing:Pe.bool,onEditingChange:Pe.func.isRequired,warningMessage:Pe.string};const SR=pr.memo(function({resourceDetails:r,resourceTypesOptions:i,unitTypesOptions:l,dispatch:u,isDollarValueEditing:d,onDollarValueEditingChange:v,showDollarValue:h=!0,showResourceId:y=!0,useAdvancedSettings:x=!0}){const C="Dollar Value per SUs",w=h?m.jsx(ym,{label:x?null:C,value:r.dollar_value,onChange:R=>u(lm("dollar_value",R.target.value)),type:"number",inputAddon:"$",inputClassName:"span4"}):null;return m.jsxs(m.Fragment,{children:[m.jsx(ym,{label:"Resource Name",value:r.resource_name,onChange:R=>u(lm("resource_name",R.target.value)),inputClassName:"span8"}),y&&m.jsx(ym,{label:"Resource ID",value:r.resource_id,disabled:!0,inputClassName:"span8"}),x&&h?m.jsx(CR,{headerText:m.jsx("label",{children:C}),isEditing:d,onEditingChange:v,warningMessage:"Dollar value is for reporting and should only be modified if the SU rate changes.",children:w}):w,m.jsx(ym,{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:R=>u(lm("description",R.target.value)),inputClassName:"span8"}),m.jsx(Wp,{label:"Resource Type",options:i,value:r.resource_type_id,onChange:R=>u(lm("resource_type_id",R.target.value)),className:"span8"}),m.jsx(Wp,{label:"Unit Type",options:l,value:r.unit_type_id,onChange:R=>u(lm("unit_type_id",R.target.value)),className:"span8"})]})});SR.propTypes={resourceDetails:Pe.object.isRequired,resourceTypesOptions:Pe.array.isRequired,unitTypesOptions:Pe.array.isRequired,dispatch:Pe.func.isRequired,isDollarValueEditing:Pe.bool,onDollarValueEditingChange:Pe.func,showDollarValue:Pe.bool,showResourceId:Pe.bool,useAdvancedSettings:Pe.bool};function uO({onClose:t}){const[r,i]=k.useState(!0),[l,u]=k.useState([]),[d,v]=k.useState(null),[h,y]=k.useState(-1),[x,C]=k.useState(null),w=xR(x);w.resourceTypesOptions.unshift({value:0,label:"Select a resource type..."}),w.unitTypesOptions.unshift({value:0,label:"Select a unit type..."}),k.useEffect(()=>{(async()=>{const P=await fetch("/resources/addable.json");i(!1),P.status==200?u(await P.json()):v("Error retrieving resource list.")})()},[]),k.useEffect(()=>{if(h===-1)return C(null);(async()=>{const P=await fetch(`/resources/addable/${h}.json`);P.status==200?C(await P.json()):v("Error retrieving resource details.")})()},[h]);let R=null;r?R=m.jsx("p",{children:"Loading…"}):d!==null?R=m.jsx(yr,{color:"danger",children:d}):l.length==0&&(R=m.jsx(yr,{children:"There are currently no resources available to add."}));const j=[{value:-1,label:"Select a resource..."}].concat(l.map(P=>({value:P.xras_cider_resource_id,label:P.resource_descriptive_name}))),N=x?x.resource_details:null,T=!d&&N&&N.resource_name.length>0&&N.resource_type_id>0&&N.unit_type_id>0,I=P=>{P.type=="UPDATE_RESOURCE_FIELD"&&C({...x,resource_details:{...x.resource_details,[P.field]:P.value}})},M=()=>{(async()=>{const P=await fetch("/resources",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({...N,resource_repository_key:h})});if(P.status==200){const V=await P.json();window.location=`/resources/${V.resource_id}`}else v("Error saving resource.")})()};return R===null&&(R=m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Select a Resource to Add"}),m.jsx(Wp,{options:j,onChange:P=>y(parseInt(P.target.value))}),!x&&h!==-1?m.jsx("p",{children:"Loading…"}):null,x&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Resource Properties"}),m.jsx("p",{style:{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("div",{className:$H["form-wrapper"],children:m.jsx(SR,{resourceDetails:N,resourceTypesOptions:w.resourceTypesOptions,unitTypesOptions:w.unitTypesOptions,showResourceId:!1,showDollarValue:!1,dispatch:I})})]})]})),m.jsx(b0,{show:!0,onClose:t,title:"Add a Resource from CIDeR",onSave:M,buttonText:"Save",canSave:T,children:R})}uO.propTypes={onClose:Pe.func.isRequired};function HH({availableResources:t,relativeUrlRoot:r}){const i=k.useMemo(()=>CH(t),[t]),[l,u]=k.useState(i),[d,v]=k.useState(!1),h=k.useRef(null),y=k.useRef(null);k.useEffect(()=>{u(i)},[i]);const x=(R,j)=>{h.current=j},C=(R,j)=>{if(R.preventDefault(),h.current===j)return;const N=[...l],T=N[h.current];N.splice(h.current,1),N.splice(j,0,T),h.current=j,u(N);const{clientY:I}=R,M=130;I<M?kI(-1,y):window.innerHeight-I<M?kI(1,y):$E(y)},w=()=>{h.current=null,$E(y),xH(r,l)};return k.useEffect(()=>()=>$E(y),[]),m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:ls["resources-container"],children:[m.jsx("button",{className:"btn btn-primary pull-right",onClick:()=>v(!0),children:"Add a Resource from CIDeR"}),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((R,j)=>m.jsxs("div",{className:`${ls["resources-item"]}`,draggable:!0,onDragStart:N=>x(N,j),onDragOver:N=>C(N,j),onDrop:w,children:[m.jsx("span",{className:ls["drag-handle"]}),m.jsx("span",{className:ls["resource-name"],children:m.jsx("a",{href:`${r}/resources/${R.resource_id}`,className:ls["resource-link"],children:R.display_resource_name})}),m.jsx("span",{className:ls["resource-repo"],children:R.resource_repository_key||"N/A"})]},R.resource_id))]})]}),d&&m.jsx(uO,{onClose:()=>v(!1)})]})}function nh(){return m.jsx("div",{className:"spinner-border",role:"status",children:m.jsx("span",{className:"visually-hidden",children:"Loading..."})})}const GH="_grid_afccc_1",WH="_important_afccc_30",XH="_input_afccc_34",YH="_edited_afccc_38",ZH="_disabled_afccc_46",qH="_scroll_afccc_59",Gd={grid:GH,important:WH,input:XH,edited:YH,disabled:ZH,scroll:qH};function JH({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 ER=({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}));ER.propTypes={title:Pe.string.isRequired,placement:Pe.oneOf(["top","bottom","left","right"]),children:Pe.node.isRequired};ER.defaultProps={placement:"top"};const QH="_datepicker_19wnv_1",KH="_error_19wnv_1",GI={datepicker:QH,error:KH},eG=({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:`${GI.datepicker} ${y?GI.error:""}`,value:t||"",onChange:x=>r(x.target.value),disabled:i,min:d||"1900-01-01",max:v||"2100-12-31"})})},um=(t,r,i)=>{if(r.onChange){r.onChange(i,t);return}const l=t[r.key];l!=null&&l.onChange&&l.onChange(i)},tG={text:JH,select:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx(Wp,{label:"",options:r[t.key].options,value:r[t.key].value,onChange:l=>um(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(ym,{label:"",type:"text",disabled:r[t.key].disabled,value:r[t.key].value,onChange:l=>um(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=>um(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(eG,{value:l.value,onChange:u=>um(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 um(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(ER,{title:T.tooltip,placement:"bottom",children:m.jsx("i",{className:"icon-info-sign"})})]},T.key)),j=r.map((T,I)=>{const M=t.map((P,V)=>{const U=tG[P.type||"text"];return m.jsx(U,{column:P,row:T,style:w(V)},P.key)});return m.jsx("tr",{className:d[I]||"",children:M},I)}),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 Iw={"header-buttons":"_header-buttons_15oxx_1","allocation-types-grid":"_allocation-types-grid_15oxx_6","vertical-align-center":"_vertical-align-center_15oxx_10"},cO=({onAddAllocationType:t,onAddRequiredResource:r})=>m.jsxs("div",{className:Iw["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"]})]});cO.propTypes={headerText:Pe.node,onAddAllocationType:Pe.func.isRequired,onAddRequiredResource:Pe.func.isRequired};const dO=pr.memo(function({columns:r,rows:i}){return m.jsx("div",{className:Iw["allocation-types-grid"],children:m.jsx(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Iw["vertical-align-center"]),scroll:!1})})});dO.propTypes={columns:Pe.array.isRequired,rows:Pe.array.isRequired};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"},fO=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))})})]})});fO.propTypes={columns:Pe.array.isRequired,rows:Pe.array.isRequired,onAddDiscountRate:Pe.func.isRequired,dateErrors:Pe.array};const nG=(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,N)=>{const T={exchange_rate:N},I={};N?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,P)=>M&&M!==""&&(!M.includes("overlaps")||j.indexOf(M)===P))},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,I)=>{const M=new Date(j).getTime(),P=new Date(N).getTime(),V=new Date(T).getTime(),U=new Date(I).getTime();return M<=U&&V<=P},x=(j,N)=>{let T="";if(j.begin_date&&j.end_date){const I=N.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,N,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)},P=((ge=(ie=t==null?void 0:t.resource_details)==null?void 0:ie.exchange_rates)==null?void 0:ge.discount_rates)||[],V=P.find(ae=>ae.id===j);if(!V)return;const U={[I[N]]:T},F={},z=N==="end_date",X=()=>{if(!T)return F[`${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?(F[`${N}_error`]=`${N.replace("_"," ")} ${M(T)} cannot be before ${M(xe)}`,!1):T>be?(F[`${N}_error`]=`${N.replace("_"," ")} cannot be after ${M(be)}`,!1):(F[`${N}_error`]="",!0)},Y=()=>{const ae=N==="end_date"?T:V.end_date;if(N==="start_date"&&ae){if(T>ae)return F.end_date_error=`end date ${M(ae)} cannot be before ${M(T)}`,!1;F.end_date_error=F.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},P);return F.start_date_error=be,F.end_date_error=be,!be}return!0};if(!X()){r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...F}}});return}Y(),pe(),z&&!V.begin_date?F.start_date_error="Date cannot be empty or invalid":!z&&!V.end_date&&(F.end_date_error="Date cannot be empty or invalid"),r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...F}}})},w=()=>{var F,z;const j=((z=(F=t==null?void 0:t.resource_details)==null?void 0:F.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],P=new Date(I);P.setDate(P.getDate()+15);const V=P.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)||[],I=new Date().toISOString().split("T")[0],M=((U=t==null?void 0:t.resource_details)==null?void 0:U.unit_type)||"Resource Units",P=F=>!F||Number(F)===0?"-":`${(1/Number(F)).toFixed(2)} ${M}`;return[{rate_type:"Base Rate",rate:{value:N.toString(),onChange:F=>u(F)},conversion:P(N)},...T.map(F=>{var pe;const z=F.is_new||F.begin_date>I,X=z||F.begin_date==="",Y=F.is_new||F.end_date>=I||F.end_date==="";return{rate_type:"Discount",rate:{value:((pe=F.exchange_rate)==null?void 0:pe.toString())||"",onChange:z?ie=>d(F.id,ie):null,disabled:!z},conversion:P(F.exchange_rate),start_date:{value:F.begin_date||"",onChange:ie=>C(F.id,"start_date",ie),error:F.start_date_error,disabled:!X},end_date:{value:F.end_date||"",onChange:ie=>C(F.id,"end_date",ie),error:F.end_date_error,disabled:!Y},actions:{id:F.id}}})]})(),handleAddDiscountRate:w,handleDeleteRate:i,dateErrors:v()}};function pO({resourceId:t,relativeUrlRoot:r,setExternalSubmit:i}){const{state:l,dispatch:u,handleError:d,fetchData:v}=PH(t,r),{isEditing:h,handleEditingChange:y}=zH(),{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:I,unitTypesOptions:M,availableResources:P,availableAllocationTypes:V}=xR(x),{showAddResourceModal:U,setShowAddResourceModal:F,showAddAllocationTypeModal:z,setShowAddAllocationTypeModal:X,selectedNewResource:Y,handleSelectNewResource:pe,handleSaveResources:ie,selectedNewAllocationType:ge,handleSelectNewAllocationType:ae,handleSaveAllocationType:Re,handleAllowedActionChange:be,handleCommentChange:xe,handleRequiredResourceChange:Ae}=VH(x,j,u),{exchangeRateColumns:Le,exchangeRateRows:ne,handleAddDiscountRate:Oe,dateErrors:G}=nG(x,u),Z=BH(j,t,r,v,d,u);k.useEffect(()=>{i&&G.length==0?i(Z):i(null)},[Z,i,G]);const{allocationColumns:re,allocationRows:Ce}=FH(j,P,Y,T,be,xe,Ae),[we,Te]=k.useState(!1);return C?m.jsx(nh,{}):w.length>0?m.jsx("div",{children:w.map((Ie,ue)=>m.jsx(yr,{color:"danger",dismissable:!0,children:Ie},ue))}):x?m.jsxs("div",{className:"edit-resource",children:[R.message&&m.jsx(yr,{color:R.color,dismissable:!0,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(SR,{resourceDetails:j,resourceTypesOptions:I,unitTypesOptions:M,dispatch:u,isDollarValueEditing:we,onDollarValueEditingChange:Te})]}),N&&m.jsx(fO,{columns:Le,rows:ne,onAddDiscountRate:Oe,dateErrors:G}),m.jsx(CR,{headerText:m.jsx("h2",{children:"Allocation Types"}),header:m.jsx(cO,{onAddAllocationType:()=>h&&X(!0),onAddRequiredResource:()=>h&&F(!0)}),isEditing:h,onEditingChange:y,warningMessage:`Incorrect allocations
288
+ */var UE,FI;function RH(){if(FI)return UE;FI=1;var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function u(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[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 UE=u()?Object.assign:function(f,v){for(var h,y=l(f),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},UE}var HE,VI;function bR(){if(VI)return HE;VI=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return HE=t,HE}var GE,BI;function lO(){return BI||(BI=1,GE=Function.call.bind(Object.prototype.hasOwnProperty)),GE}var WE,zI;function _H(){if(zI)return WE;zI=1;var t={},r=function(){};if(t.NODE_ENV!=="production"){var i=bR(),l={},u=lO();r=function(v){var h="Warning: "+v;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}}}function f(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 N=C?C():"";r("Failed "+y+" type: "+R.message+(N??""))}}}}return f.resetWarningCache=function(){t.NODE_ENV!=="production"&&(l={})},WE=f,WE}var XE,$I;function TH(){if($I)return XE;$I=1;var t={},r=yR(),i=RH(),l=bR(),u=lO(),f=_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 XE=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>>",N={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:V(),arrayOf:U,element:F(),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,Be,Ge,tt,ot){if(Be=Be||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=Be+":"+de;!re[Rt]&&Ce<3&&(v("You are manually calling a React.PropTypes validation function for the `"+tt+"` prop on `"+Be+"`. 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 `"+Be+"`, but its value is `null`.")):new I("The "+Ge+" `"+tt+"` is marked as required in "+("`"+Be+"`, but its value is `undefined`.")):null:Z(ue,de,Be,Ge,tt)}var Te=we.bind(null,!1);return Te.isRequired=we.bind(null,!0),Te}function P(Z){function re(Ce,we,Te,Ie,ue,de){var Be=Ce[we],Ge=Le(Be);if(Ge!==Z){var tt=ne(Be);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 Be=Le(de);return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Be+"` 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 F(){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,Be=G(Ce[we]);return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Be+"` 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],Be=0;Be<Z.length;Be++)if(T(de,Z[Be]))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],Be=Le(de);if(Be!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type "+("`"+Be+"` 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,Be){for(var Ge=[],tt=0;tt<Z.length;tt++){var ot=Z[tt],je=ot(Te,Ie,ue,de,Be,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+" `"+Be+"` 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],Be=Le(de);if(Be!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type `"+Be+"` "+("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],Be=Le(de);if(Be!=="object")return new I("Invalid "+Ie+" `"+ue+"` of type `"+Be+"` "+("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 N.checkPropTypes=f,N.resetWarningCache=f.resetWarningCache,N.PropTypes=N,N},XE}var YE,UI;function NH(){if(UI)return YE;UI=1;var t=bR();function r(){}function i(){}return i.resetWarningCache=r,YE=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 f={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 f.PropTypes=f,f},YE}var IH={};if(IH.NODE_ENV!=="production"){var AH=yR(),jH=!0;Tw.exports=TH()(AH.isElement,jH)}else Tw.exports=NH()();var OH=Tw.exports;const Pe=eh(OH),DH=(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}},Nw=t=>({type:"SET_RESOURCE_DATA",payload:t}),kH=t=>({type:"SET_LOADING",payload:t}),HI=(t,r)=>({type:"SET_SUCCESS_MESSAGE",payload:{message:t,color:r}}),lm=(t,r)=>({type:"UPDATE_RESOURCE_FIELD",field:t,value:r}),ZE=(t,r)=>({type:"UPDATE_ALLOCATION",payload:{allocationTypeId:t,updates:r}}),MH=async(t,r)=>await(await fetch(`${r}/resources/${t}.json`)).json(),LH=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})})),PH=(t,r)=>{const[i,l]=k.useReducer(DH,{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})},[]),f=k.useCallback(async()=>{l(kH(!0));try{const v=await MH(t,r);l(Nw(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(()=>{f()},[f]),{state:i,dispatch:l,handleError:u,fetchData:f}},xR=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(f=>f.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)||[]}},FH=(t,r,i,l,u,f,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=>f(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}},VH=(t,r,i)=>{const{availableResources:l,availableAllocationTypes:u,allowedActionsOptions:f}=xR(t),[v,h]=k.useState(!1),[y,x]=k.useState(!1),[C,w]=k.useState([]),[R,j]=k.useState(""),N=k.useCallback((F,z)=>{i(ZE(F,{allowed_action:{resource_state_type_id:z}}))},[i]),T=k.useCallback((F,z)=>{i(ZE(F,{comment:z}))},[i]),I=k.useCallback((F,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(ZE(F,{required_resources:pe}))},[t,i]);k.useEffect(()=>{if(v&&r){const F=r.allocation_types.flatMap(z=>z.required_resources||[]).map(z=>z.required_resource_id);w(F)}},[v,r]);const M=k.useCallback((F,z)=>{w(X=>z?[...X,F]:X.filter(Y=>Y!==F))},[]),P=k.useCallback(()=>{const F=r.allocation_types.flatMap(pe=>pe.required_resources||[]).map(pe=>pe.required_resource_id),z=C.filter(pe=>!F.includes(pe)),X=F.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(Nw({...t,resource_details:{...r,allocation_types:Y}})),w([]),h(!1)},[C,l,r,t,i]),V=k.useCallback(F=>{const z=F.target.value;j(z)},[]),U=k.useCallback(()=>{var X,Y;if(!R)return;const F=u.find(pe=>pe.allocation_type_id.toString()===R),z=(X=r.allocation_types)==null?void 0:X.some(pe=>pe.allocation_type_id===F.allocation_type_id);if(F&&!z){const pe=(Y=f[0])==null?void 0:Y.value,ie=[...r.allocation_types||[],{allocation_type_id:F.allocation_type_id,display_name:F.display_name,allowed_action:{resource_state_type_id:pe},comment:"",required_resources:[]}];i(Nw({...t,resource_details:{...r,allocation_types:ie}})),x(!1)}},[R,u,r,t,i,f]);return{showAddResourceModal:v,setShowAddResourceModal:h,showAddAllocationTypeModal:y,setShowAddAllocationTypeModal:x,selectedNewResource:C,handleSelectNewResource:M,handleSaveResources:P,selectedNewAllocationType:R,handleSelectNewAllocationType:V,handleSaveAllocationType:U,handleAllowedActionChange:N,handleCommentChange:T,handleRequiredResourceChange:I}},BH=(t,r,i,l,u,f)=>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 LH(r,i,v,h);if(w.ok){const R=await w.json();return f(HI(R.message||"Resource updated successfully!","success")),await l(),!0}else return await u(w,"Failed to update resource"),!1}catch{return f(HI("Error updating resource. Please try again later.","danger")),!1}},[t,r,i,l,u]),zH=(t=!1)=>{const[r,i]=k.useState(t);return{isEditing:r,handleEditingChange:u=>{i(u)}}},$H={"form-wrapper":"_form-wrapper_mu0yh_1"},b0=({show:t,onClose:r,title:i,children:l,onSave:u,buttonText:f,cancelText:v="Cancel",canSave:h=!0})=>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.jsxs("div",{className:"modal-footer",style:{padding:"15px",textAlign:"right",borderTop:"1px solid #e5e5e5",backgroundColor:"#f8f9fa"},children:[m.jsx("button",{className:"btn btn-danger",onClick:r,children:v}),m.jsx("button",{className:"btn btn-success",onClick:u,disabled:!h,children:f})]})]})})})}):null;b0.propTypes={show:Pe.bool.isRequired,onClose:Pe.func.isRequired,title:Pe.string.isRequired,children:Pe.node.isRequired,onSave:Pe.func.isRequired,buttonText:Pe.string,cancelText:Pe.string,canSave:Pe.bool};const yr=({children:t,color:r,dismissable:i=!1})=>m.jsxs("div",{className:`alert alert-${r} mt-3 alert-dismissible show`,role:"alert",children:[t,i&&m.jsx("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close",children:m.jsx("span",{"aria-hidden":"true",children:"×"})})]}),Wp=({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(f=>m.jsxs("option",{value:f.value,children:[f.label,f.additionalInfo&&` - ${f.additionalInfo}`]},f.value))})]});Wp.propTypes={label:Pe.string,options:Pe.arrayOf(Pe.shape({value:Pe.oneOfType([Pe.string,Pe.number]).isRequired,label:Pe.string.isRequired,additionalInfo:Pe.string})).isRequired,value:Pe.oneOfType([Pe.string,Pe.number]),onChange:Pe.func.isRequired};function ym({label:t,type:r="text",value:i,onChange:l,disabled:u=!1,infoText:f="",style:v,inputClassName:h,inputAddon:y}){return m.jsxs(m.Fragment,{children:[t&&m.jsx("label",{children:t}),f&&m.jsx("small",{className:"form-text help-block",children:f}),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 UH="_blurred_16xcy_16",ql={"advanced-settings":"_advanced-settings_16xcy_1","header-wrapper":"_header-wrapper_16xcy_5","content-container":"_content-container_16xcy_11",blurred:UH,"warning-banner":"_warning-banner_16xcy_21","alt-warning-banner":"_alt-warning-banner_16xcy_40 _warning-banner_16xcy_21"},CR=({headerText:t,header:r,children:i,isEditing:l=!1,onEditingChange:u,warningMessage:f=""})=>{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! "})," ",f]}),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})]})]})};CR.propTypes={headerText:Pe.node,header:Pe.node,children:Pe.node.isRequired,isEditing:Pe.bool,onEditingChange:Pe.func.isRequired,warningMessage:Pe.string};const SR=pr.memo(function({resourceDetails:r,resourceTypesOptions:i,unitTypesOptions:l,dispatch:u,isDollarValueEditing:f,onDollarValueEditingChange:v,showDollarValue:h=!0,showResourceId:y=!0,useAdvancedSettings:x=!0}){const C="Dollar Value per SUs",w=h?m.jsx(ym,{label:x?null:C,value:r.dollar_value,onChange:R=>u(lm("dollar_value",R.target.value)),type:"number",inputAddon:"$",inputClassName:"span4"}):null;return m.jsxs(m.Fragment,{children:[m.jsx(ym,{label:"Resource Name",value:r.resource_name,onChange:R=>u(lm("resource_name",R.target.value)),inputClassName:"span8"}),y&&m.jsx(ym,{label:"Resource ID",value:r.resource_id,disabled:!0,inputClassName:"span8"}),x&&h?m.jsx(CR,{headerText:m.jsx("label",{children:C}),isEditing:f,onEditingChange:v,warningMessage:"Dollar value is for reporting and should only be modified if the SU rate changes.",children:w}):w,m.jsx(ym,{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:R=>u(lm("description",R.target.value)),inputClassName:"span8"}),m.jsx(Wp,{label:"Resource Type",options:i,value:r.resource_type_id,onChange:R=>u(lm("resource_type_id",R.target.value)),className:"span8"}),m.jsx(Wp,{label:"Unit Type",options:l,value:r.unit_type_id,onChange:R=>u(lm("unit_type_id",R.target.value)),className:"span8"})]})});SR.propTypes={resourceDetails:Pe.object.isRequired,resourceTypesOptions:Pe.array.isRequired,unitTypesOptions:Pe.array.isRequired,dispatch:Pe.func.isRequired,isDollarValueEditing:Pe.bool,onDollarValueEditingChange:Pe.func,showDollarValue:Pe.bool,showResourceId:Pe.bool,useAdvancedSettings:Pe.bool};function uO({onClose:t}){const[r,i]=k.useState(!0),[l,u]=k.useState([]),[f,v]=k.useState(null),[h,y]=k.useState(-1),[x,C]=k.useState(null),w=xR(x);w.resourceTypesOptions.unshift({value:0,label:"Select a resource type..."}),w.unitTypesOptions.unshift({value:0,label:"Select a unit type..."}),k.useEffect(()=>{(async()=>{const P=await fetch("/resources/addable.json");i(!1),P.status==200?u(await P.json()):v("Error retrieving resource list.")})()},[]),k.useEffect(()=>{if(h===-1)return C(null);(async()=>{const P=await fetch(`/resources/addable/${h}.json`);P.status==200?C(await P.json()):v("Error retrieving resource details.")})()},[h]);let R=null;r?R=m.jsx("p",{children:"Loading…"}):f!==null?R=m.jsx(yr,{color:"danger",children:f}):l.length==0&&(R=m.jsx(yr,{children:"There are currently no resources available to add."}));const j=[{value:-1,label:"Select a resource..."}].concat(l.map(P=>({value:P.xras_cider_resource_id,label:P.resource_descriptive_name}))),N=x?x.resource_details:null,T=!f&&N&&N.resource_name.length>0&&N.resource_type_id>0&&N.unit_type_id>0,I=P=>{P.type=="UPDATE_RESOURCE_FIELD"&&C({...x,resource_details:{...x.resource_details,[P.field]:P.value}})},M=()=>{(async()=>{const P=await fetch("/resources",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]').content},body:JSON.stringify({...N,resource_repository_key:h})});if(P.status==200){const V=await P.json();window.location=`/resources/${V.resource_id}`}else v("Error saving resource.")})()};return R===null&&(R=m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Select a Resource to Add"}),m.jsx(Wp,{options:j,onChange:P=>y(parseInt(P.target.value))}),!x&&h!==-1?m.jsx("p",{children:"Loading…"}):null,x&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Resource Properties"}),m.jsx("p",{style:{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("div",{className:$H["form-wrapper"],children:m.jsx(SR,{resourceDetails:N,resourceTypesOptions:w.resourceTypesOptions,unitTypesOptions:w.unitTypesOptions,showResourceId:!1,showDollarValue:!1,dispatch:I})})]})]})),m.jsx(b0,{show:!0,onClose:t,title:"Add a Resource from CIDeR",onSave:M,buttonText:"Save",canSave:T,children:R})}uO.propTypes={onClose:Pe.func.isRequired};function HH({availableResources:t,canAdd:r=!1,relativeUrlRoot:i}){const l=k.useMemo(()=>CH(t),[t]),[u,f]=k.useState(l),[v,h]=k.useState(!1),y=k.useRef(null),x=k.useRef(null);k.useEffect(()=>{f(l)},[l]);const C=(j,N)=>{y.current=N},w=(j,N)=>{if(j.preventDefault(),y.current===N)return;const T=[...u],I=T[y.current];T.splice(y.current,1),T.splice(N,0,I),y.current=N,f(T);const{clientY:M}=j,P=130;M<P?kI(-1,x):window.innerHeight-M<P?kI(1,x):$E(x)},R=()=>{y.current=null,$E(x),xH(i,u)};return k.useEffect(()=>()=>$E(x),[]),m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:ls["resources-container"],children:[r&&m.jsx("button",{className:"btn btn-primary pull-right",onClick:()=>h(!0),children:"Add a Resource from CIDeR"}),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"})]}),u.map((j,N)=>m.jsxs("div",{className:`${ls["resources-item"]}`,draggable:!0,onDragStart:T=>C(T,N),onDragOver:T=>w(T,N),onDrop:R,children:[m.jsx("span",{className:ls["drag-handle"]}),m.jsx("span",{className:ls["resource-name"],children:m.jsx("a",{href:`${i}/resources/${j.resource_id}`,className:ls["resource-link"],children:j.display_resource_name})}),m.jsx("span",{className:ls["resource-repo"],children:j.resource_repository_key||"N/A"})]},j.resource_id))]})]}),v&&m.jsx(uO,{onClose:()=>h(!1)})]})}function nh(){return m.jsx("div",{className:"spinner-border",role:"status",children:m.jsx("span",{className:"visually-hidden",children:"Loading..."})})}const GH="_grid_afccc_1",WH="_important_afccc_30",XH="_input_afccc_34",YH="_edited_afccc_38",ZH="_disabled_afccc_46",qH="_scroll_afccc_59",Gd={grid:GH,important:WH,input:XH,edited:YH,disabled:ZH,scroll:qH};function JH({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 ER=({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}));ER.propTypes={title:Pe.string.isRequired,placement:Pe.oneOf(["top","bottom","left","right"]),children:Pe.node.isRequired};ER.defaultProps={placement:"top"};const QH="_datepicker_19wnv_1",KH="_error_19wnv_1",GI={datepicker:QH,error:KH},eG=({value:t,onChange:r,disabled:i=!1,style:l,className:u="",minDate:f="",maxDate:v="",error:h=""})=>{const y=h;return m.jsx("div",{className:`w-full ${u}`,children:m.jsx("input",{type:"date",style:l,className:`${GI.datepicker} ${y?GI.error:""}`,value:t||"",onChange:x=>r(x.target.value),disabled:i,min:f||"1900-01-01",max:v||"2100-12-31"})})},um=(t,r,i)=>{if(r.onChange){r.onChange(i,t);return}const l=t[r.key];l!=null&&l.onChange&&l.onChange(i)},tG={text:JH,select:({column:t,row:r,style:i})=>m.jsx("td",{style:i,children:m.jsx(Wp,{label:"",options:r[t.key].options,value:r[t.key].value,onChange:l=>um(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(ym,{label:"",type:"text",disabled:r[t.key].disabled,value:r[t.key].value,onChange:l=>um(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=>um(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(eG,{value:l.value,onChange:u=>um(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 um(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:f=[],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(ER,{title:T.tooltip,placement:"bottom",children:m.jsx("i",{className:"icon-info-sign"})})]},T.key)),j=r.map((T,I)=>{const M=t.map((P,V)=>{const U=tG[P.type||"text"];return m.jsx(U,{column:P,row:T,style:w(V)},P.key)});return m.jsx("tr",{className:f[I]||"",children:M},I)}),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 Iw={"header-buttons":"_header-buttons_15oxx_1","allocation-types-grid":"_allocation-types-grid_15oxx_6","vertical-align-center":"_vertical-align-center_15oxx_10"},cO=({onAddAllocationType:t,onAddRequiredResource:r})=>m.jsxs("div",{className:Iw["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"]})]});cO.propTypes={headerText:Pe.node,onAddAllocationType:Pe.func.isRequired,onAddRequiredResource:Pe.func.isRequired};const dO=pr.memo(function({columns:r,rows:i}){return m.jsx("div",{className:Iw["allocation-types-grid"],children:m.jsx(su,{columns:r,rows:i,rowClasses:Array(i.length).fill(Iw["vertical-align-center"]),scroll:!1})})});dO.propTypes={columns:Pe.array.isRequired,rows:Pe.array.isRequired};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"},fO=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((f,v)=>m.jsx("li",{children:f},v))})})]})});fO.propTypes={columns:Pe.array.isRequired,rows:Pe.array.isRequired,onAddDiscountRate:Pe.func.isRequired,dateErrors:Pe.array};const nG=(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})},f=(j,N)=>{const T={exchange_rate:N},I={};N?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,P)=>M&&M!==""&&(!M.includes("overlaps")||j.indexOf(M)===P))},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,I)=>{const M=new Date(j).getTime(),P=new Date(N).getTime(),V=new Date(T).getTime(),U=new Date(I).getTime();return M<=U&&V<=P},x=(j,N)=>{let T="";if(j.begin_date&&j.end_date){const I=N.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,N,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)},P=((ge=(ie=t==null?void 0:t.resource_details)==null?void 0:ie.exchange_rates)==null?void 0:ge.discount_rates)||[],V=P.find(ae=>ae.id===j);if(!V)return;const U={[I[N]]:T},F={},z=N==="end_date",X=()=>{if(!T)return F[`${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?(F[`${N}_error`]=`${N.replace("_"," ")} ${M(T)} cannot be before ${M(xe)}`,!1):T>be?(F[`${N}_error`]=`${N.replace("_"," ")} cannot be after ${M(be)}`,!1):(F[`${N}_error`]="",!0)},Y=()=>{const ae=N==="end_date"?T:V.end_date;if(N==="start_date"&&ae){if(T>ae)return F.end_date_error=`end date ${M(ae)} cannot be before ${M(T)}`,!1;F.end_date_error=F.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},P);return F.start_date_error=be,F.end_date_error=be,!be}return!0};if(!X()){r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...F}}});return}Y(),pe(),z&&!V.begin_date?F.start_date_error="Date cannot be empty or invalid":!z&&!V.end_date&&(F.end_date_error="Date cannot be empty or invalid"),r({type:"UPDATE_EXCHANGE_RATE",payload:{rateId:j,changes:{...U,...F}}})},w=()=>{var F,z;const j=((z=(F=t==null?void 0:t.resource_details)==null?void 0:F.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],P=new Date(I);P.setDate(P.getDate()+15);const V=P.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)||[],I=new Date().toISOString().split("T")[0],M=((U=t==null?void 0:t.resource_details)==null?void 0:U.unit_type)||"Resource Units",P=F=>!F||Number(F)===0?"-":`${(1/Number(F)).toFixed(2)} ${M}`;return[{rate_type:"Base Rate",rate:{value:N.toString(),onChange:F=>u(F)},conversion:P(N)},...T.map(F=>{var pe;const z=F.is_new||F.begin_date>I,X=z||F.begin_date==="",Y=F.is_new||F.end_date>=I||F.end_date==="";return{rate_type:"Discount",rate:{value:((pe=F.exchange_rate)==null?void 0:pe.toString())||"",onChange:z?ie=>f(F.id,ie):null,disabled:!z},conversion:P(F.exchange_rate),start_date:{value:F.begin_date||"",onChange:ie=>C(F.id,"start_date",ie),error:F.start_date_error,disabled:!X},end_date:{value:F.end_date||"",onChange:ie=>C(F.id,"end_date",ie),error:F.end_date_error,disabled:!Y},actions:{id:F.id}}})]})(),handleAddDiscountRate:w,handleDeleteRate:i,dateErrors:v()}};function pO({resourceId:t,relativeUrlRoot:r,setExternalSubmit:i}){const{state:l,dispatch:u,handleError:f,fetchData:v}=PH(t,r),{isEditing:h,handleEditingChange:y}=zH(),{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:I,unitTypesOptions:M,availableResources:P,availableAllocationTypes:V}=xR(x),{showAddResourceModal:U,setShowAddResourceModal:F,showAddAllocationTypeModal:z,setShowAddAllocationTypeModal:X,selectedNewResource:Y,handleSelectNewResource:pe,handleSaveResources:ie,selectedNewAllocationType:ge,handleSelectNewAllocationType:ae,handleSaveAllocationType:Re,handleAllowedActionChange:be,handleCommentChange:xe,handleRequiredResourceChange:Ae}=VH(x,j,u),{exchangeRateColumns:Le,exchangeRateRows:ne,handleAddDiscountRate:Oe,dateErrors:G}=nG(x,u),Z=BH(j,t,r,v,f,u);k.useEffect(()=>{i&&G.length==0?i(Z):i(null)},[Z,i,G]);const{allocationColumns:re,allocationRows:Ce}=FH(j,P,Y,T,be,xe,Ae),[we,Te]=k.useState(!1);return C?m.jsx(nh,{}):w.length>0?m.jsx("div",{children:w.map((Ie,ue)=>m.jsx(yr,{color:"danger",dismissable:!0,children:Ie},ue))}):x?m.jsxs("div",{className:"edit-resource",children:[R.message&&m.jsx(yr,{color:R.color,dismissable:!0,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(SR,{resourceDetails:j,resourceTypesOptions:I,unitTypesOptions:M,dispatch:u,isDollarValueEditing:we,onDollarValueEditingChange:Te})]}),N&&m.jsx(fO,{columns:Le,rows:ne,onAddDiscountRate:Oe,dateErrors:G}),m.jsx(CR,{headerText:m.jsx("h2",{children:"Allocation Types"}),header:m.jsx(cO,{onAddAllocationType:()=>h&&X(!0),onAddRequiredResource:()=>h&&F(!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(dO,{columns:re,rows:Ce})}),m.jsx(b0,{show:U,onClose:()=>F(!1),title:"Add Required Resource",onSave:ie,buttonText:"Save",children:m.jsx("div",{children:P.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(b0,{show:z,onClose:()=>X(!1),title:"Add Allocation Type",onSave:Re,buttonText:"Save",children:m.jsx(Wp,{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."})}pO.propTypes={resourceId:Pe.number.isRequired,relativeUrlRoot:Pe.string.isRequired,setExternalSubmit:Pe.func};const ta={error:"error",pending:"pending",success:"success"},x0=t=>t.endDate||t.startDate||(t.actions[0]||{}).entryDate,WI=t=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[t.role]||"04"} ${t.lastName}, ${t.firstName}`,rG=(t,{grantNumber:r,projectManager:i,requestMasterId:l,requests:u,title:d,users:v},h)=>{r=r||l,u.sort((C,w)=>x0(C)>x0(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:I}=C,M=w.map(({entryDate:P})=>P).sort()[0].split("T")[0];return aG(t,C,{entryDate:M,grantNumber:r}),{allocationType:R,endDate:j,entryDate:M,requestId:N,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:N,role:T,username:I})=>{const M=N.filter(z=>z.userAccountState=="active"&&z.unitType!="ACCESS Credits"),P=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),F={};for(let z of M)F[z.xrasResourceId]=z.resourceUsername;return{email:C,firstName:w,initialResourceIds:[...P],initialRole:T,lastName:R,organization:j,resourceAccountPendingIds:V,resourceAccountInactiveIds:U,resourceIds:P,resourceUsernames:F,role:T,username:I}}).sort((C,w)=>WI(C)<WI(w)?-1:1),usersNewRowIndex:0,usersStatus:null},t.projects[r].currentUser=t.projects[r].users.find(({username:C})=>C==t.username)},aG=(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:P,allowedOperations:V,approvedStartDate:U,detailAvailable:F,entryDate:z,isRequest:X,requestedStartDate:Y,resources:pe})=>({actionId:I,allowedOperations:V,detailAvailable:F,date:(z||U||Y).split("T")[0],deleteStatus:null,isRequest:X,resources:pe.map(Aw).sort(g0),showDeleteModal:!1,status:M,type:P})),allocationType:i,allowedActions:iG(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 N={};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)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 I of T.resources)N[I.resourceId]=I;for(let I of j.resources)I.resourceId in N&&(I.questions=N[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},iG=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},XI=(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:I,resourceRepositoryKey:M,resourceType:P,startDate:V,unitType:U,userGuideUrl:F,xrasResourceId:z})=>{const X=U=="[Yes = 1, No = 0]",Y=U=="ACCESS Credits";return{allocated:$p(II(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":P.toLowerCase(),isActive:t=="active",isBoolean:X,isCredit:Y,isFake:!1,isUnderReview:!1,isNew:!1,name:w.trim(),questions:(d||[]).filter(({isActive:pe})=>pe).sort(XI).map(pe=>({attributeSetId:pe.attributeSetId,attributes:pe.attributes.sort(XI).map(ie=>({required:ie.isRequired,resourceAttributeId:ie.resourceAttributeId,label:ie.attributeName})),fieldType:pe.attributeSetRelationType,label:pe.attributeSetName,resourceId:z,values:[]})),resourceProvider:{organizationId:N,name:I,favicon:T},requested:$p(II(l,r)||0,0,"floor"),requires:C||[],resourceId:z,resourceRepositoryKey:M,startDate:V,type:P,unit:U,used:$p(u||0,0,"ceil"),userGuideUrl:F}},hO=(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],oG=(t,r)=>Ks(t,r).users.find(({username:i})=>i==r.payload.username),jw=({allocated:t,isActive:r,isCredit:i})=>t>0&&r&&!i,YI=t=>t.hasChanges=t.isNew||t.role!=t.initialRole||!hO(t.resourceIds,t.initialResourceIds),vO=()=>document.querySelector("meta[name=csrf-token]").content,sG=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({})}),mO=Di("api/fetchProjectDetail",async({grantNumber:t},{rejectWithValue:r})=>r({grantNumber:t})),gO=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:vO()};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:I}of w)if(T.length){let M=N[0].resourceAttributeId,P=["drop_down","single_sel","multi_sel"].includes(I),U={resource_attribute_id:I=="multi_sel"?T:P?T[0]:M};P||(U.attribute_value=T[0]),d[M]=U}}const v={authenticity_token:vO(),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=>!hO(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:Ew[x.role],initialRole:Ew[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})}),yO=$0({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-=Rw(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=oG(t,r);i.role=r.payload.role,YI(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):[];YI(y)}}},extraReducers:t=>{t.addCase(Kb.pending,r=>{r.projectListLoading=!0}).addCase(Kb.fulfilled,(r,i)=>{i.payload.projectsList.sort((l,u)=>x0(l.requests[0])>x0(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&&rG(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(mO.rejected,(r,i)=>{const{grantNumber:l}=i.payload;r.projects[l]={error:"Failed to load project data."}}).addCase(gO.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})}}),lG=t=>t.api.error,uG=t=>t.api.projectsList,cG=t=>t.api.projectListLoading,dG=(t,r)=>Ks(t.api,{payload:{grantNumber:r}}),fG=(t,r)=>ea(t.api,{payload:{requestId:r}}),pG=t=>t.api.username,{addResource:hG,addUser:vG,closeUsageDetailModal:mG,hideAlert:Xq,resetResources:gG,resetUsers:yG,setRequest:bG,setResourceQuestionValues:xG,setResourceRequest:CG,setResourcesReason:SG,setTab:EG,setUserRole:wG,toggleActionsModal:RG,toggleConfirmModal:_G,toggleDeleteModal:TG,toggleResourcesModal:NG,toggleUsersResources:IG}=yO.actions,AG=yO.reducer,jG=t=>{const r=Jn(lG),i=Jn(cG),l=Jn(uG),u=No();return k.useEffect(()=>{u(Kb(t))},[]),{error:r,loading:i,projects:l}},Ji=(t,r)=>{const i=Jn(d=>dG(d,t)),l=Jn(pG),u=No();return k.useEffect(()=>{!i&&!r&&u(mO({grantNumber:t}))},[r]),{project:i,addUser:d=>u(vG({grantNumber:t,user:d})),resetUsers:()=>u(yG({grantNumber:t})),saveUsers:()=>u(r0({grantNumber:t})),setRequest:d=>u(bG({grantNumber:t,requestId:d})),setTab:d=>u(EG({grantNumber:t,tab:d})),setUserRole:(d,v)=>u(wG({grantNumber:t,username:d,role:v})),statuses:ta,toggleUsersResources:(d,v,h)=>u(IG({grantNumber:t,username:v,resourceId:h,checked:d})),username:l}},ri=(t,r)=>{const i=Jn(u=>fG(u,t)),l=No();return k.useEffect(()=>{i||l(gO({grantNumber:r,requestId:t}))},[r,t]),{request:i,addResource:u=>l(hG({requestId:t,resourceId:u})),closeUsageDetailModal:()=>l(mG({requestId:t})),deleteAction:u=>l(t0({actionId:u,requestId:t})),openUsageDetailModal:u=>l(e0({grantNumber:i.grantNumber,requestId:t,resourceRepositoryKey:u})),resetResources:()=>l(gG({requestId:t})),saveResources:()=>l(n0({requestId:t})),setResourceQuestionValues:(u,d,v)=>l(xG({requestId:t,resourceId:u,attributeSetId:d,values:v})),setResourceRequest:(u,d)=>l(CG({requestId:t,resourceId:u,requested:d})),setResourcesReason:u=>l(SG({requestId:t,reason:u})),statuses:ta,toggleActionsModal:()=>l(RG({requestId:t})),toggleConfirmModal:()=>l(_G({requestId:t})),toggleDeleteModal:u=>l(TG({requestId:t,actionId:u})),toggleResourcesModal:()=>l(NG({requestId:t}))}},OG="_project_qqnbz_1",DG="_expand_qqnbz_5",ZI={project:OG,expand:DG},kG="_returnedForCorrectionsNotes_jujbd_1",MG={returnedForCorrectionsNotes:kG};function bO(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 xO={};const C0={prefix:String(Math.round(Math.random()*1e10)),current:0},CO=pr.createContext(C0),LG=pr.createContext(!1);let PG=!!(typeof window<"u"&&window.document&&window.document.createElement),qE=new WeakMap;function FG(t=!1){let r=k.useContext(CO),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=qE.get(d);v==null?qE.set(d,{id:r.current,state:d.memoizedState}):d.memoizedState!==v.state&&(r.current=v.id,qE.delete(d))}i.current=++r.current}return i.current}function VG(t){let r=k.useContext(CO);r===C0&&!PG&&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=FG(!!t),l=r===C0&&xO.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${l}-${i}`}function BG(t){let r=pr.useId(),[i]=k.useState(HG()),l=i||xO.NODE_ENV==="test"?"react-aria":`react-aria${C0.prefix}`;return t||`${l}-${r}`}const SO=typeof pr.useId=="function"?BG:VG;function zG(){return!1}function $G(){return!0}function UG(t){return()=>{}}function HG(){return typeof pr.useSyncExternalStore=="function"?pr.useSyncExternalStore(UG,zG,$G):k.useContext(LG)}const GG=k.createContext(null),rh=GG,WG=k.createContext(null),qd=(t,r=null)=>t!=null?String(t):r||null,iu=WG;function XG(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t},[t]),r}function br(t){const r=XG(t);return k.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const qI=t=>!t||typeof t=="function"?t:r=>{t.current=r};function YG(t,r){const i=qI(t),l=qI(r);return u=>{i&&i(u),l&&l(u)}}function hs(t,r){return k.useMemo(()=>YG(t,r),[t,r])}function wR({children:t,in:r,onExited:i,mountOnEnter:l,unmountOnExit:u}){const d=k.useRef(null),v=k.useRef(r),h=br(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 ZG=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],qG=["activeKey","getControlledId","getControllerId"],JG=["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 EO(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,ZG);const N=k.useContext(rh);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:I,getControllerId:M}=N,P=Ow(N,qG),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||P.transition,mountOnEnter:l??P.mountOnEnter,unmountOnExit:d??P.unmountOnExit,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}]}const wO=k.forwardRef((t,r)=>{let{as:i="div"}=t,l=Ow(t,JG);const[u,{isActive:d,onEnter:v,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:j,transition:N=wR}]=EO(l);return m.jsx(rh.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}))})})})});wO.displayName="TabPanel";const RO=t=>{const{id:r,generateChildId:i,onSelect:l,activeKey:u,defaultActiveKey:d,transition:v,mountOnEnter:h,unmountOnExit:y,children:x}=t,[C,w]=bO(u,d,l),R=SO(r),j=k.useMemo(()=>i||((T,I)=>R?`${R}-${I}-${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(rh.Provider,{value:N,children:m.jsx(iu.Provider,{value:w||null,children:x})})};RO.Panel=wO;const _O=RO;var TO={exports:{}};/*!
291
+ Please proceed with caution.`,children:m.jsx(dO,{columns:re,rows:Ce})}),m.jsx(b0,{show:U,onClose:()=>F(!1),title:"Add Required Resource",onSave:ie,buttonText:"Save",children:m.jsx("div",{children:P.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(b0,{show:z,onClose:()=>X(!1),title:"Add Allocation Type",onSave:Re,buttonText:"Save",children:m.jsx(Wp,{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."})}pO.propTypes={resourceId:Pe.number.isRequired,relativeUrlRoot:Pe.string.isRequired,setExternalSubmit:Pe.func};const ta={error:"error",pending:"pending",success:"success"},x0=t=>t.endDate||t.startDate||(t.actions[0]||{}).entryDate,WI=t=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[t.role]||"04"} ${t.lastName}, ${t.firstName}`,rG=(t,{grantNumber:r,projectManager:i,requestMasterId:l,requests:u,title:f,users:v},h)=>{r=r||l,u.sort((C,w)=>x0(C)>x0(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:I}=C,M=w.map(({entryDate:P})=>P).sort()[0].split("T")[0];return aG(t,C,{entryDate:M,grantNumber:r}),{allocationType:R,endDate:j,entryDate:M,requestId:N,startDate:T,status:I}}),selectedRequestId:x||u[0].requestId,status:h,tab:"overview",title:f,users:v.map(({email:C,firstName:w,lastName:R,organization:j,resources:N,role:T,username:I})=>{const M=N.filter(z=>z.userAccountState=="active"&&z.unitType!="ACCESS Credits"),P=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),F={};for(let z of M)F[z.xrasResourceId]=z.resourceUsername;return{email:C,firstName:w,initialResourceIds:[...P],initialRole:T,lastName:R,organization:j,resourceAccountPendingIds:V,resourceAccountInactiveIds:U,resourceIds:P,resourceUsernames:F,role:T,username:I}}).sort((C,w)=>WI(C)<WI(w)?-1:1),usersNewRowIndex:0,usersStatus:null},t.projects[r].currentUser=t.projects[r].users.find(({username:C})=>C==t.username)},aG=(t,{actions:r,allocationType:i,allowedActions:l,endDate:u,requestId:f,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:P,allowedOperations:V,approvedStartDate:U,detailAvailable:F,entryDate:z,isRequest:X,requestedStartDate:Y,resources:pe})=>({actionId:I,allowedOperations:V,detailAvailable:F,date:(z||U||Y).split("T")[0],deleteStatus:null,isRequest:X,resources:pe.map(Aw).sort(g0),showDeleteModal:!1,status:M,type:P})),allocationType:i,allowedActions:iG(l),endDate:u,entryDate:w,exchangeActionId:null,exchangeStatus:null,grantNumber:R,isMaximize:i=="Maximize",requestId:f,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 N={};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)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 I of T.resources)N[I.resourceId]=I;for(let I of j.resources)I.resourceId in N&&(I.questions=N[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[f]=j},iG=t=>{const r={};for(let{actionType:i,allowedResources:l,opportunityId:u,opportunityName:f}of t){let v={name:i,resources:l.map(Aw).sort(g0),opportunityId:u,opportunityName:f};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},XI=(t,r)=>t.relativeOrder<r.relativeOrder?-1:1,Aw=({allocationState:t,amountAllocated:r,amountApproved:i,amountRequested:l,amountUsed:u,attributeSets:f,baseExchangeRate:v,currentExchangeRate:h,currentExchangeRateEndDate:y,currentExchangeRateType:x,dependentResourceXrasIds:C,displayResourceName:w,endDate:R,exchangeRate:j,organizationId:N,organizationFaviconUrl:T,organizationName:I,resourceRepositoryKey:M,resourceType:P,startDate:V,unitType:U,userGuideUrl:F,xrasResourceId:z})=>{const X=U=="[Yes = 1, No = 0]",Y=U=="ACCESS Credits";return{allocated:$p(II(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":P.toLowerCase(),isActive:t=="active",isBoolean:X,isCredit:Y,isFake:!1,isUnderReview:!1,isNew:!1,name:w.trim(),questions:(f||[]).filter(({isActive:pe})=>pe).sort(XI).map(pe=>({attributeSetId:pe.attributeSetId,attributes:pe.attributes.sort(XI).map(ie=>({required:ie.isRequired,resourceAttributeId:ie.resourceAttributeId,label:ie.attributeName})),fieldType:pe.attributeSetRelationType,label:pe.attributeSetName,resourceId:z,values:[]})),resourceProvider:{organizationId:N,name:I,favicon:T},requested:$p(II(l,r)||0,0,"floor"),requires:C||[],resourceId:z,resourceRepositoryKey:M,startDate:V,type:P,unit:U,used:$p(u||0,0,"ceil"),userGuideUrl:F}},hO=(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],oG=(t,r)=>Ks(t,r).users.find(({username:i})=>i==r.payload.username),jw=({allocated:t,isActive:r,isCredit:i})=>t>0&&r&&!i,YI=t=>t.hasChanges=t.isNew||t.role!=t.initialRole||!hO(t.resourceIds,t.initialResourceIds),vO=()=>document.querySelector("meta[name=csrf-token]").content,sG=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:f,username:v,organization:h})=>({email:l,firstName:u,lastName:f,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({})}),mO=Di("api/fetchProjectDetail",async({grantNumber:t},{rejectWithValue:r})=>r({grantNumber:t})),gO=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],f=u.actions.find(x=>x.actionId==t);if(!f||!f.allowedOperations||!f.allowedOperations.includes("Delete"))return l({actionId:t,requestId:r});const v=Jt.routes.request_action_path(u.requestId,f.actionId),h={_method:"delete",authenticity_token:vO()};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={},f={};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:I}of w)if(T.length){let M=N[0].resourceAttributeId,P=["drop_down","single_sel","multi_sel"].includes(I),U={resource_attribute_id:I=="multi_sel"?T:P?T[0]:M};P||(U.attribute_value=T[0]),f[M]=U}}const v={authenticity_token:vO(),request_action:{action_type:l.allowedActions.Exchange.name,user_comments:l.resourcesReason,resource_attributes:f},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,f=u.filter(x=>!hO(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:Ew[x.role],initialRole:Ew[x.initialRole]})),h={grantNumber:t,resourceChanges:f,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})}),yO=$0({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 f={};for(let y of u.resources)f[y.resourceId]=y;const v=l.resources.map(y=>y.resourceId),h=[i,...f[i].requires||[]].filter(y=>y in f&&!v.includes(y));l.resources.push(...h.map(y=>({...f[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:f})=>f).includes(u.username)||(i.users.push({...u,resourceIds:l.resources.filter(jw).map(f=>f.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,f=ea(t,r);for(let v of f.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 f,v=0;for(let h of u.resources)h.resourceId==i&&(h.requested=l),h.isCredit?(f=h,v+=h.allocated*h.exchangeRates.base.unitCost):v-=Rw(h,"difference");f&&(f.requested=$p(v,f.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=oG(t,r);i.role=r.payload.role,YI(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:f,checked:v}=r.payload,h=u?[i.users.find(y=>y.username==u)]:i.users;for(let y of h){if(f){let x=y.resourceIds.indexOf(f);v&&x==-1?y.resourceIds.push(f):!v&&x>=0&&y.resourceIds.splice(x,1)}else y.resourceIds=v?l.resources.filter(jw).map(({resourceId:x})=>x):[];YI(y)}}},extraReducers:t=>{t.addCase(Kb.pending,r=>{r.projectListLoading=!0}).addCase(Kb.fulfilled,(r,i)=>{i.payload.projectsList.sort((l,u)=>x0(l.requests[0])>x0(u.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(l=>{const{grantNumber:u,requestMasterId:f,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&&rG(r,l,C),{grantNumber:u||f,status:C,title:y}}),r.projectListLoading=!1}).addCase(Kb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(mO.rejected,(r,i)=>{const{grantNumber:l}=i.payload;r.projects[l]={error:"Failed to load project data."}}).addCase(gO.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(f=>f.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})}}),lG=t=>t.api.error,uG=t=>t.api.projectsList,cG=t=>t.api.projectListLoading,dG=(t,r)=>Ks(t.api,{payload:{grantNumber:r}}),fG=(t,r)=>ea(t.api,{payload:{requestId:r}}),pG=t=>t.api.username,{addResource:hG,addUser:vG,closeUsageDetailModal:mG,hideAlert:Xq,resetResources:gG,resetUsers:yG,setRequest:bG,setResourceQuestionValues:xG,setResourceRequest:CG,setResourcesReason:SG,setTab:EG,setUserRole:wG,toggleActionsModal:RG,toggleConfirmModal:_G,toggleDeleteModal:TG,toggleResourcesModal:NG,toggleUsersResources:IG}=yO.actions,AG=yO.reducer,jG=t=>{const r=Jn(lG),i=Jn(cG),l=Jn(uG),u=No();return k.useEffect(()=>{u(Kb(t))},[]),{error:r,loading:i,projects:l}},Ji=(t,r)=>{const i=Jn(f=>dG(f,t)),l=Jn(pG),u=No();return k.useEffect(()=>{!i&&!r&&u(mO({grantNumber:t}))},[r]),{project:i,addUser:f=>u(vG({grantNumber:t,user:f})),resetUsers:()=>u(yG({grantNumber:t})),saveUsers:()=>u(r0({grantNumber:t})),setRequest:f=>u(bG({grantNumber:t,requestId:f})),setTab:f=>u(EG({grantNumber:t,tab:f})),setUserRole:(f,v)=>u(wG({grantNumber:t,username:f,role:v})),statuses:ta,toggleUsersResources:(f,v,h)=>u(IG({grantNumber:t,username:v,resourceId:h,checked:f})),username:l}},ri=(t,r)=>{const i=Jn(u=>fG(u,t)),l=No();return k.useEffect(()=>{i||l(gO({grantNumber:r,requestId:t}))},[r,t]),{request:i,addResource:u=>l(hG({requestId:t,resourceId:u})),closeUsageDetailModal:()=>l(mG({requestId:t})),deleteAction:u=>l(t0({actionId:u,requestId:t})),openUsageDetailModal:u=>l(e0({grantNumber:i.grantNumber,requestId:t,resourceRepositoryKey:u})),resetResources:()=>l(gG({requestId:t})),saveResources:()=>l(n0({requestId:t})),setResourceQuestionValues:(u,f,v)=>l(xG({requestId:t,resourceId:u,attributeSetId:f,values:v})),setResourceRequest:(u,f)=>l(CG({requestId:t,resourceId:u,requested:f})),setResourcesReason:u=>l(SG({requestId:t,reason:u})),statuses:ta,toggleActionsModal:()=>l(RG({requestId:t})),toggleConfirmModal:()=>l(_G({requestId:t})),toggleDeleteModal:u=>l(TG({requestId:t,actionId:u})),toggleResourcesModal:()=>l(NG({requestId:t}))}},OG="_project_qqnbz_1",DG="_expand_qqnbz_5",ZI={project:OG,expand:DG},kG="_returnedForCorrectionsNotes_jujbd_1",MG={returnedForCorrectionsNotes:kG};function bO(t,r,i){const l=k.useRef(t!==void 0),[u,f]=k.useState(r),v=t!==void 0,h=l.current;return l.current=v,!v&&h&&u!==r&&f(r),[v?t:u,k.useCallback((...y)=>{const[x,...C]=y;let w=i==null?void 0:i(x,...C);return f(x),w},[i])]}var xO={};const C0={prefix:String(Math.round(Math.random()*1e10)),current:0},CO=pr.createContext(C0),LG=pr.createContext(!1);let PG=!!(typeof window<"u"&&window.document&&window.document.createElement),qE=new WeakMap;function FG(t=!1){let r=k.useContext(CO),i=k.useRef(null);if(i.current===null&&!t){var l,u;let f=(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(f){let v=qE.get(f);v==null?qE.set(f,{id:r.current,state:f.memoizedState}):f.memoizedState!==v.state&&(r.current=v.id,qE.delete(f))}i.current=++r.current}return i.current}function VG(t){let r=k.useContext(CO);r===C0&&!PG&&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=FG(!!t),l=r===C0&&xO.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${l}-${i}`}function BG(t){let r=pr.useId(),[i]=k.useState(HG()),l=i||xO.NODE_ENV==="test"?"react-aria":`react-aria${C0.prefix}`;return t||`${l}-${r}`}const SO=typeof pr.useId=="function"?BG:VG;function zG(){return!1}function $G(){return!0}function UG(t){return()=>{}}function HG(){return typeof pr.useSyncExternalStore=="function"?pr.useSyncExternalStore(UG,zG,$G):k.useContext(LG)}const GG=k.createContext(null),rh=GG,WG=k.createContext(null),qd=(t,r=null)=>t!=null?String(t):r||null,iu=WG;function XG(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t},[t]),r}function br(t){const r=XG(t);return k.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const qI=t=>!t||typeof t=="function"?t:r=>{t.current=r};function YG(t,r){const i=qI(t),l=qI(r);return u=>{i&&i(u),l&&l(u)}}function hs(t,r){return k.useMemo(()=>YG(t,r),[t,r])}function wR({children:t,in:r,onExited:i,mountOnEnter:l,unmountOnExit:u}){const f=k.useRef(null),v=k.useRef(r),h=br(i);k.useEffect(()=>{r?v.current=!0:h(f.current)},[r,h]);const y=hs(f,t.ref),x=k.cloneElement(t,{ref:y});return r?x:u||!v.current&&l?null:x}const ZG=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],qG=["activeKey","getControlledId","getControllerId"],JG=["as"];function Ow(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function EO(t){let{active:r,eventKey:i,mountOnEnter:l,transition:u,unmountOnExit:f,role:v="tabpanel",onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}=t,j=Ow(t,ZG);const N=k.useContext(rh);if(!N)return[Object.assign({},j,{role:v}),{eventKey:i,isActive:r,mountOnEnter:l,transition:u,unmountOnExit:f,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}];const{activeKey:T,getControlledId:I,getControllerId:M}=N,P=Ow(N,qG),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||P.transition,mountOnEnter:l??P.mountOnEnter,unmountOnExit:f??P.unmountOnExit,onEnter:h,onEntering:y,onEntered:x,onExit:C,onExiting:w,onExited:R}]}const wO=k.forwardRef((t,r)=>{let{as:i="div"}=t,l=Ow(t,JG);const[u,{isActive:f,onEnter:v,onEntering:h,onEntered:y,onExit:x,onExiting:C,onExited:w,mountOnEnter:R,unmountOnExit:j,transition:N=wR}]=EO(l);return m.jsx(rh.Provider,{value:null,children:m.jsx(iu.Provider,{value:null,children:m.jsx(N,{in:f,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:!f,"aria-hidden":!f}))})})})});wO.displayName="TabPanel";const RO=t=>{const{id:r,generateChildId:i,onSelect:l,activeKey:u,defaultActiveKey:f,transition:v,mountOnEnter:h,unmountOnExit:y,children:x}=t,[C,w]=bO(u,f,l),R=SO(r),j=k.useMemo(()=>i||((T,I)=>R?`${R}-${I}-${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(rh.Provider,{value:N,children:m.jsx(iu.Provider,{value:w||null,children:x})})};RO.Panel=wO;const _O=RO;var TO={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})()})(TO);var QG=TO.exports;const Qt=eh(QG);function RR(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 S0(t,r){return S0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},S0(t,r)}function KG(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,S0(t,r)}const JI={disabled:!1};var NO={},e3=NO.NODE_ENV!=="production"?Pe.oneOfType([Pe.number,Pe.shape({enter:Pe.number,exit:Pe.number,appear:Pe.number}).isRequired]):null;NO.NODE_ENV!=="production"&&Pe.oneOfType([Pe.string,Pe.shape({enter:Pe.string,exit:Pe.string,active:Pe.string}),Pe.shape({enter:Pe.string,enterDone:Pe.string,enterActive:Pe.string,exit:Pe.string,exitDone:Pe.string,exitActive:Pe.string})]);const IO=pr.createContext(null);var t3=function(r){return r.scrollTop},n3={},bm="unmounted",mc="exited",Ql="entering",gc="entered",E0="exiting",lu=function(t){KG(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=bm:y=mc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(u,d){var v=u.in;return v&&d.status===bm?{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=E0)}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&&t3(v)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mc&&this.setState({status:bm})},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||JI.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||JI.disabled){this.safeSetState({status:mc},function(){u.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:E0},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===bm)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=RR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(IO.Provider,{value:null},typeof v=="function"?v(u,h):pr.cloneElement(pr.Children.only(v),h))},r}(pr.Component);lu.contextType=IO;lu.propTypes=n3.NODE_ENV!=="production"?{nodeRef:Pe.shape({current:typeof Element>"u"?Pe.any:function(t,r,i,l,u,d){var v=t[r];return Pe.instanceOf(v&&"ownerDocument"in v?v.ownerDocument.defaultView.Element:Element)(t,r,i,l,u,d)}}),children:Pe.oneOfType([Pe.func.isRequired,Pe.element.isRequired]).isRequired,in:Pe.bool,mountOnEnter:Pe.bool,unmountOnExit:Pe.bool,appear:Pe.bool,enter:Pe.bool,exit:Pe.bool,timeout:function(r){var i=e3;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:Pe.func,onEnter:Pe.func,onEntering:Pe.func,onEntered:Pe.func,onExit:Pe.func,onExiting:Pe.func,onExited:Pe.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=bm;lu.EXITED=mc;lu.ENTERING=Ql;lu.ENTERED=gc;lu.EXITING=E0;const r3=lu;function ah(t){return t&&t.ownerDocument||document}function a3(t){var r=ah(t);return r&&r.defaultView||window}function i3(t,r){return a3(t).getComputedStyle(t,r)}var o3=/([A-Z])/g;function s3(t){return t.replace(o3,"-$1").toLowerCase()}var l3=/^ms-/;function Bb(t){return s3(t).replace(l3,"-ms-")}var u3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function c3(t){return!!(t&&u3.test(t))}function nu(t,r){var i="",l="";if(typeof r=="string")return t.style.getPropertyValue(Bb(r))||i3(t).getPropertyValue(Bb(r));Object.keys(r).forEach(function(u){var d=r[u];!d&&d!==0?t.style.removeProperty(Bb(u)):c3(u)?l+=u+"("+d+") ":i+=Bb(u)+": "+d+";"}),l&&(i+="transform: "+l+";"),t.style.cssText+=";"+i}const ih=!!(typeof window<"u"&&window.document&&window.document.createElement);var Dw=!1,kw=!1;try{var JE={get passive(){return Dw=!0},get once(){return kw=Dw=!0}};ih&&(window.addEventListener("test",JE,JE),window.removeEventListener("test",JE,!0))}catch{}function _R(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 _R(t,r,i,l),function(){Mw(t,r,i,l)}}function d3(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 f3(t){var r=nu(t,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function p3(t,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||d3(t,"transitionend",!0)},r+i),d=eu(t,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),d()}}function AO(t,r,i,l){i==null&&(i=f3(t)||0);var u=p3(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 jO(t,r){const i=QI(t,"transitionDuration"),l=QI(t,"transitionDelay"),u=AO(t,d=>{d.target===t&&(u(),r(d))},i+l)}function OO(t){t.offsetHeight}function w0(t){return t&&"setState"in t?$d.findDOMNode(t):t??null}const h3=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(w0(z))},N=z=>X=>{z&&w.current&&z(w.current,X)},T=k.useCallback(N(t),[t]),I=k.useCallback(N(r),[r]),M=k.useCallback(N(i),[i]),P=k.useCallback(N(l),[l]),V=k.useCallback(N(u),[u]),U=k.useCallback(N(d),[d]),F=k.useCallback(N(v),[v]);return m.jsx(r3,{ref:C,...x,onEnter:T,onEntered:M,onEntering:I,onExit:P,onExited:U,onExiting:V,addEndListener:F,nodeRef:w,children:typeof h=="function"?(z,X)=>h(z,{...X,ref:j}):pr.cloneElement(h,{ref:j})})}),DO=h3,v3={[Ql]:"show",[gc]:"show"},kO=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)=>{OO(y),l==null||l(y,x)},[l]);return m.jsx(DO,{ref:d,addEndListener:jO,...v,onEnter:h,childRef:r.ref,children:(y,x)=>k.cloneElement(r,{...x,className:Qt("fade",t,r.props.className,v3[y],i[y])})})});kO.displayName="Fade";const Xp=kO;function TR(t){return typeof t=="boolean"?t?Xp:wR:t}const MO=({transition:t,...r})=>m.jsx(_O,{...r,transition:TR(t)});MO.displayName="TabContainer";const m3=MO,g3=["xxl","xl","lg","md","sm","xs"],y3="xs",LO=k.createContext({prefixes:{},breakpoints:g3,minBreakpoint:y3});function xn(t,r){const{prefixes:i}=k.useContext(LO);return t||i[r]||r}function W0(){const{dir:t}=k.useContext(LO);return t==="rtl"}const PO=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})));PO.displayName="TabContent";const FO=PO,VO=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:I=Xp}]=EO({...i,transition:TR(r)}),M=xn(t,"tab-pane");return m.jsx(rh.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:N,unmountOnExit:T,children:m.jsx(d,{...v,ref:l,className:Qt(u,M,h&&"active")})})})})});VO.displayName="TabPane";const BO=VO,b3={eventKey:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.node.isRequired,disabled:Pe.bool,tabClassName:Pe.string,tabAttrs:Pe.object},zO=()=>{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")};zO.propTypes=b3;const zb=Object.assign(zO,{Container:m3,Content:FO,Pane:BO});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 x3={},C3=function(t,r,i,l,u,d,v,h){if(x3.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}},S3=C3;const KI=eh(S3);function eA(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function E3(t){var r=w3(t,"string");return typeof r=="symbol"?r:String(r)}function w3(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 $O(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 X0(t,r){return Object.keys(r).reduce(function(i,l){var u,d=i,v=d[eA(l)],h=d[l],y=RR(d,[eA(l),l].map(E3)),x=r[l],C=$O(h,v,t[x]),w=C[0],R=C[1];return Tt({},y,(u={},u[l]=w,u[x]=R,u))},t)}var tA={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),I=6;I<N;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 R3=Lw.exports;(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=R3,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})(tA,tA.exports);var _3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kl(t,r){return _3(t.querySelectorAll(r))}function UO(){const[,t]=k.useReducer(r=>!r,!1);return t}const HO=k.createContext(null);HO.displayName="NavContext";const NR=HO,T3="data-rr-ui-",N3="rrUi";function oh(t){return`${T3}${t}`}function I3(t){return`${N3}${t}`}const A3=["as","disabled"];function j3(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 O3(t){return!t||t.trim()==="#"}function IR({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"&&O3(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 AR=k.forwardRef((t,r)=>{let{as:i,disabled:l}=t,u=j3(t,A3);const[d,{tagName:v}]=IR(Object.assign({tagName:i,disabled:l},u));return m.jsx(v,Object.assign({},u,d,{ref:r}))});AR.displayName="Button";const D3=["as","active","eventKey"];function k3(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 GO({key:t,onClick:r,active:i,id:l,role:u,disabled:d}){const v=k.useContext(iu),h=k.useContext(NR),y=k.useContext(rh);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[oh("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=br(w=>{d||(r==null||r(w),t!=null&&v&&!w.isPropagationStopped()&&v(t,w))}),[C,{isActive:x}]}const WO=k.forwardRef((t,r)=>{let{as:i=AR,active:l,eventKey:u}=t,d=k3(t,D3);const[v,h]=GO(Object.assign({key:qd(u,d.href),active:l},d));return v[oh("active")]=h.isActive,m.jsx(i,Object.assign({},d,v,{ref:r}))});WO.displayName="NavItem";const M3=WO,L3=["as","onSelect","activeKey","role","onKeyDown"];function P3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,d;for(d=0;d<l.length;d++)u=l[d],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const nA=()=>{},rA=oh("event-key"),XO=k.forwardRef((t,r)=>{let{as:i="div",onSelect:l,activeKey:u,role:d,onKeyDown:v}=t,h=P3(t,L3);const y=UO(),x=k.useRef(!1),C=k.useContext(iu),w=k.useContext(rh);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 F=Kl(U,`[${rA}]:not([aria-disabled=true])`),z=U.querySelector("[aria-selected=true]");if(!z||z!==document.activeElement)return null;const X=F.indexOf(z);if(X===-1)return null;let Y=X+V;return Y>=F.length&&(Y=0),Y<0&&(Y=F.length-1),F[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[I3("EventKey")]||null,V),x.current=!0,y())};k.useEffect(()=>{if(N.current&&x.current){const V=N.current.querySelector(`[${rA}][aria-selected=true]`);V==null||V.focus()}x.current=!1});const P=hs(r,N);return m.jsx(iu.Provider,{value:I,children:m.jsx(NR.Provider,{value:{role:d,activeKey:qd(u),getControlledId:R||nA,getControllerId:j||nA},children:m.jsx(i,Object.assign({},h,{onKeyDown:M,ref:P,role:d}))})})});XO.displayName="Nav";const F3=Object.assign(XO,{Item:M3}),YO=k.createContext(null);YO.displayName="NavbarContext";const ZO=YO,qO=k.createContext(null);qO.displayName="CardHeaderContext";const V3=qO,JO=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})));JO.displayName="NavItem";const QO=JO;function R0(){return k.useState(null)}function B3(t,r,i,l=!1){const u=br(i);k.useEffect(()=>{const d=typeof t=="function"?t():t;return d.addEventListener(r,u,l),()=>d.removeEventListener(r,u,l)},[t])}function jR(){const t=k.useRef(!0),r=k.useRef(()=>t.current);return k.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),r.current}function KO(t){const r=k.useRef(null);return k.useEffect(()=>{r.current=t}),r.current}const z3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",$3=typeof document<"u",_0=$3||z3?k.useLayoutEffect:k.useEffect,U3=["onKeyDown"];function H3(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 G3(t){return!t||t.trim()==="#"}const eD=k.forwardRef((t,r)=>{let{onKeyDown:i}=t,l=H3(t,U3);const[u]=IR(Object.assign({tagName:"a"},l)),d=br(v=>{u.onKeyDown(v),i==null||i(v)});return G3(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}))});eD.displayName="Anchor";const tD=eD,nD=k.forwardRef(({bsPrefix:t,className:r,as:i=tD,active:l,eventKey:u,disabled:d=!1,...v},h)=>{t=xn(t,"nav-link");const[y,x]=GO({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")})});nD.displayName="NavLink";const rD=nD,aD=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}=X0(t,{activeKey:"onSelect"}),R=xn(l,"nav");let j,N,T=!1;const I=k.useContext(ZO),M=k.useContext(V3);return I?(j=I.bsPrefix,T=h??!0):M&&({cardHeaderBsPrefix:N}=M),m.jsx(F3,{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})});aD.displayName="Nav";const W3=Object.assign(aD,{Item:QO,Link:rD});function aA(t,r){let i=0;return k.Children.map(t,l=>k.isValidElement(l)?r(l,i++):l)}function X3(t,r){let i=0;k.Children.forEach(t,l=>{k.isValidElement(l)&&r(l,i++)})}function Y3(t){let r;return X3(t,i=>{r==null&&(r=i.props.eventKey)}),r}function Z3(t){const{title:r,eventKey:i,disabled:l,tabClassName:u,tabAttrs:d,id:v}=t.props;return r==null?null:m.jsx(QO,{as:"li",role:"presentation",children:m.jsx(rD,{as:"button",type:"button",eventKey:i,disabled:l,id:v,className:u,...d,children:r})})}const iD=t=>{const{id:r,onSelect:i,transition:l,mountOnEnter:u=!1,unmountOnExit:d=!1,variant:v="tabs",children:h,activeKey:y=Y3(h),...x}=X0(t,{activeKey:"onSelect"});return m.jsxs(_O,{id:r,activeKey:y,onSelect:i,transition:TR(l),mountOnEnter:u,unmountOnExit:d,children:[m.jsx(W3,{...x,role:"tablist",as:"ul",variant:v,children:aA(h,Z3)}),m.jsx(FO,{children:aA(h,C=>{const w={...C.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,m.jsx(BO,{...w})})})]})};iD.displayName="Tabs";const q3=iD,J3=k.createContext(null),Y0=J3;var iA=Object.prototype.hasOwnProperty;function oA(t,r,i){for(i of t.keys())if(xm(i,r))return i}function xm(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--&&xm(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=oA(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=oA(r,u),!u)||!xm(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(iA.call(t,i)&&++l&&!iA.call(r,i)||!(i in r)||!xm(t[i],r[i]))return!1;return Object.keys(r).length===l}}return t!==t&&r!==r}function Q3(t){const r=jR();return[t[0],k.useCallback(i=>{if(r())return t[1](i)},[r,t[1]])]}var Ai="top",_o="bottom",To="right",ji="left",OR="auto",Fm=[Ai,_o,To,ji],Yp="start",_m="end",K3="clippingParents",oD="viewport",cm="popper",e9="reference",sA=Fm.reduce(function(t,r){return t.concat([r+"-"+Yp,r+"-"+_m])},[]),sD=[].concat(Fm,[OR]).reduce(function(t,r){return t.concat([r,r+"-"+Yp,r+"-"+_m])},[]),t9="beforeRead",n9="read",r9="afterRead",a9="beforeMain",i9="main",o9="afterMain",s9="beforeWrite",l9="write",u9="afterWrite",c9=[t9,n9,r9,a9,i9,o9,s9,l9,u9];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 DR(t){if(typeof ShadowRoot>"u")return!1;var r=Qi(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}var Wd=Math.max,T0=Math.min,Zp=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 lD(){return!/^((?!chrome|android).)*safari/i.test(Pw())}function qp(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&&Zp(l.width)/t.offsetWidth||1,d=t.offsetHeight>0&&Zp(l.height)/t.offsetHeight||1);var v=Jd(t)?Qi(t):window,h=v.visualViewport,y=!lD()&&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 kR(t){var r=qp(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 uD(t,r){var i=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(i&&DR(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 d9(t){return["table","td","th"].indexOf(xc(t))>=0}function Cc(t){return((Jd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Z0(t){return xc(t)==="html"?t:t.assignedSlot||t.parentNode||(DR(t)?t.host:null)||Cc(t)}function lA(t){return!nl(t)||ou(t).position==="fixed"?null:t.offsetParent}function f9(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=Z0(t);for(DR(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=lA(t);i&&d9(i)&&ou(i).position==="static";)i=lA(i);return i&&(xc(i)==="html"||xc(i)==="body"&&ou(i).position==="static")?r:i||f9(t)||r}function MR(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Cm(t,r,i){return Wd(t,T0(r,i))}function p9(t,r,i){var l=Cm(t,r,i);return l>i?i:l}function cD(){return{top:0,right:0,bottom:0,left:0}}function dD(t){return Object.assign({},cD(),t)}function fD(t,r){return r.reduce(function(i,l){return i[l]=t,i},{})}var h9=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,dD(typeof r!="number"?r:fD(r,Fm))};function v9(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=MR(h),x=[ji,To].indexOf(h)>=0,C=x?"height":"width";if(!(!d||!v)){var w=h9(u.padding,i),R=kR(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],I=v[y]-i.rects.reference[y],M=Vm(d),P=M?y==="y"?M.clientHeight||0:M.clientWidth||0:0,V=T/2-I/2,U=w[j],F=P-R[C]-w[N],z=P/2-R[C]/2+V,X=Cm(U,z,F),Y=y;i.modifiersData[l]=(r={},r[Y]=X,r.centerOffset=X-z,r)}}function m9(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)||uD(r.elements.popper,u)&&(r.elements.arrow=u))}const g9={name:"arrow",enabled:!0,phase:"main",fn:v9,effect:m9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jp(t){return t.split("-")[1]}var y9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function b9(t,r){var i=t.x,l=t.y,u=r.devicePixelRatio||1;return{x:Zp(i*u)/u||0,y:Zp(l*u)/u||0}}function uA(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,I=typeof C=="function"?C({x:j,y:T}):{x:j,y:T};j=I.x,T=I.y;var M=v.hasOwnProperty("x"),P=v.hasOwnProperty("y"),V=ji,U=Ai,F=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===F&&F.visualViewport?F.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===F&&F.visualViewport?F.visualViewport.width:z[Y];j-=ie-l.width,j*=y?1:-1}}var ge=Object.assign({position:h},x&&y9),ae=C===!0?b9({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]=P?"0":"",Re[V]=M?"0":"",Re.transform=(F.devicePixelRatio||1)<=1?"translate("+j+"px, "+T+"px)":"translate3d("+j+"px, "+T+"px, 0)",Re))}return Object.assign({},ge,(r={},r[U]=P?T+"px":"",r[V]=M?j+"px":"",r.transform="",r))}function x9(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:Jp(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,uA(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,uA(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 C9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x9,data:{}};var $b={passive:!0};function S9(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 E9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:S9,data:{}};var w9={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(r){return w9[r]})}var R9={start:"end",end:"start"};function cA(t){return t.replace(/start|end/g,function(r){return R9[r]})}function LR(t){var r=Qi(t),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function PR(t){return qp(Cc(t)).left+LR(t).scrollLeft}function _9(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=lD();(x||!x&&r==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}return{width:d,height:v,x:h+PR(t),y}}function T9(t){var r,i=Cc(t),l=LR(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+PR(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 FR(t){var r=ou(t),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function pD(t){return["html","body","#document"].indexOf(xc(t))>=0?t.ownerDocument.body:nl(t)&&FR(t)?t:pD(Z0(t))}function Sm(t,r){var i;r===void 0&&(r=[]);var l=pD(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),d=Qi(l),v=u?[d].concat(d.visualViewport||[],FR(l)?l:[]):l,h=r.concat(v);return u?h:h.concat(Sm(Z0(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 N9(t,r){var i=qp(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 dA(t,r,i){return r===oD?Fw(_9(t,i)):Jd(r)?N9(r,i):Fw(T9(Cc(t)))}function I9(t){var r=Sm(Z0(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)&&uD(u,l)&&xc(u)!=="body"}):[]}function A9(t,r,i,l){var u=r==="clippingParents"?I9(t):[].concat(r),d=[].concat(u,[i]),v=d[0],h=d.reduce(function(y,x){var C=dA(t,x,l);return y.top=Wd(C.top,y.top),y.right=T0(C.right,y.right),y.bottom=T0(C.bottom,y.bottom),y.left=Wd(C.left,y.left),y},dA(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 hD(t){var r=t.reference,i=t.element,l=t.placement,u=l?tl(l):null,d=l?Jp(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?MR(u):null;if(x!=null){var C=x==="y"?"height":"width";switch(d){case Yp: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?K3:h,x=i.rootBoundary,C=x===void 0?oD:x,w=i.elementContext,R=w===void 0?cm:w,j=i.altBoundary,N=j===void 0?!1:j,T=i.padding,I=T===void 0?0:T,M=dD(typeof I!="number"?I:fD(I,Fm)),P=R===cm?e9:cm,V=t.rects.popper,U=t.elements[N?P:R],F=A9(Jd(U)?U:U.contextElement||Cc(t.elements.popper),y,C,v),z=qp(t.elements.reference),X=hD({reference:z,element:V,strategy:"absolute",placement:u}),Y=Fw(Object.assign({},V,X)),pe=R===cm?Y:z,ie={top:F.top-pe.top+M.top,bottom:pe.bottom-F.bottom+M.bottom,left:F.left-pe.left+M.left,right:pe.right-F.right+M.right},ge=t.modifiersData.offset;if(R===cm&&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 j9(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?sD:y,C=Jp(l),w=C?h?sA:sA.filter(function(N){return Jp(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 O9(t){if(tl(t)===OR)return[];var r=a0(t);return[cA(t),r,cA(r)]}function D9(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,I=r.options.placement,M=tl(I),P=M===I,V=y||(P||!N?[a0(I)]:O9(I)),U=[I].concat(V).reduce(function(we,Te){return we.concat(tl(Te)===OR?j9(r,{placement:Te,boundary:C,rootBoundary:w,padding:x,flipVariations:N,allowedAutoPlacements:T}):Te)},[]),F=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=Jp(ge)===Yp,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;F[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(Be){return Be})});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 k9={name:"flip",enabled:!0,phase:"main",fn:D9,requiresIfExists:["offset"],data:{_skip:!1}};function fA(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 pA(t){return[Ai,To,_o,ji].some(function(r){return t[r]>=0})}function M9(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=fA(v,l),x=fA(h,u,d),C=pA(y),w=pA(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 L9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:M9};function P9(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 F9(t){var r=t.state,i=t.options,l=t.name,u=i.offset,d=u===void 0?[0,0]:u,v=sD.reduce(function(C,w){return C[w]=P9(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 V9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:F9};function B9(t){var r=t.state,i=t.name;r.modifiersData[i]=hD({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const z9={name:"popperOffsets",enabled:!0,phase:"read",fn:B9,data:{}};function $9(t){return t==="x"?"y":"x"}function U9(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,I=Tm(r,{boundary:y,rootBoundary:x,padding:w,altBoundary:C}),M=tl(r.placement),P=Jp(r.placement),V=!P,U=MR(M),F=$9(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=P===Yp?X[Ae]:Y[Ae],re=P===Yp?-Y[Ae]:-X[Ae],Ce=r.elements.arrow,we=j&&Ce?kR(Ce):{width:0,height:0},Te=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:cD(),Ie=Te[be],ue=Te[xe],de=Cm(0,X[Ae],we[Ae]),Be=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+Be-je-ot,dt=Le+Ge-je,en=Cm(j?T0(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[F],Cn=F==="y"?"height":"width",Qn=Vt+I[ln],Tr=Vt-I[In],Hn=[Ai,ji].indexOf(M)!==-1,Nr=(sn=ge==null?void 0:ge[F])!=null?sn:0,St=Hn?Qn:Vt-X[Cn]-Y[Cn]-Nr+ie.altAxis,Pn=Hn?Vt+X[Cn]+Y[Cn]-Nr-ie.altAxis:Tr,un=j&&Hn?p9(St,Vt,Pn):Cm(j?St:Qn,Vt,j?Pn:Tr);z[F]=un,ae[F]=un-Vt}r.modifiersData[l]=ae}}const H9={name:"preventOverflow",enabled:!0,phase:"main",fn:U9,requiresIfExists:["offset"]};function G9(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function W9(t){return t===Qi(t)||!nl(t)?LR(t):G9(t)}function X9(t){var r=t.getBoundingClientRect(),i=Zp(r.width)/t.offsetWidth||1,l=Zp(r.height)/t.offsetHeight||1;return i!==1||l!==1}function Y9(t,r,i){i===void 0&&(i=!1);var l=nl(r),u=nl(r)&&X9(r),d=Cc(r),v=qp(t,u,i),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(l||!l&&!i)&&((xc(r)!=="body"||FR(d))&&(h=W9(r)),nl(r)?(y=qp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=PR(d))),{x:v.left+h.scrollLeft-y.x,y:v.top+h.scrollTop-y.y,width:v.width,height:v.height}}function Z9(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 q9(t){var r=Z9(t);return c9.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function J9(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 hA={placement:"bottom",modifiers:[],strategy:"absolute"};function vA(){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 K9(t){t===void 0&&(t={});var r=t,i=r.defaultModifiers,l=i===void 0?[]:i,u=r.defaultOptions,d=u===void 0?hA:u;return function(h,y,x){x===void 0&&(x=d);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},hA,d),modifiersData:{},elements:{reference:h,popper:y},attributes:{},styles:{}},w=[],R=!1,j={state:C,setOptions:function(M){var P=typeof M=="function"?M(C.options):M;T(),C.options=Object.assign({},d,C.options,P),C.scrollParents={reference:Jd(h)?Sm(h):h.contextElement?Sm(h.contextElement):[],popper:Sm(y)};var V=q9(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,P=M.reference,V=M.popper;if(vA(P,V)){C.rects={reference:Y9(P,Vm(V),C.options.strategy==="fixed"),popper:kR(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 F=C.orderedModifiers[U],z=F.fn,X=F.options,Y=X===void 0?{}:X,pe=F.name;typeof z=="function"&&(C=z({state:C,options:Y,name:pe,instance:j})||C)}}}},update:J9(function(){return new Promise(function(I){j.forceUpdate(),I(C)})}),destroy:function(){T(),R=!0}};if(!vA(h,y))return j;j.setOptions(x).then(function(I){!R&&x.onFirstUpdate&&x.onFirstUpdate(I)});function N(){C.orderedModifiers.forEach(function(I){var M=I.name,P=I.options,V=P===void 0?{}:P,U=I.effect;if(typeof U=="function"){var F=U({state:C,name:M,instance:j,options:V}),z=function(){};w.push(F||z)}})}function T(){w.forEach(function(I){return I()}),w=[]}return j}}const e4=K9({defaultModifiers:[L9,z9,C9,E9,V9,k9,H9,g9]}),t4=["enabled","placement","strategy","modifiers"];function n4(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 r4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},a4={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)}}},i4=[];function vD(t,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:d="absolute",modifiers:v=i4}=i,h=n4(i,t4);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:{}}})),N=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:I})=>{const M={},P={};Object.keys(I.elements).forEach(V=>{M[V]=I.styles[V],P[V]=I.attributes[V]}),j({state:I,styles:M,attributes:P,update:C,forceUpdate:w,placement:I.placement})}}),[C,w,j]),T=k.useMemo(()=>(xm(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,r4]})},[d,u,N,l,T]),k.useEffect(()=>{if(!(!l||t==null||r==null))return x.current=e4(t,r,Object.assign({},h,{placement:u,strategy:d,modifiers:[...T,a4,N]})),()=>{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 o4={},s4=o4.NODE_ENV!=="production",mD=function(){};if(s4){var l4=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{}};mD=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||l4.apply(null,[r].concat(i))}}var u4=mD;const VR=eh(u4),mA=()=>{};function c4(t){return t.button===0}function d4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const i0=t=>t&&("current"in t?t.current:t),gA={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function gD(t,r=mA,{disabled:i,clickTrigger:l="click"}={}){const u=k.useRef(!1),d=k.useRef(!1),v=k.useCallback(x=>{const C=i0(t);VR(!!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||d4(x)||!c4(x)||!!Nm(C,x.target)||d.current,d.current=!1},[t]),h=br(x=>{const C=i0(t);C&&Nm(C,x.target)&&(d.current=!0)}),y=br(x=>{u.current||r(x)});k.useEffect(()=>{var x,C;if(i||t==null)return;const w=ah(i0(t)),R=w.defaultView||window;let j=(x=R.event)!=null?x:(C=R.parent)==null?void 0:C.event,N=null;gA[l]&&(N=eu(w,gA[l],h,!0));const T=eu(w,l,v,!0),I=eu(w,l,P=>{if(P===j){j=void 0;return}y(P)});let M=[];return"ontouchstart"in w.documentElement&&(M=[].slice.call(w.body.children).map(P=>eu(P,"mousemove",mA))),()=>{N==null||N(),T(),I(),M.forEach(P=>P())}},[t,i,l,v,h,y])}function f4(t){const r={};return Array.isArray(t)?(t==null||t.forEach(i=>{r[i.name]=i}),r):t||r}function p4(t={}){return Array.isArray(t)?t:Object.keys(t).map(r=>(t[r].name=r,t[r]))}function yD({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=f4(y.modifiers);return Object.assign({},y,{placement:i,enabled:t,strategy:d?"fixed":y.strategy,modifiers:p4(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 h4=["children"];function v4(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 m4=()=>{};function bD(t={}){const r=k.useContext(Y0),[i,l]=R0(),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:I,menuElement:M,toggleElement:P}=r||{},V=vD(P,M,yD({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||m4,"aria-labelledby":P==null?void 0:P.id},V.attributes.popper,{style:V.styles.popper}),F={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 gD(M,N,{clickTrigger:h,disabled:!j}),[U,F]}const g4={usePopper:!0};function BR(t){let{children:r}=t,i=v4(t,h4);const[l,u]=bD(i);return m.jsx(m.Fragment,{children:r(l,u)})}BR.displayName="DropdownMenu";BR.defaultProps=g4;const xD=t=>{var r;return((r=t.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},yA=()=>{};function CD(){const t=SO(),{show:r=!1,toggle:i=yA,setToggle:l,menuElement:u}=k.useContext(Y0)||{},d=k.useCallback(h=>{i(!r,h)},[r,i]),v={id:t,ref:l||yA,onClick:d,"aria-expanded":!!r};return u&&xD(u)&&(v["aria-haspopup"]=!0),[v,{show:r,toggle:i}]}function SD({children:t}){const[r,i]=CD();return m.jsx(m.Fragment,{children:t(r,i)})}SD.displayName="DropdownToggle";const y4=["eventKey","disabled","onClick","active","as"];function b4(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 ED({key:t,href:r,active:i,disabled:l,onClick:u}){const d=k.useContext(iu),v=k.useContext(NR),{activeKey:h}=v||{},y=qd(t,r),x=i==null&&t!=null?qd(h)===y:i;return[{onClick:br(w=>{l||(u==null||u(w),d&&!w.isPropagationStopped()&&d(y,w))}),"aria-disabled":l||void 0,"aria-selected":x,[oh("dropdown-item")]:""},{isActive:x}]}const wD=k.forwardRef((t,r)=>{let{eventKey:i,disabled:l,onClick:u,active:d,as:v=AR}=t,h=b4(t,y4);const[y]=ED({key:i,href:h.href,disabled:l,onClick:u,active:d});return m.jsx(v,Object.assign({},h,{ref:r},y))});wD.displayName="DropdownItem";const RD=k.createContext(ih?window:void 0);RD.Provider;function q0(){return k.useContext(RD)}function bA(){const t=UO(),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=`* [${oh("dropdown-item")}]`,focusFirstItemOnShow:d,placement:v="bottom-start",children:h}){const y=q0(),[x,C]=bO(r,t,l),[w,R]=bA(),j=w.current,[N,T]=bA(),I=N.current,M=KO(x),P=k.useRef(null),V=k.useRef(!1),U=k.useContext(iu),F=k.useCallback((ge,ae,Re=ae==null?void 0:ae.type)=>{C(ge,{originalEvent:ae,source:Re})},[C]),z=br((ge,ae)=>{i==null||i(ge,ae),F(!1,ae,"select"),ae.isPropagationStopped()||U==null||U(ge,ae)}),X=k.useMemo(()=>({toggle:F,placement:v,show:x,menuElement:j,toggleElement:I,setMenu:R,setToggle:T}),[F,v,x,j,I,R,T]);j&&M&&!x&&(V.current=j.contains(j.ownerDocument.activeElement));const Y=br(()=>{I&&I.focus&&I.focus()}),pe=br(()=>{const ge=P.current;let ae=d;if(ae==null&&(ae=w.current&&xD(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(()=>{P.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 B3(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;P.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":_R(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(Y0.Provider,{value:X,children:h})})}Bm.displayName="Dropdown";Bm.Menu=BR;Bm.Toggle=SD;Bm.Item=wD;const _D=k.createContext({});_D.displayName="DropdownContext";const TD=_D,ND=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})));ND.displayName="DropdownDivider";const x4=ND,ID=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})));ID.displayName="DropdownHeader";const C4=ID,AD=k.forwardRef(({bsPrefix:t,className:r,eventKey:i,disabled:l=!1,onClick:u,active:d,as:v=tD,...h},y)=>{const x=xn(t,"dropdown-item"),[C,w]=ED({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")})});AD.displayName="DropdownItem";const S4=AD,jD=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})));jD.displayName="DropdownItemText";const E4=jD,OD=k.createContext(null);OD.displayName="InputGroupContext";const DD=OD;var xA={};function kD(t,r){if(xA.NODE_ENV==="production")return t;const i=k.useCallback(l=>{l==null||!l.isReactComponent||(xA.NODE_ENV!=="production"?KI(!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`):KI(!1))},[r]);return hs(i,t)}var w4={};function MD(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 LD=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(ZO),N=xn(t,"dropdown-menu"),{align:T,drop:I,isRTL:M}=k.useContext(TD);i=i||T;const P=k.useContext(DD),V=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(w4.NODE_ENV!=="production"&&VR(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=MD(R,I,M),[F,{hasShown:z,popper:X,show:Y,toggle:pe}]=bD({flip:u,rootCloseEvent:l,show:d,usePopper:!j&&V.length===0,offset:[0,2],popperConfig:y,placement:U});if(F.ref=hs(kD(w,"DropdownMenu"),F.ref),_0(()=>{Y&&(X==null||X.update())},[Y]),!z&&!v&&!P)return null;typeof h!="string"&&(F.show=Y,F.close=()=>pe==null?void 0:pe(!1),F.align=i);let ie=C.style;return X!=null&&X.placement&&(ie={...C.style,...F.style},C["x-placement"]=X.placement),m.jsx(h,{...C,...F,style:ie,...(V.length||j)&&{"data-bs-popper":"static"},className:Qt(r,N,Y&&"show",R&&`${N}-end`,x&&`${N}-${x}`,...V)})});LD.displayName="DropdownMenu";const R4=LD,PD=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}]=IR({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")})});PD.displayName="Button";const _4=PD,FD=k.forwardRef(({bsPrefix:t,split:r,className:i,childBsPrefix:l,as:u=_4,...d},v)=>{const h=xn(t,"dropdown-toggle"),y=k.useContext(Y0);l!==void 0&&(d.bsPrefix=l);const[x]=CD();return x.ref=hs(x.ref,kD(v,"DropdownToggle")),m.jsx(u,{className:Qt(i,h,r&&`${h}-split`,(y==null?void 0:y.show)&&"show"),...x,...d})});FD.displayName="DropdownToggle";const T4=FD,VD=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}=X0(t,{show:"onToggle"}),N=k.useContext(DD),T=xn(i,"dropdown"),I=W0(),M=X=>R===!1?X==="click":R==="inside"?X!=="rootClose":R==="outside"?X!=="select":!0,P=br((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=MD(v==="end",l,I),F=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(TD.Provider,{value:F,children:m.jsx(Bm,{placement:U,show:u,onSelect:h,onToggle:P,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])})})})});VD.displayName="Dropdown";const Ub=Object.assign(VD,{Toggle:T4,Menu:R4,Item:S4,ItemText:E4,Divider:x4,Header:C4});var Hb;function CA(t){if((!Hb&&Hb!==0||t)&&ih){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 N4(t){const r=k.useRef(t);return r.current=t,r}function zR(t){const r=N4(t);k.useEffect(()=>()=>r.current(),[])}function QE(t){t===void 0&&(t=ah());try{var r=t.activeElement;return!r||!r.nodeName?null:r}catch{return t.body}}function I4(t=document){const r=t.defaultView;return Math.abs(r.innerWidth-t.documentElement.clientWidth)}const SA=oh("modal-open");class A4{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return I4(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(SA,""),nu(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(SA),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 $R=A4,KE=(t,r)=>ih?t==null?(r||ah()).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=q0(),[l,u]=k.useState(()=>KE(t,i==null?void 0:i.document));if(!l){const d=KE(t);d&&u(d)}return k.useEffect(()=>{r&&l&&r(l)},[r,l]),k.useEffect(()=>{const d=KE(t);d!==l&&u(d)},[t,l]),l}function j4({in:t,onTransition:r}){const i=k.useRef(null),l=k.useRef(!0),u=br(r);return _0(()=>{if(!i.current)return;let d=!1;return u({in:t,element:i.current,initial:l.current,isStale:()=>d}),()=>{d=!0}},[t,u]),_0(()=>(l.current=!1,()=>{l.current=!0}),[]),i}function O4({children:t,in:r,onExited:i,onEntered:l,transition:u}){const[d,v]=k.useState(!r);r&&d&&v(!1);const h=j4({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(O4,Object.assign({},i,{transition:r})):m.jsx(wR,Object.assign({},i))}function BD(t){return t.code==="Escape"||t.keyCode===27}const D4=["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 k4(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 ew;function M4(t){return ew||(ew=new $R({ownerDocument:t==null?void 0:t.document})),ew}function L4(t){const r=q0(),i=t||M4(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 zD=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:I=!0,restoreFocus:M=!0,restoreFocusOptions:P,renderDialog:V,renderBackdrop:U=dt=>m.jsx("div",Object.assign({},dt)),manager:F,container:z,onShow:X,onHide:Y=()=>{},onExit:pe,onExited:ie,onExiting:ge,onEnter:ae,onEntering:Re,onEntered:be}=t,xe=k4(t,D4);const Ae=q0(),Le=Vw(z),ne=L4(F),Oe=jR(),G=KO(i),[Z,re]=k.useState(!i),Ce=k.useRef(null);k.useImperativeHandle(r,()=>ne,[ne]),ih&&!G&&i&&(Ce.current=QE(Ae==null?void 0:Ae.document)),i&&Z&&re(!1);const we=br(()=>{if(ne.add(),Ge.current=eu(document,"keydown",de),Be.current=eu(document,"focus",()=>setTimeout(Ie),!0),X&&X(),T){var dt,en;const sn=QE((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=br(()=>{if(ne.remove(),Ge.current==null||Ge.current(),Be.current==null||Be.current(),M){var dt;(dt=Ce.current)==null||dt.focus==null||dt.focus(P),Ce.current=null}});k.useEffect(()=>{!i||!Le||we()},[i,Le,we]),k.useEffect(()=>{Z&&Te()},[Z,Te]),zR(()=>{Te()});const Ie=br(()=>{if(!I||!Oe()||!ne.isTopModal())return;const dt=QE(Ae==null?void 0:Ae.document);ne.dialog&&dt&&!Nm(ne.dialog,dt)&&ne.dialog.focus()}),ue=br(dt=>{dt.target===dt.currentTarget&&(x==null||x(dt),h===!0&&Y())}),de=br(dt=>{y&&BD(dt)&&ne.isTopModal()&&(C==null||C(dt),dt.defaultPrevented||Y())}),Be=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)})});zD.displayName="Modal";const P4=Object.assign(zD,{Manager:$R});function zw(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function F4(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 EA(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function V4(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=EA(t.className,r):t.setAttribute("class",EA(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 B4 extends $R{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(F4(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();V4(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 tw;function z4(t){return tw||(tw=new B4(t)),tw}const $D=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})));$D.displayName="ModalBody";const $4=$D,U4=k.createContext({onHide(){}}),UD=U4,HD=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})})});HD.displayName="ModalDialog";const GD=HD,WD=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})));WD.displayName="ModalFooter";const H4=WD,G4={"aria-label":Pe.string,onClick:Pe.func,variant:Pe.oneOf(["white"])},UR=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}));UR.displayName="CloseButton";UR.propTypes=G4;const W4=UR,X4=k.forwardRef(({closeLabel:t="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...d},v)=>{const h=k.useContext(UD),y=br(()=>{h==null||h.onHide(),l==null||l()});return m.jsxs("div",{ref:v,...d,children:[u,i&&m.jsx(W4,{"aria-label":t,variant:r,onClick:y})]})}),Y4=X4,XD=k.forwardRef(({bsPrefix:t,className:r,closeLabel:i="Close",closeButton:l=!1,...u},d)=>(t=xn(t,"modal-header"),m.jsx(Y4,{ref:d,...u,className:Qt(r,t),closeLabel:i,closeButton:l})));XD.displayName="ModalHeader";const Z4=XD,q4=t=>k.forwardRef((r,i)=>m.jsx("div",{...r,ref:i,className:Qt(r.className,t)})),J4=q4("h4"),YD=k.forwardRef(({className:t,bsPrefix:r,as:i=J4,...l},u)=>(r=xn(r,"modal-title"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));YD.displayName="ModalTitle";const Q4=YD;function K4(t){return m.jsx(Xp,{...t,timeout:null})}function eW(t){return m.jsx(Xp,{...t,timeout:null})}const ZD=k.forwardRef(({bsPrefix:t,className:r,style:i,dialogClassName:l,contentClassName:u,children:d,dialogAs:v=GD,"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:I,onHide:M,container:P,autoFocus:V=!0,enforceFocus:U=!0,restoreFocus:F=!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]=R0(),Ie=hs(Ae,Te),ue=br(M),de=W0();t=xn(t,"modal");const Be=k.useMemo(()=>({onHide:ue}),[ue]);function Ge(){return be||z4({isRTL:de})}function tt(St){if(!ih)return;const Pn=Ge().getScrollbarWidth()>0,un=St.scrollHeight>ah(St).documentElement.clientHeight;ne({paddingRight:Pn&&!un?CA():void 0,paddingLeft:!Pn&&un?CA():void 0})}const ot=br(()=>{we&&tt(we.dialog)});zR(()=>{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=AO(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),_R(window,"resize",ot)},Qn=St=>{St&&(St.style.display=""),ae==null||ae(St),Mw(window,"resize",ot)},Tr=k.useCallback(St=>m.jsx("div",{...St,className:Qt(`${t}-backdrop`,Re,!R&&"show")}),[R,Re,t]),Hn={...i,...Le};Hn.display="block";const Nr=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(UD.Provider,{value:Be,children:m.jsx(P4,{show:w,ref:Ie,backdrop:j,container:P,keyboard:!0,autoFocus:V,enforceFocus:U,restoreFocus:F,restoreFocusOptions:z,onEscapeKeyDown:ln,onShow:I,onHide:M,onEnter:In,onEntering:Cn,onEntered:X,onExit:Vt,onExiting:pe,onExited:Qn,manager:Ge(),transition:R?K4:void 0,backdropTransition:R?eW:void 0,renderBackdrop:Tr,renderDialog:Nr})})});ZD.displayName="Modal";const Ln=Object.assign(ZD,{Body:$4,Header:Z4,Title:Q4,Footer:H4,Dialog:GD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),tW=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 nW({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:tW,children:R}),m.jsx(Ub.Menu,{children:C.map(([T,I,M])=>m.jsx(Ub.Item,{href:I,onClick:P=>{M!=="get"&&(P.preventDefault(),P.target.dataset.method=M,$&&$.rails&&$.rails.handleMethod($(P.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: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 rW({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-iO(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 aW({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(yr,{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 N0({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 qD({action:t,request:r,toggleDeleteModal:i}){const l=t.allowedOperations||[],u=[];l.includes("Edit")&&u.push(m.jsx(N0,{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(N0,{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}=H0(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(N0,{icon:"book",href:t.userGuideUrl,target:"_blank",title:`${t.name} User Guide`}):null]})}function Qp({status:t,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[t]||"dark";return m.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:t})}const iW=t=>m.jsx("span",{className:t<0?"text-danger":"",children:t===0?"":t.toLocaleString()});function oW({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(qD,{action:I,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:T=>m.jsx(Qp,{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:iW,formatHeader:(I,M)=>m.jsx(Xd,{resource:M,userGuide:!1})}))],N=i.actions.map(T=>{const I={...T};for(let{resourceId:M}of R)I[`resource${M}`]=0;for(let{resourceId:M,approved:P,requested:V}of T.resources)I[`resource${M}`]=P||V||0;return I});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 sW({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(qD,{action:v,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:d=>m.jsx(Qp,{status:d})}];if(i.actions&&i.actions.length)return m.jsx(su,{rows:i.actions,columns:u})}function dm(...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 lW={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function uW(t,r){const i=`offset${t[0].toUpperCase()}${t.slice(1)}`,l=r[i],u=lW[t];return l+parseInt(nu(r,u[0]),10)+parseInt(nu(r,u[1]),10)}const cW={[mc]:"collapse",[E0]:"collapsing",[Ql]:"collapsing",[gc]:"collapse show"},dW=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=uW,...N},T)=>{const I=typeof h=="function"?h():h,M=k.useMemo(()=>dm(z=>{z.style[I]="0"},t),[I,t]),P=k.useMemo(()=>dm(z=>{const X=`scroll${I[0].toUpperCase()}${I.slice(1)}`;z.style[I]=`${z[X]}px`},r),[I,r]),V=k.useMemo(()=>dm(z=>{z.style[I]=null},i),[I,i]),U=k.useMemo(()=>dm(z=>{z.style[I]=`${j(I,z)}px`,OO(z)},l),[l,j,I]),F=k.useMemo(()=>dm(z=>{z.style[I]=null},u),[I,u]);return m.jsx(DO,{ref:T,addEndListener:jO,...N,"aria-expanded":N.role?y:null,onEnter:M,onEntering:P,onEntered:V,onExit:U,onExiting:F,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,cW[z],I==="width"&&"collapse-horizontal")})})}),fW=dW;function JD(t,r){return Array.isArray(t)?t.includes(r):t===r}const QD=k.createContext({});QD.displayName="AccordionContext";const J0=QD,KD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,children:l,eventKey:u,...d},v)=>{const{activeEventKey:h}=k.useContext(J0);return r=xn(r,"accordion-collapse"),m.jsx(fW,{ref:v,in:JD(h,u),...d,className:Qt(i,r),children:m.jsx(t,{children:k.Children.only(l)})})});KD.displayName="AccordionCollapse";const ek=KD,tk=k.createContext({eventKey:""});tk.displayName="AccordionItemContext";const HR=tk,nk=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(HR);return m.jsx(ek,{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)})})});nk.displayName="AccordionBody";const pW=nk;function hW(t,r){const{activeEventKey:i,onSelect:l,alwaysOpen:u}=k.useContext(J0);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 rk=k.forwardRef(({as:t="button",bsPrefix:r,className:i,onClick:l,...u},d)=>{r=xn(r,"accordion-button");const{eventKey:v}=k.useContext(HR),h=hW(v,l),{activeEventKey:y}=k.useContext(J0);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,!JD(y,v)&&"collapsed")})});rk.displayName="AccordionButton";const ak=rk,ik=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(ak,{onClick:u,children:l})})));ik.displayName="AccordionHeader";const vW=ik,ok=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(HR.Provider,{value:v,children:m.jsx(t,{ref:d,...u,className:Qt(i,r)})})});ok.displayName="AccordionItem";const mW=ok,sk=k.forwardRef((t,r)=>{const{as:i="div",activeKey:l,bsPrefix:u,className:d,onSelect:v,flush:h,alwaysOpen:y,...x}=X0(t,{activeKey:"onSelect"}),C=xn(u,"accordion"),w=k.useMemo(()=>({activeEventKey:l,onSelect:v,alwaysOpen:y}),[l,v,y]);return m.jsx(J0.Provider,{value:w,children:m.jsx(i,{ref:r,...x,className:Qt(d,C,h&&`${C}-flush`)})})});sk.displayName="Accordion";const us=Object.assign(sk,{Button:ak,Collapse:ek,Item:mW,Header:vW,Body:pW}),$w=2**31-1;function lk(t,r,i){const l=i-Date.now();t.current=l<=$w?setTimeout(r,l):setTimeout(()=>lk(t,r,i),$w)}function gW(){const t=jR(),r=k.useRef();return zR(()=>clearTimeout(r.current)),k.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,d=0){t()&&(i(),d<=$w?r.current=setTimeout(u,d):lk(r,u,Date.now()+d))}return{set:l,clear:i,handleRef:r}},[])}const yW=()=>{};function bW(t,r,{disabled:i,clickTrigger:l}={}){const u=r||yW;gD(t,u,{disabled:i,clickTrigger:l});const d=br(v=>{BD(v)&&u(v)});k.useEffect(()=>{if(i||t==null)return;const v=ah(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 uk=k.forwardRef((t,r)=>{const{flip:i,offset:l,placement:u,containerPadding:d,popperConfig:v={},transition:h,runTransition:y}=t,[x,C]=R0(),[w,R]=R0(),j=hs(C,r),N=Vw(t.container),T=Vw(t.target),[I,M]=k.useState(!t.show),P=vD(T,x,yD({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(bW(x,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!U)return null;const{onExit:F,onExiting:z,onEnter:X,onEntering:Y,onEntered:pe}=t;let ie=t.children(Object.assign({},P.attributes.popper,{style:P.styles.popper,ref:j}),{popper:P,placement:u,show:!!t.show,arrowProps:Object.assign({},P.attributes.arrow,{style:P.styles.arrow,ref:R})});return ie=Bw(h,y,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ie,onExit:F,onExiting:z,onExited:V,onEnter:X,onEntering:Y,onEntered:pe}),N?$d.createPortal(ie,N):null});uk.displayName="Overlay";const xW=uk,ck=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})));ck.displayName="PopoverHeader";const CW=ck,dk=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})));dk.displayName="PopoverBody";const fk=dk;function pk(t,r){let i=t;return t==="left"?i=r?"end":"start":t==="right"&&(i=r?"start":"end"),i}function hk(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const SW=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=W0(),[N]=(r==null?void 0:r.split("-"))||[],T=pk(N,j);let I=l;return x&&!h&&(I={...l,...hk(y==null?void 0:y.strategy)}),m.jsxs("div",{ref:w,role:"tooltip",style:I,"x-placement":N,className:Qt(i,R,N&&`bs-popover-${T}`),...C,children:[m.jsx("div",{className:"popover-arrow",...v}),d?m.jsx(fk,{children:u}):u]})}),EW=Object.assign(SW,{Header:CW,Body:fk,POPPER_OFFSET:[0,8]}),vk=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=W0(),[R]=(r==null?void 0:r.split("-"))||[],j=pk(R,w);let N=l;return y&&!v&&(N={...l,...hk(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})]})});vk.displayName="Tooltip";const Q0=Object.assign(vk,{TOOLTIP_OFFSET:[0,6]});function wW(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 EW.POPPER_OFFSET;if(zw(r.current,l))return Q0.TOOLTIP_OFFSET}return[0,0]}}}),[t,i,l]);return[r,[u]]}function RW(t,r){const{ref:i}=t,{ref:l}=r;t.ref=i.__wrapped||(i.__wrapped=u=>i(w0(u))),r.ref=l.__wrapped||(l.__wrapped=u=>l(w0(u)))}const mk=k.forwardRef(({children:t,transition:r=Xp,popperConfig:i={},rootClose:l=!1,placement:u="top",show:d=!1,...v},h)=>{const y=k.useRef({}),[x,C]=k.useState(null),[w,R]=wW(v.offset),j=hs(h,w),N=r===!0?Xp:r||void 0,T=br(I=>{C(I),i==null||i.onFirstUpdate==null||i.onFirstUpdate(I)});return _0(()=>{x&&v.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[x,v.target]),k.useEffect(()=>{d||C(null)},[d]),m.jsx(xW,{...v,ref:j,popperConfig:{...i,modifiers:R.concat(i.modifiers||[]),onFirstUpdate:T},transition:N,rootClose:l,placement:u,show:d,children:(I,{arrowProps:M,popper:P,show:V})=>{var U,F;RW(I,M);const z=P==null?void 0:P.placement,X=Object.assign(y.current,{state:P==null?void 0:P.state,scheduleUpdate:P==null?void 0:P.update,placement:z,outOfBoundaries:(P==null||(U=P.state)==null||(F=U.modifiersData.hide)==null?void 0:F.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}})}})});mk.displayName="Overlay";const gk=mk;var _W={};function TW(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function wA(t,r,i){const[l]=r,u=l.currentTarget,d=l.relatedTarget||l.nativeEvent[i];(!d||d!==u)&&!Nm(u,d)&&t(...r)}Pe.oneOf(["click","hover","focus"]);const NW=({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=gW(),N=k.useRef(""),[T,I]=$O(u,d,v),M=TW(h),{onFocus:P,onBlur:V,onClick:U}=typeof i!="function"?k.Children.only(i).props:{},F=xe=>{R(w0(xe))},z=k.useCallback(()=>{if(j.clear(),N.current="show",!M.show){I(!0);return}j.set(()=>{N.current==="show"&&I(!0)},M.show)},[M.show,I,j]),X=k.useCallback(()=>{if(j.clear(),N.current="hide",!M.hide){I(!1);return}j.set(()=>{N.current==="hide"&&I(!1)},M.hide)},[M.hide,I,j]),Y=k.useCallback((...xe)=>{z(),P==null||P(...xe)},[z,P]),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)=>{wA(z,xe,"fromElement")},[z]),ae=k.useCallback((...xe)=>{wA(X,xe,"toElement")},[X]),Re=t==null?[]:[].concat(t),be={ref:F};return Re.indexOf("click")!==-1&&(be.onClick=ie),Re.indexOf("focus")!==-1&&(be.onFocus=Y,be.onBlur=pe),Re.indexOf("hover")!==-1&&(_W.NODE_ENV!=="production"&&VR(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(gk,{...C,show:T,onHide:X,flip:x,placement:y,popperConfig:l,target:w.current,children:r})]})},GR=NW;function IW({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:ww[j%ww.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(Qp,{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(Qp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(l.currentUser.resourceIds.includes(j.resourceId)||!j.isActive)return m.jsx(m.Fragment,{children:"—"});if(l.isManager)return m.jsx("a",{href:"#",onClick:I=>{I.preventDefault(),u("users")},children:"Grant access"});const T=m.jsxs(Q0,{children:["Please contact ",mR(l)," to request access to this resource."]});return m.jsx(GR,{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 AW=[{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(" ")}}],jW=({requestId:t,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const l=G0.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:AW}):null};function OW({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(IW,{requestId:t,grantNumber:r}),l.isManager?m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(jW,{requestId:t,grantNumber:r})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(sW,{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 DW(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 yk(t){var r=DW(t,"string");return Qd(r)=="symbol"?r:String(r)}function zp(t,r,i){return r=yk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function RA(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?RA(Object(i),!0).forEach(function(l){zp(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):RA(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function kW(t){if(Array.isArray(t))return t}function MW(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 bk(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 LW(){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 kW(t)||MW(t,r)||bk(t,r)||LW()}function al(t,r){if(t==null)return{};var i=RR(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 PW=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function xk(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,N=al(t,PW),T=k.useState(h!==void 0?h:i),I=na(T,2),M=I[0],P=I[1],V=k.useState(y!==void 0?y:u),U=na(V,2),F=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)),P(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:F,Le=j!==void 0?j:pe;return bt(bt({},N),{},{inputValue:xe,menuIsOpen:Ae,onChange:ge,onInputChange:ae,onMenuClose:be,onMenuOpen:Re,value:Le})}function FW(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _A(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,yk(l.key),l)}}function VW(t,r,i){return r&&_A(t.prototype,r),i&&_A(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function BW(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&&S0(t,r)}function I0(t){return I0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},I0(t)}function Ck(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ck=function(){return!!t})()}function zW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $W(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 zW(t)}function UW(t){var r=Ck();return function(){var l=I0(t),u;if(r){var d=I0(this).constructor;u=Reflect.construct(l,arguments,d)}else u=l.apply(this,arguments);return $W(this,u)}}function HW(t){if(Array.isArray(t))return Uw(t)}function GW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function WW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
297
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WR(t){return HW(t)||GW(t)||bk(t)||WW()}var Gb={};function XW(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 YW(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 ZW=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(YW(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=XW(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-",A0="-moz-",yn="-webkit-",XR="comm",YR="rule",ZR="decl",qW="@import",Sk="@keyframes",JW="@layer",QW=Math.abs,K0=String.fromCharCode,KW=Object.assign;function e5(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 Ek(t){return t.trim()}function t5(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 qR(t){return t.length}function Wb(t,r){return r.push(t),t}function n5(t,r){return t.map(r).join("")}var ex=1,Kp=1,wk=0,Oi=0,Mr=0,sh="";function tx(t,r,i,l,u,d,v){return{value:t,root:r,parent:i,type:l,props:u,children:d,line:ex,column:Kp,length:v,return:""}}function fm(t,r){return KW(tx("",null,null,"",null,null,0),t,{length:-t.length},r)}function r5(){return Mr}function a5(){return Mr=Oi>0?ma(sh,--Oi):0,Kp--,Mr===10&&(Kp=1,ex--),Mr}function Yi(){return Mr=Oi<wk?ma(sh,Oi++):0,Kp++,Mr===10&&(Kp=1,ex++),Mr}function rl(){return ma(sh,Oi)}function o0(){return Oi}function zm(t,r){return Im(sh,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 Rk(t){return ex=Kp=1,wk=el(sh=t),Oi=0,[]}function _k(t){return sh="",t}function s0(t){return Ek(zm(Oi-1,Gw(t===91?t+2:t===40?t+1:t)))}function i5(t){for(;(Mr=rl())&&Mr<33;)Yi();return Am(t)>2||Am(Mr)>3?"":" "}function o5(t,r){for(;--r&&Yi()&&!(Mr<48||Mr>102||Mr>57&&Mr<65||Mr>70&&Mr<97););return zm(t,o0()+(r<6&&rl()==32&&Yi()==32))}function Gw(t){for(;Yi();)switch(Mr){case t:return Oi;case 34:case 39:t!==34&&t!==39&&Gw(Mr);break;case 40:t===41&&Gw(t);break;case 92:Yi();break}return Oi}function s5(t,r){for(;Yi()&&t+Mr!==57;)if(t+Mr===84&&rl()===47)break;return"/*"+zm(r,Oi-1)+"*"+K0(t===47?t:Yi())}function l5(t){for(;!Am(rl());)Yi();return zm(t,Oi)}function u5(t){return _k(l0("",null,null,null,[""],t=Rk(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,I=1,M=1,P=0,V="",U=u,F=d,z=l,X=V;I;)switch(N=P,P=Yi()){case 40:if(N!=108&&ma(X,w-1)==58){Hw(X+=bn(s0(P),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:X+=s0(P);break;case 9:case 10:case 13:case 32:X+=i5(N);break;case 92:X+=o5(o0()-1,7);continue;case 47:switch(rl()){case 42:case 47:Wb(c5(s5(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(P){case 0:case 125:I=0;case 59+C:M==-1&&(X=bn(X,/\f/g,"")),j>0&&el(X)-w&&Wb(j>32?NA(X+";",l,i,w-1):NA(bn(X," ","")+";",l,i,w-2),y);break;case 59:X+=";";default:if(Wb(z=TA(X,r,i,x,C,u,h,V,U=[],F=[],w),d),P===123)if(C===0)l0(X,r,z,z,U,d,w,h,F);else switch(R===99&&ma(X,3)===110?100:R){case 100:case 108:case 109:case 115:l0(t,z,z,l&&Wb(TA(t,z,z,0,0,u,h,V,u,U=[],w),F),u,F,w,h,l?U:F);break;default:l0(X,z,z,z,[""],F,0,h,F)}}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(P==123)--T;else if(P==125&&T++==0&&a5()==125)continue}switch(X+=K0(P),P*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+=l5(o0())),P++;break;case 45:N===45&&el(X)==2&&(T=0)}}return d}function TA(t,r,i,l,u,d,v,h,y,x,C){for(var w=u-1,R=u===0?d:[""],j=qR(R),N=0,T=0,I=0;N<l;++N)for(var M=0,P=Im(t,w+1,w=QW(T=v[N])),V=t;M<j;++M)(V=Ek(T>0?R[M]+" "+P:bn(P,/&\f/g,R[M])))&&(y[I++]=V);return tx(t,r,i,u===0?YR:h,y,x,C)}function c5(t,r,i){return tx(t,r,i,XR,K0(r5()),Im(t,2,-2),0)}function NA(t,r,i,l){return tx(t,r,i,ZR,Im(t,0,l),Im(t,l+1,-1),l)}function Up(t,r){for(var i="",l=qR(t),u=0;u<l;u++)i+=r(t[u],u,t,r)||"";return i}function d5(t,r,i,l){switch(t.type){case JW:if(t.children.length)break;case qW:case ZR:return t.return=t.return||t.value;case XR:return"";case Sk:return t.return=t.value+"{"+Up(t.children,l)+"}";case YR:t.value=t.props.join(",")}return el(i=Up(t.children,l))?t.return=t.value+"{"+i+"}":""}function f5(t){var r=qR(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 p5(t){return function(r){r.root||(r=r.return)&&t(r)}}function h5(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var pm={},v5=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)},m5=function(r,i){var l=-1,u=44;do switch(Am(u)){case 0:u===38&&rl()===12&&(i[l]=1),r[l]+=v5(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]+=K0(u)}while(u=Yi());return r},g5=function(r,i){return _k(m5(Rk(r),i))},IA=new WeakMap,y5=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&&!IA.get(l))&&!u){IA.set(r,!0);for(var d=[],v=g5(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]}}},b5=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},x5="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",C5=function(r){return r.type==="comm"&&r.children.indexOf(x5)>-1},S5=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(C5(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".')})}}}},Tk=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},E5=function(r,i){for(var l=r-1;l>=0;l--)if(!Tk(i[l]))return!0;return!1},AA=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},w5=function(r,i,l){Tk(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."),AA(r)):E5(i,l)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),AA(r)))};function Nk(t,r){switch(e5(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+A0+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"+A0+(ma(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~Hw(t,"stretch")?Nk(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 R5=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case ZR:r.return=Nk(r.value,r.length);break;case Sk:return Up([fm(r,{value:bn(r.value,"@","@"+yn)})],u);case YR:if(r.length)return n5(r.props,function(d){switch(t5(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Up([fm(r,{props:[bn(d,/:(read-\w+)/,":"+A0+"$1")]})],u);case"::placeholder":return Up([fm(r,{props:[bn(d,/:(plac\w+)/,":"+yn+"input-$1")]}),fm(r,{props:[bn(d,/:(plac\w+)/,":"+A0+"$1")]}),fm(r,{props:[bn(d,/:(plac\w+)/,Ba+"input-$1")]})],u)}return""})}},_5=[R5],T5=function(r){var i=r.key;if(pm.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||_5;if(pm.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=[y5,b5];pm.NODE_ENV!=="production"&&x.push(S5({get compat(){return N.compat}}),w5);{var C,w=[d5,pm.NODE_ENV!=="production"?function(T){T.root||(T.return?C.insert(T.return):T.value&&T.type!==XR&&C.insert(T.value+"{}"))}:p5(function(T){C.insert(T)})],R=f5(x.concat(u,w)),j=function(I){return Up(u5(I),R)};y=function(I,M,P,V){C=P,pm.NODE_ENV!=="production"&&M.map!==void 0&&(C={insert:function(F){P.insert(F+M.map)}}),j(I?I+"{"+M.styles+"}":M.styles),V&&(N.inserted[M.name]=!0)}}var N={key:i,sheet:new ZW({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 N.sheet.hydrate(h),N},Ik=yR(),N5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ak={};Ak[Ik.ForwardRef]=N5;Ak[Ik.Memo]=I5;var A5=!0;function jk(t,r,i){var l="";return i.split(" ").forEach(function(u){t[u]!==void 0?r.push(t[u]+";"):l+=u+" "}),l}var JR=function(r,i,l){var u=r.key+"-"+i.name;(l===!1||A5===!1)&&r.registered[u]===void 0&&(r.registered[u]=i.styles)},QR=function(r,i,l){JR(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 j5(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 O5={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={},jA=`You have illegal escape sequence in your template literal, most likely inside content's property value.
295
+ */(function(t){(function(){var r={}.hasOwnProperty;function i(){for(var f="",v=0;v<arguments.length;v++){var h=arguments[v];h&&(f=u(f,l(h)))}return f}function l(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var v="";for(var h in f)r.call(f,h)&&f[h]&&(v=u(v,h));return v}function u(f,v){return v?f?f+" "+v:f+v:f}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(TO);var QG=TO.exports;const Qt=eh(QG);function RR(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function S0(t,r){return S0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},S0(t,r)}function KG(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,S0(t,r)}const JI={disabled:!1};var NO={},e3=NO.NODE_ENV!=="production"?Pe.oneOfType([Pe.number,Pe.shape({enter:Pe.number,exit:Pe.number,appear:Pe.number}).isRequired]):null;NO.NODE_ENV!=="production"&&Pe.oneOfType([Pe.string,Pe.shape({enter:Pe.string,exit:Pe.string,active:Pe.string}),Pe.shape({enter:Pe.string,enterDone:Pe.string,enterActive:Pe.string,exit:Pe.string,exitDone:Pe.string,exitActive:Pe.string})]);const IO=pr.createContext(null);var t3=function(r){return r.scrollTop},n3={},bm="unmounted",mc="exited",Ql="entering",gc="entered",E0="exiting",lu=function(t){KG(r,t);function r(l,u){var f;f=t.call(this,l,u)||this;var v=u,h=v&&!v.isMounting?l.enter:l.appear,y;return f.appearStatus=null,l.in?h?(y=mc,f.appearStatus=Ql):y=gc:l.unmountOnExit||l.mountOnEnter?y=bm:y=mc,f.state={status:y},f.nextCallback=null,f}r.getDerivedStateFromProps=function(u,f){var v=u.in;return v&&f.status===bm?{status:mc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(u){var f=null;if(u!==this.props){var v=this.state.status;this.props.in?v!==Ql&&v!==gc&&(f=Ql):(v===Ql||v===gc)&&(f=E0)}this.updateStatus(!1,f)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var u=this.props.timeout,f,v,h;return f=v=h=u,u!=null&&typeof u!="number"&&(f=u.exit,v=u.enter,h=u.appear!==void 0?u.appear:v),{exit:f,enter:v,appear:h}},i.updateStatus=function(u,f){if(u===void 0&&(u=!1),f!==null)if(this.cancelNextCallback(),f===Ql){if(this.props.unmountOnExit||this.props.mountOnEnter){var v=this.props.nodeRef?this.props.nodeRef.current:$d.findDOMNode(this);v&&t3(v)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mc&&this.setState({status:bm})},i.performEnter=function(u){var f=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||JI.disabled){this.safeSetState({status:gc},function(){f.props.onEntered(x)});return}this.props.onEnter(x,C),this.safeSetState({status:Ql},function(){f.props.onEntering(x,C),f.onTransitionEnd(R,function(){f.safeSetState({status:gc},function(){f.props.onEntered(x,C)})})})},i.performExit=function(){var u=this,f=this.props.exit,v=this.getTimeouts(),h=this.props.nodeRef?void 0:$d.findDOMNode(this);if(!f||JI.disabled){this.safeSetState({status:mc},function(){u.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:E0},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,f){f=this.setNextCallback(f),this.setState(u,f)},i.setNextCallback=function(u){var f=this,v=!0;return this.nextCallback=function(h){v&&(v=!1,f.nextCallback=null,u(h))},this.nextCallback.cancel=function(){v=!1},this.nextCallback},i.onTransitionEnd=function(u,f){this.setNextCallback(f);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===bm)return null;var f=this.props,v=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var h=RR(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(IO.Provider,{value:null},typeof v=="function"?v(u,h):pr.cloneElement(pr.Children.only(v),h))},r}(pr.Component);lu.contextType=IO;lu.propTypes=n3.NODE_ENV!=="production"?{nodeRef:Pe.shape({current:typeof Element>"u"?Pe.any:function(t,r,i,l,u,f){var v=t[r];return Pe.instanceOf(v&&"ownerDocument"in v?v.ownerDocument.defaultView.Element:Element)(t,r,i,l,u,f)}}),children:Pe.oneOfType([Pe.func.isRequired,Pe.element.isRequired]).isRequired,in:Pe.bool,mountOnEnter:Pe.bool,unmountOnExit:Pe.bool,appear:Pe.bool,enter:Pe.bool,exit:Pe.bool,timeout:function(r){var i=e3;r.addEndListener||(i=i.isRequired);for(var l=arguments.length,u=new Array(l>1?l-1:0),f=1;f<l;f++)u[f-1]=arguments[f];return i.apply(void 0,[r].concat(u))},addEndListener:Pe.func,onEnter:Pe.func,onEntering:Pe.func,onEntered:Pe.func,onExit:Pe.func,onExiting:Pe.func,onExited:Pe.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=bm;lu.EXITED=mc;lu.ENTERING=Ql;lu.ENTERED=gc;lu.EXITING=E0;const r3=lu;function ah(t){return t&&t.ownerDocument||document}function a3(t){var r=ah(t);return r&&r.defaultView||window}function i3(t,r){return a3(t).getComputedStyle(t,r)}var o3=/([A-Z])/g;function s3(t){return t.replace(o3,"-$1").toLowerCase()}var l3=/^ms-/;function Bb(t){return s3(t).replace(l3,"-ms-")}var u3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function c3(t){return!!(t&&u3.test(t))}function nu(t,r){var i="",l="";if(typeof r=="string")return t.style.getPropertyValue(Bb(r))||i3(t).getPropertyValue(Bb(r));Object.keys(r).forEach(function(u){var f=r[u];!f&&f!==0?t.style.removeProperty(Bb(u)):c3(u)?l+=u+"("+f+") ":i+=Bb(u)+": "+f+";"}),l&&(i+="transform: "+l+";"),t.style.cssText+=";"+i}const ih=!!(typeof window<"u"&&window.document&&window.document.createElement);var Dw=!1,kw=!1;try{var JE={get passive(){return Dw=!0},get once(){return kw=Dw=!0}};ih&&(window.addEventListener("test",JE,JE),window.removeEventListener("test",JE,!0))}catch{}function _R(t,r,i,l){if(l&&typeof l!="boolean"&&!kw){var u=l.once,f=l.capture,v=i;!kw&&u&&(v=i.__once||function h(y){this.removeEventListener(r,h,f),i.call(this,y)},i.__once=v),t.addEventListener(r,v,Dw?l:f)}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 _R(t,r,i,l),function(){Mw(t,r,i,l)}}function d3(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 f3(t){var r=nu(t,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function p3(t,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||d3(t,"transitionend",!0)},r+i),f=eu(t,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),f()}}function AO(t,r,i,l){i==null&&(i=f3(t)||0);var u=p3(t,i,l),f=eu(t,"transitionend",r);return function(){u(),f()}}function QI(t,r){const i=nu(t,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function jO(t,r){const i=QI(t,"transitionDuration"),l=QI(t,"transitionDelay"),u=AO(t,f=>{f.target===t&&(u(),r(f))},i+l)}function OO(t){t.offsetHeight}function w0(t){return t&&"setState"in t?$d.findDOMNode(t):t??null}const h3=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:f,addEndListener:v,children:h,childRef:y,...x},C)=>{const w=k.useRef(null),R=hs(w,y),j=z=>{R(w0(z))},N=z=>X=>{z&&w.current&&z(w.current,X)},T=k.useCallback(N(t),[t]),I=k.useCallback(N(r),[r]),M=k.useCallback(N(i),[i]),P=k.useCallback(N(l),[l]),V=k.useCallback(N(u),[u]),U=k.useCallback(N(f),[f]),F=k.useCallback(N(v),[v]);return m.jsx(r3,{ref:C,...x,onEnter:T,onEntered:M,onEntering:I,onExit:P,onExited:U,onExiting:V,addEndListener:F,nodeRef:w,children:typeof h=="function"?(z,X)=>h(z,{...X,ref:j}):pr.cloneElement(h,{ref:j})})}),DO=h3,v3={[Ql]:"show",[gc]:"show"},kO=k.forwardRef(({className:t,children:r,transitionClasses:i={},onEnter:l,...u},f)=>{const v={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},h=k.useCallback((y,x)=>{OO(y),l==null||l(y,x)},[l]);return m.jsx(DO,{ref:f,addEndListener:jO,...v,onEnter:h,childRef:r.ref,children:(y,x)=>k.cloneElement(r,{...x,className:Qt("fade",t,r.props.className,v3[y],i[y])})})});kO.displayName="Fade";const Xp=kO;function TR(t){return typeof t=="boolean"?t?Xp:wR:t}const MO=({transition:t,...r})=>m.jsx(_O,{...r,transition:TR(t)});MO.displayName="TabContainer";const m3=MO,g3=["xxl","xl","lg","md","sm","xs"],y3="xs",LO=k.createContext({prefixes:{},breakpoints:g3,minBreakpoint:y3});function xn(t,r){const{prefixes:i}=k.useContext(LO);return t||i[r]||r}function W0(){const{dir:t}=k.useContext(LO);return t==="rtl"}const PO=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})));PO.displayName="TabContent";const FO=PO,VO=k.forwardRef(({bsPrefix:t,transition:r,...i},l)=>{const[{className:u,as:f="div",...v},{isActive:h,onEnter:y,onEntering:x,onEntered:C,onExit:w,onExiting:R,onExited:j,mountOnEnter:N,unmountOnExit:T,transition:I=Xp}]=EO({...i,transition:TR(r)}),M=xn(t,"tab-pane");return m.jsx(rh.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:N,unmountOnExit:T,children:m.jsx(f,{...v,ref:l,className:Qt(u,M,h&&"active")})})})})});VO.displayName="TabPane";const BO=VO,b3={eventKey:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.node.isRequired,disabled:Pe.bool,tabClassName:Pe.string,tabAttrs:Pe.object},zO=()=>{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")};zO.propTypes=b3;const zb=Object.assign(zO,{Container:m3,Content:FO,Pane:BO});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 x3={},C3=function(t,r,i,l,u,f,v,h){if(x3.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,f,v,h],C=0;y=new Error(r.replace(/%s/g,function(){return x[C++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},S3=C3;const KI=eh(S3);function eA(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function E3(t){var r=w3(t,"string");return typeof r=="symbol"?r:String(r)}function w3(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 $O(t,r,i){var l=k.useRef(t!==void 0),u=k.useState(r),f=u[0],v=u[1],h=t!==void 0,y=l.current;return l.current=h,!h&&y&&f!==r&&v(r),[h?t:f,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 X0(t,r){return Object.keys(r).reduce(function(i,l){var u,f=i,v=f[eA(l)],h=f[l],y=RR(f,[eA(l),l].map(E3)),x=r[l],C=$O(h,v,t[x]),w=C[0],R=C[1];return Tt({},y,(u={},u[l]=w,u[x]=R,u))},t)}var tA={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),I=6;I<N;I++)T[I-6]=arguments[I];return l.apply(void 0,[h,y,R,C,j].concat(T))}var f=u.bind(null,!1);return f.isRequired=u.bind(null,!0),f}t.exports=r.default})(Lw,Lw.exports);var R3=Lw.exports;(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=f;var i=R3,l=u(i);function u(v){return v&&v.__esModule?v:{default:v}}function f(){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})(tA,tA.exports);var _3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kl(t,r){return _3(t.querySelectorAll(r))}function UO(){const[,t]=k.useReducer(r=>!r,!1);return t}const HO=k.createContext(null);HO.displayName="NavContext";const NR=HO,T3="data-rr-ui-",N3="rrUi";function oh(t){return`${T3}${t}`}function I3(t){return`${N3}${t}`}const A3=["as","disabled"];function j3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function O3(t){return!t||t.trim()==="#"}function IR({tagName:t,disabled:r,href:i,target:l,rel:u,role:f,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"&&O3(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:f??"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 AR=k.forwardRef((t,r)=>{let{as:i,disabled:l}=t,u=j3(t,A3);const[f,{tagName:v}]=IR(Object.assign({tagName:i,disabled:l},u));return m.jsx(v,Object.assign({},u,f,{ref:r}))});AR.displayName="Button";const D3=["as","active","eventKey"];function k3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function GO({key:t,onClick:r,active:i,id:l,role:u,disabled:f}){const v=k.useContext(iu),h=k.useContext(NR),y=k.useContext(rh);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[oh("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),f&&(C.tabIndex=-1,C["aria-disabled"]=!0)),C.onClick=br(w=>{f||(r==null||r(w),t!=null&&v&&!w.isPropagationStopped()&&v(t,w))}),[C,{isActive:x}]}const WO=k.forwardRef((t,r)=>{let{as:i=AR,active:l,eventKey:u}=t,f=k3(t,D3);const[v,h]=GO(Object.assign({key:qd(u,f.href),active:l},f));return v[oh("active")]=h.isActive,m.jsx(i,Object.assign({},f,v,{ref:r}))});WO.displayName="NavItem";const M3=WO,L3=["as","onSelect","activeKey","role","onKeyDown"];function P3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const nA=()=>{},rA=oh("event-key"),XO=k.forwardRef((t,r)=>{let{as:i="div",onSelect:l,activeKey:u,role:f,onKeyDown:v}=t,h=P3(t,L3);const y=UO(),x=k.useRef(!1),C=k.useContext(iu),w=k.useContext(rh);let R,j;w&&(f=f||"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 F=Kl(U,`[${rA}]:not([aria-disabled=true])`),z=U.querySelector("[aria-selected=true]");if(!z||z!==document.activeElement)return null;const X=F.indexOf(z);if(X===-1)return null;let Y=X+V;return Y>=F.length&&(Y=0),Y<0&&(Y=F.length-1),F[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[I3("EventKey")]||null,V),x.current=!0,y())};k.useEffect(()=>{if(N.current&&x.current){const V=N.current.querySelector(`[${rA}][aria-selected=true]`);V==null||V.focus()}x.current=!1});const P=hs(r,N);return m.jsx(iu.Provider,{value:I,children:m.jsx(NR.Provider,{value:{role:f,activeKey:qd(u),getControlledId:R||nA,getControllerId:j||nA},children:m.jsx(i,Object.assign({},h,{onKeyDown:M,ref:P,role:f}))})})});XO.displayName="Nav";const F3=Object.assign(XO,{Item:M3}),YO=k.createContext(null);YO.displayName="NavbarContext";const ZO=YO,qO=k.createContext(null);qO.displayName="CardHeaderContext";const V3=qO,JO=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})));JO.displayName="NavItem";const QO=JO;function R0(){return k.useState(null)}function B3(t,r,i,l=!1){const u=br(i);k.useEffect(()=>{const f=typeof t=="function"?t():t;return f.addEventListener(r,u,l),()=>f.removeEventListener(r,u,l)},[t])}function jR(){const t=k.useRef(!0),r=k.useRef(()=>t.current);return k.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),r.current}function KO(t){const r=k.useRef(null);return k.useEffect(()=>{r.current=t}),r.current}const z3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",$3=typeof document<"u",_0=$3||z3?k.useLayoutEffect:k.useEffect,U3=["onKeyDown"];function H3(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function G3(t){return!t||t.trim()==="#"}const eD=k.forwardRef((t,r)=>{let{onKeyDown:i}=t,l=H3(t,U3);const[u]=IR(Object.assign({tagName:"a"},l)),f=br(v=>{u.onKeyDown(v),i==null||i(v)});return G3(l.href)||l.role==="button"?m.jsx("a",Object.assign({ref:r},l,u,{onKeyDown:f})):m.jsx("a",Object.assign({ref:r},l,{onKeyDown:i}))});eD.displayName="Anchor";const tD=eD,nD=k.forwardRef(({bsPrefix:t,className:r,as:i=tD,active:l,eventKey:u,disabled:f=!1,...v},h)=>{t=xn(t,"nav-link");const[y,x]=GO({key:qd(u,v.href),active:l,disabled:f,...v});return m.jsx(i,{...v,...y,ref:h,disabled:f,className:Qt(r,t,f&&"disabled",x.isActive&&"active")})});nD.displayName="NavLink";const rD=nD,aD=k.forwardRef((t,r)=>{const{as:i="div",bsPrefix:l,variant:u,fill:f=!1,justify:v=!1,navbar:h,navbarScroll:y,className:x,activeKey:C,...w}=X0(t,{activeKey:"onSelect"}),R=xn(l,"nav");let j,N,T=!1;const I=k.useContext(ZO),M=k.useContext(V3);return I?(j=I.bsPrefix,T=h??!0):M&&({cardHeaderBsPrefix:N}=M),m.jsx(F3,{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`]:f,[`${R}-justified`]:v}),...w})});aD.displayName="Nav";const W3=Object.assign(aD,{Item:QO,Link:rD});function aA(t,r){let i=0;return k.Children.map(t,l=>k.isValidElement(l)?r(l,i++):l)}function X3(t,r){let i=0;k.Children.forEach(t,l=>{k.isValidElement(l)&&r(l,i++)})}function Y3(t){let r;return X3(t,i=>{r==null&&(r=i.props.eventKey)}),r}function Z3(t){const{title:r,eventKey:i,disabled:l,tabClassName:u,tabAttrs:f,id:v}=t.props;return r==null?null:m.jsx(QO,{as:"li",role:"presentation",children:m.jsx(rD,{as:"button",type:"button",eventKey:i,disabled:l,id:v,className:u,...f,children:r})})}const iD=t=>{const{id:r,onSelect:i,transition:l,mountOnEnter:u=!1,unmountOnExit:f=!1,variant:v="tabs",children:h,activeKey:y=Y3(h),...x}=X0(t,{activeKey:"onSelect"});return m.jsxs(_O,{id:r,activeKey:y,onSelect:i,transition:TR(l),mountOnEnter:u,unmountOnExit:f,children:[m.jsx(W3,{...x,role:"tablist",as:"ul",variant:v,children:aA(h,Z3)}),m.jsx(FO,{children:aA(h,C=>{const w={...C.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,m.jsx(BO,{...w})})})]})};iD.displayName="Tabs";const q3=iD,J3=k.createContext(null),Y0=J3;var iA=Object.prototype.hasOwnProperty;function oA(t,r,i){for(i of t.keys())if(xm(i,r))return i}function xm(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--&&xm(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=oA(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=oA(r,u),!u)||!xm(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(iA.call(t,i)&&++l&&!iA.call(r,i)||!(i in r)||!xm(t[i],r[i]))return!1;return Object.keys(r).length===l}}return t!==t&&r!==r}function Q3(t){const r=jR();return[t[0],k.useCallback(i=>{if(r())return t[1](i)},[r,t[1]])]}var Ai="top",_o="bottom",To="right",ji="left",OR="auto",Fm=[Ai,_o,To,ji],Yp="start",_m="end",K3="clippingParents",oD="viewport",cm="popper",e9="reference",sA=Fm.reduce(function(t,r){return t.concat([r+"-"+Yp,r+"-"+_m])},[]),sD=[].concat(Fm,[OR]).reduce(function(t,r){return t.concat([r,r+"-"+Yp,r+"-"+_m])},[]),t9="beforeRead",n9="read",r9="afterRead",a9="beforeMain",i9="main",o9="afterMain",s9="beforeWrite",l9="write",u9="afterWrite",c9=[t9,n9,r9,a9,i9,o9,s9,l9,u9];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 DR(t){if(typeof ShadowRoot>"u")return!1;var r=Qi(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}var Wd=Math.max,T0=Math.min,Zp=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 lD(){return!/^((?!chrome|android).)*safari/i.test(Pw())}function qp(t,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var l=t.getBoundingClientRect(),u=1,f=1;r&&nl(t)&&(u=t.offsetWidth>0&&Zp(l.width)/t.offsetWidth||1,f=t.offsetHeight>0&&Zp(l.height)/t.offsetHeight||1);var v=Jd(t)?Qi(t):window,h=v.visualViewport,y=!lD()&&i,x=(l.left+(y&&h?h.offsetLeft:0))/u,C=(l.top+(y&&h?h.offsetTop:0))/f,w=l.width/u,R=l.height/f;return{width:w,height:R,top:C,right:x+w,bottom:C+R,left:x,x,y:C}}function kR(t){var r=qp(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 uD(t,r){var i=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(i&&DR(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 d9(t){return["table","td","th"].indexOf(xc(t))>=0}function Cc(t){return((Jd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Z0(t){return xc(t)==="html"?t:t.assignedSlot||t.parentNode||(DR(t)?t.host:null)||Cc(t)}function lA(t){return!nl(t)||ou(t).position==="fixed"?null:t.offsetParent}function f9(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=Z0(t);for(DR(u)&&(u=u.host);nl(u)&&["html","body"].indexOf(xc(u))<0;){var f=ou(u);if(f.transform!=="none"||f.perspective!=="none"||f.contain==="paint"||["transform","perspective"].indexOf(f.willChange)!==-1||r&&f.willChange==="filter"||r&&f.filter&&f.filter!=="none")return u;u=u.parentNode}return null}function Vm(t){for(var r=Qi(t),i=lA(t);i&&d9(i)&&ou(i).position==="static";)i=lA(i);return i&&(xc(i)==="html"||xc(i)==="body"&&ou(i).position==="static")?r:i||f9(t)||r}function MR(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Cm(t,r,i){return Wd(t,T0(r,i))}function p9(t,r,i){var l=Cm(t,r,i);return l>i?i:l}function cD(){return{top:0,right:0,bottom:0,left:0}}function dD(t){return Object.assign({},cD(),t)}function fD(t,r){return r.reduce(function(i,l){return i[l]=t,i},{})}var h9=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,dD(typeof r!="number"?r:fD(r,Fm))};function v9(t){var r,i=t.state,l=t.name,u=t.options,f=i.elements.arrow,v=i.modifiersData.popperOffsets,h=tl(i.placement),y=MR(h),x=[ji,To].indexOf(h)>=0,C=x?"height":"width";if(!(!f||!v)){var w=h9(u.padding,i),R=kR(f),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],I=v[y]-i.rects.reference[y],M=Vm(f),P=M?y==="y"?M.clientHeight||0:M.clientWidth||0:0,V=T/2-I/2,U=w[j],F=P-R[C]-w[N],z=P/2-R[C]/2+V,X=Cm(U,z,F),Y=y;i.modifiersData[l]=(r={},r[Y]=X,r.centerOffset=X-z,r)}}function m9(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)||uD(r.elements.popper,u)&&(r.elements.arrow=u))}const g9={name:"arrow",enabled:!0,phase:"main",fn:v9,effect:m9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jp(t){return t.split("-")[1]}var y9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function b9(t,r){var i=t.x,l=t.y,u=r.devicePixelRatio||1;return{x:Zp(i*u)/u||0,y:Zp(l*u)/u||0}}function uA(t){var r,i=t.popper,l=t.popperRect,u=t.placement,f=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,I=typeof C=="function"?C({x:j,y:T}):{x:j,y:T};j=I.x,T=I.y;var M=v.hasOwnProperty("x"),P=v.hasOwnProperty("y"),V=ji,U=Ai,F=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)&&f===_m){U=_o;var pe=w&&z===F&&F.visualViewport?F.visualViewport.height:z[X];T-=pe-l.height,T*=y?1:-1}if(u===ji||(u===Ai||u===_o)&&f===_m){V=To;var ie=w&&z===F&&F.visualViewport?F.visualViewport.width:z[Y];j-=ie-l.width,j*=y?1:-1}}var ge=Object.assign({position:h},x&&y9),ae=C===!0?b9({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]=P?"0":"",Re[V]=M?"0":"",Re.transform=(F.devicePixelRatio||1)<=1?"translate("+j+"px, "+T+"px)":"translate3d("+j+"px, "+T+"px, 0)",Re))}return Object.assign({},ge,(r={},r[U]=P?T+"px":"",r[V]=M?j+"px":"",r.transform="",r))}function x9(t){var r=t.state,i=t.options,l=i.gpuAcceleration,u=l===void 0?!0:l,f=i.adaptive,v=f===void 0?!0:f,h=i.roundOffsets,y=h===void 0?!0:h,x={placement:tl(r.placement),variation:Jp(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,uA(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,uA(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 C9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x9,data:{}};var $b={passive:!0};function S9(t){var r=t.state,i=t.instance,l=t.options,u=l.scroll,f=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 f&&x.forEach(function(C){C.addEventListener("scroll",i.update,$b)}),h&&y.addEventListener("resize",i.update,$b),function(){f&&x.forEach(function(C){C.removeEventListener("scroll",i.update,$b)}),h&&y.removeEventListener("resize",i.update,$b)}}const E9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:S9,data:{}};var w9={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(t){return t.replace(/left|right|bottom|top/g,function(r){return w9[r]})}var R9={start:"end",end:"start"};function cA(t){return t.replace(/start|end/g,function(r){return R9[r]})}function LR(t){var r=Qi(t),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function PR(t){return qp(Cc(t)).left+LR(t).scrollLeft}function _9(t,r){var i=Qi(t),l=Cc(t),u=i.visualViewport,f=l.clientWidth,v=l.clientHeight,h=0,y=0;if(u){f=u.width,v=u.height;var x=lD();(x||!x&&r==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}return{width:f,height:v,x:h+PR(t),y}}function T9(t){var r,i=Cc(t),l=LR(t),u=(r=t.ownerDocument)==null?void 0:r.body,f=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+PR(t),y=-l.scrollTop;return ou(u||i).direction==="rtl"&&(h+=Wd(i.clientWidth,u?u.clientWidth:0)-f),{width:f,height:v,x:h,y}}function FR(t){var r=ou(t),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function pD(t){return["html","body","#document"].indexOf(xc(t))>=0?t.ownerDocument.body:nl(t)&&FR(t)?t:pD(Z0(t))}function Sm(t,r){var i;r===void 0&&(r=[]);var l=pD(t),u=l===((i=t.ownerDocument)==null?void 0:i.body),f=Qi(l),v=u?[f].concat(f.visualViewport||[],FR(l)?l:[]):l,h=r.concat(v);return u?h:h.concat(Sm(Z0(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 N9(t,r){var i=qp(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 dA(t,r,i){return r===oD?Fw(_9(t,i)):Jd(r)?N9(r,i):Fw(T9(Cc(t)))}function I9(t){var r=Sm(Z0(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)&&uD(u,l)&&xc(u)!=="body"}):[]}function A9(t,r,i,l){var u=r==="clippingParents"?I9(t):[].concat(r),f=[].concat(u,[i]),v=f[0],h=f.reduce(function(y,x){var C=dA(t,x,l);return y.top=Wd(C.top,y.top),y.right=T0(C.right,y.right),y.bottom=T0(C.bottom,y.bottom),y.left=Wd(C.left,y.left),y},dA(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 hD(t){var r=t.reference,i=t.element,l=t.placement,u=l?tl(l):null,f=l?Jp(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?MR(u):null;if(x!=null){var C=x==="y"?"height":"width";switch(f){case Yp: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,f=i.strategy,v=f===void 0?t.strategy:f,h=i.boundary,y=h===void 0?K3:h,x=i.rootBoundary,C=x===void 0?oD:x,w=i.elementContext,R=w===void 0?cm:w,j=i.altBoundary,N=j===void 0?!1:j,T=i.padding,I=T===void 0?0:T,M=dD(typeof I!="number"?I:fD(I,Fm)),P=R===cm?e9:cm,V=t.rects.popper,U=t.elements[N?P:R],F=A9(Jd(U)?U:U.contextElement||Cc(t.elements.popper),y,C,v),z=qp(t.elements.reference),X=hD({reference:z,element:V,strategy:"absolute",placement:u}),Y=Fw(Object.assign({},V,X)),pe=R===cm?Y:z,ie={top:F.top-pe.top+M.top,bottom:pe.bottom-F.bottom+M.bottom,left:F.left-pe.left+M.left,right:pe.right-F.right+M.right},ge=t.modifiersData.offset;if(R===cm&&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 j9(t,r){r===void 0&&(r={});var i=r,l=i.placement,u=i.boundary,f=i.rootBoundary,v=i.padding,h=i.flipVariations,y=i.allowedAutoPlacements,x=y===void 0?sD:y,C=Jp(l),w=C?h?sA:sA.filter(function(N){return Jp(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:f,padding:v})[tl(T)],N},{});return Object.keys(j).sort(function(N,T){return j[N]-j[T]})}function O9(t){if(tl(t)===OR)return[];var r=a0(t);return[cA(t),r,cA(r)]}function D9(t){var r=t.state,i=t.options,l=t.name;if(!r.modifiersData[l]._skip){for(var u=i.mainAxis,f=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,I=r.options.placement,M=tl(I),P=M===I,V=y||(P||!N?[a0(I)]:O9(I)),U=[I].concat(V).reduce(function(we,Te){return we.concat(tl(Te)===OR?j9(r,{placement:Te,boundary:C,rootBoundary:w,padding:x,flipVariations:N,allowedAutoPlacements:T}):Te)},[]),F=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=Jp(ge)===Yp,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;F[xe]>z[xe]&&(Le=a0(Le));var ne=a0(Le),Oe=[];if(f&&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(Be){return Be})});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 k9={name:"flip",enabled:!0,phase:"main",fn:D9,requiresIfExists:["offset"],data:{_skip:!1}};function fA(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 pA(t){return[Ai,To,_o,ji].some(function(r){return t[r]>=0})}function M9(t){var r=t.state,i=t.name,l=r.rects.reference,u=r.rects.popper,f=r.modifiersData.preventOverflow,v=Tm(r,{elementContext:"reference"}),h=Tm(r,{altBoundary:!0}),y=fA(v,l),x=fA(h,u,f),C=pA(y),w=pA(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 L9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:M9};function P9(t,r,i){var l=tl(t),u=[ji,Ai].indexOf(l)>=0?-1:1,f=typeof i=="function"?i(Object.assign({},r,{placement:t})):i,v=f[0],h=f[1];return v=v||0,h=(h||0)*u,[ji,To].indexOf(l)>=0?{x:h,y:v}:{x:v,y:h}}function F9(t){var r=t.state,i=t.options,l=t.name,u=i.offset,f=u===void 0?[0,0]:u,v=sD.reduce(function(C,w){return C[w]=P9(w,r.rects,f),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 V9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:F9};function B9(t){var r=t.state,i=t.name;r.modifiersData[i]=hD({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const z9={name:"popperOffsets",enabled:!0,phase:"read",fn:B9,data:{}};function $9(t){return t==="x"?"y":"x"}function U9(t){var r=t.state,i=t.options,l=t.name,u=i.mainAxis,f=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,I=Tm(r,{boundary:y,rootBoundary:x,padding:w,altBoundary:C}),M=tl(r.placement),P=Jp(r.placement),V=!P,U=MR(M),F=$9(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(f){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=P===Yp?X[Ae]:Y[Ae],re=P===Yp?-Y[Ae]:-X[Ae],Ce=r.elements.arrow,we=j&&Ce?kR(Ce):{width:0,height:0},Te=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:cD(),Ie=Te[be],ue=Te[xe],de=Cm(0,X[Ae],we[Ae]),Be=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+Be-je-ot,dt=Le+Ge-je,en=Cm(j?T0(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[F],Cn=F==="y"?"height":"width",Qn=Vt+I[ln],Tr=Vt-I[In],Hn=[Ai,ji].indexOf(M)!==-1,Nr=(sn=ge==null?void 0:ge[F])!=null?sn:0,St=Hn?Qn:Vt-X[Cn]-Y[Cn]-Nr+ie.altAxis,Pn=Hn?Vt+X[Cn]+Y[Cn]-Nr-ie.altAxis:Tr,un=j&&Hn?p9(St,Vt,Pn):Cm(j?St:Qn,Vt,j?Pn:Tr);z[F]=un,ae[F]=un-Vt}r.modifiersData[l]=ae}}const H9={name:"preventOverflow",enabled:!0,phase:"main",fn:U9,requiresIfExists:["offset"]};function G9(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function W9(t){return t===Qi(t)||!nl(t)?LR(t):G9(t)}function X9(t){var r=t.getBoundingClientRect(),i=Zp(r.width)/t.offsetWidth||1,l=Zp(r.height)/t.offsetHeight||1;return i!==1||l!==1}function Y9(t,r,i){i===void 0&&(i=!1);var l=nl(r),u=nl(r)&&X9(r),f=Cc(r),v=qp(t,u,i),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(l||!l&&!i)&&((xc(r)!=="body"||FR(f))&&(h=W9(r)),nl(r)?(y=qp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):f&&(y.x=PR(f))),{x:v.left+h.scrollLeft-y.x,y:v.top+h.scrollTop-y.y,width:v.width,height:v.height}}function Z9(t){var r=new Map,i=new Set,l=[];t.forEach(function(f){r.set(f.name,f)});function u(f){i.add(f.name);var v=[].concat(f.requires||[],f.requiresIfExists||[]);v.forEach(function(h){if(!i.has(h)){var y=r.get(h);y&&u(y)}}),l.push(f)}return t.forEach(function(f){i.has(f.name)||u(f)}),l}function q9(t){var r=Z9(t);return c9.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function J9(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 hA={placement:"bottom",modifiers:[],strategy:"absolute"};function vA(){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 K9(t){t===void 0&&(t={});var r=t,i=r.defaultModifiers,l=i===void 0?[]:i,u=r.defaultOptions,f=u===void 0?hA:u;return function(h,y,x){x===void 0&&(x=f);var C={placement:"bottom",orderedModifiers:[],options:Object.assign({},hA,f),modifiersData:{},elements:{reference:h,popper:y},attributes:{},styles:{}},w=[],R=!1,j={state:C,setOptions:function(M){var P=typeof M=="function"?M(C.options):M;T(),C.options=Object.assign({},f,C.options,P),C.scrollParents={reference:Jd(h)?Sm(h):h.contextElement?Sm(h.contextElement):[],popper:Sm(y)};var V=q9(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,P=M.reference,V=M.popper;if(vA(P,V)){C.rects={reference:Y9(P,Vm(V),C.options.strategy==="fixed"),popper:kR(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 F=C.orderedModifiers[U],z=F.fn,X=F.options,Y=X===void 0?{}:X,pe=F.name;typeof z=="function"&&(C=z({state:C,options:Y,name:pe,instance:j})||C)}}}},update:J9(function(){return new Promise(function(I){j.forceUpdate(),I(C)})}),destroy:function(){T(),R=!0}};if(!vA(h,y))return j;j.setOptions(x).then(function(I){!R&&x.onFirstUpdate&&x.onFirstUpdate(I)});function N(){C.orderedModifiers.forEach(function(I){var M=I.name,P=I.options,V=P===void 0?{}:P,U=I.effect;if(typeof U=="function"){var F=U({state:C,name:M,instance:j,options:V}),z=function(){};w.push(F||z)}})}function T(){w.forEach(function(I){return I()}),w=[]}return j}}const e4=K9({defaultModifiers:[L9,z9,C9,E9,V9,k9,H9,g9]}),t4=["enabled","placement","strategy","modifiers"];function n4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const r4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},a4={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 f=l.getAttribute("aria-describedby");if(f&&f.split(",").indexOf(i.id)!==-1)return;l.setAttribute("aria-describedby",f?`${f},${i.id}`:i.id)}}},i4=[];function vD(t,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:f="absolute",modifiers:v=i4}=i,h=n4(i,t4);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:{}}})),N=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:I})=>{const M={},P={};Object.keys(I.elements).forEach(V=>{M[V]=I.styles[V],P[V]=I.attributes[V]}),j({state:I,styles:M,attributes:P,update:C,forceUpdate:w,placement:I.placement})}}),[C,w,j]),T=k.useMemo(()=>(xm(y.current,v)||(y.current=v),y.current),[v]);return k.useEffect(()=>{!x.current||!l||x.current.setOptions({placement:u,strategy:f,modifiers:[...T,N,r4]})},[f,u,N,l,T]),k.useEffect(()=>{if(!(!l||t==null||r==null))return x.current=e4(t,r,Object.assign({},h,{placement:u,strategy:f,modifiers:[...T,a4,N]})),()=>{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 o4={},s4=o4.NODE_ENV!=="production",mD=function(){};if(s4){var l4=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 f=0,v="Warning: "+r.replace(/%s/g,function(){return i[f++]});typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}};mD=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||l4.apply(null,[r].concat(i))}}var u4=mD;const VR=eh(u4),mA=()=>{};function c4(t){return t.button===0}function d4(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const i0=t=>t&&("current"in t?t.current:t),gA={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function gD(t,r=mA,{disabled:i,clickTrigger:l="click"}={}){const u=k.useRef(!1),f=k.useRef(!1),v=k.useCallback(x=>{const C=i0(t);VR(!!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||d4(x)||!c4(x)||!!Nm(C,x.target)||f.current,f.current=!1},[t]),h=br(x=>{const C=i0(t);C&&Nm(C,x.target)&&(f.current=!0)}),y=br(x=>{u.current||r(x)});k.useEffect(()=>{var x,C;if(i||t==null)return;const w=ah(i0(t)),R=w.defaultView||window;let j=(x=R.event)!=null?x:(C=R.parent)==null?void 0:C.event,N=null;gA[l]&&(N=eu(w,gA[l],h,!0));const T=eu(w,l,v,!0),I=eu(w,l,P=>{if(P===j){j=void 0;return}y(P)});let M=[];return"ontouchstart"in w.documentElement&&(M=[].slice.call(w.body.children).map(P=>eu(P,"mousemove",mA))),()=>{N==null||N(),T(),I(),M.forEach(P=>P())}},[t,i,l,v,h,y])}function f4(t){const r={};return Array.isArray(t)?(t==null||t.forEach(i=>{r[i.name]=i}),r):t||r}function p4(t={}){return Array.isArray(t)?t:Object.keys(t).map(r=>(t[r].name=r,t[r]))}function yD({enabled:t,enableEvents:r,placement:i,flip:l,offset:u,fixed:f,containerPadding:v,arrowElement:h,popperConfig:y={}}){var x,C,w,R,j;const N=f4(y.modifiers);return Object.assign({},y,{placement:i,enabled:t,strategy:f?"fixed":y.strategy,modifiers:p4(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 h4=["children"];function v4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}const m4=()=>{};function bD(t={}){const r=k.useContext(Y0),[i,l]=R0(),u=k.useRef(!1),{flip:f,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:I,menuElement:M,toggleElement:P}=r||{},V=vD(P,M,yD({placement:x||T||"bottom-start",enabled:R,enableEvents:w??j,offset:v,flip:f,fixed:y,arrowElement:i,popperConfig:C})),U=Object.assign({ref:I||m4,"aria-labelledby":P==null?void 0:P.id},V.attributes.popper,{style:V.styles.popper}),F={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 gD(M,N,{clickTrigger:h,disabled:!j}),[U,F]}const g4={usePopper:!0};function BR(t){let{children:r}=t,i=v4(t,h4);const[l,u]=bD(i);return m.jsx(m.Fragment,{children:r(l,u)})}BR.displayName="DropdownMenu";BR.defaultProps=g4;const xD=t=>{var r;return((r=t.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},yA=()=>{};function CD(){const t=SO(),{show:r=!1,toggle:i=yA,setToggle:l,menuElement:u}=k.useContext(Y0)||{},f=k.useCallback(h=>{i(!r,h)},[r,i]),v={id:t,ref:l||yA,onClick:f,"aria-expanded":!!r};return u&&xD(u)&&(v["aria-haspopup"]=!0),[v,{show:r,toggle:i}]}function SD({children:t}){const[r,i]=CD();return m.jsx(m.Fragment,{children:t(r,i)})}SD.displayName="DropdownToggle";const y4=["eventKey","disabled","onClick","active","as"];function b4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}function ED({key:t,href:r,active:i,disabled:l,onClick:u}){const f=k.useContext(iu),v=k.useContext(NR),{activeKey:h}=v||{},y=qd(t,r),x=i==null&&t!=null?qd(h)===y:i;return[{onClick:br(w=>{l||(u==null||u(w),f&&!w.isPropagationStopped()&&f(y,w))}),"aria-disabled":l||void 0,"aria-selected":x,[oh("dropdown-item")]:""},{isActive:x}]}const wD=k.forwardRef((t,r)=>{let{eventKey:i,disabled:l,onClick:u,active:f,as:v=AR}=t,h=b4(t,y4);const[y]=ED({key:i,href:h.href,disabled:l,onClick:u,active:f});return m.jsx(v,Object.assign({},h,{ref:r},y))});wD.displayName="DropdownItem";const RD=k.createContext(ih?window:void 0);RD.Provider;function q0(){return k.useContext(RD)}function bA(){const t=UO(),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=`* [${oh("dropdown-item")}]`,focusFirstItemOnShow:f,placement:v="bottom-start",children:h}){const y=q0(),[x,C]=bO(r,t,l),[w,R]=bA(),j=w.current,[N,T]=bA(),I=N.current,M=KO(x),P=k.useRef(null),V=k.useRef(!1),U=k.useContext(iu),F=k.useCallback((ge,ae,Re=ae==null?void 0:ae.type)=>{C(ge,{originalEvent:ae,source:Re})},[C]),z=br((ge,ae)=>{i==null||i(ge,ae),F(!1,ae,"select"),ae.isPropagationStopped()||U==null||U(ge,ae)}),X=k.useMemo(()=>({toggle:F,placement:v,show:x,menuElement:j,toggleElement:I,setMenu:R,setToggle:T}),[F,v,x,j,I,R,T]);j&&M&&!x&&(V.current=j.contains(j.ownerDocument.activeElement));const Y=br(()=>{I&&I.focus&&I.focus()}),pe=br(()=>{const ge=P.current;let ae=f;if(ae==null&&(ae=w.current&&xD(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(()=>{P.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 B3(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;P.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":_R(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(Y0.Provider,{value:X,children:h})})}Bm.displayName="Dropdown";Bm.Menu=BR;Bm.Toggle=SD;Bm.Item=wD;const _D=k.createContext({});_D.displayName="DropdownContext";const TD=_D,ND=k.forwardRef(({className:t,bsPrefix:r,as:i="hr",role:l="separator",...u},f)=>(r=xn(r,"dropdown-divider"),m.jsx(i,{ref:f,className:Qt(t,r),role:l,...u})));ND.displayName="DropdownDivider";const x4=ND,ID=k.forwardRef(({className:t,bsPrefix:r,as:i="div",role:l="heading",...u},f)=>(r=xn(r,"dropdown-header"),m.jsx(i,{ref:f,className:Qt(t,r),role:l,...u})));ID.displayName="DropdownHeader";const C4=ID,AD=k.forwardRef(({bsPrefix:t,className:r,eventKey:i,disabled:l=!1,onClick:u,active:f,as:v=tD,...h},y)=>{const x=xn(t,"dropdown-item"),[C,w]=ED({key:i,href:h.href,disabled:l,onClick:u,active:f});return m.jsx(v,{...h,...C,ref:y,className:Qt(r,x,w.isActive&&"active",l&&"disabled")})});AD.displayName="DropdownItem";const S4=AD,jD=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})));jD.displayName="DropdownItemText";const E4=jD,OD=k.createContext(null);OD.displayName="InputGroupContext";const DD=OD;var xA={};function kD(t,r){if(xA.NODE_ENV==="production")return t;const i=k.useCallback(l=>{l==null||!l.isReactComponent||(xA.NODE_ENV!=="production"?KI(!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`):KI(!1))},[r]);return hs(i,t)}var w4={};function MD(t,r,i){const l=i?"top-end":"top-start",u=i?"top-start":"top-end",f=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:f;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 LD=k.forwardRef(({bsPrefix:t,className:r,align:i,rootCloseEvent:l,flip:u=!0,show:f,renderOnMount:v,as:h="div",popperConfig:y,variant:x,...C},w)=>{let R=!1;const j=k.useContext(ZO),N=xn(t,"dropdown-menu"),{align:T,drop:I,isRTL:M}=k.useContext(TD);i=i||T;const P=k.useContext(DD),V=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(w4.NODE_ENV!=="production"&&VR(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=MD(R,I,M),[F,{hasShown:z,popper:X,show:Y,toggle:pe}]=bD({flip:u,rootCloseEvent:l,show:f,usePopper:!j&&V.length===0,offset:[0,2],popperConfig:y,placement:U});if(F.ref=hs(kD(w,"DropdownMenu"),F.ref),_0(()=>{Y&&(X==null||X.update())},[Y]),!z&&!v&&!P)return null;typeof h!="string"&&(F.show=Y,F.close=()=>pe==null?void 0:pe(!1),F.align=i);let ie=C.style;return X!=null&&X.placement&&(ie={...C.style,...F.style},C["x-placement"]=X.placement),m.jsx(h,{...C,...F,style:ie,...(V.length||j)&&{"data-bs-popper":"static"},className:Qt(r,N,Y&&"show",R&&`${N}-end`,x&&`${N}-${x}`,...V)})});LD.displayName="DropdownMenu";const R4=LD,PD=k.forwardRef(({as:t,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:f=!1,className:v,...h},y)=>{const x=xn(r,"btn"),[C,{tagName:w}]=IR({tagName:t,disabled:f,...h}),R=w;return m.jsx(R,{...C,...h,ref:y,disabled:f,className:Qt(v,x,u&&"active",i&&`${x}-${i}`,l&&`${x}-${l}`,h.href&&f&&"disabled")})});PD.displayName="Button";const _4=PD,FD=k.forwardRef(({bsPrefix:t,split:r,className:i,childBsPrefix:l,as:u=_4,...f},v)=>{const h=xn(t,"dropdown-toggle"),y=k.useContext(Y0);l!==void 0&&(f.bsPrefix=l);const[x]=CD();return x.ref=hs(x.ref,kD(v,"DropdownToggle")),m.jsx(u,{className:Qt(i,h,r&&`${h}-split`,(y==null?void 0:y.show)&&"show"),...x,...f})});FD.displayName="DropdownToggle";const T4=FD,VD=k.forwardRef((t,r)=>{const{bsPrefix:i,drop:l="down",show:u,className:f,align:v="start",onSelect:h,onToggle:y,focusFirstItemOnShow:x,as:C="div",navbar:w,autoClose:R=!0,...j}=X0(t,{show:"onToggle"}),N=k.useContext(DD),T=xn(i,"dropdown"),I=W0(),M=X=>R===!1?X==="click":R==="inside"?X!=="rootClose":R==="outside"?X!=="select":!0,P=br((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=MD(v==="end",l,I),F=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(TD.Provider,{value:F,children:m.jsx(Bm,{placement:U,show:u,onSelect:h,onToggle:P,focusFirstItemOnShow:x,itemSelector:`.${T}-item:not(.disabled):not(:disabled)`,children:N?j.children:m.jsx(C,{...j,ref:r,className:Qt(f,u&&"show",z[l])})})})});VD.displayName="Dropdown";const Ub=Object.assign(VD,{Toggle:T4,Menu:R4,Item:S4,ItemText:E4,Divider:x4,Header:C4});var Hb;function CA(t){if((!Hb&&Hb!==0||t)&&ih){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 N4(t){const r=k.useRef(t);return r.current=t,r}function zR(t){const r=N4(t);k.useEffect(()=>()=>r.current(),[])}function QE(t){t===void 0&&(t=ah());try{var r=t.activeElement;return!r||!r.nodeName?null:r}catch{return t.body}}function I4(t=document){const r=t.defaultView;return Math.abs(r.innerWidth-t.documentElement.clientWidth)}const SA=oh("modal-open");class A4{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return I4(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(SA,""),nu(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(SA),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 $R=A4,KE=(t,r)=>ih?t==null?(r||ah()).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=q0(),[l,u]=k.useState(()=>KE(t,i==null?void 0:i.document));if(!l){const f=KE(t);f&&u(f)}return k.useEffect(()=>{r&&l&&r(l)},[r,l]),k.useEffect(()=>{const f=KE(t);f!==l&&u(f)},[t,l]),l}function j4({in:t,onTransition:r}){const i=k.useRef(null),l=k.useRef(!0),u=br(r);return _0(()=>{if(!i.current)return;let f=!1;return u({in:t,element:i.current,initial:l.current,isStale:()=>f}),()=>{f=!0}},[t,u]),_0(()=>(l.current=!1,()=>{l.current=!0}),[]),i}function O4({children:t,in:r,onExited:i,onEntered:l,transition:u}){const[f,v]=k.useState(!r);r&&f&&v(!1);const h=j4({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 f&&!r?null:k.cloneElement(t,{ref:y})}function Bw(t,r,i){return t?m.jsx(t,Object.assign({},i)):r?m.jsx(O4,Object.assign({},i,{transition:r})):m.jsx(wR,Object.assign({},i))}function BD(t){return t.code==="Escape"||t.keyCode===27}const D4=["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 k4(t,r){if(t==null)return{};var i={},l=Object.keys(t),u,f;for(f=0;f<l.length;f++)u=l[f],!(r.indexOf(u)>=0)&&(i[u]=t[u]);return i}let ew;function M4(t){return ew||(ew=new $R({ownerDocument:t==null?void 0:t.document})),ew}function L4(t){const r=q0(),i=t||M4(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 zD=k.forwardRef((t,r)=>{let{show:i=!1,role:l="dialog",className:u,style:f,children:v,backdrop:h=!0,keyboard:y=!0,onBackdropClick:x,onEscapeKeyDown:C,transition:w,runTransition:R,backdropTransition:j,runBackdropTransition:N,autoFocus:T=!0,enforceFocus:I=!0,restoreFocus:M=!0,restoreFocusOptions:P,renderDialog:V,renderBackdrop:U=dt=>m.jsx("div",Object.assign({},dt)),manager:F,container:z,onShow:X,onHide:Y=()=>{},onExit:pe,onExited:ie,onExiting:ge,onEnter:ae,onEntering:Re,onEntered:be}=t,xe=k4(t,D4);const Ae=q0(),Le=Vw(z),ne=L4(F),Oe=jR(),G=KO(i),[Z,re]=k.useState(!i),Ce=k.useRef(null);k.useImperativeHandle(r,()=>ne,[ne]),ih&&!G&&i&&(Ce.current=QE(Ae==null?void 0:Ae.document)),i&&Z&&re(!1);const we=br(()=>{if(ne.add(),Ge.current=eu(document,"keydown",de),Be.current=eu(document,"focus",()=>setTimeout(Ie),!0),X&&X(),T){var dt,en;const sn=QE((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=br(()=>{if(ne.remove(),Ge.current==null||Ge.current(),Be.current==null||Be.current(),M){var dt;(dt=Ce.current)==null||dt.focus==null||dt.focus(P),Ce.current=null}});k.useEffect(()=>{!i||!Le||we()},[i,Le,we]),k.useEffect(()=>{Z&&Te()},[Z,Te]),zR(()=>{Te()});const Ie=br(()=>{if(!I||!Oe()||!ne.isTopModal())return;const dt=QE(Ae==null?void 0:Ae.document);ne.dialog&&dt&&!Nm(ne.dialog,dt)&&ne.dialog.focus()}),ue=br(dt=>{dt.target===dt.currentTarget&&(x==null||x(dt),h===!0&&Y())}),de=br(dt=>{y&&BD(dt)&&ne.isTopModal()&&(C==null||C(dt),dt.defaultPrevented||Y())}),Be=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:f,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)})});zD.displayName="Modal";const P4=Object.assign(zD,{Manager:$R});function zw(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function F4(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 EA(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function V4(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=EA(t.className,r):t.setAttribute("class",EA(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 B4 extends $R{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(F4(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,Vp.FIXED_CONTENT).forEach(f=>this.adjustAndStore(l,f,r.scrollBarWidth)),Kl(i,Vp.STICKY_CONTENT).forEach(f=>this.adjustAndStore(u,f,-r.scrollBarWidth)),Kl(i,Vp.NAVBAR_TOGGLER).forEach(f=>this.adjustAndStore(u,f,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();V4(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";Kl(i,Vp.FIXED_CONTENT).forEach(f=>this.restore(l,f)),Kl(i,Vp.STICKY_CONTENT).forEach(f=>this.restore(u,f)),Kl(i,Vp.NAVBAR_TOGGLER).forEach(f=>this.restore(u,f))}}let tw;function z4(t){return tw||(tw=new B4(t)),tw}const $D=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})));$D.displayName="ModalBody";const $4=$D,U4=k.createContext({onHide(){}}),UD=U4,HD=k.forwardRef(({bsPrefix:t,className:r,contentClassName:i,centered:l,size:u,fullscreen:f,children:v,scrollable:h,...y},x)=>{t=xn(t,"modal");const C=`${t}-dialog`,w=typeof f=="string"?`${t}-fullscreen-${f}`:`${t}-fullscreen`;return m.jsx("div",{...y,ref:x,className:Qt(C,r,u&&`${t}-${u}`,l&&`${C}-centered`,h&&`${C}-scrollable`,f&&w),children:m.jsx("div",{className:Qt(`${t}-content`,i),children:v})})});HD.displayName="ModalDialog";const GD=HD,WD=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})));WD.displayName="ModalFooter";const H4=WD,G4={"aria-label":Pe.string,onClick:Pe.func,variant:Pe.oneOf(["white"])},UR=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}));UR.displayName="CloseButton";UR.propTypes=G4;const W4=UR,X4=k.forwardRef(({closeLabel:t="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...f},v)=>{const h=k.useContext(UD),y=br(()=>{h==null||h.onHide(),l==null||l()});return m.jsxs("div",{ref:v,...f,children:[u,i&&m.jsx(W4,{"aria-label":t,variant:r,onClick:y})]})}),Y4=X4,XD=k.forwardRef(({bsPrefix:t,className:r,closeLabel:i="Close",closeButton:l=!1,...u},f)=>(t=xn(t,"modal-header"),m.jsx(Y4,{ref:f,...u,className:Qt(r,t),closeLabel:i,closeButton:l})));XD.displayName="ModalHeader";const Z4=XD,q4=t=>k.forwardRef((r,i)=>m.jsx("div",{...r,ref:i,className:Qt(r.className,t)})),J4=q4("h4"),YD=k.forwardRef(({className:t,bsPrefix:r,as:i=J4,...l},u)=>(r=xn(r,"modal-title"),m.jsx(i,{ref:u,className:Qt(t,r),...l})));YD.displayName="ModalTitle";const Q4=YD;function K4(t){return m.jsx(Xp,{...t,timeout:null})}function eW(t){return m.jsx(Xp,{...t,timeout:null})}const ZD=k.forwardRef(({bsPrefix:t,className:r,style:i,dialogClassName:l,contentClassName:u,children:f,dialogAs:v=GD,"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:I,onHide:M,container:P,autoFocus:V=!0,enforceFocus:U=!0,restoreFocus:F=!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]=R0(),Ie=hs(Ae,Te),ue=br(M),de=W0();t=xn(t,"modal");const Be=k.useMemo(()=>({onHide:ue}),[ue]);function Ge(){return be||z4({isRTL:de})}function tt(St){if(!ih)return;const Pn=Ge().getScrollbarWidth()>0,un=St.scrollHeight>ah(St).documentElement.clientHeight;ne({paddingRight:Pn&&!un?CA():void 0,paddingLeft:!Pn&&un?CA():void 0})}const ot=br(()=>{we&&tt(we.dialog)});zR(()=>{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=AO(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),_R(window,"resize",ot)},Qn=St=>{St&&(St.style.display=""),ae==null||ae(St),Mw(window,"resize",ot)},Tr=k.useCallback(St=>m.jsx("div",{...St,className:Qt(`${t}-backdrop`,Re,!R&&"show")}),[R,Re,t]),Hn={...i,...Le};Hn.display="block";const Nr=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:f})});return m.jsx(UD.Provider,{value:Be,children:m.jsx(P4,{show:w,ref:Ie,backdrop:j,container:P,keyboard:!0,autoFocus:V,enforceFocus:U,restoreFocus:F,restoreFocusOptions:z,onEscapeKeyDown:ln,onShow:I,onHide:M,onEnter:In,onEntering:Cn,onEntered:X,onExit:Vt,onExiting:pe,onExited:Qn,manager:Ge(),transition:R?K4:void 0,backdropTransition:R?eW:void 0,renderBackdrop:Tr,renderDialog:Nr})})});ZD.displayName="Modal";const Ln=Object.assign(ZD,{Body:$4,Header:Z4,Title:Q4,Footer:H4,Dialog:GD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),tW=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 nW({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 f=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:`${f}?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:`${f}?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:tW,children:R}),m.jsx(Ub.Menu,{children:C.map(([T,I,M])=>m.jsx(Ub.Item,{href:I,onClick:P=>{M!=="get"&&(P.preventDefault(),P.target.dataset.method=M,$&&$.rails&&$.rails.handleMethod($(P.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: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 rW({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleConfirmModal:u}=ri(t,r),{project:f}=Ji(r||i.grantNumber);if(!i||!f||i.error||f.error)return;const v=i.usesCredits?"credits":"units",h=(1-iO(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 aW({requestId:t,grantNumber:r,actionId:i}){const{deleteAction:l,request:u,toggleDeleteModal:f}=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=()=>f(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(yr,{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 N0({color:t="primary",href:r,icon:i,onClick:l,target:u,title:f}){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:f};return r?m.jsx("a",{...h,children:v}):m.jsx("button",{...h,children:v})}function qD({action:t,request:r,toggleDeleteModal:i}){const l=t.allowedOperations||[],u=[];l.includes("Edit")&&u.push(m.jsx(N0,{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(N0,{color:"danger",icon:"trash",onClick:()=>i(t.actionId),title:"Edit action"},"delete"));const f=`${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:f}):f,u]})}function Xd({resource:t,userGuide:r=!0}){const{full:i,short:l}=H0(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(N0,{icon:"book",href:t.userGuideUrl,target:"_blank",title:`${t.name} User Guide`}):null]})}function Qp({status:t,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[t]||"dark";return m.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:t})}const iW=t=>m.jsx("span",{className:t<0?"text-danger":"",children:t===0?"":t.toLocaleString()});function oW({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ri(t,r),{project:u,setRequest:f}=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:()=>f(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(qD,{action:I,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:T=>m.jsx(Qp,{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:iW,formatHeader:(I,M)=>m.jsx(Xd,{resource:M,userGuide:!1})}))],N=i.actions.map(T=>{const I={...T};for(let{resourceId:M}of R)I[`resource${M}`]=0;for(let{resourceId:M,approved:P,requested:V}of T.resources)I[`resource${M}`]=P||V||0;return I});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 sW({requestId:t,grantNumber:r}){const{request:i,toggleDeleteModal:l}=ri(t,r);if(!i)return;const u=[{key:"type",name:"Action Details",format:(f,v)=>m.jsx(qD,{action:v,request:i,toggleDeleteModal:l})},{key:"status",name:"Status",format:f=>m.jsx(Qp,{status:f})}];if(i.actions&&i.actions.length)return m.jsx(su,{rows:i.actions,columns:u})}function dm(...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 lW={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function uW(t,r){const i=`offset${t[0].toUpperCase()}${t.slice(1)}`,l=r[i],u=lW[t];return l+parseInt(nu(r,u[0]),10)+parseInt(nu(r,u[1]),10)}const cW={[mc]:"collapse",[E0]:"collapsing",[Ql]:"collapsing",[gc]:"collapse show"},dW=pr.forwardRef(({onEnter:t,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:f,children:v,dimension:h="height",in:y=!1,timeout:x=300,mountOnEnter:C=!1,unmountOnExit:w=!1,appear:R=!1,getDimensionValue:j=uW,...N},T)=>{const I=typeof h=="function"?h():h,M=k.useMemo(()=>dm(z=>{z.style[I]="0"},t),[I,t]),P=k.useMemo(()=>dm(z=>{const X=`scroll${I[0].toUpperCase()}${I.slice(1)}`;z.style[I]=`${z[X]}px`},r),[I,r]),V=k.useMemo(()=>dm(z=>{z.style[I]=null},i),[I,i]),U=k.useMemo(()=>dm(z=>{z.style[I]=`${j(I,z)}px`,OO(z)},l),[l,j,I]),F=k.useMemo(()=>dm(z=>{z.style[I]=null},u),[I,u]);return m.jsx(DO,{ref:T,addEndListener:jO,...N,"aria-expanded":N.role?y:null,onEnter:M,onEntering:P,onEntered:V,onExit:U,onExiting:F,childRef:v.ref,in:y,timeout:x,mountOnEnter:C,unmountOnExit:w,appear:R,children:(z,X)=>pr.cloneElement(v,{...X,className:Qt(f,v.props.className,cW[z],I==="width"&&"collapse-horizontal")})})}),fW=dW;function JD(t,r){return Array.isArray(t)?t.includes(r):t===r}const QD=k.createContext({});QD.displayName="AccordionContext";const J0=QD,KD=k.forwardRef(({as:t="div",bsPrefix:r,className:i,children:l,eventKey:u,...f},v)=>{const{activeEventKey:h}=k.useContext(J0);return r=xn(r,"accordion-collapse"),m.jsx(fW,{ref:v,in:JD(h,u),...f,className:Qt(i,r),children:m.jsx(t,{children:k.Children.only(l)})})});KD.displayName="AccordionCollapse";const ek=KD,tk=k.createContext({eventKey:""});tk.displayName="AccordionItemContext";const HR=tk,nk=k.forwardRef(({as:t="div",bsPrefix:r,className:i,onEnter:l,onEntering:u,onEntered:f,onExit:v,onExiting:h,onExited:y,...x},C)=>{r=xn(r,"accordion-body");const{eventKey:w}=k.useContext(HR);return m.jsx(ek,{eventKey:w,onEnter:l,onEntering:u,onEntered:f,onExit:v,onExiting:h,onExited:y,children:m.jsx(t,{ref:C,...x,className:Qt(i,r)})})});nk.displayName="AccordionBody";const pW=nk;function hW(t,r){const{activeEventKey:i,onSelect:l,alwaysOpen:u}=k.useContext(J0);return f=>{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,f),r==null||r(f)}}const rk=k.forwardRef(({as:t="button",bsPrefix:r,className:i,onClick:l,...u},f)=>{r=xn(r,"accordion-button");const{eventKey:v}=k.useContext(HR),h=hW(v,l),{activeEventKey:y}=k.useContext(J0);return t==="button"&&(u.type="button"),m.jsx(t,{ref:f,onClick:h,...u,"aria-expanded":Array.isArray(y)?y.includes(v):v===y,className:Qt(i,r,!JD(y,v)&&"collapsed")})});rk.displayName="AccordionButton";const ak=rk,ik=k.forwardRef(({as:t="h2",bsPrefix:r,className:i,children:l,onClick:u,...f},v)=>(r=xn(r,"accordion-header"),m.jsx(t,{ref:v,...f,className:Qt(i,r),children:m.jsx(ak,{onClick:u,children:l})})));ik.displayName="AccordionHeader";const vW=ik,ok=k.forwardRef(({as:t="div",bsPrefix:r,className:i,eventKey:l,...u},f)=>{r=xn(r,"accordion-item");const v=k.useMemo(()=>({eventKey:l}),[l]);return m.jsx(HR.Provider,{value:v,children:m.jsx(t,{ref:f,...u,className:Qt(i,r)})})});ok.displayName="AccordionItem";const mW=ok,sk=k.forwardRef((t,r)=>{const{as:i="div",activeKey:l,bsPrefix:u,className:f,onSelect:v,flush:h,alwaysOpen:y,...x}=X0(t,{activeKey:"onSelect"}),C=xn(u,"accordion"),w=k.useMemo(()=>({activeEventKey:l,onSelect:v,alwaysOpen:y}),[l,v,y]);return m.jsx(J0.Provider,{value:w,children:m.jsx(i,{ref:r,...x,className:Qt(f,C,h&&`${C}-flush`)})})});sk.displayName="Accordion";const us=Object.assign(sk,{Button:ak,Collapse:ek,Item:mW,Header:vW,Body:pW}),$w=2**31-1;function lk(t,r,i){const l=i-Date.now();t.current=l<=$w?setTimeout(r,l):setTimeout(()=>lk(t,r,i),$w)}function gW(){const t=jR(),r=k.useRef();return zR(()=>clearTimeout(r.current)),k.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,f=0){t()&&(i(),f<=$w?r.current=setTimeout(u,f):lk(r,u,Date.now()+f))}return{set:l,clear:i,handleRef:r}},[])}const yW=()=>{};function bW(t,r,{disabled:i,clickTrigger:l}={}){const u=r||yW;gD(t,u,{disabled:i,clickTrigger:l});const f=br(v=>{BD(v)&&u(v)});k.useEffect(()=>{if(i||t==null)return;const v=ah(i0(t));let h=(v.defaultView||window).event;const y=eu(v,"keyup",x=>{if(x===h){h=void 0;return}f(x)});return()=>{y()}},[t,i,f])}const uk=k.forwardRef((t,r)=>{const{flip:i,offset:l,placement:u,containerPadding:f,popperConfig:v={},transition:h,runTransition:y}=t,[x,C]=R0(),[w,R]=R0(),j=hs(C,r),N=Vw(t.container),T=Vw(t.target),[I,M]=k.useState(!t.show),P=vD(T,x,yD({placement:u,enableEvents:!!t.show,containerPadding:f||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(bW(x,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!U)return null;const{onExit:F,onExiting:z,onEnter:X,onEntering:Y,onEntered:pe}=t;let ie=t.children(Object.assign({},P.attributes.popper,{style:P.styles.popper,ref:j}),{popper:P,placement:u,show:!!t.show,arrowProps:Object.assign({},P.attributes.arrow,{style:P.styles.arrow,ref:R})});return ie=Bw(h,y,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ie,onExit:F,onExiting:z,onExited:V,onEnter:X,onEntering:Y,onEntered:pe}),N?$d.createPortal(ie,N):null});uk.displayName="Overlay";const xW=uk,ck=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})));ck.displayName="PopoverHeader";const CW=ck,dk=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})));dk.displayName="PopoverBody";const fk=dk;function pk(t,r){let i=t;return t==="left"?i=r?"end":"start":t==="right"&&(i=r?"start":"end"),i}function hk(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const SW=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,body:f,arrowProps:v,hasDoneInitialMeasure:h,popper:y,show:x,...C},w)=>{const R=xn(t,"popover"),j=W0(),[N]=(r==null?void 0:r.split("-"))||[],T=pk(N,j);let I=l;return x&&!h&&(I={...l,...hk(y==null?void 0:y.strategy)}),m.jsxs("div",{ref:w,role:"tooltip",style:I,"x-placement":N,className:Qt(i,R,N&&`bs-popover-${T}`),...C,children:[m.jsx("div",{className:"popover-arrow",...v}),f?m.jsx(fk,{children:u}):u]})}),EW=Object.assign(SW,{Header:CW,Body:fk,POPPER_OFFSET:[0,8]}),vk=k.forwardRef(({bsPrefix:t,placement:r="right",className:i,style:l,children:u,arrowProps:f,hasDoneInitialMeasure:v,popper:h,show:y,...x},C)=>{t=xn(t,"tooltip");const w=W0(),[R]=(r==null?void 0:r.split("-"))||[],j=pk(R,w);let N=l;return y&&!v&&(N={...l,...hk(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",...f}),m.jsx("div",{className:`${t}-inner`,children:u})]})});vk.displayName="Tooltip";const Q0=Object.assign(vk,{TOOLTIP_OFFSET:[0,6]});function wW(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 EW.POPPER_OFFSET;if(zw(r.current,l))return Q0.TOOLTIP_OFFSET}return[0,0]}}}),[t,i,l]);return[r,[u]]}function RW(t,r){const{ref:i}=t,{ref:l}=r;t.ref=i.__wrapped||(i.__wrapped=u=>i(w0(u))),r.ref=l.__wrapped||(l.__wrapped=u=>l(w0(u)))}const mk=k.forwardRef(({children:t,transition:r=Xp,popperConfig:i={},rootClose:l=!1,placement:u="top",show:f=!1,...v},h)=>{const y=k.useRef({}),[x,C]=k.useState(null),[w,R]=wW(v.offset),j=hs(h,w),N=r===!0?Xp:r||void 0,T=br(I=>{C(I),i==null||i.onFirstUpdate==null||i.onFirstUpdate(I)});return _0(()=>{x&&v.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[x,v.target]),k.useEffect(()=>{f||C(null)},[f]),m.jsx(xW,{...v,ref:j,popperConfig:{...i,modifiers:R.concat(i.modifiers||[]),onFirstUpdate:T},transition:N,rootClose:l,placement:u,show:f,children:(I,{arrowProps:M,popper:P,show:V})=>{var U,F;RW(I,M);const z=P==null?void 0:P.placement,X=Object.assign(y.current,{state:P==null?void 0:P.state,scheduleUpdate:P==null?void 0:P.update,placement:z,outOfBoundaries:(P==null||(U=P.state)==null||(F=U.modifiersData.hide)==null?void 0:F.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}})}})});mk.displayName="Overlay";const gk=mk;var _W={};function TW(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function wA(t,r,i){const[l]=r,u=l.currentTarget,f=l.relatedTarget||l.nativeEvent[i];(!f||f!==u)&&!Nm(u,f)&&t(...r)}Pe.oneOf(["click","hover","focus"]);const NW=({trigger:t=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:f=!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=gW(),N=k.useRef(""),[T,I]=$O(u,f,v),M=TW(h),{onFocus:P,onBlur:V,onClick:U}=typeof i!="function"?k.Children.only(i).props:{},F=xe=>{R(w0(xe))},z=k.useCallback(()=>{if(j.clear(),N.current="show",!M.show){I(!0);return}j.set(()=>{N.current==="show"&&I(!0)},M.show)},[M.show,I,j]),X=k.useCallback(()=>{if(j.clear(),N.current="hide",!M.hide){I(!1);return}j.set(()=>{N.current==="hide"&&I(!1)},M.hide)},[M.hide,I,j]),Y=k.useCallback((...xe)=>{z(),P==null||P(...xe)},[z,P]),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)=>{wA(z,xe,"fromElement")},[z]),ae=k.useCallback((...xe)=>{wA(X,xe,"toElement")},[X]),Re=t==null?[]:[].concat(t),be={ref:F};return Re.indexOf("click")!==-1&&(be.onClick=ie),Re.indexOf("focus")!==-1&&(be.onFocus=Y,be.onBlur=pe),Re.indexOf("hover")!==-1&&(_W.NODE_ENV!=="production"&&VR(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(gk,{...C,show:T,onHide:X,flip:x,placement:y,popperConfig:l,target:w.current,children:r})]})},GR=NW;function IW({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 f;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?(f=R,!1):R.allocated>0).map((R,j)=>({...R,userCount:v[R.resourceId]||0,color:ww[j%ww.length]})),y=f?f.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(Qp,{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(Qp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(l.currentUser.resourceIds.includes(j.resourceId)||!j.isActive)return m.jsx(m.Fragment,{children:"—"});if(l.isManager)return m.jsx("a",{href:"#",onClick:I=>{I.preventDefault(),u("users")},children:"Grant access"});const T=m.jsxs(Q0,{children:["Please contact ",mR(l)," to request access to this resource."]});return m.jsx(GR,{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[f.icon])," ",ga(y)]})," ",f.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 AW=[{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(" ")}}],jW=({requestId:t,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const l=G0.map(({role:u,name:f})=>({role:f,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:AW}):null};function OW({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(IW,{requestId:t,grantNumber:r}),l.isManager?m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(jW,{requestId:t,grantNumber:r})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(sW,{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 DW(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 yk(t){var r=DW(t,"string");return Qd(r)=="symbol"?r:String(r)}function zp(t,r,i){return r=yk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function RA(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?RA(Object(i),!0).forEach(function(l){zp(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):RA(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function kW(t){if(Array.isArray(t))return t}function MW(t,r){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var l,u,f,v,h=[],y=!0,x=!1;try{if(f=(i=i.call(t)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(l=f.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 bk(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 LW(){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 kW(t)||MW(t,r)||bk(t,r)||LW()}function al(t,r){if(t==null)return{};var i=RR(t,r),l,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);for(u=0;u<f.length;u++)l=f[u],!(r.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(t,l)&&(i[l]=t[l])}return i}var PW=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function xk(t){var r=t.defaultInputValue,i=r===void 0?"":r,l=t.defaultMenuIsOpen,u=l===void 0?!1:l,f=t.defaultValue,v=f===void 0?null:f,h=t.inputValue,y=t.menuIsOpen,x=t.onChange,C=t.onInputChange,w=t.onMenuClose,R=t.onMenuOpen,j=t.value,N=al(t,PW),T=k.useState(h!==void 0?h:i),I=na(T,2),M=I[0],P=I[1],V=k.useState(y!==void 0?y:u),U=na(V,2),F=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)),P(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:F,Le=j!==void 0?j:pe;return bt(bt({},N),{},{inputValue:xe,menuIsOpen:Ae,onChange:ge,onInputChange:ae,onMenuClose:be,onMenuOpen:Re,value:Le})}function FW(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _A(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,yk(l.key),l)}}function VW(t,r,i){return r&&_A(t.prototype,r),i&&_A(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function BW(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&&S0(t,r)}function I0(t){return I0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},I0(t)}function Ck(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ck=function(){return!!t})()}function zW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $W(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 zW(t)}function UW(t){var r=Ck();return function(){var l=I0(t),u;if(r){var f=I0(this).constructor;u=Reflect.construct(l,arguments,f)}else u=l.apply(this,arguments);return $W(this,u)}}function HW(t){if(Array.isArray(t))return Uw(t)}function GW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function WW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
297
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WR(t){return HW(t)||GW(t)||bk(t)||WW()}var Gb={};function XW(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 YW(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 ZW=function(){function t(i){var l=this;this._insertTag=function(u){var f;l.tags.length===0?l.insertionPoint?f=l.insertionPoint.nextSibling:l.prepend?f=l.container.firstChild:f=l.before:f=l.tags[l.tags.length-1].nextSibling,l.container.insertBefore(u,f),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(YW(this));var u=this.tags[this.tags.length-1];if(Gb.NODE_ENV!=="production"){var f=l.charCodeAt(0)===64&&l.charCodeAt(1)===105;f&&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||!f}if(this.isSpeedy){var v=XW(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-",A0="-moz-",yn="-webkit-",XR="comm",YR="rule",ZR="decl",qW="@import",Sk="@keyframes",JW="@layer",QW=Math.abs,K0=String.fromCharCode,KW=Object.assign;function e5(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 Ek(t){return t.trim()}function t5(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 qR(t){return t.length}function Wb(t,r){return r.push(t),t}function n5(t,r){return t.map(r).join("")}var ex=1,Kp=1,wk=0,Oi=0,Mr=0,sh="";function tx(t,r,i,l,u,f,v){return{value:t,root:r,parent:i,type:l,props:u,children:f,line:ex,column:Kp,length:v,return:""}}function fm(t,r){return KW(tx("",null,null,"",null,null,0),t,{length:-t.length},r)}function r5(){return Mr}function a5(){return Mr=Oi>0?ma(sh,--Oi):0,Kp--,Mr===10&&(Kp=1,ex--),Mr}function Yi(){return Mr=Oi<wk?ma(sh,Oi++):0,Kp++,Mr===10&&(Kp=1,ex++),Mr}function rl(){return ma(sh,Oi)}function o0(){return Oi}function zm(t,r){return Im(sh,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 Rk(t){return ex=Kp=1,wk=el(sh=t),Oi=0,[]}function _k(t){return sh="",t}function s0(t){return Ek(zm(Oi-1,Gw(t===91?t+2:t===40?t+1:t)))}function i5(t){for(;(Mr=rl())&&Mr<33;)Yi();return Am(t)>2||Am(Mr)>3?"":" "}function o5(t,r){for(;--r&&Yi()&&!(Mr<48||Mr>102||Mr>57&&Mr<65||Mr>70&&Mr<97););return zm(t,o0()+(r<6&&rl()==32&&Yi()==32))}function Gw(t){for(;Yi();)switch(Mr){case t:return Oi;case 34:case 39:t!==34&&t!==39&&Gw(Mr);break;case 40:t===41&&Gw(t);break;case 92:Yi();break}return Oi}function s5(t,r){for(;Yi()&&t+Mr!==57;)if(t+Mr===84&&rl()===47)break;return"/*"+zm(r,Oi-1)+"*"+K0(t===47?t:Yi())}function l5(t){for(;!Am(rl());)Yi();return zm(t,Oi)}function u5(t){return _k(l0("",null,null,null,[""],t=Rk(t),0,[0],t))}function l0(t,r,i,l,u,f,v,h,y){for(var x=0,C=0,w=v,R=0,j=0,N=0,T=1,I=1,M=1,P=0,V="",U=u,F=f,z=l,X=V;I;)switch(N=P,P=Yi()){case 40:if(N!=108&&ma(X,w-1)==58){Hw(X+=bn(s0(P),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:X+=s0(P);break;case 9:case 10:case 13:case 32:X+=i5(N);break;case 92:X+=o5(o0()-1,7);continue;case 47:switch(rl()){case 42:case 47:Wb(c5(s5(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(P){case 0:case 125:I=0;case 59+C:M==-1&&(X=bn(X,/\f/g,"")),j>0&&el(X)-w&&Wb(j>32?NA(X+";",l,i,w-1):NA(bn(X," ","")+";",l,i,w-2),y);break;case 59:X+=";";default:if(Wb(z=TA(X,r,i,x,C,u,h,V,U=[],F=[],w),f),P===123)if(C===0)l0(X,r,z,z,U,f,w,h,F);else switch(R===99&&ma(X,3)===110?100:R){case 100:case 108:case 109:case 115:l0(t,z,z,l&&Wb(TA(t,z,z,0,0,u,h,V,u,U=[],w),F),u,F,w,h,l?U:F);break;default:l0(X,z,z,z,[""],F,0,h,F)}}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(P==123)--T;else if(P==125&&T++==0&&a5()==125)continue}switch(X+=K0(P),P*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+=l5(o0())),P++;break;case 45:N===45&&el(X)==2&&(T=0)}}return f}function TA(t,r,i,l,u,f,v,h,y,x,C){for(var w=u-1,R=u===0?f:[""],j=qR(R),N=0,T=0,I=0;N<l;++N)for(var M=0,P=Im(t,w+1,w=QW(T=v[N])),V=t;M<j;++M)(V=Ek(T>0?R[M]+" "+P:bn(P,/&\f/g,R[M])))&&(y[I++]=V);return tx(t,r,i,u===0?YR:h,y,x,C)}function c5(t,r,i){return tx(t,r,i,XR,K0(r5()),Im(t,2,-2),0)}function NA(t,r,i,l){return tx(t,r,i,ZR,Im(t,0,l),Im(t,l+1,-1),l)}function Up(t,r){for(var i="",l=qR(t),u=0;u<l;u++)i+=r(t[u],u,t,r)||"";return i}function d5(t,r,i,l){switch(t.type){case JW:if(t.children.length)break;case qW:case ZR:return t.return=t.return||t.value;case XR:return"";case Sk:return t.return=t.value+"{"+Up(t.children,l)+"}";case YR:t.value=t.props.join(",")}return el(i=Up(t.children,l))?t.return=t.value+"{"+i+"}":""}function f5(t){var r=qR(t);return function(i,l,u,f){for(var v="",h=0;h<r;h++)v+=t[h](i,l,u,f)||"";return v}}function p5(t){return function(r){r.root||(r=r.return)&&t(r)}}function h5(t){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=t(i)),r[i]}}var pm={},v5=function(r,i,l){for(var u=0,f=0;u=f,f=rl(),u===38&&f===12&&(i[l]=1),!Am(f);)Yi();return zm(r,Oi)},m5=function(r,i){var l=-1,u=44;do switch(Am(u)){case 0:u===38&&rl()===12&&(i[l]=1),r[l]+=v5(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]+=K0(u)}while(u=Yi());return r},g5=function(r,i){return _k(m5(Rk(r),i))},IA=new WeakMap,y5=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&&!IA.get(l))&&!u){IA.set(r,!0);for(var f=[],v=g5(i,f),h=l.props,y=0,x=0;y<v.length;y++)for(var C=0;C<h.length;C++,x++)r.props[x]=f[y]?v[y].replace(/&\f/g,h[C]):h[C]+" "+v[y]}}},b5=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},x5="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",C5=function(r){return r.type==="comm"&&r.children.indexOf(x5)>-1},S5=function(r){return function(i,l,u){if(!(i.type!=="rule"||r.compat)){var f=i.value.match(/(:first|:nth|:nth-last)-child/g);if(f){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(C5(x))return;break}}f.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".')})}}}},Tk=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},E5=function(r,i){for(var l=r-1;l>=0;l--)if(!Tk(i[l]))return!0;return!1},AA=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},w5=function(r,i,l){Tk(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."),AA(r)):E5(i,l)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),AA(r)))};function Nk(t,r){switch(e5(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+A0+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"+A0+(ma(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~Hw(t,"stretch")?Nk(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 R5=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case ZR:r.return=Nk(r.value,r.length);break;case Sk:return Up([fm(r,{value:bn(r.value,"@","@"+yn)})],u);case YR:if(r.length)return n5(r.props,function(f){switch(t5(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Up([fm(r,{props:[bn(f,/:(read-\w+)/,":"+A0+"$1")]})],u);case"::placeholder":return Up([fm(r,{props:[bn(f,/:(plac\w+)/,":"+yn+"input-$1")]}),fm(r,{props:[bn(f,/:(plac\w+)/,":"+A0+"$1")]}),fm(r,{props:[bn(f,/:(plac\w+)/,Ba+"input-$1")]})],u)}return""})}},_5=[R5],T5=function(r){var i=r.key;if(pm.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||_5;if(pm.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 f={},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++)f[I[M]]=!0;h.push(T)});var y,x=[y5,b5];pm.NODE_ENV!=="production"&&x.push(S5({get compat(){return N.compat}}),w5);{var C,w=[d5,pm.NODE_ENV!=="production"?function(T){T.root||(T.return?C.insert(T.return):T.value&&T.type!==XR&&C.insert(T.value+"{}"))}:p5(function(T){C.insert(T)})],R=f5(x.concat(u,w)),j=function(I){return Up(u5(I),R)};y=function(I,M,P,V){C=P,pm.NODE_ENV!=="production"&&M.map!==void 0&&(C={insert:function(F){P.insert(F+M.map)}}),j(I?I+"{"+M.styles+"}":M.styles),V&&(N.inserted[M.name]=!0)}}var N={key:i,sheet:new ZW({key:i,container:v,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:f,registered:{},insert:y};return N.sheet.hydrate(h),N},Ik=yR(),N5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ak={};Ak[Ik.ForwardRef]=N5;Ak[Ik.Memo]=I5;var A5=!0;function jk(t,r,i){var l="";return i.split(" ").forEach(function(u){t[u]!==void 0?r.push(t[u]+";"):l+=u+" "}),l}var JR=function(r,i,l){var u=r.key+"-"+i.name;(l===!1||A5===!1)&&r.registered[u]===void 0&&(r.registered[u]=i.styles)},QR=function(r,i,l){JR(r,i,l);var u=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var f=i;do r.insert(i===f?"."+u:"",f,r.sheet,!0),f=f.next;while(f!==void 0)}};function j5(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 O5={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={},jA=`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
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,D5="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",k5=/[A-Z]|^ms/g,Ok=/_EMO_([^_]+?)_([^]*?)_EMO_/g,KR=function(r){return r.charCodeAt(1)===45},OA=function(r){return r!=null&&typeof r!="boolean"},nw=h5(function(t){return KR(t)?t:t.replace(k5,"-$&").toLowerCase()}),j0=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(Ok,function(l,u,d){return cs={name:u,styles:d,next:cs},u})}return O5[r]!==1&&!KR(r)&&typeof i=="number"&&i!==0?i+"px":i};if(Ro.NODE_ENV!=="production"){var M5=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,L5=["normal","none","initial","inherit","unset"],P5=j0,F5=/^-ms-/,V5=/-(.)/g,DA={};j0=function(r,i){if(r==="content"&&(typeof i!="string"||L5.indexOf(i)===-1&&!M5.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=P5(r,i);return l!==""&&!KR(r)&&r.indexOf("-")!==-1&&DA[r]===void 0&&(DA[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(F5,"ms-").replace(V5,function(u,d){return d.toUpperCase()})+"?")),l}}var Dk="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(Dk);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 B5(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(Ok,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(`
302
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,D5="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",k5=/[A-Z]|^ms/g,Ok=/_EMO_([^_]+?)_([^]*?)_EMO_/g,KR=function(r){return r.charCodeAt(1)===45},OA=function(r){return r!=null&&typeof r!="boolean"},nw=h5(function(t){return KR(t)?t:t.replace(k5,"-$&").toLowerCase()}),j0=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(Ok,function(l,u,f){return cs={name:u,styles:f,next:cs},u})}return O5[r]!==1&&!KR(r)&&typeof i=="number"&&i!==0?i+"px":i};if(Ro.NODE_ENV!=="production"){var M5=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,L5=["normal","none","initial","inherit","unset"],P5=j0,F5=/^-ms-/,V5=/-(.)/g,DA={};j0=function(r,i){if(r==="content"&&(typeof i!="string"||L5.indexOf(i)===-1&&!M5.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=P5(r,i);return l!==""&&!KR(r)&&r.indexOf("-")!==-1&&DA[r]===void 0&&(DA[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(F5,"ms-").replace(V5,function(u,f){return f.toUpperCase()})+"?")),l}}var Dk="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(Dk);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 B5(t,r,i)}case"function":{if(t!==void 0){var f=cs,v=i(t);return cs=f,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(Ok,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(`
303
303
  `)+`
304
304
 
305
305
  You should wrap it with \`css\` like this:
306
306
 
307
- `+("css`"+y+"`"))}break}if(r==null)return i;var x=r[i];return x!==void 0?x:i}function B5(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]+"}":OA(v)&&(l+=nw(d)+":"+j0(d,v)+";");else{if(d==="NO_COMPONENT_SELECTOR"&&Ro.NODE_ENV!=="production")throw new Error(Dk);if(Array.isArray(v)&&typeof v[0]=="string"&&(r==null||r[v[0]]===void 0))for(var h=0;h<v.length;h++)OA(v[h])&&(l+=nw(d)+":"+j0(d,v[h])+";");else{var y=jm(t,r,v);switch(d){case"animation":case"animationName":{l+=nw(d)+":"+y+";";break}default:Ro.NODE_ENV!=="production"&&d==="undefined"&&console.error(D5),l+=d+"{"+y+"}"}}}}return l}var kA=/label:\s*([^\s;\n{]+)\s*(;|$)/g,kk;Ro.NODE_ENV!=="production"&&(kk=/\/\*#\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(jA),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(jA),d+=v[h]);var y;Ro.NODE_ENV!=="production"&&(d=d.replace(kk,function(R){return y=R,""})),kA.lastIndex=0;for(var x="",C;(C=kA.exec(d))!==null;)x+="-"+C[1];var w=j5(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}},z5=function(r){return r()},Mk=v0.useInsertionEffect?v0.useInsertionEffect:!1,Lk=Mk||z5,MA=Mk||k.useLayoutEffect,Kd={},e1={}.hasOwnProperty,t1=k.createContext(typeof HTMLElement<"u"?T5({key:"css"}):null);Kd.NODE_ENV!=="production"&&(t1.displayName="EmotionCacheContext");t1.Provider;var n1=function(r){return k.forwardRef(function(i,l){var u=k.useContext(t1);return r(i,u,l)})},nx=k.createContext({});Kd.NODE_ENV!=="production"&&(nx.displayName="EmotionThemeContext");var LA=function(r){var i=r.split(".");return i[i.length-1]},$5=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 LA(i[1])},U5=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),H5=function(r){return r.replace(/\$/g,"-")},G5=function(r){if(r)for(var i=r.split(`
308
- `),l=0;l<i.length;l++){var u=$5(i[l]);if(u){if(U5.has(u))break;if(/^[A-Z]/.test(u))return H5(u)}}},Ww="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",W5=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)e1.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=G5(new Error().stack);d&&(l[Xw]=d)}return l},X5=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return JR(i,l,u),Lk(function(){return QR(i,l,u)}),null},Pk=n1(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=jk(r.registered,d,t.className):t.className!=null&&(v=t.className+" ");var h=Om(d,void 0,k.useContext(nx));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)e1.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(X5,{cache:r,serialized:h,isStringTag:typeof u=="string"}),k.createElement(u,x))});Kd.NODE_ENV!=="production"&&(Pk.displayName="EmotionCssPropInternal");var Y5=Pk,ef={},Z5={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||!e1.call(i,"css"))return k.createElement.apply(void 0,l);var u=l.length,d=new Array(u);d[0]=Y5,d[1]=W5(r,i);for(var v=2;v<u;v++)d[v]=l[v];return k.createElement.apply(null,d)},PA=!1,q5=n1(function(t,r){ef.NODE_ENV!=="production"&&!PA&&(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?"),PA=!0);var i=t.styles,l=Om([i],void 0,k.useContext(nx)),u=k.useRef();return MA(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]),MA(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"&&(q5.displayName="EmotionGlobal");function r1(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Om(r)}var J5=function(){var r=r1.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 K5(t,r,i){var l=[],u=jk(t,l,i);return l.length<2?i:u+r(l)}var eX=function(r){var i=r.cache,l=r.serializedArr;return Lk(function(){for(var u=0;u<l.length;u++)QR(i,l[u],!1)}),null},tX=n1(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),JR(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 K5(r.registered,u,Q5(C))},v={css:u,cx:d,theme:k.useContext(nx)},h=t.children(v);return i=!0,k.createElement(k.Fragment,null,k.createElement(eX,{cache:r,serializedArr:l}),h)});ef.NODE_ENV!=="production"&&(tX.displayName="EmotionClassNames");if(ef.NODE_ENV!=="production"){var FA=!0,nX=typeof jest<"u"||typeof vi<"u";if(FA&&!nX){var VA=typeof globalThis<"u"?globalThis:FA?window:global,BA="__EMOTION_REACT_"+Z5.version.split(".")[0]+"__";VA[BA]&&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."),VA[BA]=!0}}function rX(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}const aX=Math.min,iX=Math.max,O0=Math.round,Xb=Math.floor,D0=t=>({x:t,y:t});function oX(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Fk(t){return Bk(t)?(t.nodeName||"").toLowerCase():"#document"}function fs(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Vk(t){var r;return(r=(Bk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Bk(t){return t instanceof Node||t instanceof fs(t).Node}function Yw(t){return t instanceof Element||t instanceof fs(t).Element}function a1(t){return t instanceof HTMLElement||t instanceof fs(t).HTMLElement}function zA(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fs(t).ShadowRoot}function zk(t){const{overflow:r,overflowX:i,overflowY:l,display:u}=i1(t);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!["inline","contents"].includes(u)}function sX(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lX(t){return["html","body","#document"].includes(Fk(t))}function i1(t){return fs(t).getComputedStyle(t)}function uX(t){if(Fk(t)==="html")return t;const r=t.assignedSlot||t.parentNode||zA(t)&&t.host||Vk(t);return zA(r)?r.host:r}function $k(t){const r=uX(t);return lX(r)?t.ownerDocument?t.ownerDocument.body:t.body:a1(r)&&zk(r)?r:$k(r)}function k0(t,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const u=$k(t),d=u===((l=t.ownerDocument)==null?void 0:l.body),v=fs(u);return d?r.concat(v,v.visualViewport||[],zk(u)?u:[],v.frameElement&&i?k0(v.frameElement):[]):r.concat(u,k0(u,[],i))}function cX(t){const r=i1(t);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const u=a1(t),d=u?t.offsetWidth:i,v=u?t.offsetHeight:l,h=O0(i)!==d||O0(l)!==v;return h&&(i=d,l=v),{width:i,height:l,$:h}}function o1(t){return Yw(t)?t:t.contextElement}function rw(t){const r=o1(t);if(!a1(r))return D0(1);const i=r.getBoundingClientRect(),{width:l,height:u,$:d}=cX(r);let v=(d?O0(i.width):i.width)/l,h=(d?O0(i.height):i.height)/u;return(!v||!Number.isFinite(v))&&(v=1),(!h||!Number.isFinite(h))&&(h=1),{x:v,y:h}}const dX=D0(0);function fX(t){const r=fs(t);return!sX()||!r.visualViewport?dX:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function pX(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(t)?!1:r}function $A(t,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const u=t.getBoundingClientRect(),d=o1(t);let v=D0(1);r&&(l?Yw(l)&&(v=rw(l)):v=rw(t));const h=pX(d,i,l)?fX(d):D0(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=rw(N),I=N.getBoundingClientRect(),M=i1(N),P=I.left+(N.clientLeft+parseFloat(M.paddingLeft))*T.x,V=I.top+(N.clientTop+parseFloat(M.paddingTop))*T.y;y*=T.x,x*=T.y,C*=T.x,w*=T.y,y+=P,x+=V,N=fs(N).frameElement}}return oX({width:C,height:w,x:y,y:x})}function hX(t,r){let i=null,l;const u=Vk(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)),I=Xb(x),P={rootMargin:-j+"px "+-N+"px "+-T+"px "+-I+"px",threshold:iX(0,aX(1,y))||1};let V=!0;function U(F){const z=F[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,{...P,root:u.ownerDocument})}catch{i=new IntersectionObserver(U,P)}i.observe(t)}return v(!0),d}function vX(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=o1(t),C=u||d?[...x?k0(x):[],...k0(r)]:[];C.forEach(M=>{u&&M.addEventListener("scroll",i,{passive:!0}),d&&M.addEventListener("resize",i)});const w=x&&h?hX(x,i):null;let R=-1,j=null;v&&(j=new ResizeObserver(M=>{let[P]=M;P&&P.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?$A(t):null;y&&I();function I(){const M=$A(t);T&&(M.x!==T.x||M.y!==T.y||M.width!==T.width||M.height!==T.height)&&i(),T=M,N=requestAnimationFrame(I)}return i(),()=>{var M;C.forEach(P=>{u&&P.removeEventListener("scroll",i),d&&P.removeEventListener("resize",i)}),w==null||w(),(M=j)==null||M.disconnect(),j=null,y&&cancelAnimationFrame(N)}}var Zw=k.useLayoutEffect,qw={},mX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],M0=function(){};function gX(t,r){return r?r[0]==="-"?t+r:t+"__"+r:t}function yX(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(gX(t,v)));return d.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var UA=function(r){return NX(r)?r.filter(Boolean):Qd(r)==="object"&&r!==null?[r]:[]},Uk=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,mX);return bt({},i)},xr=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 bX(t,r,i){if(i){var l=i(t,r);if(typeof l=="string")return l}return t}function rx(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function xX(t){return rx(t)?window.innerHeight:t.clientHeight}function Hk(t){return rx(t)?window.pageYOffset:t.scrollTop}function L0(t,r){if(rx(t)){window.scrollTo(0,r);return}t.scrollTop=r}function CX(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 SX(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]:M0,u=Hk(t),d=r-u,v=10,h=0;function y(){h+=v;var x=SX(h,u,d,i);L0(t,x),h<i?window.requestAnimationFrame(y):l(t)}y()}function HA(t,r){var i=t.getBoundingClientRect(),l=r.getBoundingClientRect(),u=r.offsetHeight/3;l.bottom+u>i.bottom?L0(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+u,t.scrollHeight)):l.top-u<i.top&&L0(t,Math.max(r.offsetTop-u,0))}function EX(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 GA(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function wX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Gk=!1,RX={get passive(){return Gk=!0}},Zb=typeof window<"u"?window:{};Zb.addEventListener&&Zb.removeEventListener&&(Zb.addEventListener("p",M0,RX),Zb.removeEventListener("p",M0,!1));var _X=Gk;function TX(t){return t!=null}function NX(t){return Array.isArray(t)}function qb(t,r,i){return t?r:i}var IX=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},{})},AX=["children","innerProps"],jX=["children","innerProps"];function OX(t){var r=t.maxHeight,i=t.menuEl,l=t.minHeight,u=t.placement,d=t.shouldScroll,v=t.isFixedPosition,h=t.controlHeight,y=CX(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,I=i.offsetParent.getBoundingClientRect(),M=I.top,P=v?window.innerHeight:xX(y),V=Hk(y),U=parseInt(getComputedStyle(i).marginBottom,10),F=parseInt(getComputedStyle(i).marginTop,10),z=M-F,X=P-T,Y=z+V,pe=w-V-T,ie=j-P+V+U,ge=V+T-F,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&&L0(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-F:Y-F),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 DX(t){var r={bottom:"top",top:"bottom"};return t?r[t]:"bottom"}var Wk=function(r){return r==="auto"?"bottom":r},kX=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,DX(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})},Xk=k.createContext(null),MX=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(Xk)||{},C=x.setPortalPlacement,w=k.useRef(null),R=k.useState(u),j=na(R,2),N=j[0],T=j[1],I=k.useState(null),M=na(I,2),P=M[0],V=M[1],U=y.spacing.controlHeight;return Zw(function(){var F=w.current;if(F){var z=v==="fixed",X=h&&!z,Y=OX({maxHeight:u,menuEl:F,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:P||Wk(d),maxHeight:N})})},LX=function(r){var i=r.children,l=r.innerRef,u=r.innerProps;return wt("div",Tt({},xr(r,"menu",{menu:!0}),{ref:l},u),i)},PX=LX,FX=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})},VX=function(r){var i=r.children,l=r.innerProps,u=r.innerRef,d=r.isMulti;return wt("div",Tt({},xr(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:u},l),i)},Yk=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")})},BX=Yk,zX=Yk,$X=function(r){var i=r.children,l=i===void 0?"No options":i,u=r.innerProps,d=al(r,AX);return wt("div",Tt({},xr(bt(bt({},d),{},{children:l,innerProps:u}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),u),l)},UX=function(r){var i=r.children,l=i===void 0?"Loading...":i,u=r.innerProps,d=al(r,jX);return wt("div",Tt({},xr(bt(bt({},d),{},{children:l,innerProps:u}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),u),l)},HX=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}},GX=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(Wk(v)),w=na(C,2),R=w[0],j=w[1],N=k.useMemo(function(){return{setPortalPlacement:j}},[]),T=k.useState(null),I=na(T,2),M=I[0],P=I[1],V=k.useCallback(function(){if(u){var X=EX(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))&&P({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=vX(u,y.current,V,{elementResize:"ResizeObserver"in window}))},[u,V]);Zw(function(){U()},[U]);var F=k.useCallback(function(X){y.current=X,U()},[U]);if(!i&&h!=="fixed"||!M)return null;var z=wt("div",Tt({ref:F},xr(bt(bt({},r),{},{offset:M.offset,position:h,rect:M.rect}),"menuPortal",{"menu-portal":!0}),d),l);return wt(Xk.Provider,{value:N},i?aR.createPortal(z,i):z)},WX=function(r){var i=r.isDisabled,l=r.isRtl;return{label:"container",direction:l?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},XX=function(r){var i=r.children,l=r.innerProps,u=r.isDisabled,d=r.isRtl;return wt("div",Tt({},xr(r,"container",{"--is-disabled":u,"--is-rtl":d}),l),i)},YX=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")})},ZX=function(r){var i=r.children,l=r.innerProps,u=r.isMulti,d=r.hasValue;return wt("div",Tt({},xr(r,"valueContainer",{"value-container":!0,"value-container--is-multi":u,"value-container--has-value":d}),l),i)},qX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},JX=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"indicatorsContainer",{indicators:!0}),l),i)},WA,QX=["size"],KX=["innerProps","isRtl","size"];function eY(){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 tY=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:eY},Zk=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:tY},l))},s1=function(r){return wt(Zk,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"}))},qk=function(r){return wt(Zk,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"}))},Jk=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}})},nY=Jk,rY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),l),i||wt(qk,null))},aY=Jk,iY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),l),i||wt(s1,null))},oY=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})},sY=function(r){var i=r.innerProps;return wt("span",Tt({},i,xr(r,"indicatorSeparator",{"indicator-separator":!0})))},lY=J5(WA||(WA=rX([`
307
+ `+("css`"+y+"`"))}break}if(r==null)return i;var x=r[i];return x!==void 0?x:i}function B5(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 f in i){var v=i[f];if(typeof v!="object")r!=null&&r[v]!==void 0?l+=f+"{"+r[v]+"}":OA(v)&&(l+=nw(f)+":"+j0(f,v)+";");else{if(f==="NO_COMPONENT_SELECTOR"&&Ro.NODE_ENV!=="production")throw new Error(Dk);if(Array.isArray(v)&&typeof v[0]=="string"&&(r==null||r[v[0]]===void 0))for(var h=0;h<v.length;h++)OA(v[h])&&(l+=nw(f)+":"+j0(f,v[h])+";");else{var y=jm(t,r,v);switch(f){case"animation":case"animationName":{l+=nw(f)+":"+y+";";break}default:Ro.NODE_ENV!=="production"&&f==="undefined"&&console.error(D5),l+=f+"{"+y+"}"}}}}return l}var kA=/label:\s*([^\s;\n{]+)\s*(;|$)/g,kk;Ro.NODE_ENV!=="production"&&(kk=/\/\*#\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,f="";cs=void 0;var v=r[0];v==null||v.raw===void 0?(u=!1,f+=jm(l,i,v)):(Ro.NODE_ENV!=="production"&&v[0]===void 0&&console.error(jA),f+=v[0]);for(var h=1;h<r.length;h++)f+=jm(l,i,r[h]),u&&(Ro.NODE_ENV!=="production"&&v[h]===void 0&&console.error(jA),f+=v[h]);var y;Ro.NODE_ENV!=="production"&&(f=f.replace(kk,function(R){return y=R,""})),kA.lastIndex=0;for(var x="",C;(C=kA.exec(f))!==null;)x+="-"+C[1];var w=j5(f)+x;return Ro.NODE_ENV!=="production"?{name:w,styles:f,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:f,next:cs}},z5=function(r){return r()},Mk=v0.useInsertionEffect?v0.useInsertionEffect:!1,Lk=Mk||z5,MA=Mk||k.useLayoutEffect,Kd={},e1={}.hasOwnProperty,t1=k.createContext(typeof HTMLElement<"u"?T5({key:"css"}):null);Kd.NODE_ENV!=="production"&&(t1.displayName="EmotionCacheContext");t1.Provider;var n1=function(r){return k.forwardRef(function(i,l){var u=k.useContext(t1);return r(i,u,l)})},nx=k.createContext({});Kd.NODE_ENV!=="production"&&(nx.displayName="EmotionThemeContext");var LA=function(r){var i=r.split(".");return i[i.length-1]},$5=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 LA(i[1])},U5=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),H5=function(r){return r.replace(/\$/g,"-")},G5=function(r){if(r)for(var i=r.split(`
308
+ `),l=0;l<i.length;l++){var u=$5(i[l]);if(u){if(U5.has(u))break;if(/^[A-Z]/.test(u))return H5(u)}}},Ww="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",W5=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)e1.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 f=G5(new Error().stack);f&&(l[Xw]=f)}return l},X5=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return JR(i,l,u),Lk(function(){return QR(i,l,u)}),null},Pk=n1(function(t,r,i){var l=t.css;typeof l=="string"&&r.registered[l]!==void 0&&(l=r.registered[l]);var u=t[Ww],f=[l],v="";typeof t.className=="string"?v=jk(r.registered,f,t.className):t.className!=null&&(v=t.className+" ");var h=Om(f,void 0,k.useContext(nx));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)e1.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(X5,{cache:r,serialized:h,isStringTag:typeof u=="string"}),k.createElement(u,x))});Kd.NODE_ENV!=="production"&&(Pk.displayName="EmotionCssPropInternal");var Y5=Pk,ef={},Z5={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||!e1.call(i,"css"))return k.createElement.apply(void 0,l);var u=l.length,f=new Array(u);f[0]=Y5,f[1]=W5(r,i);for(var v=2;v<u;v++)f[v]=l[v];return k.createElement.apply(null,f)},PA=!1,q5=n1(function(t,r){ef.NODE_ENV!=="production"&&!PA&&(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?"),PA=!0);var i=t.styles,l=Om([i],void 0,k.useContext(nx)),u=k.useRef();return MA(function(){var f=r.key+"-global",v=new r.sheet.constructor({key:f,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),h=!1,y=document.querySelector('style[data-emotion="'+f+" "+l.name+'"]');return r.sheet.tags.length&&(v.before=r.sheet.tags[0]),y!==null&&(h=!0,y.setAttribute("data-emotion",f),v.hydrate([y])),u.current=[v,h],function(){v.flush()}},[r]),MA(function(){var f=u.current,v=f[0],h=f[1];if(h){f[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"&&(q5.displayName="EmotionGlobal");function r1(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Om(r)}var J5=function(){var r=r1.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 f=r[l];if(f!=null){var v=void 0;switch(typeof f){case"boolean":break;case"object":{if(Array.isArray(f))v=t(f);else{ef.NODE_ENV!=="production"&&f.styles!==void 0&&f.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 f)f[h]&&h&&(v&&(v+=" "),v+=h)}break}default:v=f}v&&(u&&(u+=" "),u+=v)}}return u};function K5(t,r,i){var l=[],u=jk(t,l,i);return l.length<2?i:u+r(l)}var eX=function(r){var i=r.cache,l=r.serializedArr;return Lk(function(){for(var u=0;u<l.length;u++)QR(i,l[u],!1)}),null},tX=n1(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),JR(r,R,!1),r.key+"-"+R.name},f=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 K5(r.registered,u,Q5(C))},v={css:u,cx:f,theme:k.useContext(nx)},h=t.children(v);return i=!0,k.createElement(k.Fragment,null,k.createElement(eX,{cache:r,serializedArr:l}),h)});ef.NODE_ENV!=="production"&&(tX.displayName="EmotionClassNames");if(ef.NODE_ENV!=="production"){var FA=!0,nX=typeof jest<"u"||typeof vi<"u";if(FA&&!nX){var VA=typeof globalThis<"u"?globalThis:FA?window:global,BA="__EMOTION_REACT_"+Z5.version.split(".")[0]+"__";VA[BA]&&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."),VA[BA]=!0}}function rX(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}const aX=Math.min,iX=Math.max,O0=Math.round,Xb=Math.floor,D0=t=>({x:t,y:t});function oX(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Fk(t){return Bk(t)?(t.nodeName||"").toLowerCase():"#document"}function fs(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Vk(t){var r;return(r=(Bk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Bk(t){return t instanceof Node||t instanceof fs(t).Node}function Yw(t){return t instanceof Element||t instanceof fs(t).Element}function a1(t){return t instanceof HTMLElement||t instanceof fs(t).HTMLElement}function zA(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof fs(t).ShadowRoot}function zk(t){const{overflow:r,overflowX:i,overflowY:l,display:u}=i1(t);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!["inline","contents"].includes(u)}function sX(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lX(t){return["html","body","#document"].includes(Fk(t))}function i1(t){return fs(t).getComputedStyle(t)}function uX(t){if(Fk(t)==="html")return t;const r=t.assignedSlot||t.parentNode||zA(t)&&t.host||Vk(t);return zA(r)?r.host:r}function $k(t){const r=uX(t);return lX(r)?t.ownerDocument?t.ownerDocument.body:t.body:a1(r)&&zk(r)?r:$k(r)}function k0(t,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const u=$k(t),f=u===((l=t.ownerDocument)==null?void 0:l.body),v=fs(u);return f?r.concat(v,v.visualViewport||[],zk(u)?u:[],v.frameElement&&i?k0(v.frameElement):[]):r.concat(u,k0(u,[],i))}function cX(t){const r=i1(t);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const u=a1(t),f=u?t.offsetWidth:i,v=u?t.offsetHeight:l,h=O0(i)!==f||O0(l)!==v;return h&&(i=f,l=v),{width:i,height:l,$:h}}function o1(t){return Yw(t)?t:t.contextElement}function rw(t){const r=o1(t);if(!a1(r))return D0(1);const i=r.getBoundingClientRect(),{width:l,height:u,$:f}=cX(r);let v=(f?O0(i.width):i.width)/l,h=(f?O0(i.height):i.height)/u;return(!v||!Number.isFinite(v))&&(v=1),(!h||!Number.isFinite(h))&&(h=1),{x:v,y:h}}const dX=D0(0);function fX(t){const r=fs(t);return!sX()||!r.visualViewport?dX:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function pX(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(t)?!1:r}function $A(t,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const u=t.getBoundingClientRect(),f=o1(t);let v=D0(1);r&&(l?Yw(l)&&(v=rw(l)):v=rw(t));const h=pX(f,i,l)?fX(f):D0(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(f){const R=fs(f),j=l&&Yw(l)?fs(l):l;let N=R.frameElement;for(;N&&l&&j!==R;){const T=rw(N),I=N.getBoundingClientRect(),M=i1(N),P=I.left+(N.clientLeft+parseFloat(M.paddingLeft))*T.x,V=I.top+(N.clientTop+parseFloat(M.paddingTop))*T.y;y*=T.x,x*=T.y,C*=T.x,w*=T.y,y+=P,x+=V,N=fs(N).frameElement}}return oX({width:C,height:w,x:y,y:x})}function hX(t,r){let i=null,l;const u=Vk(t);function f(){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),f();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)),I=Xb(x),P={rootMargin:-j+"px "+-N+"px "+-T+"px "+-I+"px",threshold:iX(0,aX(1,y))||1};let V=!0;function U(F){const z=F[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,{...P,root:u.ownerDocument})}catch{i=new IntersectionObserver(U,P)}i.observe(t)}return v(!0),f}function vX(t,r,i,l){l===void 0&&(l={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:v=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=l,x=o1(t),C=u||f?[...x?k0(x):[],...k0(r)]:[];C.forEach(M=>{u&&M.addEventListener("scroll",i,{passive:!0}),f&&M.addEventListener("resize",i)});const w=x&&h?hX(x,i):null;let R=-1,j=null;v&&(j=new ResizeObserver(M=>{let[P]=M;P&&P.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?$A(t):null;y&&I();function I(){const M=$A(t);T&&(M.x!==T.x||M.y!==T.y||M.width!==T.width||M.height!==T.height)&&i(),T=M,N=requestAnimationFrame(I)}return i(),()=>{var M;C.forEach(P=>{u&&P.removeEventListener("scroll",i),f&&P.removeEventListener("resize",i)}),w==null||w(),(M=j)==null||M.disconnect(),j=null,y&&cancelAnimationFrame(N)}}var Zw=k.useLayoutEffect,qw={},mX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],M0=function(){};function gX(t,r){return r?r[0]==="-"?t+r:t+"__"+r:t}function yX(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 f=[].concat(l);if(r&&t)for(var v in r)r.hasOwnProperty(v)&&r[v]&&f.push("".concat(gX(t,v)));return f.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var UA=function(r){return NX(r)?r.filter(Boolean):Qd(r)==="object"&&r!==null?[r]:[]},Uk=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,mX);return bt({},i)},xr=function(r,i,l){var u=r.cx,f=r.getStyles,v=r.getClassNames,h=r.className;return{css:f(i,r),className:u(l??{},v(i,r),h)}};function bX(t,r,i){if(i){var l=i(t,r);if(typeof l=="string")return l}return t}function rx(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function xX(t){return rx(t)?window.innerHeight:t.clientHeight}function Hk(t){return rx(t)?window.pageYOffset:t.scrollTop}function L0(t,r){if(rx(t)){window.scrollTo(0,r);return}t.scrollTop=r}function CX(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 SX(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]:M0,u=Hk(t),f=r-u,v=10,h=0;function y(){h+=v;var x=SX(h,u,f,i);L0(t,x),h<i?window.requestAnimationFrame(y):l(t)}y()}function HA(t,r){var i=t.getBoundingClientRect(),l=r.getBoundingClientRect(),u=r.offsetHeight/3;l.bottom+u>i.bottom?L0(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+u,t.scrollHeight)):l.top-u<i.top&&L0(t,Math.max(r.offsetTop-u,0))}function EX(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 GA(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function wX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Gk=!1,RX={get passive(){return Gk=!0}},Zb=typeof window<"u"?window:{};Zb.addEventListener&&Zb.removeEventListener&&(Zb.addEventListener("p",M0,RX),Zb.removeEventListener("p",M0,!1));var _X=Gk;function TX(t){return t!=null}function NX(t){return Array.isArray(t)}function qb(t,r,i){return t?r:i}var IX=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 f=Object.entries(r).filter(function(v){var h=na(v,1),y=h[0];return!l.includes(y)});return f.reduce(function(v,h){var y=na(h,2),x=y[0],C=y[1];return v[x]=C,v},{})},AX=["children","innerProps"],jX=["children","innerProps"];function OX(t){var r=t.maxHeight,i=t.menuEl,l=t.minHeight,u=t.placement,f=t.shouldScroll,v=t.isFixedPosition,h=t.controlHeight,y=CX(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,I=i.offsetParent.getBoundingClientRect(),M=I.top,P=v?window.innerHeight:xX(y),V=Hk(y),U=parseInt(getComputedStyle(i).marginBottom,10),F=parseInt(getComputedStyle(i).marginTop,10),z=M-F,X=P-T,Y=z+V,pe=w-V-T,ie=j-P+V+U,ge=V+T-F,ae=160;switch(u){case"auto":case"bottom":if(X>=N)return{placement:"bottom",maxHeight:r};if(pe>=N&&!v)return f&&Yb(y,ie,ae),{placement:"bottom",maxHeight:r};if(!v&&pe>=l||v&&X>=l){f&&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 f&&L0(y,ie),{placement:"bottom",maxHeight:r};break;case"top":if(z>=N)return{placement:"top",maxHeight:r};if(Y>=N&&!v)return f&&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-F:Y-F),f&&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 DX(t){var r={bottom:"top",top:"bottom"};return t?r[t]:"bottom"}var Wk=function(r){return r==="auto"?"bottom":r},kX=function(r,i){var l,u=r.placement,f=r.theme,v=f.borderRadius,h=f.spacing,y=f.colors;return bt((l={label:"menu"},zp(l,DX(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})},Xk=k.createContext(null),MX=function(r){var i=r.children,l=r.minMenuHeight,u=r.maxMenuHeight,f=r.menuPlacement,v=r.menuPosition,h=r.menuShouldScrollIntoView,y=r.theme,x=k.useContext(Xk)||{},C=x.setPortalPlacement,w=k.useRef(null),R=k.useState(u),j=na(R,2),N=j[0],T=j[1],I=k.useState(null),M=na(I,2),P=M[0],V=M[1],U=y.spacing.controlHeight;return Zw(function(){var F=w.current;if(F){var z=v==="fixed",X=h&&!z,Y=OX({maxHeight:u,menuEl:F,minHeight:l,placement:f,shouldScroll:X,isFixedPosition:z,controlHeight:U});T(Y.maxHeight),V(Y.placement),C==null||C(Y.placement)}},[u,f,v,h,l,C,U]),i({ref:w,placerProps:bt(bt({},r),{},{placement:P||Wk(f),maxHeight:N})})},LX=function(r){var i=r.children,l=r.innerRef,u=r.innerProps;return wt("div",Tt({},xr(r,"menu",{menu:!0}),{ref:l},u),i)},PX=LX,FX=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})},VX=function(r){var i=r.children,l=r.innerProps,u=r.innerRef,f=r.isMulti;return wt("div",Tt({},xr(r,"menuList",{"menu-list":!0,"menu-list--is-multi":f}),{ref:u},l),i)},Yk=function(r,i){var l=r.theme,u=l.spacing.baseUnit,f=l.colors;return bt({textAlign:"center"},i?{}:{color:f.neutral40,padding:"".concat(u*2,"px ").concat(u*3,"px")})},BX=Yk,zX=Yk,$X=function(r){var i=r.children,l=i===void 0?"No options":i,u=r.innerProps,f=al(r,AX);return wt("div",Tt({},xr(bt(bt({},f),{},{children:l,innerProps:u}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),u),l)},UX=function(r){var i=r.children,l=i===void 0?"Loading...":i,u=r.innerProps,f=al(r,jX);return wt("div",Tt({},xr(bt(bt({},f),{},{children:l,innerProps:u}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),u),l)},HX=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}},GX=function(r){var i=r.appendTo,l=r.children,u=r.controlElement,f=r.innerProps,v=r.menuPlacement,h=r.menuPosition,y=k.useRef(null),x=k.useRef(null),C=k.useState(Wk(v)),w=na(C,2),R=w[0],j=w[1],N=k.useMemo(function(){return{setPortalPlacement:j}},[]),T=k.useState(null),I=na(T,2),M=I[0],P=I[1],V=k.useCallback(function(){if(u){var X=EX(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))&&P({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=vX(u,y.current,V,{elementResize:"ResizeObserver"in window}))},[u,V]);Zw(function(){U()},[U]);var F=k.useCallback(function(X){y.current=X,U()},[U]);if(!i&&h!=="fixed"||!M)return null;var z=wt("div",Tt({ref:F},xr(bt(bt({},r),{},{offset:M.offset,position:h,rect:M.rect}),"menuPortal",{"menu-portal":!0}),f),l);return wt(Xk.Provider,{value:N},i?aR.createPortal(z,i):z)},WX=function(r){var i=r.isDisabled,l=r.isRtl;return{label:"container",direction:l?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},XX=function(r){var i=r.children,l=r.innerProps,u=r.isDisabled,f=r.isRtl;return wt("div",Tt({},xr(r,"container",{"--is-disabled":u,"--is-rtl":f}),l),i)},YX=function(r,i){var l=r.theme.spacing,u=r.isMulti,f=r.hasValue,v=r.selectProps.controlShouldRenderValue;return bt({alignItems:"center",display:u&&f&&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")})},ZX=function(r){var i=r.children,l=r.innerProps,u=r.isMulti,f=r.hasValue;return wt("div",Tt({},xr(r,"valueContainer",{"value-container":!0,"value-container--is-multi":u,"value-container--has-value":f}),l),i)},qX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},JX=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"indicatorsContainer",{indicators:!0}),l),i)},WA,QX=["size"],KX=["innerProps","isRtl","size"];function eY(){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 tY=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:eY},Zk=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:tY},l))},s1=function(r){return wt(Zk,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"}))},qk=function(r){return wt(Zk,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"}))},Jk=function(r,i){var l=r.isFocused,u=r.theme,f=u.spacing.baseUnit,v=u.colors;return bt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:l?v.neutral60:v.neutral20,padding:f*2,":hover":{color:l?v.neutral80:v.neutral40}})},nY=Jk,rY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),l),i||wt(qk,null))},aY=Jk,iY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),l),i||wt(s1,null))},oY=function(r,i){var l=r.isDisabled,u=r.theme,f=u.spacing.baseUnit,v=u.colors;return bt({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:l?v.neutral10:v.neutral20,marginBottom:f*2,marginTop:f*2})},sY=function(r){var i=r.innerProps;return wt("span",Tt({},i,xr(r,"indicatorSeparator",{"indicator-separator":!0})))},lY=J5(WA||(WA=rX([`
309
309
  0%, 80%, 100% { opacity: 0; }
310
310
  40% { opacity: 1; }
311
- `]))),uY=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})},aw=function(r){var i=r.delay,l=r.offset;return wt("span",{css:r1({animation:"".concat(lY," 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 */")})},cY=function(r){var i=r.innerProps,l=r.isRtl,u=r.size,d=u===void 0?4:u,v=al(r,KX);return wt("div",Tt({},xr(bt(bt({},v),{},{innerProps:i,isRtl:l,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),wt(aw,{delay:0,offset:l}),wt(aw,{delay:160,offset:!0}),wt(aw,{delay:320,offset:!l}))},dY=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}})},fY=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},xr(r,"control",{control:!0,"control--is-disabled":l,"control--is-focused":u,"control--menu-is-open":h}),v,{"aria-disabled":l||void 0}),i)},pY=fY,hY=["data"],vY=function(r,i){var l=r.theme.spacing;return i?{}:{paddingBottom:l.baseUnit*2,paddingTop:l.baseUnit*2}},mY=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({},xr(r,"group",{group:!0}),y),wt(v,Tt({},h,{selectProps:w,theme:C,getStyles:u,getClassNames:d,cx:l}),x),wt("div",null,i))},gY=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"})},yY=function(r){var i=Uk(r);i.data;var l=al(i,hY);return wt("div",Tt({},xr(r,"groupHeading",{"group-heading":!0}),l))},bY=mY,xY=["innerRef","isDisabled","isHidden","inputClassName"],CY=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)":""},SY),i?{}:{margin:v.baseUnit/2,paddingBottom:v.baseUnit/2,paddingTop:v.baseUnit/2,color:h.neutral80})},Qk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},SY={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"},Qk)},EY=function(r){return bt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Qk)},wY=function(r){var i=r.cx,l=r.value,u=Uk(r),d=u.innerRef,v=u.isDisabled,h=u.isHidden,y=u.inputClassName,x=al(u,xY);return wt("div",Tt({},xr(r,"input",{"input-container":!0}),{"data-value":l||""}),wt("input",Tt({className:i({input:!0},y),ref:d,style:EY(h),disabled:v},x)))},RY=wY,_Y=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})},TY=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})},NY=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}})},Kk=function(r){var i=r.children,l=r.innerProps;return wt("div",l,i)},IY=Kk,AY=Kk;function jY(t){var r=t.children,i=t.innerProps;return wt("div",Tt({role:"button"},i),r||wt(s1,{size:14}))}var OY=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({},xr(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":v})),d),selectProps:y},wt(C,{data:u,innerProps:bt({},xr(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),wt(w,{data:u,innerProps:bt(bt({},xr(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},h),selectProps:y}))},DY=OY,kY=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}})},MY=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({},xr(r,"option",{option:!0,"option--is-disabled":l,"option--is-focused":u,"option--is-selected":d}),{ref:v,"aria-disabled":l},h),i)},LY=MY,PY=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})},FY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"placeholder",{placeholder:!0}),l),i)},VY=FY,BY=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})},zY=function(r){var i=r.children,l=r.isDisabled,u=r.innerProps;return wt("div",Tt({},xr(r,"singleValue",{"single-value":!0,"single-value--is-disabled":l}),u),i)},$Y=zY,UY={ClearIndicator:iY,Control:pY,DropdownIndicator:rY,DownChevron:qk,CrossIcon:s1,Group:bY,GroupHeading:yY,IndicatorsContainer:JX,IndicatorSeparator:sY,Input:RY,LoadingIndicator:cY,Menu:PX,MenuList:VX,MenuPortal:GX,LoadingMessage:UX,NoOptionsMessage:$X,MultiValue:DY,MultiValueContainer:IY,MultiValueLabel:AY,MultiValueRemove:jY,Option:LY,Placeholder:VY,SelectContainer:XX,SingleValue:$Y,ValueContainer:ZX},HY=function(r){return bt(bt({},UY),r.components)},XA=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function GY(t,r){return!!(t===r||XA(t)&&XA(r))}function WY(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!GY(t[i],r[i]))return!1;return!0}function XY(t,r){r===void 0&&(r=WY);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 YY(){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 ZY=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:YY},qY=function(r){return wt("span",Tt({css:ZY},r))},YA=qY,JY={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,N=y.isMulti,T=y.isOptionDisabled,I=y.isSearchable,M=y.menuIsOpen,P=y.options,V=y.screenReaderStatus,U=y.tabSelectsValue,F=y.isLoading,z=y["aria-label"],X=y["aria-live"],Y=k.useMemo(function(){return bt(bt({},JY),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&&P.length&&!F&&Y.onFilter){var Ae=V({count:d.length});xe=Y.onFilter({inputValue:j,resultsMessage:Ae})}return xe},[d,j,M,Y,P,V,F]),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:I,tabSelectsValue:U,isInitialFocus:ae})}return xe},[z,l,u,N,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(YA,{id:x},ae&&be),wt(YA,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},v&&!ae&&be))},KY=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źẑżžẓẕƶȥɀⱬꝣ"}],eZ=new RegExp("["+Jw.map(function(t){return t.letters}).join("")+"]","g"),eM={};for(var iw=0;iw<Jw.length;iw++)for(var ow=Jw[iw],sw=0;sw<ow.letters.length;sw++)eM[ow.letters[sw]]=ow.base;var tM=function(r){return r.replace(eZ,function(i){return eM[i]})},tZ=XY(tM),ZA=function(r){return r.replace(/^\s+|\s+$/g,"")},nZ=function(r){return"".concat(r.label," ").concat(r.value)},rZ=function(r){return function(i,l){if(i.data.__isNew__)return!0;var u=bt({ignoreCase:!0,ignoreAccents:!0,stringify:nZ,trim:!0,matchFrom:"any"},r),d=u.ignoreCase,v=u.ignoreAccents,h=u.stringify,y=u.trim,x=u.matchFrom,C=y?ZA(l):l,w=y?ZA(h(i)):h(i);return d&&(C=C.toLowerCase(),w=w.toLowerCase()),v&&(C=tZ(C),w=tM(w)),x==="start"?w.substr(0,C.length)===C:w.indexOf(C)>-1}},aZ=["innerRef"];function iZ(t){var r=t.innerRef,i=al(t,aZ),l=IX(i,"onExited","in","enter","exit","appear");return wt("input",Tt({ref:r},l,{css:r1({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 oZ=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function sZ(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 P=x.current,V=P.scrollTop,U=P.scrollHeight,F=P.clientHeight,z=x.current,X=M>0,Y=U-F-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&&oZ(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]),N=k.useCallback(function(I){if(I){var M=_X?{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 N(I),function(){T(I)}}},[r,N,T]),function(I){x.current=I}}var qA=["boxSizing","height","overflow","paddingRight","position"],JA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function QA(t){t.preventDefault()}function KA(t){t.stopPropagation()}function ej(){var t=this.scrollTop,r=this.scrollHeight,i=t+this.offsetHeight;t===0?this.scrollTop=1:i===r&&(this.scrollTop=t-1)}function tj(){return"ontouchstart"in window||navigator.maxTouchPoints}var nj=!!(typeof window<"u"&&window.document&&window.document.createElement),hm=0,Bp={capture:!1,passive:!1};function lZ(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(nj){var x=document.body,C=x&&x.style;if(l&&qA.forEach(function(N){var T=C&&C[N];u.current[N]=T}),l&&hm<1){var w=parseInt(u.current.paddingRight,10)||0,R=document.body?document.body.clientWidth:0,j=window.innerWidth-R+w||0;Object.keys(JA).forEach(function(N){var T=JA[N];C&&(C[N]=T)}),C&&(C.paddingRight="".concat(j,"px"))}x&&tj()&&(x.addEventListener("touchmove",QA,Bp),y&&(y.addEventListener("touchstart",ej,Bp),y.addEventListener("touchmove",KA,Bp))),hm+=1}},[l]),h=k.useCallback(function(y){if(nj){var x=document.body,C=x&&x.style;hm=Math.max(hm-1,0),l&&hm<1&&qA.forEach(function(w){var R=u.current[w];C&&(C[w]=R)}),x&&tj()&&(x.removeEventListener("touchmove",QA,Bp),y&&(y.removeEventListener("touchstart",ej,Bp),y.removeEventListener("touchmove",KA,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 uZ(){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 cZ=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},dZ=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:uZ};function fZ(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=sZ({isEnabled:u,onBottomArrive:d,onBottomLeave:v,onTopArrive:h,onTopLeave:y}),C=lZ({isEnabled:i}),w=function(j){x(j),C(j)};return wt(k.Fragment,null,i&&wt("div",{onClick:cZ,css:dZ}),r(w))}function pZ(){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 hZ=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:pZ},vZ=function(r){var i=r.name,l=r.onFocus;return wt("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:l,css:hZ,value:"",onChange:function(){}})},mZ=vZ;function l1(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 gZ(){return l1(/^iPhone/i)}function nM(){return l1(/^Mac/i)}function yZ(){return l1(/^iPad/i)||nM()&&navigator.maxTouchPoints>1}function bZ(){return gZ()||yZ()}function xZ(){return nM()||bZ()}var CZ=function(r){return r.label},SZ=function(r){return r.label},EZ=function(r){return r.value},wZ=function(r){return!!r.isDisabled},RZ={clearIndicator:aY,container:WX,control:dY,dropdownIndicator:nY,group:vY,groupHeading:gY,indicatorsContainer:qX,indicatorSeparator:oY,input:CY,loadingIndicator:uY,loadingMessage:zX,menu:kX,menuList:FX,menuPortal:HX,multiValue:_Y,multiValueLabel:TY,multiValueRemove:NY,noOptionsMessage:BX,option:kY,placeholder:PY,singleValue:BY,valueContainer:YX},_Z={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%)"},TZ=4,rM=4,NZ=38,IZ=rM*2,AZ={baseUnit:rM,controlHeight:NZ,menuGutter:IZ},lw={borderRadius:TZ,colors:_Z,spacing:AZ},jZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:GA(),captureMenuScroll:!GA(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:rZ(),formatGroupLabel:CZ,getOptionLabel:SZ,getOptionValue:EZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:wZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!wX(),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 rj(t,r,i,l){var u=oM(t,r,i),d=sM(t,r,i),v=iM(t,r),h=P0(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 rj(t,v,r,h)}).filter(function(v){return ij(t,v)});return u.length>0?{type:"group",data:i,options:u,index:l}:void 0}var d=rj(t,i,r,l);return ij(t,d)?d:void 0}).filter(TX)}function aM(t){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,WR(i.options.map(function(l){return l.data}))):r.push(i.data),r},[])}function aj(t,r){return t.reduce(function(i,l){return l.type==="group"?i.push.apply(i,WR(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 OZ(t,r){return aM(u0(t,r))}function ij(t,r){var i=t.inputValue,l=i===void 0?"":i,u=r.data,d=r.isSelected,v=r.label,h=r.value;return(!uM(t)||!d)&&lM(t,{label:v,value:h,data:u},l)}function DZ(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 kZ(t,r){var i=t.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var uw=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},iM=function(r,i){return r.getOptionLabel(i)},P0=function(r,i){return r.getOptionValue(i)};function oM(t,r,i){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(r,i):!1}function sM(t,r,i){if(i.indexOf(r)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(r,i);var l=P0(t,r);return i.some(function(u){return P0(t,u)===l})}function lM(t,r,i){return t.filterOption?t.filterOption(r,i):!0}var uM=function(r){var i=r.hideSelectedOptions,l=r.isMulti;return i===void 0?l:i},MZ=1,u1=function(t){BW(i,t);var r=UW(i);function i(l){var u;if(FW(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=xZ(),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 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(WR(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 uw(u.state.focusableOptionsWithIds,y)},u.getFocusableOptionsWithIds=function(){return aj(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 yX.apply(void 0,[u.props.classNamePrefix].concat(x))},u.getOptionLabel=function(y){return iM(u.props,y)},u.getOptionValue=function(y){return P0(u.props,y)},u.getStyles=function(y,x){var C=u.props.unstyled,w=RZ[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 HY(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 aM(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&&rx(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 uM(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,I=x.menuIsOpen,M=x.onKeyDown,P=x.tabSelectsValue,V=x.openMenuOnFocus,U=u.state,F=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||!I||!P||!F||V&&u.isOptionSelected(F,X))return;u.selectOption(F);break;case"Enter":if(y.keyCode===229)break;if(I){if(!F||u.isComposing)return;u.selectOption(F);break}return;case"Escape":I?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:j}),u.onMenuClose()):N&&R&&u.clearValue();break;case" ":if(j)return;if(!I){u.openMenu("first");break}if(!F)return;u.selectOption(F);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||++MZ),u.state.selectValue=UA(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=uw(d,v[h])}return u}return VW(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&&HA(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&&(HA(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(lw):bt(bt({},lw),this.props.theme):lw}},{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 oM(this.props,u,d)}},{key:"isOptionSelected",value:function(u,d){return sM(this.props,u,d)}},{key:"filterOption",value:function(u,d){return lM(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,I=T.inputIsHidden,M=T.ariaSelection,P=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({},P,{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(iZ,Tt({id:V,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:M0,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,I=j.isMulti,M=j.inputValue,P=j.placeholder,V=this.state,U=V.selectValue,F=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")}}),P);if(I)return U.map(function(Y,pe){var ie=Y===F,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,I=this.props,M=I.captureMenuScroll,P=I.inputValue,V=I.isLoading,U=I.loadingMessage,F=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,Be=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:Be,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:P});if(ne===null)return null;Le=k.createElement(w,N,ne)}else{var Oe=Re({inputValue:P});if(Oe===null)return null;Le=k.createElement(R,N,Oe)}var G={minMenuHeight:F,maxMenuHeight:z,menuPlacement:Y,menuPosition:pe,menuShouldScrollIntoView:ae},Z=k.createElement(MX,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(fZ,{captureEnabled:M,onTopArrive:be,onBottomArrive:xe,lockEnabled:ge},function(ue){return k.createElement(x,Tt({},N,{innerRef:function(Be){u.getMenuListRef(Be),ue(Be)},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(mZ,{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 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(KY,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,I=u.inputValue,M=u.isMulti,P=UA(N),V={};if(v&&(N!==v.value||j!==v.options||T!==v.menuIsOpen||I!==v.inputValue)){var U=T?OZ(u,P):[],F=T?aj(u0(u,P),"".concat(R,"-option")):[],z=h?DZ(d,P):null,X=kZ(d,U),Y=uw(F,X);V={selectValue:P,focusedOption:X,focusedOptionId:Y,focusableOptionsWithIds:F,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,P,P[0]||null),options:P,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);u1.defaultProps=jZ;var LZ=k.forwardRef(function(t,r){var i=xk(t);return k.createElement(u1,Tt({ref:r},i))}),c1=LZ;const PZ=`, ${new Date().getFullYear()}`;function oj({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(PZ,"")}`:"";i||(y+=C),x+=C}else i||(y+=" for you"),x+=u.institutionType?` for researchers from ${u.institutionType}`:" for you";return x+=`: ${aO(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,I]=k.useState(!1);k.useEffect(()=>{setTimeout(()=>I(!0),100)},[]);const M=()=>{R&&localStorage.setItem(d,"true")},P=m.jsxs(Q0,{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(gk,{target:x.current,placement:y,show:j&&w&&T,children:P}):m.jsx(GR,{placement:y,onToggle:V=>{M(),N(V)},overlay:P,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 FZ({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 VZ="_items_c2dbg_1",BZ="_item_c2dbg_1",zZ="_details_c2dbg_14",$Z="_text_c2dbg_20",UZ="_number_c2dbg_35",HZ="_outer_c2dbg_50",GZ="_inner_c2dbg_61",Jl={items:VZ,item:BZ,details:zZ,text:$Z,number:UZ,outer:HZ,inner:GZ},vm=(t,r)=>`${Math.cos(2*Math.PI*t)*r} ${Math.sin(2*Math.PI*t)*r}`;function WZ({requestId:t,grantNumber:r,creditColorClass:i="gray-300",colorClasses:l=ww}){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+=Rw(R));const y=[],x=[];let C=-.25;const w=[...h,v].map((R,j)=>{if(!R)return null;const N=j+1,I=Rw(R)/d,M=R.requested-R.used,P=Math.max(0,M),V=R.isCredit?d/R.exchangeRates.base.unitCost:R.requested,U=V==0?0:100*P/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 ${vm(X,100)}`,`A 100 100 0 ${ie} 1 ${vm(pe,100)}`,`L ${vm(pe,50)}`,`A 50 50 0 ${ie} 0 ${vm(X,50)}`].join(" "),[ae,Re]=vm(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(P,{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 sj=t=>t;function XZ({classes:t,clean:r=sj,format:i=sj,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 YZ({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,I="Renewal"in i.allowedActions,M="Supplement"in i.allowedActions,P=i.exchangeStatus==y.pending,V=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,F=i.exchangeActionId!==null,z=i.resources,X=i.resourcesReason,Y={};for(let ue of z)Y[ue.resourceId]=ue;const pe=()=>{iO(i)>=.75?x():C()},ie=[];for(let ue of z){let de=[];if(ue.requested>0){for(let Be of ue.requires||[]){let Ge=Y[Be];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"," ",rO(de.map(Be=>m.jsx(Xd,{resource:Be,userGuide:!1},Be.resourceId)),"or"),"."]},ue.resourceId))}}const ge=ie.length>0;let ae;V?ae=m.jsx(yr,{color:"info",children:"Your exchange request has been submitted."}):F?ae=m.jsx(yr,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?ae=m.jsx(yr,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!R.isManager?ae=m.jsxs(yr,{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(yr,{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&&!F?i.allowedActions.Exchange.resources.filter(ue=>!Ae.includes(ue.resourceId)).map(ue=>{Le[ue.resourceId]=ue;const de=H0(ue.name),Be=de.short?`${de.short} (${de.full.replace(/ \([^(]+\)/,"")})`:de.full;return{value:ue.resourceId,label:Be}}):[],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&&!F&&(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 Be=de.allocated-de.used,Ge=$p(Number(ue.replace(/[^0-9-.]/g,"")),de.decimalPlaces),tt=Math.min(0,Be);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(Qp,{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:aO(ue,de.exchangeRates.base.unitCost,G.name),children:ue},"base"),m.jsx(oj,{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(N0,{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&&!F&&Oe.includes(ue.resourceId)?Gd.input:"",format:(ue,de)=>{const Be=!V&&!F&&Oe.includes(de.resourceId);return de.isBoolean?m.jsx("input",{className:"form-check-input",type:"checkbox",checked:ue==1,disabled:!Be,onChange:Ge=>v(de.resourceId,Ge.target.checked?1:0)}):Be?m.jsx(XZ,{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&&!F?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(WZ,{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(FZ,{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(c1,{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(oj,{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&&!F?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:P||!xe&&!Re&&!be,onClick:d,children:"Reset Form"}),m.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:P||!xe||!Re||ge,onClick:w,children:P?"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 ZZ({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)))},I=V=>{const U=parseInt(V.target.value,10),F=V.target.checked?[...w,U]:w.filter(z=>z!=U);u(C,v,F)},M=V=>{const U=parseInt(V.target.value);u(C,v,isNaN(U)?[]:[U])};let P;if(["calendar","integer_only","text"].includes(y)){const V={calendar:"date",integer_only:"number",text:"text"}[y];P=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")P=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";P=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 P=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}),P]})}function qZ({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(ZZ,{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 cM({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 JZ({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(nh,{});else if(l.usageDetailStatus==ta.error)d=m.jsx(yr,{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}=H0(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 I=[{key:"name",name:"Name",format:(M,{lastName:P,firstName:V,portalUsername:U})=>{const F=T[U];return F?m.jsx(cM,{user:F}):`${P}, ${V}`}},{key:"portalUsername",name:"Resource Username",format:M=>{const P=T[M],V=P?P.resourceUsernames[j.resourceId]:null;return V||m.jsx(m.Fragment,{children:"—"})}},{key:"role",name:"Role",format:M=>oO[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:I}):m.jsx(yr,{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 KZ(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),I=na(T,2),M=I[0],P=I[1],V=k.useState(typeof R<"u"?R:""),U=na(V,2),F=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),Be=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!==Be&&(P(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(F,function(ln){N.current&&(P(ln||[]),ie(!!j.current))})},[]);var en=k.useCallback(function(ln,In){var Vt=bX(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?[]:F&&Re?Le:M||[];return bt(bt({},w),{},{options:sn,isLoading:pe||h,onInputChange:en,filterOption:C})}var e6=k.forwardRef(function(t,r){var i=KZ(t),l=xk(i);return k.createElement(u1,Tt({ref:r},l))}),t6=e6;const lj=({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 n6({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,I=i.users,M=C.resources.filter(jw),P=M.length==0,V=I.find(ie=>ie.hasChanges)!==void 0,U=I.find(ie=>ie.role!="pi")!==void 0;let F;N&&!V?F=m.jsx(yr,{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?F=m.jsx(yr,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?M.length?P&&(F=m.jsx(yr,{color:"warning",children:"This project does not have any active resources."})):F=m.jsxs(yr,{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."]}):F=m.jsxs(yr,{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(lj,{description:ae,disabled:ge.disabled,onChange:Re,selectedLength:be,totalLength:xe})]})},X=G0.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(cM,{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||P,width:100,format:(ie,ge)=>m.jsx(lj,{description:`all users for ${ge.name}`,disabled:!w||P,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:[F,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&&!P?m.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:m.jsx(t6,{classNames:{control:()=>"react-select"},loadOptions:async ie=>(await sG(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&&!P||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 r6({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(yr,{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(yr,{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:MG.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(yr,{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(q3,{activeKey:l.tab,onSelect:d,className:"mt-3 mb-3",children:[m.jsx(zb,{eventKey:"overview",title:"Overview",className:"mb-0",children:m.jsx(OW,{requestId:t,grantNumber:r})}),m.jsx(zb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:m.jsx(YZ,{requestId:t})}),m.jsx(zb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:m.jsx(n6,{grantNumber:r})}),m.jsx(zb,{eventKey:"history",title:"History",children:m.jsx(oW,{requestId:t})})]}),m.jsx(nW,{grantNumber:r,requestId:t}),m.jsx(rW,{grantNumber:r,requestId:t}),m.jsx(aW,{grantNumber:r,requestId:t,actionId:h?h.actionId:null}),m.jsx(qZ,{grantNumber:r,requestId:t}),m.jsx(JZ,{grantNumber:r,requestId:t})]})}function a6({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 i6({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(yr,{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(a6,{requestId:v.selectedRequestId,grantNumber:r})]}),C?m.jsx(r6,{...C,grantNumber:r}):null]})}return m.jsxs("div",{className:`${ZI.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:ZI.expand,onClick:()=>d(!u),children:m.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[m.jsx("i",{className:`bi bi-caret-${u?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||v.title]})}),m.jsx(Qp,{status:l||v.status})]}),m.jsx("div",{className:"card-body",id:y,hidden:!u||!v,children:x})]})}function o6({username:t,openFirst:r=1}){const{error:i,loading:l,projects:u}=jG(t);return l?m.jsx(nh,{}):i?m.jsxs(yr,{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(i6,{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 dM={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:[]}},s6=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(pM(!0))),await i(Qw()),await i(Yd()),i(l6())}),l6=Di("projectsBrowser/filterCleanup",async(t,{getState:r,dispatch:i})=>{const u=r().projectsBrowser.typeLists;i(fM({...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(fM(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(cj(!0))):(i(cj(!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()}),d1=$0({name:"projectsBrowser",initialState:dM,reducers:{resetFilters:t=>{t.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},t.singleEntry=!1,d1.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:u6,setApiUrl:Yq,setShowPagination:uj,setTypeLists:fM,toggleAllFos:c6,toggleFos:d6,toggleListFiltered:pM,toggleSingleEntry:cj,updateFilter:Kw,updatePageData:eR}=d1.actions,f6=t=>t.projectsBrowser.filters,p6=t=>t.projectsBrowser.filtersLoaded,h6=t=>t.projectsBrowser.listIsFiltered,v6=t=>t.projectsBrowser.singleEntry,m6=t=>t.projectsBrowser.projectsLoaded,g6=t=>t.projectsBrowser.pageData,y6=t=>t.projectsBrowser.projects,b6=t=>t.projectsBrowser.filtersLoaded&&t.projectsBrowser.projectsLoaded&&t.projectsBrowser.pageData.last_page>1,x6=t=>t.projectsBrowser.typeLists,C6=d1.reducer;const S6=()=>{const t=No(),r=Jn(f6),i=Jn(x6),l=Jn(h6),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(uj(!1)),t(eR({current_page:1})),t(Yd())},w=()=>{h(null),t(uj(!1)),t(eR({current_page:1})),t(u6()),l&&(window.scrollTo(0,0),t(Yd()),R(!1))},R=T=>{t(pM(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(c6())}}),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(d6(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(c1,{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:N(),onClick:w,children:"Reset"})]})]})})};const E6=({project:t})=>{const r=t.resources,[i,l]=k.useState(!1),u=Jn(v6);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 P="0";return parseInt(M)&&(P=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"?`$${P}`:m.jsxs(m.Fragment,{children:[P," ",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(Q0,{id:"link-tooltip",children:"Link Copied!"}),C=()=>{if(y()){const T={background:"none",border:"none",color:"#fff",fontSize:"24px"};return m.jsx(GR,{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}`))})]}),N=()=>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()})]}),N()]})]})},w6=()=>{const t=Jn(y6);return t.length==0?m.jsx("div",{children:"No Projects Found"}):m.jsx("div",{children:t.map((r,i)=>m.jsx(E6,{project:r},`project_${i}`))})};const dj=()=>{const t=No(),r=Jn(g6),[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(I=>{I==r.current_page?N.push(["current",I]):N.push(I)}),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:">"})})]})})})},R6=({api_url:t})=>{const r=No(),i=Jn(m6),l=Jn(p6),u=Jn(b6),d=m.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(s6())},[]),m.jsx("div",{className:"container-fluid",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-3",children:m.jsx(S6,{})}),m.jsxs("div",{className:"col-sm-9",children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(dj,{}):""})}),m.jsx("div",{className:"row",id:"projectListRow",children:m.jsx("div",{className:"col",children:i&&l?m.jsx(w6,{}):d})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(dj,{scroll:"projects_browser_app"}):""})})]})]})})},_6=t=>t.publications_store.publication,T6=t=>t.publications_store.publication.doi,N6=t=>t.publications_store.publication_types,hM=t=>t.publications_store.publication.authors,I6=t=>t.publications_store.tag_categories,A6=t=>t.publications_store.projects,j6=t=>t.publications_store.publication.tags,O6=t=>t.publications_store.errors,vM=t=>t.publications_store.data_loaded,mM=t=>t.publications_store.show_saved,f1=t=>t.publications_store.saving,D6=t=>t.publications_store.modal,gM=t=>t.publications_store.form_valid,yM=t=>!f1(t)&&vM(t)&&gM(t)&&bM(t)&&t.publications_store.projects.filter(r=>r.selected).length>0,bM=t=>{const r=hM(t);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},xM=t=>({type:"UPDATE_PUBLICATION",payload:t}),k6=t=>({type:"UPDATE_FIELD",payload:t}),tR=t=>({type:"CHANGE_PUB_TYPE",payload:t}),M6=t=>({type:"SET_PUBLICATION",payload:t}),L6=()=>({type:"ADD_AUTHOR"}),P6=t=>({type:"UPDATE_AUTHOR",payload:t}),F6=t=>({type:"TOGGLE_REQUEST",payload:t}),km=t=>({type:"UPDATE_ERRORS",payload:t}),CM=t=>({type:"HIDE_ERROR",payload:t}),V6=t=>({type:"UPDATE_SELECTED_TAGS",payload:t}),B6=t=>({type:"DELETE_AUTHOR",payload:t}),z6=t=>({type:"DATA_LOADED",payload:t}),SM=t=>({type:"UPDATE_SHOW_SAVED",payload:t}),$6=()=>({type:"RESET_STATE"}),cw=t=>({type:"UPDATE_SAVING",payload:t}),U6=t=>({type:"SET_FORM_VALID",payload:t}),EM=t=>({type:"SET_GRANT_NUMBER",payload:t}),H6=t=>({type:"ADD_PROJECT",payload:t}),G6=(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}},W6=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:X6(r)},r))})]}):null;function X6(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const Y6=()=>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(M6(d))}else t(km(u))},d=>{t(km(u))})},Z6=()=>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(H6(u)),t(EM(""))},()=>{t(km("Unable to find a project with this grant number."))})},wM=()=>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(z6(i))})},RM=()=>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}=G6(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!h){v.length>0&&Array.from(v).forEach(j=>{t(CM(j.id))});const R=W6(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(cw(!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($6()),t(wM())),t(SM(!0)),t(cw(!1)))},()=>{t(cw(!1)),t(km("There was an error saving this publication."))})},q6=({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"})]})]})}),J6=t=>({doi:T6(t)}),Q6=t=>({updatePublication:r=>t(xM({key:"doi",value:r})),doiLookup:()=>t(Y6())}),K6=ps(J6,Q6)(q6),e8=({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"})})})]})},t8=t=>({updateAuthor:r=>t(P6(r)),deleteAuthor:r=>t(B6(r))}),fj=ps(null,t8)(e8),n8=({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(fj,{author:d,authorKey:v},`author_${v}`)),l&&m.jsx(fj,{author:r()})]})]}),m.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},r8=t=>({authors:hM(t),authors_exist:bM(t)}),a8=t=>({addAuthor:()=>t(L6())}),i8=ps(r8,a8)(n8),o8=({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(c1,{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})})]})},s8=t=>({updateSelectedTags:r=>t(V6(r))}),l8=t=>({publication_tags:j6(t)}),u8=ps(l8,s8)(o8),c8=({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}`))})]})})},d8=t=>({projects:A6(t)}),f8=t=>({toggleProject:r=>t(F6(r))}),p8=ps(d8,f8)(c8),h8=({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"})]})]})}),v8=t=>({setGrantNumber:r=>t(EM(r)),grantSearch:()=>t(Z6())}),m8=t=>({grant_number:t.publications_store.grant_number}),g8=ps(m8,v8)(h8),y8=({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=P=>{P.target.value.trim()==""?x(!1):x(!0),u({key:"title",value:P.target.value})},R=()=>t.fields.map((P,V)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:`field_${P.csl_field_name}`,className:"form-label",children:P.name}),m.jsx("input",{type:"text",className:"form-control",name:`field_${P.csl_field_name}`,id:`field_${P.csl_field_name}`,value:P.field_value,onChange:U=>r({index:V,value:U.target.value})})]})},`field_${P.csl_field_name}`)),j=()=>{const P=new Date().getFullYear()+2;let V=1980;const U=[];for(;V<=P;)U.push(V++);const F=["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:F.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(K6,{}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),m.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:t.publication_type,onChange:P=>l(P.target.value),children:i.map(P=>m.jsx("option",{value:P.publication_type,children:P.publication_type},`pub_type_${P.type_id}`))})]})}),j(),R()]})]}),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(i8,{})})]}),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((P,V)=>m.jsx(u8,{index:V,category:P},`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(p8,{}),m.jsx("hr",{}),m.jsx(g8,{})]})]});return m.jsxs(m.Fragment,{children:[N,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"})})]})},b8=t=>({publication:_6(t),publication_types:N6(t),tag_categories:I6(t),saving:f1(t),modal:D6(t),save_enabled:yM(t),form_valid:gM(t)}),x8=t=>({updateField:r=>t(k6(r)),changePubType:r=>t(tR(r)),updatePublication:r=>t(xM(r)),savePublication:()=>t(RM()),setFormValid:r=>t(U6(r))}),C8=ps(b8,x8)(y8),S8=({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}`))}),E8=t=>({errors:O6(t)}),w8=t=>({hideError:r=>t(CM(r))}),R8=ps(E8,w8)(S8),_8=({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,{})},T8=t=>({show_saved:mM(t)}),N8=t=>({updateShowSaved:r=>t(SM(r))}),I8=ps(T8,N8)(_8),A8=({getData:t,data_loaded:r})=>(k.useEffect(()=>{t()},[]),m.jsxs(m.Fragment,{children:[m.jsx(I8,{}),m.jsx(R8,{}),r?m.jsx(C8,{}):m.jsx(nh,{})]})),j8=t=>({data_loaded:vM(t)}),O8=t=>({getData:()=>t(wM())}),_M=ps(j8,O8)(A8),D8=({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(_M,{})}),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"})]})},k8=t=>({saving:f1(t),showSaved:mM(t),save_enabled:yM(t)}),M8=t=>({savePublication:()=>t(RM())}),L8=ps(k8,M8)(D8),P8=({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(P=>P!=T.publication_id):[...u,T.publication_id])})}),m.jsx("td",{children:T.title}),m.jsx("td",{children:T.authors.map(P=>`${P.first_name} ${P.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(L8,{updatePublications:C})]})},F8=()=>`${Math.random().toString(36).slice(2)}`,nR=document.querySelector("#publications-react"),V8=nR?nR.dataset:{},pj={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:V8.redirect||!1,modal:nR==null,form_valid:!1,grant_number:""},B8=(t=pj,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:F8(),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 pj;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}},z8={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(hj(!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(G8({data:l,params:t})),r(hj(!0))});Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(X8(t)),r(NM())});const $8=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)}))},U8=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}=H8(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,H8=(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}},TM=$0({name:"resourceCatalog",initialState:z8,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,{resources:l,catalogs:u,categories:d}=U8(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=$8(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:G8,processData:Zq,resetFilters:W8,setResourcesLoaded:hj,toggleCatalog:X8,toggleFilter:NM}=TM.actions,IM=t=>t.resourceCatalog.catalogs,Y8=t=>t.resourceCatalog.filters,Z8=t=>t.resourceCatalog.hasErrors,q8=t=>t.resourceCatalog.resourcesLoaded,J8=t=>t.resourceCatalog.filteredResources,Q8=TM.reducer,K8="_access_1yrq0_2",eq="_resourceName_1yrq0_6",tq="_description_1yrq0_11",nq="_filterBar_1yrq0_15",rq="_cardBg_1yrq0_20",aq="_active_1yrq0_25",iq="_plainButton_1yrq0_30",oq="_btnSecondary_1yrq0_40",sq="_filtersHidden_1yrq0_51",lq="_filtersVisible_1yrq0_57",wo={access:K8,resourceName:eq,description:tq,filterBar:nq,cardBg:rq,active:aq,plainButton:iq,btnSecondary:oq,filtersHidden:sq,filtersVisible:lq},uq=({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"})]})})]})})})})},cq=({filter:t})=>{const r=No(),i=()=>{r(NM(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})]})})})},dq=({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(cq,{filter:r},r.featureId))]})}),fq=({onReset:t})=>{const r=No(),i=Jn(IM),l=Jn(Y8),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(dq,{category:d},d.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(W8()),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"})]})},pq=()=>{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(fq,{onReset:l})})]})})})})},hq=()=>{const t=Jn(J8);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(pq,{}),t.map(r=>m.jsx(uq,{resource:r},r.resourceId))]})})},vq=({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"}),"."]})]})})]}),mq=({catalogSources:t=[],onRamps:r=!1,baseUrl:i})=>{const l=No(),u=Jn(q8),d=Jn(Z8),v=Jn(IM),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(vq,{baseUrl:i}):"",y(),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx(hq,{})})})]}):m.jsx(nh,{})},gq={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(bq({data:l,params:t}))}),yq=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)}))},vj=(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)},AM=$0({name:"resourceCatalog",initialState:gq,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]&&vj(v,l,N.categoryName)&&(x[T]={categoryId:T,categoryName:N.categoryName,categoryDescription:N.categoryDescription,features:{}}),N.features.forEach(I=>{const M={featureId:I.featureId,name:I.name,description:I.description,categoryId:T,selected:!1},P=vj(h,u,M.name);P&&w.push(M),x[T]&&P&&!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(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=yq(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:bq,processData:qq,resetFilters:xq,toggleFilter:Cq}=AM.actions,Sq=t=>t.resourceCatalog.hasErrors,Eq=t=>t.resourceCatalog.resourcesLoaded,wq=t=>t.resourceCatalog.filters,Rq=t=>t.resourceCatalog.filteredResources,_q=AM.reducer,Tq=({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)]})]})},Nq=()=>{const t=Jn(Rq);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(Tq,{resource:r},r.resourceId))})]})},Iq=({filter:t})=>{const r=No(),i=()=>{r(Cq(t))};return m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"form-check",children:[m.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),m.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},Aq=({category:t})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("div",{className:"fw-bold mb-1 mt-1",children:m.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>m.jsx(Iq,{filter:r},r.featureId))]})}),jq=()=>{const t=No(),r=Jn(wq),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(Aq,{category:l},l.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(xq()),disabled:i.length==0,children:"Reset Filters"})]})},Oq=({apiUrl:t,excludedCategories:r=[],excludedFilters:i=[],excludedResources:l=[],allowedCategories:u=[],allowedFilters:d=[]})=>{const v=No(),h=Jn(Eq),y=Jn(Sq);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(jq,{})}),m.jsx("div",{className:"col-sm-8",children:m.jsx(Nq,{})})]})}):m.jsx(nh,{})};function Dq(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:XN&&XN.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 kq({target:t}){Xi.createRoot(t).render(m.jsx(bH,{}))}function Mq({target:t,availableResources:r,relativeUrlRoot:i}){Xi.createRoot(t).render(m.jsx(HH,{availableResources:r,relativeUrlRoot:i}))}function Lq({resourceId:t,target:r,setExternalSubmit:i,relativeUrlRoot:l}){Xi.createRoot(r).render(m.jsx(pO,{resourceId:t,setExternalSubmit:i,relativeUrlRoot:l}))}function Pq({target:t,username:r,routes:i}){gR(i);const l=Pm({reducer:{api:AG}});Xi.createRoot(t).render(m.jsx(th,{store:l,children:m.jsx(o6,{username:r})}))}function Fq({target:t,apiUrl:r}){const i=Pm({reducer:{projectsBrowser:C6},preloadedState:{projectsBrowser:{...dM,apiUrl:r}}});Xi.createRoot(t).render(m.jsx(th,{store:i,children:m.jsx(R6,{})}))}function jM(){return Pm({reducer:{publications_store:B8}})}function Vq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(th,{store:jM(),children:m.jsx(_M,{})}))}function Bq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(th,{store:jM(),children:m.jsx(P8,{...JSON.parse(t.dataset.publicationsSelectProps)})}))}function zq({target:t,catalogSources:r,onRamps:i,baseUrl:l}){const u=Pm({reducer:{resourceCatalog:Q8}});Xi.createRoot(t).render(m.jsx(th,{store:u,children:m.jsx(mq,{catalogSources:r,onRamps:i,baseUrl:l})}))}function $q({target:t,apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v}){const h=Pm({reducer:{resourceCatalog:_q}});Xi.createRoot(t).render(m.jsx(th,{store:h,children:m.jsx(Oq,{apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:d,allowedFilters:v})}))}exports.allocationsMap=kq;exports.editResource=Lq;exports.onRampsResourceCatalog=zq;exports.projects=Pq;exports.projectsBrowser=Fq;exports.publications=Vq;exports.publicationsSelect=Bq;exports.resourceCatalog=$q;exports.resources=Mq;exports.shadowTarget=Dq;
311
+ `]))),uY=function(r,i){var l=r.isFocused,u=r.size,f=r.theme,v=f.colors,h=f.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})},aw=function(r){var i=r.delay,l=r.offset;return wt("span",{css:r1({animation:"".concat(lY," 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 */")})},cY=function(r){var i=r.innerProps,l=r.isRtl,u=r.size,f=u===void 0?4:u,v=al(r,KX);return wt("div",Tt({},xr(bt(bt({},v),{},{innerProps:i,isRtl:l,size:f}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),wt(aw,{delay:0,offset:l}),wt(aw,{delay:160,offset:!0}),wt(aw,{delay:320,offset:!l}))},dY=function(r,i){var l=r.isDisabled,u=r.isFocused,f=r.theme,v=f.colors,h=f.borderRadius,y=f.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}})},fY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,f=r.innerRef,v=r.innerProps,h=r.menuIsOpen;return wt("div",Tt({ref:f},xr(r,"control",{control:!0,"control--is-disabled":l,"control--is-focused":u,"control--menu-is-open":h}),v,{"aria-disabled":l||void 0}),i)},pY=fY,hY=["data"],vY=function(r,i){var l=r.theme.spacing;return i?{}:{paddingBottom:l.baseUnit*2,paddingTop:l.baseUnit*2}},mY=function(r){var i=r.children,l=r.cx,u=r.getStyles,f=r.getClassNames,v=r.Heading,h=r.headingProps,y=r.innerProps,x=r.label,C=r.theme,w=r.selectProps;return wt("div",Tt({},xr(r,"group",{group:!0}),y),wt(v,Tt({},h,{selectProps:w,theme:C,getStyles:u,getClassNames:f,cx:l}),x),wt("div",null,i))},gY=function(r,i){var l=r.theme,u=l.colors,f=l.spacing;return bt({label:"group",cursor:"default",display:"block"},i?{}:{color:u.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:f.baseUnit*3,paddingRight:f.baseUnit*3,textTransform:"uppercase"})},yY=function(r){var i=Uk(r);i.data;var l=al(i,hY);return wt("div",Tt({},xr(r,"groupHeading",{"group-heading":!0}),l))},bY=mY,xY=["innerRef","isDisabled","isHidden","inputClassName"],CY=function(r,i){var l=r.isDisabled,u=r.value,f=r.theme,v=f.spacing,h=f.colors;return bt(bt({visibility:l?"hidden":"visible",transform:u?"translateZ(0)":""},SY),i?{}:{margin:v.baseUnit/2,paddingBottom:v.baseUnit/2,paddingTop:v.baseUnit/2,color:h.neutral80})},Qk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},SY={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"},Qk)},EY=function(r){return bt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Qk)},wY=function(r){var i=r.cx,l=r.value,u=Uk(r),f=u.innerRef,v=u.isDisabled,h=u.isHidden,y=u.inputClassName,x=al(u,xY);return wt("div",Tt({},xr(r,"input",{"input-container":!0}),{"data-value":l||""}),wt("input",Tt({className:i({input:!0},y),ref:f,style:EY(h),disabled:v},x)))},RY=wY,_Y=function(r,i){var l=r.theme,u=l.spacing,f=l.borderRadius,v=l.colors;return bt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:v.neutral10,borderRadius:f/2,margin:u.baseUnit/2})},TY=function(r,i){var l=r.theme,u=l.borderRadius,f=l.colors,v=r.cropWithEllipsis;return bt({overflow:"hidden",textOverflow:v||v===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:u/2,color:f.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},NY=function(r,i){var l=r.theme,u=l.spacing,f=l.borderRadius,v=l.colors,h=r.isFocused;return bt({alignItems:"center",display:"flex"},i?{}:{borderRadius:f/2,backgroundColor:h?v.dangerLight:void 0,paddingLeft:u.baseUnit,paddingRight:u.baseUnit,":hover":{backgroundColor:v.dangerLight,color:v.danger}})},Kk=function(r){var i=r.children,l=r.innerProps;return wt("div",l,i)},IY=Kk,AY=Kk;function jY(t){var r=t.children,i=t.innerProps;return wt("div",Tt({role:"button"},i),r||wt(s1,{size:14}))}var OY=function(r){var i=r.children,l=r.components,u=r.data,f=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({},xr(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":v})),f),selectProps:y},wt(C,{data:u,innerProps:bt({},xr(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),wt(w,{data:u,innerProps:bt(bt({},xr(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},h),selectProps:y}))},DY=OY,kY=function(r,i){var l=r.isDisabled,u=r.isFocused,f=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:f?y.primary:u?y.primary25:"transparent",color:l?y.neutral20:f?y.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:l?void 0:f?y.primary:y.primary50}})},MY=function(r){var i=r.children,l=r.isDisabled,u=r.isFocused,f=r.isSelected,v=r.innerRef,h=r.innerProps;return wt("div",Tt({},xr(r,"option",{option:!0,"option--is-disabled":l,"option--is-focused":u,"option--is-selected":f}),{ref:v,"aria-disabled":l},h),i)},LY=MY,PY=function(r,i){var l=r.theme,u=l.spacing,f=l.colors;return bt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:f.neutral50,marginLeft:u.baseUnit/2,marginRight:u.baseUnit/2})},FY=function(r){var i=r.children,l=r.innerProps;return wt("div",Tt({},xr(r,"placeholder",{placeholder:!0}),l),i)},VY=FY,BY=function(r,i){var l=r.isDisabled,u=r.theme,f=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:f.baseUnit/2,marginRight:f.baseUnit/2})},zY=function(r){var i=r.children,l=r.isDisabled,u=r.innerProps;return wt("div",Tt({},xr(r,"singleValue",{"single-value":!0,"single-value--is-disabled":l}),u),i)},$Y=zY,UY={ClearIndicator:iY,Control:pY,DropdownIndicator:rY,DownChevron:qk,CrossIcon:s1,Group:bY,GroupHeading:yY,IndicatorsContainer:JX,IndicatorSeparator:sY,Input:RY,LoadingIndicator:cY,Menu:PX,MenuList:VX,MenuPortal:GX,LoadingMessage:UX,NoOptionsMessage:$X,MultiValue:DY,MultiValueContainer:IY,MultiValueLabel:AY,MultiValueRemove:jY,Option:LY,Placeholder:VY,SelectContainer:XX,SingleValue:$Y,ValueContainer:ZX},HY=function(r){return bt(bt({},UY),r.components)},XA=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function GY(t,r){return!!(t===r||XA(t)&&XA(r))}function WY(t,r){if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++)if(!GY(t[i],r[i]))return!1;return!0}function XY(t,r){r===void 0&&(r=WY);var i=null;function l(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];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 YY(){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 ZY=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:YY},qY=function(r){return wt("span",Tt({css:ZY},r))},YA=qY,JY={guidance:function(r){var i=r.isSearchable,l=r.isMulti,u=r.tabSelectsValue,f=r.context,v=r.isInitialFocus;switch(f){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,f=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(f.length>1?"s":""," ").concat(f.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,f=r.label,v=f===void 0?"":f,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,f=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,I=y.isSearchable,M=y.menuIsOpen,P=y.options,V=y.screenReaderStatus,U=y.tabSelectsValue,F=y.isLoading,z=y["aria-label"],X=y["aria-live"],Y=k.useMemo(function(){return bt(bt({},JY),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:f,context:Ae===l?"menu":"value",selectValue:h,isAppleDevice:C};xe=Y.onFocus(ne)}return xe},[l,u,R,T,Y,f,h,C]),ge=k.useMemo(function(){var xe="";if(M&&P.length&&!F&&Y.onFilter){var Ae=V({count:f.length});xe=Y.onFilter({inputValue:j,resultsMessage:Ae})}return xe},[f,j,M,Y,P,V,F]),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:I,tabSelectsValue:U,isInitialFocus:ae})}return xe},[z,l,u,N,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(YA,{id:x},ae&&be),wt(YA,{"aria-live":X,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},v&&!ae&&be))},KY=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źẑżžẓẕƶȥɀⱬꝣ"}],eZ=new RegExp("["+Jw.map(function(t){return t.letters}).join("")+"]","g"),eM={};for(var iw=0;iw<Jw.length;iw++)for(var ow=Jw[iw],sw=0;sw<ow.letters.length;sw++)eM[ow.letters[sw]]=ow.base;var tM=function(r){return r.replace(eZ,function(i){return eM[i]})},tZ=XY(tM),ZA=function(r){return r.replace(/^\s+|\s+$/g,"")},nZ=function(r){return"".concat(r.label," ").concat(r.value)},rZ=function(r){return function(i,l){if(i.data.__isNew__)return!0;var u=bt({ignoreCase:!0,ignoreAccents:!0,stringify:nZ,trim:!0,matchFrom:"any"},r),f=u.ignoreCase,v=u.ignoreAccents,h=u.stringify,y=u.trim,x=u.matchFrom,C=y?ZA(l):l,w=y?ZA(h(i)):h(i);return f&&(C=C.toLowerCase(),w=w.toLowerCase()),v&&(C=tZ(C),w=tM(w)),x==="start"?w.substr(0,C.length)===C:w.indexOf(C)>-1}},aZ=["innerRef"];function iZ(t){var r=t.innerRef,i=al(t,aZ),l=IX(i,"onExited","in","enter","exit","appear");return wt("input",Tt({ref:r},l,{css:r1({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 oZ=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function sZ(t){var r=t.isEnabled,i=t.onBottomArrive,l=t.onBottomLeave,u=t.onTopArrive,f=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 P=x.current,V=P.scrollTop,U=P.scrollHeight,F=P.clientHeight,z=x.current,X=M>0,Y=U-F-V,pe=!1;Y>M&&v.current&&(l&&l(I),v.current=!1),X&&h.current&&(f&&f(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&&oZ(I)}},[i,l,u,f]),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]),N=k.useCallback(function(I){if(I){var M=_X?{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 N(I),function(){T(I)}}},[r,N,T]),function(I){x.current=I}}var qA=["boxSizing","height","overflow","paddingRight","position"],JA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function QA(t){t.preventDefault()}function KA(t){t.stopPropagation()}function ej(){var t=this.scrollTop,r=this.scrollHeight,i=t+this.offsetHeight;t===0?this.scrollTop=1:i===r&&(this.scrollTop=t-1)}function tj(){return"ontouchstart"in window||navigator.maxTouchPoints}var nj=!!(typeof window<"u"&&window.document&&window.document.createElement),hm=0,Bp={capture:!1,passive:!1};function lZ(t){var r=t.isEnabled,i=t.accountForScrollbars,l=i===void 0?!0:i,u=k.useRef({}),f=k.useRef(null),v=k.useCallback(function(y){if(nj){var x=document.body,C=x&&x.style;if(l&&qA.forEach(function(N){var T=C&&C[N];u.current[N]=T}),l&&hm<1){var w=parseInt(u.current.paddingRight,10)||0,R=document.body?document.body.clientWidth:0,j=window.innerWidth-R+w||0;Object.keys(JA).forEach(function(N){var T=JA[N];C&&(C[N]=T)}),C&&(C.paddingRight="".concat(j,"px"))}x&&tj()&&(x.addEventListener("touchmove",QA,Bp),y&&(y.addEventListener("touchstart",ej,Bp),y.addEventListener("touchmove",KA,Bp))),hm+=1}},[l]),h=k.useCallback(function(y){if(nj){var x=document.body,C=x&&x.style;hm=Math.max(hm-1,0),l&&hm<1&&qA.forEach(function(w){var R=u.current[w];C&&(C[w]=R)}),x&&tj()&&(x.removeEventListener("touchmove",QA,Bp),y&&(y.removeEventListener("touchstart",ej,Bp),y.removeEventListener("touchmove",KA,Bp)))}},[l]);return k.useEffect(function(){if(r){var y=f.current;return v(y),function(){h(y)}}},[r,v,h]),function(y){f.current=y}}function uZ(){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 cZ=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},dZ=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:uZ};function fZ(t){var r=t.children,i=t.lockEnabled,l=t.captureEnabled,u=l===void 0?!0:l,f=t.onBottomArrive,v=t.onBottomLeave,h=t.onTopArrive,y=t.onTopLeave,x=sZ({isEnabled:u,onBottomArrive:f,onBottomLeave:v,onTopArrive:h,onTopLeave:y}),C=lZ({isEnabled:i}),w=function(j){x(j),C(j)};return wt(k.Fragment,null,i&&wt("div",{onClick:cZ,css:dZ}),r(w))}function pZ(){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 hZ=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:pZ},vZ=function(r){var i=r.name,l=r.onFocus;return wt("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:l,css:hZ,value:"",onChange:function(){}})},mZ=vZ;function l1(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 gZ(){return l1(/^iPhone/i)}function nM(){return l1(/^Mac/i)}function yZ(){return l1(/^iPad/i)||nM()&&navigator.maxTouchPoints>1}function bZ(){return gZ()||yZ()}function xZ(){return nM()||bZ()}var CZ=function(r){return r.label},SZ=function(r){return r.label},EZ=function(r){return r.value},wZ=function(r){return!!r.isDisabled},RZ={clearIndicator:aY,container:WX,control:dY,dropdownIndicator:nY,group:vY,groupHeading:gY,indicatorsContainer:qX,indicatorSeparator:oY,input:CY,loadingIndicator:uY,loadingMessage:zX,menu:kX,menuList:FX,menuPortal:HX,multiValue:_Y,multiValueLabel:TY,multiValueRemove:NY,noOptionsMessage:BX,option:kY,placeholder:PY,singleValue:BY,valueContainer:YX},_Z={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%)"},TZ=4,rM=4,NZ=38,IZ=rM*2,AZ={baseUnit:rM,controlHeight:NZ,menuGutter:IZ},lw={borderRadius:TZ,colors:_Z,spacing:AZ},jZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:GA(),captureMenuScroll:!GA(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:rZ(),formatGroupLabel:CZ,getOptionLabel:SZ,getOptionValue:EZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:wZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!wX(),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 rj(t,r,i,l){var u=oM(t,r,i),f=sM(t,r,i),v=iM(t,r),h=P0(t,r);return{type:"option",data:r,isDisabled:u,isSelected:f,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 rj(t,v,r,h)}).filter(function(v){return ij(t,v)});return u.length>0?{type:"group",data:i,options:u,index:l}:void 0}var f=rj(t,i,r,l);return ij(t,f)?f:void 0}).filter(TX)}function aM(t){return t.reduce(function(r,i){return i.type==="group"?r.push.apply(r,WR(i.options.map(function(l){return l.data}))):r.push(i.data),r},[])}function aj(t,r){return t.reduce(function(i,l){return l.type==="group"?i.push.apply(i,WR(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 OZ(t,r){return aM(u0(t,r))}function ij(t,r){var i=t.inputValue,l=i===void 0?"":i,u=r.data,f=r.isSelected,v=r.label,h=r.value;return(!uM(t)||!f)&&lM(t,{label:v,value:h,data:u},l)}function DZ(t,r){var i=t.focusedValue,l=t.selectValue,u=l.indexOf(i);if(u>-1){var f=r.indexOf(i);if(f>-1)return i;if(u<r.length)return r[u]}return null}function kZ(t,r){var i=t.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var uw=function(r,i){var l,u=(l=r.find(function(f){return f.data===i}))===null||l===void 0?void 0:l.id;return u||null},iM=function(r,i){return r.getOptionLabel(i)},P0=function(r,i){return r.getOptionValue(i)};function oM(t,r,i){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(r,i):!1}function sM(t,r,i){if(i.indexOf(r)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(r,i);var l=P0(t,r);return i.some(function(u){return P0(t,u)===l})}function lM(t,r,i){return t.filterOption?t.filterOption(r,i):!0}var uM=function(r){var i=r.hideSelectedOptions,l=r.isMulti;return i===void 0?l:i},MZ=1,u1=function(t){BW(i,t);var r=UW(i);function i(l){var u;if(FW(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=xZ(),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 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(WR(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 uw(u.state.focusableOptionsWithIds,y)},u.getFocusableOptionsWithIds=function(){return aj(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 yX.apply(void 0,[u.props.classNamePrefix].concat(x))},u.getOptionLabel=function(y){return iM(u.props,y)},u.getOptionValue=function(y){return P0(u.props,y)},u.getStyles=function(y,x){var C=u.props.unstyled,w=RZ[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 HY(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 aM(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&&rx(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 uM(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,I=x.menuIsOpen,M=x.onKeyDown,P=x.tabSelectsValue,V=x.openMenuOnFocus,U=u.state,F=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||!I||!P||!F||V&&u.isOptionSelected(F,X))return;u.selectOption(F);break;case"Enter":if(y.keyCode===229)break;if(I){if(!F||u.isComposing)return;u.selectOption(F);break}return;case"Escape":I?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:j}),u.onMenuClose()):N&&R&&u.clearValue();break;case" ":if(j)return;if(!I){u.openMenu("first");break}if(!F)return;u.selectOption(F);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||++MZ),u.state.selectValue=UA(l.value),l.menuIsOpen&&u.state.selectValue.length){var f=u.getFocusableOptionsWithIds(),v=u.buildFocusableOptions(),h=v.indexOf(u.state.selectValue[0]);u.state.focusableOptionsWithIds=f,u.state.focusedOption=v[h],u.state.focusedOptionId=uw(f,v[h])}return u}return VW(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&&HA(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(u){var f=this.props,v=f.isDisabled,h=f.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&&(HA(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,f){this.props.onInputChange(u,f)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(u){var f=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 f.onMenuOpen()})}},{key:"focusValue",value:function(u){var f=this.state,v=f.selectValue,h=f.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",f=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-f,y<0&&(y=0)):u==="pagedown"?(y=x+f,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(lw):bt(bt({},lw),this.props.theme):lw}},{key:"getCommonProps",value:function(){var u=this.clearValue,f=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:f,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,f=u.isClearable,v=u.isMulti;return f===void 0?v:f}},{key:"isOptionDisabled",value:function(u,f){return oM(this.props,u,f)}},{key:"isOptionSelected",value:function(u,f){return sM(this.props,u,f)}},{key:"filterOption",value:function(u,f){return lM(this.props,u,f)}},{key:"formatOptionLabel",value:function(u,f){if(typeof this.props.formatOptionLabel=="function"){var v=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(u,{context:f,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,f=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,I=T.inputIsHidden,M=T.ariaSelection,P=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({},P,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:V,innerRef:this.getInputRef,isDisabled:f,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:x,form:C,type:"text",value:y},U)):k.createElement(iZ,Tt({id:V,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:M0,onFocus:this.onInputFocus,disabled:f,tabIndex:x,inputMode:"none",form:C,value:""},U))}},{key:"renderPlaceholderOrValue",value:function(){var u=this,f=this.getComponents(),v=f.MultiValue,h=f.MultiValueContainer,y=f.MultiValueLabel,x=f.MultiValueRemove,C=f.SingleValue,w=f.Placeholder,R=this.commonProps,j=this.props,N=j.controlShouldRenderValue,T=j.isDisabled,I=j.isMulti,M=j.inputValue,P=j.placeholder,V=this.state,U=V.selectValue,F=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")}}),P);if(I)return U.map(function(Y,pe){var ie=Y===F,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(),f=u.ClearIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!this.isClearable()||!f||y||!this.hasValue()||x)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(f,Tt({},v,{innerProps:w,isFocused:C}))}},{key:"renderLoadingIndicator",value:function(){var u=this.getComponents(),f=u.LoadingIndicator,v=this.commonProps,h=this.props,y=h.isDisabled,x=h.isLoading,C=this.state.isFocused;if(!f||!x)return null;var w={"aria-hidden":"true"};return k.createElement(f,Tt({},v,{innerProps:w,isDisabled:y,isFocused:C}))}},{key:"renderIndicatorSeparator",value:function(){var u=this.getComponents(),f=u.DropdownIndicator,v=u.IndicatorSeparator;if(!f||!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(),f=u.DropdownIndicator;if(!f)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(f,Tt({},v,{innerProps:x,isDisabled:h,isFocused:y}))}},{key:"renderMenu",value:function(){var u=this,f=this.getComponents(),v=f.Group,h=f.GroupHeading,y=f.Menu,x=f.MenuList,C=f.MenuPortal,w=f.LoadingMessage,R=f.NoOptionsMessage,j=f.Option,N=this.commonProps,T=this.state.focusedOption,I=this.props,M=I.captureMenuScroll,P=I.inputValue,V=I.isLoading,U=I.loadingMessage,F=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,Be=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:Be,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:P});if(ne===null)return null;Le=k.createElement(w,N,ne)}else{var Oe=Re({inputValue:P});if(Oe===null)return null;Le=k.createElement(R,N,Oe)}var G={minMenuHeight:F,maxMenuHeight:z,menuPlacement:Y,menuPosition:pe,menuShouldScrollIntoView:ae},Z=k.createElement(MX,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(fZ,{captureEnabled:M,onTopArrive:be,onBottomArrive:xe,lockEnabled:ge},function(ue){return k.createElement(x,Tt({},N,{innerRef:function(Be){u.getMenuListRef(Be),ue(Be)},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,f=this.props,v=f.delimiter,h=f.isDisabled,y=f.isMulti,x=f.name,C=f.required,w=this.state.selectValue;if(C&&!this.hasValue()&&!h)return k.createElement(mZ,{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 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,f=this.state,v=f.ariaSelection,h=f.focusedOption,y=f.focusedValue,x=f.isFocused,C=f.selectValue,w=this.getFocusableOptions();return k.createElement(KY,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(),f=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(f,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,f){var v=f.prevProps,h=f.clearFocusValueOnUpdate,y=f.inputIsHiddenAfterUpdate,x=f.ariaSelection,C=f.isFocused,w=f.prevWasFocused,R=f.instancePrefix,j=u.options,N=u.value,T=u.menuIsOpen,I=u.inputValue,M=u.isMulti,P=UA(N),V={};if(v&&(N!==v.value||j!==v.options||T!==v.menuIsOpen||I!==v.inputValue)){var U=T?OZ(u,P):[],F=T?aj(u0(u,P),"".concat(R,"-option")):[],z=h?DZ(f,P):null,X=kZ(f,U),Y=uw(F,X);V={selectValue:P,focusedOption:X,focusedOptionId:Y,focusableOptionsWithIds:F,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,P,P[0]||null),options:P,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);u1.defaultProps=jZ;var LZ=k.forwardRef(function(t,r){var i=xk(t);return k.createElement(u1,Tt({ref:r},i))}),c1=LZ;const PZ=`, ${new Date().getFullYear()}`;function oj({creditResource:t,resource:r,short:i=!1}){const{base:l,current:u}=r.exchangeRates;if(u.unitCost>=l.unitCost)return;const f=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(PZ,"")}`:"";i||(y+=C),x+=C}else i||(y+=" for you"),x+=u.institutionType?` for researchers from ${u.institutionType}`:" for you";return x+=`: ${aO(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-${f} me-1`}),y]})}function Hp({bg:t="dark",children:r,color:i="light",fontWeight:l="bold",icon:u="info-circle-fill",initial:f=!1,maxWidth:v="200px",padding:h="10px",placement:y,target:x,trigger:C="click",visible:w=!0}){const R=typeof f=="string"||f instanceof String,[j,N]=k.useState(R?localStorage.getItem(f)!="true":f),[T,I]=k.useState(!1);k.useEffect(()=>{setTimeout(()=>I(!0),100)},[]);const M=()=>{R&&localStorage.setItem(f,"true")},P=m.jsxs(Q0,{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(gk,{target:x.current,placement:y,show:j&&w&&T,children:P}):m.jsx(GR,{placement:y,onToggle:V=>{M(),N(V)},overlay:P,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 FZ({resources:t}){const r=t.filter(f=>{const{base:v,current:h}=f.exchangeRates;return h.unitCost<v.unitCost});if(!r.length)return;const i=[],l=[];for(let f of r){let{name:v,favicon:h}=f.resourceProvider;i.includes(v)||(i.push(v),l.push(h))}const u=l.map((f,v)=>m.jsx("span",{className:"d-inline-block border me-1",style:{backgroundColor:"white",backgroundImage:`url(${f})`,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 VZ="_items_c2dbg_1",BZ="_item_c2dbg_1",zZ="_details_c2dbg_14",$Z="_text_c2dbg_20",UZ="_number_c2dbg_35",HZ="_outer_c2dbg_50",GZ="_inner_c2dbg_61",Jl={items:VZ,item:BZ,details:zZ,text:$Z,number:UZ,outer:HZ,inner:GZ},vm=(t,r)=>`${Math.cos(2*Math.PI*t)*r} ${Math.sin(2*Math.PI*t)*r}`;function WZ({requestId:t,grantNumber:r,creditColorClass:i="gray-300",colorClasses:l=ww}){const{request:u}=ri(t,r);if(!u)return;let f=0,v;const h=[];for(let R of u.resources)R.isBoolean||(R.isCredit?v=R:h.push(R),f+=Rw(R));const y=[],x=[];let C=-.25;const w=[...h,v].map((R,j)=>{if(!R)return null;const N=j+1,I=Rw(R)/f,M=R.requested-R.used,P=Math.max(0,M),V=R.isCredit?f/R.exchangeRates.base.unitCost:R.requested,U=V==0?0:100*P/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 ${vm(X,100)}`,`A 100 100 0 ${ie} 1 ${vm(pe,100)}`,`L ${vm(pe,50)}`,`A 50 50 0 ${ie} 0 ${vm(X,50)}`].join(" "),[ae,Re]=vm(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(P,{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 sj=t=>t;function XZ({classes:t,clean:r=sj,format:i=sj,label:l,setValue:u,style:f,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:f,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 YZ({requestId:t,grantNumber:r}){const{request:i,addResource:l,openUsageDetailModal:u,resetResources:f,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,I="Renewal"in i.allowedActions,M="Supplement"in i.allowedActions,P=i.exchangeStatus==y.pending,V=i.exchangeStatus==y.success,U=i.exchangeStatus==y.error,F=i.exchangeActionId!==null,z=i.resources,X=i.resourcesReason,Y={};for(let ue of z)Y[ue.resourceId]=ue;const pe=()=>{iO(i)>=.75?x():C()},ie=[];for(let ue of z){let de=[];if(ue.requested>0){for(let Be of ue.requires||[]){let Ge=Y[Be];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"," ",rO(de.map(Be=>m.jsx(Xd,{resource:Be,userGuide:!1},Be.resourceId)),"or"),"."]},ue.resourceId))}}const ge=ie.length>0;let ae;V?ae=m.jsx(yr,{color:"info",children:"Your exchange request has been submitted."}):F?ae=m.jsx(yr,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):U?ae=m.jsx(yr,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!R.isManager?ae=m.jsxs(yr,{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(yr,{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&&!F?i.allowedActions.Exchange.resources.filter(ue=>!Ae.includes(ue.resourceId)).map(ue=>{Le[ue.resourceId]=ue;const de=H0(ue.name),Be=de.short?`${de.short} (${de.full.replace(/ \([^(]+\)/,"")})`:de.full;return{value:ue.resourceId,label:Be}}):[],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&&!F&&(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 Be=de.allocated-de.used,Ge=$p(Number(ue.replace(/[^0-9-.]/g,"")),de.decimalPlaces),tt=Math.min(0,Be);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(Qp,{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:aO(ue,de.exchangeRates.base.unitCost,G.name),children:ue},"base"),m.jsx(oj,{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(N0,{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&&!F&&Oe.includes(ue.resourceId)?Gd.input:"",format:(ue,de)=>{const Be=!V&&!F&&Oe.includes(de.resourceId);return de.isBoolean?m.jsx("input",{className:"form-check-input",type:"checkbox",checked:ue==1,disabled:!Be,onChange:Ge=>v(de.resourceId,Ge.target.checked?1:0)}):Be?m.jsx(XZ,{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&&!F?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(WZ,{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(FZ,{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(c1,{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(oj,{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&&!F?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:P||!xe&&!Re&&!be,onClick:f,children:"Reset Form"}),m.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:P||!xe||!Re||ge,onClick:w,children:P?"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 ZZ({question:t,requestId:r,grantNumber:i}){const{request:l,setResourceQuestionValues:u}=ri(r,i),f=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)))},I=V=>{const U=parseInt(V.target.value,10),F=V.target.checked?[...w,U]:w.filter(z=>z!=U);u(C,v,F)},M=V=>{const U=parseInt(V.target.value);u(C,v,isNaN(U)?[]:[U])};let P;if(["calendar","integer_only","text"].includes(y)){const V={calendar:"date",integer_only:"number",text:"text"}[y];P=m.jsx("input",{className:"form-control",id:f,type:V,placeholder:R.label,required:R.required,value:w[0]||"",onChange:y=="integer_only"?M:N})}else if(y=="textarea")P=m.jsx("textarea",{className:"form-control",id:f,placeholder:R.label,required:R.required,value:w[0]||"",onChange:N});else if(y=="drop_down"||h.length>=10){const V=y=="multi_sel";P=m.jsxs("select",{id:f,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 P=m.jsx("div",{id:f,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:f,className:`form-label ${j}`,children:x}),P]})}function qZ({requestId:t,grantNumber:r}){const{request:i,saveResources:l,toggleResourcesModal:u}=ri(t,r),{project:f}=Ji(r||i.grantNumber);if(!i||!f||i.error||f.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(ZZ,{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 cM({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 JZ({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 f,v="Usage";if(l.usageDetailStatus==ta.pending)f=m.jsx(nh,{});else if(l.usageDetailStatus==ta.error)f=m.jsx(yr,{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}=H0(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 I=[{key:"name",name:"Name",format:(M,{lastName:P,firstName:V,portalUsername:U})=>{const F=T[U];return F?m.jsx(cM,{user:F}):`${P}, ${V}`}},{key:"portalUsername",name:"Resource Username",format:M=>{const P=T[M],V=P?P.resourceUsernames[j.resourceId]:null;return V||m.jsx(m.Fragment,{children:"—"})}},{key:"role",name:"Role",format:M=>oO[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}];f=C.length?m.jsx(su,{rows:C,columns:I}):m.jsx(yr,{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:f})]})}var QZ=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function KZ(t){var r=t.defaultOptions,i=r===void 0?!1:r,l=t.cacheOptions,u=l===void 0?!1:l,f=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),I=na(T,2),M=I[0],P=I[1],V=k.useState(typeof R<"u"?R:""),U=na(V,2),F=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),Be=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!==Be&&(P(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(!f)return In();var Vt=f(ln,In);Vt&&typeof Vt.then=="function"&&Vt.then(In,function(){return In()})},[f]);k.useEffect(function(){i===!0&&dt(F,function(ln){N.current&&(P(ln||[]),ie(!!j.current))})},[]);var en=k.useCallback(function(ln,In){var Vt=bX(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?[]:F&&Re?Le:M||[];return bt(bt({},w),{},{options:sn,isLoading:pe||h,onInputChange:en,filterOption:C})}var e6=k.forwardRef(function(t,r){var i=KZ(t),l=xk(i);return k.createElement(u1,Tt({ref:r},l))}),t6=e6;const lj=({description:t,disabled:r=!1,onChange:i,selectedLength:l,totalLength:u})=>{const f=k.useRef(),v=k.useId();let h=l==u,y=l>0&&!h;return k.useEffect(()=>{f.current&&(f.current.checked=h,f.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:f,type:"checkbox"}),m.jsx("label",{className:"form-check-label",htmlFor:v,"aria-description":`${h?"Deselect":"Select"} ${t}`})]})};function n6({grantNumber:t,requestId:r}){const{project:i,addUser:l,resetUsers:u,saveUsers:f,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,I=i.users,M=C.resources.filter(jw),P=M.length==0,V=I.find(ie=>ie.hasChanges)!==void 0,U=I.find(ie=>ie.role!="pi")!==void 0;let F;N&&!V?F=m.jsx(yr,{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?F=m.jsx(yr,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?M.length?P&&(F=m.jsx(yr,{color:"warning",children:"This project does not have any active resources."})):F=m.jsxs(yr,{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."]}):F=m.jsxs(yr,{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(lj,{description:ae,disabled:ge.disabled,onChange:Re,selectedLength:be,totalLength:xe})]})},X=G0.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(cM,{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||P,width:100,format:(ie,ge)=>m.jsx(lj,{description:`all users for ${ge.name}`,disabled:!w||P,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:[F,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&&!P?m.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:m.jsx(t6,{classNames:{control:()=>"react-select"},loadOptions:async ie=>(await sG(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&&!P||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:f,children:j?"Saving...":"Save Changes"})]}):null]})}function r6({requestId:t,grantNumber:r}){const{request:i}=ri(t,r),{project:l,setRequest:u,setTab:f}=Ji(r||i.grantNumber);if(!i)return;if(i.error)return m.jsx(yr,{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(yr,{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:MG.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(yr,{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(q3,{activeKey:l.tab,onSelect:f,className:"mt-3 mb-3",children:[m.jsx(zb,{eventKey:"overview",title:"Overview",className:"mb-0",children:m.jsx(OW,{requestId:t,grantNumber:r})}),m.jsx(zb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:m.jsx(YZ,{requestId:t})}),m.jsx(zb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:m.jsx(n6,{grantNumber:r})}),m.jsx(zb,{eventKey:"history",title:"History",children:m.jsx(oW,{requestId:t})})]}),m.jsx(nW,{grantNumber:r,requestId:t}),m.jsx(rW,{grantNumber:r,requestId:t}),m.jsx(aW,{grantNumber:r,requestId:t,actionId:h?h.actionId:null}),m.jsx(qZ,{grantNumber:r,requestId:t}),m.jsx(JZ,{grantNumber:r,requestId:t})]})}function a6({requestId:t,grantNumber:r}){const{request:i,toggleActionsModal:l,toggleDeleteModal:u}=ri(t,r);if(!i)return;const{actions:f,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=f.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 i6({open:t=!1,grantNumber:r,title:i,status:l}){const[u,f]=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(yr,{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(a6,{requestId:v.selectedRequestId,grantNumber:r})]}),C?m.jsx(r6,{...C,grantNumber:r}):null]})}return m.jsxs("div",{className:`${ZI.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:ZI.expand,onClick:()=>f(!u),children:m.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[m.jsx("i",{className:`bi bi-caret-${u?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||v.title]})}),m.jsx(Qp,{status:l||v.status})]}),m.jsx("div",{className:"card-body",id:y,hidden:!u||!v,children:x})]})}function o6({username:t,openFirst:r=1}){const{error:i,loading:l,projects:u}=jG(t);if(l)return m.jsx(nh,{});if(i)return m.jsxs(yr,{color:"danger",children:[i," ",m.jsx("a",{href:"#",onClick:v=>{v.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]});if(!u.length)return 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 f=new URLSearchParams(window.location.hash.slice(1)).get("grantNumber");return u.map((v,h)=>m.jsx(i6,{open:f?f==v.grantNumber:h<r,...v},v.grantNumber))}const dM={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:[]}},s6=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(pM(!0))),await i(Qw()),await i(Yd()),i(l6())}),l6=Di("projectsBrowser/filterCleanup",async(t,{getState:r,dispatch:i})=>{const u=r().projectsBrowser.typeLists;i(fM({...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(fM(v.filters))}),Yd=Di("projectsBrowser/getProjects",async(t,{getState:r,dispatch:i})=>{const l=r().projectsBrowser,u=l.filters,f=l.typeLists,v=f.fosTypes.filter(C=>C.checked);let h=`${l.apiUrl}?page=${l.pageData.current_page}`;return u.requestNumber!=""?(h+=`&request_number=${u.requestNumber}`,i(cj(!0))):(i(cj(!1)),v.length!=f.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()}),d1=$0({name:"projectsBrowser",initialState:dM,reducers:{resetFilters:t=>{t.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},t.singleEntry=!1,d1.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:u6,setApiUrl:Yq,setShowPagination:uj,setTypeLists:fM,toggleAllFos:c6,toggleFos:d6,toggleListFiltered:pM,toggleSingleEntry:cj,updateFilter:Kw,updatePageData:eR}=d1.actions,f6=t=>t.projectsBrowser.filters,p6=t=>t.projectsBrowser.filtersLoaded,h6=t=>t.projectsBrowser.listIsFiltered,v6=t=>t.projectsBrowser.singleEntry,m6=t=>t.projectsBrowser.projectsLoaded,g6=t=>t.projectsBrowser.pageData,y6=t=>t.projectsBrowser.projects,b6=t=>t.projectsBrowser.filtersLoaded&&t.projectsBrowser.projectsLoaded&&t.projectsBrowser.pageData.last_page>1,x6=t=>t.projectsBrowser.typeLists,C6=d1.reducer;const S6=()=>{const t=No(),r=Jn(f6),i=Jn(x6),l=Jn(h6),u=i.orgs.map(T=>({label:T,value:T})),f=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(uj(!1)),t(eR({current_page:1})),t(Yd())},w=()=>{h(null),t(uj(!1)),t(eR({current_page:1})),t(u6()),l&&(window.scrollTo(0,0),t(Yd()),R(!1))},R=T=>{t(pM(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(c6())}}),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(d6(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(c1,{options:u,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:f,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:N(),onClick:w,children:"Reset"})]})]})})};const E6=({project:t})=>{const r=t.resources,[i,l]=k.useState(!1),u=Jn(v6);let f={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 P="0";return parseInt(M)&&(P=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"?`$${P}`:m.jsxs(m.Fragment,{children:[P," ",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(Q0,{id:"link-tooltip",children:"Link Copied!"}),C=()=>{if(y()){const T={background:"none",border:"none",color:"#fff",fontSize:"24px"};return m.jsx(GR,{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}`))})]}),N=()=>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,{...f,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()})]}),N()]})]})},w6=()=>{const t=Jn(y6);return t.length==0?m.jsx("div",{children:"No Projects Found"}):m.jsx("div",{children:t.map((r,i)=>m.jsx(E6,{project:r},`project_${i}`))})};const dj=()=>{const t=No(),r=Jn(g6),[i,l]=k.useState([]),[u,f]=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(),f("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(I=>{I==r.current_page?N.push(["current",I]):N.push(I)}),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:">"})})]})})})},R6=({api_url:t})=>{const r=No(),i=Jn(m6),l=Jn(p6),u=Jn(b6),f=m.jsx("div",{className:"loadingDiv",children:"Loading ..."});return k.useEffect(()=>{r(s6())},[]),m.jsx("div",{className:"container-fluid",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-3",children:m.jsx(S6,{})}),m.jsxs("div",{className:"col-sm-9",children:[m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(dj,{}):""})}),m.jsx("div",{className:"row",id:"projectListRow",children:m.jsx("div",{className:"col",children:i&&l?m.jsx(w6,{}):f})}),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:u?m.jsx(dj,{scroll:"projects_browser_app"}):""})})]})]})})},_6=t=>t.publications_store.publication,T6=t=>t.publications_store.publication.doi,N6=t=>t.publications_store.publication_types,hM=t=>t.publications_store.publication.authors,I6=t=>t.publications_store.tag_categories,A6=t=>t.publications_store.projects,j6=t=>t.publications_store.publication.tags,O6=t=>t.publications_store.errors,vM=t=>t.publications_store.data_loaded,mM=t=>t.publications_store.show_saved,f1=t=>t.publications_store.saving,D6=t=>t.publications_store.modal,gM=t=>t.publications_store.form_valid,yM=t=>!f1(t)&&vM(t)&&gM(t)&&bM(t)&&t.publications_store.projects.filter(r=>r.selected).length>0,bM=t=>{const r=hM(t);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},xM=t=>({type:"UPDATE_PUBLICATION",payload:t}),k6=t=>({type:"UPDATE_FIELD",payload:t}),tR=t=>({type:"CHANGE_PUB_TYPE",payload:t}),M6=t=>({type:"SET_PUBLICATION",payload:t}),L6=()=>({type:"ADD_AUTHOR"}),P6=t=>({type:"UPDATE_AUTHOR",payload:t}),F6=t=>({type:"TOGGLE_REQUEST",payload:t}),km=t=>({type:"UPDATE_ERRORS",payload:t}),CM=t=>({type:"HIDE_ERROR",payload:t}),V6=t=>({type:"UPDATE_SELECTED_TAGS",payload:t}),B6=t=>({type:"DELETE_AUTHOR",payload:t}),z6=t=>({type:"DATA_LOADED",payload:t}),SM=t=>({type:"UPDATE_SHOW_SAVED",payload:t}),$6=()=>({type:"RESET_STATE"}),cw=t=>({type:"UPDATE_SAVING",payload:t}),U6=t=>({type:"SET_FORM_VALID",payload:t}),EM=t=>({type:"SET_GRANT_NUMBER",payload:t}),H6=t=>({type:"ADD_PROJECT",payload:t}),G6=(t,r,i)=>{let l=!0;const u=[];for(const v of r)t[v]||(l=!1,u.push(v));const f=t.authors||[];for(const v of f)for(const h of i)v[h]||(l=!1,u.includes(h)||u.push(h));return{formValid:l,missingFields:u}},W6=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:X6(r)},r))})]}):null;function X6(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const Y6=()=>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(f=>f.json()).then(f=>{if(f.title!=""){let v=r().publications_store.publication_types.find(h=>h.citation_style_type==f.type);t(tR(v?v.publication_type:"Other")),t(M6(f))}else t(km(u))},f=>{t(km(u))})},Z6=()=>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(H6(u)),t(EM(""))},()=>{t(km("Unable to find a project with this grant number."))})},wM=()=>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(z6(i))})},RM=()=>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(),f={...i.publication},v=i.errors,{formValid:h,missingFields:y}=G6(f,["title","publication_year","publication_month"],["first_name","last_name"]);if(!h){v.length>0&&Array.from(v).forEach(j=>{t(CM(j.id))});const R=W6(y);t(km(R));return}const x={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:f,authors:f.authors.map(R=>({...R,order:0})),tags:u,projects:l};let C,w;f.publication_id?(C=Jt.routes.publication_path(f.publication_id),w="PATCH"):(C=Jt.routes.publications_path(),w="POST"),t(cw(!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():(f.publication_id||(t($6()),t(wM())),t(SM(!0)),t(cw(!1)))},()=>{t(cw(!1)),t(km("There was an error saving this publication."))})},q6=({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"})]})]})}),J6=t=>({doi:T6(t)}),Q6=t=>({updatePublication:r=>t(xM({key:"doi",value:r})),doiLookup:()=>t(Y6())}),K6=ps(J6,Q6)(q6),e8=({author:t,authorKey:r,updateAuthor:i,deleteAuthor:l})=>{const u=h=>{i({key:h.target.name,value:h.target.value,idx:r})},f=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=>f(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"})})})]})},t8=t=>({updateAuthor:r=>t(P6(r)),deleteAuthor:r=>t(B6(r))}),fj=ps(null,t8)(e8),n8=({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((f,v)=>m.jsx(fj,{author:f,authorKey:v},`author_${v}`)),l&&m.jsx(fj,{author:r()})]})]}),m.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},r8=t=>({authors:hM(t),authors_exist:bM(t)}),a8=t=>({addAuthor:()=>t(L6())}),i8=ps(r8,a8)(n8),o8=({category:t,publication_tags:r,updateSelectedTags:i,index:l})=>{const u=k.useRef(null),f=()=>{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(c1,{classNames:{control:h=>h.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:f(),options:t.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${l}`,inputId:`tags_${l}`,ref:u,closeMenuOnSelect:!1,onChange:v})})]})},s8=t=>({updateSelectedTags:r=>t(V6(r))}),l8=t=>({publication_tags:j6(t)}),u8=ps(l8,s8)(o8),c8=({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,f)=>m.jsxs("div",{className:i(u),onClick:()=>r(f),children:[u.grant_number,": ",u.title]},`project_${u.grant_number}`))})]})})},d8=t=>({projects:A6(t)}),f8=t=>({toggleProject:r=>t(F6(r))}),p8=ps(d8,f8)(c8),h8=({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"})]})]})}),v8=t=>({setGrantNumber:r=>t(EM(r)),grantSearch:()=>t(Z6())}),m8=t=>({grant_number:t.publications_store.grant_number}),g8=ps(m8,v8)(h8),y8=({publication:t,updateField:r,publication_types:i,changePubType:l,updatePublication:u,tag_categories:f,savePublication:v,modal:h,save_enabled:y,setFormValid:x,form_valid:C})=>{const w=P=>{P.target.value.trim()==""?x(!1):x(!0),u({key:"title",value:P.target.value})},R=()=>t.fields.map((P,V)=>m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:`field_${P.csl_field_name}`,className:"form-label",children:P.name}),m.jsx("input",{type:"text",className:"form-control",name:`field_${P.csl_field_name}`,id:`field_${P.csl_field_name}`,value:P.field_value,onChange:U=>r({index:V,value:U.target.value})})]})},`field_${P.csl_field_name}`)),j=()=>{const P=new Date().getFullYear()+2;let V=1980;const U=[];for(;V<=P;)U.push(V++);const F=["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:F.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(K6,{}),m.jsx("div",{className:"row mb-3",children:m.jsxs("div",{className:"col",children:[m.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),m.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:t.publication_type,onChange:P=>l(P.target.value),children:i.map(P=>m.jsx("option",{value:P.publication_type,children:P.publication_type},`pub_type_${P.type_id}`))})]})}),j(),R()]})]}),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(i8,{})})]}),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:f.map((P,V)=>m.jsx(u8,{index:V,category:P},`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(p8,{}),m.jsx("hr",{}),m.jsx(g8,{})]})]});return m.jsxs(m.Fragment,{children:[N,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"})})]})},b8=t=>({publication:_6(t),publication_types:N6(t),tag_categories:I6(t),saving:f1(t),modal:D6(t),save_enabled:yM(t),form_valid:gM(t)}),x8=t=>({updateField:r=>t(k6(r)),changePubType:r=>t(tR(r)),updatePublication:r=>t(xM(r)),savePublication:()=>t(RM()),setFormValid:r=>t(U6(r))}),C8=ps(b8,x8)(y8),S8=({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}`))}),E8=t=>({errors:O6(t)}),w8=t=>({hideError:r=>t(CM(r))}),R8=ps(E8,w8)(S8),_8=({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,{})},T8=t=>({show_saved:mM(t)}),N8=t=>({updateShowSaved:r=>t(SM(r))}),I8=ps(T8,N8)(_8),A8=({getData:t,data_loaded:r})=>(k.useEffect(()=>{t()},[]),m.jsxs(m.Fragment,{children:[m.jsx(I8,{}),m.jsx(R8,{}),r?m.jsx(C8,{}):m.jsx(nh,{})]})),j8=t=>({data_loaded:vM(t)}),O8=t=>({getData:()=>t(wM())}),_M=ps(j8,O8)(A8),D8=({saving:t,savePublication:r,showSaved:i,updatePublications:l,save_enabled:u})=>{const[f,v]=k.useState(!1);return k.useEffect(()=>{!t&&i&&l()},[t,i]),m.jsxs(m.Fragment,{children:[m.jsxs(Ln,{size:"xl",show:f,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(_M,{})}),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"})]})},k8=t=>({saving:f1(t),showSaved:mM(t),save_enabled:yM(t)}),M8=t=>({savePublication:()=>t(RM())}),L8=ps(k8,M8)(D8),P8=({usernames:t=[],publication_ids:r=[]})=>{const[i,l]=k.useState(t),[u,f]=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:()=>f(I?u.filter(P=>P!=T.publication_id):[...u,T.publication_id])})}),m.jsx("td",{children:T.title}),m.jsx("td",{children:T.authors.map(P=>`${P.first_name} ${P.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:()=>f(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(L8,{updatePublications:C})]})},F8=()=>`${Math.random().toString(36).slice(2)}`,nR=document.querySelector("#publications-react"),V8=nR?nR.dataset:{},pj={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:V8.redirect||!1,modal:nR==null,form_valid:!1,grant_number:""},B8=(t=pj,r)=>{const{type:i,payload:l}=r;switch(i){case"UPDATE_FIELD":return Eo(t,f=>(f.publication.fields[l.index].field_value=l.value,f));case"CHANGE_PUB_TYPE":return Eo(t,f=>{let v=f.publication_types.find(h=>h.publication_type==l).fields;return v.forEach(h=>{const y=f.publication.fields.find(x=>x.csl_field_name==h.csl_field_name);y&&(h.value=y.value)}),f.publication.publication_type=l,f.publication.fields=v,f});case"UPDATE_PUBLICATION":return{...t,publication:{...t.publication,[l.key]:l.value}};case"SET_PUBLICATION":return Eo(t,f=>(f.publication.fields.forEach(v=>{v.field_value=l[v.csl_field_name]}),Object.keys(f.publication).forEach(v=>{l[v]&&(f.publication[v]=l[v])}),f.form_valid=l.title.trim()!="",f));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,f=>{f.publication.authors[l.idx][l.key]=l.value});case"TOGGLE_TAG":return Eo(t,f=>{let v=f.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,f=>(f.projects[l].selected=!f.projects[l].selected,f));case"UPDATE_ERRORS":{const u={id:F8(),message:l};return{...t,errors:[...t.errors,u]}}case"HIDE_ERROR":{const u=t.errors.filter(f=>f.id!=l);return{...t,errors:u}}case"UPDATE_SELECTED_TAGS":return Eo(t,f=>{const v=l.tags.map(h=>h.value);return f.selected_tags[l.category]=v,f});case"DELETE_AUTHOR":return Eo(t,f=>(f.publication.authors.splice(l,1),f));case"DATA_LOADED":return Eo(t,f=>(f.publication=l.publication,f.form_valid=l.publication.title.trim()!="",f.publication.authors.forEach(v=>{v.affiliation||(v.affiliation="")}),f.publication_types=l.publication_types,f.tag_categories=l.tag_categories,f.projects=l.publication.projects,l.publication.tags.forEach(v=>f.selected_tags[v.label]=v.options.map(h=>h.value)),f.data_loaded=!0,f));case"UPDATE_SHOW_SAVED":return{...t,show_saved:l};case"UPDATE_SAVING":return{...t,saving:l};case"RESET_STATE":return pj;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}},z8={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(hj(!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(G8({data:l,params:t})),r(hj(!0))});Di("resourceCatalog/getResources",async(t,{dispatch:r})=>{r(X8(t)),r(NM())});const $8=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)}))},U8=t=>{const r={},i={};let l={};return t.forEach(f=>{r[f.catalogLabel]={...f,resourceIds:[],selected:!1,catalogId:f.catalogLabel.replace(/[^(A-z)]/,"")},delete r[f.catalogLabel].data,f.data.forEach(v=>{if(rR(f.allowedResources,f.excludedResources,v.resourceName)){const{categories:h,formattedResource:y}=H8(f,v,l);i[v.resourceId]=y,r[f.catalogLabel].resourceIds.push(v.resourceId),l=h}})}),{resources:Object.keys(i).map(f=>i[f]),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,H8=(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 f=l.map(h=>h.name).sort((h,y)=>h>y);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:f,featureIds:l.map(h=>h.featureId),sortCategory:u},categories:i}},TM=$0({name:"resourceCatalog",initialState:z8,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,{resources:l,catalogs:u,categories:f}=U8(i);t.catalogs=u,t.onRamps=r.params.onRamps;for(const v in f){const h=f[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=$8(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]),f=u.filter(v=>v.selected);if(f.length>0&&f.length<u.length){const v=f.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:G8,processData:Zq,resetFilters:W8,setResourcesLoaded:hj,toggleCatalog:X8,toggleFilter:NM}=TM.actions,IM=t=>t.resourceCatalog.catalogs,Y8=t=>t.resourceCatalog.filters,Z8=t=>t.resourceCatalog.hasErrors,q8=t=>t.resourceCatalog.resourcesLoaded,J8=t=>t.resourceCatalog.filteredResources,Q8=TM.reducer,K8="_access_1yrq0_2",eq="_resourceName_1yrq0_6",tq="_description_1yrq0_11",nq="_filterBar_1yrq0_15",rq="_cardBg_1yrq0_20",aq="_active_1yrq0_25",iq="_plainButton_1yrq0_30",oq="_btnSecondary_1yrq0_40",sq="_filtersHidden_1yrq0_51",lq="_filtersVisible_1yrq0_57",wo={access:K8,resourceName:eq,description:tq,filterBar:nq,cardBg:rq,active:aq,plainButton:iq,btnSecondary:oq,filtersHidden:sq,filtersVisible:lq},uq=({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]}),f=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:f(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"})]})})]})})})})},cq=({filter:t})=>{const r=No(),i=()=>{r(NM(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})]})})})},dq=({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(cq,{filter:r},r.featureId))]})}),fq=({onReset:t})=>{const r=No(),i=Jn(IM),l=Jn(Y8),u=l.filter(f=>f.features.filter(v=>v.selected).length>0);return Object.keys(i).map(f=>i[f]),m.jsxs(m.Fragment,{children:[l.map(f=>m.jsx(dq,{category:f},f.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(W8()),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"})]})},pq=()=>{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(fq,{onReset:l})})]})})})})},hq=()=>{const t=Jn(J8);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(pq,{}),t.map(r=>m.jsx(uq,{resource:r},r.resourceId))]})})},vq=({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"}),"."]})]})})]}),mq=({catalogSources:t=[],onRamps:r=!1,baseUrl:i})=>{const l=No(),u=Jn(q8),f=Jn(Z8),v=Jn(IM),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 f?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(vq,{baseUrl:i}):"",y(),m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsx(hq,{})})})]}):m.jsx(nh,{})},gq={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(bq({data:l,params:t}))}),yq=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)}))},vj=(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)},AM=$0({name:"resourceCatalog",initialState:gq,reducers:{handleResponse:(t,{payload:r})=>{const i=r.data,l=r.params.excludedCategories,u=r.params.excludedFilters,f=r.params.excludedResources,v=r.params.allowedCategories,h=r.params.allowedFilters,y=[],x={};i.filter(C=>!f.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]&&vj(v,l,N.categoryName)&&(x[T]={categoryId:T,categoryName:N.categoryName,categoryDescription:N.categoryDescription,features:{}}),N.features.forEach(I=>{const M={featureId:I.featureId,name:I.name,description:I.description,categoryId:T,selected:!1},P=vj(h,u,M.name);P&&w.push(M),x[T]&&P&&!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(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 f=yq(t.filters);if(f.length>0){const v=[],h=f.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:bq,processData:qq,resetFilters:xq,toggleFilter:Cq}=AM.actions,Sq=t=>t.resourceCatalog.hasErrors,Eq=t=>t.resourceCatalog.resourcesLoaded,wq=t=>t.resourceCatalog.filters,Rq=t=>t.resourceCatalog.filteredResources,_q=AM.reducer,Tq=({resource:t})=>{const r=l=>l.length==0?"":m.jsx("ul",{children:l.map((u,f)=>m.jsx("li",{children:u},`feature_${t.resourceId}_${f}`))}),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)]})]})},Nq=()=>{const t=Jn(Rq);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(Tq,{resource:r},r.resourceId))})]})},Iq=({filter:t})=>{const r=No(),i=()=>{r(Cq(t))};return m.jsx("div",{className:"row",children:m.jsx("div",{className:"col",children:m.jsxs("div",{className:"form-check",children:[m.jsx("label",{className:"form-check-label",htmlFor:`filter_${t.featureId}`,children:t.name}),m.jsx("input",{className:"form-check-input",type:"checkbox",value:t.featureId,id:`filter_${t.featureId}`,checked:t.selected,onChange:i})]})})})},Aq=({category:t})=>m.jsx("div",{className:"row",children:m.jsxs("div",{className:"col",children:[m.jsx("div",{className:"fw-bold mb-1 mt-1",children:m.jsx("abbr",{title:t.categoryDescription,children:t.categoryName})}),t.features.map(r=>m.jsx(Iq,{filter:r},r.featureId))]})}),jq=()=>{const t=No(),r=Jn(wq),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(Aq,{category:l},l.categoryId)),m.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>t(xq()),disabled:i.length==0,children:"Reset Filters"})]})},Oq=({apiUrl:t,excludedCategories:r=[],excludedFilters:i=[],excludedResources:l=[],allowedCategories:u=[],allowedFilters:f=[]})=>{const v=No(),h=Jn(Eq),y=Jn(Sq);return k.useEffect(()=>{v(d0({apiUrl:t,excludedCategories:r,excludedFilters:i,excludedResources:l,allowedCategories:u,allowedFilters:f}))},[]),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(jq,{})}),m.jsx("div",{className:"col-sm-8",children:m.jsx(Nq,{})})]})}):m.jsx(nh,{})};function Dq(t,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:l=!1,baseUrl:u=null}={}){const f=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:XN&&XN.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),f.appendChild(C),f.appendChild(w),f.appendChild(R),f.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 kq({target:t}){Xi.createRoot(t).render(m.jsx(bH,{}))}function Mq({availableResources:t,canAdd:r,relativeUrlRoot:i,target:l}){Xi.createRoot(l).render(m.jsx(HH,{availableResources:t,canAdd:r,relativeUrlRoot:i}))}function Lq({resourceId:t,target:r,setExternalSubmit:i,relativeUrlRoot:l}){Xi.createRoot(r).render(m.jsx(pO,{resourceId:t,setExternalSubmit:i,relativeUrlRoot:l}))}function Pq({target:t,username:r,routes:i}){gR(i);const l=Pm({reducer:{api:AG}});Xi.createRoot(t).render(m.jsx(th,{store:l,children:m.jsx(o6,{username:r})}))}function Fq({target:t,apiUrl:r}){const i=Pm({reducer:{projectsBrowser:C6},preloadedState:{projectsBrowser:{...dM,apiUrl:r}}});Xi.createRoot(t).render(m.jsx(th,{store:i,children:m.jsx(R6,{})}))}function jM(){return Pm({reducer:{publications_store:B8}})}function Vq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(th,{store:jM(),children:m.jsx(_M,{})}))}function Bq({target:t,routes:r}){gR(r),Xi.createRoot(t).render(m.jsx(th,{store:jM(),children:m.jsx(P8,{...JSON.parse(t.dataset.publicationsSelectProps)})}))}function zq({target:t,catalogSources:r,onRamps:i,baseUrl:l}){const u=Pm({reducer:{resourceCatalog:Q8}});Xi.createRoot(t).render(m.jsx(th,{store:u,children:m.jsx(mq,{catalogSources:r,onRamps:i,baseUrl:l})}))}function $q({target:t,apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:f,allowedFilters:v}){const h=Pm({reducer:{resourceCatalog:_q}});Xi.createRoot(t).render(m.jsx(th,{store:h,children:m.jsx(Oq,{apiUrl:r,excludedCategories:i,excludedFilters:l,excludedResources:u,allowedCategories:f,allowedFilters:v})}))}exports.allocationsMap=kq;exports.editResource=Lq;exports.onRampsResourceCatalog=zq;exports.projects=Pq;exports.projectsBrowser=Fq;exports.publications=Vq;exports.publicationsSelect=Bq;exports.resourceCatalog=$q;exports.resources=Mq;exports.shadowTarget=Dq;