@vitas_84/app_dochazka 0.6.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.
- package/dist/app_dochazka.css +5 -0
- package/dist/es/StandaloneEntry.js +47272 -0
- package/dist/iife/StandaloneEntry.js +1211 -0
- package/dist/umd/StandaloneEntry.js +1211 -0
- package/package.json +47 -0
- package/src/App.jsx +18 -0
- package/src/AppNavbar.jsx +25 -0
- package/src/AppRouter.jsx +52 -0
- package/src/StandaloneEntry.jsx +15 -0
- package/src/index.css +47 -0
- package/src/index.js +0 -0
- package/src/main.jsx +10 -0
|
@@ -0,0 +1,1211 @@
|
|
|
1
|
+
(function(zh,fy){typeof exports=="object"&&typeof module<"u"?fy(exports):typeof define=="function"&&define.amd?define(["exports"],fy):(zh=typeof globalThis<"u"?globalThis:zh||self,fy(zh.Dynamic={}))})(this,(function(zh){"use strict";function fy(n,o){for(var c=0;c<o.length;c++){const s=o[c];if(typeof s!="string"&&!Array.isArray(s)){for(const d in s)if(d!=="default"&&!(d in n)){const p=Object.getOwnPropertyDescriptor(s,d);p&&Object.defineProperty(n,d,p.get?p:{enumerable:!0,get:()=>s[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function P0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var W0={exports:{}},dy={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var bO;function Aj(){if(bO)return dy;bO=1;var n=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function c(s,d,p){var y=null;if(p!==void 0&&(y=""+p),d.key!==void 0&&(y=""+d.key),"key"in d){p={};for(var v in d)v!=="key"&&(p[v]=d[v])}else p=d;return d=p.ref,{$$typeof:n,type:s,key:y,ref:d!==void 0?d:null,props:p}}return dy.Fragment=o,dy.jsx=c,dy.jsxs=c,dy}var hy={},eb={exports:{}},At={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var EO;function Cj(){if(EO)return At;EO=1;var n=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),A=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=A&&N[A]||N["@@iterator"],typeof N=="function"?N:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,L={};function V(N,Z,ue){this.props=N,this.context=Z,this.refs=L,this.updater=ue||j}V.prototype.isReactComponent={},V.prototype.setState=function(N,Z){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,Z,"setState")},V.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function J(){}J.prototype=V.prototype;function F(N,Z,ue){this.props=N,this.context=Z,this.refs=L,this.updater=ue||j}var K=F.prototype=new J;K.constructor=F,H(K,V.prototype),K.isPureReactComponent=!0;var k=Array.isArray;function P(){}var ae={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function Se(N,Z,ue){var re=ue.ref;return{$$typeof:n,type:N,key:Z,ref:re!==void 0?re:null,props:ue}}function me(N,Z){return Se(N.type,Z,N.props)}function je(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function Re(N){var Z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ue){return Z[ue]})}var ke=/\/+/g;function Ye(N,Z){return typeof N=="object"&&N!==null&&N.key!=null?Re(""+N.key):Z.toString(36)}function et(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(P,P):(N.status="pending",N.then(function(Z){N.status==="pending"&&(N.status="fulfilled",N.value=Z)},function(Z){N.status==="pending"&&(N.status="rejected",N.reason=Z)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function G(N,Z,ue,re,De){var Ue=typeof N;(Ue==="undefined"||Ue==="boolean")&&(N=null);var Me=!1;if(N===null)Me=!0;else switch(Ue){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(N.$$typeof){case n:case o:Me=!0;break;case O:return Me=N._init,G(Me(N._payload),Z,ue,re,De)}}if(Me)return De=De(N),Me=re===""?"."+Ye(N,0):re,k(De)?(ue="",Me!=null&&(ue=Me.replace(ke,"$&/")+"/"),G(De,Z,ue,"",function(it){return it})):De!=null&&(je(De)&&(De=me(De,ue+(De.key==null||N&&N.key===De.key?"":(""+De.key).replace(ke,"$&/")+"/")+Me)),Z.push(De)),1;Me=0;var Pe=re===""?".":re+":";if(k(N))for(var Qe=0;Qe<N.length;Qe++)re=N[Qe],Ue=Pe+Ye(re,Qe),Me+=G(re,Z,ue,Ue,De);else if(Qe=w(N),typeof Qe=="function")for(N=Qe.call(N),Qe=0;!(re=N.next()).done;)re=re.value,Ue=Pe+Ye(re,Qe++),Me+=G(re,Z,ue,Ue,De);else if(Ue==="object"){if(typeof N.then=="function")return G(et(N),Z,ue,re,De);throw Z=String(N),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Me}function ce(N,Z,ue){if(N==null)return N;var re=[],De=0;return G(N,re,"","",function(Ue){return Z.call(ue,Ue,De++)}),re}function Ee(N){if(N._status===-1){var Z=N._result;Z=Z(),Z.then(function(ue){(N._status===0||N._status===-1)&&(N._status=1,N._result=ue)},function(ue){(N._status===0||N._status===-1)&&(N._status=2,N._result=ue)}),N._status===-1&&(N._status=0,N._result=Z)}if(N._status===1)return N._result.default;throw N._result}var ze=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},se={map:ce,forEach:function(N,Z,ue){ce(N,function(){Z.apply(this,arguments)},ue)},count:function(N){var Z=0;return ce(N,function(){Z++}),Z},toArray:function(N){return ce(N,function(Z){return Z})||[]},only:function(N){if(!je(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return At.Activity=R,At.Children=se,At.Component=V,At.Fragment=c,At.Profiler=d,At.PureComponent=F,At.StrictMode=s,At.Suspense=x,At.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,At.__COMPILER_RUNTIME={__proto__:null,c:function(N){return ae.H.useMemoCache(N)}},At.cache=function(N){return function(){return N.apply(null,arguments)}},At.cacheSignal=function(){return null},At.cloneElement=function(N,Z,ue){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var re=H({},N.props),De=N.key;if(Z!=null)for(Ue in Z.key!==void 0&&(De=""+Z.key),Z)!$.call(Z,Ue)||Ue==="key"||Ue==="__self"||Ue==="__source"||Ue==="ref"&&Z.ref===void 0||(re[Ue]=Z[Ue]);var Ue=arguments.length-2;if(Ue===1)re.children=ue;else if(1<Ue){for(var Me=Array(Ue),Pe=0;Pe<Ue;Pe++)Me[Pe]=arguments[Pe+2];re.children=Me}return Se(N.type,De,re)},At.createContext=function(N){return N={$$typeof:y,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:p,_context:N},N},At.createElement=function(N,Z,ue){var re,De={},Ue=null;if(Z!=null)for(re in Z.key!==void 0&&(Ue=""+Z.key),Z)$.call(Z,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(De[re]=Z[re]);var Me=arguments.length-2;if(Me===1)De.children=ue;else if(1<Me){for(var Pe=Array(Me),Qe=0;Qe<Me;Qe++)Pe[Qe]=arguments[Qe+2];De.children=Pe}if(N&&N.defaultProps)for(re in Me=N.defaultProps,Me)De[re]===void 0&&(De[re]=Me[re]);return Se(N,Ue,De)},At.createRef=function(){return{current:null}},At.forwardRef=function(N){return{$$typeof:v,render:N}},At.isValidElement=je,At.lazy=function(N){return{$$typeof:O,_payload:{_status:-1,_result:N},_init:Ee}},At.memo=function(N,Z){return{$$typeof:E,type:N,compare:Z===void 0?null:Z}},At.startTransition=function(N){var Z=ae.T,ue={};ae.T=ue;try{var re=N(),De=ae.S;De!==null&&De(ue,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(P,ze)}catch(Ue){ze(Ue)}finally{Z!==null&&ue.types!==null&&(Z.types=ue.types),ae.T=Z}},At.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},At.use=function(N){return ae.H.use(N)},At.useActionState=function(N,Z,ue){return ae.H.useActionState(N,Z,ue)},At.useCallback=function(N,Z){return ae.H.useCallback(N,Z)},At.useContext=function(N){return ae.H.useContext(N)},At.useDebugValue=function(){},At.useDeferredValue=function(N,Z){return ae.H.useDeferredValue(N,Z)},At.useEffect=function(N,Z){return ae.H.useEffect(N,Z)},At.useEffectEvent=function(N){return ae.H.useEffectEvent(N)},At.useId=function(){return ae.H.useId()},At.useImperativeHandle=function(N,Z,ue){return ae.H.useImperativeHandle(N,Z,ue)},At.useInsertionEffect=function(N,Z){return ae.H.useInsertionEffect(N,Z)},At.useLayoutEffect=function(N,Z){return ae.H.useLayoutEffect(N,Z)},At.useMemo=function(N,Z){return ae.H.useMemo(N,Z)},At.useOptimistic=function(N,Z){return ae.H.useOptimistic(N,Z)},At.useReducer=function(N,Z,ue){return ae.H.useReducer(N,Z,ue)},At.useRef=function(N){return ae.H.useRef(N)},At.useState=function(N){return ae.H.useState(N)},At.useSyncExternalStore=function(N,Z,ue){return ae.H.useSyncExternalStore(N,Z,ue)},At.useTransition=function(){return ae.H.useTransition()},At.version="19.2.4",At}var py={exports:{}};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.development.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/py.exports;var SO;function Dj(){return SO||(SO=1,(function(n,o){process.env.NODE_ENV!=="production"&&(function(){function c(U,oe){Object.defineProperty(p.prototype,U,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",oe[0],oe[1])}})}function s(U){return U===null||typeof U!="object"?null:(U=$e&&U[$e]||U["@@iterator"],typeof U=="function"?U:null)}function d(U,oe){U=(U=U.constructor)&&(U.displayName||U.name)||"ReactClass";var we=U+"."+oe;Ct[we]||(console.error("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.",oe,U),Ct[we]=!0)}function p(U,oe,we){this.props=U,this.context=oe,this.refs=Vt,this.updater=we||an}function y(){}function v(U,oe,we){this.props=U,this.context=oe,this.refs=Vt,this.updater=we||an}function x(){}function E(U){return""+U}function O(U){try{E(U);var oe=!1}catch{oe=!0}if(oe){oe=console;var we=oe.error,Be=typeof Symbol=="function"&&Symbol.toStringTag&&U[Symbol.toStringTag]||U.constructor.name||"Object";return we.call(oe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Be),E(U)}}function R(U){if(U==null)return null;if(typeof U=="function")return U.$$typeof===xi?null:U.displayName||U.name||null;if(typeof U=="string")return U;switch(U){case N:return"Fragment";case ue:return"Profiler";case Z:return"StrictMode";case Me:return"Suspense";case Pe:return"SuspenseList";case Le:return"Activity"}if(typeof U=="object")switch(typeof U.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),U.$$typeof){case se:return"Portal";case De:return U.displayName||"Context";case re:return(U._context.displayName||"Context")+".Consumer";case Ue:var oe=U.render;return U=U.displayName,U||(U=oe.displayName||oe.name||"",U=U!==""?"ForwardRef("+U+")":"ForwardRef"),U;case Qe:return oe=U.displayName||null,oe!==null?oe:R(U.type)||"Memo";case it:oe=U._payload,U=U._init;try{return R(U(oe))}catch{}}return null}function A(U){if(U===N)return"<>";if(typeof U=="object"&&U!==null&&U.$$typeof===it)return"<...>";try{var oe=R(U);return oe?"<"+oe+">":"<...>"}catch{return"<...>"}}function w(){var U=Je.A;return U===null?null:U.getOwner()}function j(){return Error("react-stack-top-frame")}function H(U){if(Tr.call(U,"key")){var oe=Object.getOwnPropertyDescriptor(U,"key").get;if(oe&&oe.isReactWarning)return!1}return U.key!==void 0}function L(U,oe){function we(){Xr||(Xr=!0,console.error("%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://react.dev/link/special-props)",oe))}we.isReactWarning=!0,Object.defineProperty(U,"key",{get:we,configurable:!0})}function V(){var U=R(this.type);return Ll[U]||(Ll[U]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),U=this.props.ref,U!==void 0?U:null}function J(U,oe,we,Be,Fe,ct){var tt=we.ref;return U={$$typeof:ze,type:U,key:oe,props:we,_owner:Be},(tt!==void 0?tt:null)!==null?Object.defineProperty(U,"ref",{enumerable:!1,get:V}):Object.defineProperty(U,"ref",{enumerable:!1,value:null}),U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(U,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(U,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Fe}),Object.defineProperty(U,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ct}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U}function F(U,oe){return oe=J(U.type,oe,U.props,U._owner,U._debugStack,U._debugTask),U._store&&(oe._store.validated=U._store.validated),oe}function K(U){k(U)?U._store&&(U._store.validated=1):typeof U=="object"&&U!==null&&U.$$typeof===it&&(U._payload.status==="fulfilled"?k(U._payload.value)&&U._payload.value._store&&(U._payload.value._store.validated=1):U._store&&(U._store.validated=1))}function k(U){return typeof U=="object"&&U!==null&&U.$$typeof===ze}function P(U){var oe={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(we){return oe[we]})}function ae(U,oe){return typeof U=="object"&&U!==null&&U.key!=null?(O(U.key),P(""+U.key)):oe.toString(36)}function $(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(x,x):(U.status="pending",U.then(function(oe){U.status==="pending"&&(U.status="fulfilled",U.value=oe)},function(oe){U.status==="pending"&&(U.status="rejected",U.reason=oe)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function Se(U,oe,we,Be,Fe){var ct=typeof U;(ct==="undefined"||ct==="boolean")&&(U=null);var tt=!1;if(U===null)tt=!0;else switch(ct){case"bigint":case"string":case"number":tt=!0;break;case"object":switch(U.$$typeof){case ze:case se:tt=!0;break;case it:return tt=U._init,Se(tt(U._payload),oe,we,Be,Fe)}}if(tt){tt=U,Fe=Fe(tt);var Dt=Be===""?"."+ae(tt,0):Be;return Qr(Fe)?(we="",Dt!=null&&(we=Dt.replace(Bl,"$&/")+"/"),Se(Fe,oe,we,"",function(ba){return ba})):Fe!=null&&(k(Fe)&&(Fe.key!=null&&(tt&&tt.key===Fe.key||O(Fe.key)),we=F(Fe,we+(Fe.key==null||tt&&tt.key===Fe.key?"":(""+Fe.key).replace(Bl,"$&/")+"/")+Dt),Be!==""&&tt!=null&&k(tt)&&tt.key==null&&tt._store&&!tt._store.validated&&(we._store.validated=2),Fe=we),oe.push(Fe)),1}if(tt=0,Dt=Be===""?".":Be+":",Qr(U))for(var bt=0;bt<U.length;bt++)Be=U[bt],ct=Dt+ae(Be,bt),tt+=Se(Be,oe,we,ct,Fe);else if(bt=s(U),typeof bt=="function")for(bt===U.entries&&(Da||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Da=!0),U=bt.call(U),bt=0;!(Be=U.next()).done;)Be=Be.value,ct=Dt+ae(Be,bt++),tt+=Se(Be,oe,we,ct,Fe);else if(ct==="object"){if(typeof U.then=="function")return Se($(U),oe,we,Be,Fe);throw oe=String(U),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return tt}function me(U,oe,we){if(U==null)return U;var Be=[],Fe=0;return Se(U,Be,"","",function(ct){return oe.call(we,ct,Fe++)}),Be}function je(U){if(U._status===-1){var oe=U._ioInfo;oe!=null&&(oe.start=oe.end=performance.now()),oe=U._result;var we=oe();if(we.then(function(Fe){if(U._status===0||U._status===-1){U._status=1,U._result=Fe;var ct=U._ioInfo;ct!=null&&(ct.end=performance.now()),we.status===void 0&&(we.status="fulfilled",we.value=Fe)}},function(Fe){if(U._status===0||U._status===-1){U._status=2,U._result=Fe;var ct=U._ioInfo;ct!=null&&(ct.end=performance.now()),we.status===void 0&&(we.status="rejected",we.reason=Fe)}}),oe=U._ioInfo,oe!=null){oe.value=we;var Be=we.displayName;typeof Be=="string"&&(oe.name=Be)}U._status===-1&&(U._status=0,U._result=we)}if(U._status===1)return oe=U._result,oe===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
26
|
+
|
|
27
|
+
Your code should look like:
|
|
28
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
29
|
+
|
|
30
|
+
Did you accidentally put curly braces around the import?`,oe),"default"in oe||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
31
|
+
|
|
32
|
+
Your code should look like:
|
|
33
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,oe),oe.default;throw U._result}function Re(){var U=Je.H;return U===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
34
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
35
|
+
2. You might be breaking the Rules of Hooks
|
|
36
|
+
3. You might have more than one copy of React in the same app
|
|
37
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),U}function ke(){Je.asyncTransitions--}function Ye(U){if(_i===null)try{var oe=("require"+Math.random()).slice(0,7);_i=(n&&n[oe]).call(n,"timers").setImmediate}catch{_i=function(Be){ru===!1&&(ru=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Fe=new MessageChannel;Fe.port1.onmessage=Be,Fe.port2.postMessage(void 0)}}return _i(U)}function et(U){return 1<U.length&&typeof AggregateError=="function"?new AggregateError(U):U[0]}function G(U,oe){oe!==al-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),al=oe}function ce(U,oe,we){var Be=Je.actQueue;if(Be!==null)if(Be.length!==0)try{Ee(Be),Ye(function(){return ce(U,oe,we)});return}catch(Fe){Je.thrownErrors.push(Fe)}else Je.actQueue=null;0<Je.thrownErrors.length?(Be=et(Je.thrownErrors),Je.thrownErrors.length=0,we(Be)):oe(U)}function Ee(U){if(!qn){qn=!0;var oe=0;try{for(;oe<U.length;oe++){var we=U[oe];do{Je.didUsePromise=!1;var Be=we(!1);if(Be!==null){if(Je.didUsePromise){U[oe]=we,U.splice(0,oe);return}we=Be}else break}while(!0)}U.length=0}catch(Fe){U.splice(0,oe+1),Je.thrownErrors.push(Fe)}finally{qn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ze=Symbol.for("react.transitional.element"),se=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),De=Symbol.for("react.context"),Ue=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),Qe=Symbol.for("react.memo"),it=Symbol.for("react.lazy"),Le=Symbol.for("react.activity"),$e=Symbol.iterator,Ct={},an={isMounted:function(){return!1},enqueueForceUpdate:function(U){d(U,"forceUpdate")},enqueueReplaceState:function(U){d(U,"replaceState")},enqueueSetState:function(U){d(U,"setState")}},Mt=Object.assign,Vt={};Object.freeze(Vt),p.prototype.isReactComponent={},p.prototype.setState=function(U,oe){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,oe,"setState")},p.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};var sn={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)."]};for(Ir in sn)sn.hasOwnProperty(Ir)&&c(Ir,sn[Ir]);y.prototype=p.prototype,sn=v.prototype=new y,sn.constructor=v,Mt(sn,p.prototype),sn.isPureReactComponent=!0;var Qr=Array.isArray,xi=Symbol.for("react.client.reference"),Je={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Tr=Object.prototype.hasOwnProperty,Ul=console.createTask?console.createTask:function(){return null};sn={react_stack_bottom_frame:function(U){return U()}};var Xr,jn,Ll={},Rt=sn.react_stack_bottom_frame.bind(sn,j)(),tl=Ul(A(j)),Da=!1,Bl=/\/+/g,nl=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},ru=!1,_i=null,al=0,ea=!1,qn=!1,ta=typeof queueMicrotask=="function"?function(U){queueMicrotask(function(){return queueMicrotask(U)})}:Ye;sn=Object.freeze({__proto__:null,c:function(U){return Re().useMemoCache(U)}});var Ir={map:me,forEach:function(U,oe,we){me(U,function(){oe.apply(this,arguments)},we)},count:function(U){var oe=0;return me(U,function(){oe++}),oe},toArray:function(U){return me(U,function(oe){return oe})||[]},only:function(U){if(!k(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};o.Activity=Le,o.Children=Ir,o.Component=p,o.Fragment=N,o.Profiler=ue,o.PureComponent=v,o.StrictMode=Z,o.Suspense=Me,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Je,o.__COMPILER_RUNTIME=sn,o.act=function(U){var oe=Je.actQueue,we=al;al++;var Be=Je.actQueue=oe!==null?oe:[],Fe=!1;try{var ct=U()}catch(bt){Je.thrownErrors.push(bt)}if(0<Je.thrownErrors.length)throw G(oe,we),U=et(Je.thrownErrors),Je.thrownErrors.length=0,U;if(ct!==null&&typeof ct=="object"&&typeof ct.then=="function"){var tt=ct;return ta(function(){Fe||ea||(ea=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(bt,ba){Fe=!0,tt.then(function(Ia){if(G(oe,we),we===0){try{Ee(Be),Ye(function(){return ce(Ia,bt,ba)})}catch(Ri){Je.thrownErrors.push(Ri)}if(0<Je.thrownErrors.length){var Kl=et(Je.thrownErrors);Je.thrownErrors.length=0,ba(Kl)}}else bt(Ia)},function(Ia){G(oe,we),0<Je.thrownErrors.length&&(Ia=et(Je.thrownErrors),Je.thrownErrors.length=0),ba(Ia)})}}}var Dt=ct;if(G(oe,we),we===0&&(Ee(Be),Be.length!==0&&ta(function(){Fe||ea||(ea=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Je.actQueue=null),0<Je.thrownErrors.length)throw U=et(Je.thrownErrors),Je.thrownErrors.length=0,U;return{then:function(bt,ba){Fe=!0,we===0?(Je.actQueue=Be,Ye(function(){return ce(Dt,bt,ba)})):bt(Dt)}}},o.cache=function(U){return function(){return U.apply(null,arguments)}},o.cacheSignal=function(){return null},o.captureOwnerStack=function(){var U=Je.getCurrentStack;return U===null?null:U()},o.cloneElement=function(U,oe,we){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var Be=Mt({},U.props),Fe=U.key,ct=U._owner;if(oe!=null){var tt;e:{if(Tr.call(oe,"ref")&&(tt=Object.getOwnPropertyDescriptor(oe,"ref").get)&&tt.isReactWarning){tt=!1;break e}tt=oe.ref!==void 0}tt&&(ct=w()),H(oe)&&(O(oe.key),Fe=""+oe.key);for(Dt in oe)!Tr.call(oe,Dt)||Dt==="key"||Dt==="__self"||Dt==="__source"||Dt==="ref"&&oe.ref===void 0||(Be[Dt]=oe[Dt])}var Dt=arguments.length-2;if(Dt===1)Be.children=we;else if(1<Dt){tt=Array(Dt);for(var bt=0;bt<Dt;bt++)tt[bt]=arguments[bt+2];Be.children=tt}for(Be=J(U.type,Fe,Be,ct,U._debugStack,U._debugTask),Fe=2;Fe<arguments.length;Fe++)K(arguments[Fe]);return Be},o.createContext=function(U){return U={$$typeof:De,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:re,_context:U},U._currentRenderer=null,U._currentRenderer2=null,U},o.createElement=function(U,oe,we){for(var Be=2;Be<arguments.length;Be++)K(arguments[Be]);Be={};var Fe=null;if(oe!=null)for(bt in jn||!("__self"in oe)||"key"in oe||(jn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),H(oe)&&(O(oe.key),Fe=""+oe.key),oe)Tr.call(oe,bt)&&bt!=="key"&&bt!=="__self"&&bt!=="__source"&&(Be[bt]=oe[bt]);var ct=arguments.length-2;if(ct===1)Be.children=we;else if(1<ct){for(var tt=Array(ct),Dt=0;Dt<ct;Dt++)tt[Dt]=arguments[Dt+2];Object.freeze&&Object.freeze(tt),Be.children=tt}if(U&&U.defaultProps)for(bt in ct=U.defaultProps,ct)Be[bt]===void 0&&(Be[bt]=ct[bt]);Fe&&L(Be,typeof U=="function"?U.displayName||U.name||"Unknown":U);var bt=1e4>Je.recentlyCreatedOwnerStacks++;return J(U,Fe,Be,w(),bt?Error("react-stack-top-frame"):Rt,bt?Ul(A(U)):tl)},o.createRef=function(){var U={current:null};return Object.seal(U),U},o.forwardRef=function(U){U!=null&&U.$$typeof===Qe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof U!="function"?console.error("forwardRef requires a render function but was given %s.",U===null?"null":typeof U):U.length!==0&&U.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",U.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),U!=null&&U.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var oe={$$typeof:Ue,render:U},we;return Object.defineProperty(oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return we},set:function(Be){we=Be,U.name||U.displayName||(Object.defineProperty(U,"name",{value:Be}),U.displayName=Be)}}),oe},o.isValidElement=k,o.lazy=function(U){U={_status:-1,_result:U};var oe={$$typeof:it,_payload:U,_init:je},we={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return U._ioInfo=we,oe._debugInfo=[{awaited:we}],oe},o.memo=function(U,oe){U==null&&console.error("memo: The first argument must be a component. Instead received: %s",U===null?"null":typeof U),oe={$$typeof:Qe,type:U,compare:oe===void 0?null:oe};var we;return Object.defineProperty(oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return we},set:function(Be){we=Be,U.name||U.displayName||(Object.defineProperty(U,"name",{value:Be}),U.displayName=Be)}}),oe},o.startTransition=function(U){var oe=Je.T,we={};we._updatedFibers=new Set,Je.T=we;try{var Be=U(),Fe=Je.S;Fe!==null&&Fe(we,Be),typeof Be=="object"&&Be!==null&&typeof Be.then=="function"&&(Je.asyncTransitions++,Be.then(ke,ke),Be.then(x,nl))}catch(ct){nl(ct)}finally{oe===null&&we._updatedFibers&&(U=we._updatedFibers.size,we._updatedFibers.clear(),10<U&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),oe!==null&&we.types!==null&&(oe.types!==null&&oe.types!==we.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),oe.types=we.types),Je.T=oe}},o.unstable_useCacheRefresh=function(){return Re().useCacheRefresh()},o.use=function(U){return Re().use(U)},o.useActionState=function(U,oe,we){return Re().useActionState(U,oe,we)},o.useCallback=function(U,oe){return Re().useCallback(U,oe)},o.useContext=function(U){var oe=Re();return U.$$typeof===re&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),oe.useContext(U)},o.useDebugValue=function(U,oe){return Re().useDebugValue(U,oe)},o.useDeferredValue=function(U,oe){return Re().useDeferredValue(U,oe)},o.useEffect=function(U,oe){return U==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Re().useEffect(U,oe)},o.useEffectEvent=function(U){return Re().useEffectEvent(U)},o.useId=function(){return Re().useId()},o.useImperativeHandle=function(U,oe,we){return Re().useImperativeHandle(U,oe,we)},o.useInsertionEffect=function(U,oe){return U==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Re().useInsertionEffect(U,oe)},o.useLayoutEffect=function(U,oe){return U==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Re().useLayoutEffect(U,oe)},o.useMemo=function(U,oe){return Re().useMemo(U,oe)},o.useOptimistic=function(U,oe){return Re().useOptimistic(U,oe)},o.useReducer=function(U,oe,we){return Re().useReducer(U,oe,we)},o.useRef=function(U){return Re().useRef(U)},o.useState=function(U){return Re().useState(U)},o.useSyncExternalStore=function(U,oe,we){return Re().useSyncExternalStore(U,oe,we)},o.useTransition=function(){return Re().useTransition()},o.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(py,py.exports)),py.exports}var TO;function ls(){return TO||(TO=1,process.env.NODE_ENV==="production"?eb.exports=Cj():eb.exports=Dj()),eb.exports}/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react-jsx-runtime.development.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var xO;function wj(){return xO||(xO=1,process.env.NODE_ENV!=="production"&&(function(){function n(N){if(N==null)return null;if(typeof N=="function")return N.$$typeof===je?null:N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case L:return"Fragment";case J:return"Profiler";case V:return"StrictMode";case P:return"Suspense";case ae:return"SuspenseList";case me:return"Activity"}if(typeof N=="object")switch(typeof N.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),N.$$typeof){case H:return"Portal";case K:return N.displayName||"Context";case F:return(N._context.displayName||"Context")+".Consumer";case k:var Z=N.render;return N=N.displayName,N||(N=Z.displayName||Z.name||"",N=N!==""?"ForwardRef("+N+")":"ForwardRef"),N;case $:return Z=N.displayName||null,Z!==null?Z:n(N.type)||"Memo";case Se:Z=N._payload,N=N._init;try{return n(N(Z))}catch{}}return null}function o(N){return""+N}function c(N){try{o(N);var Z=!1}catch{Z=!0}if(Z){Z=console;var ue=Z.error,re=typeof Symbol=="function"&&Symbol.toStringTag&&N[Symbol.toStringTag]||N.constructor.name||"Object";return ue.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",re),o(N)}}function s(N){if(N===L)return"<>";if(typeof N=="object"&&N!==null&&N.$$typeof===Se)return"<...>";try{var Z=n(N);return Z?"<"+Z+">":"<...>"}catch{return"<...>"}}function d(){var N=Re.A;return N===null?null:N.getOwner()}function p(){return Error("react-stack-top-frame")}function y(N){if(ke.call(N,"key")){var Z=Object.getOwnPropertyDescriptor(N,"key").get;if(Z&&Z.isReactWarning)return!1}return N.key!==void 0}function v(N,Z){function ue(){G||(G=!0,console.error("%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://react.dev/link/special-props)",Z))}ue.isReactWarning=!0,Object.defineProperty(N,"key",{get:ue,configurable:!0})}function x(){var N=n(this.type);return ce[N]||(ce[N]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),N=this.props.ref,N!==void 0?N:null}function E(N,Z,ue,re,De,Ue){var Me=ue.ref;return N={$$typeof:j,type:N,key:Z,props:ue,_owner:re},(Me!==void 0?Me:null)!==null?Object.defineProperty(N,"ref",{enumerable:!1,get:x}):Object.defineProperty(N,"ref",{enumerable:!1,value:null}),N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(N,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(N,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:De}),Object.defineProperty(N,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ue}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N}function O(N,Z,ue,re,De,Ue){var Me=Z.children;if(Me!==void 0)if(re)if(Ye(Me)){for(re=0;re<Me.length;re++)R(Me[re]);Object.freeze&&Object.freeze(Me)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(Me);if(ke.call(Z,"key")){Me=n(N);var Pe=Object.keys(Z).filter(function(it){return it!=="key"});re=0<Pe.length?"{key: someKey, "+Pe.join(": ..., ")+": ...}":"{key: someKey}",se[Me+re]||(Pe=0<Pe.length?"{"+Pe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
46
|
+
let props = %s;
|
|
47
|
+
<%s {...props} />
|
|
48
|
+
React keys must be passed directly to JSX without using spread:
|
|
49
|
+
let props = %s;
|
|
50
|
+
<%s key={someKey} {...props} />`,re,Me,Pe,Me),se[Me+re]=!0)}if(Me=null,ue!==void 0&&(c(ue),Me=""+ue),y(Z)&&(c(Z.key),Me=""+Z.key),"key"in Z){ue={};for(var Qe in Z)Qe!=="key"&&(ue[Qe]=Z[Qe])}else ue=Z;return Me&&v(ue,typeof N=="function"?N.displayName||N.name||"Unknown":N),E(N,Me,ue,d(),De,Ue)}function R(N){A(N)?N._store&&(N._store.validated=1):typeof N=="object"&&N!==null&&N.$$typeof===Se&&(N._payload.status==="fulfilled"?A(N._payload.value)&&N._payload.value._store&&(N._payload.value._store.validated=1):N._store&&(N._store.validated=1))}function A(N){return typeof N=="object"&&N!==null&&N.$$typeof===j}var w=ls(),j=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),K=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),je=Symbol.for("react.client.reference"),Re=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ke=Object.prototype.hasOwnProperty,Ye=Array.isArray,et=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(N){return N()}};var G,ce={},Ee=w.react_stack_bottom_frame.bind(w,p)(),ze=et(s(p)),se={};hy.Fragment=L,hy.jsx=function(N,Z,ue){var re=1e4>Re.recentlyCreatedOwnerStacks++;return O(N,Z,ue,!1,re?Error("react-stack-top-frame"):Ee,re?et(s(N)):ze)},hy.jsxs=function(N,Z,ue){var re=1e4>Re.recentlyCreatedOwnerStacks++;return O(N,Z,ue,!0,re?Error("react-stack-top-frame"):Ee,re?et(s(N)):ze)}})()),hy}var _O;function Mj(){return _O||(_O=1,process.env.NODE_ENV==="production"?W0.exports=Aj():W0.exports=wj()),W0.exports}var T=Mj(),tb={exports:{}},my={},nb={exports:{}},I1={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* scheduler.production.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var RO;function jj(){return RO||(RO=1,(function(n){function o(G,ce){var Ee=G.length;G.push(ce);e:for(;0<Ee;){var ze=Ee-1>>>1,se=G[ze];if(0<d(se,ce))G[ze]=ce,G[Ee]=se,Ee=ze;else break e}}function c(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var ce=G[0],Ee=G.pop();if(Ee!==ce){G[0]=Ee;e:for(var ze=0,se=G.length,N=se>>>1;ze<N;){var Z=2*(ze+1)-1,ue=G[Z],re=Z+1,De=G[re];if(0>d(ue,Ee))re<se&&0>d(De,ue)?(G[ze]=De,G[re]=Ee,ze=re):(G[ze]=ue,G[Z]=Ee,ze=Z);else if(re<se&&0>d(De,Ee))G[ze]=De,G[re]=Ee,ze=re;else break e}}return ce}function d(G,ce){var Ee=G.sortIndex-ce.sortIndex;return Ee!==0?Ee:G.id-ce.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;n.unstable_now=function(){return p.now()}}else{var y=Date,v=y.now();n.unstable_now=function(){return y.now()-v}}var x=[],E=[],O=1,R=null,A=3,w=!1,j=!1,H=!1,L=!1,V=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function K(G){for(var ce=c(E);ce!==null;){if(ce.callback===null)s(E);else if(ce.startTime<=G)s(E),ce.sortIndex=ce.expirationTime,o(x,ce);else break;ce=c(E)}}function k(G){if(H=!1,K(G),!j)if(c(x)!==null)j=!0,P||(P=!0,Re());else{var ce=c(E);ce!==null&&et(k,ce.startTime-G)}}var P=!1,ae=-1,$=5,Se=-1;function me(){return L?!0:!(n.unstable_now()-Se<$)}function je(){if(L=!1,P){var G=n.unstable_now();Se=G;var ce=!0;try{e:{j=!1,H&&(H=!1,J(ae),ae=-1),w=!0;var Ee=A;try{t:{for(K(G),R=c(x);R!==null&&!(R.expirationTime>G&&me());){var ze=R.callback;if(typeof ze=="function"){R.callback=null,A=R.priorityLevel;var se=ze(R.expirationTime<=G);if(G=n.unstable_now(),typeof se=="function"){R.callback=se,K(G),ce=!0;break t}R===c(x)&&s(x),K(G)}else s(x);R=c(x)}if(R!==null)ce=!0;else{var N=c(E);N!==null&&et(k,N.startTime-G),ce=!1}}break e}finally{R=null,A=Ee,w=!1}ce=void 0}}finally{ce?Re():P=!1}}}var Re;if(typeof F=="function")Re=function(){F(je)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,Ye=ke.port2;ke.port1.onmessage=je,Re=function(){Ye.postMessage(null)}}else Re=function(){V(je,0)};function et(G,ce){ae=V(function(){G(n.unstable_now())},ce)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(G){switch(A){case 1:case 2:case 3:var ce=3;break;default:ce=A}var Ee=A;A=ce;try{return G()}finally{A=Ee}},n.unstable_requestPaint=function(){L=!0},n.unstable_runWithPriority=function(G,ce){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var Ee=A;A=G;try{return ce()}finally{A=Ee}},n.unstable_scheduleCallback=function(G,ce,Ee){var ze=n.unstable_now();switch(typeof Ee=="object"&&Ee!==null?(Ee=Ee.delay,Ee=typeof Ee=="number"&&0<Ee?ze+Ee:ze):Ee=ze,G){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=Ee+se,G={id:O++,callback:ce,priorityLevel:G,startTime:Ee,expirationTime:se,sortIndex:-1},Ee>ze?(G.sortIndex=Ee,o(E,G),c(x)===null&&G===c(E)&&(H?(J(ae),ae=-1):H=!0,et(k,Ee-ze))):(G.sortIndex=se,o(x,G),j||w||(j=!0,P||(P=!0,Re()))),G},n.unstable_shouldYield=me,n.unstable_wrapCallback=function(G){var ce=A;return function(){var Ee=A;A=ce;try{return G.apply(this,arguments)}finally{A=Ee}}}})(I1)),I1}var Z1={};/**
|
|
59
|
+
* @license React
|
|
60
|
+
* scheduler.development.js
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/var OO;function Nj(){return OO||(OO=1,(function(n){process.env.NODE_ENV!=="production"&&(function(){function o(){if(k=!1,Se){var G=n.unstable_now();Re=G;var ce=!0;try{e:{F=!1,K&&(K=!1,ae(me),me=-1),J=!0;var Ee=V;try{t:{for(y(G),L=s(w);L!==null&&!(L.expirationTime>G&&x());){var ze=L.callback;if(typeof ze=="function"){L.callback=null,V=L.priorityLevel;var se=ze(L.expirationTime<=G);if(G=n.unstable_now(),typeof se=="function"){L.callback=se,y(G),ce=!0;break t}L===s(w)&&d(w),y(G)}else d(w);L=s(w)}if(L!==null)ce=!0;else{var N=s(j);N!==null&&E(v,N.startTime-G),ce=!1}}break e}finally{L=null,V=Ee,J=!1}ce=void 0}}finally{ce?ke():Se=!1}}}function c(G,ce){var Ee=G.length;G.push(ce);e:for(;0<Ee;){var ze=Ee-1>>>1,se=G[ze];if(0<p(se,ce))G[ze]=ce,G[Ee]=se,Ee=ze;else break e}}function s(G){return G.length===0?null:G[0]}function d(G){if(G.length===0)return null;var ce=G[0],Ee=G.pop();if(Ee!==ce){G[0]=Ee;e:for(var ze=0,se=G.length,N=se>>>1;ze<N;){var Z=2*(ze+1)-1,ue=G[Z],re=Z+1,De=G[re];if(0>p(ue,Ee))re<se&&0>p(De,ue)?(G[ze]=De,G[re]=Ee,ze=re):(G[ze]=ue,G[Z]=Ee,ze=Z);else if(re<se&&0>p(De,Ee))G[ze]=De,G[re]=Ee,ze=re;else break e}}return ce}function p(G,ce){var Ee=G.sortIndex-ce.sortIndex;return Ee!==0?Ee:G.id-ce.id}function y(G){for(var ce=s(j);ce!==null;){if(ce.callback===null)d(j);else if(ce.startTime<=G)d(j),ce.sortIndex=ce.expirationTime,c(w,ce);else break;ce=s(j)}}function v(G){if(K=!1,y(G),!F)if(s(w)!==null)F=!0,Se||(Se=!0,ke());else{var ce=s(j);ce!==null&&E(v,ce.startTime-G)}}function x(){return k?!0:!(n.unstable_now()-Re<je)}function E(G,ce){me=P(function(){G(n.unstable_now())},ce)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;n.unstable_now=function(){return O.now()}}else{var R=Date,A=R.now();n.unstable_now=function(){return R.now()-A}}var w=[],j=[],H=1,L=null,V=3,J=!1,F=!1,K=!1,k=!1,P=typeof setTimeout=="function"?setTimeout:null,ae=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null,Se=!1,me=-1,je=5,Re=-1;if(typeof $=="function")var ke=function(){$(o)};else if(typeof MessageChannel<"u"){var Ye=new MessageChannel,et=Ye.port2;Ye.port1.onmessage=o,ke=function(){et.postMessage(null)}}else ke=function(){P(o,0)};n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):je=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return V},n.unstable_next=function(G){switch(V){case 1:case 2:case 3:var ce=3;break;default:ce=V}var Ee=V;V=ce;try{return G()}finally{V=Ee}},n.unstable_requestPaint=function(){k=!0},n.unstable_runWithPriority=function(G,ce){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var Ee=V;V=G;try{return ce()}finally{V=Ee}},n.unstable_scheduleCallback=function(G,ce,Ee){var ze=n.unstable_now();switch(typeof Ee=="object"&&Ee!==null?(Ee=Ee.delay,Ee=typeof Ee=="number"&&0<Ee?ze+Ee:ze):Ee=ze,G){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=Ee+se,G={id:H++,callback:ce,priorityLevel:G,startTime:Ee,expirationTime:se,sortIndex:-1},Ee>ze?(G.sortIndex=Ee,c(j,G),s(w)===null&&G===s(j)&&(K?(ae(me),me=-1):K=!0,E(v,Ee-ze))):(G.sortIndex=se,c(w,G),F||J||(F=!0,Se||(Se=!0,ke()))),G},n.unstable_shouldYield=x,n.unstable_wrapCallback=function(G){var ce=V;return function(){var Ee=V;V=ce;try{return G.apply(this,arguments)}finally{V=Ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Z1)),Z1}var AO;function CO(){return AO||(AO=1,process.env.NODE_ENV==="production"?nb.exports=jj():nb.exports=Nj()),nb.exports}var ab={exports:{}},Ml={};/**
|
|
67
|
+
* @license React
|
|
68
|
+
* react-dom.production.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var DO;function zj(){if(DO)return Ml;DO=1;var n=ls();function o(x){var E="https://react.dev/errors/"+x;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)E+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+x+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(o(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function p(x,E,O){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:R==null?null:""+R,children:x,containerInfo:E,implementation:O}}var y=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(x,E){if(x==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return Ml.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ml.createPortal=function(x,E){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(o(299));return p(x,E,null,O)},Ml.flushSync=function(x){var E=y.T,O=s.p;try{if(y.T=null,s.p=2,x)return x()}finally{y.T=E,s.p=O,s.d.f()}},Ml.preconnect=function(x,E){typeof x=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,s.d.C(x,E))},Ml.prefetchDNS=function(x){typeof x=="string"&&s.d.D(x)},Ml.preinit=function(x,E){if(typeof x=="string"&&E&&typeof E.as=="string"){var O=E.as,R=v(O,E.crossOrigin),A=typeof E.integrity=="string"?E.integrity:void 0,w=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;O==="style"?s.d.S(x,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:R,integrity:A,fetchPriority:w}):O==="script"&&s.d.X(x,{crossOrigin:R,integrity:A,fetchPriority:w,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},Ml.preinitModule=function(x,E){if(typeof x=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var O=v(E.as,E.crossOrigin);s.d.M(x,{crossOrigin:O,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&s.d.M(x)},Ml.preload=function(x,E){if(typeof x=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var O=E.as,R=v(O,E.crossOrigin);s.d.L(x,O,{crossOrigin:R,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},Ml.preloadModule=function(x,E){if(typeof x=="string")if(E){var O=v(E.as,E.crossOrigin);s.d.m(x,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:O,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else s.d.m(x)},Ml.requestFormReset=function(x){s.d.r(x)},Ml.unstable_batchedUpdates=function(x,E){return x(E)},Ml.useFormState=function(x,E,O){return y.H.useFormState(x,E,O)},Ml.useFormStatus=function(){return y.H.useHostTransitionStatus()},Ml.version="19.2.4",Ml}var jl={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-dom.development.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/var wO;function Uj(){return wO||(wO=1,process.env.NODE_ENV!=="production"&&(function(){function n(){}function o(R){return""+R}function c(R,A,w){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(j);var H=!1}catch{H=!0}return H&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object"),o(j)),{$$typeof:E,key:j==null?null:""+j,children:R,containerInfo:A,implementation:w}}function s(R,A){if(R==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}function d(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function p(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R=="string"?JSON.stringify(R):typeof R=="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function y(){var R=O.H;return R===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
83
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
84
|
+
2. You might be breaking the Rules of Hooks
|
|
85
|
+
3. You might have more than one copy of React in the same app
|
|
86
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var v=ls(),x={d:{f:n,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},E=Symbol.for("react.portal"),O=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;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"||console.error("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"),jl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,jl.createPortal=function(R,A){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return c(R,A,null,w)},jl.flushSync=function(R){var A=O.T,w=x.p;try{if(O.T=null,x.p=2,R)return R()}finally{O.T=A,x.p=w,x.d.f()&&console.error("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.")}},jl.preconnect=function(R,A){typeof R=="string"&&R?A!=null&&typeof A!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",p(A)):A!=null&&typeof A.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",d(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",d(R)),typeof R=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,x.d.C(R,A))},jl.prefetchDNS=function(R){if(typeof R!="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",d(R));else if(1<arguments.length){var A=arguments[1];typeof A=="object"&&A.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(A)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(A))}typeof R=="string"&&x.d.D(R)},jl.preinit=function(R,A){if(typeof R=="string"&&R?A==null||typeof A!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",p(A)):A.as!=="style"&&A.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',p(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",d(R)),typeof R=="string"&&A&&typeof A.as=="string"){var w=A.as,j=s(w,A.crossOrigin),H=typeof A.integrity=="string"?A.integrity:void 0,L=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;w==="style"?x.d.S(R,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:j,integrity:H,fetchPriority:L}):w==="script"&&x.d.X(R,{crossOrigin:j,integrity:H,fetchPriority:L,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},jl.preinitModule=function(R,A){var w="";if(typeof R=="string"&&R||(w+=" The `href` argument encountered was "+d(R)+"."),A!==void 0&&typeof A!="object"?w+=" The `options` argument encountered was "+d(A)+".":A&&"as"in A&&A.as!=="script"&&(w+=" The `as` option encountered was "+p(A.as)+"."),w)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",w);else switch(w=A&&typeof A.as=="string"?A.as:"script",w){case"script":break;default:w=p(w),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',w,R)}typeof R=="string"&&(typeof A=="object"&&A!==null?(A.as==null||A.as==="script")&&(w=s(A.as,A.crossOrigin),x.d.M(R,{crossOrigin:w,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})):A==null&&x.d.M(R))},jl.preload=function(R,A){var w="";if(typeof R=="string"&&R||(w+=" The `href` argument encountered was "+d(R)+"."),A==null||typeof A!="object"?w+=" The `options` argument encountered was "+d(A)+".":typeof A.as=="string"&&A.as||(w+=" The `as` option encountered was "+d(A.as)+"."),w&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',w),typeof R=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){w=A.as;var j=s(w,A.crossOrigin);x.d.L(R,w,{crossOrigin:j,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},jl.preloadModule=function(R,A){var w="";typeof R=="string"&&R||(w+=" The `href` argument encountered was "+d(R)+"."),A!==void 0&&typeof A!="object"?w+=" The `options` argument encountered was "+d(A)+".":A&&"as"in A&&typeof A.as!="string"&&(w+=" The `as` option encountered was "+d(A.as)+"."),w&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',w),typeof R=="string"&&(A?(w=s(A.as,A.crossOrigin),x.d.m(R,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:w,integrity:typeof A.integrity=="string"?A.integrity:void 0})):x.d.m(R))},jl.requestFormReset=function(R){x.d.r(R)},jl.unstable_batchedUpdates=function(R,A){return R(A)},jl.useFormState=function(R,A,w){return y().useFormState(R,A,w)},jl.useFormStatus=function(){return y().useHostTransitionStatus()},jl.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),jl}var MO;function J1(){if(MO)return ab.exports;MO=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}}return process.env.NODE_ENV==="production"?(n(),ab.exports=zj()):ab.exports=Uj(),ab.exports}/**
|
|
87
|
+
* @license React
|
|
88
|
+
* react-dom-client.production.js
|
|
89
|
+
*
|
|
90
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the MIT license found in the
|
|
93
|
+
* LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/var jO;function Lj(){if(jO)return my;jO=1;var n=CO(),o=ls(),c=J1();function s(a){var r="https://react.dev/errors/"+a;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+a+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function p(a){var r=a,i=a;if(a.alternate)for(;r.return;)r=r.return;else{a=r;do r=a,(r.flags&4098)!==0&&(i=r.return),a=r.return;while(a)}return r.tag===3?i:null}function y(a){if(a.tag===13){var r=a.memoizedState;if(r===null&&(a=a.alternate,a!==null&&(r=a.memoizedState)),r!==null)return r.dehydrated}return null}function v(a){if(a.tag===31){var r=a.memoizedState;if(r===null&&(a=a.alternate,a!==null&&(r=a.memoizedState)),r!==null)return r.dehydrated}return null}function x(a){if(p(a)!==a)throw Error(s(188))}function E(a){var r=a.alternate;if(!r){if(r=p(a),r===null)throw Error(s(188));return r!==a?null:a}for(var i=a,f=r;;){var g=i.return;if(g===null)break;var b=g.alternate;if(b===null){if(f=g.return,f!==null){i=f;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===i)return x(g),a;if(b===f)return x(g),r;b=b.sibling}throw Error(s(188))}if(i.return!==f.return)i=g,f=b;else{for(var C=!1,B=g.child;B;){if(B===i){C=!0,i=g,f=b;break}if(B===f){C=!0,f=g,i=b;break}B=B.sibling}if(!C){for(B=b.child;B;){if(B===i){C=!0,i=b,f=g;break}if(B===f){C=!0,f=b,i=g;break}B=B.sibling}if(!C)throw Error(s(189))}}if(i.alternate!==f)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?a:r}function O(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a;for(a=a.child;a!==null;){if(r=O(a),r!==null)return r;a=a.sibling}return null}var R=Object.assign,A=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),F=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),Se=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),je=Symbol.iterator;function Re(a){return a===null||typeof a!="object"?null:(a=je&&a[je]||a["@@iterator"],typeof a=="function"?a:null)}var ke=Symbol.for("react.client.reference");function Ye(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ke?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case H:return"Fragment";case V:return"Profiler";case L:return"StrictMode";case k:return"Suspense";case P:return"SuspenseList";case Se:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case j:return"Portal";case F:return a.displayName||"Context";case J:return(a._context.displayName||"Context")+".Consumer";case K:var r=a.render;return a=a.displayName,a||(a=r.displayName||r.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case ae:return r=a.displayName||null,r!==null?r:Ye(a.type)||"Memo";case $:r=a._payload,a=a._init;try{return Ye(a(r))}catch{}}return null}var et=Array.isArray,G=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ee={pending:!1,data:null,method:null,action:null},ze=[],se=-1;function N(a){return{current:a}}function Z(a){0>se||(a.current=ze[se],ze[se]=null,se--)}function ue(a,r){se++,ze[se]=a.current,a.current=r}var re=N(null),De=N(null),Ue=N(null),Me=N(null);function Pe(a,r){switch(ue(Ue,r),ue(De,a),ue(re,null),r.nodeType){case 9:case 11:a=(a=r.documentElement)&&(a=a.namespaceURI)?HS(a):0;break;default:if(a=r.tagName,r=r.namespaceURI)r=HS(r),a=Xv(r,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}Z(re),ue(re,a)}function Qe(){Z(re),Z(De),Z(Ue)}function it(a){a.memoizedState!==null&&ue(Me,a);var r=re.current,i=Xv(r,a.type);r!==i&&(ue(De,a),ue(re,i))}function Le(a){De.current===a&&(Z(re),Z(De)),Me.current===a&&(Z(Me),ih._currentValue=Ee)}var $e,Ct;function an(a){if($e===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);$e=r&&r[1]||"",Ct=-1<i.stack.indexOf(`
|
|
95
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
96
|
+
`+$e+a+Ct}var Mt=!1;function Vt(a,r){if(!a||Mt)return"";Mt=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(r){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(be){var he=be}Reflect.construct(a,[],Oe)}else{try{Oe.call()}catch(be){he=be}a.call(Oe.prototype)}}else{try{throw Error()}catch(be){he=be}(Oe=a())&&typeof Oe.catch=="function"&&Oe.catch(function(){})}}catch(be){if(be&&he&&typeof be.stack=="string")return[be.stack,he.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=f.DetermineComponentFrameRoot(),C=b[0],B=b[1];if(C&&B){var I=C.split(`
|
|
97
|
+
`),de=B.split(`
|
|
98
|
+
`);for(g=f=0;f<I.length&&!I[f].includes("DetermineComponentFrameRoot");)f++;for(;g<de.length&&!de[g].includes("DetermineComponentFrameRoot");)g++;if(f===I.length||g===de.length)for(f=I.length-1,g=de.length-1;1<=f&&0<=g&&I[f]!==de[g];)g--;for(;1<=f&&0<=g;f--,g--)if(I[f]!==de[g]){if(f!==1||g!==1)do if(f--,g--,0>g||I[f]!==de[g]){var Te=`
|
|
99
|
+
`+I[f].replace(" at new "," at ");return a.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",a.displayName)),Te}while(1<=f&&0<=g);break}}}finally{Mt=!1,Error.prepareStackTrace=i}return(i=a?a.displayName||a.name:"")?an(i):""}function sn(a,r){switch(a.tag){case 26:case 27:case 5:return an(a.type);case 16:return an("Lazy");case 13:return a.child!==r&&r!==null?an("Suspense Fallback"):an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return Vt(a.type,!1);case 11:return Vt(a.type.render,!1);case 1:return Vt(a.type,!0);case 31:return an("Activity");default:return""}}function Qr(a){try{var r="",i=null;do r+=sn(a,i),i=a,a=a.return;while(a);return r}catch(f){return`
|
|
100
|
+
Error generating stack: `+f.message+`
|
|
101
|
+
`+f.stack}}var xi=Object.prototype.hasOwnProperty,Je=n.unstable_scheduleCallback,Tr=n.unstable_cancelCallback,Ul=n.unstable_shouldYield,Xr=n.unstable_requestPaint,jn=n.unstable_now,Ll=n.unstable_getCurrentPriorityLevel,Rt=n.unstable_ImmediatePriority,tl=n.unstable_UserBlockingPriority,Da=n.unstable_NormalPriority,Bl=n.unstable_LowPriority,nl=n.unstable_IdlePriority,ru=n.log,_i=n.unstable_setDisableYieldValue,al=null,ea=null;function qn(a){if(typeof ru=="function"&&_i(a),ea&&typeof ea.setStrictMode=="function")try{ea.setStrictMode(al,a)}catch{}}var ta=Math.clz32?Math.clz32:oe,Ir=Math.log,U=Math.LN2;function oe(a){return a>>>=0,a===0?32:31-(Ir(a)/U|0)|0}var we=256,Be=262144,Fe=4194304;function ct(a){var r=a&42;if(r!==0)return r;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function tt(a,r,i){var f=a.pendingLanes;if(f===0)return 0;var g=0,b=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var B=f&134217727;return B!==0?(f=B&~b,f!==0?g=ct(f):(C&=B,C!==0?g=ct(C):i||(i=B&~a,i!==0&&(g=ct(i))))):(B=f&~b,B!==0?g=ct(B):C!==0?g=ct(C):i||(i=f&~a,i!==0&&(g=ct(i)))),g===0?0:r!==0&&r!==g&&(r&b)===0&&(b=g&-g,i=r&-r,b>=i||b===32&&(i&4194048)!==0)?r:g}function Dt(a,r){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&r)===0}function bt(a,r){switch(a){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ba(){var a=Fe;return Fe<<=1,(Fe&62914560)===0&&(Fe=4194304),a}function Ia(a){for(var r=[],i=0;31>i;i++)r.push(a);return r}function Kl(a,r){a.pendingLanes|=r,r!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Ri(a,r,i,f,g,b){var C=a.pendingLanes;a.pendingLanes=i,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=i,a.entangledLanes&=i,a.errorRecoveryDisabledLanes&=i,a.shellSuspendCounter=0;var B=a.entanglements,I=a.expirationTimes,de=a.hiddenUpdates;for(i=C&~i;0<i;){var Te=31-ta(i),Oe=1<<Te;B[Te]=0,I[Te]=-1;var he=de[Te];if(he!==null)for(de[Te]=null,Te=0;Te<he.length;Te++){var be=he[Te];be!==null&&(be.lane&=-536870913)}i&=~Oe}f!==0&&Pu(a,f,0),b!==0&&g===0&&a.tag!==0&&(a.suspendedLanes|=b&~(C&~r))}function Pu(a,r,i){a.pendingLanes|=r,a.suspendedLanes&=~r;var f=31-ta(r);a.entangledLanes|=r,a.entanglements[f]=a.entanglements[f]|1073741824|i&261930}function xr(a,r){var i=a.entangledLanes|=r;for(a=a.entanglements;i;){var f=31-ta(i),g=1<<f;g&r|a[f]&r&&(a[f]|=r),i&=~g}}function Y(a,r){var i=r&-r;return i=(i&42)!==0?1:le(i),(i&(a.suspendedLanes|r))!==0?0:i}function le(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function ye(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Ne(){var a=ce.p;return a!==0?a:(a=window.event,a===void 0?32:uh(a.type))}function He(a,r){var i=ce.p;try{return ce.p=a,r()}finally{ce.p=i}}var Ke=Math.random().toString(36).slice(2),Ve="__reactFiber$"+Ke,Xe="__reactProps$"+Ke,Ie="__reactContainer$"+Ke,rt="__reactEvents$"+Ke,mt="__reactListeners$"+Ke,lt="__reactHandles$"+Ke,wt="__reactResources$"+Ke,xt="__reactMarker$"+Ke;function gn(a){delete a[Ve],delete a[Xe],delete a[rt],delete a[mt],delete a[lt]}function Rn(a){var r=a[Ve];if(r)return r;for(var i=a.parentNode;i;){if(r=i[Ie]||i[Ve]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(a=go(a);a!==null;){if(i=a[Ve])return i;a=go(a)}return r}a=i,i=a.parentNode}return null}function Yn(a){if(a=a[Ve]||a[Ie]){var r=a.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return a}return null}function Kt(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a.stateNode;throw Error(s(33))}function fa(a){var r=a[wt];return r||(r=a[wt]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function qt(a){a[xt]=!0}var Pl=new Set,Za={};function Ea(a,r){Hl(a,r),Hl(a+"Capture",r)}function Hl(a,r){for(Za[a]=r,a=0;a<r.length;a++)Pl.add(r[a])}var wo=RegExp("^[: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]*$"),_r={},Zr={};function Jr(a){return xi.call(Zr,a)?!0:xi.call(_r,a)?!1:wo.test(a)?Zr[a]=!0:(_r[a]=!0,!1)}function Ut(a,r,i){if(Jr(r))if(i===null)a.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":a.removeAttribute(r);return;case"boolean":var f=r.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){a.removeAttribute(r);return}}a.setAttribute(r,""+i)}}function na(a,r,i){if(i===null)a.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(r);return}a.setAttribute(r,""+i)}}function ll(a,r,i,f){if(f===null)a.removeAttribute(i);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttributeNS(r,i,""+f)}}function aa(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function _n(a){var r=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function ou(a,r,i){var f=Object.getOwnPropertyDescriptor(a.constructor.prototype,r);if(!a.hasOwnProperty(r)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,b=f.set;return Object.defineProperty(a,r,{configurable:!0,get:function(){return g.call(this)},set:function(C){i=""+C,b.call(this,C)}}),Object.defineProperty(a,r,{enumerable:f.enumerable}),{getValue:function(){return i},setValue:function(C){i=""+C},stopTracking:function(){a._valueTracker=null,delete a[r]}}}}function Wu(a){if(!a._valueTracker){var r=_n(a)?"checked":"value";a._valueTracker=ou(a,r,""+a[r])}}function Jf(a){if(!a)return!1;var r=a._valueTracker;if(!r)return!0;var i=r.getValue(),f="";return a&&(f=_n(a)?a.checked?"true":"false":a.value),a=f,a!==i?(r.setValue(a),!0):!1}function Ff(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}}var Z_=/[\n"\\]/g;function Wl(a){return a.replace(Z_,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Kf(a,r,i,f,g,b,C,B){a.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.type=C:a.removeAttribute("type"),r!=null?C==="number"?(r===0&&a.value===""||a.value!=r)&&(a.value=""+aa(r)):a.value!==""+aa(r)&&(a.value=""+aa(r)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),r!=null?ec(a,C,aa(r)):i!=null?ec(a,C,aa(i)):f!=null&&a.removeAttribute("value"),g==null&&b!=null&&(a.defaultChecked=!!b),g!=null&&(a.checked=g&&typeof g!="function"&&typeof g!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?a.name=""+aa(B):a.removeAttribute("name")}function Pf(a,r,i,f,g,b,C,B){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),r!=null||i!=null){if(!(b!=="submit"&&b!=="reset"||r!=null)){Wu(a);return}i=i!=null?""+aa(i):"",r=r!=null?""+aa(r):i,B||r===a.value||(a.value=r),a.defaultValue=r}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,a.checked=B?a.checked:!!f,a.defaultChecked=!!f,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.name=C),Wu(a)}function ec(a,r,i){r==="number"&&Ff(a.ownerDocument)===a||a.defaultValue===""+i||(a.defaultValue=""+i)}function ps(a,r,i,f){if(a=a.options,r){r={};for(var g=0;g<i.length;g++)r["$"+i[g]]=!0;for(i=0;i<a.length;i++)g=r.hasOwnProperty("$"+a[i].value),a[i].selected!==g&&(a[i].selected=g),g&&f&&(a[i].defaultSelected=!0)}else{for(i=""+aa(i),r=null,g=0;g<a.length;g++){if(a[g].value===i){a[g].selected=!0,f&&(a[g].defaultSelected=!0);return}r!==null||a[g].disabled||(r=a[g])}r!==null&&(r.selected=!0)}}function ug(a,r,i){if(r!=null&&(r=""+aa(r),r!==a.value&&(a.value=r),i==null)){a.defaultValue!==r&&(a.defaultValue=r);return}a.defaultValue=i!=null?""+aa(i):""}function cg(a,r,i,f){if(r==null){if(f!=null){if(i!=null)throw Error(s(92));if(et(f)){if(1<f.length)throw Error(s(93));f=f[0]}i=f}i==null&&(i=""),r=i}i=aa(r),a.defaultValue=i,f=a.textContent,f===i&&f!==""&&f!==null&&(a.value=f),Wu(a)}function Mo(a,r){if(r){var i=a.firstChild;if(i&&i===a.lastChild&&i.nodeType===3){i.nodeValue=r;return}}a.textContent=r}var AE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function CE(a,r,i){var f=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?f?a.setProperty(r,""):r==="float"?a.cssFloat="":a[r]="":f?a.setProperty(r,i):typeof i!="number"||i===0||AE.has(r)?r==="float"?a.cssFloat=i:a[r]=(""+i).trim():a[r]=i+"px"}function DE(a,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(a=a.style,i!=null){for(var f in i)!i.hasOwnProperty(f)||r!=null&&r.hasOwnProperty(f)||(f.indexOf("--")===0?a.setProperty(f,""):f==="float"?a.cssFloat="":a[f]="");for(var g in r)f=r[g],r.hasOwnProperty(g)&&i[g]!==f&&CE(a,g,f)}else for(var b in r)r.hasOwnProperty(b)&&CE(a,b,r[b])}function sg(a){if(a.indexOf("-")===-1)return!1;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 J_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Wf=/^[\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;function Rr(a){return Wf.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Fr(){}var tp=null;function np(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var jo=null,tc=null;function ed(a){var r=Yn(a);if(r&&(a=r.stateNode)){var i=a[Xe]||null;e:switch(a=r.stateNode,r.type){case"input":if(Kf(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=a;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Wl(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var f=i[r];if(f!==a&&f.form===a.form){var g=f[Xe]||null;if(!g)throw Error(s(90));Kf(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(r=0;r<i.length;r++)f=i[r],f.form===a.form&&Jf(f)}break e;case"textarea":ug(a,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&ps(a,!!i.multiple,r,!1)}}}var ms=!1;function fg(a,r,i){if(ms)return a(r,i);ms=!0;try{var f=a(r);return f}finally{if(ms=!1,(jo!==null||tc!==null)&&(Ks(),jo&&(r=jo,a=tc,tc=jo=null,ed(r),a)))for(r=0;r<a.length;r++)ed(a[r])}}function wa(a,r){var i=a.stateNode;if(i===null)return null;var f=i[Xe]||null;if(f===null)return null;i=f[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(a=a.type,f=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!f;break e;default:a=!1}if(a)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var Oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=!1;if(Oi)try{var ys={};Object.defineProperty(ys,"passive",{get:function(){td=!0}}),window.addEventListener("test",ys,ys),window.removeEventListener("test",ys,ys)}catch{td=!1}var Ai=null,dg=null,ap=null;function hg(){if(ap)return ap;var a,r=dg,i=r.length,f,g="value"in Ai?Ai.value:Ai.textContent,b=g.length;for(a=0;a<i&&r[a]===g[a];a++);var C=i-a;for(f=1;f<=C&&r[i-f]===g[b-f];f++);return ap=g.slice(a,1<f?1-f:void 0)}function lp(a){var r=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&r===13&&(a=13)):a=r,a===10&&(a=13),32<=a||a===13?a:0}function nd(){return!0}function wE(){return!1}function Ja(a){function r(i,f,g,b,C){this._reactName=i,this._targetInst=g,this.type=f,this.nativeEvent=b,this.target=C,this.currentTarget=null;for(var B in a)a.hasOwnProperty(B)&&(i=a[B],this[B]=i?i(b):b[B]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?nd:wE,this.isPropagationStopped=wE,this}return R(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=nd)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=nd)},persist:function(){},isPersistent:nd}),r}var iu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ad=Ja(iu),gs=R({},iu,{view:0,detail:0}),F_=Ja(gs),pg,mg,ld,rp=R({},gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,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!==ld&&(ld&&a.type==="mousemove"?(pg=a.screenX-ld.screenX,mg=a.screenY-ld.screenY):mg=pg=0,ld=a),pg)},movementY:function(a){return"movementY"in a?a.movementY:mg}}),vs=Ja(rp),ME=R({},rp,{dataTransfer:0}),jE=Ja(ME),NE=R({},gs,{relatedTarget:0}),op=Ja(NE),yg=R({},iu,{animationName:0,elapsedTime:0,pseudoElement:0}),zE=Ja(yg),nc=R({},iu,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),ac=Ja(nc),Kr=R({},iu,{data:0}),UE=Ja(Kr),gg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},No={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"},LE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(a){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(a):(a=LE[a])?!!r[a]:!1}function Or(){return Pr}var ip=R({},gs,{key:function(a){if(a.key){var r=gg[a.key]||a.key;if(r!=="Unidentified")return r}return a.type==="keypress"?(a=lp(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?No[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(a){return a.type==="keypress"?lp(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?lp(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),up=Ja(ip),vg=R({},rp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wr=Ja(vg),K_=R({},gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or}),BE=Ja(K_),HE=R({},iu,{propertyName:0,elapsedTime:0,pseudoElement:0}),P_=Ja(HE),bg=R({},rp,{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}),W_=Ja(bg),$E=R({},iu,{newState:0,oldState:0}),Eg=Ja($E),cp=[9,13,27,32],bs=Oi&&"CompositionEvent"in window,lc=null;Oi&&"documentMode"in document&&(lc=document.documentMode);var rl=Oi&&"TextEvent"in window&&!lc,Sg=Oi&&(!bs||lc&&8<lc&&11>=lc),rd=" ",uu=!1;function sp(a,r){switch(a){case"keyup":return cp.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tg(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var rc=!1;function VE(a,r){switch(a){case"compositionend":return Tg(r);case"keypress":return r.which!==32?null:(uu=!0,rd);case"textInput":return a=r.data,a===rd&&uu?null:a;default:return null}}function eR(a,r){if(rc)return a==="compositionend"||!bs&&sp(a,r)?(a=hg(),ap=dg=Ai=null,rc=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Sg&&r.locale!=="ko"?null:r.data;default:return null}}var xg={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 zo(a){var r=a&&a.nodeName&&a.nodeName.toLowerCase();return r==="input"?!!xg[a.type]:r==="textarea"}function _g(a,r,i,f){jo?tc?tc.push(f):tc=[f]:jo=f,r=th(r,"onChange"),0<r.length&&(i=new ad("onChange","change",null,i,f),a.push({event:i,listeners:r}))}var oc=null,cu=null;function ic(a){US(a,0)}function Es(a){var r=Kt(a);if(Jf(r))return a}function Rg(a,r){if(a==="change")return r}var fp=!1;if(Oi){var ml;if(Oi){var eo="oninput"in document;if(!eo){var Og=document.createElement("div");Og.setAttribute("oninput","return;"),eo=typeof Og.oninput=="function"}ml=eo}else ml=!1;fp=ml&&(!document.documentMode||9<document.documentMode)}function dp(){oc&&(oc.detachEvent("onpropertychange",hp),cu=oc=null)}function hp(a){if(a.propertyName==="value"&&Es(cu)){var r=[];_g(r,cu,a,np(a)),fg(ic,r)}}function kE(a,r,i){a==="focusin"?(dp(),oc=r,cu=i,oc.attachEvent("onpropertychange",hp)):a==="focusout"&&dp()}function GE(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Es(cu)}function su(a,r){if(a==="click")return Es(r)}function uc(a,r){if(a==="input"||a==="change")return Es(r)}function qE(a,r){return a===r&&(a!==0||1/a===1/r)||a!==a&&r!==r}var ol=typeof Object.is=="function"?Object.is:qE;function Ar(a,r){if(ol(a,r))return!0;if(typeof a!="object"||a===null||typeof r!="object"||r===null)return!1;var i=Object.keys(a),f=Object.keys(r);if(i.length!==f.length)return!1;for(f=0;f<i.length;f++){var g=i[f];if(!xi.call(r,g)||!ol(a[g],r[g]))return!1}return!0}function Ag(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Cg(a,r){var i=Ag(a);a=0;for(var f;i;){if(i.nodeType===3){if(f=a+i.textContent.length,a<=r&&f>=r)return{node:i,offset:r-a};a=f}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Ag(i)}}function cc(a,r){return a&&r?a===r?!0:a&&a.nodeType===3?!1:r&&r.nodeType===3?cc(a,r.parentNode):"contains"in a?a.contains(r):a.compareDocumentPosition?!!(a.compareDocumentPosition(r)&16):!1:!1}function fu(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var r=Ff(a.document);r instanceof a.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)a=r.contentWindow;else break;r=Ff(a.document)}return r}function od(a){var r=a&&a.nodeName&&a.nodeName.toLowerCase();return r&&(r==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||r==="textarea"||a.contentEditable==="true")}var id=Oi&&"documentMode"in document&&11>=document.documentMode,du=null,Ss=null,Cr=null,to=!1;function pp(a,r,i){var f=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;to||du==null||du!==Ff(f)||(f=du,"selectionStart"in f&&od(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Cr&&Ar(Cr,f)||(Cr=f,f=th(Ss,"onSelect"),0<f.length&&(r=new ad("onSelect","select",null,r,i),a.push({event:r,listeners:f}),r.target=du)))}function Ci(a,r){var i={};return i[a.toLowerCase()]=r.toLowerCase(),i["Webkit"+a]="webkit"+r,i["Moz"+a]="moz"+r,i}var no={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},Ts={},hu={};Oi&&(hu=document.createElement("div").style,"AnimationEvent"in window||(delete no.animationend.animation,delete no.animationiteration.animation,delete no.animationstart.animation),"TransitionEvent"in window||delete no.transitionend.transition);function on(a){if(Ts[a])return Ts[a];if(!no[a])return a;var r=no[a],i;for(i in r)if(r.hasOwnProperty(i)&&i in hu)return Ts[a]=r[i];return a}var ud=on("animationend"),Dg=on("animationiteration"),mp=on("animationstart"),sc=on("transitionrun"),cd=on("transitionstart"),Uo=on("transitioncancel"),YE=on("transitionend"),Lo=new Map,xs="abort auxClick beforeToggle 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(" ");xs.push("scrollEnd");function yl(a,r){Lo.set(a,r),Ea(r,[a])}var fc=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Un=[],Ma=0,Dr=0;function er(){for(var a=Ma,r=Dr=Ma=0;r<a;){var i=Un[r];Un[r++]=null;var f=Un[r];Un[r++]=null;var g=Un[r];Un[r++]=null;var b=Un[r];if(Un[r++]=null,f!==null&&g!==null){var C=f.pending;C===null?g.next=g:(g.next=C.next,C.next=g),f.pending=g}b!==0&&yp(i,g,b)}}function tr(a,r,i,f){Un[Ma++]=a,Un[Ma++]=r,Un[Ma++]=i,Un[Ma++]=f,Dr|=f,a.lanes|=f,a=a.alternate,a!==null&&(a.lanes|=f)}function wr(a,r,i,f){return tr(a,r,i,f),sd(a)}function Di(a,r){return tr(a,null,null,r),sd(a)}function yp(a,r,i){a.lanes|=i;var f=a.alternate;f!==null&&(f.lanes|=i);for(var g=!1,b=a.return;b!==null;)b.childLanes|=i,f=b.alternate,f!==null&&(f.childLanes|=i),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(g=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,g&&r!==null&&(g=31-ta(i),a=b.hiddenUpdates,f=a[g],f===null?a[g]=[r]:f.push(r),r.lane=i|536870912),b):null}function sd(a){if(50<Fs)throw Fs=0,Xd=null,Error(s(185));for(var r=a.return;r!==null;)a=r,r=a.return;return a.tag===3?a.stateNode:null}var gl={};function QE(a,r,i,f){this.tag=a,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jn(a,r,i,f){return new QE(a,r,i,f)}function dc(a){return a=a.prototype,!(!a||!a.isReactComponent)}function wi(a,r){var i=a.alternate;return i===null?(i=Jn(a.tag,r,a.key,a.mode),i.elementType=a.elementType,i.type=a.type,i.stateNode=a.stateNode,i.alternate=a,a.alternate=i):(i.pendingProps=r,i.type=a.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=a.flags&65011712,i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,r=a.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=a.sibling,i.index=a.index,i.ref=a.ref,i.refCleanup=a.refCleanup,i}function wg(a,r){a.flags&=65011714;var i=a.alternate;return i===null?(a.childLanes=0,a.lanes=r,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,r=i.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a}function gp(a,r,i,f,g,b){var C=0;if(f=a,typeof a=="function")dc(a)&&(C=1);else if(typeof a=="string")C=Wv(a,i,re.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case Se:return a=Jn(31,i,r,g),a.elementType=Se,a.lanes=b,a;case H:return Mi(i.children,g,b,r);case L:C=8,g|=24;break;case V:return a=Jn(12,i,r,g|2),a.elementType=V,a.lanes=b,a;case k:return a=Jn(13,i,r,g),a.elementType=k,a.lanes=b,a;case P:return a=Jn(19,i,r,g),a.elementType=P,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case F:C=10;break e;case J:C=9;break e;case K:C=11;break e;case ae:C=14;break e;case $:C=16,f=null;break e}C=29,i=Error(s(130,a===null?"null":typeof a,"")),f=null}return r=Jn(C,i,r,g),r.elementType=a,r.type=f,r.lanes=b,r}function Mi(a,r,i,f){return a=Jn(7,a,f,r),a.lanes=i,a}function _s(a,r,i){return a=Jn(6,a,null,r),a.lanes=i,a}function Mg(a){var r=Jn(18,null,null,0);return r.stateNode=a,r}function vp(a,r,i){return r=Jn(4,a.children!==null?a.children:[],a.key,r),r.lanes=i,r.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},r}var jg=new WeakMap;function nr(a,r){if(typeof a=="object"&&a!==null){var i=jg.get(a);return i!==void 0?i:(r={value:a,source:r,stack:Qr(r)},jg.set(a,r),r)}return{value:a,source:r,stack:Qr(r)}}var ar=[],hc=0,fd=null,la=0,$l=[],vl=0,ao=null,Vl=1,lo="";function Mr(a,r){ar[hc++]=la,ar[hc++]=fd,fd=a,la=r}function Ng(a,r,i){$l[vl++]=Vl,$l[vl++]=lo,$l[vl++]=ao,ao=a;var f=Vl;a=lo;var g=32-ta(f)-1;f&=~(1<<g),i+=1;var b=32-ta(r)+g;if(30<b){var C=g-g%5;b=(f&(1<<C)-1).toString(32),f>>=C,g-=C,Vl=1<<32-ta(r)+g|i<<g|f,lo=b+a}else Vl=1<<b|i<<g|f,lo=a}function Rs(a){a.return!==null&&(Mr(a,1),Ng(a,1,0))}function bp(a){for(;a===fd;)fd=ar[--hc],ar[hc]=null,la=ar[--hc],ar[hc]=null;for(;a===ao;)ao=$l[--vl],$l[vl]=null,lo=$l[--vl],$l[vl]=null,Vl=$l[--vl],$l[vl]=null}function dd(a,r){$l[vl++]=Vl,$l[vl++]=lo,$l[vl++]=ao,Vl=r.id,lo=r.overflow,ao=a}var ja=null,On=null,Xt=!1,Bo=null,Sa=!1,Ho=Error(s(519));function jr(a){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw As(nr(r,a)),Ho}function hd(a){var r=a.stateNode,i=a.type,f=a.memoizedProps;switch(r[Ve]=a,r[Xe]=f,i){case"dialog":Yt("cancel",r),Yt("close",r);break;case"iframe":case"object":case"embed":Yt("load",r);break;case"video":case"audio":for(i=0;i<nf.length;i++)Yt(nf[i],r);break;case"source":Yt("error",r);break;case"img":case"image":case"link":Yt("error",r),Yt("load",r);break;case"details":Yt("toggle",r);break;case"input":Yt("invalid",r),Pf(r,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":Yt("invalid",r);break;case"textarea":Yt("invalid",r),cg(r,f.value,f.defaultValue,f.children)}i=f.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||f.suppressHydrationWarning===!0||Gv(r.textContent,i)?(f.popover!=null&&(Yt("beforetoggle",r),Yt("toggle",r)),f.onScroll!=null&&Yt("scroll",r),f.onScrollEnd!=null&&Yt("scrollend",r),f.onClick!=null&&(r.onclick=Fr),r=!0):r=!1,r||jr(a,!0)}function Os(a){for(ja=a.return;ja;)switch(ja.tag){case 5:case 31:case 13:Sa=!1;return;case 27:case 3:Sa=!0;return;default:ja=ja.return}}function $o(a){if(a!==ja)return!1;if(!Xt)return Os(a),Xt=!0,!1;var r=a.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=a.type,i=!(i!=="form"&&i!=="button")||lf(a.type,a.memoizedProps)),i=!i),i&&On&&jr(a),Os(a),r===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));On=Tm(a)}else if(r===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));On=Tm(a)}else r===27?(r=On,yo(a.type)?(a=lh,lh=null,On=a):On=r):On=ja?Cl(a.stateNode.nextSibling):null;return!0}function pu(){On=ja=null,Xt=!1}function zg(){var a=Bo;return a!==null&&(In===null?In=a:In.push.apply(In,a),Bo=null),a}function As(a){Bo===null?Bo=[a]:Bo.push(a)}var Ep=N(null),ji=null,ro=null;function bl(a,r,i){ue(Ep,r._currentValue),r._currentValue=i}function oo(a){a._currentValue=Ep.current,Z(Ep)}function Sp(a,r,i){for(;a!==null;){var f=a.alternate;if((a.childLanes&r)!==r?(a.childLanes|=r,f!==null&&(f.childLanes|=r)):f!==null&&(f.childLanes&r)!==r&&(f.childLanes|=r),a===i)break;a=a.return}}function Vo(a,r,i,f){var g=a.child;for(g!==null&&(g.return=a);g!==null;){var b=g.dependencies;if(b!==null){var C=g.child;b=b.firstContext;e:for(;b!==null;){var B=b;b=g;for(var I=0;I<r.length;I++)if(B.context===r[I]){b.lanes|=i,B=b.alternate,B!==null&&(B.lanes|=i),Sp(b.return,i,a),f||(C=null);break e}b=B.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(s(341));C.lanes|=i,b=C.alternate,b!==null&&(b.lanes|=i),Sp(C,i,a),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===a){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function Na(a,r,i,f){a=null;for(var g=r,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(s(387));if(C=C.memoizedProps,C!==null){var B=g.type;ol(g.pendingProps.value,C.value)||(a!==null?a.push(B):a=[B])}}else if(g===Me.current){if(C=g.alternate,C===null)throw Error(s(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(a!==null?a.push(ih):a=[ih])}g=g.return}a!==null&&Vo(r,a,i,f),r.flags|=262144}function pc(a){for(a=a.firstContext;a!==null;){if(!ol(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Et(a){ji=a,ro=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Ce(a){return pd(ji,a)}function Ni(a,r){return ji===null&&Et(a),pd(a,r)}function pd(a,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},ro===null){if(a===null)throw Error(s(308));ro=r,a.dependencies={lanes:0,firstContext:r},a.flags|=524288}else ro=ro.next=r;return i}var Fn=typeof AbortController<"u"?AbortController:function(){var a=[],r=this.signal={aborted:!1,addEventListener:function(i,f){a.push(f)}};this.abort=function(){r.aborted=!0,a.forEach(function(i){return i()})}},Ug=n.unstable_scheduleCallback,Lg=n.unstable_NormalPriority,ra={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function md(){return{controller:new Fn,data:new Map,refCount:0}}function yd(a){a.refCount--,a.refCount===0&&Ug(Lg,function(){a.controller.abort()})}var mc=null,gd=0,mu=0,da=null;function fn(a,r){if(mc===null){var i=mc=[];gd=0,mu=pm(),da={status:"pending",value:void 0,then:function(f){i.push(f)}}}return gd++,r.then(vd,vd),r}function vd(){if(--gd===0&&mc!==null){da!==null&&(da.status="fulfilled");var a=mc;mc=null,mu=0,da=null;for(var r=0;r<a.length;r++)(0,a[r])()}}function bd(a,r){var i=[],f={status:"pending",value:null,reason:null,then:function(g){i.push(g)}};return a.then(function(){f.status="fulfilled",f.value=r;for(var g=0;g<i.length;g++)(0,i[g])(r)},function(g){for(f.status="rejected",f.reason=g,g=0;g<i.length;g++)(0,i[g])(void 0)}),f}var zi=G.S;G.S=function(a,r){Dv=jn(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&fn(a,r),zi!==null&&zi(a,r)};var lr=N(null);function rr(){var a=lr.current;return a!==null?a:bn.pooledCache}function Cs(a,r){r===null?ue(lr,lr.current):ue(lr,r.pool)}function yc(){var a=rr();return a===null?null:{parent:ra._currentValue,pool:a}}var yu=Error(s(460)),gc=Error(s(474)),Ds=Error(s(542)),vc={then:function(){}};function Bg(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Hg(a,r,i){switch(i=a[i],i===void 0?a.push(r):i!==r&&(r.then(Fr,Fr),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw a=r.reason,Tp(a),a;default:if(typeof r.status=="string")r.then(Fr,Fr);else{if(a=bn,a!==null&&100<a.shellSuspendCounter)throw Error(s(482));a=r,a.status="pending",a.then(function(f){if(r.status==="pending"){var g=r;g.status="fulfilled",g.value=f}},function(f){if(r.status==="pending"){var g=r;g.status="rejected",g.reason=f}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw a=r.reason,Tp(a),a}throw vu=r,yu}}function gu(a){try{var r=a._init;return r(a._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(vu=i,yu):i}}var vu=null;function $g(){if(vu===null)throw Error(s(459));var a=vu;return vu=null,a}function Tp(a){if(a===yu||a===Ds)throw Error(s(483))}var bu=null,bc=0;function Ed(a){var r=bc;return bc+=1,bu===null&&(bu=[]),Hg(bu,a,r)}function ws(a,r){r=r.props.ref,a.ref=r!==void 0?r:null}function Sd(a,r){throw r.$$typeof===A?Error(s(525)):(a=Object.prototype.toString.call(r),Error(s(31,a==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":a)))}function XE(a){function r(ie,te){if(a){var fe=ie.deletions;fe===null?(ie.deletions=[te],ie.flags|=16):fe.push(te)}}function i(ie,te){if(!a)return null;for(;te!==null;)r(ie,te),te=te.sibling;return null}function f(ie){for(var te=new Map;ie!==null;)ie.key!==null?te.set(ie.key,ie):te.set(ie.index,ie),ie=ie.sibling;return te}function g(ie,te){return ie=wi(ie,te),ie.index=0,ie.sibling=null,ie}function b(ie,te,fe){return ie.index=fe,a?(fe=ie.alternate,fe!==null?(fe=fe.index,fe<te?(ie.flags|=67108866,te):fe):(ie.flags|=67108866,te)):(ie.flags|=1048576,te)}function C(ie){return a&&ie.alternate===null&&(ie.flags|=67108866),ie}function B(ie,te,fe,_e){return te===null||te.tag!==6?(te=_s(fe,ie.mode,_e),te.return=ie,te):(te=g(te,fe),te.return=ie,te)}function I(ie,te,fe,_e){var ot=fe.type;return ot===H?Te(ie,te,fe.props.children,_e,fe.key):te!==null&&(te.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===$&&gu(ot)===te.type)?(te=g(te,fe.props),ws(te,fe),te.return=ie,te):(te=gp(fe.type,fe.key,fe.props,null,ie.mode,_e),ws(te,fe),te.return=ie,te)}function de(ie,te,fe,_e){return te===null||te.tag!==4||te.stateNode.containerInfo!==fe.containerInfo||te.stateNode.implementation!==fe.implementation?(te=vp(fe,ie.mode,_e),te.return=ie,te):(te=g(te,fe.children||[]),te.return=ie,te)}function Te(ie,te,fe,_e,ot){return te===null||te.tag!==7?(te=Mi(fe,ie.mode,_e,ot),te.return=ie,te):(te=g(te,fe),te.return=ie,te)}function Oe(ie,te,fe){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=_s(""+te,ie.mode,fe),te.return=ie,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case w:return fe=gp(te.type,te.key,te.props,null,ie.mode,fe),ws(fe,te),fe.return=ie,fe;case j:return te=vp(te,ie.mode,fe),te.return=ie,te;case $:return te=gu(te),Oe(ie,te,fe)}if(et(te)||Re(te))return te=Mi(te,ie.mode,fe,null),te.return=ie,te;if(typeof te.then=="function")return Oe(ie,Ed(te),fe);if(te.$$typeof===F)return Oe(ie,Ni(ie,te),fe);Sd(ie,te)}return null}function he(ie,te,fe,_e){var ot=te!==null?te.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ot!==null?null:B(ie,te,""+fe,_e);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case w:return fe.key===ot?I(ie,te,fe,_e):null;case j:return fe.key===ot?de(ie,te,fe,_e):null;case $:return fe=gu(fe),he(ie,te,fe,_e)}if(et(fe)||Re(fe))return ot!==null?null:Te(ie,te,fe,_e,null);if(typeof fe.then=="function")return he(ie,te,Ed(fe),_e);if(fe.$$typeof===F)return he(ie,te,Ni(ie,fe),_e);Sd(ie,fe)}return null}function be(ie,te,fe,_e,ot){if(typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint")return ie=ie.get(fe)||null,B(te,ie,""+_e,ot);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case w:return ie=ie.get(_e.key===null?fe:_e.key)||null,I(te,ie,_e,ot);case j:return ie=ie.get(_e.key===null?fe:_e.key)||null,de(te,ie,_e,ot);case $:return _e=gu(_e),be(ie,te,fe,_e,ot)}if(et(_e)||Re(_e))return ie=ie.get(fe)||null,Te(te,ie,_e,ot,null);if(typeof _e.then=="function")return be(ie,te,fe,Ed(_e),ot);if(_e.$$typeof===F)return be(ie,te,fe,Ni(te,_e),ot);Sd(te,_e)}return null}function We(ie,te,fe,_e){for(var ot=null,tn=null,nt=te,_t=te=0,Nt=null;nt!==null&&_t<fe.length;_t++){nt.index>_t?(Nt=nt,nt=null):Nt=nt.sibling;var rn=he(ie,nt,fe[_t],_e);if(rn===null){nt===null&&(nt=Nt);break}a&&nt&&rn.alternate===null&&r(ie,nt),te=b(rn,te,_t),tn===null?ot=rn:tn.sibling=rn,tn=rn,nt=Nt}if(_t===fe.length)return i(ie,nt),Xt&&Mr(ie,_t),ot;if(nt===null){for(;_t<fe.length;_t++)nt=Oe(ie,fe[_t],_e),nt!==null&&(te=b(nt,te,_t),tn===null?ot=nt:tn.sibling=nt,tn=nt);return Xt&&Mr(ie,_t),ot}for(nt=f(nt);_t<fe.length;_t++)Nt=be(nt,ie,_t,fe[_t],_e),Nt!==null&&(a&&Nt.alternate!==null&&nt.delete(Nt.key===null?_t:Nt.key),te=b(Nt,te,_t),tn===null?ot=Nt:tn.sibling=Nt,tn=Nt);return a&&nt.forEach(function(bo){return r(ie,bo)}),Xt&&Mr(ie,_t),ot}function ht(ie,te,fe,_e){if(fe==null)throw Error(s(151));for(var ot=null,tn=null,nt=te,_t=te=0,Nt=null,rn=fe.next();nt!==null&&!rn.done;_t++,rn=fe.next()){nt.index>_t?(Nt=nt,nt=null):Nt=nt.sibling;var bo=he(ie,nt,rn.value,_e);if(bo===null){nt===null&&(nt=Nt);break}a&&nt&&bo.alternate===null&&r(ie,nt),te=b(bo,te,_t),tn===null?ot=bo:tn.sibling=bo,tn=bo,nt=Nt}if(rn.done)return i(ie,nt),Xt&&Mr(ie,_t),ot;if(nt===null){for(;!rn.done;_t++,rn=fe.next())rn=Oe(ie,rn.value,_e),rn!==null&&(te=b(rn,te,_t),tn===null?ot=rn:tn.sibling=rn,tn=rn);return Xt&&Mr(ie,_t),ot}for(nt=f(nt);!rn.done;_t++,rn=fe.next())rn=be(nt,ie,_t,rn.value,_e),rn!==null&&(a&&rn.alternate!==null&&nt.delete(rn.key===null?_t:rn.key),te=b(rn,te,_t),tn===null?ot=rn:tn.sibling=rn,tn=rn);return a&&nt.forEach(function(FS){return r(ie,FS)}),Xt&&Mr(ie,_t),ot}function Sn(ie,te,fe,_e){if(typeof fe=="object"&&fe!==null&&fe.type===H&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case w:e:{for(var ot=fe.key;te!==null;){if(te.key===ot){if(ot=fe.type,ot===H){if(te.tag===7){i(ie,te.sibling),_e=g(te,fe.props.children),_e.return=ie,ie=_e;break e}}else if(te.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===$&&gu(ot)===te.type){i(ie,te.sibling),_e=g(te,fe.props),ws(_e,fe),_e.return=ie,ie=_e;break e}i(ie,te);break}else r(ie,te);te=te.sibling}fe.type===H?(_e=Mi(fe.props.children,ie.mode,_e,fe.key),_e.return=ie,ie=_e):(_e=gp(fe.type,fe.key,fe.props,null,ie.mode,_e),ws(_e,fe),_e.return=ie,ie=_e)}return C(ie);case j:e:{for(ot=fe.key;te!==null;){if(te.key===ot)if(te.tag===4&&te.stateNode.containerInfo===fe.containerInfo&&te.stateNode.implementation===fe.implementation){i(ie,te.sibling),_e=g(te,fe.children||[]),_e.return=ie,ie=_e;break e}else{i(ie,te);break}else r(ie,te);te=te.sibling}_e=vp(fe,ie.mode,_e),_e.return=ie,ie=_e}return C(ie);case $:return fe=gu(fe),Sn(ie,te,fe,_e)}if(et(fe))return We(ie,te,fe,_e);if(Re(fe)){if(ot=Re(fe),typeof ot!="function")throw Error(s(150));return fe=ot.call(fe),ht(ie,te,fe,_e)}if(typeof fe.then=="function")return Sn(ie,te,Ed(fe),_e);if(fe.$$typeof===F)return Sn(ie,te,Ni(ie,fe),_e);Sd(ie,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(fe=""+fe,te!==null&&te.tag===6?(i(ie,te.sibling),_e=g(te,fe),_e.return=ie,ie=_e):(i(ie,te),_e=_s(fe,ie.mode,_e),_e.return=ie,ie=_e),C(ie)):i(ie,te)}return function(ie,te,fe,_e){try{bc=0;var ot=Sn(ie,te,fe,_e);return bu=null,ot}catch(nt){if(nt===yu||nt===Ds)throw nt;var tn=Jn(29,nt,null,ie.mode);return tn.lanes=_e,tn.return=ie,tn}finally{}}}var Eu=XE(!0),Vg=XE(!1),Ui=!1;function Td(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xp(a,r){a=a.updateQueue,r.updateQueue===a&&(r.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Li(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function or(a,r,i){var f=a.updateQueue;if(f===null)return null;if(f=f.shared,(ln&2)!==0){var g=f.pending;return g===null?r.next=r:(r.next=g.next,g.next=r),f.pending=r,r=sd(a),yp(a,null,i),r}return tr(a,f,r,i),sd(a)}function Su(a,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var f=r.lanes;f&=a.pendingLanes,i|=f,r.lanes=i,xr(a,i)}}function _p(a,r){var i=a.updateQueue,f=a.alternate;if(f!==null&&(f=f.updateQueue,i===f)){var g=null,b=null;if(i=i.firstBaseUpdate,i!==null){do{var C={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};b===null?g=b=C:b=b.next=C,i=i.next}while(i!==null);b===null?g=b=r:b=b.next=r}else g=b=r;i={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:f.shared,callbacks:f.callbacks},a.updateQueue=i;return}a=i.lastBaseUpdate,a===null?i.firstBaseUpdate=r:a.next=r,i.lastBaseUpdate=r}var kg=!1;function Tu(){if(kg){var a=da;if(a!==null)throw a}}function ko(a,r,i,f){kg=!1;var g=a.updateQueue;Ui=!1;var b=g.firstBaseUpdate,C=g.lastBaseUpdate,B=g.shared.pending;if(B!==null){g.shared.pending=null;var I=B,de=I.next;I.next=null,C===null?b=de:C.next=de,C=I;var Te=a.alternate;Te!==null&&(Te=Te.updateQueue,B=Te.lastBaseUpdate,B!==C&&(B===null?Te.firstBaseUpdate=de:B.next=de,Te.lastBaseUpdate=I))}if(b!==null){var Oe=g.baseState;C=0,Te=de=I=null,B=b;do{var he=B.lane&-536870913,be=he!==B.lane;if(be?(kt&he)===he:(f&he)===he){he!==0&&he===mu&&(kg=!0),Te!==null&&(Te=Te.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var We=a,ht=B;he=r;var Sn=i;switch(ht.tag){case 1:if(We=ht.payload,typeof We=="function"){Oe=We.call(Sn,Oe,he);break e}Oe=We;break e;case 3:We.flags=We.flags&-65537|128;case 0:if(We=ht.payload,he=typeof We=="function"?We.call(Sn,Oe,he):We,he==null)break e;Oe=R({},Oe,he);break e;case 2:Ui=!0}}he=B.callback,he!==null&&(a.flags|=64,be&&(a.flags|=8192),be=g.callbacks,be===null?g.callbacks=[he]:be.push(he))}else be={lane:he,tag:B.tag,payload:B.payload,callback:B.callback,next:null},Te===null?(de=Te=be,I=Oe):Te=Te.next=be,C|=he;if(B=B.next,B===null){if(B=g.shared.pending,B===null)break;be=B,B=be.next,be.next=null,g.lastBaseUpdate=be,g.shared.pending=null}}while(!0);Te===null&&(I=Oe),g.baseState=I,g.firstBaseUpdate=de,g.lastBaseUpdate=Te,b===null&&(g.shared.lanes=0),po|=C,a.lanes=C,a.memoizedState=Oe}}function Rp(a,r){if(typeof a!="function")throw Error(s(191,a));a.call(r)}function xu(a,r){var i=a.callbacks;if(i!==null)for(a.callbacks=null,a=0;a<i.length;a++)Rp(i[a],r)}var Ta=N(null),Ec=N(0);function IE(a,r){a=ho,ue(Ec,a),ue(Ta,r),ho=a|r.baseLanes}function xd(){ue(Ec,ho),ue(Ta,Ta.current)}function Ms(){ho=Ec.current,Z(Ta),Z(Ec)}var El=N(null),ir=null;function Go(a){var r=a.alternate;ue(Ln,Ln.current&1),ue(El,a),ir===null&&(r===null||Ta.current!==null||r.memoizedState!==null)&&(ir=a)}function js(a){ue(Ln,Ln.current),ue(El,a),ir===null&&(ir=a)}function Op(a){a.tag===22?(ue(Ln,Ln.current),ue(El,a),ir===null&&(ir=a)):io()}function io(){ue(Ln,Ln.current),ue(El,El.current)}function Sl(a){Z(El),ir===a&&(ir=null),Z(Ln)}var Ln=N(0);function Ns(a){for(var r=a;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Lr(i)||Uu(i)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var qo=0,Ot=null,dn=null,oa=null,Sc=!1,Tc=!1,Bi=!1,_d=0,zs=0,_u=null,ZE=0;function Qn(){throw Error(s(321))}function Hi(a,r){if(r===null)return!1;for(var i=0;i<r.length&&i<a.length;i++)if(!ol(a[i],r[i]))return!1;return!0}function Rd(a,r,i,f,g,b){return qo=b,Ot=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,G.H=a===null||a.memoizedState===null?nS:qp,Bi=!1,b=i(f,g),Bi=!1,Tc&&(b=JE(r,i,f,g)),Ap(a),b}function Ap(a){G.H=zd;var r=dn!==null&&dn.next!==null;if(qo=0,oa=dn=Ot=null,Sc=!1,zs=0,_u=null,r)throw Error(s(300));a===null||ia||(a=a.dependencies,a!==null&&pc(a)&&(ia=!0))}function JE(a,r,i,f){Ot=a;var g=0;do{if(Tc&&(_u=null),zs=0,Tc=!1,25<=g)throw Error(s(301));if(g+=1,oa=dn=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}G.H=aS,b=r(i,f)}while(Tc);return b}function tR(){var a=G.H,r=a.useState()[0];return r=typeof r.then=="function"?_c(r):r,a=a.useState()[0],(dn!==null?dn.memoizedState:null)!==a&&(Ot.flags|=1024),r}function Cp(){var a=_d!==0;return _d=0,a}function xc(a,r,i){r.updateQueue=a.updateQueue,r.flags&=-2053,a.lanes&=~i}function Od(a){if(Sc){for(a=a.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}Sc=!1}qo=0,oa=dn=Ot=null,Tc=!1,zs=_d=0,_u=null}function za(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oa===null?Ot.memoizedState=oa=a:oa=oa.next=a,oa}function Kn(){if(dn===null){var a=Ot.alternate;a=a!==null?a.memoizedState:null}else a=dn.next;var r=oa===null?Ot.memoizedState:oa.next;if(r!==null)oa=r,dn=a;else{if(a===null)throw Ot.alternate===null?Error(s(467)):Error(s(310));dn=a,a={memoizedState:dn.memoizedState,baseState:dn.baseState,baseQueue:dn.baseQueue,queue:dn.queue,next:null},oa===null?Ot.memoizedState=oa=a:oa=oa.next=a}return oa}function Ad(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _c(a){var r=zs;return zs+=1,_u===null&&(_u=[]),a=Hg(_u,a,r),r=Ot,(oa===null?r.memoizedState:oa.next)===null&&(r=r.alternate,G.H=r===null||r.memoizedState===null?nS:qp),a}function Us(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return _c(a);if(a.$$typeof===F)return Ce(a)}throw Error(s(438,String(a)))}function Dp(a){var r=null,i=Ot.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var f=Ot.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(r={data:f.data.map(function(g){return g.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=Ad(),Ot.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(a),f=0;f<a;f++)i[f]=me;return r.index++,i}function Yo(a,r){return typeof r=="function"?r(a):r}function Qo(a){var r=Kn();return wp(r,dn,a)}function wp(a,r,i){var f=a.queue;if(f===null)throw Error(s(311));f.lastRenderedReducer=i;var g=a.baseQueue,b=f.pending;if(b!==null){if(g!==null){var C=g.next;g.next=b.next,b.next=C}r.baseQueue=g=b,f.pending=null}if(b=a.baseState,g===null)a.memoizedState=b;else{r=g.next;var B=C=null,I=null,de=r,Te=!1;do{var Oe=de.lane&-536870913;if(Oe!==de.lane?(kt&Oe)===Oe:(qo&Oe)===Oe){var he=de.revertLane;if(he===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Oe===mu&&(Te=!0);else if((qo&he)===he){de=de.next,he===mu&&(Te=!0);continue}else Oe={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},I===null?(B=I=Oe,C=b):I=I.next=Oe,Ot.lanes|=he,po|=he;Oe=de.action,Bi&&i(b,Oe),b=de.hasEagerState?de.eagerState:i(b,Oe)}else he={lane:Oe,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},I===null?(B=I=he,C=b):I=I.next=he,Ot.lanes|=Oe,po|=Oe;de=de.next}while(de!==null&&de!==r);if(I===null?C=b:I.next=B,!ol(b,a.memoizedState)&&(ia=!0,Te&&(i=da,i!==null)))throw i;a.memoizedState=b,a.baseState=C,a.baseQueue=I,f.lastRenderedState=b}return g===null&&(f.lanes=0),[a.memoizedState,f.dispatch]}function Mp(a){var r=Kn(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var f=i.dispatch,g=i.pending,b=r.memoizedState;if(g!==null){i.pending=null;var C=g=g.next;do b=a(b,C.action),C=C.next;while(C!==g);ol(b,r.memoizedState)||(ia=!0),r.memoizedState=b,r.baseQueue===null&&(r.baseState=b),i.lastRenderedState=b}return[b,f]}function Gg(a,r,i){var f=Ot,g=Kn(),b=Xt;if(b){if(i===void 0)throw Error(s(407));i=i()}else i=r();var C=!ol((dn||g).memoizedState,i);if(C&&(g.memoizedState=i,ia=!0),g=g.queue,Lp(jp.bind(null,f,g,a),[a]),g.getSnapshot!==r||C||oa!==null&&oa.memoizedState.tag&1){if(f.flags|=2048,Oc(9,{destroy:void 0},qg.bind(null,f,g,i,r),null),bn===null)throw Error(s(349));b||(qo&127)!==0||Cd(f,r,i)}return i}function Cd(a,r,i){a.flags|=16384,a={getSnapshot:r,value:i},r=Ot.updateQueue,r===null?(r=Ad(),Ot.updateQueue=r,r.stores=[a]):(i=r.stores,i===null?r.stores=[a]:i.push(a))}function qg(a,r,i,f){r.value=i,r.getSnapshot=f,Np(r)&&zp(a)}function jp(a,r,i){return i(function(){Np(r)&&zp(a)})}function Np(a){var r=a.getSnapshot;a=a.value;try{var i=r();return!ol(a,i)}catch{return!0}}function zp(a){var r=Di(a,2);r!==null&&Al(r,a,2)}function Yg(a){var r=za();if(typeof a=="function"){var i=a;if(a=i(),Bi){qn(!0);try{i()}finally{qn(!1)}}}return r.memoizedState=r.baseState=a,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:a},r}function Ua(a,r,i,f){return a.baseState=i,wp(a,dn,typeof f=="function"?f:Yo)}function FE(a,r,i,f,g){if(Nd(a))throw Error(s(485));if(a=r.action,a!==null){var b={payload:g,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){b.listeners.push(C)}};G.T!==null?i(!0):b.isTransition=!1,f(b),i=r.pending,i===null?(b.next=r.pending=b,Qg(r,b)):(b.next=i.next,r.pending=i.next=b)}}function Qg(a,r){var i=r.action,f=r.payload,g=a.state;if(r.isTransition){var b=G.T,C={};G.T=C;try{var B=i(g,f),I=G.S;I!==null&&I(C,B),Xg(a,r,B)}catch(de){Rc(a,r,de)}finally{b!==null&&C.types!==null&&(b.types=C.types),G.T=b}}else try{b=i(g,f),Xg(a,r,b)}catch(de){Rc(a,r,de)}}function Xg(a,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(f){Ig(a,r,f)},function(f){return Rc(a,r,f)}):Ig(a,r,i)}function Ig(a,r,i){r.status="fulfilled",r.value=i,Zg(r),a.state=i,r=a.pending,r!==null&&(i=r.next,i===r?a.pending=null:(i=i.next,r.next=i,Qg(a,i)))}function Rc(a,r,i){var f=a.pending;if(a.pending=null,f!==null){f=f.next;do r.status="rejected",r.reason=i,Zg(r),r=r.next;while(r!==f)}a.action=null}function Zg(a){a=a.listeners;for(var r=0;r<a.length;r++)(0,a[r])()}function Dd(a,r){return r}function Jg(a,r){if(Xt){var i=bn.formState;if(i!==null){e:{var f=Ot;if(Xt){if(On){t:{for(var g=On,b=Sa;g.nodeType!==8;){if(!b){g=null;break t}if(g=Cl(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){On=Cl(g.nextSibling),f=g.data==="F!";break e}}jr(f)}f=!1}f&&(r=i[0])}}return i=za(),i.memoizedState=i.baseState=r,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dd,lastRenderedState:r},i.queue=f,i=kp.bind(null,Ot,f),f.dispatch=i,f=Yg(!1),b=Ru.bind(null,Ot,!1,f.queue),f=za(),g={state:r,dispatch:null,action:a,pending:null},f.queue=g,i=FE.bind(null,Ot,g,b,i),g.dispatch=i,f.memoizedState=a,[r,i,!1]}function KE(a){var r=Kn();return wd(r,dn,a)}function wd(a,r,i){if(r=wp(a,r,Dd)[0],a=Qo(Yo)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var f=_c(r)}catch(C){throw C===yu?Ds:C}else f=r;r=Kn();var g=r.queue,b=g.dispatch;return i!==r.memoizedState&&(Ot.flags|=2048,Oc(9,{destroy:void 0},Fg.bind(null,g,i),null)),[f,b,a]}function Fg(a,r){a.action=r}function Kg(a){var r=Kn(),i=dn;if(i!==null)return wd(r,i,a);Kn(),r=r.memoizedState,i=Kn();var f=i.queue.dispatch;return i.memoizedState=a,[r,f,!1]}function Oc(a,r,i,f){return a={tag:a,create:i,deps:f,inst:r,next:null},r=Ot.updateQueue,r===null&&(r=Ad(),Ot.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=a.next=a:(f=i.next,i.next=a,a.next=f,r.lastEffect=a),a}function Pg(){return Kn().memoizedState}function Ls(a,r,i,f){var g=za();Ot.flags|=a,g.memoizedState=Oc(1|r,{destroy:void 0},i,f===void 0?null:f)}function Bs(a,r,i,f){var g=Kn();f=f===void 0?null:f;var b=g.memoizedState.inst;dn!==null&&f!==null&&Hi(f,dn.memoizedState.deps)?g.memoizedState=Oc(r,b,i,f):(Ot.flags|=a,g.memoizedState=Oc(1|r,b,i,f))}function Up(a,r){Ls(8390656,8,a,r)}function Lp(a,r){Bs(2048,8,a,r)}function Wg(a){Ot.flags|=4;var r=Ot.updateQueue;if(r===null)r=Ad(),Ot.updateQueue=r,r.events=[a];else{var i=r.events;i===null?r.events=[a]:i.push(a)}}function Md(a){var r=Kn().memoizedState;return Wg({ref:r,nextImpl:a}),function(){if((ln&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function Bp(a,r){return Bs(4,2,a,r)}function ev(a,r){return Bs(4,4,a,r)}function Hp(a,r){if(typeof r=="function"){a=a();var i=r(a);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return a=a(),r.current=a,function(){r.current=null}}function tv(a,r,i){i=i!=null?i.concat([a]):null,Bs(4,4,Hp.bind(null,r,a),i)}function uo(){}function $p(a,r){var i=Kn();r=r===void 0?null:r;var f=i.memoizedState;return r!==null&&Hi(r,f[1])?f[0]:(i.memoizedState=[a,r],a)}function PE(a,r){var i=Kn();r=r===void 0?null:r;var f=i.memoizedState;if(r!==null&&Hi(r,f[1]))return f[0];if(f=a(),Bi){qn(!0);try{a()}finally{qn(!1)}}return i.memoizedState=[f,r],f}function jd(a,r,i){return i===void 0||(qo&1073741824)!==0&&(kt&261930)===0?a.memoizedState=r:(a.memoizedState=i,a=hS(),Ot.lanes|=a,po|=a,i)}function Xo(a,r,i,f){return ol(i,r)?i:Ta.current!==null?(a=jd(a,i,f),ol(a,r)||(ia=!0),a):(qo&42)===0||(qo&1073741824)!==0&&(kt&261930)===0?(ia=!0,a.memoizedState=i):(a=hS(),Ot.lanes|=a,po|=a,r)}function Vp(a,r,i,f,g){var b=ce.p;ce.p=b!==0&&8>b?b:8;var C=G.T,B={};G.T=B,Ru(a,!1,r,i);try{var I=g(),de=G.S;if(de!==null&&de(B,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var Te=bd(I,f);$i(a,r,Te,Yl(a))}else $i(a,r,f,Yl(a))}catch(Oe){$i(a,r,{then:function(){},status:"rejected",reason:Oe},Yl())}finally{ce.p=b,C!==null&&B.types!==null&&(C.types=B.types),G.T=C}}function WE(){}function Hs(a,r,i,f){if(a.tag!==5)throw Error(s(476));var g=$s(a).queue;Vp(a,g,r,Ee,i===null?WE:function(){return vn(a),i(f)})}function $s(a){var r=a.memoizedState;if(r!==null)return r;r={memoizedState:Ee,baseState:Ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:Ee},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:i},next:null},a.memoizedState=r,a=a.alternate,a!==null&&(a.memoizedState=r),r}function vn(a){var r=$s(a);r.next===null&&(r=a.alternate.memoizedState),$i(a,r.next.queue,{},Yl())}function nv(){return Ce(ih)}function eS(){return Kn().memoizedState}function av(){return Kn().memoizedState}function Io(a){for(var r=a.return;r!==null;){switch(r.tag){case 24:case 3:var i=Yl();a=Li(i);var f=or(r,a,i);f!==null&&(Al(f,r,i),Su(f,r,i)),r={cache:md()},a.payload=r;return}r=r.return}}function tS(a,r,i){var f=Yl();i={lane:f,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Nd(a)?Gp(r,i):(i=wr(a,r,i,f),i!==null&&(Al(i,a,f),lv(i,r,f)))}function kp(a,r,i){var f=Yl();$i(a,r,i,f)}function $i(a,r,i,f){var g={lane:f,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Nd(a))Gp(r,g);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=r.lastRenderedReducer,b!==null))try{var C=r.lastRenderedState,B=b(C,i);if(g.hasEagerState=!0,g.eagerState=B,ol(B,C))return tr(a,r,g,0),bn===null&&er(),!1}catch{}finally{}if(i=wr(a,r,g,f),i!==null)return Al(i,a,f),lv(i,r,f),!0}return!1}function Ru(a,r,i,f){if(f={lane:2,revertLane:pm(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Nd(a)){if(r)throw Error(s(479))}else r=wr(a,i,f,2),r!==null&&Al(r,a,2)}function Nd(a){var r=a.alternate;return a===Ot||r!==null&&r===Ot}function Gp(a,r){Tc=Sc=!0;var i=a.pending;i===null?r.next=r:(r.next=i.next,i.next=r),a.pending=r}function lv(a,r,i){if((i&4194048)!==0){var f=r.lanes;f&=a.pendingLanes,i|=f,r.lanes=i,xr(a,i)}}var zd={readContext:Ce,use:Us,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useLayoutEffect:Qn,useInsertionEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useSyncExternalStore:Qn,useId:Qn,useHostTransitionStatus:Qn,useFormState:Qn,useActionState:Qn,useOptimistic:Qn,useMemoCache:Qn,useCacheRefresh:Qn};zd.useEffectEvent=Qn;var nS={readContext:Ce,use:Us,useCallback:function(a,r){return za().memoizedState=[a,r===void 0?null:r],a},useContext:Ce,useEffect:Up,useImperativeHandle:function(a,r,i){i=i!=null?i.concat([a]):null,Ls(4194308,4,Hp.bind(null,r,a),i)},useLayoutEffect:function(a,r){return Ls(4194308,4,a,r)},useInsertionEffect:function(a,r){Ls(4,2,a,r)},useMemo:function(a,r){var i=za();r=r===void 0?null:r;var f=a();if(Bi){qn(!0);try{a()}finally{qn(!1)}}return i.memoizedState=[f,r],f},useReducer:function(a,r,i){var f=za();if(i!==void 0){var g=i(r);if(Bi){qn(!0);try{i(r)}finally{qn(!1)}}}else g=r;return f.memoizedState=f.baseState=g,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:g},f.queue=a,a=a.dispatch=tS.bind(null,Ot,a),[f.memoizedState,a]},useRef:function(a){var r=za();return a={current:a},r.memoizedState=a},useState:function(a){a=Yg(a);var r=a.queue,i=kp.bind(null,Ot,r);return r.dispatch=i,[a.memoizedState,i]},useDebugValue:uo,useDeferredValue:function(a,r){var i=za();return jd(i,a,r)},useTransition:function(){var a=Yg(!1);return a=Vp.bind(null,Ot,a.queue,!0,!1),za().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,r,i){var f=Ot,g=za();if(Xt){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),bn===null)throw Error(s(349));(kt&127)!==0||Cd(f,r,i)}g.memoizedState=i;var b={value:i,getSnapshot:r};return g.queue=b,Up(jp.bind(null,f,b,a),[a]),f.flags|=2048,Oc(9,{destroy:void 0},qg.bind(null,f,b,i,r),null),i},useId:function(){var a=za(),r=bn.identifierPrefix;if(Xt){var i=lo,f=Vl;i=(f&~(1<<32-ta(f)-1)).toString(32)+i,r="_"+r+"R_"+i,i=_d++,0<i&&(r+="H"+i.toString(32)),r+="_"}else i=ZE++,r="_"+r+"r_"+i.toString(32)+"_";return a.memoizedState=r},useHostTransitionStatus:nv,useFormState:Jg,useActionState:Jg,useOptimistic:function(a){var r=za();r.memoizedState=r.baseState=a;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Ru.bind(null,Ot,!0,i),i.dispatch=r,[a,r]},useMemoCache:Dp,useCacheRefresh:function(){return za().memoizedState=Io.bind(null,Ot)},useEffectEvent:function(a){var r=za(),i={impl:a};return r.memoizedState=i,function(){if((ln&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},qp={readContext:Ce,use:Us,useCallback:$p,useContext:Ce,useEffect:Lp,useImperativeHandle:tv,useInsertionEffect:Bp,useLayoutEffect:ev,useMemo:PE,useReducer:Qo,useRef:Pg,useState:function(){return Qo(Yo)},useDebugValue:uo,useDeferredValue:function(a,r){var i=Kn();return Xo(i,dn.memoizedState,a,r)},useTransition:function(){var a=Qo(Yo)[0],r=Kn().memoizedState;return[typeof a=="boolean"?a:_c(a),r]},useSyncExternalStore:Gg,useId:eS,useHostTransitionStatus:nv,useFormState:KE,useActionState:KE,useOptimistic:function(a,r){var i=Kn();return Ua(i,dn,a,r)},useMemoCache:Dp,useCacheRefresh:av};qp.useEffectEvent=Md;var aS={readContext:Ce,use:Us,useCallback:$p,useContext:Ce,useEffect:Lp,useImperativeHandle:tv,useInsertionEffect:Bp,useLayoutEffect:ev,useMemo:PE,useReducer:Mp,useRef:Pg,useState:function(){return Mp(Yo)},useDebugValue:uo,useDeferredValue:function(a,r){var i=Kn();return dn===null?jd(i,a,r):Xo(i,dn.memoizedState,a,r)},useTransition:function(){var a=Mp(Yo)[0],r=Kn().memoizedState;return[typeof a=="boolean"?a:_c(a),r]},useSyncExternalStore:Gg,useId:eS,useHostTransitionStatus:nv,useFormState:Kg,useActionState:Kg,useOptimistic:function(a,r){var i=Kn();return dn!==null?Ua(i,dn,a,r):(i.baseState=a,[a,i.queue.dispatch])},useMemoCache:Dp,useCacheRefresh:av};aS.useEffectEvent=Md;function Ac(a,r,i,f){r=a.memoizedState,i=i(f,r),i=i==null?r:R({},r,i),a.memoizedState=i,a.lanes===0&&(a.updateQueue.baseState=i)}var Nr={enqueueSetState:function(a,r,i){a=a._reactInternals;var f=Yl(),g=Li(f);g.payload=r,i!=null&&(g.callback=i),r=or(a,g,f),r!==null&&(Al(r,a,f),Su(r,a,f))},enqueueReplaceState:function(a,r,i){a=a._reactInternals;var f=Yl(),g=Li(f);g.tag=1,g.payload=r,i!=null&&(g.callback=i),r=or(a,g,f),r!==null&&(Al(r,a,f),Su(r,a,f))},enqueueForceUpdate:function(a,r){a=a._reactInternals;var i=Yl(),f=Li(i);f.tag=2,r!=null&&(f.callback=r),r=or(a,f,i),r!==null&&(Al(r,a,i),Su(r,a,i))}};function rv(a,r,i,f,g,b,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(f,b,C):r.prototype&&r.prototype.isPureReactComponent?!Ar(i,f)||!Ar(g,b):!0}function lS(a,r,i,f){a=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,f),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,f),r.state!==a&&Nr.enqueueReplaceState(r,r.state,null)}function Ou(a,r){var i=r;if("ref"in r){i={};for(var f in r)f!=="ref"&&(i[f]=r[f])}if(a=a.defaultProps){i===r&&(i=R({},i));for(var g in a)i[g]===void 0&&(i[g]=a[g])}return i}function Yp(a){fc(a)}function ov(a){console.error(a)}function Qp(a){fc(a)}function Vs(a,r){try{var i=a.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(f){setTimeout(function(){throw f})}}function Ud(a,r,i){try{var f=a.onCaughtError;f(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function iv(a,r,i){return i=Li(i),i.tag=3,i.payload={element:null},i.callback=function(){Vs(a,r)},i}function uv(a){return a=Li(a),a.tag=3,a}function cv(a,r,i,f){var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var b=f.value;a.payload=function(){return g(b)},a.callback=function(){Ud(r,i,f)}}var C=i.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){Ud(r,i,f),typeof g!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var B=f.stack;this.componentDidCatch(f.value,{componentStack:B!==null?B:""})})}function nR(a,r,i,f,g){if(i.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(r=i.alternate,r!==null&&Na(r,i,g,!0),i=El.current,i!==null){switch(i.tag){case 31:case 13:return ir===null?sm():i.alternate===null&&Cn===0&&(Cn=3),i.flags&=-257,i.flags|=65536,i.lanes=g,f===vc?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([f]):r.add(f),Jd(a,f,g)),!1;case 22:return i.flags|=65536,f===vc?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([f])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([f]):i.add(f)),Jd(a,f,g)),!1}throw Error(s(435,i.tag))}return Jd(a,f,g),sm(),!1}if(Xt)return r=El.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=g,f!==Ho&&(a=Error(s(422),{cause:f}),As(nr(a,i)))):(f!==Ho&&(r=Error(s(423),{cause:f}),As(nr(r,i))),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,f=nr(f,i),g=iv(a.stateNode,f,g),_p(a,g),Cn!==4&&(Cn=2)),!1;var b=Error(s(520),{cause:f});if(b=nr(b,i),Qd===null?Qd=[b]:Qd.push(b),Cn!==4&&(Cn=2),r===null)return!0;f=nr(f,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,a=g&-g,i.lanes|=a,a=iv(i.stateNode,f,a),_p(i,a),!1;case 1:if(r=i.type,b=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Bn===null||!Bn.has(b))))return i.flags|=65536,g&=-g,i.lanes|=g,g=uv(g),cv(g,a,i,f),_p(i,g),!1}i=i.return}while(i!==null);return!1}var Xp=Error(s(461)),ia=!1;function Nn(a,r,i,f){r.child=a===null?Vg(r,null,i,f):Eu(r,a.child,i,f)}function sv(a,r,i,f,g){i=i.render;var b=r.ref;if("ref"in f){var C={};for(var B in f)B!=="ref"&&(C[B]=f[B])}else C=f;return Et(r),f=Rd(a,r,i,C,b,g),B=Cp(),a!==null&&!ia?(xc(a,r,g),sr(a,r,g)):(Xt&&B&&Rs(r),r.flags|=1,Nn(a,r,f,g),r.child)}function fv(a,r,i,f,g){if(a===null){var b=i.type;return typeof b=="function"&&!dc(b)&&b.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=b,dv(a,r,b,f,g)):(a=gp(i.type,null,f,r,r.mode,g),a.ref=r.ref,a.return=r,r.child=a)}if(b=a.child,!Jp(a,g)){var C=b.memoizedProps;if(i=i.compare,i=i!==null?i:Ar,i(C,f)&&a.ref===r.ref)return sr(a,r,g)}return r.flags|=1,a=wi(b,f),a.ref=r.ref,a.return=r,r.child=a}function dv(a,r,i,f,g){if(a!==null){var b=a.memoizedProps;if(Ar(b,f)&&a.ref===r.ref)if(ia=!1,r.pendingProps=f=b,Jp(a,g))(a.flags&131072)!==0&&(ia=!0);else return r.lanes=a.lanes,sr(a,r,g)}return Ip(a,r,i,f,g)}function rS(a,r,i,f){var g=f.children,b=a!==null?a.memoizedState:null;if(a===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((r.flags&128)!==0){if(b=b!==null?b.baseLanes|i:i,a!==null){for(f=r.child=a.child,g=0;f!==null;)g=g|f.lanes|f.childLanes,f=f.sibling;f=g&~b}else f=0,r.child=null;return Tl(a,r,b,i,f)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},a!==null&&Cs(r,b!==null?b.cachePool:null),b!==null?IE(r,b):xd(),Op(r);else return f=r.lanes=536870912,Tl(a,r,b!==null?b.baseLanes|i:i,i,f)}else b!==null?(Cs(r,b.cachePool),IE(r,b),io(),r.memoizedState=null):(a!==null&&Cs(r,null),xd(),io());return Nn(a,r,g,i),r.child}function Au(a,r){return a!==null&&a.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Tl(a,r,i,f,g){var b=rr();return b=b===null?null:{parent:ra._currentValue,pool:b},r.memoizedState={baseLanes:i,cachePool:b},a!==null&&Cs(r,null),xd(),Op(r),a!==null&&Na(a,r,f,!0),r.childLanes=g,null}function Ld(a,r){return r=$d({mode:r.mode,children:r.children},a.mode),r.ref=a.ref,a.child=r,r.return=a,r}function xl(a,r,i){return Eu(r,a.child,null,i),a=Ld(r,r.pendingProps),a.flags|=2,Sl(r),r.memoizedState=null,a}function oS(a,r,i){var f=r.pendingProps,g=(r.flags&128)!==0;if(r.flags&=-129,a===null){if(Xt){if(f.mode==="hidden")return a=Ld(r,f),r.lanes=536870912,Au(null,a);if(js(r),(a=On)?(a=kS(a,Sa),a=a!==null&&a.data==="&"?a:null,a!==null&&(r.memoizedState={dehydrated:a,treeContext:ao!==null?{id:Vl,overflow:lo}:null,retryLane:536870912,hydrationErrors:null},i=Mg(a),i.return=r,r.child=i,ja=r,On=null)):a=null,a===null)throw jr(r);return r.lanes=536870912,null}return Ld(r,f)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(js(r),g)if(r.flags&256)r.flags&=-257,r=xl(a,r,i);else if(r.memoizedState!==null)r.child=a.child,r.flags|=128,r=null;else throw Error(s(558));else if(ia||Na(a,r,i,!1),g=(i&a.childLanes)!==0,ia||g){if(f=bn,f!==null&&(C=Y(f,i),C!==0&&C!==b.retryLane))throw b.retryLane=C,Di(a,C),Al(f,a,C),Xp;sm(),r=xl(a,r,i)}else a=b.treeContext,On=Cl(C.nextSibling),ja=r,Xt=!0,Bo=null,Sa=!1,a!==null&&dd(r,a),r=Ld(r,f),r.flags|=4096;return r}return a=wi(a.child,{mode:f.mode,children:f.children}),a.ref=r.ref,r.child=a,a.return=r,a}function ur(a,r){var i=r.ref;if(i===null)a!==null&&a.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(a===null||a.ref!==i)&&(r.flags|=4194816)}}function Ip(a,r,i,f,g){return Et(r),i=Rd(a,r,i,f,void 0,g),f=Cp(),a!==null&&!ia?(xc(a,r,g),sr(a,r,g)):(Xt&&f&&Rs(r),r.flags|=1,Nn(a,r,i,g),r.child)}function Cu(a,r,i,f,g,b){return Et(r),r.updateQueue=null,i=JE(r,f,i,g),Ap(a),f=Cp(),a!==null&&!ia?(xc(a,r,b),sr(a,r,b)):(Xt&&f&&Rs(r),r.flags|=1,Nn(a,r,i,b),r.child)}function hv(a,r,i,f,g){if(Et(r),r.stateNode===null){var b=gl,C=i.contextType;typeof C=="object"&&C!==null&&(b=Ce(C)),b=new i(f,b),r.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Nr,r.stateNode=b,b._reactInternals=r,b=r.stateNode,b.props=f,b.state=r.memoizedState,b.refs={},Td(r),C=i.contextType,b.context=typeof C=="object"&&C!==null?Ce(C):gl,b.state=r.memoizedState,C=i.getDerivedStateFromProps,typeof C=="function"&&(Ac(r,i,C,f),b.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(C=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),C!==b.state&&Nr.enqueueReplaceState(b,b.state,null),ko(r,f,b,g),Tu(),b.state=r.memoizedState),typeof b.componentDidMount=="function"&&(r.flags|=4194308),f=!0}else if(a===null){b=r.stateNode;var B=r.memoizedProps,I=Ou(i,B);b.props=I;var de=b.context,Te=i.contextType;C=gl,typeof Te=="object"&&Te!==null&&(C=Ce(Te));var Oe=i.getDerivedStateFromProps;Te=typeof Oe=="function"||typeof b.getSnapshotBeforeUpdate=="function",B=r.pendingProps!==B,Te||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(B||de!==C)&&lS(r,b,f,C),Ui=!1;var he=r.memoizedState;b.state=he,ko(r,f,b,g),Tu(),de=r.memoizedState,B||he!==de||Ui?(typeof Oe=="function"&&(Ac(r,i,Oe,f),de=r.memoizedState),(I=Ui||rv(r,i,I,f,he,de,C))?(Te||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(r.flags|=4194308)):(typeof b.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=f,r.memoizedState=de),b.props=f,b.state=de,b.context=C,f=I):(typeof b.componentDidMount=="function"&&(r.flags|=4194308),f=!1)}else{b=r.stateNode,xp(a,r),C=r.memoizedProps,Te=Ou(i,C),b.props=Te,Oe=r.pendingProps,he=b.context,de=i.contextType,I=gl,typeof de=="object"&&de!==null&&(I=Ce(de)),B=i.getDerivedStateFromProps,(de=typeof B=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==Oe||he!==I)&&lS(r,b,f,I),Ui=!1,he=r.memoizedState,b.state=he,ko(r,f,b,g),Tu();var be=r.memoizedState;C!==Oe||he!==be||Ui||a!==null&&a.dependencies!==null&&pc(a.dependencies)?(typeof B=="function"&&(Ac(r,i,B,f),be=r.memoizedState),(Te=Ui||rv(r,i,Te,f,he,be,I)||a!==null&&a.dependencies!==null&&pc(a.dependencies))?(de||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(f,be,I),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(f,be,I)),typeof b.componentDidUpdate=="function"&&(r.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&he===a.memoizedState||(r.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&he===a.memoizedState||(r.flags|=1024),r.memoizedProps=f,r.memoizedState=be),b.props=f,b.state=be,b.context=I,f=Te):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&he===a.memoizedState||(r.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&he===a.memoizedState||(r.flags|=1024),f=!1)}return b=f,ur(a,r),f=(r.flags&128)!==0,b||f?(b=r.stateNode,i=f&&typeof i.getDerivedStateFromError!="function"?null:b.render(),r.flags|=1,a!==null&&f?(r.child=Eu(r,a.child,null,g),r.child=Eu(r,null,i,g)):Nn(a,r,i,g),r.memoizedState=b.state,a=r.child):a=sr(a,r,g),a}function co(a,r,i,f){return pu(),r.flags|=256,Nn(a,r,i,f),r.child}var Bd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hd(a){return{baseLanes:a,cachePool:yc()}}function cr(a,r,i){return a=a!==null?a.childLanes&~i:0,r&&(a|=Ol),a}function pv(a,r,i){var f=r.pendingProps,g=!1,b=(r.flags&128)!==0,C;if((C=b)||(C=a!==null&&a.memoizedState===null?!1:(Ln.current&2)!==0),C&&(g=!0,r.flags&=-129),C=(r.flags&32)!==0,r.flags&=-33,a===null){if(Xt){if(g?Go(r):io(),(a=On)?(a=kS(a,Sa),a=a!==null&&a.data!=="&"?a:null,a!==null&&(r.memoizedState={dehydrated:a,treeContext:ao!==null?{id:Vl,overflow:lo}:null,retryLane:536870912,hydrationErrors:null},i=Mg(a),i.return=r,r.child=i,ja=r,On=null)):a=null,a===null)throw jr(r);return Uu(a)?r.lanes=32:r.lanes=536870912,null}var B=f.children;return f=f.fallback,g?(io(),g=r.mode,B=$d({mode:"hidden",children:B},g),f=Mi(f,g,i,null),B.return=r,f.return=r,B.sibling=f,r.child=B,f=r.child,f.memoizedState=Hd(i),f.childLanes=cr(a,C,i),r.memoizedState=Bd,Au(null,f)):(Go(r),Du(r,B))}var I=a.memoizedState;if(I!==null&&(B=I.dehydrated,B!==null)){if(b)r.flags&256?(Go(r),r.flags&=-257,r=Cc(a,r,i)):r.memoizedState!==null?(io(),r.child=a.child,r.flags|=128,r=null):(io(),B=f.fallback,g=r.mode,f=$d({mode:"visible",children:f.children},g),B=Mi(B,g,i,null),B.flags|=2,f.return=r,B.return=r,f.sibling=B,r.child=f,Eu(r,a.child,null,i),f=r.child,f.memoizedState=Hd(i),f.childLanes=cr(a,C,i),r.memoizedState=Bd,r=Au(null,f));else if(Go(r),Uu(B)){if(C=B.nextSibling&&B.nextSibling.dataset,C)var de=C.dgst;C=de,f=Error(s(419)),f.stack="",f.digest=C,As({value:f,source:null,stack:null}),r=Cc(a,r,i)}else if(ia||Na(a,r,i,!1),C=(i&a.childLanes)!==0,ia||C){if(C=bn,C!==null&&(f=Y(C,i),f!==0&&f!==I.retryLane))throw I.retryLane=f,Di(a,f),Al(C,a,f),Xp;Lr(B)||sm(),r=Cc(a,r,i)}else Lr(B)?(r.flags|=192,r.child=a.child,r=null):(a=I.treeContext,On=Cl(B.nextSibling),ja=r,Xt=!0,Bo=null,Sa=!1,a!==null&&dd(r,a),r=Du(r,f.children),r.flags|=4096);return r}return g?(io(),B=f.fallback,g=r.mode,I=a.child,de=I.sibling,f=wi(I,{mode:"hidden",children:f.children}),f.subtreeFlags=I.subtreeFlags&65011712,de!==null?B=wi(de,B):(B=Mi(B,g,i,null),B.flags|=2),B.return=r,f.return=r,f.sibling=B,r.child=f,Au(null,f),f=r.child,B=a.child.memoizedState,B===null?B=Hd(i):(g=B.cachePool,g!==null?(I=ra._currentValue,g=g.parent!==I?{parent:I,pool:I}:g):g=yc(),B={baseLanes:B.baseLanes|i,cachePool:g}),f.memoizedState=B,f.childLanes=cr(a,C,i),r.memoizedState=Bd,Au(a.child,f)):(Go(r),i=a.child,a=i.sibling,i=wi(i,{mode:"visible",children:f.children}),i.return=r,i.sibling=null,a!==null&&(C=r.deletions,C===null?(r.deletions=[a],r.flags|=16):C.push(a)),r.child=i,r.memoizedState=null,i)}function Du(a,r){return r=$d({mode:"visible",children:r},a.mode),r.return=a,a.child=r}function $d(a,r){return a=Jn(22,a,null,r),a.lanes=0,a}function Cc(a,r,i){return Eu(r,a.child,null,i),a=Du(r,r.pendingProps.children),a.flags|=2,r.memoizedState=null,a}function Dc(a,r,i){a.lanes|=r;var f=a.alternate;f!==null&&(f.lanes|=r),Sp(a.return,r,i)}function Zp(a,r,i,f,g,b){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:f,tail:i,tailMode:g,treeForkCount:b}:(C.isBackwards=r,C.rendering=null,C.renderingStartTime=0,C.last=f,C.tail=i,C.tailMode=g,C.treeForkCount=b)}function mv(a,r,i){var f=r.pendingProps,g=f.revealOrder,b=f.tail;f=f.children;var C=Ln.current,B=(C&2)!==0;if(B?(C=C&1|2,r.flags|=128):C&=1,ue(Ln,C),Nn(a,r,f,i),f=Xt?la:0,!B&&a!==null&&(a.flags&128)!==0)e:for(a=r.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Dc(a,i,r);else if(a.tag===19)Dc(a,i,r);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(g){case"forwards":for(i=r.child,g=null;i!==null;)a=i.alternate,a!==null&&Ns(a)===null&&(g=i),i=i.sibling;i=g,i===null?(g=r.child,r.child=null):(g=i.sibling,i.sibling=null),Zp(r,!1,g,i,b,f);break;case"backwards":case"unstable_legacy-backwards":for(i=null,g=r.child,r.child=null;g!==null;){if(a=g.alternate,a!==null&&Ns(a)===null){r.child=g;break}a=g.sibling,g.sibling=i,i=g,g=a}Zp(r,!0,i,null,b,f);break;case"together":Zp(r,!1,null,null,void 0,f);break;default:r.memoizedState=null}return r.child}function sr(a,r,i){if(a!==null&&(r.dependencies=a.dependencies),po|=r.lanes,(i&r.childLanes)===0)if(a!==null){if(Na(a,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(a!==null&&r.child!==a.child)throw Error(s(153));if(r.child!==null){for(a=r.child,i=wi(a,a.pendingProps),r.child=i,i.return=r;a.sibling!==null;)a=a.sibling,i=i.sibling=wi(a,a.pendingProps),i.return=r;i.sibling=null}return r.child}function Jp(a,r){return(a.lanes&r)!==0?!0:(a=a.dependencies,!!(a!==null&&pc(a)))}function Fp(a,r,i){switch(r.tag){case 3:Pe(r,r.stateNode.containerInfo),bl(r,ra,a.memoizedState.cache),pu();break;case 27:case 5:it(r);break;case 4:Pe(r,r.stateNode.containerInfo);break;case 10:bl(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,js(r),null;break;case 13:var f=r.memoizedState;if(f!==null)return f.dehydrated!==null?(Go(r),r.flags|=128,null):(i&r.child.childLanes)!==0?pv(a,r,i):(Go(r),a=sr(a,r,i),a!==null?a.sibling:null);Go(r);break;case 19:var g=(a.flags&128)!==0;if(f=(i&r.childLanes)!==0,f||(Na(a,r,i,!1),f=(i&r.childLanes)!==0),g){if(f)return mv(a,r,i);r.flags|=128}if(g=r.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),ue(Ln,Ln.current),f)break;return null;case 22:return r.lanes=0,rS(a,r,i,r.pendingProps);case 24:bl(r,ra,a.memoizedState.cache)}return sr(a,r,i)}function yv(a,r,i){if(a!==null)if(a.memoizedProps!==r.pendingProps)ia=!0;else{if(!Jp(a,i)&&(r.flags&128)===0)return ia=!1,Fp(a,r,i);ia=(a.flags&131072)!==0}else ia=!1,Xt&&(r.flags&1048576)!==0&&Ng(r,la,r.index);switch(r.lanes=0,r.tag){case 16:e:{var f=r.pendingProps;if(a=gu(r.elementType),r.type=a,typeof a=="function")dc(a)?(f=Ou(a,f),r.tag=1,r=hv(null,r,a,f,i)):(r.tag=0,r=Ip(null,r,a,f,i));else{if(a!=null){var g=a.$$typeof;if(g===K){r.tag=11,r=sv(null,r,a,f,i);break e}else if(g===ae){r.tag=14,r=fv(null,r,a,f,i);break e}}throw r=Ye(a)||a,Error(s(306,r,""))}}return r;case 0:return Ip(a,r,r.type,r.pendingProps,i);case 1:return f=r.type,g=Ou(f,r.pendingProps),hv(a,r,f,g,i);case 3:e:{if(Pe(r,r.stateNode.containerInfo),a===null)throw Error(s(387));f=r.pendingProps;var b=r.memoizedState;g=b.element,xp(a,r),ko(r,f,null,i);var C=r.memoizedState;if(f=C.cache,bl(r,ra,f),f!==b.cache&&Vo(r,[ra],i,!0),Tu(),f=C.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:C.cache},r.updateQueue.baseState=b,r.memoizedState=b,r.flags&256){r=co(a,r,f,i);break e}else if(f!==g){g=nr(Error(s(424)),r),As(g),r=co(a,r,f,i);break e}else{switch(a=r.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(On=Cl(a.firstChild),ja=r,Xt=!0,Bo=null,Sa=!0,i=Vg(r,null,f,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(pu(),f===g){r=sr(a,r,i);break e}Nn(a,r,f,i)}r=r.child}return r;case 26:return ur(a,r),a===null?(i=cf(r.type,null,r.pendingProps,null))?r.memoizedState=i:Xt||(i=r.type,a=r.pendingProps,f=zu(Ue.current).createElement(i),f[Ve]=r,f[Xe]=a,Fa(f,i,a),qt(f),r.stateNode=f):r.memoizedState=cf(r.type,a.memoizedProps,r.pendingProps,a.memoizedState),null;case 27:return it(r),a===null&&Xt&&(f=r.stateNode=of(r.type,r.pendingProps,Ue.current),ja=r,Sa=!0,g=On,yo(r.type)?(lh=g,On=Cl(f.firstChild)):On=g),Nn(a,r,r.pendingProps.children,i),ur(a,r),a===null&&(r.flags|=4194304),r.child;case 5:return a===null&&Xt&&((g=f=On)&&(f=rR(f,r.type,r.pendingProps,Sa),f!==null?(r.stateNode=f,ja=r,On=Cl(f.firstChild),Sa=!1,g=!0):g=!1),g||jr(r)),it(r),g=r.type,b=r.pendingProps,C=a!==null?a.memoizedProps:null,f=b.children,lf(g,b)?f=null:C!==null&&lf(g,C)&&(r.flags|=32),r.memoizedState!==null&&(g=Rd(a,r,tR,null,null,i),ih._currentValue=g),ur(a,r),Nn(a,r,f,i),r.child;case 6:return a===null&&Xt&&((a=i=On)&&(i=Lt(i,r.pendingProps,Sa),i!==null?(r.stateNode=i,ja=r,On=null,a=!0):a=!1),a||jr(r)),null;case 13:return pv(a,r,i);case 4:return Pe(r,r.stateNode.containerInfo),f=r.pendingProps,a===null?r.child=Eu(r,null,f,i):Nn(a,r,f,i),r.child;case 11:return sv(a,r,r.type,r.pendingProps,i);case 7:return Nn(a,r,r.pendingProps,i),r.child;case 8:return Nn(a,r,r.pendingProps.children,i),r.child;case 12:return Nn(a,r,r.pendingProps.children,i),r.child;case 10:return f=r.pendingProps,bl(r,r.type,f.value),Nn(a,r,f.children,i),r.child;case 9:return g=r.type._context,f=r.pendingProps.children,Et(r),g=Ce(g),f=f(g),r.flags|=1,Nn(a,r,f,i),r.child;case 14:return fv(a,r,r.type,r.pendingProps,i);case 15:return dv(a,r,r.type,r.pendingProps,i);case 19:return mv(a,r,i);case 31:return oS(a,r,i);case 22:return rS(a,r,i,r.pendingProps);case 24:return Et(r),f=Ce(ra),a===null?(g=rr(),g===null&&(g=bn,b=md(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=i),g=b),r.memoizedState={parent:f,cache:g},Td(r),bl(r,ra,g)):((a.lanes&i)!==0&&(xp(a,r),ko(r,null,null,i),Tu()),g=a.memoizedState,b=r.memoizedState,g.parent!==f?(g={parent:f,cache:f},r.memoizedState=g,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=g),bl(r,ra,f)):(f=b.cache,bl(r,ra,f),f!==g.cache&&Vo(r,[ra],i,!0))),Nn(a,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Zo(a){a.flags|=4}function gv(a,r,i,f,g){if((r=(a.mode&32)!==0)&&(r=!1),r){if(a.flags|=16777216,(g&335544128)===g)if(a.stateNode.complete)a.flags|=8192;else if(yS())a.flags|=8192;else throw vu=vc,gc}else a.flags&=-16777217}function vv(a,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Xl(r))if(yS())a.flags|=8192;else throw vu=vc,gc}function il(a,r){r!==null&&(a.flags|=4),a.flags&16384&&(r=a.tag!==22?ba():536870912,a.lanes|=r,Xn|=r)}function ks(a,r){if(!Xt)switch(a.tailMode){case"hidden":r=a.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?a.tail=null:i.sibling=null;break;case"collapsed":i=a.tail;for(var f=null;i!==null;)i.alternate!==null&&(f=i),i=i.sibling;f===null?r||a.tail===null?a.tail=null:a.tail.sibling=null:f.sibling=null}}function vt(a){var r=a.alternate!==null&&a.alternate.child===a.child,i=0,f=0;if(r)for(var g=a.child;g!==null;)i|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=a,g=g.sibling;else for(g=a.child;g!==null;)i|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=a,g=g.sibling;return a.subtreeFlags|=f,a.childLanes=i,r}function iS(a,r,i){var f=r.pendingProps;switch(bp(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(r),null;case 1:return vt(r),null;case 3:return i=r.stateNode,f=null,a!==null&&(f=a.memoizedState.cache),r.memoizedState.cache!==f&&(r.flags|=2048),oo(ra),Qe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(a===null||a.child===null)&&($o(r)?Zo(r):a===null||a.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zg())),vt(r),null;case 26:var g=r.type,b=r.memoizedState;return a===null?(Zo(r),b!==null?(vt(r),vv(r,b)):(vt(r),gv(r,g,null,f,i))):b?b!==a.memoizedState?(Zo(r),vt(r),vv(r,b)):(vt(r),r.flags&=-16777217):(a=a.memoizedProps,a!==f&&Zo(r),vt(r),gv(r,g,a,f,i)),null;case 27:if(Le(r),i=Ue.current,g=r.type,a!==null&&r.stateNode!=null)a.memoizedProps!==f&&Zo(r);else{if(!f){if(r.stateNode===null)throw Error(s(166));return vt(r),null}a=re.current,$o(r)?hd(r):(a=of(g,f,i),r.stateNode=a,Zo(r))}return vt(r),null;case 5:if(Le(r),g=r.type,a!==null&&r.stateNode!=null)a.memoizedProps!==f&&Zo(r);else{if(!f){if(r.stateNode===null)throw Error(s(166));return vt(r),null}if(b=re.current,$o(r))hd(r);else{var C=zu(Ue.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=C.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof f.is=="string"?C.createElement("select",{is:f.is}):C.createElement("select"),f.multiple?b.multiple=!0:f.size&&(b.size=f.size);break;default:b=typeof f.is=="string"?C.createElement(g,{is:f.is}):C.createElement(g)}}b[Ve]=r,b[Xe]=f;e:for(C=r.child;C!==null;){if(C.tag===5||C.tag===6)b.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===r)break e;for(;C.sibling===null;){if(C.return===null||C.return===r)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}r.stateNode=b;e:switch(Fa(b,g,f),g){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&Zo(r)}}return vt(r),gv(r,r.type,a===null?null:a.memoizedProps,r.pendingProps,i),null;case 6:if(a&&r.stateNode!=null)a.memoizedProps!==f&&Zo(r);else{if(typeof f!="string"&&r.stateNode===null)throw Error(s(166));if(a=Ue.current,$o(r)){if(a=r.stateNode,i=r.memoizedProps,f=null,g=ja,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}a[Ve]=r,a=!!(a.nodeValue===i||f!==null&&f.suppressHydrationWarning===!0||Gv(a.nodeValue,i)),a||jr(r,!0)}else a=zu(a).createTextNode(f),a[Ve]=r,r.stateNode=a}return vt(r),null;case 31:if(i=r.memoizedState,a===null||a.memoizedState!==null){if(f=$o(r),i!==null){if(a===null){if(!f)throw Error(s(318));if(a=r.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(557));a[Ve]=r}else pu(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;vt(r),a=!1}else i=zg(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=i),a=!0;if(!a)return r.flags&256?(Sl(r),r):(Sl(r),null);if((r.flags&128)!==0)throw Error(s(558))}return vt(r),null;case 13:if(f=r.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(g=$o(r),f!==null&&f.dehydrated!==null){if(a===null){if(!g)throw Error(s(318));if(g=r.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(s(317));g[Ve]=r}else pu(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;vt(r),g=!1}else g=zg(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=g),g=!0;if(!g)return r.flags&256?(Sl(r),r):(Sl(r),null)}return Sl(r),(r.flags&128)!==0?(r.lanes=i,r):(i=f!==null,a=a!==null&&a.memoizedState!==null,i&&(f=r.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==g&&(f.flags|=2048)),i!==a&&i&&(r.child.flags|=8192),il(r,r.updateQueue),vt(r),null);case 4:return Qe(),a===null&&af(r.stateNode.containerInfo),vt(r),null;case 10:return oo(r.type),vt(r),null;case 19:if(Z(Ln),f=r.memoizedState,f===null)return vt(r),null;if(g=(r.flags&128)!==0,b=f.rendering,b===null)if(g)ks(f,!1);else{if(Cn!==0||a!==null&&(a.flags&128)!==0)for(a=r.child;a!==null;){if(b=Ns(a),b!==null){for(r.flags|=128,ks(f,!1),a=b.updateQueue,r.updateQueue=a,il(r,a),r.subtreeFlags=0,a=i,i=r.child;i!==null;)wg(i,a),i=i.sibling;return ue(Ln,Ln.current&1|2),Xt&&Mr(r,f.treeForkCount),r.child}a=a.sibling}f.tail!==null&&jn()>un&&(r.flags|=128,g=!0,ks(f,!1),r.lanes=4194304)}else{if(!g)if(a=Ns(b),a!==null){if(r.flags|=128,g=!0,a=a.updateQueue,r.updateQueue=a,il(r,a),ks(f,!0),f.tail===null&&f.tailMode==="hidden"&&!b.alternate&&!Xt)return vt(r),null}else 2*jn()-f.renderingStartTime>un&&i!==536870912&&(r.flags|=128,g=!0,ks(f,!1),r.lanes=4194304);f.isBackwards?(b.sibling=r.child,r.child=b):(a=f.last,a!==null?a.sibling=b:r.child=b,f.last=b)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=jn(),a.sibling=null,i=Ln.current,ue(Ln,g?i&1|2:i&1),Xt&&Mr(r,f.treeForkCount),a):(vt(r),null);case 22:case 23:return Sl(r),Ms(),f=r.memoizedState!==null,a!==null?a.memoizedState!==null!==f&&(r.flags|=8192):f&&(r.flags|=8192),f?(i&536870912)!==0&&(r.flags&128)===0&&(vt(r),r.subtreeFlags&6&&(r.flags|=8192)):vt(r),i=r.updateQueue,i!==null&&il(r,i.retryQueue),i=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),f=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(f=r.memoizedState.cachePool.pool),f!==i&&(r.flags|=2048),a!==null&&Z(lr),null;case 24:return i=null,a!==null&&(i=a.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),oo(ra),vt(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function uS(a,r){switch(bp(r),r.tag){case 1:return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 3:return oo(ra),Qe(),a=r.flags,(a&65536)!==0&&(a&128)===0?(r.flags=a&-65537|128,r):null;case 26:case 27:case 5:return Le(r),null;case 31:if(r.memoizedState!==null){if(Sl(r),r.alternate===null)throw Error(s(340));pu()}return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 13:if(Sl(r),a=r.memoizedState,a!==null&&a.dehydrated!==null){if(r.alternate===null)throw Error(s(340));pu()}return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 19:return Z(Ln),null;case 4:return Qe(),null;case 10:return oo(r.type),null;case 22:case 23:return Sl(r),Ms(),a!==null&&Z(lr),a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 24:return oo(ra),null;case 25:return null;default:return null}}function cS(a,r){switch(bp(r),r.tag){case 3:oo(ra),Qe();break;case 26:case 27:case 5:Le(r);break;case 4:Qe();break;case 31:r.memoizedState!==null&&Sl(r);break;case 13:Sl(r);break;case 19:Z(Ln);break;case 10:oo(r.type);break;case 22:case 23:Sl(r),Ms(),a!==null&&Z(lr);break;case 24:oo(ra)}}function zr(a,r){try{var i=r.updateQueue,f=i!==null?i.lastEffect:null;if(f!==null){var g=f.next;i=g;do{if((i.tag&a)===a){f=void 0;var b=i.create,C=i.inst;f=b(),C.destroy=f}i=i.next}while(i!==g)}}catch(B){pn(r,r.return,B)}}function fr(a,r,i){try{var f=r.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var b=g.next;f=b;do{if((f.tag&a)===a){var C=f.inst,B=C.destroy;if(B!==void 0){C.destroy=void 0,g=r;var I=i,de=B;try{de()}catch(Te){pn(g,I,Te)}}}f=f.next}while(f!==b)}}catch(Te){pn(r,r.return,Te)}}function Kp(a){var r=a.updateQueue;if(r!==null){var i=a.stateNode;try{xu(r,i)}catch(f){pn(a,a.return,f)}}}function wu(a,r,i){i.props=Ou(a.type,a.memoizedProps),i.state=a.memoizedState;try{i.componentWillUnmount()}catch(f){pn(a,r,f)}}function Jo(a,r){try{var i=a.ref;if(i!==null){switch(a.tag){case 26:case 27:case 5:var f=a.stateNode;break;case 30:f=a.stateNode;break;default:f=a.stateNode}typeof i=="function"?a.refCleanup=i(f):i.current=f}}catch(g){pn(a,r,g)}}function so(a,r){var i=a.ref,f=a.refCleanup;if(i!==null)if(typeof f=="function")try{f()}catch(g){pn(a,r,g)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(g){pn(a,r,g)}else i.current=null}function bv(a){var r=a.type,i=a.memoizedProps,f=a.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&f.focus();break e;case"img":i.src?f.src=i.src:i.srcSet&&(f.srcset=i.srcSet)}}catch(g){pn(a,a.return,g)}}function Pp(a,r,i){try{var f=a.stateNode;Yv(f,a.type,i,r),f[Xe]=r}catch(g){pn(a,a.return,g)}}function Ev(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&yo(a.type)||a.tag===4}function Gs(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Ev(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.tag===27&&yo(a.type)||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 qs(a,r,i){var f=a.tag;if(f===5||f===6)a=a.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(a,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(a),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=Fr));else if(f!==4&&(f===27&&yo(a.type)&&(i=a.stateNode,r=null),a=a.child,a!==null))for(qs(a,r,i),a=a.sibling;a!==null;)qs(a,r,i),a=a.sibling}function Ys(a,r,i){var f=a.tag;if(f===5||f===6)a=a.stateNode,r?i.insertBefore(a,r):i.appendChild(a);else if(f!==4&&(f===27&&yo(a.type)&&(i=a.stateNode),a=a.child,a!==null))for(Ys(a,r,i),a=a.sibling;a!==null;)Ys(a,r,i),a=a.sibling}function Sv(a){var r=a.stateNode,i=a.memoizedProps;try{for(var f=a.type,g=r.attributes;g.length;)r.removeAttributeNode(g[0]);Fa(r,f,i),r[Ve]=a,r[Xe]=i}catch(b){pn(a,a.return,b)}}var Vi=!1,ha=!1,Wp=!1,Tv=typeof WeakSet=="function"?WeakSet:Set,La=null;function Qs(a,r){if(a=a.containerInfo,bm=_a,a=fu(a),od(a)){if("selectionStart"in a)var i={start:a.selectionStart,end:a.selectionEnd};else e:{i=(i=a.ownerDocument)&&i.defaultView||window;var f=i.getSelection&&i.getSelection();if(f&&f.rangeCount!==0){i=f.anchorNode;var g=f.anchorOffset,b=f.focusNode;f=f.focusOffset;try{i.nodeType,b.nodeType}catch{i=null;break e}var C=0,B=-1,I=-1,de=0,Te=0,Oe=a,he=null;t:for(;;){for(var be;Oe!==i||g!==0&&Oe.nodeType!==3||(B=C+g),Oe!==b||f!==0&&Oe.nodeType!==3||(I=C+f),Oe.nodeType===3&&(C+=Oe.nodeValue.length),(be=Oe.firstChild)!==null;)he=Oe,Oe=be;for(;;){if(Oe===a)break t;if(he===i&&++de===g&&(B=C),he===b&&++Te===f&&(I=C),(be=Oe.nextSibling)!==null)break;Oe=he,he=Oe.parentNode}Oe=be}i=B===-1||I===-1?null:{start:B,end:I}}else i=null}i=i||{start:0,end:0}}else i=null;for(Em={focusedElem:a,selectionRange:i},_a=!1,La=r;La!==null;)if(r=La,a=r.child,(r.subtreeFlags&1028)!==0&&a!==null)a.return=r,La=a;else for(;La!==null;){switch(r=La,b=r.alternate,a=r.flags,r.tag){case 0:if((a&4)!==0&&(a=r.updateQueue,a=a!==null?a.events:null,a!==null))for(i=0;i<a.length;i++)g=a[i],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,i=r,g=b.memoizedProps,b=b.memoizedState,f=i.stateNode;try{var We=Ou(i.type,g);a=f.getSnapshotBeforeUpdate(We,b),f.__reactInternalSnapshotBeforeUpdate=a}catch(ht){pn(i,i.return,ht)}}break;case 3:if((a&1024)!==0){if(a=r.stateNode.containerInfo,i=a.nodeType,i===9)ah(a);else if(i===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":ah(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(s(163))}if(a=r.sibling,a!==null){a.return=r.return,La=a;break}La=r.return}}function Vd(a,r,i){var f=i.flags;switch(i.tag){case 0:case 11:case 15:ki(a,i),f&4&&zr(5,i);break;case 1:if(ki(a,i),f&4)if(a=i.stateNode,r===null)try{a.componentDidMount()}catch(C){pn(i,i.return,C)}else{var g=Ou(i.type,r.memoizedProps);r=r.memoizedState;try{a.componentDidUpdate(g,r,a.__reactInternalSnapshotBeforeUpdate)}catch(C){pn(i,i.return,C)}}f&64&&Kp(i),f&512&&Jo(i,i.return);break;case 3:if(ki(a,i),f&64&&(a=i.updateQueue,a!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{xu(a,r)}catch(C){pn(i,i.return,C)}}break;case 27:r===null&&f&4&&Sv(i);case 26:case 5:ki(a,i),r===null&&f&4&&bv(i),f&512&&Jo(i,i.return);break;case 12:ki(a,i);break;case 31:ki(a,i),f&4&&sS(a,i);break;case 13:ki(a,i),f&4&&Rv(a,i),f&64&&(a=i.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(i=dr.bind(null,i),rf(a,i))));break;case 22:if(f=i.memoizedState!==null||Vi,!f){r=r!==null&&r.memoizedState!==null||ha,g=Vi;var b=ha;Vi=f,(ha=r)&&!b?fo(a,i,(i.subtreeFlags&8772)!==0):ki(a,i),Vi=g,ha=b}break;case 30:break;default:ki(a,i)}}function xv(a){var r=a.alternate;r!==null&&(a.alternate=null,xv(r)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(r=a.stateNode,r!==null&&gn(r)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var An=null,_l=!1;function Fo(a,r,i){for(i=i.child;i!==null;)_v(a,r,i),i=i.sibling}function _v(a,r,i){if(ea&&typeof ea.onCommitFiberUnmount=="function")try{ea.onCommitFiberUnmount(al,i)}catch{}switch(i.tag){case 26:ha||so(i,r),Fo(a,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ha||so(i,r);var f=An,g=_l;yo(i.type)&&(An=i.stateNode,_l=!1),Fo(a,r,i),Bc(i.stateNode),An=f,_l=g;break;case 5:ha||so(i,r);case 6:if(f=An,g=_l,An=null,Fo(a,r,i),An=f,_l=g,An!==null)if(_l)try{(An.nodeType===9?An.body:An.nodeName==="HTML"?An.ownerDocument.body:An).removeChild(i.stateNode)}catch(b){pn(i,r,b)}else try{An.removeChild(i.stateNode)}catch(b){pn(i,r,b)}break;case 18:An!==null&&(_l?(a=An,Zv(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.stateNode),gf(a)):Zv(An,i.stateNode));break;case 4:f=An,g=_l,An=i.stateNode.containerInfo,_l=!0,Fo(a,r,i),An=f,_l=g;break;case 0:case 11:case 14:case 15:fr(2,i,r),ha||fr(4,i,r),Fo(a,r,i);break;case 1:ha||(so(i,r),f=i.stateNode,typeof f.componentWillUnmount=="function"&&wu(i,r,f)),Fo(a,r,i);break;case 21:Fo(a,r,i);break;case 22:ha=(f=ha)||i.memoizedState!==null,Fo(a,r,i),ha=f;break;default:Fo(a,r,i)}}function sS(a,r){if(r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{gf(a)}catch(i){pn(r,r.return,i)}}}function Rv(a,r){if(r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{gf(a)}catch(i){pn(r,r.return,i)}}function kd(a){switch(a.tag){case 31:case 13:case 19:var r=a.stateNode;return r===null&&(r=a.stateNode=new Tv),r;case 22:return a=a.stateNode,r=a._retryCache,r===null&&(r=a._retryCache=new Tv),r;default:throw Error(s(435,a.tag))}}function Gd(a,r){var i=kd(a);r.forEach(function(f){if(!i.has(f)){i.add(f);var g=MS.bind(null,a,f);f.then(g,g)}})}function Rl(a,r){var i=r.deletions;if(i!==null)for(var f=0;f<i.length;f++){var g=i[f],b=a,C=r,B=C;e:for(;B!==null;){switch(B.tag){case 27:if(yo(B.type)){An=B.stateNode,_l=!1;break e}break;case 5:An=B.stateNode,_l=!1;break e;case 3:case 4:An=B.stateNode.containerInfo,_l=!0;break e}B=B.return}if(An===null)throw Error(s(160));_v(b,C,g),An=null,_l=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)em(r,a),r=r.sibling}var jt=null;function em(a,r){var i=a.alternate,f=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Rl(r,a),kl(a),f&4&&(fr(3,a,a.return),zr(3,a),fr(5,a,a.return));break;case 1:Rl(r,a),kl(a),f&512&&(ha||i===null||so(i,i.return)),f&64&&Vi&&(a=a.updateQueue,a!==null&&(f=a.callbacks,f!==null&&(i=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=i===null?f:i.concat(f))));break;case 26:var g=jt;if(Rl(r,a),kl(a),f&512&&(ha||i===null||so(i,i.return)),f&4){var b=i!==null?i.memoizedState:null;if(f=a.memoizedState,i===null)if(f===null)if(a.stateNode===null){e:{f=a.type,i=a.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":b=g.getElementsByTagName("title")[0],(!b||b[xt]||b[Ve]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(f),g.head.insertBefore(b,g.querySelector("head > title"))),Fa(b,f,i),b[Ve]=a,qt(b),f=b;break e;case"link":var C=Pv("link","href",g).get(f+(i.href||""));if(C){for(var B=0;B<C.length;B++)if(b=C[B],b.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&b.getAttribute("rel")===(i.rel==null?null:i.rel)&&b.getAttribute("title")===(i.title==null?null:i.title)&&b.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){C.splice(B,1);break t}}b=g.createElement(f),Fa(b,f,i),g.head.appendChild(b);break;case"meta":if(C=Pv("meta","content",g).get(f+(i.content||""))){for(B=0;B<C.length;B++)if(b=C[B],b.getAttribute("content")===(i.content==null?null:""+i.content)&&b.getAttribute("name")===(i.name==null?null:i.name)&&b.getAttribute("property")===(i.property==null?null:i.property)&&b.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&b.getAttribute("charset")===(i.charSet==null?null:i.charSet)){C.splice(B,1);break t}}b=g.createElement(f),Fa(b,f,i),g.head.appendChild(b);break;default:throw Error(s(468,f))}b[Ve]=a,qt(b),f=b}a.stateNode=f}else Rm(g,a.type,a.stateNode);else a.stateNode=Kv(g,f,a.memoizedProps);else b!==f?(b===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):b.count--,f===null?Rm(g,a.type,a.stateNode):Kv(g,f,a.memoizedProps)):f===null&&a.stateNode!==null&&Pp(a,a.memoizedProps,i.memoizedProps)}break;case 27:Rl(r,a),kl(a),f&512&&(ha||i===null||so(i,i.return)),i!==null&&f&4&&Pp(a,a.memoizedProps,i.memoizedProps);break;case 5:if(Rl(r,a),kl(a),f&512&&(ha||i===null||so(i,i.return)),a.flags&32){g=a.stateNode;try{Mo(g,"")}catch(We){pn(a,a.return,We)}}f&4&&a.stateNode!=null&&(g=a.memoizedProps,Pp(a,g,i!==null?i.memoizedProps:g)),f&1024&&(Wp=!0);break;case 6:if(Rl(r,a),kl(a),f&4){if(a.stateNode===null)throw Error(s(162));f=a.memoizedProps,i=a.stateNode;try{i.nodeValue=f}catch(We){pn(a,a.return,We)}}break;case 3:if(df=null,g=jt,jt=ul(r.containerInfo),Rl(r,a),jt=g,kl(a),f&4&&i!==null&&i.memoizedState.isDehydrated)try{gf(r.containerInfo)}catch(We){pn(a,a.return,We)}Wp&&(Wp=!1,Ov(a));break;case 4:f=jt,jt=ul(a.stateNode.containerInfo),Rl(r,a),kl(a),jt=f;break;case 12:Rl(r,a),kl(a);break;case 31:Rl(r,a),kl(a),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Gd(a,f)));break;case 13:Rl(r,a),kl(a),a.child.flags&8192&&a.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(mo=jn()),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Gd(a,f)));break;case 22:g=a.memoizedState!==null;var I=i!==null&&i.memoizedState!==null,de=Vi,Te=ha;if(Vi=de||g,ha=Te||I,Rl(r,a),ha=Te,Vi=de,kl(a),f&8192)e:for(r=a.stateNode,r._visibility=g?r._visibility&-2:r._visibility|1,g&&(i===null||I||Vi||ha||wc(a)),i=null,r=a;;){if(r.tag===5||r.tag===26){if(i===null){I=i=r;try{if(b=I.stateNode,g)C=b.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{B=I.stateNode;var Oe=I.memoizedProps.style,he=Oe!=null&&Oe.hasOwnProperty("display")?Oe.display:null;B.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(We){pn(I,I.return,We)}}}else if(r.tag===6){if(i===null){I=r;try{I.stateNode.nodeValue=g?"":I.memoizedProps}catch(We){pn(I,I.return,We)}}}else if(r.tag===18){if(i===null){I=r;try{var be=I.stateNode;g?ua(be,!0):ua(I.stateNode,!1)}catch(We){pn(I,I.return,We)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===a)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}f&4&&(f=a.updateQueue,f!==null&&(i=f.retryQueue,i!==null&&(f.retryQueue=null,Gd(a,i))));break;case 19:Rl(r,a),kl(a),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Gd(a,f)));break;case 30:break;case 21:break;default:Rl(r,a),kl(a)}}function kl(a){var r=a.flags;if(r&2){try{for(var i,f=a.return;f!==null;){if(Ev(f)){i=f;break}f=f.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var g=i.stateNode,b=Gs(a);Ys(a,b,g);break;case 5:var C=i.stateNode;i.flags&32&&(Mo(C,""),i.flags&=-33);var B=Gs(a);Ys(a,B,C);break;case 3:case 4:var I=i.stateNode.containerInfo,de=Gs(a);qs(a,de,I);break;default:throw Error(s(161))}}catch(Te){pn(a,a.return,Te)}a.flags&=-3}r&4096&&(a.flags&=-4097)}function Ov(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var r=a;Ov(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),a=a.sibling}}function ki(a,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Vd(a,r.alternate,r),r=r.sibling}function wc(a){for(a=a.child;a!==null;){var r=a;switch(r.tag){case 0:case 11:case 14:case 15:fr(4,r,r.return),wc(r);break;case 1:so(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&wu(r,r.return,i),wc(r);break;case 27:Bc(r.stateNode);case 26:case 5:so(r,r.return),wc(r);break;case 22:r.memoizedState===null&&wc(r);break;case 30:wc(r);break;default:wc(r)}a=a.sibling}}function fo(a,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var f=r.alternate,g=a,b=r,C=b.flags;switch(b.tag){case 0:case 11:case 15:fo(g,b,i),zr(4,b);break;case 1:if(fo(g,b,i),f=b,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(de){pn(f,f.return,de)}if(f=b,g=f.updateQueue,g!==null){var B=f.stateNode;try{var I=g.shared.hiddenCallbacks;if(I!==null)for(g.shared.hiddenCallbacks=null,g=0;g<I.length;g++)Rp(I[g],B)}catch(de){pn(f,f.return,de)}}i&&C&64&&Kp(b),Jo(b,b.return);break;case 27:Sv(b);case 26:case 5:fo(g,b,i),i&&f===null&&C&4&&bv(b),Jo(b,b.return);break;case 12:fo(g,b,i);break;case 31:fo(g,b,i),i&&C&4&&sS(g,b);break;case 13:fo(g,b,i),i&&C&4&&Rv(g,b);break;case 22:b.memoizedState===null&&fo(g,b,i),Jo(b,b.return);break;case 30:break;default:fo(g,b,i)}r=r.sibling}}function tm(a,r){var i=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(a!=null&&a.refCount++,i!=null&&yd(i))}function nm(a,r){a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(r.refCount++,a!=null&&yd(a))}function Ur(a,r,i,f){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Xs(a,r,i,f),r=r.sibling}function Xs(a,r,i,f){var g=r.flags;switch(r.tag){case 0:case 11:case 15:Ur(a,r,i,f),g&2048&&zr(9,r);break;case 1:Ur(a,r,i,f);break;case 3:Ur(a,r,i,f),g&2048&&(a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(r.refCount++,a!=null&&yd(a)));break;case 12:if(g&2048){Ur(a,r,i,f),a=r.stateNode;try{var b=r.memoizedProps,C=b.id,B=b.onPostCommit;typeof B=="function"&&B(C,r.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(I){pn(r,r.return,I)}}else Ur(a,r,i,f);break;case 31:Ur(a,r,i,f);break;case 13:Ur(a,r,i,f);break;case 23:break;case 22:b=r.stateNode,C=r.alternate,r.memoizedState!==null?b._visibility&2?Ur(a,r,i,f):qd(a,r):b._visibility&2?Ur(a,r,i,f):(b._visibility|=2,Is(a,r,i,f,(r.subtreeFlags&10256)!==0||!1)),g&2048&&tm(C,r);break;case 24:Ur(a,r,i,f),g&2048&&nm(r.alternate,r);break;default:Ur(a,r,i,f)}}function Is(a,r,i,f,g){for(g=g&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var b=a,C=r,B=i,I=f,de=C.flags;switch(C.tag){case 0:case 11:case 15:Is(b,C,B,I,g),zr(8,C);break;case 23:break;case 22:var Te=C.stateNode;C.memoizedState!==null?Te._visibility&2?Is(b,C,B,I,g):qd(b,C):(Te._visibility|=2,Is(b,C,B,I,g)),g&&de&2048&&tm(C.alternate,C);break;case 24:Is(b,C,B,I,g),g&&de&2048&&nm(C.alternate,C);break;default:Is(b,C,B,I,g)}r=r.sibling}}function qd(a,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=a,f=r,g=f.flags;switch(f.tag){case 22:qd(i,f),g&2048&&tm(f.alternate,f);break;case 24:qd(i,f),g&2048&&nm(f.alternate,f);break;default:qd(i,f)}r=r.sibling}}var Gl=8192;function Ko(a,r,i){if(a.subtreeFlags&Gl)for(a=a.child;a!==null;)fS(a,r,i),a=a.sibling}function fS(a,r,i){switch(a.tag){case 26:Ko(a,r,i),a.flags&Gl&&a.memoizedState!==null&&ni(i,jt,a.memoizedState,a.memoizedProps);break;case 5:Ko(a,r,i);break;case 3:case 4:var f=jt;jt=ul(a.stateNode.containerInfo),Ko(a,r,i),jt=f;break;case 22:a.memoizedState===null&&(f=a.alternate,f!==null&&f.memoizedState!==null?(f=Gl,Gl=16777216,Ko(a,r,i),Gl=f):Ko(a,r,i));break;default:Ko(a,r,i)}}function am(a){var r=a.alternate;if(r!==null&&(a=r.child,a!==null)){r.child=null;do r=a.sibling,a.sibling=null,a=r;while(a!==null)}}function Zs(a){var r=a.deletions;if((a.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var f=r[i];La=f,lm(f,a)}am(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Av(a),a=a.sibling}function Av(a){switch(a.tag){case 0:case 11:case 15:Zs(a),a.flags&2048&&fr(9,a,a.return);break;case 3:Zs(a);break;case 12:Zs(a);break;case 22:var r=a.stateNode;a.memoizedState!==null&&r._visibility&2&&(a.return===null||a.return.tag!==13)?(r._visibility&=-3,Yd(a)):Zs(a);break;default:Zs(a)}}function Yd(a){var r=a.deletions;if((a.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var f=r[i];La=f,lm(f,a)}am(a)}for(a=a.child;a!==null;){switch(r=a,r.tag){case 0:case 11:case 15:fr(8,r,r.return),Yd(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,Yd(r));break;default:Yd(r)}a=a.sibling}}function lm(a,r){for(;La!==null;){var i=La;switch(i.tag){case 0:case 11:case 15:fr(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var f=i.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:yd(i.memoizedState.cache)}if(f=i.child,f!==null)f.return=i,La=f;else e:for(i=a;La!==null;){f=La;var g=f.sibling,b=f.return;if(xv(f),f===i){La=null;break e}if(g!==null){g.return=b,La=g;break e}La=b}}}var dS={getCacheForType:function(a){var r=Ce(ra),i=r.data.get(a);return i===void 0&&(i=a(),r.data.set(a,i)),i},cacheSignal:function(){return Ce(ra).controller.signal}},Cv=typeof WeakMap=="function"?WeakMap:Map,ln=0,bn=null,It=null,kt=0,hn=0,yt=null,Po=!1,Mu=!1,rm=!1,ho=0,Cn=0,po=0,Mc=0,om=0,Ol=0,Xn=0,Qd=null,In=null,im=!1,mo=0,Dv=0,un=1/0,Js=null,Bn=null,xa=0,Gi=null,ju=null,Wo=0,ql=0,um=null,cm=null,Fs=0,Xd=null;function Yl(){return(ln&2)!==0&&kt!==0?kt&-kt:G.T!==null?pm():Ne()}function hS(){if(Ol===0)if((kt&536870912)===0||Xt){var a=Be;Be<<=1,(Be&3932160)===0&&(Be=262144),Ol=a}else Ol=536870912;return a=El.current,a!==null&&(a.flags|=32),Ol}function Al(a,r,i){(a===bn&&(hn===2||hn===9)||a.cancelPendingCommit!==null)&&(ei(a,0),qi(a,kt,Ol,!1)),Kl(a,i),((ln&2)===0||a!==bn)&&(a===bn&&((ln&2)===0&&(Mc|=i),Cn===4&&qi(a,kt,Ol,!1)),ti(a))}function pS(a,r,i){if((ln&6)!==0)throw Error(s(327));var f=!i&&(r&127)===0&&(r&a.expiredLanes)===0||Dt(a,r),g=f?bS(a,r):fm(a,r,!0),b=f;do{if(g===0){Mu&&!f&&qi(a,r,0,!1);break}else{if(i=a.current.alternate,b&&!mS(i)){g=fm(a,r,!1),b=!1;continue}if(g===2){if(b=r,a.errorRecoveryDisabledLanes&b)var C=0;else C=a.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){r=C;e:{var B=a;g=Qd;var I=B.current.memoizedState.isDehydrated;if(I&&(ei(B,C).flags|=256),C=fm(B,C,!1),C!==2){if(rm&&!I){B.errorRecoveryDisabledLanes|=b,Mc|=b,g=4;break e}b=In,In=g,b!==null&&(In===null?In=b:In.push.apply(In,b))}g=C}if(b=!1,g!==2)continue}}if(g===1){ei(a,0),qi(a,r,0,!0);break}e:{switch(f=a,b=g,b){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:qi(f,r,Ol,!Po);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(g=mo+300-jn(),10<g)){if(qi(f,r,Ol,!Po),tt(f,0,!0)!==0)break e;Wo=r,f.timeoutHandle=nh(Id.bind(null,f,i,In,Js,im,r,Ol,Mc,Xn,Po,b,"Throttled",-0,0),g);break e}Id(f,i,In,Js,im,r,Ol,Mc,Xn,Po,b,null,-0,0)}}break}while(!0);ti(a)}function Id(a,r,i,f,g,b,C,B,I,de,Te,Oe,he,be){if(a.timeoutHandle=-1,Oe=r.subtreeFlags,Oe&8192||(Oe&16785408)===16785408){Oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fr},fS(r,b,Oe);var We=(b&62914560)===b?mo-jn():(b&4194048)===b?Dv-jn():0;if(We=e0(Oe,We),We!==null){Wo=b,a.cancelPendingCommit=We(xS.bind(null,a,r,b,i,f,g,C,B,I,Te,Oe,null,he,be)),qi(a,b,C,!de);return}}xS(a,r,b,i,f,g,C,B,I)}function mS(a){for(var r=a;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var f=0;f<i.length;f++){var g=i[f],b=g.getSnapshot;g=g.value;try{if(!ol(b(),g))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function qi(a,r,i,f){r&=~om,r&=~Mc,a.suspendedLanes|=r,a.pingedLanes&=~r,f&&(a.warmLanes|=r),f=a.expirationTimes;for(var g=r;0<g;){var b=31-ta(g),C=1<<b;f[b]=-1,g&=~C}i!==0&&Pu(a,i,r)}function Ks(){return(ln&6)===0?(Qi(0),!1):!0}function wv(){if(It!==null){if(hn===0)var a=It.return;else a=It,ro=ji=null,Od(a),bu=null,bc=0,a=It;for(;a!==null;)cS(a.alternate,a),a=a.return;It=null}}function ei(a,r){var i=a.timeoutHandle;i!==-1&&(a.timeoutHandle=-1,$S(i)),i=a.cancelPendingCommit,i!==null&&(a.cancelPendingCommit=null,i()),Wo=0,wv(),bn=a,It=i=wi(a.current,null),kt=r,hn=0,yt=null,Po=!1,Mu=Dt(a,r),rm=!1,Xn=Ol=om=Mc=po=Cn=0,In=Qd=null,im=!1,(r&8)!==0&&(r|=r&32);var f=a.entangledLanes;if(f!==0)for(a=a.entanglements,f&=r;0<f;){var g=31-ta(f),b=1<<g;r|=a[g],f&=~b}return ho=r,er(),i}function Ps(a,r){Ot=null,G.H=zd,r===yu||r===Ds?(r=$g(),hn=3):r===gc?(r=$g(),hn=4):hn=r===Xp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,yt=r,It===null&&(Cn=1,Vs(a,nr(r,a.current)))}function yS(){var a=El.current;return a===null?!0:(kt&4194048)===kt?ir===null:(kt&62914560)===kt||(kt&536870912)!==0?a===ir:!1}function gS(){var a=G.H;return G.H=zd,a===null?zd:a}function vS(){var a=G.A;return G.A=dS,a}function sm(){Cn=4,Po||(kt&4194048)!==kt&&El.current!==null||(Mu=!0),(po&134217727)===0&&(Mc&134217727)===0||bn===null||qi(bn,kt,Ol,!1)}function fm(a,r,i){var f=ln;ln|=2;var g=gS(),b=vS();(bn!==a||kt!==r)&&(Js=null,ei(a,r)),r=!1;var C=Cn;e:do try{if(hn!==0&&It!==null){var B=It,I=yt;switch(hn){case 8:wv(),C=6;break e;case 3:case 2:case 9:case 6:El.current===null&&(r=!0);var de=hn;if(hn=0,yt=null,jc(a,B,I,de),i&&Mu){C=0;break e}break;default:de=hn,hn=0,yt=null,jc(a,B,I,de)}}aR(),C=Cn;break}catch(Te){Ps(a,Te)}while(!0);return r&&a.shellSuspendCounter++,ro=ji=null,ln=f,G.H=g,G.A=b,It===null&&(bn=null,kt=0,er()),C}function aR(){for(;It!==null;)ES(It)}function bS(a,r){var i=ln;ln|=2;var f=gS(),g=vS();bn!==a||kt!==r?(Js=null,un=jn()+500,ei(a,r)):Mu=Dt(a,r);e:do try{if(hn!==0&&It!==null){r=It;var b=yt;t:switch(hn){case 1:hn=0,yt=null,jc(a,r,b,1);break;case 2:case 9:if(Bg(b)){hn=0,yt=null,SS(r);break}r=function(){hn!==2&&hn!==9||bn!==a||(hn=7),ti(a)},b.then(r,r);break e;case 3:hn=7;break e;case 4:hn=5;break e;case 7:Bg(b)?(hn=0,yt=null,SS(r)):(hn=0,yt=null,jc(a,r,b,7));break;case 5:var C=null;switch(It.tag){case 26:C=It.memoizedState;case 5:case 27:var B=It;if(C?Xl(C):B.stateNode.complete){hn=0,yt=null;var I=B.sibling;if(I!==null)It=I;else{var de=B.return;de!==null?(It=de,Zd(de)):It=null}break t}}hn=0,yt=null,jc(a,r,b,5);break;case 6:hn=0,yt=null,jc(a,r,b,6);break;case 8:wv(),Cn=6;break e;default:throw Error(s(462))}}Nu();break}catch(Te){Ps(a,Te)}while(!0);return ro=ji=null,G.H=f,G.A=g,ln=i,It!==null?0:(bn=null,kt=0,er(),Cn)}function Nu(){for(;It!==null&&!Ul();)ES(It)}function ES(a){var r=yv(a.alternate,a,ho);a.memoizedProps=a.pendingProps,r===null?Zd(a):It=r}function SS(a){var r=a,i=r.alternate;switch(r.tag){case 15:case 0:r=Cu(i,r,r.pendingProps,r.type,void 0,kt);break;case 11:r=Cu(i,r,r.pendingProps,r.type.render,r.ref,kt);break;case 5:Od(r);default:cS(i,r),r=It=wg(r,ho),r=yv(i,r,ho)}a.memoizedProps=a.pendingProps,r===null?Zd(a):It=r}function jc(a,r,i,f){ro=ji=null,Od(r),bu=null,bc=0;var g=r.return;try{if(nR(a,g,r,i,kt)){Cn=1,Vs(a,nr(i,a.current)),It=null;return}}catch(b){if(g!==null)throw It=g,b;Cn=1,Vs(a,nr(i,a.current)),It=null;return}r.flags&32768?(Xt||f===1?a=!0:Mu||(kt&536870912)!==0?a=!1:(Po=a=!0,(f===2||f===9||f===3||f===6)&&(f=El.current,f!==null&&f.tag===13&&(f.flags|=16384))),TS(r,a)):Zd(r)}function Zd(a){var r=a;do{if((r.flags&32768)!==0){TS(r,Po);return}a=r.return;var i=iS(r.alternate,r,ho);if(i!==null){It=i;return}if(r=r.sibling,r!==null){It=r;return}It=r=a}while(r!==null);Cn===0&&(Cn=5)}function TS(a,r){do{var i=uS(a.alternate,a);if(i!==null){i.flags&=32767,It=i;return}if(i=a.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(a=a.sibling,a!==null)){It=a;return}It=a=i}while(a!==null);Cn=6,It=null}function xS(a,r,i,f,g,b,C,B,I){a.cancelPendingCommit=null;do Ws();while(xa!==0);if((ln&6)!==0)throw Error(s(327));if(r!==null){if(r===a.current)throw Error(s(177));if(b=r.lanes|r.childLanes,b|=Dr,Ri(a,i,b,C,B,I),a===bn&&(It=bn=null,kt=0),ju=r,Gi=a,Wo=i,ql=b,um=g,cm=f,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,jS(Da,function(){return CS(),null})):(a.callbackNode=null,a.callbackPriority=0),f=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||f){f=G.T,G.T=null,g=ce.p,ce.p=2,C=ln,ln|=4;try{Qs(a,r,i)}finally{ln=C,ce.p=g,G.T=f}}xa=1,_S(),RS(),OS()}}function _S(){if(xa===1){xa=0;var a=Gi,r=ju,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var f=ce.p;ce.p=2;var g=ln;ln|=4;try{em(r,a);var b=Em,C=fu(a.containerInfo),B=b.focusedElem,I=b.selectionRange;if(C!==B&&B&&B.ownerDocument&&cc(B.ownerDocument.documentElement,B)){if(I!==null&&od(B)){var de=I.start,Te=I.end;if(Te===void 0&&(Te=de),"selectionStart"in B)B.selectionStart=de,B.selectionEnd=Math.min(Te,B.value.length);else{var Oe=B.ownerDocument||document,he=Oe&&Oe.defaultView||window;if(he.getSelection){var be=he.getSelection(),We=B.textContent.length,ht=Math.min(I.start,We),Sn=I.end===void 0?ht:Math.min(I.end,We);!be.extend&&ht>Sn&&(C=Sn,Sn=ht,ht=C);var ie=Cg(B,ht),te=Cg(B,Sn);if(ie&&te&&(be.rangeCount!==1||be.anchorNode!==ie.node||be.anchorOffset!==ie.offset||be.focusNode!==te.node||be.focusOffset!==te.offset)){var fe=Oe.createRange();fe.setStart(ie.node,ie.offset),be.removeAllRanges(),ht>Sn?(be.addRange(fe),be.extend(te.node,te.offset)):(fe.setEnd(te.node,te.offset),be.addRange(fe))}}}}for(Oe=[],be=B;be=be.parentNode;)be.nodeType===1&&Oe.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<Oe.length;B++){var _e=Oe[B];_e.element.scrollLeft=_e.left,_e.element.scrollTop=_e.top}}_a=!!bm,Em=bm=null}finally{ln=g,ce.p=f,G.T=i}}a.current=r,xa=2}}function RS(){if(xa===2){xa=0;var a=Gi,r=ju,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var f=ce.p;ce.p=2;var g=ln;ln|=4;try{Vd(a,r.alternate,r)}finally{ln=g,ce.p=f,G.T=i}}xa=3}}function OS(){if(xa===4||xa===3){xa=0,Xr();var a=Gi,r=ju,i=Wo,f=cm;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?xa=5:(xa=0,ju=Gi=null,AS(a,a.pendingLanes));var g=a.pendingLanes;if(g===0&&(Bn=null),ye(i),r=r.stateNode,ea&&typeof ea.onCommitFiberRoot=="function")try{ea.onCommitFiberRoot(al,r,void 0,(r.current.flags&128)===128)}catch{}if(f!==null){r=G.T,g=ce.p,ce.p=2,G.T=null;try{for(var b=a.onRecoverableError,C=0;C<f.length;C++){var B=f[C];b(B.value,{componentStack:B.stack})}}finally{G.T=r,ce.p=g}}(Wo&3)!==0&&Ws(),ti(a),g=a.pendingLanes,(i&261930)!==0&&(g&42)!==0?a===Xd?Fs++:(Fs=0,Xd=a):Fs=0,Qi(0)}}function AS(a,r){(a.pooledCacheLanes&=r)===0&&(r=a.pooledCache,r!=null&&(a.pooledCache=null,yd(r)))}function Ws(){return _S(),RS(),OS(),CS()}function CS(){if(xa!==5)return!1;var a=Gi,r=ql;ql=0;var i=ye(Wo),f=G.T,g=ce.p;try{ce.p=32>i?32:i,G.T=null,i=um,um=null;var b=Gi,C=Wo;if(xa=0,ju=Gi=null,Wo=0,(ln&6)!==0)throw Error(s(331));var B=ln;if(ln|=4,Av(b.current),Xs(b,b.current,C,i),ln=B,Qi(0,!1),ea&&typeof ea.onPostCommitFiberRoot=="function")try{ea.onPostCommitFiberRoot(al,b)}catch{}return!0}finally{ce.p=g,G.T=f,AS(a,r)}}function DS(a,r,i){r=nr(i,r),r=iv(a.stateNode,r,2),a=or(a,r,2),a!==null&&(Kl(a,2),ti(a))}function pn(a,r,i){if(a.tag===3)DS(a,a,i);else for(;r!==null;){if(r.tag===3){DS(r,a,i);break}else if(r.tag===1){var f=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Bn===null||!Bn.has(f))){a=nr(i,a),i=uv(2),f=or(r,i,2),f!==null&&(cv(i,f,r,a),Kl(f,2),ti(f));break}}r=r.return}}function Jd(a,r,i){var f=a.pingCache;if(f===null){f=a.pingCache=new Cv;var g=new Set;f.set(r,g)}else g=f.get(r),g===void 0&&(g=new Set,f.set(r,g));g.has(i)||(rm=!0,g.add(i),a=Mv.bind(null,a,r,i),r.then(a,a))}function Mv(a,r,i){var f=a.pingCache;f!==null&&f.delete(r),a.pingedLanes|=a.suspendedLanes&i,a.warmLanes&=~i,bn===a&&(kt&i)===i&&(Cn===4||Cn===3&&(kt&62914560)===kt&&300>jn()-mo?(ln&2)===0&&ei(a,0):om|=i,Xn===kt&&(Xn=0)),ti(a)}function wS(a,r){r===0&&(r=ba()),a=Di(a,r),a!==null&&(Kl(a,r),ti(a))}function dr(a){var r=a.memoizedState,i=0;r!==null&&(i=r.retryLane),wS(a,i)}function MS(a,r){var i=0;switch(a.tag){case 31:case 13:var f=a.stateNode,g=a.memoizedState;g!==null&&(i=g.retryLane);break;case 19:f=a.stateNode;break;case 22:f=a.stateNode._retryCache;break;default:throw Error(s(314))}f!==null&&f.delete(r),wS(a,i)}function jS(a,r){return Je(a,r)}var ef=null,Nc=null,jv=!1,dm=!1,Nv=!1,Yi=0;function ti(a){a!==Nc&&a.next===null&&(Nc===null?ef=Nc=a:Nc=Nc.next=a),dm=!0,jv||(jv=!0,Kd())}function Qi(a,r){if(!Nv&&dm){Nv=!0;do for(var i=!1,f=ef;f!==null;){if(a!==0){var g=f.pendingLanes;if(g===0)var b=0;else{var C=f.suspendedLanes,B=f.pingedLanes;b=(1<<31-ta(42|a)+1)-1,b&=g&~(C&~B),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(i=!0,zc(f,b))}else b=kt,b=tt(f,f===bn?b:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(b&3)===0||Dt(f,b)||(i=!0,zc(f,b));f=f.next}while(i);Nv=!1}}function hm(){zv()}function zv(){dm=jv=!1;var a=0;Yi!==0&&lR()&&(a=Yi);for(var r=jn(),i=null,f=ef;f!==null;){var g=f.next,b=Uv(f,r);b===0?(f.next=null,i===null?ef=g:i.next=g,g===null&&(Nc=i)):(i=f,(a!==0||(b&3)!==0)&&(dm=!0)),f=g}xa!==0&&xa!==5||Qi(a),Yi!==0&&(Yi=0)}function Uv(a,r){for(var i=a.suspendedLanes,f=a.pingedLanes,g=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var C=31-ta(b),B=1<<C,I=g[C];I===-1?((B&i)===0||(B&f)!==0)&&(g[C]=bt(B,r)):I<=r&&(a.expiredLanes|=B),b&=~B}if(r=bn,i=kt,i=tt(a,a===r?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f=a.callbackNode,i===0||a===r&&(hn===2||hn===9)||a.cancelPendingCommit!==null)return f!==null&&f!==null&&Tr(f),a.callbackNode=null,a.callbackPriority=0;if((i&3)===0||Dt(a,i)){if(r=i&-i,r===a.callbackPriority)return r;switch(f!==null&&Tr(f),ye(i)){case 2:case 8:i=tl;break;case 32:i=Da;break;case 268435456:i=nl;break;default:i=Da}return f=Fd.bind(null,a),i=Je(i,f),a.callbackPriority=r,a.callbackNode=i,r}return f!==null&&f!==null&&Tr(f),a.callbackPriority=2,a.callbackNode=null,2}function Fd(a,r){if(xa!==0&&xa!==5)return a.callbackNode=null,a.callbackPriority=0,null;var i=a.callbackNode;if(Ws()&&a.callbackNode!==i)return null;var f=kt;return f=tt(a,a===bn?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f===0?null:(pS(a,f,r),Uv(a,jn()),a.callbackNode!=null&&a.callbackNode===i?Fd.bind(null,a):null)}function zc(a,r){if(Ws())return null;pS(a,r,!0)}function Kd(){VS(function(){(ln&6)!==0?Je(Rt,hm):zv()})}function pm(){if(Yi===0){var a=mu;a===0&&(a=we,we<<=1,(we&261888)===0&&(we=256)),Yi=a}return Yi}function NS(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Rr(""+a)}function Uc(a,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,a.id&&i.setAttribute("form",a.id),r.parentNode.insertBefore(i,r),a=new FormData(a),i.parentNode.removeChild(i),a}function Pd(a,r,i,f,g){if(r==="submit"&&i&&i.stateNode===g){var b=NS((g[Xe]||null).action),C=f.submitter;C&&(r=(r=C[Xe]||null)?NS(r.formAction):C.getAttribute("formAction"),r!==null&&(b=r,C=null));var B=new ad("action","action",null,f,g);a.push({event:B,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Yi!==0){var I=C?Uc(g,C):new FormData(g);Hs(i,{pending:!0,data:I,method:g.method,action:b},null,I)}}else typeof b=="function"&&(B.preventDefault(),I=C?Uc(g,C):new FormData(g),Hs(i,{pending:!0,data:I,method:g.method,action:b},b,I))},currentTarget:g}]})}}for(var mm=0;mm<xs.length;mm++){var tf=xs[mm],Lv=tf.toLowerCase(),Bv=tf[0].toUpperCase()+tf.slice(1);yl(Lv,"on"+Bv)}yl(ud,"onAnimationEnd"),yl(Dg,"onAnimationIteration"),yl(mp,"onAnimationStart"),yl("dblclick","onDoubleClick"),yl("focusin","onFocus"),yl("focusout","onBlur"),yl(sc,"onTransitionRun"),yl(cd,"onTransitionStart"),yl(Uo,"onTransitionCancel"),yl(YE,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nf="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(" "),zS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nf));function US(a,r){r=(r&4)!==0;for(var i=0;i<a.length;i++){var f=a[i],g=f.event;f=f.listeners;e:{var b=void 0;if(r)for(var C=f.length-1;0<=C;C--){var B=f[C],I=B.instance,de=B.currentTarget;if(B=B.listener,I!==b&&g.isPropagationStopped())break e;b=B,g.currentTarget=de;try{b(g)}catch(Te){fc(Te)}g.currentTarget=null,b=I}else for(C=0;C<f.length;C++){if(B=f[C],I=B.instance,de=B.currentTarget,B=B.listener,I!==b&&g.isPropagationStopped())break e;b=B,g.currentTarget=de;try{b(g)}catch(Te){fc(Te)}g.currentTarget=null,b=I}}}}function Yt(a,r){var i=r[rt];i===void 0&&(i=r[rt]=new Set);var f=a+"__bubble";i.has(f)||(Wd(r,a,2,!1),i.add(f))}function Hv(a,r,i){var f=0;r&&(f|=4),Wd(i,a,f,r)}var ym="_reactListening"+Math.random().toString(36).slice(2);function af(a){if(!a[ym]){a[ym]=!0,Pl.forEach(function(i){i!=="selectionchange"&&(zS.has(i)||Hv(i,!1,a),Hv(i,!0,a))});var r=a.nodeType===9?a:a.ownerDocument;r===null||r[ym]||(r[ym]=!0,Hv("selectionchange",!1,r))}}function Wd(a,r,i,f){switch(uh(r)){case 2:var g=ai;break;case 8:g=li;break;default:g=Ka}i=g.bind(null,r,i,a),g=void 0,!td||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(g=!0),f?g!==void 0?a.addEventListener(r,i,{capture:!0,passive:g}):a.addEventListener(r,i,!0):g!==void 0?a.addEventListener(r,i,{passive:g}):a.addEventListener(r,i,!1)}function $v(a,r,i,f,g){var b=f;if((r&1)===0&&(r&2)===0&&f!==null)e:for(;;){if(f===null)return;var C=f.tag;if(C===3||C===4){var B=f.stateNode.containerInfo;if(B===g)break;if(C===4)for(C=f.return;C!==null;){var I=C.tag;if((I===3||I===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;B!==null;){if(C=Rn(B),C===null)return;if(I=C.tag,I===5||I===6||I===26||I===27){f=b=C;continue e}B=B.parentNode}}f=f.return}fg(function(){var de=b,Te=np(i),Oe=[];e:{var he=Lo.get(a);if(he!==void 0){var be=ad,We=a;switch(a){case"keypress":if(lp(i)===0)break e;case"keydown":case"keyup":be=up;break;case"focusin":We="focus",be=op;break;case"focusout":We="blur",be=op;break;case"beforeblur":case"afterblur":be=op;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=vs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=jE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=BE;break;case ud:case Dg:case mp:be=zE;break;case YE:be=P_;break;case"scroll":case"scrollend":be=F_;break;case"wheel":be=W_;break;case"copy":case"cut":case"paste":be=ac;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=Wr;break;case"toggle":case"beforetoggle":be=Eg}var ht=(r&4)!==0,Sn=!ht&&(a==="scroll"||a==="scrollend"),ie=ht?he!==null?he+"Capture":null:he;ht=[];for(var te=de,fe;te!==null;){var _e=te;if(fe=_e.stateNode,_e=_e.tag,_e!==5&&_e!==26&&_e!==27||fe===null||ie===null||(_e=wa(te,ie),_e!=null&&ht.push(eh(te,_e,fe))),Sn)break;te=te.return}0<ht.length&&(he=new be(he,We,null,i,Te),Oe.push({event:he,listeners:ht}))}}if((r&7)===0){e:{if(he=a==="mouseover"||a==="pointerover",be=a==="mouseout"||a==="pointerout",he&&i!==tp&&(We=i.relatedTarget||i.fromElement)&&(Rn(We)||We[Ie]))break e;if((be||he)&&(he=Te.window===Te?Te:(he=Te.ownerDocument)?he.defaultView||he.parentWindow:window,be?(We=i.relatedTarget||i.toElement,be=de,We=We?Rn(We):null,We!==null&&(Sn=p(We),ht=We.tag,We!==Sn||ht!==5&&ht!==27&&ht!==6)&&(We=null)):(be=null,We=de),be!==We)){if(ht=vs,_e="onMouseLeave",ie="onMouseEnter",te="mouse",(a==="pointerout"||a==="pointerover")&&(ht=Wr,_e="onPointerLeave",ie="onPointerEnter",te="pointer"),Sn=be==null?he:Kt(be),fe=We==null?he:Kt(We),he=new ht(_e,te+"leave",be,i,Te),he.target=Sn,he.relatedTarget=fe,_e=null,Rn(Te)===de&&(ht=new ht(ie,te+"enter",We,i,Te),ht.target=fe,ht.relatedTarget=Sn,_e=ht),Sn=_e,be&&We)t:{for(ht=LS,ie=be,te=We,fe=0,_e=ie;_e;_e=ht(_e))fe++;_e=0;for(var ot=te;ot;ot=ht(ot))_e++;for(;0<fe-_e;)ie=ht(ie),fe--;for(;0<_e-fe;)te=ht(te),_e--;for(;fe--;){if(ie===te||te!==null&&ie===te.alternate){ht=ie;break t}ie=ht(ie),te=ht(te)}ht=null}else ht=null;be!==null&&gm(Oe,he,be,ht,!1),We!==null&&Sn!==null&&gm(Oe,Sn,We,ht,!0)}}e:{if(he=de?Kt(de):window,be=he.nodeName&&he.nodeName.toLowerCase(),be==="select"||be==="input"&&he.type==="file")var tn=Rg;else if(zo(he))if(fp)tn=uc;else{tn=GE;var nt=kE}else be=he.nodeName,!be||be.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?de&&sg(de.elementType)&&(tn=Rg):tn=su;if(tn&&(tn=tn(a,de))){_g(Oe,tn,i,Te);break e}nt&&nt(a,he,de),a==="focusout"&&de&&he.type==="number"&&de.memoizedProps.value!=null&&ec(he,"number",he.value)}switch(nt=de?Kt(de):window,a){case"focusin":(zo(nt)||nt.contentEditable==="true")&&(du=nt,Ss=de,Cr=null);break;case"focusout":Cr=Ss=du=null;break;case"mousedown":to=!0;break;case"contextmenu":case"mouseup":case"dragend":to=!1,pp(Oe,i,Te);break;case"selectionchange":if(id)break;case"keydown":case"keyup":pp(Oe,i,Te)}var _t;if(bs)e:{switch(a){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else rc?sp(a,i)&&(Nt="onCompositionEnd"):a==="keydown"&&i.keyCode===229&&(Nt="onCompositionStart");Nt&&(Sg&&i.locale!=="ko"&&(rc||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&rc&&(_t=hg()):(Ai=Te,dg="value"in Ai?Ai.value:Ai.textContent,rc=!0)),nt=th(de,Nt),0<nt.length&&(Nt=new UE(Nt,a,null,i,Te),Oe.push({event:Nt,listeners:nt}),_t?Nt.data=_t:(_t=Tg(i),_t!==null&&(Nt.data=_t)))),(_t=rl?VE(a,i):eR(a,i))&&(Nt=th(de,"onBeforeInput"),0<Nt.length&&(nt=new UE("onBeforeInput","beforeinput",null,i,Te),Oe.push({event:nt,listeners:Nt}),nt.data=_t)),Pd(Oe,a,de,i,Te)}US(Oe,r)})}function eh(a,r,i){return{instance:a,listener:r,currentTarget:i}}function th(a,r){for(var i=r+"Capture",f=[];a!==null;){var g=a,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=wa(a,i),g!=null&&f.unshift(eh(a,g,b)),g=wa(a,r),g!=null&&f.push(eh(a,g,b))),a.tag===3)return f;a=a.return}return[]}function LS(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function gm(a,r,i,f,g){for(var b=r._reactName,C=[];i!==null&&i!==f;){var B=i,I=B.alternate,de=B.stateNode;if(B=B.tag,I!==null&&I===f)break;B!==5&&B!==26&&B!==27||de===null||(I=de,g?(de=wa(i,b),de!=null&&C.unshift(eh(i,de,I))):g||(de=wa(i,b),de!=null&&C.push(eh(i,de,I)))),i=i.return}C.length!==0&&a.push({event:r,listeners:C})}var BS=/\r\n?/g,Vv=/\u0000|\uFFFD/g;function kv(a){return(typeof a=="string"?a:""+a).replace(BS,`
|
|
102
|
+
`).replace(Vv,"")}function Gv(a,r){return r=kv(r),kv(a)===r}function En(a,r,i,f,g,b){switch(i){case"children":typeof f=="string"?r==="body"||r==="textarea"&&f===""||Mo(a,f):(typeof f=="number"||typeof f=="bigint")&&r!=="body"&&Mo(a,""+f);break;case"className":na(a,"class",f);break;case"tabIndex":na(a,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":na(a,i,f);break;case"style":DE(a,f,b);break;case"data":if(r!=="object"){na(a,"data",f);break}case"src":case"href":if(f===""&&(r!=="a"||i!=="href")){a.removeAttribute(i);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(i);break}f=Rr(""+f),a.setAttribute(i,f);break;case"action":case"formAction":if(typeof f=="function"){a.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(i==="formAction"?(r!=="input"&&En(a,r,"name",g.name,g,null),En(a,r,"formEncType",g.formEncType,g,null),En(a,r,"formMethod",g.formMethod,g,null),En(a,r,"formTarget",g.formTarget,g,null)):(En(a,r,"encType",g.encType,g,null),En(a,r,"method",g.method,g,null),En(a,r,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(i);break}f=Rr(""+f),a.setAttribute(i,f);break;case"onClick":f!=null&&(a.onclick=Fr);break;case"onScroll":f!=null&&Yt("scroll",a);break;case"onScrollEnd":f!=null&&Yt("scrollend",a);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(s(61));if(i=f.__html,i!=null){if(g.children!=null)throw Error(s(60));a.innerHTML=i}}break;case"multiple":a.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":a.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){a.removeAttribute("xlink:href");break}i=Rr(""+f),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(i,""+f):a.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(i,""):a.removeAttribute(i);break;case"capture":case"download":f===!0?a.setAttribute(i,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(i,f):a.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?a.setAttribute(i,f):a.removeAttribute(i);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?a.removeAttribute(i):a.setAttribute(i,f);break;case"popover":Yt("beforetoggle",a),Yt("toggle",a),Ut(a,"popover",f);break;case"xlinkActuate":ll(a,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":ll(a,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":ll(a,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":ll(a,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":ll(a,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":ll(a,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":ll(a,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":ll(a,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":ll(a,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Ut(a,"is",f);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=J_.get(i)||i,Ut(a,i,f))}}function qv(a,r,i,f,g,b){switch(i){case"style":DE(a,f,b);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(s(61));if(i=f.__html,i!=null){if(g.children!=null)throw Error(s(60));a.innerHTML=i}}break;case"children":typeof f=="string"?Mo(a,f):(typeof f=="number"||typeof f=="bigint")&&Mo(a,""+f);break;case"onScroll":f!=null&&Yt("scroll",a);break;case"onScrollEnd":f!=null&&Yt("scrollend",a);break;case"onClick":f!=null&&(a.onclick=Fr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Za.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(g=i.endsWith("Capture"),r=i.slice(2,g?i.length-7:void 0),b=a[Xe]||null,b=b!=null?b[i]:null,typeof b=="function"&&a.removeEventListener(r,b,g),typeof f=="function")){typeof b!="function"&&b!==null&&(i in a?a[i]=null:a.hasAttribute(i)&&a.removeAttribute(i)),a.addEventListener(r,f,g);break e}i in a?a[i]=f:f===!0?a.setAttribute(i,""):Ut(a,i,f)}}}function Fa(a,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Yt("error",a),Yt("load",a);var f=!1,g=!1,b;for(b in i)if(i.hasOwnProperty(b)){var C=i[b];if(C!=null)switch(b){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:En(a,r,b,C,i,null)}}g&&En(a,r,"srcSet",i.srcSet,i,null),f&&En(a,r,"src",i.src,i,null);return;case"input":Yt("invalid",a);var B=b=C=g=null,I=null,de=null;for(f in i)if(i.hasOwnProperty(f)){var Te=i[f];if(Te!=null)switch(f){case"name":g=Te;break;case"type":C=Te;break;case"checked":I=Te;break;case"defaultChecked":de=Te;break;case"value":b=Te;break;case"defaultValue":B=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(s(137,r));break;default:En(a,r,f,Te,i,null)}}Pf(a,b,B,I,de,C,g,!1);return;case"select":Yt("invalid",a),f=C=b=null;for(g in i)if(i.hasOwnProperty(g)&&(B=i[g],B!=null))switch(g){case"value":b=B;break;case"defaultValue":C=B;break;case"multiple":f=B;default:En(a,r,g,B,i,null)}r=b,i=C,a.multiple=!!f,r!=null?ps(a,!!f,r,!1):i!=null&&ps(a,!!f,i,!0);return;case"textarea":Yt("invalid",a),b=g=f=null;for(C in i)if(i.hasOwnProperty(C)&&(B=i[C],B!=null))switch(C){case"value":f=B;break;case"defaultValue":g=B;break;case"children":b=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(91));break;default:En(a,r,C,B,i,null)}cg(a,f,g,b);return;case"option":for(I in i)if(i.hasOwnProperty(I)&&(f=i[I],f!=null))switch(I){case"selected":a.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:En(a,r,I,f,i,null)}return;case"dialog":Yt("beforetoggle",a),Yt("toggle",a),Yt("cancel",a),Yt("close",a);break;case"iframe":case"object":Yt("load",a);break;case"video":case"audio":for(f=0;f<nf.length;f++)Yt(nf[f],a);break;case"image":Yt("error",a),Yt("load",a);break;case"details":Yt("toggle",a);break;case"embed":case"source":case"link":Yt("error",a),Yt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in i)if(i.hasOwnProperty(de)&&(f=i[de],f!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:En(a,r,de,f,i,null)}return;default:if(sg(r)){for(Te in i)i.hasOwnProperty(Te)&&(f=i[Te],f!==void 0&&qv(a,r,Te,f,i,void 0));return}}for(B in i)i.hasOwnProperty(B)&&(f=i[B],f!=null&&En(a,r,B,f,i,null))}function Yv(a,r,i,f){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,C=null,B=null,I=null,de=null,Te=null;for(be in i){var Oe=i[be];if(i.hasOwnProperty(be)&&Oe!=null)switch(be){case"checked":break;case"value":break;case"defaultValue":I=Oe;default:f.hasOwnProperty(be)||En(a,r,be,null,f,Oe)}}for(var he in f){var be=f[he];if(Oe=i[he],f.hasOwnProperty(he)&&(be!=null||Oe!=null))switch(he){case"type":b=be;break;case"name":g=be;break;case"checked":de=be;break;case"defaultChecked":Te=be;break;case"value":C=be;break;case"defaultValue":B=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(s(137,r));break;default:be!==Oe&&En(a,r,he,be,f,Oe)}}Kf(a,C,B,I,de,Te,b,g);return;case"select":be=C=B=he=null;for(b in i)if(I=i[b],i.hasOwnProperty(b)&&I!=null)switch(b){case"value":break;case"multiple":be=I;default:f.hasOwnProperty(b)||En(a,r,b,null,f,I)}for(g in f)if(b=f[g],I=i[g],f.hasOwnProperty(g)&&(b!=null||I!=null))switch(g){case"value":he=b;break;case"defaultValue":B=b;break;case"multiple":C=b;default:b!==I&&En(a,r,g,b,f,I)}r=B,i=C,f=be,he!=null?ps(a,!!i,he,!1):!!f!=!!i&&(r!=null?ps(a,!!i,r,!0):ps(a,!!i,i?[]:"",!1));return;case"textarea":be=he=null;for(B in i)if(g=i[B],i.hasOwnProperty(B)&&g!=null&&!f.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:En(a,r,B,null,f,g)}for(C in f)if(g=f[C],b=i[C],f.hasOwnProperty(C)&&(g!=null||b!=null))switch(C){case"value":he=g;break;case"defaultValue":be=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:g!==b&&En(a,r,C,g,f,b)}ug(a,he,be);return;case"option":for(var We in i)if(he=i[We],i.hasOwnProperty(We)&&he!=null&&!f.hasOwnProperty(We))switch(We){case"selected":a.selected=!1;break;default:En(a,r,We,null,f,he)}for(I in f)if(he=f[I],be=i[I],f.hasOwnProperty(I)&&he!==be&&(he!=null||be!=null))switch(I){case"selected":a.selected=he&&typeof he!="function"&&typeof he!="symbol";break;default:En(a,r,I,he,f,be)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ht in i)he=i[ht],i.hasOwnProperty(ht)&&he!=null&&!f.hasOwnProperty(ht)&&En(a,r,ht,null,f,he);for(de in f)if(he=f[de],be=i[de],f.hasOwnProperty(de)&&he!==be&&(he!=null||be!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(s(137,r));break;default:En(a,r,de,he,f,be)}return;default:if(sg(r)){for(var Sn in i)he=i[Sn],i.hasOwnProperty(Sn)&&he!==void 0&&!f.hasOwnProperty(Sn)&&qv(a,r,Sn,void 0,f,he);for(Te in f)he=f[Te],be=i[Te],!f.hasOwnProperty(Te)||he===be||he===void 0&&be===void 0||qv(a,r,Te,he,f,be);return}}for(var ie in i)he=i[ie],i.hasOwnProperty(ie)&&he!=null&&!f.hasOwnProperty(ie)&&En(a,r,ie,null,f,he);for(Oe in f)he=f[Oe],be=i[Oe],!f.hasOwnProperty(Oe)||he===be||he==null&&be==null||En(a,r,Oe,he,f,be)}function vm(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Qv(){if(typeof performance.getEntriesByType=="function"){for(var a=0,r=0,i=performance.getEntriesByType("resource"),f=0;f<i.length;f++){var g=i[f],b=g.transferSize,C=g.initiatorType,B=g.duration;if(b&&B&&vm(C)){for(C=0,B=g.responseEnd,f+=1;f<i.length;f++){var I=i[f],de=I.startTime;if(de>B)break;var Te=I.transferSize,Oe=I.initiatorType;Te&&vm(Oe)&&(I=I.responseEnd,C+=Te*(I<B?1:(B-de)/(I-de)))}if(--f,r+=8*(b+C)/(g.duration/1e3),a++,10<a)break}}if(0<a)return r/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var bm=null,Em=null;function zu(a){return a.nodeType===9?a:a.ownerDocument}function HS(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xv(a,r){if(a===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&r==="foreignObject"?0:a}function lf(a,r){return a==="textarea"||a==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Sm=null;function lR(){var a=window.event;return a&&a.type==="popstate"?a===Sm?!1:(Sm=a,!0):(Sm=null,!1)}var nh=typeof setTimeout=="function"?setTimeout:void 0,$S=typeof clearTimeout=="function"?clearTimeout:void 0,Lc=typeof Promise=="function"?Promise:void 0,VS=typeof queueMicrotask=="function"?queueMicrotask:typeof Lc<"u"?function(a){return Lc.resolve(null).then(a).catch(Iv)}:nh;function Iv(a){setTimeout(function(){throw a})}function yo(a){return a==="head"}function Zv(a,r){var i=r,f=0;do{var g=i.nextSibling;if(a.removeChild(i),g&&g.nodeType===8)if(i=g.data,i==="/$"||i==="/&"){if(f===0){a.removeChild(g),gf(r);return}f--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")f++;else if(i==="html")Bc(a.ownerDocument.documentElement);else if(i==="head"){i=a.ownerDocument.head,Bc(i);for(var b=i.firstChild;b;){var C=b.nextSibling,B=b.nodeName;b[xt]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&b.rel.toLowerCase()==="stylesheet"||i.removeChild(b),b=C}}else i==="body"&&Bc(a.ownerDocument.body);i=g}while(i);gf(r)}function ua(a,r){var i=a;a=0;do{var f=i.nextSibling;if(i.nodeType===1?r?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(r?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),f&&f.nodeType===8)if(i=f.data,i==="/$"){if(a===0)break;a--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||a++;i=f}while(i)}function ah(a){var r=a.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":ah(i),gn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}a.removeChild(i)}}function rR(a,r,i,f){for(;a.nodeType===1;){var g=i;if(a.nodeName.toLowerCase()!==r.toLowerCase()){if(!f&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(f){if(!a[xt])switch(r){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==g.rel||a.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||a.getAttribute("title")!==(g.title==null?null:g.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(g.src==null?null:g.src)||a.getAttribute("type")!==(g.type==null?null:g.type)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(r==="input"&&a.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=Cl(a.nextSibling),a===null)break}return null}function Lt(a,r,i){if(r==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=Cl(a.nextSibling),a===null))return null;return a}function kS(a,r){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!r||(a=Cl(a.nextSibling),a===null))return null;return a}function Lr(a){return a.data==="$?"||a.data==="$~"}function Uu(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function rf(a,r){var i=a.ownerDocument;if(a.data==="$~")a._reactRetry=r;else if(a.data!=="$?"||i.readyState!=="loading")r();else{var f=function(){r(),i.removeEventListener("DOMContentLoaded",f)};i.addEventListener("DOMContentLoaded",f),a._reactRetry=f}}function Cl(a){for(;a!=null;a=a.nextSibling){var r=a.nodeType;if(r===1||r===3)break;if(r===8){if(r=a.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return a}var lh=null;function Tm(a){a=a.nextSibling;for(var r=0;a;){if(a.nodeType===8){var i=a.data;if(i==="/$"||i==="/&"){if(r===0)return Cl(a.nextSibling);r--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||r++}a=a.nextSibling}return null}function go(a){a=a.previousSibling;for(var r=0;a;){if(a.nodeType===8){var i=a.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(r===0)return a;r--}else i!=="/$"&&i!=="/&"||r++}a=a.previousSibling}return null}function of(a,r,i){switch(r=zu(i),a){case"html":if(a=r.documentElement,!a)throw Error(s(452));return a;case"head":if(a=r.head,!a)throw Error(s(453));return a;case"body":if(a=r.body,!a)throw Error(s(454));return a;default:throw Error(s(451))}}function Bc(a){for(var r=a.attributes;r.length;)a.removeAttributeNode(r[0]);gn(a)}var Ql=new Map,rh=new Set;function ul(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var vo=ce.d;ce.d={f:oR,r:GS,D:ve,C:cn,L:iR,m:Jv,X:Xi,S:Fv,M:Lu};function oR(){var a=vo.f(),r=Ks();return a||r}function GS(a){var r=Yn(a);r!==null&&r.tag===5&&r.type==="form"?vn(r):vo.r(a)}var uf=typeof document>"u"?null:document;function pa(a,r,i){var f=uf;if(f&&typeof r=="string"&&r){var g=Wl(r);g='link[rel="'+a+'"][href="'+g+'"]',typeof i=="string"&&(g+='[crossorigin="'+i+'"]'),rh.has(g)||(rh.add(g),a={rel:a,crossOrigin:i,href:r},f.querySelector(g)===null&&(r=f.createElement("link"),Fa(r,"link",a),qt(r),f.head.appendChild(r)))}}function ve(a){vo.D(a),pa("dns-prefetch",a,null)}function cn(a,r){vo.C(a,r),pa("preconnect",a,r)}function iR(a,r,i){vo.L(a,r,i);var f=uf;if(f&&a&&r){var g='link[rel="preload"][as="'+Wl(r)+'"]';r==="image"&&i&&i.imageSrcSet?(g+='[imagesrcset="'+Wl(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(g+='[imagesizes="'+Wl(i.imageSizes)+'"]')):g+='[href="'+Wl(a)+'"]';var b=g;switch(r){case"style":b=hr(a);break;case"script":b=Hc(a)}Ql.has(b)||(a=R({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:a,as:r},i),Ql.set(b,a),f.querySelector(g)!==null||r==="style"&&f.querySelector(Bu(b))||r==="script"&&f.querySelector(ff(b))||(r=f.createElement("link"),Fa(r,"link",a),qt(r),f.head.appendChild(r)))}}function Jv(a,r){vo.m(a,r);var i=uf;if(i&&a){var f=r&&typeof r.as=="string"?r.as:"script",g='link[rel="modulepreload"][as="'+Wl(f)+'"][href="'+Wl(a)+'"]',b=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Hc(a)}if(!Ql.has(b)&&(a=R({rel:"modulepreload",href:a},r),Ql.set(b,a),i.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ff(b)))return}f=i.createElement("link"),Fa(f,"link",a),qt(f),i.head.appendChild(f)}}}function Fv(a,r,i){vo.S(a,r,i);var f=uf;if(f&&a){var g=fa(f).hoistableStyles,b=hr(a);r=r||"default";var C=g.get(b);if(!C){var B={loading:0,preload:null};if(C=f.querySelector(Bu(b)))B.loading=5;else{a=R({rel:"stylesheet",href:a,"data-precedence":r},i),(i=Ql.get(b))&&xm(a,i);var I=C=f.createElement("link");qt(I),Fa(I,"link",a),I._p=new Promise(function(de,Te){I.onload=de,I.onerror=Te}),I.addEventListener("load",function(){B.loading|=1}),I.addEventListener("error",function(){B.loading|=2}),B.loading|=4,oh(C,r,f)}C={type:"stylesheet",instance:C,count:1,state:B},g.set(b,C)}}}function Xi(a,r){vo.X(a,r);var i=uf;if(i&&a){var f=fa(i).hoistableScripts,g=Hc(a),b=f.get(g);b||(b=i.querySelector(ff(g)),b||(a=R({src:a,async:!0},r),(r=Ql.get(g))&&_m(a,r),b=i.createElement("script"),qt(b),Fa(b,"link",a),i.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function Lu(a,r){vo.M(a,r);var i=uf;if(i&&a){var f=fa(i).hoistableScripts,g=Hc(a),b=f.get(g);b||(b=i.querySelector(ff(g)),b||(a=R({src:a,async:!0,type:"module"},r),(r=Ql.get(g))&&_m(a,r),b=i.createElement("script"),qt(b),Fa(b,"link",a),i.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function cf(a,r,i,f){var g=(g=Ue.current)?ul(g):null;if(!g)throw Error(s(446));switch(a){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=hr(i.href),i=fa(g).hoistableStyles,f=i.get(r),f||(f={type:"style",instance:null,count:0,state:null},i.set(r,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){a=hr(i.href);var b=fa(g).hoistableStyles,C=b.get(a);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,C),(b=g.querySelector(Bu(a)))&&!b._p&&(C.instance=b,C.state.loading=5),Ql.has(a)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ql.set(a,i),b||qS(g,a,i,C.state))),r&&f===null)throw Error(s(528,""));return C}if(r&&f!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Hc(i),i=fa(g).hoistableScripts,f=i.get(r),f||(f={type:"script",instance:null,count:0,state:null},i.set(r,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,a))}}function hr(a){return'href="'+Wl(a)+'"'}function Bu(a){return'link[rel="stylesheet"]['+a+"]"}function sf(a){return R({},a,{"data-precedence":a.precedence,precedence:null})}function qS(a,r,i,f){a.querySelector('link[rel="preload"][as="style"]['+r+"]")?f.loading=1:(r=a.createElement("link"),f.preload=r,r.addEventListener("load",function(){return f.loading|=1}),r.addEventListener("error",function(){return f.loading|=2}),Fa(r,"link",i),qt(r),a.head.appendChild(r))}function Hc(a){return'[src="'+Wl(a)+'"]'}function ff(a){return"script[async]"+a}function Kv(a,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var f=a.querySelector('style[data-href~="'+Wl(i.href)+'"]');if(f)return r.instance=f,qt(f),f;var g=R({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return f=(a.ownerDocument||a).createElement("style"),qt(f),Fa(f,"style",g),oh(f,i.precedence,a),r.instance=f;case"stylesheet":g=hr(i.href);var b=a.querySelector(Bu(g));if(b)return r.state.loading|=4,r.instance=b,qt(b),b;f=sf(i),(g=Ql.get(g))&&xm(f,g),b=(a.ownerDocument||a).createElement("link"),qt(b);var C=b;return C._p=new Promise(function(B,I){C.onload=B,C.onerror=I}),Fa(b,"link",f),r.state.loading|=4,oh(b,i.precedence,a),r.instance=b;case"script":return b=Hc(i.src),(g=a.querySelector(ff(b)))?(r.instance=g,qt(g),g):(f=i,(g=Ql.get(b))&&(f=R({},i),_m(f,g)),a=a.ownerDocument||a,g=a.createElement("script"),qt(g),Fa(g,"link",f),a.head.appendChild(g),r.instance=g);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(f=r.instance,r.state.loading|=4,oh(f,i.precedence,a));return r.instance}function oh(a,r,i){for(var f=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,b=g,C=0;C<f.length;C++){var B=f[C];if(B.dataset.precedence===r)b=B;else if(b!==g)break}b?b.parentNode.insertBefore(a,b.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(a,r.firstChild))}function xm(a,r){a.crossOrigin==null&&(a.crossOrigin=r.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=r.referrerPolicy),a.title==null&&(a.title=r.title)}function _m(a,r){a.crossOrigin==null&&(a.crossOrigin=r.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=r.referrerPolicy),a.integrity==null&&(a.integrity=r.integrity)}var df=null;function Pv(a,r,i){if(df===null){var f=new Map,g=df=new Map;g.set(i,f)}else g=df,f=g.get(i),f||(f=new Map,g.set(i,f));if(f.has(a))return f;for(f.set(a,null),i=i.getElementsByTagName(a),g=0;g<i.length;g++){var b=i[g];if(!(b[xt]||b[Ve]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var C=b.getAttribute(r)||"";C=a+C;var B=f.get(C);B?B.push(b):f.set(C,[b])}}return f}function Rm(a,r,i){a=a.ownerDocument||a,a.head.insertBefore(i,r==="title"?a.querySelector("head > title"):null)}function Wv(a,r,i){if(i===1||r.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return a=r.disabled,typeof r.precedence=="string"&&a==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Xl(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function ni(a,r,i,f){if(i.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var g=hr(f.href),b=r.querySelector(Bu(g));if(b){r=b._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(a.count++,a=Om.bind(a),r.then(a,a)),i.state.loading|=4,i.instance=b,qt(b);return}b=r.ownerDocument||r,f=sf(f),(g=Ql.get(g))&&xm(f,g),b=b.createElement("link"),qt(b);var C=b;C._p=new Promise(function(B,I){C.onload=B,C.onerror=I}),Fa(b,"link",f),i.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(a.count++,i=Om.bind(a),r.addEventListener("load",i),r.addEventListener("error",i))}}var pr=0;function e0(a,r){return a.stylesheets&&a.count===0&&Cm(a,a.stylesheets),0<a.count||0<a.imgCount?function(i){var f=setTimeout(function(){if(a.stylesheets&&Cm(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+r);0<a.imgBytes&&pr===0&&(pr=62500*Qv());var g=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Cm(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>pr?50:800)+r);return a.unsuspend=i,function(){a.unsuspend=null,clearTimeout(f),clearTimeout(g)}}:null}function Om(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cm(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Am=null;function Cm(a,r){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Am=new Map,r.forEach(Ba,a),Am=null,Om.call(a))}function Ba(a,r){if(!(r.state.loading&4)){var i=Am.get(a);if(i)var f=i.get(null);else{i=new Map,Am.set(a,i);for(var g=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var C=g[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(i.set(C.dataset.precedence,C),f=C)}f&&i.set(null,f)}g=r.instance,C=g.getAttribute("data-precedence"),b=i.get(C)||f,b===f&&i.set(null,g),i.set(C,g),this.count++,f=Om.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),b?b.parentNode.insertBefore(g,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(g,a.firstChild)),r.state.loading|=4}}var ih={$$typeof:F,Provider:null,Consumer:null,_currentValue:Ee,_currentValue2:Ee,_threadCount:0};function t0(a,r,i,f,g,b,C,B,I){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ia(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ia(0),this.hiddenUpdates=Ia(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function Dm(a,r,i,f,g,b,C,B,I,de,Te,Oe){return a=new t0(a,r,i,C,I,de,Te,Oe,B),r=1,b===!0&&(r|=24),b=Jn(3,null,null,r),a.current=b,b.stateNode=a,r=md(),r.refCount++,a.pooledCache=r,r.refCount++,b.memoizedState={element:f,isDehydrated:i,cache:r},Td(b),a}function $c(a){return a?(a=gl,a):gl}function YS(a,r,i,f,g,b){g=$c(g),f.context===null?f.context=g:f.pendingContext=g,f=Li(r),f.payload={element:i},b=b===void 0?null:b,b!==null&&(f.callback=b),i=or(a,f,r),i!==null&&(Al(i,a,r),Su(i,a,r))}function wm(a,r){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var i=a.retryLane;a.retryLane=i!==0&&i<r?i:r}}function n0(a,r){wm(a,r),(a=a.alternate)&&wm(a,r)}function QS(a){if(a.tag===13||a.tag===31){var r=Di(a,67108864);r!==null&&Al(r,a,67108864),n0(a,67108864)}}function Vc(a){if(a.tag===13||a.tag===31){var r=Yl();r=le(r);var i=Di(a,r);i!==null&&Al(i,a,r),n0(a,r)}}var _a=!0;function ai(a,r,i,f){var g=G.T;G.T=null;var b=ce.p;try{ce.p=2,Ka(a,r,i,f)}finally{ce.p=b,G.T=g}}function li(a,r,i,f){var g=G.T;G.T=null;var b=ce.p;try{ce.p=8,Ka(a,r,i,f)}finally{ce.p=b,G.T=g}}function Ka(a,r,i,f){if(_a){var g=a0(f);if(g===null)$v(a,r,f,Mm,i),Ii(a,f);else if(uR(g,a,r,i,f))f.stopPropagation();else if(Ii(a,f),r&4&&-1<Dl.indexOf(a)){for(;g!==null;){var b=Yn(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var C=ct(b.pendingLanes);if(C!==0){var B=b;for(B.pendingLanes|=2,B.entangledLanes|=2;C;){var I=1<<31-ta(C);B.entanglements[1]|=I,C&=~I}ti(b),(ln&6)===0&&(un=jn()+500,Qi(0))}}break;case 31:case 13:B=Di(b,2),B!==null&&Al(B,b,2),Ks(),n0(b,2)}if(b=a0(f),b===null&&$v(a,r,f,Mm,i),b===g)break;g=b}g!==null&&f.stopPropagation()}else $v(a,r,f,null,i)}}function a0(a){return a=np(a),hf(a)}var Mm=null;function hf(a){if(Mm=null,a=Rn(a),a!==null){var r=p(a);if(r===null)a=null;else{var i=r.tag;if(i===13){if(a=y(r),a!==null)return a;a=null}else if(i===31){if(a=v(r),a!==null)return a;a=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;a=null}else r!==a&&(a=null)}}return Mm=a,null}function uh(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ll()){case Rt:return 2;case tl:return 8;case Da:case Bl:return 32;case nl:return 268435456;default:return 32}default:return 32}}var pf=!1,Ra=null,Pa=null,cl=null,Hu=new Map,Br=new Map,Hn=[],Dl="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".split(" ");function Ii(a,r){switch(a){case"focusin":case"focusout":Ra=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":Hu.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Br.delete(r.pointerId)}}function kc(a,r,i,f,g,b){return a===null||a.nativeEvent!==b?(a={blockedOn:r,domEventName:i,eventSystemFlags:f,nativeEvent:b,targetContainers:[g]},r!==null&&(r=Yn(r),r!==null&&QS(r)),a):(a.eventSystemFlags|=f,r=a.targetContainers,g!==null&&r.indexOf(g)===-1&&r.push(g),a)}function uR(a,r,i,f,g){switch(r){case"focusin":return Ra=kc(Ra,a,r,i,f,g),!0;case"dragenter":return Pa=kc(Pa,a,r,i,f,g),!0;case"mouseover":return cl=kc(cl,a,r,i,f,g),!0;case"pointerover":var b=g.pointerId;return Hu.set(b,kc(Hu.get(b)||null,a,r,i,f,g)),!0;case"gotpointercapture":return b=g.pointerId,Br.set(b,kc(Br.get(b)||null,a,r,i,f,g)),!0}return!1}function XS(a){var r=Rn(a.target);if(r!==null){var i=p(r);if(i!==null){if(r=i.tag,r===13){if(r=y(i),r!==null){a.blockedOn=r,He(a.priority,function(){Vc(i)});return}}else if(r===31){if(r=v(i),r!==null){a.blockedOn=r,He(a.priority,function(){Vc(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){a.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}a.blockedOn=null}function ch(a){if(a.blockedOn!==null)return!1;for(var r=a.targetContainers;0<r.length;){var i=a0(a.nativeEvent);if(i===null){i=a.nativeEvent;var f=new i.constructor(i.type,i);tp=f,i.target.dispatchEvent(f),tp=null}else return r=Yn(i),r!==null&&QS(r),a.blockedOn=i,!1;r.shift()}return!0}function mf(a,r,i){ch(a)&&i.delete(r)}function IS(){pf=!1,Ra!==null&&ch(Ra)&&(Ra=null),Pa!==null&&ch(Pa)&&(Pa=null),cl!==null&&ch(cl)&&(cl=null),Hu.forEach(mf),Br.forEach(mf)}function ri(a,r){a.blockedOn===r&&(a.blockedOn=null,pf||(pf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,IS)))}var yf=null;function ZS(a){yf!==a&&(yf=a,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){yf===a&&(yf=null);for(var r=0;r<a.length;r+=3){var i=a[r],f=a[r+1],g=a[r+2];if(typeof f!="function"){if(hf(f||i)===null)continue;break}var b=Yn(i);b!==null&&(a.splice(r,3),r-=3,Hs(b,{pending:!0,data:g,method:i.method,action:f},f,g))}}))}function gf(a){function r(I){return ri(I,a)}Ra!==null&&ri(Ra,a),Pa!==null&&ri(Pa,a),cl!==null&&ri(cl,a),Hu.forEach(r),Br.forEach(r);for(var i=0;i<Hn.length;i++){var f=Hn[i];f.blockedOn===a&&(f.blockedOn=null)}for(;0<Hn.length&&(i=Hn[0],i.blockedOn===null);)XS(i),i.blockedOn===null&&Hn.shift();if(i=(a.ownerDocument||a).$$reactFormReplay,i!=null)for(f=0;f<i.length;f+=3){var g=i[f],b=i[f+1],C=g[Xe]||null;if(typeof b=="function")C||ZS(i);else if(C){var B=null;if(b&&b.hasAttribute("formAction")){if(g=b,C=b[Xe]||null)B=C.formAction;else if(hf(g)!==null)continue}else B=C.action;typeof B=="function"?i[f+1]=B:(i.splice(f,3),f-=3),ZS(i)}}}function l0(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return g=C})},focusReset:"manual",scroll:"manual"})}function r(){g!==null&&(g(),g=null),f||setTimeout(i,20)}function i(){if(!f&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,g=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(i,100),function(){f=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),g!==null&&(g(),g=null)}}}function jm(a){this._internalRoot=a}Nm.prototype.render=jm.prototype.render=function(a){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,f=Yl();YS(i,f,a,r,null,null)},Nm.prototype.unmount=jm.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var r=a.containerInfo;YS(a.current,2,null,a,null,null),Ks(),r[Ie]=null}};function Nm(a){this._internalRoot=a}Nm.prototype.unstable_scheduleHydration=function(a){if(a){var r=Ne();a={blockedOn:null,target:a,priority:r};for(var i=0;i<Hn.length&&r!==0&&r<Hn[i].priority;i++);Hn.splice(i,0,a),i===0&&XS(a)}};var r0=o.version;if(r0!=="19.2.4")throw Error(s(527,r0,"19.2.4"));ce.findDOMNode=function(a){var r=a._reactInternals;if(r===void 0)throw typeof a.render=="function"?Error(s(188)):(a=Object.keys(a).join(","),Error(s(268,a)));return a=E(r),a=a!==null?O(a):null,a=a===null?null:a.stateNode,a};var JS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sh.isDisabled&&sh.supportsFiber)try{al=sh.inject(JS),ea=sh}catch{}}return my.createRoot=function(a,r){if(!d(a))throw Error(s(299));var i=!1,f="",g=Yp,b=ov,C=Qp;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(g=r.onUncaughtError),r.onCaughtError!==void 0&&(b=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError)),r=Dm(a,1,!1,null,null,i,f,null,g,b,C,l0),a[Ie]=r.current,af(a),new jm(r)},my.hydrateRoot=function(a,r,i){if(!d(a))throw Error(s(299));var f=!1,g="",b=Yp,C=ov,B=Qp,I=null;return i!=null&&(i.unstable_strictMode===!0&&(f=!0),i.identifierPrefix!==void 0&&(g=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(C=i.onCaughtError),i.onRecoverableError!==void 0&&(B=i.onRecoverableError),i.formState!==void 0&&(I=i.formState)),r=Dm(a,1,!0,r,i??null,f,g,I,b,C,B,l0),r.context=$c(null),i=r.current,f=Yl(),f=le(f),g=Li(f),g.callback=null,or(i,g,f),i=f,r.current.lanes=i,Kl(r,i),ti(r),a[Ie]=r.current,af(a),new Nm(r)},my.version="19.2.4",my}var yy={};/**
|
|
103
|
+
* @license React
|
|
104
|
+
* react-dom-client.development.js
|
|
105
|
+
*
|
|
106
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the MIT license found in the
|
|
109
|
+
* LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/var NO;function Bj(){return NO||(NO=1,process.env.NODE_ENV!=="production"&&(function(){function n(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function o(e,t,l,u){if(l>=t.length)return u;var h=t[l],m=pa(e)?e.slice():Lt({},e);return m[h]=o(e[h],t,l+1,u),m}function c(e,t,l){if(t.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<l.length-1;u++)if(t[u]!==l[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return s(e,t,l,0)}}function s(e,t,l,u){var h=t[u],m=pa(e)?e.slice():Lt({},e);return u+1===t.length?(m[l[u]]=m[h],pa(m)?m.splice(h,1):delete m[h]):m[h]=s(e[h],t,l,u+1),m}function d(e,t,l){var u=t[l],h=pa(e)?e.slice():Lt({},e);return l+1===t.length?(pa(h)?h.splice(u,1):delete h[u],h):(h[u]=d(e[u],t,l+1),h)}function p(){return!1}function y(){return null}function v(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function x(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function E(){}function O(){}function R(e){var t=[];return e.forEach(function(l){t.push(l)}),t.sort().join(", ")}function A(e,t,l,u){return new eR(e,t,l,u)}function w(e,t){e.context===Sf&&(gm(e.current,2,t,e,null,null),fr())}function j(e,t){if(ui!==null){var l=t.staleFamilies;t=t.updatedFamilies,kd(),VE(e.current,t,l),fr()}}function H(e){ui=e}function L(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function V(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function J(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function F(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function K(e){if(V(e)!==e)throw Error("Unable to find node on an unmounted component.")}function k(e){var t=e.alternate;if(!t){if(t=V(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var l=e,u=t;;){var h=l.return;if(h===null)break;var m=h.alternate;if(m===null){if(u=h.return,u!==null){l=u;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===l)return K(h),e;if(m===u)return K(h),t;m=m.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==u.return)l=h,u=m;else{for(var S=!1,_=h.child;_;){if(_===l){S=!0,l=h,u=m;break}if(_===u){S=!0,u=h,l=m;break}_=_.sibling}if(!S){for(_=m.child;_;){if(_===l){S=!0,l=m,u=h;break}if(_===u){S=!0,u=m,l=h;break}_=_.sibling}if(!S)throw 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(l.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?e:t}function P(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=P(e),t!==null)return t;e=e.sibling}return null}function ae(e){return e===null||typeof e!="object"?null:(e=GS&&e[GS]||e["@@iterator"],typeof e=="function"?e:null)}function $(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===uf?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rf:return"Fragment";case lh:return"Profiler";case Cl:return"StrictMode";case Bc:return"Suspense";case Ql:return"SuspenseList";case vo:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Uu:return"Portal";case go:return e.displayName||"Context";case Tm:return(e._context.displayName||"Context")+".Consumer";case of:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rh:return t=e.displayName||null,t!==null?t:$(e.type)||"Memo";case ul:t=e._payload,e=e._init;try{return $(e(t))}catch{}}return null}function Se(e){return typeof e.tag=="number"?me(e):typeof e.name=="string"?e.name:null}function me(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===Cl?"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 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var l=t.length-1;0<=l;l--)if(typeof t[l].name=="string")return t[l].name}if(e.return!==null)return me(e.return)}return null}function je(e){return{current:e}}function Re(e,t){0>Xi?console.error("Unexpected pop."):(t!==Fv[Xi]&&console.error("Unexpected Fiber popped."),e.current=Jv[Xi],Jv[Xi]=null,Fv[Xi]=null,Xi--)}function ke(e,t,l){Xi++,Jv[Xi]=e.current,Fv[Xi]=l,e.current=t}function Ye(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function et(e,t){ke(hr,t,e),ke(cf,e,e),ke(Lu,null,e);var l=t.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?mS(t):ts;break;default:if(l=t.tagName,t=t.namespaceURI)t=mS(t),t=qi(t,l);else switch(l){case"svg":t=cy;break;case"math":t=V1;break;default:t=ts}}l=l.toLowerCase(),l=Jf(null,l),l={context:t,ancestorInfo:l},Re(Lu,e),ke(Lu,l,e)}function G(e){Re(Lu,e),Re(cf,e),Re(hr,e)}function ce(){return Ye(Lu.current)}function Ee(e){e.memoizedState!==null&&ke(Bu,e,e);var t=Ye(Lu.current),l=e.type,u=qi(t.context,l);l=Jf(t.ancestorInfo,l),u={context:u,ancestorInfo:l},t!==u&&(ke(cf,e,e),ke(Lu,u,e))}function ze(e){cf.current===e&&(Re(Lu,e),Re(cf,e)),Bu.current===e&&(Re(Bu,e),Z0._currentValue=Nh)}function se(){}function N(){if(sf===0){qS=console.log,Hc=console.info,ff=console.warn,Kv=console.error,oh=console.group,xm=console.groupCollapsed,_m=console.groupEnd;var e={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}sf++}function Z(){if(sf--,sf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:qS}),info:Lt({},e,{value:Hc}),warn:Lt({},e,{value:ff}),error:Lt({},e,{value:Kv}),group:Lt({},e,{value:oh}),groupCollapsed:Lt({},e,{value:xm}),groupEnd:Lt({},e,{value:_m})})}0>sf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ue(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
111
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
112
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
113
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function re(e){if(df===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);df=t&&t[1]||"",Pv=-1<l.stack.indexOf(`
|
|
114
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
115
|
+
`+df+e+Pv}function De(e,t){if(!e||Rm)return"";var l=Wv.get(e);if(l!==void 0)return l;Rm=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=ve.H,ve.H=null,N();try{var h={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Ge){var pe=Ge}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(Ge){pe=Ge}e.call(Q.prototype)}}else{try{throw Error()}catch(Ge){pe=Ge}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(Ge){if(Ge&&pe&&typeof Ge.stack=="string")return[Ge.stack,pe.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=h.DetermineComponentFrameRoot(),_=S[0],M=S[1];if(_&&M){var z=_.split(`
|
|
116
|
+
`),ee=M.split(`
|
|
117
|
+
`);for(S=m=0;m<z.length&&!z[m].includes("DetermineComponentFrameRoot");)m++;for(;S<ee.length&&!ee[S].includes("DetermineComponentFrameRoot");)S++;if(m===z.length||S===ee.length)for(m=z.length-1,S=ee.length-1;1<=m&&0<=S&&z[m]!==ee[S];)S--;for(;1<=m&&0<=S;m--,S--)if(z[m]!==ee[S]){if(m!==1||S!==1)do if(m--,S--,0>S||z[m]!==ee[S]){var ne=`
|
|
118
|
+
`+z[m].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wv.set(e,ne),ne}while(1<=m&&0<=S);break}}}finally{Rm=!1,ve.H=u,Z(),Error.prepareStackTrace=l}return z=(z=e?e.displayName||e.name:"")?re(z):"",typeof e=="function"&&Wv.set(e,z),z}function Ue(e,t){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re("Lazy");case 13:return e.child!==t&&t!==null?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return re("Activity");default:return""}}function Me(e){try{var t="",l=null;do{t+=Ue(e,l);var u=e._debugInfo;if(u)for(var h=u.length-1;0<=h;h--){var m=u[h];if(typeof m.name=="string"){var S=t;e:{var _=m.name,M=m.env,z=m.debugLocation;if(z!=null){var ee=ue(z),ne=ee.lastIndexOf(`
|
|
119
|
+
`),Q=ne===-1?ee:ee.slice(ne+1);if(Q.indexOf(_)!==-1){var pe=`
|
|
120
|
+
`+Q;break e}}pe=re(_+(M?" ["+M+"]":""))}t=S+pe}}l=e,e=e.return}while(e);return t}catch(Ge){return`
|
|
121
|
+
Error generating stack: `+Ge.message+`
|
|
122
|
+
`+Ge.stack}}function Pe(e){return(e=e?e.displayName||e.name:"")?re(e):""}function Qe(){if(Xl===null)return null;var e=Xl._debugOwner;return e!=null?Se(e):null}function it(){if(Xl===null)return"";var e=Xl;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=re(e.type);break;case 13:t+=re("Suspense");break;case 19:t+=re("SuspenseList");break;case 31:t+=re("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Pe(e.type));break;case 11:e._debugOwner||t!==""||(t+=Pe(e.type.render))}for(;e;)if(typeof e.tag=="number"){var l=e;e=l._debugOwner;var u=l._debugStack;if(e&&u){var h=ue(u);h!==""&&(t+=`
|
|
123
|
+
`+h)}}else if(e.debugStack!=null){var m=e.debugStack;(e=e.owner)&&m&&(t+=`
|
|
124
|
+
`+ue(m))}else break;var S=t}catch(_){S=`
|
|
125
|
+
Error generating stack: `+_.message+`
|
|
126
|
+
`+_.stack}return S}function Le(e,t,l,u,h,m,S){var _=Xl;$e(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,l,u,h,m,S)):t(l,u,h,m,S)}finally{$e(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function $e(e){ve.getCurrentStack=e===null?null:it,ni=!1,Xl=e}function Ct(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function an(e){try{return Mt(e),!1}catch{return!0}}function Mt(e){return""+e}function Vt(e,t){if(an(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ct(e)),Mt(e)}function sn(e,t){if(an(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ct(e)),Mt(e)}function Qr(e){if(an(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ct(e)),Mt(e)}function xi(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Vc=t.inject(e),_a=t}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!t.checkDCE}function Je(e){if(typeof n0=="function"&&QS(e),_a&&typeof _a.setStrictMode=="function")try{_a.setStrictMode(Vc,e)}catch(t){ai||(ai=!0,console.error("React instrumentation encountered an error: %o",t))}}function Tr(e){return e>>>=0,e===0?32:31-(a0(e)/Mm|0)|0}function Ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Xr(e,t,l){var u=e.pendingLanes;if(u===0)return 0;var h=0,m=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var _=u&134217727;return _!==0?(u=_&~m,u!==0?h=Ul(u):(S&=_,S!==0?h=Ul(S):l||(l=_&~e,l!==0&&(h=Ul(l))))):(_=u&~m,_!==0?h=Ul(_):S!==0?h=Ul(S):l||(l=u&~e,l!==0&&(h=Ul(l)))),h===0?0:t!==0&&t!==h&&(t&m)===0&&(m=h&-h,l=t&-t,m>=l||m===32&&(l&4194048)!==0)?t:h}function jn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ll(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Rt(){var e=pf;return pf<<=1,(pf&62914560)===0&&(pf=4194304),e}function tl(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bl(e,t,l,u,h,m){var S=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var _=e.entanglements,M=e.expirationTimes,z=e.hiddenUpdates;for(l=S&~l;0<l;){var ee=31-Ka(l),ne=1<<ee;_[ee]=0,M[ee]=-1;var Q=z[ee];if(Q!==null)for(z[ee]=null,ee=0;ee<Q.length;ee++){var pe=Q[ee];pe!==null&&(pe.lane&=-536870913)}l&=~ne}u!==0&&nl(e,u,0),m!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=m&~(S&~t))}function nl(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-Ka(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|l&261930}function ru(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var u=31-Ka(l),h=1<<u;h&t|e[u]&t&&(e[u]|=t),l&=~h}}function _i(e,t){var l=t&-t;return l=(l&42)!==0?1:al(l),(l&(e.suspendedLanes|t))!==0?0:l}function al(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ea(e,t,l){if(li)for(e=e.pendingUpdatersLaneMap;0<l;){var u=31-Ka(l),h=1<<u;e[u].add(t),l&=~h}}function qn(e,t){if(li)for(var l=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var h=31-Ka(t);e=1<<h,h=l[h],0<h.size&&(h.forEach(function(m){var S=m.alternate;S!==null&&u.has(S)||u.add(m)}),h.clear()),t&=~e}}function ta(e){return e&=-e,Ra<e?Pa<e?(e&134217727)!==0?cl:Hu:Pa:Ra}function Ir(){var e=cn.p;return e!==0?e:(e=window.event,e===void 0?cl:bm(e.type))}function U(e,t){var l=cn.p;try{return cn.p=e,t()}finally{cn.p=l}}function oe(e){delete e[Hn],delete e[Dl],delete e[kc],delete e[uR],delete e[XS]}function we(e){var t=e[Hn];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ii]||l[Hn]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Nc(e);e!==null;){if(l=e[Hn])return l;e=Nc(e)}return t}e=l,l=e.parentNode}return null}function Be(e){if(e=e[Hn]||e[Ii]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Fe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ct(e){var t=e[ch];return t||(t=e[ch]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[mf]=!0}function Dt(e,t){bt(e,t),bt(e+"Capture",t)}function bt(e,t){ri[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ri[e]=t;var l=e.toLowerCase();for(yf[l]=e,e==="onDoubleClick"&&(yf.ondblclick=e),e=0;e<t.length;e++)IS.add(t[e])}function ba(e,t){ZS[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"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 `onChange`.":"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`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("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 Ia(e){return pr.call(jm,e)?!0:pr.call(l0,e)?!1:gf.test(e)?jm[e]=!0:(l0[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Kl(e,t,l){if(Ia(t)){if(!e.hasAttribute(t)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return e=e.getAttribute(t),e===""&&l===!0?!0:(Vt(l,t),e===""+l?l:e)}}function Ri(e,t,l){if(Ia(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}Vt(l,t),e.setAttribute(t,""+l)}}function Pu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Vt(l,t),e.setAttribute(t,""+l)}}function xr(e,t,l,u){if(u===null)e.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}Vt(u,l),e.setAttributeNS(t,l,""+u)}}function Y(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Qr(e),e;default:return""}}function le(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ye(e,t,l){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var h=u.get,m=u.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return h.call(this)},set:function(S){Qr(S),l=""+S,m.call(this,S)}}),Object.defineProperty(e,t,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(S){Qr(S),l=""+S},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){if(!e._valueTracker){var t=le(e)?"checked":"value";e._valueTracker=ye(e,t,""+e[t])}}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),u="";return e&&(u=le(e)?e.checked?"true":"false":e.value),e=u,e!==l?(t.setValue(e),!0):!1}function Ke(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}}function Ve(e){return e.replace(Nm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xe(e,t){t.checked===void 0||t.defaultChecked===void 0||JS||(console.error("%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://react.dev/link/controlled-components",Qe()||"A component",t.type),JS=!0),t.value===void 0||t.defaultValue===void 0||r0||(console.error("%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://react.dev/link/controlled-components",Qe()||"A component",t.type),r0=!0)}function Ie(e,t,l,u,h,m,S,_){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?(Vt(S,"type"),e.type=S):e.removeAttribute("type"),t!=null?S==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Y(t)):e.value!==""+Y(t)&&(e.value=""+Y(t)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),t!=null?mt(e,S,Y(t)):l!=null?mt(e,S,Y(l)):u!=null&&e.removeAttribute("value"),h==null&&m!=null&&(e.defaultChecked=!!m),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?(Vt(_,"name"),e.name=""+Y(_)):e.removeAttribute("name")}function rt(e,t,l,u,h,m,S,_){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(Vt(m,"type"),e.type=m),t!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||t!=null)){Ne(e);return}l=l!=null?""+Y(l):"",t=t!=null?""+Y(t):l,_||t===e.value||(e.value=t),e.defaultValue=t}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=_?e.checked:!!u,e.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(Vt(S,"name"),e.name=S),Ne(e)}function mt(e,t,l){t==="number"&&Ke(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function lt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?ah.Children.forEach(t.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||a||(a=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||r||(r=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||sh||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),sh=!0)}function wt(){var e=Qe();return e?`
|
|
127
|
+
|
|
128
|
+
Check the render method of \``+e+"`.":""}function xt(e,t,l,u){if(e=e.options,t){t={};for(var h=0;h<l.length;h++)t["$"+l[h]]=!0;for(l=0;l<e.length;l++)h=t.hasOwnProperty("$"+e[l].value),e[l].selected!==h&&(e[l].selected=h),h&&u&&(e[l].defaultSelected=!0)}else{for(l=""+Y(l),t=null,h=0;h<e.length;h++){if(e[h].value===l){e[h].selected=!0,u&&(e[h].defaultSelected=!0);return}t!==null||e[h].disabled||(t=e[h])}t!==null&&(t.selected=!0)}}function gn(e,t){for(e=0;e<f.length;e++){var l=f[e];if(t[l]!=null){var u=pa(t[l]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,wt()):!t.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,wt())}}t.value===void 0||t.defaultValue===void 0||i||(console.error("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://react.dev/link/controlled-components"),i=!0)}function Rn(e,t){t.value===void 0||t.defaultValue===void 0||g||(console.error("%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://react.dev/link/controlled-components",Qe()||"A component"),g=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Yn(e,t,l){if(t!=null&&(t=""+Y(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Y(l):""}function Kt(e,t,l,u){if(t==null){if(u!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(pa(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}l=u}l==null&&(l=""),t=l}l=Y(t),e.defaultValue=l,u=e.textContent,u===l&&u!==""&&u!==null&&(e.value=u),Ne(e)}function fa(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?fa(e.children[0],t):e}function qt(e){return" "+" ".repeat(e)}function Pl(e){return"+ "+" ".repeat(e)}function Za(e){return"- "+" ".repeat(e)}function Ea(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Hl(e,t){return b.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function wo(e,t,l){var u=120-2*l;if(t===null)return Pl(l)+Hl(e,u)+`
|
|
129
|
+
`;if(typeof t=="string"){for(var h=0;h<t.length&&h<e.length&&t.charCodeAt(h)===e.charCodeAt(h);h++);return h>u-8&&10<h&&(e="..."+e.slice(h-8),t="..."+t.slice(h-8)),Pl(l)+Hl(e,u)+`
|
|
130
|
+
`+Za(l)+Hl(t,u)+`
|
|
131
|
+
`}return qt(l)+Hl(e,u)+`
|
|
132
|
+
`}function _r(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,l){return l})}function Zr(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(pa(e))return"[...]";if(e.$$typeof===Lr)return(t=$(e.type))?"<"+t+">":"<...>";var l=_r(e);if(l==="Object"){l="",t-=2;for(var u in e)if(e.hasOwnProperty(u)){var h=JSON.stringify(u);if(h!=='"'+u+'"'&&(u=h),t-=u.length-2,h=Zr(e[u],15>t?t:15),t-=h.length,0>t){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+u+":"+h}return"{"+l+"}"}return l;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Jr(e,t){return typeof e!="string"||b.test(e)?"{"+Zr(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Ut(e,t,l){var u=120-l.length-e.length,h=[],m;for(m in t)if(t.hasOwnProperty(m)&&m!=="children"){var S=Jr(t[m],120-l.length-m.length-1);u-=m.length+S.length+2,h.push(m+"="+S)}return h.length===0?l+"<"+e+`>
|
|
133
|
+
`:0<u?l+"<"+e+" "+h.join(" ")+`>
|
|
134
|
+
`:l+"<"+e+`
|
|
135
|
+
`+l+" "+h.join(`
|
|
136
|
+
`+l+" ")+`
|
|
137
|
+
`+l+`>
|
|
138
|
+
`}function na(e,t,l){var u="",h=Lt({},t),m;for(m in e)if(e.hasOwnProperty(m)){delete h[m];var S=120-2*l-m.length-2,_=Zr(e[m],S);t.hasOwnProperty(m)?(S=Zr(t[m],S),u+=Pl(l)+m+": "+_+`
|
|
139
|
+
`,u+=Za(l)+m+": "+S+`
|
|
140
|
+
`):u+=Pl(l)+m+": "+_+`
|
|
141
|
+
`}for(var M in h)h.hasOwnProperty(M)&&(e=Zr(h[M],120-2*l-M.length-2),u+=Za(l)+M+": "+e+`
|
|
142
|
+
`);return u}function ll(e,t,l,u){var h="",m=new Map;for(z in l)l.hasOwnProperty(z)&&m.set(z.toLowerCase(),z);if(m.size===1&&m.has("children"))h+=Ut(e,t,qt(u));else{for(var S in t)if(t.hasOwnProperty(S)&&S!=="children"){var _=120-2*(u+1)-S.length-1,M=m.get(S.toLowerCase());if(M!==void 0){m.delete(S.toLowerCase());var z=t[S];M=l[M];var ee=Jr(z,_);_=Jr(M,_),typeof z=="object"&&z!==null&&typeof M=="object"&&M!==null&&_r(z)==="Object"&&_r(M)==="Object"&&(2<Object.keys(z).length||2<Object.keys(M).length||-1<ee.indexOf("...")||-1<_.indexOf("..."))?h+=qt(u+1)+S+`={{
|
|
143
|
+
`+na(z,M,u+2)+qt(u+1)+`}}
|
|
144
|
+
`:(h+=Pl(u+1)+S+"="+ee+`
|
|
145
|
+
`,h+=Za(u+1)+S+"="+_+`
|
|
146
|
+
`)}else h+=qt(u+1)+S+"="+Jr(t[S],_)+`
|
|
147
|
+
`}m.forEach(function(ne){if(ne!=="children"){var Q=120-2*(u+1)-ne.length-1;h+=Za(u+1)+ne+"="+Jr(l[ne],Q)+`
|
|
148
|
+
`}}),h=h===""?qt(u)+"<"+e+`>
|
|
149
|
+
`:qt(u)+"<"+e+`
|
|
150
|
+
`+h+qt(u)+`>
|
|
151
|
+
`}return e=l.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(m="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(m=""+t),h+=wo(m,""+e,u+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(h=e==null?h+wo(""+t,null,u+1):h+wo(""+t,void 0,u+1)),h}function aa(e,t){var l=Ea(e);if(l===null){for(l="",e=e.child;e;)l+=aa(e,t),e=e.sibling;return l}return qt(t)+"<"+l+`>
|
|
152
|
+
`}function _n(e,t){var l=fa(e,t);if(l!==e&&(e.children.length!==1||e.children[0]!==l))return qt(t)+`...
|
|
153
|
+
`+_n(l,t+1);l="";var u=e.fiber._debugInfo;if(u)for(var h=0;h<u.length;h++){var m=u[h].name;typeof m=="string"&&(l+=qt(t)+"<"+m+`>
|
|
154
|
+
`,t++)}if(u="",h=e.fiber.pendingProps,e.fiber.tag===6)u=wo(h,e.serverProps,t),t++;else if(m=Ea(e.fiber),m!==null)if(e.serverProps===void 0){u=t;var S=120-2*u-m.length-2,_="";for(z in h)if(h.hasOwnProperty(z)&&z!=="children"){var M=Jr(h[z],15);if(S-=z.length+M.length+2,0>S){_+=" ...";break}_+=" "+z+"="+M}u=qt(u)+"<"+m+_+`>
|
|
155
|
+
`,t++}else e.serverProps===null?(u=Ut(m,h,Pl(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=ll(m,h,e.serverProps,t),t++);var z="";for(h=e.fiber.child,m=0;h&&m<e.children.length;)S=e.children[m],S.fiber===h?(z+=_n(S,t),m++):z+=aa(h,t),h=h.sibling;for(h&&0<e.children.length&&(z+=qt(t)+`...
|
|
156
|
+
`),h=e.serverTail,e.serverProps===null&&t--,e=0;e<h.length;e++)m=h[e],z=typeof m=="string"?z+(Za(t)+Hl(m,120-2*t)+`
|
|
157
|
+
`):z+Ut(m.type,m.props,Za(t));return l+u+z}function ou(e){try{return`
|
|
158
|
+
|
|
159
|
+
`+_n(e,0)}catch{return""}}function Wu(e,t,l){for(var u=t,h=null,m=0;u;)u===e&&(m=0),h={fiber:u,children:h!==null?[h]:[],serverProps:u===t?l:u===e?null:void 0,serverTail:[],distanceFromLeaf:m},m++,u=u.return;return h!==null?ou(h).replaceAll(/^[+-]/gm,">"):""}function Jf(e,t){var l=Lt({},e||Te),u={tag:t};return B.indexOf(t)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),I.indexOf(t)!==-1&&(l.pTagInButtonScope=null),C.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=u,t==="form"&&(l.formTag=u),t==="a"&&(l.aTagInScope=u),t==="button"&&(l.buttonTagInScope=u),t==="nobr"&&(l.nobrTagInScope=u),t==="p"&&(l.pTagInButtonScope=u),t==="li"&&(l.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(l.dlItemTagAutoclosing=u),t==="#document"||t==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=u),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function Ff(e,t,l){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||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":if(l)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!l)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return de.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return l||t===null;case"html":return l&&t==="#document"||t===null;case"body":return l&&(t==="#document"||t==="html")||t===null}return!0}function Z_(e,t){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 t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Wl(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Kf(e,t){t=t||Te;var l=t.current;if(t=(l=Ff(e,l&&l.tag,t.implicitRootScope)?null:l)?null:Z_(e,t),t=l||t,!t)return!0;var u=t.tag;if(t=String(!!l)+"|"+e+"|"+u,Oe[t])return!1;Oe[t]=!0;var h=(t=Xl)?Wl(t.return,u):null,m=t!==null&&h!==null?Wu(h,t,null):"",S="<"+e+">";return l?(l="",u==="table"&&e==="tr"&&(l+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
160
|
+
This will cause a hydration error.%s`,S,u,l,m)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
161
|
+
This will cause a hydration error.%s`,S,u,m),t&&(e=t.return,h===null||e===null||h===e&&e._debugOwner===t._debugOwner||Le(h,function(){console.error(`<%s> cannot contain a nested %s.
|
|
162
|
+
See this log for the ancestor stack trace.`,u,S)})),!1}function Pf(e,t,l){if(l||Ff("#text",t,!1))return!0;if(l="#text|"+t,Oe[l])return!1;Oe[l]=!0;var u=(l=Xl)?Wl(l,t):null;return l=l!==null&&u!==null?Wu(u,l,l.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
163
|
+
This will cause a hydration error.%s`,t,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
164
|
+
This will cause a hydration error.%s`,t,l),!1}function ec(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}function ps(e){return e.replace(ie,function(t,l){return l.toUpperCase()})}function ug(e,t,l){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?fe.hasOwnProperty(t)&&fe[t]||(fe[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,ps(t.replace(Sn,"ms-")))):ht.test(t)?fe.hasOwnProperty(t)&&fe[t]||(fe[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!te.test(l)||_e.hasOwnProperty(l)&&_e[l]||(_e[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,l.replace(te,""))),typeof l=="number"&&(isNaN(l)?ot||(ot=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(l)||tn||(tn=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),l==null||typeof l=="boolean"||l===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,l):typeof l!="number"||l===0||nt.has(t)?t==="float"?e.cssFloat=l:(sn(l,t),e[t]=(""+l).trim()):e[t]=l+"px"}function cg(e,t,l){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,l!=null){if(t){var u={};if(l){for(var h in l)if(l.hasOwnProperty(h)&&!t.hasOwnProperty(h))for(var m=he[h]||[h],S=0;S<m.length;S++)u[m[S]]=h}for(var _ in t)if(t.hasOwnProperty(_)&&(!l||l[_]!==t[_]))for(h=he[_]||[_],m=0;m<h.length;m++)u[h[m]]=_;_={};for(var M in t)for(h=he[M]||[M],m=0;m<h.length;m++)_[h[m]]=M;M={};for(var z in u)if(h=u[z],(m=_[z])&&h!==m&&(S=h+","+m,!M[S])){M[S]=!0,S=console;var ee=t[h];S.error.call(S,"%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.",ee==null||typeof ee=="boolean"||ee===""?"Removing":"Updating",h,m)}}for(var ne in l)!l.hasOwnProperty(ne)||t!=null&&t.hasOwnProperty(ne)||(ne.indexOf("--")===0?e.setProperty(ne,""):ne==="float"?e.cssFloat="":e[ne]="");for(var Q in t)z=t[Q],t.hasOwnProperty(Q)&&l[Q]!==z&&ug(e,Q,z)}else for(u in t)t.hasOwnProperty(u)&&ug(e,u,t[u])}function Mo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function AE(e){return rn.get(e)||e}function CE(e,t){if(pr.call(zm,t)&&zm[t])return!0;if(h$.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=FS.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),zm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),zm[t]=!0}if(d$.test(t)){if(e=t.toLowerCase(),e=FS.hasOwnProperty(e)?e:null,e==null)return zm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),zm[t]=!0)}return!0}function DE(e,t){var l=[],u;for(u in t)CE(e,u)||l.push(u);t=l.map(function(h){return"`"+h+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function sg(e,t,l,u){if(pr.call(mr,t)&&mr[t])return!0;var h=t.toLowerCase();if(h==="onfocusin"||h==="onfocusout")return console.error("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."),mr[t]=!0;if(typeof l=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(h)?e[h]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),mr[t]=!0;if(vw.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),mr[t]=!0}else if(vw.test(t))return p$.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),mr[t]=!0;if(m$.test(t)||y$.test(t))return!0;if(h==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),mr[t]=!0;if(h==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),mr[t]=!0;if(h==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),mr[t]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),mr[t]=!0;if(bo.hasOwnProperty(h)){if(h=bo[h],h!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,h),mr[t]=!0}else if(t!==h)return console.error("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.",t,h),mr[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return h=t.toLowerCase().slice(0,5),h==="data-"||h==="aria-"?!0:(l?console.error('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()}.',l,t,t,l,t):console.error('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.',l,t,t,l,t,t,t),mr[t]=!0)}case"function":case"symbol":return mr[t]=!0,!1;case"string":if(l==="false"||l==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,t,l==="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".',t,l),mr[t]=!0}}return!0}function J_(e,t,l){var u=[],h;for(h in t)sg(e,h,t[h],l)||u.push(h);t=u.map(function(m){return"`"+m+"`"}).join(", "),u.length===1?console.error("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://react.dev/link/attribute-behavior ",t,e):1<u.length&&console.error("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://react.dev/link/attribute-behavior ",t,e)}function Wf(e){return g$.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rr(){}function Fr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function tp(e){var t=Be(e);if(t&&(e=t.stateNode)){var l=e[Dl]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ie(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(Vt(t,"name"),l=l.querySelectorAll('input[name="'+Ve(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var u=l[t];if(u!==e&&u.form===e.form){var h=u[Dl]||null;if(!h)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ie(u,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(t=0;t<l.length;t++)u=l[t],u.form===e.form&&He(u)}break e;case"textarea":Yn(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&xt(e,!!l.multiple,t,!1)}}}function np(e,t,l){if(cR)return e(t,l);cR=!0;try{var u=e(t);return u}finally{if(cR=!1,(Um!==null||Lm!==null)&&(fr(),Um&&(t=Um,e=Lm,Lm=Um=null,tp(t),e)))for(t=0;t<e.length;t++)tp(e[t])}}function jo(e,t){var l=e.stateNode;if(l===null)return null;var u=l[Dl]||null;if(u===null)return null;l=u[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function tc(){if(KS)return KS;var e,t=fR,l=t.length,u,h="value"in vf?vf.value:vf.textContent,m=h.length;for(e=0;e<l&&t[e]===h[e];e++);var S=l-e;for(u=1;u<=S&&t[l-u]===h[m-u];u++);return KS=h.slice(e,1<u?1-u:void 0)}function ed(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ms(){return!0}function fg(){return!1}function wa(e){function t(l,u,h,m,S){this._reactName=l,this._targetInst=h,this.type=u,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(l=e[_],this[_]=l?l(m):m[_]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ms:fg,this.isPropagationStopped=fg,this}return Lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}function Oi(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w$[e])?!!t[e]:!1}function td(){return Oi}function ys(e,t){switch(e){case"keyup":return G$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Tw;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ai(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function dg(e,t){switch(e){case"compositionend":return Ai(t);case"keypress":return t.which!==_w?null:(Ow=!0,Rw);case"textInput":return e=t.data,e===Rw&&Ow?null:e;default:return null}}function ap(e,t){if(Bm)return e==="compositionend"||!mR&&ys(e,t)?(e=tc(),KS=fR=vf=null,Bm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xw&&t.locale!=="ko"?null:t.data;default:return null}}function hg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y$[e.type]:t==="textarea"}function lp(e){if(!$u)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function nd(e,t,l,u){Um?Lm?Lm.push(u):Lm=[u]:Um=u,t=po(t,"onChange"),0<t.length&&(l=new PS("onChange","change",null,l,u),e.push({event:l,listeners:t}))}function wE(e){hn(e,0)}function Ja(e){var t=Fe(e);if(He(t))return e}function iu(e,t){if(e==="change")return t}function ad(){f0&&(f0.detachEvent("onpropertychange",gs),d0=f0=null)}function gs(e){if(e.propertyName==="value"&&Ja(d0)){var t=[];nd(t,d0,e,Fr(e)),np(wE,t)}}function F_(e,t,l){e==="focusin"?(ad(),f0=t,d0=l,f0.attachEvent("onpropertychange",gs)):e==="focusout"&&ad()}function pg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ja(d0)}function mg(e,t){if(e==="click")return Ja(t)}function ld(e,t){if(e==="input"||e==="change")return Ja(t)}function rp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function vs(e,t){if(yr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),u=Object.keys(t);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var h=l[u];if(!pr.call(t,h)||!yr(e[h],t[h]))return!1}return!0}function ME(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jE(e,t){var l=ME(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=t&&u>=t)return{node:l,offset:t-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ME(l)}}function NE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function op(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ke(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ke(e.document)}return t}function yg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zE(e,t,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;gR||Hm==null||Hm!==Ke(u)||(u=Hm,"selectionStart"in u&&yg(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),h0&&vs(h0,u)||(h0=u,u=po(yR,"onSelect"),0<u.length&&(t=new PS("onSelect","select",null,t,l),e.push({event:t,listeners:u}),t.target=Hm)))}function nc(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}function ac(e){if(vR[e])return vR[e];if(!$m[e])return e;var t=$m[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Cw)return vR[e]=t[l];return e}function Kr(e,t){Nw.set(e,t),Dt(t,[e])}function UE(e){for(var t=e1,l=0;l<e.length;l++){var u=e[l];if(typeof u=="object"&&u!==null)if(pa(u)&&u.length===2&&typeof u[0]=="string"){if(t!==e1&&t!==xR)return SR;t=xR}else return SR;else{if(typeof u=="function"||typeof u=="string"&&50<u.length||t!==e1&&t!==TR)return SR;t=TR}}return t}function gg(e,t,l,u){for(var h in e)pr.call(e,h)&&h[0]!=="_"&&No(h,e[h],t,l,u)}function No(e,t,l,u,h){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Lr){var m=$(t.type)||"…",S=t.key;t=t.props;var _=Object.keys(t),M=_.length;if(S==null&&M===0){t="<"+m+" />";break}if(3>u||M===1&&_[0]==="children"&&S==null){t="<"+m+" … />";break}l.push([h+" ".repeat(u)+e,"<"+m]),S!==null&&No("key",S,l,u+1,h),e=!1;for(var z in t)z==="children"?t.children!=null&&(!pa(t.children)||0<t.children.length)&&(e=!0):pr.call(t,z)&&z[0]!=="_"&&No(z,t[z],l,u+1,h);l.push(["",e?">…</"+m+">":"/>"]);return}if(m=Object.prototype.toString.call(t),m=m.slice(8,m.length-1),m==="Array"){if(z=UE(t),z===TR||z===e1){t=JSON.stringify(t);break}else if(z===xR){for(l.push([h+" ".repeat(u)+e,""]),e=0;e<t.length;e++)m=t[e],No(m[0],m[1],l,u+1,h);return}}if(m==="Promise"){if(t.status==="fulfilled"){if(m=l.length,No(e,t.value,l,u,h),l.length>m){l=l[m],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(t.status==="rejected"&&(m=l.length,No(e,t.reason,l,u,h),l.length>m)){l=l[m],l[1]="Rejected Promise<"+l[1]+">";return}l.push([" ".repeat(u)+e,"Promise"]);return}m==="Object"&&(z=Object.getPrototypeOf(t))&&typeof z.constructor=="function"&&(m=z.constructor.name),l.push([h+" ".repeat(u)+e,m==="Object"?3>u?"":"…":m]),3>u&&gg(t,l,u+1,h);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===K$?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}l.push([h+" ".repeat(u)+e,t])}function LE(e,t,l,u){var h=!0;for(S in e)S in t||(l.push([t1+" ".repeat(u)+S,"…"]),h=!1);for(var m in t)if(m in e){var S=e[m],_=t[m];if(S!==_){if(u===0&&m==="children")h=" ".repeat(u)+m,l.push([t1+h,"…"],[n1+h,"…"]);else{if(!(3<=u)){if(typeof S=="object"&&typeof _=="object"&&S!==null&&_!==null&&S.$$typeof===_.$$typeof)if(_.$$typeof===Lr){if(S.type===_.type&&S.key===_.key){S=$(_.type)||"…",h=" ".repeat(u)+m,S="<"+S+" … />",l.push([t1+h,S],[n1+h,S]),h=!1;continue}}else{var M=Object.prototype.toString.call(S),z=Object.prototype.toString.call(_);if(M===z&&(z==="[object Object]"||z==="[object Array]")){M=[Lw+" ".repeat(u)+m,z==="[object Array]"?"Array":""],l.push(M),z=l.length,LE(S,_,l,u+1)?z===l.length&&(M[1]="Referentially unequal but deeply equal objects. Consider memoization."):h=!1;continue}}else if(typeof S=="function"&&typeof _=="function"&&S.name===_.name&&S.length===_.length&&(M=Function.prototype.toString.call(S),z=Function.prototype.toString.call(_),M===z)){S=_.name===""?"() => {}":_.name+"() {}",l.push([Lw+" ".repeat(u)+m,S+" Referentially unequal function closure. Consider memoization."]);continue}}No(m,S,l,u,t1),No(m,_,l,u,n1)}h=!1}}else l.push([n1+" ".repeat(u)+m,"…"]),h=!1;return h}function Pr(e){en=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Or(e,t,l,u){$n&&(Ef.start=t,Ef.end=l,Gc.color="warning",Gc.tooltipText=u,Gc.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,u,Ef)):performance.measure(u,Ef))}function ip(e,t,l){Or(e,t,l,"Reconnect")}function up(e,t,l,u,h){var m=me(e);if(m!==null&&$n){var S=e.alternate,_=e.actualDuration;if(S===null||S.child!==e.child)for(var M=e.child;M!==null;M=M.sibling)_-=M.actualDuration;u=.5>_?u?"tertiary-light":"primary-light":10>_?u?"tertiary":"primary":100>_?u?"tertiary-dark":"primary-dark":"error";var z=e.memoizedProps;_=e._debugTask,z!==null&&S!==null&&S.memoizedProps!==z?(M=[P$],z=LE(S.memoizedProps,z,M,0),1<M.length&&(z&&!bf&&(S.lanes&h)===0&&100<e.actualDuration?(bf=!0,M[0]=W$,Gc.color="warning",Gc.tooltipText=Bw):(Gc.color=u,Gc.tooltipText=m),Gc.properties=M,Ef.start=t,Ef.end=l,_!=null?_.run(performance.measure.bind(performance,""+m,Ef)):performance.measure(""+m,Ef))):_!=null?_.run(console.timeStamp.bind(console,m,t,l,oi,void 0,u)):console.timeStamp(m,t,l,oi,void 0,u)}}function vg(e,t,l,u){if($n){var h=me(e);if(h!==null){for(var m=null,S=[],_=0;_<u.length;_++){var M=u[_];m==null&&M.source!==null&&(m=M.source._debugTask),M=M.value,S.push(["Error",typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M)])}e.key!==null&&No("key",e.key,S,0,""),e.memoizedProps!==null&&gg(e.memoizedProps,S,0,""),m==null&&(m=e._debugTask),e={start:t,end:l,detail:{devtools:{color:"error",track:oi,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:S}}},m?m.run(performance.measure.bind(performance,""+h,e)):performance.measure(""+h,e)}}}function Wr(e,t,l,u,h){if(h!==null){if($n){var m=me(e);if(m!==null){u=[];for(var S=0;S<h.length;S++){var _=h[S].value;u.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e.key!==null&&No("key",e.key,u,0,""),e.memoizedProps!==null&&gg(e.memoizedProps,u,0,""),t={start:t,end:l,detail:{devtools:{color:"error",track:oi,tooltipText:"A lifecycle or effect errored",properties:u}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+m,t)):performance.measure(""+m,t)}}}else m=me(e),m!==null&&$n&&(h=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,m,t,l,oi,void 0,h)):console.timeStamp(m,t,l,oi,void 0,h))}function K_(e,t,l,u){if($n&&!(t<=e)){var h=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,l,e,t,en,Pt,h)):console.timeStamp(l,e,t,en,Pt,h)}}function BE(e,t,l,u){!$n||t<=e||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",e,t,en,Pt,l)):console.timeStamp("Prewarm",e,t,en,Pt,l))}function HE(e,t,l,u){!$n||t<=e||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",e,t,en,Pt,l)):console.timeStamp("Suspended",e,t,en,Pt,l))}function P_(e,t,l,u,h,m){if($n&&!(t<=e)){l=[];for(var S=0;S<u.length;S++){var _=u[S].value;l.push(["Recoverable Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:en,trackGroup:Pt,tooltipText:h?"Hydration Failed":"Recovered after Error",properties:l}}},m?m.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function bg(e,t,l,u){!$n||t<=e||(u?u.run(console.timeStamp.bind(console,"Errored",e,t,en,Pt,"error")):console.timeStamp("Errored",e,t,en,Pt,"error"))}function W_(e,t,l,u){!$n||t<=e||(u?u.run(console.timeStamp.bind(console,l,e,t,en,Pt,"secondary-light")):console.timeStamp(l,e,t,en,Pt,"secondary-light"))}function $E(e,t,l,u,h){if($n&&!(t<=e)){for(var m=[],S=0;S<l.length;S++){var _=l[S].value;m.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"error",track:en,trackGroup:Pt,tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:m}}},h?h.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Eg(e,t,l){!$n||t<=e||console.timeStamp("Animating",e,t,en,Pt,"secondary-dark")}function cp(){for(var e=Vm,t=_R=Vm=0;t<e;){var l=ii[t];ii[t++]=null;var u=ii[t];ii[t++]=null;var h=ii[t];ii[t++]=null;var m=ii[t];if(ii[t++]=null,u!==null&&h!==null){var S=u.pending;S===null?h.next=h:(h.next=S.next,S.next=h),u.pending=h}m!==0&&Sg(l,h,m)}}function bs(e,t,l,u){ii[Vm++]=e,ii[Vm++]=t,ii[Vm++]=l,ii[Vm++]=u,_R|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function lc(e,t,l,u){return bs(e,t,l,u),rd(e)}function rl(e,t){return bs(e,null,null,t),rd(e)}function Sg(e,t,l){e.lanes|=l;var u=e.alternate;u!==null&&(u.lanes|=l);for(var h=!1,m=e.return;m!==null;)m.childLanes|=l,u=m.alternate,u!==null&&(u.childLanes|=l),m.tag===22&&(e=m.stateNode,e===null||e._visibility&p0||(h=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,h&&t!==null&&(h=31-Ka(l),e=m.hiddenUpdates,u=e[h],u===null?e[h]=[t]:u.push(t),t.lane=l|536870912),m):null}function rd(e){if(k0>m7)throw Ah=k0=0,G0=aO=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ah>y7&&(Ah=0,G0=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Ur(e);for(var t=e,l=t.return;l!==null;)t.alternate===null&&(t.flags&4098)!==0&&Ur(e),t=l,l=t.return;return t.tag===3?t.stateNode:null}function uu(e){if(ui===null)return e;var t=ui(e);return t===void 0?e:t.current}function sp(e){if(ui===null)return e;var t=ui(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=uu(e.render),e.render!==t)?(t={$$typeof:of,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Tg(e,t){if(ui===null)return!1;var l=e.elementType;t=t.type;var u=!1,h=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||h===ul)&&(u=!0);break;case 11:(h===of||h===ul)&&(u=!0);break;case 14:case 15:(h===rh||h===ul)&&(u=!0);break;default:return!1}return!!(u&&(e=ui(l),e!==void 0&&e===ui(t)))}function rc(e){ui!==null&&typeof WeakSet=="function"&&(km===null&&(km=new WeakSet),km.add(e))}function VE(e,t,l){do{var u=e,h=u.alternate,m=u.child,S=u.sibling,_=u.tag;u=u.type;var M=null;switch(_){case 0:case 15:case 1:M=u;break;case 11:M=u.render}if(ui===null)throw Error("Expected resolveFamily to be set during hot reload.");var z=!1;if(u=!1,M!==null&&(M=ui(M),M!==void 0&&(l.has(M)?u=!0:t.has(M)&&(_===1?u=!0:z=!0))),km!==null&&(km.has(e)||h!==null&&km.has(h))&&(u=!0),u&&(e._debugNeedsRemount=!0),(u||z)&&(h=rl(e,2),h!==null&&vt(h,e,2)),m===null||u||VE(m,t,l),S===null)break;e=S}while(!0)}function eR(e,t,l,u){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Hw||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function xg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zo(e,t){var l=e.alternate;switch(l===null?(l=A(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l._debugOwner=e._debugOwner,l._debugStack=e._debugStack,l._debugTask=e._debugTask,l._debugHookTypes=e._debugHookTypes,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l.selfBaseDuration=e.selfBaseDuration,l.treeBaseDuration=e.treeBaseDuration,l._debugInfo=e._debugInfo,l._debugNeedsRemount=e._debugNeedsRemount,l.tag){case 0:case 15:l.type=uu(e.type);break;case 1:l.type=uu(e.type);break;case 11:l.type=sp(e.type)}return l}function _g(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=l.selfBaseDuration,e.treeBaseDuration=l.treeBaseDuration),e}function oc(e,t,l,u,h,m){var S=0,_=e;if(typeof e=="function")xg(e)&&(S=1),_=uu(_);else if(typeof e=="string")S=ce(),S=US(e,l,S)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case vo:return t=A(31,l,t,h),t.elementType=vo,t.lanes=m,t;case rf:return ic(l.children,h,m,t);case Cl:S=8,h|=Il,h|=Zi;break;case lh:return e=l,u=h,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=A(12,e,t,u|Bt),t.elementType=lh,t.lanes=m,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Bc:return t=A(13,l,t,h),t.elementType=Bc,t.lanes=m,t;case Ql:return t=A(19,l,t,h),t.elementType=Ql,t.lanes=m,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case go:S=10;break e;case Tm:S=9;break e;case of:S=11,_=sp(_);break e;case rh:S=14;break e;case ul:S=16,_=null;break e}_="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?l="null":pa(e)?l="array":e!==void 0&&e.$$typeof===Lr?(l="<"+($(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,(S=u?Se(u):null)&&(_+=`
|
|
165
|
+
|
|
166
|
+
Check the render method of \``+S+"`."),S=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+_)),_=null}return t=A(S,l,t,h),t.elementType=e,t.type=_,t.lanes=m,t._debugOwner=u,t}function cu(e,t,l){return t=oc(e.type,e.key,e.props,e._owner,t,l),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ic(e,t,l,u){return e=A(7,e,u,t),e.lanes=l,e}function Es(e,t,l){return e=A(6,e,null,t),e.lanes=l,e}function Rg(e){var t=A(18,null,null,gt);return t.stateNode=e,t}function fp(e,t,l){return t=A(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ml(e,t){if(typeof e=="object"&&e!==null){var l=RR.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Me(t)},RR.set(e,t),t)}return{value:e,source:t,stack:Me(t)}}function eo(e,t){su(),Gm[qm++]=m0,Gm[qm++]=a1,a1=e,m0=t}function Og(e,t,l){su(),ci[si++]=Yc,ci[si++]=Qc,ci[si++]=dh,dh=e;var u=Yc;e=Qc;var h=32-Ka(u)-1;u&=~(1<<h),l+=1;var m=32-Ka(t)+h;if(30<m){var S=h-h%5;m=(u&(1<<S)-1).toString(32),u>>=S,h-=S,Yc=1<<32-Ka(t)+h|l<<h|u,Qc=m+e}else Yc=1<<m|l<<h|u,Qc=e}function dp(e){su(),e.return!==null&&(eo(e,1),Og(e,1,0))}function hp(e){for(;e===a1;)a1=Gm[--qm],Gm[qm]=null,m0=Gm[--qm],Gm[qm]=null;for(;e===dh;)dh=ci[--si],ci[si]=null,Qc=ci[--si],ci[si]=null,Yc=ci[--si],ci[si]=null}function kE(){return su(),dh!==null?{id:Yc,overflow:Qc}:null}function GE(e,t){su(),ci[si++]=Yc,ci[si++]=Qc,ci[si++]=dh,Yc=t.id,Qc=t.overflow,dh=e}function su(){Jt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function uc(e,t){if(e.return===null){if(Eo===null)Eo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Eo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Eo.distanceFromLeaf>t&&(Eo.distanceFromLeaf=t)}return Eo}var l=uc(e.return,t+1).children;return 0<l.length&&l[l.length-1].fiber===e?(l=l[l.length-1],l.distanceFromLeaf>t&&(l.distanceFromLeaf=t),l):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},l.push(t),t)}function qE(){Jt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ol(e,t){Vu||(e=uc(e,0),e.serverProps=null,t!==null&&(t=MS(t),e.serverTail.push(t)))}function Ar(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",u=Eo;throw u!==null&&(Eo=null,l=ou(u)),id(ml(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
167
|
+
|
|
168
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
169
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
170
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
171
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
172
|
+
- Invalid HTML tag nesting.
|
|
173
|
+
|
|
174
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
175
|
+
|
|
176
|
+
https://react.dev/link/hydration-mismatch`+l),e)),OR}function Ag(e){var t=e.stateNode,l=e.type,u=e.memoizedProps;switch(t[Hn]=e,t[Dl]=u,Ol(l,u),l){case"dialog":yt("cancel",t),yt("close",t);break;case"iframe":case"object":case"embed":yt("load",t);break;case"video":case"audio":for(l=0;l<q0.length;l++)yt(q0[l],t);break;case"source":yt("error",t);break;case"img":case"image":case"link":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"input":ba("input",u),yt("invalid",t),Xe(t,u),rt(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"option":lt(t,u);break;case"select":ba("select",u),yt("invalid",t),gn(t,u);break;case"textarea":ba("textarea",u),yt("invalid",t),Rn(t,u),Kt(t,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||u.suppressHydrationWarning===!0||Dv(t.textContent,l)?(u.popover!=null&&(yt("beforetoggle",t),yt("toggle",t)),u.onScroll!=null&&yt("scroll",t),u.onScrollEnd!=null&&yt("scrollend",t),u.onClick!=null&&(t.onclick=Rr),t=!0):t=!1,t||Ar(e,!0)}function Cg(e){for(wl=e.return;wl;)switch(wl.tag){case 5:case 31:case 13:fi=!1;return;case 27:case 3:fi=!0;return;default:wl=wl.return}}function cc(e){if(e!==wl)return!1;if(!Jt)return Cg(e),Jt=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ks(e.type,e.memoizedProps)),l=!l),l&&Vn){for(l=Vn;l;){var u=uc(e,0),h=MS(l);u.serverTail.push(h),l=h.type==="Suspense"?ef(l):dr(l.nextSibling)}Ar(e)}if(Cg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vn=ef(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vn=ef(e)}else t===27?(t=Vn,Nu(e.type)?(e=mO,mO=null,Vn=e):Vn=t):Vn=wl?dr(e.stateNode.nextSibling):null;return!0}function fu(){Vn=wl=null,Vu=Jt=!1}function od(){var e=Tf;return e!==null&&(Er===null?Er=e:Er.push.apply(Er,e),Tf=null),e}function id(e){Tf===null?Tf=[e]:Tf.push(e)}function du(){var e=Eo;if(e!==null){Eo=null;for(var t=ou(e);0<e.children.length;)e=e.children[0];Le(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
177
|
+
|
|
178
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
179
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
180
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
181
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
182
|
+
- Invalid HTML tag nesting.
|
|
183
|
+
|
|
184
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
185
|
+
|
|
186
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Ss(){Ym=l1=null,Qm=!1}function Cr(e,t,l){ke(AR,t._currentValue,e),t._currentValue=l,ke(CR,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Vw&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Vw}function to(e,t){e._currentValue=AR.current;var l=CR.current;Re(CR,t),e._currentRenderer=l,Re(AR,t)}function pp(e,t,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===l)break;e=e.return}e!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Ci(e,t,l,u){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var m=h.dependencies;if(m!==null){var S=h.child;m=m.firstContext;e:for(;m!==null;){var _=m;m=h;for(var M=0;M<t.length;M++)if(_.context===t[M]){m.lanes|=l,_=m.alternate,_!==null&&(_.lanes|=l),pp(m.return,l,e),u||(S=null);break e}m=_.next}}else if(h.tag===18){if(S=h.return,S===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");S.lanes|=l,m=S.alternate,m!==null&&(m.lanes|=l),pp(S,l,e),S=null}else S=h.child;if(S!==null)S.return=h;else for(S=h;S!==null;){if(S===e){S=null;break}if(h=S.sibling,h!==null){h.return=S.return,S=h;break}S=S.return}h=S}}function no(e,t,l,u){e=null;for(var h=t,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var S=h.alternate;if(S===null)throw Error("Should have a current fiber. This is a bug in React.");if(S=S.memoizedProps,S!==null){var _=h.type;yr(h.pendingProps.value,S.value)||(e!==null?e.push(_):e=[_])}}else if(h===Bu.current){if(S=h.alternate,S===null)throw Error("Should have a current fiber. This is a bug in React.");S.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(Z0):e=[Z0])}h=h.return}e!==null&&Ci(t,e,l,u),t.flags|=262144}function Ts(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hu(e){l1=e,Ym=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function on(e){return Qm&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Dg(l1,e)}function ud(e,t){return l1===null&&hu(e),Dg(e,t)}function Dg(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ym===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Ym=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Ym=Ym.next=t;return l}function mp(){return{controller:new n7,data:new Map,refCount:0}}function sc(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function cd(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&a7(l7,function(){e.controller.abort()})}function Uo(e,t,l){(e&127)!==0?0>ku&&(ku=$a(),g0=r1(t),DR=t,l!=null&&(wR=me(l)),(nn&(el|xo))!==dl&&(ca=!0,_f=y0),e=Ps(),t=ei(),e!==Xm||t!==v0?Xm=-1.1:t!==null&&(_f=y0),mh=e,v0=t):(e&4194048)!==0&&0>di&&(di=$a(),b0=r1(t),kw=t,l!=null&&(Gw=me(l)),0>Jc)&&(e=Ps(),t=ei(),(e!==Of||t!==yh)&&(Of=-1.1),Rf=e,yh=t)}function YE(e){if(0>ku){ku=$a(),g0=e._debugTask!=null?e._debugTask:null,(nn&(el|xo))!==dl&&(_f=y0);var t=Ps(),l=ei();t!==Xm||l!==v0?Xm=-1.1:l!==null&&(_f=y0),mh=t,v0=l}0>di&&(di=$a(),b0=e._debugTask!=null?e._debugTask:null,0>Jc)&&(e=Ps(),t=ei(),(e!==Of||t!==yh)&&(Of=-1.1),Rf=e,yh=t)}function Lo(){var e=hh;return hh=0,e}function xs(e){var t=hh;return hh=e,t}function yl(e){var t=hh;return hh+=e,t}function fc(){pt=st=-1.1}function Un(){var e=st;return st=-1.1,e}function Ma(e){0<=e&&(st=e)}function Dr(){var e=Pn;return Pn=-0,e}function er(e){0<=e&&(Pn=e)}function tr(){var e=Zn;return Zn=null,e}function wr(){var e=ca;return ca=!1,e}function Di(e){gr=$a(),0>e.actualStartTime&&(e.actualStartTime=gr)}function yp(e){if(0<=gr){var t=$a()-gr;e.actualDuration+=t,e.selfBaseDuration=t,gr=-1}}function sd(e){if(0<=gr){var t=$a()-gr;e.actualDuration+=t,gr=-1}}function gl(){if(0<=gr){var e=$a(),t=e-gr;gr=-1,hh+=t,Pn+=t,pt=e}}function QE(e){Zn===null&&(Zn=[]),Zn.push(e),Ic===null&&(Ic=[]),Ic.push(e)}function Jn(){gr=$a(),0>st&&(st=gr)}function dc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function wi(e,t){if(S0===null){var l=S0=[];jR=0,gh=Cv(),Im={status:"pending",value:void 0,then:function(u){l.push(u)}}}return jR++,t.then(wg,wg),t}function wg(){if(--jR===0&&(-1<di||(Jc=-1.1),S0!==null)){Im!==null&&(Im.status="fulfilled");var e=S0;S0=null,gh=0,Im=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gp(e,t){var l=[],u={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var h=0;h<l.length;h++)(0,l[h])(t)},function(h){for(u.status="rejected",u.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),u}function Mi(){var e=vh.current;return e!==null?e:wn.pooledCache}function _s(e,t){t===null?ke(vh,vh.current,e):ke(vh,t.pool,e)}function Mg(){var e=Mi();return e===null?null:{parent:Ha._currentValue,pool:e}}function vp(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function jg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nr(e,t,l){ve.actQueue!==null&&(ve.didUsePromise=!0);var u=e.thenables;if(l=u[l],l===void 0?u.push(t):l!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Rr,Rr),t=l),t._debugInfo===void 0){e=performance.now(),u=t.displayName;var h={name:typeof u=="string"?u:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:h}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){h.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e;default:if(typeof t.status=="string")t.then(Rr,Rr);else{if(e=wn,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(m){if(t.status==="pending"){var S=t;S.status="fulfilled",S.value=m}},function(m){if(t.status==="pending"){var S=t;S.status="rejected",S.reason=m}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e}throw Eh=t,C0=!0,Zm}}function ar(e){try{return c7(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Eh=t,C0=!0,Zm):t}}function hc(){if(Eh===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Eh;return Eh=null,C0=!1,e}function fd(e){if(e===Zm||e===h1)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function la(e){var t=Ht;return e!=null&&(Ht=t===null?e:t.concat(e)),t}function $l(){var e=Ht;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var l=e[t].debugTask;if(l!=null)return l}}return null}function vl(e,t,l){for(var u=Object.keys(e.props),h=0;h<u.length;h++){var m=u[h];if(m!=="children"&&m!=="key"){t===null&&(t=cu(e,l.mode,0),t._debugInfo=Ht,t.return=l),Le(t,function(S){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",S)},m);break}}}function ao(e){var t=D0;return D0+=1,Jm===null&&(Jm=vp()),nr(Jm,e,t)}function Vl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lo(e,t){throw t.$$typeof===kS?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
187
|
+
- Multiple copies of the "react" package is used.
|
|
188
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
189
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Mr(e,t){var l=$l();l!==null?l.run(lo.bind(null,e,t)):lo(e,t)}function Ng(e,t){var l=me(e)||"Component";uM[l]||(uM[l]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
190
|
+
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
191
|
+
<%s>{%s}</%s>`,t,t,l,t,l))}function Rs(e,t){var l=$l();l!==null?l.run(Ng.bind(null,e,t)):Ng(e,t)}function bp(e,t){var l=me(e)||"Component";cM[l]||(cM[l]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
192
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
193
|
+
<%s>%s</%s>`,l,t,l))}function dd(e,t){var l=$l();l!==null?l.run(bp.bind(null,e,t)):bp(e,t)}function ja(e){function t(q,X){if(e){var W=q.deletions;W===null?(q.deletions=[X],q.flags|=16):W.push(X)}}function l(q,X){if(!e)return null;for(;X!==null;)t(q,X),X=X.sibling;return null}function u(q){for(var X=new Map;q!==null;)q.key!==null?X.set(q.key,q):X.set(q.index,q),q=q.sibling;return X}function h(q,X){return q=zo(q,X),q.index=0,q.sibling=null,q}function m(q,X,W){return q.index=W,e?(W=q.alternate,W!==null?(W=W.index,W<X?(q.flags|=67108866,X):W):(q.flags|=67108866,X)):(q.flags|=1048576,X)}function S(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function _(q,X,W,xe){return X===null||X.tag!==6?(X=Es(W,q.mode,xe),X.return=q,X._debugOwner=q,X._debugTask=q._debugTask,X._debugInfo=Ht,X):(X=h(X,W),X.return=q,X._debugInfo=Ht,X)}function M(q,X,W,xe){var qe=W.type;return qe===rf?(X=ee(q,X,W.props.children,xe,W.key),vl(W,X,q),X):X!==null&&(X.elementType===qe||Tg(X,W)||typeof qe=="object"&&qe!==null&&qe.$$typeof===ul&&ar(qe)===X.type)?(X=h(X,W.props),Vl(X,W),X.return=q,X._debugOwner=W._owner,X._debugInfo=Ht,X):(X=cu(W,q.mode,xe),Vl(X,W),X.return=q,X._debugInfo=Ht,X)}function z(q,X,W,xe){return X===null||X.tag!==4||X.stateNode.containerInfo!==W.containerInfo||X.stateNode.implementation!==W.implementation?(X=fp(W,q.mode,xe),X.return=q,X._debugInfo=Ht,X):(X=h(X,W.children||[]),X.return=q,X._debugInfo=Ht,X)}function ee(q,X,W,xe,qe){return X===null||X.tag!==7?(X=ic(W,q.mode,xe,qe),X.return=q,X._debugOwner=q,X._debugTask=q._debugTask,X._debugInfo=Ht,X):(X=h(X,W),X.return=q,X._debugInfo=Ht,X)}function ne(q,X,W){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=Es(""+X,q.mode,W),X.return=q,X._debugOwner=q,X._debugTask=q._debugTask,X._debugInfo=Ht,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case Lr:return W=cu(X,q.mode,W),Vl(W,X),W.return=q,q=la(X._debugInfo),W._debugInfo=Ht,Ht=q,W;case Uu:return X=fp(X,q.mode,W),X.return=q,X._debugInfo=Ht,X;case ul:var xe=la(X._debugInfo);return X=ar(X),q=ne(q,X,W),Ht=xe,q}if(pa(X)||ae(X))return W=ic(X,q.mode,W,null),W.return=q,W._debugOwner=q,W._debugTask=q._debugTask,q=la(X._debugInfo),W._debugInfo=Ht,Ht=q,W;if(typeof X.then=="function")return xe=la(X._debugInfo),q=ne(q,ao(X),W),Ht=xe,q;if(X.$$typeof===go)return ne(q,ud(q,X),W);Mr(q,X)}return typeof X=="function"&&Rs(q,X),typeof X=="symbol"&&dd(q,X),null}function Q(q,X,W,xe){var qe=X!==null?X.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return qe!==null?null:_(q,X,""+W,xe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case Lr:return W.key===qe?(qe=la(W._debugInfo),q=M(q,X,W,xe),Ht=qe,q):null;case Uu:return W.key===qe?z(q,X,W,xe):null;case ul:return qe=la(W._debugInfo),W=ar(W),q=Q(q,X,W,xe),Ht=qe,q}if(pa(W)||ae(W))return qe!==null?null:(qe=la(W._debugInfo),q=ee(q,X,W,xe,null),Ht=qe,q);if(typeof W.then=="function")return qe=la(W._debugInfo),q=Q(q,X,ao(W),xe),Ht=qe,q;if(W.$$typeof===go)return Q(q,X,ud(q,W),xe);Mr(q,W)}return typeof W=="function"&&Rs(q,W),typeof W=="symbol"&&dd(q,W),null}function pe(q,X,W,xe,qe){if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return q=q.get(W)||null,_(X,q,""+xe,qe);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case Lr:return W=q.get(xe.key===null?W:xe.key)||null,q=la(xe._debugInfo),X=M(X,W,xe,qe),Ht=q,X;case Uu:return q=q.get(xe.key===null?W:xe.key)||null,z(X,q,xe,qe);case ul:var Tt=la(xe._debugInfo);return xe=ar(xe),X=pe(q,X,W,xe,qe),Ht=Tt,X}if(pa(xe)||ae(xe))return W=q.get(W)||null,q=la(xe._debugInfo),X=ee(X,W,xe,qe,null),Ht=q,X;if(typeof xe.then=="function")return Tt=la(xe._debugInfo),X=pe(q,X,W,ao(xe),qe),Ht=Tt,X;if(xe.$$typeof===go)return pe(q,X,W,ud(X,xe),qe);Mr(X,xe)}return typeof xe=="function"&&Rs(X,xe),typeof xe=="symbol"&&dd(X,xe),null}function Ge(q,X,W,xe){if(typeof W!="object"||W===null)return xe;switch(W.$$typeof){case Lr:case Uu:O(q,X,W);var qe=W.key;if(typeof qe!="string")break;if(xe===null){xe=new Set,xe.add(qe);break}if(!xe.has(qe)){xe.add(qe);break}Le(X,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",qe)});break;case ul:W=ar(W),Ge(q,X,W,xe)}return xe}function Ze(q,X,W,xe){for(var qe=null,Tt=null,ut=null,at=X,zt=X=0,kn=null;at!==null&&zt<W.length;zt++){at.index>zt?(kn=at,at=null):kn=at.sibling;var Aa=Q(q,at,W[zt],xe);if(Aa===null){at===null&&(at=kn);break}qe=Ge(q,Aa,W[zt],qe),e&&at&&Aa.alternate===null&&t(q,at),X=m(Aa,X,zt),ut===null?Tt=Aa:ut.sibling=Aa,ut=Aa,at=kn}if(zt===W.length)return l(q,at),Jt&&eo(q,zt),Tt;if(at===null){for(;zt<W.length;zt++)at=ne(q,W[zt],xe),at!==null&&(qe=Ge(q,at,W[zt],qe),X=m(at,X,zt),ut===null?Tt=at:ut.sibling=at,ut=at);return Jt&&eo(q,zt),Tt}for(at=u(at);zt<W.length;zt++)kn=pe(at,q,zt,W[zt],xe),kn!==null&&(qe=Ge(q,kn,W[zt],qe),e&&kn.alternate!==null&&at.delete(kn.key===null?zt:kn.key),X=m(kn,X,zt),ut===null?Tt=kn:ut.sibling=kn,ut=kn);return e&&at.forEach(function(as){return t(q,as)}),Jt&&eo(q,zt),Tt}function zn(q,X,W,xe){if(W==null)throw Error("An iterable object provided no iterator.");for(var qe=null,Tt=null,ut=X,at=X=0,zt=null,kn=null,Aa=W.next();ut!==null&&!Aa.done;at++,Aa=W.next()){ut.index>at?(zt=ut,ut=null):zt=ut.sibling;var as=Q(q,ut,Aa.value,xe);if(as===null){ut===null&&(ut=zt);break}kn=Ge(q,as,Aa.value,kn),e&&ut&&as.alternate===null&&t(q,ut),X=m(as,X,at),Tt===null?qe=as:Tt.sibling=as,Tt=as,ut=zt}if(Aa.done)return l(q,ut),Jt&&eo(q,at),qe;if(ut===null){for(;!Aa.done;at++,Aa=W.next())ut=ne(q,Aa.value,xe),ut!==null&&(kn=Ge(q,ut,Aa.value,kn),X=m(ut,X,at),Tt===null?qe=ut:Tt.sibling=ut,Tt=ut);return Jt&&eo(q,at),qe}for(ut=u(ut);!Aa.done;at++,Aa=W.next())zt=pe(ut,q,at,Aa.value,xe),zt!==null&&(kn=Ge(q,zt,Aa.value,kn),e&&zt.alternate!==null&&ut.delete(zt.key===null?at:zt.key),X=m(zt,X,at),Tt===null?qe=zt:Tt.sibling=zt,Tt=zt);return e&&ut.forEach(function(N7){return t(q,N7)}),Jt&&eo(q,at),qe}function Wt(q,X,W,xe){if(typeof W=="object"&&W!==null&&W.type===rf&&W.key===null&&(vl(W,null,q),W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case Lr:var qe=la(W._debugInfo);e:{for(var Tt=W.key;X!==null;){if(X.key===Tt){if(Tt=W.type,Tt===rf){if(X.tag===7){l(q,X.sibling),xe=h(X,W.props.children),xe.return=q,xe._debugOwner=W._owner,xe._debugInfo=Ht,vl(W,xe,q),q=xe;break e}}else if(X.elementType===Tt||Tg(X,W)||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===ul&&ar(Tt)===X.type){l(q,X.sibling),xe=h(X,W.props),Vl(xe,W),xe.return=q,xe._debugOwner=W._owner,xe._debugInfo=Ht,q=xe;break e}l(q,X);break}else t(q,X);X=X.sibling}W.type===rf?(xe=ic(W.props.children,q.mode,xe,W.key),xe.return=q,xe._debugOwner=q,xe._debugTask=q._debugTask,xe._debugInfo=Ht,vl(W,xe,q),q=xe):(xe=cu(W,q.mode,xe),Vl(xe,W),xe.return=q,xe._debugInfo=Ht,q=xe)}return q=S(q),Ht=qe,q;case Uu:e:{for(qe=W,W=qe.key;X!==null;){if(X.key===W)if(X.tag===4&&X.stateNode.containerInfo===qe.containerInfo&&X.stateNode.implementation===qe.implementation){l(q,X.sibling),xe=h(X,qe.children||[]),xe.return=q,q=xe;break e}else{l(q,X);break}else t(q,X);X=X.sibling}xe=fp(qe,q.mode,xe),xe.return=q,q=xe}return S(q);case ul:return qe=la(W._debugInfo),W=ar(W),q=Wt(q,X,W,xe),Ht=qe,q}if(pa(W))return qe=la(W._debugInfo),q=Ze(q,X,W,xe),Ht=qe,q;if(ae(W)){if(qe=la(W._debugInfo),Tt=ae(W),typeof Tt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ut=Tt.call(W);return ut===W?(q.tag!==0||Object.prototype.toString.call(q.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ut)!=="[object Generator]")&&(oM||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),oM=!0):W.entries!==Tt||LR||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),LR=!0),q=zn(q,X,ut,xe),Ht=qe,q}if(typeof W.then=="function")return qe=la(W._debugInfo),q=Wt(q,X,ao(W),xe),Ht=qe,q;if(W.$$typeof===go)return Wt(q,X,ud(q,W),xe);Mr(q,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(qe=""+W,X!==null&&X.tag===6?(l(q,X.sibling),xe=h(X,qe),xe.return=q,q=xe):(l(q,X),xe=Es(qe,q.mode,xe),xe.return=q,xe._debugOwner=q,xe._debugTask=q._debugTask,xe._debugInfo=Ht,q=xe),S(q)):(typeof W=="function"&&Rs(q,W),typeof W=="symbol"&&dd(q,W),l(q,X))}return function(q,X,W,xe){var qe=Ht;Ht=null;try{D0=0;var Tt=Wt(q,X,W,xe);return Jm=null,Tt}catch(kn){if(kn===Zm||kn===h1)throw kn;var ut=A(29,kn,null,q.mode);ut.lanes=xe,ut.return=q;var at=ut._debugInfo=Ht;if(ut._debugOwner=q._debugOwner,ut._debugTask=q._debugTask,at!=null){for(var zt=at.length-1;0<=zt;zt--)if(typeof at[zt].stack=="string"){ut._debugOwner=at[zt],ut._debugTask=at[zt].debugTask;break}}return ut}finally{Ht=qe}}}function On(e,t){var l=pa(e);return e=!l&&typeof ae(e)=="function",l||e?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,t,l),!1):!0}function Xt(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sa(e){return{lane:e,tag:fM,payload:null,callback:null,next:null}}function Ho(e,t,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,HR===u&&!pM){var h=me(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
194
|
+
|
|
195
|
+
Please update the following component: %s`,h),pM=!0}return(nn&el)!==dl?(h=u.pending,h===null?t.next=t:(t.next=h.next,h.next=t),u.pending=t,t=rd(e),Sg(e,null,l),t):(bs(e,u,t,l),rd(e))}function jr(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,l|=u,t.lanes=l,ru(e,l)}}function hd(e,t){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var h=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?h=m=S:m=m.next=S,l=l.next}while(l!==null);m===null?h=m=t:m=m.next=t}else h=m=t;l={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}function Os(){if($R){var e=Im;if(e!==null)throw e}}function $o(e,t,l,u){$R=!1;var h=e.updateQueue;Af=!1,HR=h.shared;var m=h.firstBaseUpdate,S=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var M=_,z=M.next;M.next=null,S===null?m=z:S.next=z,S=M;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,_=ee.lastBaseUpdate,_!==S&&(_===null?ee.firstBaseUpdate=z:_.next=z,ee.lastBaseUpdate=M))}if(m!==null){var ne=h.baseState;S=0,ee=z=M=null,_=m;do{var Q=_.lane&-536870913,pe=Q!==_.lane;if(pe?($t&Q)===Q:(u&Q)===Q){Q!==0&&Q===gh&&($R=!0),ee!==null&&(ee=ee.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{Q=e;var Ge=_,Ze=t,zn=l;switch(Ge.tag){case dM:if(Ge=Ge.payload,typeof Ge=="function"){Qm=!0;var Wt=Ge.call(zn,ne,Ze);if(Q.mode&Il){Je(!0);try{Ge.call(zn,ne,Ze)}finally{Je(!1)}}Qm=!1,ne=Wt;break e}ne=Ge;break e;case BR:Q.flags=Q.flags&-65537|128;case fM:if(Wt=Ge.payload,typeof Wt=="function"){if(Qm=!0,Ge=Wt.call(zn,ne,Ze),Q.mode&Il){Je(!0);try{Wt.call(zn,ne,Ze)}finally{Je(!1)}}Qm=!1}else Ge=Wt;if(Ge==null)break e;ne=Lt({},ne,Ge);break e;case hM:Af=!0}}Q=_.callback,Q!==null&&(e.flags|=64,pe&&(e.flags|=8192),pe=h.callbacks,pe===null?h.callbacks=[Q]:pe.push(Q))}else pe={lane:Q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ee===null?(z=ee=pe,M=ne):ee=ee.next=pe,S|=Q;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;pe=_,_=pe.next,pe.next=null,h.lastBaseUpdate=pe,h.shared.pending=null}}while(!0);ee===null&&(M=ne),h.baseState=M,h.firstBaseUpdate=z,h.lastBaseUpdate=ee,m===null&&(h.shared.lanes=0),wf|=S,e.lanes=S,e.memoizedState=ne}HR=null}function pu(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function zg(e,t){var l=e.shared.hiddenCallbacks;if(l!==null)for(e.shared.hiddenCallbacks=null,e=0;e<l.length;e++)pu(l[e],t)}function As(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)pu(l[e],t)}function Ep(e,t){var l=qu;ke(m1,l,e),ke(Fm,t,e),qu=l|t.baseLanes}function ji(e){ke(m1,qu,e),ke(Fm,Fm.current,e)}function ro(e){qu=m1.current,Re(Fm,e),Re(m1,e)}function bl(e){var t=e.alternate;ke(Oa,Oa.current&Km,e),ke(So,e,e),hi===null&&(t===null||Fm.current!==null||t.memoizedState!==null)&&(hi=e)}function oo(e){ke(Oa,Oa.current,e),ke(So,e,e),hi===null&&(hi=e)}function Sp(e){e.tag===22?(ke(Oa,Oa.current,e),ke(So,e,e),hi===null&&(hi=e)):Vo(e)}function Vo(e){ke(Oa,Oa.current,e),ke(So,So.current,e)}function Na(e){Re(So,e),hi===e&&(hi=null),Re(Oa,e)}function pc(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Jd(l)||Mv(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Et(){var e=ge;mi===null?mi=[e]:mi.push(e)}function Ce(){var e=ge;if(mi!==null&&(Pc++,mi[Pc]!==e)){var t=me(St);if(!mM.has(t)&&(mM.add(t),mi!==null)){for(var l="",u=0;u<=Pc;u++){var h=mi[u],m=u===Pc?e:h;for(h=u+1+". "+h;30>h.length;)h+=" ";h+=m+`
|
|
196
|
+
`,l+=h}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
197
|
+
|
|
198
|
+
Previous render Next render
|
|
199
|
+
------------------------------------------------------
|
|
200
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
201
|
+
`,t,l)}}}function Ni(e){e==null||pa(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ge,typeof e)}function pd(){var e=me(St);gM.has(e)||(gM.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Fn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
202
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
203
|
+
2. You might be breaking the Rules of Hooks
|
|
204
|
+
3. You might have more than one copy of React in the same app
|
|
205
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ug(e,t){if(j0)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ge),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
206
|
+
|
|
207
|
+
Previous: %s
|
|
208
|
+
Incoming: %s`,ge,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var l=0;l<t.length&&l<e.length;l++)if(!yr(e[l],t[l]))return!1;return!0}function Lg(e,t,l,u,h,m){Fc=m,St=t,mi=e!==null?e._debugHookTypes:null,Pc=-1,j0=e!==null&&e.type!==t.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(m=me(St),VR.has(m)||(VR.add(m),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",m===null?"An unknown Component":"<"+m+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,ve.H=e!==null&&e.memoizedState!==null?GR:mi!==null?vM:kR,Th=m=(t.mode&Il)!==gt;var S=NR(l,u,h);if(Th=!1,Wm&&(S=md(t,l,u,h)),m){Je(!0);try{S=md(t,l,u,h)}finally{Je(!1)}}return ra(e,t),S}function ra(e,t){t._debugHookTypes=mi,t.dependencies===null?Kc!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Kc}):t.dependencies._debugThenableState=Kc,ve.H=N0;var l=Dn!==null&&Dn.next!==null;if(Fc=0,mi=ge=Va=Dn=St=null,Pc=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),g1=!1,M0=0,Kc=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ka||(e=e.dependencies,e!==null&&Ts(e)&&(ka=!0)),C0?(C0=!1,e=!0):e=!1,e&&(t=me(t)||"Unknown",yM.has(t)||VR.has(t)||(yM.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function md(e,t,l,u){St=e;var h=0;do{if(Wm&&(Kc=null),M0=0,Wm=!1,h>=f7)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h+=1,j0=!1,Va=Dn=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}Pc=-1,ve.H=bM,m=NR(t,l,u)}while(Wm);return m}function yd(){var e=ve.H,t=e.useState()[0];return t=typeof t.then=="function"?bd(t):t,e=e.useState()[0],(Dn!==null?Dn.memoizedState:null)!==e&&(St.flags|=1024),t}function mc(){var e=v1!==0;return v1=0,e}function gd(e,t,l){t.updateQueue=e.updateQueue,t.flags=(t.mode&Zi)!==gt?t.flags&-402655237:t.flags&-2053,e.lanes&=~l}function mu(e){if(g1){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}g1=!1}Fc=0,mi=Va=Dn=St=null,Pc=-1,ge=null,Wm=!1,M0=v1=0,Kc=null}function da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Va===null?St.memoizedState=Va=e:Va=Va.next=e,Va}function fn(){if(Dn===null){var e=St.alternate;e=e!==null?e.memoizedState:null}else e=Dn.next;var t=Va===null?St.memoizedState:Va.next;if(t!==null)Va=t,Dn=e;else{if(e===null)throw St.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Dn=e,e={memoizedState:Dn.memoizedState,baseState:Dn.baseState,baseQueue:Dn.baseQueue,queue:Dn.queue,next:null},Va===null?St.memoizedState=Va=e:Va=Va.next=e}return Va}function vd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bd(e){var t=M0;return M0+=1,Kc===null&&(Kc=vp()),e=nr(Kc,e,t),t=St,(Va===null?t.memoizedState:Va.next)===null&&(t=t.alternate,ve.H=t!==null&&t.memoizedState!==null?GR:kR),e}function zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bd(e);if(e.$$typeof===go)return on(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function lr(e){var t=null,l=St.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var u=St.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(h){return h.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=vd(),St.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0||j0)for(l=t.data[t.index]=Array(e),u=0;u<e;u++)l[u]=oR;else l.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,e);return t.index++,l}function rr(e,t){return typeof t=="function"?t(e):t}function Cs(e,t,l){var u=da();if(l!==void 0){var h=l(t);if(Th){Je(!0);try{l(t)}finally{Je(!1)}}}else h=t;return u.memoizedState=u.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},u.queue=e,e=e.dispatch=tR.bind(null,St,e),[u.memoizedState,e]}function yc(e){var t=fn();return yu(t,Dn,e)}function yu(e,t,l){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=l;var h=e.baseQueue,m=u.pending;if(m!==null){if(h!==null){var S=h.next;h.next=m.next,m.next=S}t.baseQueue!==h&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=h=m,u.pending=null}if(m=e.baseState,h===null)e.memoizedState=m;else{t=h.next;var _=S=null,M=null,z=t,ee=!1;do{var ne=z.lane&-536870913;if(ne!==z.lane?($t&ne)===ne:(Fc&ne)===ne){var Q=z.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),ne===gh&&(ee=!0);else if((Fc&Q)===Q){z=z.next,Q===gh&&(ee=!0);continue}else ne={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},M===null?(_=M=ne,S=m):M=M.next=ne,St.lanes|=Q,wf|=Q;ne=z.action,Th&&l(m,ne),m=z.hasEagerState?z.eagerState:l(m,ne)}else Q={lane:ne,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},M===null?(_=M=Q,S=m):M=M.next=Q,St.lanes|=ne,wf|=ne;z=z.next}while(z!==null&&z!==t);if(M===null?S=m:M.next=_,!yr(m,e.memoizedState)&&(ka=!0,ee&&(l=Im,l!==null)))throw l;e.memoizedState=m,e.baseState=S,e.baseQueue=M,u.lastRenderedState=m}return h===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function gc(e){var t=fn(),l=t.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=e;var u=l.dispatch,h=l.pending,m=t.memoizedState;if(h!==null){l.pending=null;var S=h=h.next;do m=e(m,S.action),S=S.next;while(S!==h);yr(m,t.memoizedState)||(ka=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),l.lastRenderedState=m}return[m,u]}function Ds(e,t,l){var u=St,h=da();if(Jt){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var m=l();Pm||m===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Pm=!0)}else{if(m=t(),Pm||(l=t(),yr(m,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Pm=!0)),wn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");($t&127)!==0||Bg(u,t,m)}return h.memoizedState=m,l={value:m,getSnapshot:t},h.queue=l,Ec(gu.bind(null,u,l,e),[e]),u.flags|=2048,ko(pi|br,{destroy:void 0},Hg.bind(null,u,l,m,t),null),m}function vc(e,t,l){var u=St,h=fn(),m=Jt;if(m){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=t(),!Pm){var S=t();yr(l,S)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Pm=!0)}(S=!yr((Dn||h).memoizedState,l))&&(h.memoizedState=l,ka=!0),h=h.queue;var _=gu.bind(null,u,h,e);if(Ta(2048,br,_,[e]),h.getSnapshot!==t||S||Va!==null&&Va.memoizedState.tag&pi){if(u.flags|=2048,ko(pi|br,{destroy:void 0},Hg.bind(null,u,h,l,t),null),wn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m||(Fc&127)!==0||Bg(u,t,l)}return l}function Bg(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=St.updateQueue,t===null?(t=vd(),St.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Hg(e,t,l,u){t.value=l,t.getSnapshot=u,vu(t)&&$g(e)}function gu(e,t,l){return l(function(){vu(t)&&(Uo(2,"updateSyncExternalStore()",e),$g(e))})}function vu(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!yr(e,l)}catch{return!0}}function $g(e){var t=rl(e,2);t!==null&&vt(t,e,2)}function Tp(e){var t=da();if(typeof e=="function"){var l=e;if(e=l(),Th){Je(!0);try{l()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:e},t}function bu(e){e=Tp(e);var t=e.queue,l=Cp.bind(null,St,t);return t.dispatch=l,[e.memoizedState,l]}function bc(e){var t=da();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Od.bind(null,St,!0,l),l.dispatch=t,[e,t]}function Ed(e,t){var l=fn();return ws(l,Dn,e,t)}function ws(e,t,l,u){return e.baseState=l,yu(e,Dn,typeof u=="function"?u:rr)}function Sd(e,t){var l=fn();return Dn!==null?ws(l,Dn,e,t):(l.baseState=e,[e,l.queue.dispatch])}function XE(e,t,l,u,h){if(za(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var m={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};ve.T!==null?l(!0):m.isTransition=!1,u(m),l=t.pending,l===null?(m.next=t.pending=m,Eu(t,m)):(m.next=l.next,t.pending=l.next=m)}}function Eu(e,t){var l=t.action,u=t.payload,h=e.state;if(t.isTransition){var m=ve.T,S={};S._updatedFibers=new Set,ve.T=S;try{var _=l(h,u),M=ve.S;M!==null&&M(S,_),Vg(e,t,_)}catch(z){Td(e,t,z)}finally{m!==null&&S.types!==null&&(m.types!==null&&m.types!==S.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),m.types=S.types),ve.T=m,m===null&&S._updatedFibers&&(e=S._updatedFibers.size,S._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{S=l(h,u),Vg(e,t,S)}catch(z){Td(e,t,z)}}function Vg(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(ve.asyncTransitions++,l.then(Sc,Sc),l.then(function(u){Ui(e,t,u)},function(u){return Td(e,t,u)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ui(e,t,l)}function Ui(e,t,l){t.status="fulfilled",t.value=l,xp(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Eu(e,l)))}function Td(e,t,l){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=l,xp(t),t=t.next;while(t!==u)}e.action=null}function xp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Li(e,t){return t}function or(e,t){if(Jt){var l=wn.formState;if(l!==null){e:{var u=St;if(Jt){if(Vn){t:{for(var h=Vn,m=fi;h.nodeType!==8;){if(!m){h=null;break t}if(h=dr(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m===fO||m===lj?h:null}if(h){Vn=dr(h.nextSibling),u=h.data===fO;break e}}Ar(u)}u=!1}u&&(t=l[0])}}return l=da(),l.memoizedState=l.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Li,lastRenderedState:t},l.queue=u,l=Cp.bind(null,St,u),u.dispatch=l,u=Tp(!1),m=Od.bind(null,St,!1,u.queue),u=da(),h={state:t,dispatch:null,action:e,pending:null},u.queue=h,l=XE.bind(null,St,h,m,l),h.dispatch=l,u.memoizedState=e,[t,l,!1]}function Su(e){var t=fn();return _p(t,Dn,e)}function _p(e,t,l){if(t=yu(e,t,Li)[0],e=yc(rr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=bd(t)}catch(S){throw S===Zm?h1:S}else u=t;t=fn();var h=t.queue,m=h.dispatch;return l!==t.memoizedState&&(St.flags|=2048,ko(pi|br,{destroy:void 0},kg.bind(null,h,l),null)),[u,m,e]}function kg(e,t){e.action=t}function Tu(e){var t=fn(),l=Dn;if(l!==null)return _p(t,l,e);fn(),t=t.memoizedState,l=fn();var u=l.queue.dispatch;return l.memoizedState=e,[t,u,!1]}function ko(e,t,l,u){return e={tag:e,create:l,deps:u,inst:t,next:null},t=St.updateQueue,t===null&&(t=vd(),St.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,t.lastEffect=e),e}function Rp(e){var t=da();return e={current:e},t.memoizedState=e}function xu(e,t,l,u){var h=da();St.flags|=e,h.memoizedState=ko(pi|t,{destroy:void 0},l,u===void 0?null:u)}function Ta(e,t,l,u){var h=fn();u=u===void 0?null:u;var m=h.memoizedState.inst;Dn!==null&&u!==null&&Ug(u,Dn.memoizedState.deps)?h.memoizedState=ko(t,m,l,u):(St.flags|=e,h.memoizedState=ko(pi|t,m,l,u))}function Ec(e,t){(St.mode&Zi)!==gt?xu(276826112,br,e,t):xu(8390656,br,e,t)}function IE(e){St.flags|=4;var t=St.updateQueue;if(t===null)t=vd(),St.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function xd(e){var t=da(),l={impl:e};return t.memoizedState=l,function(){if((nn&el)!==dl)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function Ms(e){var t=fn().memoizedState;return IE({ref:t,nextImpl:e}),function(){if((nn&el)!==dl)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function El(e,t){var l=4194308;return(St.mode&Zi)!==gt&&(l|=134217728),xu(l,To,e,t)}function ir(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Go(e,t,l){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),l=l!=null?l.concat([e]):null;var u=4194308;(St.mode&Zi)!==gt&&(u|=134217728),xu(u,To,ir.bind(null,t,e),l)}function js(e,t,l){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),l=l!=null?l.concat([e]):null,Ta(4,To,ir.bind(null,t,e),l)}function Op(e,t){return da().memoizedState=[e,t===void 0?null:t],e}function io(e,t){var l=fn();t=t===void 0?null:t;var u=l.memoizedState;return t!==null&&Ug(t,u[1])?u[0]:(l.memoizedState=[e,t],e)}function Sl(e,t){var l=da();t=t===void 0?null:t;var u=e();if(Th){Je(!0);try{e()}finally{Je(!1)}}return l.memoizedState=[u,t],u}function Ln(e,t){var l=fn();t=t===void 0?null:t;var u=l.memoizedState;if(t!==null&&Ug(t,u[1]))return u[0];if(u=e(),Th){Je(!0);try{e()}finally{Je(!1)}}return l.memoizedState=[u,t],u}function Ns(e,t){var l=da();return dn(l,e,t)}function qo(e,t){var l=fn();return oa(l,Dn.memoizedState,e,t)}function Ot(e,t){var l=fn();return Dn===null?dn(l,e,t):oa(l,Dn.memoizedState,e,t)}function dn(e,t,l){return l===void 0||(Fc&1073741824)!==0&&($t&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=ks(),St.lanes|=e,wf|=e,l)}function oa(e,t,l,u){return yr(l,t)?l:Fm.current!==null?(e=dn(e,l,u),yr(e,t)||(ka=!0),e):(Fc&42)===0||(Fc&1073741824)!==0&&($t&261930)===0?(ka=!0,e.memoizedState=l):(e=ks(),St.lanes|=e,wf|=e,t)}function Sc(){ve.asyncTransitions--}function Tc(e,t,l,u,h){var m=cn.p;cn.p=m!==0&&m<Pa?m:Pa;var S=ve.T,_={};_._updatedFibers=new Set,ve.T=_,Od(e,!1,t,l);try{var M=h(),z=ve.S;if(z!==null&&z(_,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){ve.asyncTransitions++,M.then(Sc,Sc);var ee=gp(M,u);xc(e,t,ee,il(e))}else xc(e,t,u,il(e))}catch(ne){xc(e,t,{then:function(){},status:"rejected",reason:ne},il(e))}finally{cn.p=m,S!==null&&_.types!==null&&(S.types!==null&&S.types!==_.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),S.types=_.types),ve.T=S,S===null&&_._updatedFibers&&(e=_._updatedFibers.size,_._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Bi(e,t,l,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var h=_d(e).queue;YE(e),Tc(e,h,t,Nh,l===null?E:function(){return zs(e),l(u)})}function _d(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Nh,baseState:Nh,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:Nh},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zs(e){ve.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=_d(e);t.next===null&&(t=e.alternate.memoizedState),xc(e,t.next.queue,{},il(e))}function _u(){var e=Tp(!1);return e=Tc.bind(null,St,e.queue,!0,!1),da().memoizedState=e,[!1,e]}function ZE(){var e=yc(rr)[0],t=fn().memoizedState;return[typeof e=="boolean"?e:bd(e),t]}function Qn(){var e=gc(rr)[0],t=fn().memoizedState;return[typeof e=="boolean"?e:bd(e),t]}function Hi(){return on(Z0)}function Rd(){var e=da(),t=wn.identifierPrefix;if(Jt){var l=Qc,u=Yc;l=(u&~(1<<32-Ka(u)-1)).toString(32)+l,t="_"+t+"R_"+l,l=v1++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=s7++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t}function Ap(){return da().memoizedState=JE.bind(null,St)}function JE(e,t){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var u=il(l),h=Sa(u),m=Ho(l,h,u);m!==null&&(Uo(u,"refresh()",e),vt(m,l,u),jr(m,l,u)),e=mp(),t!=null&&m!==null&&console.error("The seed argument is not enabled outside experimental channels."),h.payload={cache:e};return}l=l.return}}function tR(e,t,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=il(e);var h={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};za(e)?Kn(t,h):(h=lc(e,t,h,u),h!==null&&(Uo(u,"dispatch()",e),vt(h,e,u),Ad(h,t,u)))}function Cp(e,t,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=il(e),xc(e,t,l,u)&&Uo(u,"setState()",e)}function xc(e,t,l,u){var h={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(za(e))Kn(t,h);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null)){var S=ve.H;ve.H=Fi;try{var _=t.lastRenderedState,M=m(_,l);if(h.hasEagerState=!0,h.eagerState=M,yr(M,_))return bs(e,t,h,0),wn===null&&cp(),!1}catch{}finally{ve.H=S}}if(l=lc(e,t,h,u),l!==null)return vt(l,e,u),Ad(l,t,u),!0}return!1}function Od(e,t,l,u){if(ve.T===null&&gh===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:Cv(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},za(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=lc(e,l,u,2),t!==null&&(Uo(2,"setOptimistic()",e),vt(t,e,2))}function za(e){var t=e.alternate;return e===St||t!==null&&t===St}function Kn(e,t){Wm=g1=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ad(e,t,l){if((l&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,l|=u,t.lanes=l,ru(e,l)}}function _c(e){if(e!==null&&typeof e!="function"){var t=String(e);wM.has(t)||(wM.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Us(e,t,l,u){var h=e.memoizedState,m=l(u,h);if(e.mode&Il){Je(!0);try{m=l(u,h)}finally{Je(!1)}}m===void 0&&(t=$(t)||"Component",OM.has(t)||(OM.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),h=m==null?h:Lt({},h,m),e.memoizedState=h,e.lanes===0&&(e.updateQueue.baseState=h)}function Dp(e,t,l,u,h,m,S){var _=e.stateNode;if(typeof _.shouldComponentUpdate=="function"){if(l=_.shouldComponentUpdate(u,m,S),e.mode&Il){Je(!0);try{l=_.shouldComponentUpdate(u,m,S)}finally{Je(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",$(t)||"Component"),l}return t.prototype&&t.prototype.isPureReactComponent?!vs(l,u)||!vs(h,m):!0}function Yo(e,t,l,u){var h=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,u),t.state!==h&&(e=me(e)||"Component",SM.has(e)||(SM.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),qR.enqueueReplaceState(t,t.state,null))}function Qo(e,t){var l=t;if("ref"in t){l={};for(var u in t)u!=="ref"&&(l[u]=t[u])}if(e=e.defaultProps){l===t&&(l=Lt({},l));for(var h in e)l[h]===void 0&&(l[h]=e[h])}return l}function wp(e){ER(e),console.warn(`%s
|
|
209
|
+
|
|
210
|
+
%s
|
|
211
|
+
`,ey?"An error occurred in the <"+ey+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
212
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Mp(e){var t=ey?"The above error occurred in the <"+ey+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((YR||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var u=e.environmentName;e=[`%o
|
|
213
|
+
|
|
214
|
+
%s
|
|
215
|
+
|
|
216
|
+
%s
|
|
217
|
+
`,e,t,l].slice(0),typeof e[0]=="string"?e.splice(0,1,dj+" "+e[0],hj,q1+u+q1,pj):e.splice(0,0,dj,hj,q1+u+q1,pj),e.unshift(console),u=M7.apply(console.error,e),u()}else console.error(`%o
|
|
218
|
+
|
|
219
|
+
%s
|
|
220
|
+
|
|
221
|
+
%s
|
|
222
|
+
`,e,t,l)}function Gg(e){ER(e)}function Cd(e,t){try{ey=t.source?me(t.source):null,YR=null;var l=t.value;if(ve.actQueue!==null)ve.thrownErrors.push(l);else{var u=e.onUncaughtError;u(l,{componentStack:t.stack})}}catch(h){setTimeout(function(){throw h})}}function qg(e,t,l){try{ey=l.source?me(l.source):null,YR=me(t);var u=e.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function jp(e,t,l){return l=Sa(l),l.tag=BR,l.payload={element:null},l.callback=function(){Le(t.source,Cd,e,t)},l}function Np(e){return e=Sa(e),e.tag=BR,e}function zp(e,t,l,u){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var m=u.value;e.payload=function(){return h(m)},e.callback=function(){rc(l),Le(u.source,qg,t,l,u)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){rc(l),Le(u.source,qg,t,l,u),typeof h!="function"&&(jf===null?jf=new Set([this]):jf.add(this)),o7(this,u),typeof h=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",me(l)||"Unknown")})}function Yg(e,t,l,u,h){if(l.flags|=32768,li&&Xs(e,h),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=l.alternate,t!==null&&no(t,l,h,!0),Jt&&(Vu=!0),l=So.current,l!==null){switch(l.tag){case 31:case 13:return hi===null?qs():l.alternate===null&&Wn===es&&(Wn=S1),l.flags&=-257,l.flags|=65536,l.lanes=h,u===p1?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([u]):t.add(u),em(e,u,h)),!1;case 22:return l.flags|=65536,u===p1?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([u]):l.add(u)),em(e,u,h)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return em(e,u,h),qs(),!1}if(Jt)return Vu=!0,t=So.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=h,u!==OR&&id(ml(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),l))):(u!==OR&&id(ml(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),l)),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,u=ml(u,l),h=jp(e.stateNode,u,h),hd(e,h),Wn!==Cf&&(Wn=xh)),!1;var m=ml(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),l);if($0===null?$0=[m]:$0.push(m),Wn!==Cf&&(Wn=xh),t===null)return!0;u=ml(u,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=h&-h,l.lanes|=e,e=jp(l.stateNode,u,e),hd(l,e),!1;case 1:if(t=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(jf===null||!jf.has(m))))return l.flags|=65536,h&=-h,l.lanes|=h,h=Np(h),zp(h,e,l,u),hd(l,h),!1}l=l.return}while(l!==null);return!1}function Ua(e,t,l,u){t.child=e===null?sM(t,null,l,u):Sh(t,e.child,l,u)}function FE(e,t,l,u,h){l=l.render;var m=t.ref;if("ref"in u){var S={};for(var _ in u)_!=="ref"&&(S[_]=u[_])}else S=u;return hu(t),u=Lg(e,t,l,S,m,h),_=mc(),e!==null&&!ka?(gd(e,t,h),uo(e,t,h)):(Jt&&_&&dp(t),t.flags|=1,Ua(e,t,u,h),t.child)}function Qg(e,t,l,u,h){if(e===null){var m=l.type;return typeof m=="function"&&!xg(m)&&m.defaultProps===void 0&&l.compare===null?(l=uu(m),t.tag=15,t.type=l,Ls(t,m),Xg(e,t,l,u,h)):(e=oc(l.type,null,u,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}if(m=e.child,!$p(e,h)){var S=m.memoizedProps;if(l=l.compare,l=l!==null?l:vs,l(S,u)&&e.ref===t.ref)return uo(e,t,h)}return t.flags|=1,e=zo(m,u),e.ref=t.ref,e.return=t,t.child=e}function Xg(e,t,l,u,h){if(e!==null){var m=e.memoizedProps;if(vs(m,u)&&e.ref===t.ref&&t.type===e.type)if(ka=!1,t.pendingProps=u=m,$p(e,h))(e.flags&131072)!==0&&(ka=!0);else return t.lanes=e.lanes,uo(e,t,h)}return Fg(e,t,l,u,h)}function Ig(e,t,l,u){var h=u.children,m=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:p0,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((t.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,e!==null){for(u=t.child=e.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;u=h&~m}else u=0,t.child=null;return Zg(e,t,m,l,u)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_s(t,m!==null?m.cachePool:null),m!==null?Ep(t,m):ji(t),Sp(t);else return u=t.lanes=536870912,Zg(e,t,m!==null?m.baseLanes|l:l,l,u)}else m!==null?(_s(t,m.cachePool),Ep(t,m),Vo(t),t.memoizedState=null):(e!==null&&_s(t,null),ji(t),Vo(t));return Ua(e,t,h,l),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:p0,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zg(e,t,l,u,h){var m=Mi();return m=m===null?null:{parent:Ha._currentValue,pool:m},t.memoizedState={baseLanes:l,cachePool:m},e!==null&&_s(t,null),ji(t),Sp(t),e!==null&&no(e,t,u,!0),t.childLanes=h,null}function Dd(e,t){var l=t.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
223
|
+
- <Activity %s>
|
|
224
|
+
+ <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),t=Md({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jg(e,t,l){return Sh(t,e.child,null,l),e=Dd(t,t.pendingProps),e.flags|=2,Na(t),t.memoizedState=null,e}function KE(e,t,l){var u=t.pendingProps,h=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Jt){if(u.mode==="hidden")return e=Dd(t,u),t.lanes=536870912,Rc(null,e);if(oo(t),(e=Vn)?(l=pn(e,fi),l=l!==null&&l.data===Dh?l:null,l!==null&&(u={dehydrated:l,treeContext:kE(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=Rg(l),u.return=t,t.child=u,wl=t,Vn=null)):l=null,l===null)throw ol(t,e),Ar(t);return t.lanes=536870912,null}return Dd(t,u)}var m=e.memoizedState;if(m!==null){var S=m.dehydrated;if(oo(t),h)if(t.flags&256)t.flags&=-257,t=Jg(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(qE(),(l&536870912)!==0&&Gs(t),ka||no(e,t,l,!1),h=(l&e.childLanes)!==0,ka||h){if(u=wn,u!==null&&(S=_i(u,l),S!==0&&S!==m.retryLane))throw m.retryLane=S,rl(e,S),vt(u,e,S),QR;qs(),t=Jg(e,t,l)}else e=m.treeContext,Vn=dr(S.nextSibling),wl=t,Jt=!0,Tf=null,Vu=!1,Eo=null,fi=!1,e!==null&&GE(t,e),t=Dd(t,u),t.flags|=4096;return t}return m=e.child,u={mode:u.mode,children:u.children},(l&536870912)!==0&&(l&e.lanes)!==0&&Gs(t),e=zo(m,u),e.ref=t.ref,t.child=e,e.return=t,e}function wd(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Fg(e,t,l,u,h){if(l.prototype&&typeof l.prototype.render=="function"){var m=$(l)||"Unknown";MM[m]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",m,m),MM[m]=!0)}return t.mode&Il&&Ji.recordLegacyContextWarning(t,null),e===null&&(Ls(t,t.type),l.contextTypes&&(m=$(l)||"Unknown",NM[m]||(NM[m]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",m)))),hu(t),l=Lg(e,t,l,u,void 0,h),u=mc(),e!==null&&!ka?(gd(e,t,h),uo(e,t,h)):(Jt&&u&&dp(t),t.flags|=1,Ua(e,t,l,h),t.child)}function Kg(e,t,l,u,h,m){return hu(t),Pc=-1,j0=e!==null&&e.type!==t.type,t.updateQueue=null,l=md(t,u,l,h),ra(e,t),u=mc(),e!==null&&!ka?(gd(e,t,m),uo(e,t,m)):(Jt&&u&&dp(t),t.flags|=1,Ua(e,t,l,m),t.child)}function Oc(e,t,l,u,h){switch(y(t)){case!1:var m=t.stateNode,S=new t.type(t.memoizedProps,m.context).state;m.updater.enqueueSetState(m,S,null);break;case!0:t.flags|=128,t.flags|=65536,m=Error("Simulated error coming from DevTools");var _=h&-h;if(t.lanes|=_,S=wn,S===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");_=Np(_),zp(_,S,t,ml(m,t)),hd(t,_)}if(hu(t),t.stateNode===null){if(S=Sf,m=l.contextType,"contextType"in l&&m!==null&&(m===void 0||m.$$typeof!==go)&&!DM.has(l)&&(DM.add(l),_=m===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof m!="object"?" However, it is set to a "+typeof m+".":m.$$typeof===Tm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(m).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",$(l)||"Component",_)),typeof m=="object"&&m!==null&&(S=on(m)),m=new l(u,S),t.mode&Il){Je(!0);try{m=new l(u,S)}finally{Je(!1)}}if(S=t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=qR,t.stateNode=m,m._reactInternals=t,m._reactInternalInstance=EM,typeof l.getDerivedStateFromProps=="function"&&S===null&&(S=$(l)||"Component",TM.has(S)||(TM.add(S),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",S,m.state===null?"null":"undefined",S))),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"){var M=_=S=null;if(typeof m.componentWillMount=="function"&&m.componentWillMount.__suppressDeprecationWarning!==!0?S="componentWillMount":typeof m.UNSAFE_componentWillMount=="function"&&(S="UNSAFE_componentWillMount"),typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof m.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof m.componentWillUpdate=="function"&&m.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof m.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),S!==null||_!==null||M!==null){m=$(l)||"Component";var z=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";_M.has(m)||(_M.add(m),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
225
|
+
|
|
226
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
227
|
+
|
|
228
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
229
|
+
https://react.dev/link/unsafe-component-lifecycles`,m,z,S!==null?`
|
|
230
|
+
`+S:"",_!==null?`
|
|
231
|
+
`+_:"",M!==null?`
|
|
232
|
+
`+M:""))}}m=t.stateNode,S=$(l)||"Component",m.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",S):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",S)),!m.getInitialState||m.getInitialState.isReactClassApproved||m.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",S),m.getDefaultProps&&!m.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",S),m.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",S),l.childContextTypes&&!CM.has(l)&&(CM.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",S)),l.contextTypes&&!AM.has(l)&&(AM.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",S)),typeof m.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",S),l.prototype&&l.prototype.isPureReactComponent&&typeof m.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",$(l)||"A pure component"),typeof m.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",S),typeof m.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",S),typeof m.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",S),typeof m.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",S),_=m.props!==u,m.props!==void 0&&_&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",S),m.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",S,S),typeof m.getSnapshotBeforeUpdate!="function"||typeof m.componentDidUpdate=="function"||xM.has(l)||(xM.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",$(l))),typeof m.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",S),typeof m.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",S),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",S),(_=m.state)&&(typeof _!="object"||pa(_))&&console.error("%s.state: must be set to an object or null",S),typeof m.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",S),m=t.stateNode,m.props=u,m.state=t.memoizedState,m.refs={},Xt(t),S=l.contextType,m.context=typeof S=="object"&&S!==null?on(S):Sf,m.state===u&&(S=$(l)||"Component",RM.has(S)||(RM.add(S),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",S))),t.mode&Il&&Ji.recordLegacyContextWarning(t,m),Ji.recordUnsafeLifecycleWarnings(t,m),m.state=t.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Us(t,l,S,u),m.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",me(t)||"Component"),qR.enqueueReplaceState(m,m.state,null)),$o(t,u,m,h),Os(),m.state=t.memoizedState),typeof m.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Zi)!==gt&&(t.flags|=134217728),m=!0}else if(e===null){m=t.stateNode;var ee=t.memoizedProps;_=Qo(l,ee),m.props=_;var ne=m.context;M=l.contextType,S=Sf,typeof M=="object"&&M!==null&&(S=on(M)),z=l.getDerivedStateFromProps,M=typeof z=="function"||typeof m.getSnapshotBeforeUpdate=="function",ee=t.pendingProps!==ee,M||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(ee||ne!==S)&&Yo(t,m,u,S),Af=!1;var Q=t.memoizedState;m.state=Q,$o(t,u,m,h),Os(),ne=t.memoizedState,ee||Q!==ne||Af?(typeof z=="function"&&(Us(t,l,z,u),ne=t.memoizedState),(_=Af||Dp(t,l,_,u,Q,ne,S))?(M||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Zi)!==gt&&(t.flags|=134217728)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Zi)!==gt&&(t.flags|=134217728),t.memoizedProps=u,t.memoizedState=ne),m.props=u,m.state=ne,m.context=S,m=_):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Zi)!==gt&&(t.flags|=134217728),m=!1)}else{m=t.stateNode,Bo(e,t),S=t.memoizedProps,M=Qo(l,S),m.props=M,z=t.pendingProps,Q=m.context,ne=l.contextType,_=Sf,typeof ne=="object"&&ne!==null&&(_=on(ne)),ee=l.getDerivedStateFromProps,(ne=typeof ee=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==z||Q!==_)&&Yo(t,m,u,_),Af=!1,Q=t.memoizedState,m.state=Q,$o(t,u,m,h),Os();var pe=t.memoizedState;S!==z||Q!==pe||Af||e!==null&&e.dependencies!==null&&Ts(e.dependencies)?(typeof ee=="function"&&(Us(t,l,ee,u),pe=t.memoizedState),(M=Af||Dp(t,l,M,u,Q,pe,_)||e!==null&&e.dependencies!==null&&Ts(e.dependencies))?(ne||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,pe,_),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,pe,_)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=pe),m.props=u,m.state=pe,m.context=_,m=M):(typeof m.componentDidUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),m=!1)}if(_=m,wd(e,t),S=(t.flags&128)!==0,_||S){if(_=t.stateNode,$e(t),S&&typeof l.getDerivedStateFromError!="function")l=null,gr=-1;else if(l=Fw(_),t.mode&Il){Je(!0);try{Fw(_)}finally{Je(!1)}}t.flags|=1,e!==null&&S?(t.child=Sh(t,e.child,null,h),t.child=Sh(t,null,l,h)):Ua(e,t,l,h),t.memoizedState=_.state,e=t.child}else e=uo(e,t,h);return h=t.stateNode,m&&h.props!==u&&(ty||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",me(t)||"a component"),ty=!0),e}function Pg(e,t,l,u){return fu(),t.flags|=256,Ua(e,t,l,u),t.child}function Ls(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
233
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=$(t)||"Unknown",zM[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),zM[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=$(t)||"Unknown",jM[t]||(console.error("%s: Function components do not support contextType.",t),jM[t]=!0))}function Bs(e){return{baseLanes:e,cachePool:Mg()}}function Up(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vr),e}function Lp(e,t,l){var u,h=t.pendingProps;p(t)&&(t.flags|=128);var m=!1,S=(t.flags&128)!==0;if((u=S)||(u=e!==null&&e.memoizedState===null?!1:(Oa.current&w0)!==0),u&&(m=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(Jt){if(m?bl(t):Vo(t),(e=Vn)?(l=pn(e,fi),l=l!==null&&l.data!==Dh?l:null,l!==null&&(u={dehydrated:l,treeContext:kE(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=Rg(l),u.return=t,t.child=u,wl=t,Vn=null)):l=null,l===null)throw ol(t,e),Ar(t);return Mv(l)?t.lanes=32:t.lanes=536870912,null}var _=h.children;if(h=h.fallback,m){Vo(t);var M=t.mode;return _=Md({mode:"hidden",children:_},M),h=ic(h,M,l,null),_.return=t,h.return=t,_.sibling=h,t.child=_,h=t.child,h.memoizedState=Bs(l),h.childLanes=Up(e,u,l),t.memoizedState=XR,Rc(null,h)}return bl(t),Wg(t,_)}var z=e.memoizedState;if(z!==null){var ee=z.dehydrated;if(ee!==null){if(S)t.flags&256?(bl(t),t.flags&=-257,t=Bp(e,t,l)):t.memoizedState!==null?(Vo(t),t.child=e.child,t.flags|=128,t=null):(Vo(t),_=h.fallback,M=t.mode,h=Md({mode:"visible",children:h.children},M),_=ic(_,M,l,null),_.flags|=2,h.return=t,_.return=t,h.sibling=_,t.child=h,Sh(t,e.child,null,l),h=t.child,h.memoizedState=Bs(l),h.childLanes=Up(e,u,l),t.memoizedState=XR,t=Rc(null,h));else if(bl(t),qE(),(l&536870912)!==0&&Gs(t),Mv(ee)){if(u=ee.nextSibling&&ee.nextSibling.dataset,u){_=u.dgst;var ne=u.msg;M=u.stck;var Q=u.cstck}m=ne,u=_,h=M,ee=Q,_=m,M=ee,_=Error(_||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),_.stack=h||"",_.digest=u,u=M===void 0?null:M,h={value:_,source:null,stack:u},typeof u=="string"&&RR.set(_,h),id(h),t=Bp(e,t,l)}else if(ka||no(e,t,l,!1),u=(l&e.childLanes)!==0,ka||u){if(u=wn,u!==null&&(h=_i(u,l),h!==0&&h!==z.retryLane))throw z.retryLane=h,rl(e,h),vt(u,e,h),QR;Jd(ee)||qs(),t=Bp(e,t,l)}else Jd(ee)?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,Vn=dr(ee.nextSibling),wl=t,Jt=!0,Tf=null,Vu=!1,Eo=null,fi=!1,e!==null&&GE(t,e),t=Wg(t,h.children),t.flags|=4096);return t}}return m?(Vo(t),_=h.fallback,M=t.mode,Q=e.child,ee=Q.sibling,h=zo(Q,{mode:"hidden",children:h.children}),h.subtreeFlags=Q.subtreeFlags&65011712,ee!==null?_=zo(ee,_):(_=ic(_,M,l,null),_.flags|=2),_.return=t,h.return=t,h.sibling=_,t.child=h,Rc(null,h),h=t.child,_=e.child.memoizedState,_===null?_=Bs(l):(M=_.cachePool,M!==null?(Q=Ha._currentValue,M=M.parent!==Q?{parent:Q,pool:Q}:M):M=Mg(),_={baseLanes:_.baseLanes|l,cachePool:M}),h.memoizedState=_,h.childLanes=Up(e,u,l),t.memoizedState=XR,Rc(e.child,h)):(z!==null&&(l&62914560)===l&&(l&e.lanes)!==0&&Gs(t),bl(t),l=e.child,e=l.sibling,l=zo(l,{mode:"visible",children:h.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function Wg(e,t){return t=Md({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Md(e,t){return e=A(22,e,null,t),e.lanes=0,e}function Bp(e,t,l){return Sh(t,e.child,null,l),e=Wg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ev(e,t,l){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),pp(e.return,t,l)}function Hp(e,t,l,u,h,m){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:h,treeForkCount:m}:(S.isBackwards=t,S.rendering=null,S.renderingStartTime=0,S.last=u,S.tail=l,S.tailMode=h,S.treeForkCount=m)}function tv(e,t,l){var u=t.pendingProps,h=u.revealOrder,m=u.tail,S=u.children,_=Oa.current;if((u=(_&w0)!==0)?(_=_&Km|w0,t.flags|=128):_&=Km,ke(Oa,_,t),_=h??"null",h!=="forwards"&&h!=="unstable_legacy-backwards"&&h!=="together"&&h!=="independent"&&!UM[_])if(UM[_]=!0,h==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(h==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof h=="string")switch(h.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',h,h.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',h,h.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h);_=m??"null",E1[_]||(m==null?(h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&(E1[_]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):m!=="visible"&&m!=="collapsed"&&m!=="hidden"?(E1[_]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',m)):h!=="forwards"&&h!=="backwards"&&h!=="unstable_legacy-backwards"&&(E1[_]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',m)));e:if((h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&S!==void 0&&S!==null&&S!==!1)if(pa(S)){for(_=0;_<S.length;_++)if(!On(S[_],_))break e}else if(_=ae(S),typeof _=="function"){if(_=_.call(S))for(var M=_.next(),z=0;!M.done;M=_.next()){if(!On(M.value,z))break e;z++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',h);if(Ua(e,t,S,l),Jt?(su(),S=m0):S=0,!u&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ev(e,l,t);else if(e.tag===19)ev(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(h){case"forwards":for(l=t.child,h=null;l!==null;)e=l.alternate,e!==null&&pc(e)===null&&(h=l),l=l.sibling;l=h,l===null?(h=t.child,t.child=null):(h=l.sibling,l.sibling=null),Hp(t,!1,h,l,m,S);break;case"backwards":case"unstable_legacy-backwards":for(l=null,h=t.child,t.child=null;h!==null;){if(e=h.alternate,e!==null&&pc(e)===null){t.child=h;break}e=h.sibling,h.sibling=l,l=h,h=e}Hp(t,!0,l,null,m,S);break;case"together":Hp(t,!1,null,null,void 0,S);break;default:t.memoizedState=null}return t.child}function uo(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),gr=-1,wf|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(no(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,l=zo(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=zo(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function $p(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ts(e)))}function PE(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),Cr(t,Ha,e.memoizedState.cache),fu();break;case 27:case 5:Ee(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:Cr(t,t.type,t.memoizedProps.value);break;case 12:(l&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var u=t.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?(bl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Lp(e,t,l):(bl(t),e=uo(e,t,l),e!==null?e.sibling:null);bl(t);break;case 19:var h=(e.flags&128)!==0;if(u=(l&t.childLanes)!==0,u||(no(e,t,l,!1),u=(l&t.childLanes)!==0),h){if(u)return tv(e,t,l);t.flags|=128}if(h=t.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ke(Oa,Oa.current,t),u)break;return null;case 22:return t.lanes=0,Ig(e,t,l,t.pendingProps);case 24:Cr(t,Ha,e.memoizedState.cache)}return uo(e,t,l)}function jd(e,t,l){if(t._debugNeedsRemount&&e!==null){l=oc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),l._debugStack=t._debugStack,l._debugTask=t._debugTask;var u=t.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,l.index=t.index,l.sibling=t.sibling,l.return=t.return,l.ref=t.ref,l._debugInfo=t._debugInfo,t===u.child)u.child=l;else{var h=u.child;if(h===null)throw Error("Expected parent to have a child.");for(;h.sibling!==t;)if(h=h.sibling,h===null)throw Error("Expected to find the previous sibling.");h.sibling=l}return t=u.deletions,t===null?(u.deletions=[e],u.flags|=16):t.push(e),l.flags|=2,l}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ka=!0;else{if(!$p(e,l)&&(t.flags&128)===0)return ka=!1,PE(e,t,l);ka=(e.flags&131072)!==0}else ka=!1,(u=Jt)&&(su(),u=(t.flags&1048576)!==0),u&&(u=t.index,su(),Og(t,m0,u));switch(t.lanes=0,t.tag){case 16:e:if(u=t.pendingProps,e=ar(t.elementType),t.type=e,typeof e=="function")xg(e)?(u=Qo(e,u),t.tag=1,t.type=e=uu(e),t=Oc(null,t,e,u,l)):(t.tag=0,Ls(t,e),t.type=e=uu(e),t=Fg(null,t,e,u,l));else{if(e!=null){if(h=e.$$typeof,h===of){t.tag=11,t.type=e=sp(e),t=FE(null,t,e,u,l);break e}else if(h===rh){t.tag=14,t=Qg(null,t,e,u,l);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===ul&&(t=" Did you wrap a component in React.lazy() more than once?"),l=$(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Fg(e,t,t.type,t.pendingProps,l);case 1:return u=t.type,h=Qo(u,t.pendingProps),Oc(e,t,u,h,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=t.pendingProps;var m=t.memoizedState;h=m.element,Bo(e,t),$o(t,u,null,l);var S=t.memoizedState;if(u=S.cache,Cr(t,Ha,u),u!==m.cache&&Ci(t,[Ha],l,!0),Os(),u=S.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:S.cache},t.updateQueue.baseState=m,t.memoizedState=m,t.flags&256){t=Pg(e,t,u,l);break e}else if(u!==h){h=ml(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),id(h),t=Pg(e,t,u,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Vn=dr(e.firstChild),wl=t,Jt=!0,Tf=null,Vu=!1,Eo=null,fi=!0,l=sM(t,null,u,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fu(),u===h){t=uo(e,t,l);break e}Ua(e,t,u,l)}t=t.child}return t;case 26:return wd(e,t),e===null?(l=Uv(t.type,null,t.pendingProps,null))?t.memoizedState=l:Jt||(l=t.type,e=t.pendingProps,u=Ye(hr.current),u=Id(u).createElement(l),u[Hn]=t,u[Dl]=e,Bn(u,l,e),tt(u),t.stateNode=u):t.memoizedState=Uv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&Jt&&(u=Ye(hr.current),h=ce(),u=t.stateNode=Yi(t.type,t.pendingProps,u,h,!1),Vu||(h=Yl(u,t.type,t.pendingProps,h),h!==null&&(uc(t,0).serverProps=h)),wl=t,fi=!0,h=Vn,Nu(t.type)?(mO=h,Vn=dr(u.firstChild)):Vn=h),Ua(e,t,t.pendingProps.children,l),wd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Jt&&(m=ce(),u=Kf(t.type,m.ancestorInfo),h=Vn,(S=!h)||(S=CS(h,t.type,t.pendingProps,fi),S!==null?(t.stateNode=S,Vu||(m=Yl(S,t.type,t.pendingProps,m),m!==null&&(uc(t,0).serverProps=m)),wl=t,Vn=dr(S.firstChild),fi=!1,m=!0):m=!1,S=!m),S&&(u&&ol(t,h),Ar(t))),Ee(t),h=t.type,m=t.pendingProps,S=e!==null?e.memoizedProps:null,u=m.children,Ks(h,m)?u=null:S!==null&&Ks(h,S)&&(t.flags|=32),t.memoizedState!==null&&(h=Lg(e,t,yd,null,null,l),Z0._currentValue=h),wd(e,t),Ua(e,t,u,l),t.child;case 6:return e===null&&Jt&&(l=t.pendingProps,e=ce(),u=e.ancestorInfo.current,l=u!=null?Pf(l,u.tag,e.ancestorInfo.implicitRootScope):!0,e=Vn,(u=!e)||(u=DS(e,t.pendingProps,fi),u!==null?(t.stateNode=u,wl=t,Vn=null,u=!0):u=!1,u=!u),u&&(l&&ol(t,e),Ar(t))),null;case 13:return Lp(e,t,l);case 4:return et(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=Sh(t,null,u,l):Ua(e,t,u,l),t.child;case 11:return FE(e,t,t.type,t.pendingProps,l);case 7:return Ua(e,t,t.pendingProps,l),t.child;case 8:return Ua(e,t,t.pendingProps.children,l),t.child;case 12:return t.flags|=4,t.flags|=2048,u=t.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,Ua(e,t,t.pendingProps.children,l),t.child;case 10:return u=t.type,h=t.pendingProps,m=h.value,"value"in h||LM||(LM=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Cr(t,u,m),Ua(e,t,h.children,l),t.child;case 9:return h=t.type._context,u=t.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),hu(t),h=on(h),u=NR(u,h,void 0),t.flags|=1,Ua(e,t,u,l),t.child;case 14:return Qg(e,t,t.type,t.pendingProps,l);case 15:return Xg(e,t,t.type,t.pendingProps,l);case 19:return tv(e,t,l);case 31:return KE(e,t,l);case 22:return Ig(e,t,l,t.pendingProps);case 24:return hu(t),u=on(Ha),e===null?(h=Mi(),h===null&&(h=wn,m=mp(),h.pooledCache=m,sc(m),m!==null&&(h.pooledCacheLanes|=l),h=m),t.memoizedState={parent:u,cache:h},Xt(t),Cr(t,Ha,h)):((e.lanes&l)!==0&&(Bo(e,t),$o(t,null,null,l),Os()),h=e.memoizedState,m=t.memoizedState,h.parent!==u?(h={parent:u,cache:u},t.memoizedState=h,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=h),Cr(t,Ha,u)):(u=m.cache,Cr(t,Ha,u),u!==h.cache&&Ci(t,[Ha],l,!0))),Ua(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Xo(e){e.flags|=4}function Vp(e,t,l,u,h){if((t=(e.mode&t7)!==gt)&&(t=!1),t){if(e.flags|=16777216,(h&335544128)===h)if(e.stateNode.complete)e.flags|=8192;else if(bv())e.flags|=8192;else throw Eh=p1,UR}else e.flags&=-16777217}function WE(e,t){if(t.type!=="stylesheet"||(t.state.loading&yi)!==jh)e.flags&=-16777217;else if(e.flags|=16777216,!Yt(t))if(bv())e.flags|=8192;else throw Eh=p1,UR}function Hs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rt():536870912,e.lanes|=t,Oh|=t)}function $s(e,t){if(!Jt)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function vn(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(t)if((e.mode&Bt)!==gt){for(var h=e.selfBaseDuration,m=e.child;m!==null;)l|=m.lanes|m.childLanes,u|=m.subtreeFlags&65011712,u|=m.flags&65011712,h+=m.treeBaseDuration,m=m.sibling;e.treeBaseDuration=h}else for(h=e.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags&65011712,u|=h.flags&65011712,h.return=e,h=h.sibling;else if((e.mode&Bt)!==gt){h=e.actualDuration,m=e.selfBaseDuration;for(var S=e.child;S!==null;)l|=S.lanes|S.childLanes,u|=S.subtreeFlags,u|=S.flags,h+=S.actualDuration,m+=S.treeBaseDuration,S=S.sibling;e.actualDuration=h,e.treeBaseDuration=m}else for(h=e.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=u,e.childLanes=l,t}function nv(e,t,l){var u=t.pendingProps;switch(hp(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vn(t),null;case 1:return vn(t),null;case 3:return l=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),to(Ha,t),G(t),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(cc(t)?(du(),Xo(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,od())),vn(t),null;case 26:var h=t.type,m=t.memoizedState;return e===null?(Xo(t),m!==null?(vn(t),WE(t,m)):(vn(t),Vp(t,h,null,u,l))):m?m!==e.memoizedState?(Xo(t),vn(t),WE(t,m)):(vn(t),t.flags&=-16777217):(e=e.memoizedProps,e!==u&&Xo(t),vn(t),Vp(t,h,e,u,l)),null;case 27:if(ze(t),l=Ye(hr.current),h=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Xo(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vn(t),null}e=ce(),cc(t)?Ag(t):(e=Yi(h,u,l,e,!0),t.stateNode=e,Xo(t))}return vn(t),null;case 5:if(ze(t),h=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Xo(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vn(t),null}var S=ce();if(cc(t))Ag(t);else{switch(m=Ye(hr.current),Kf(h,S.ancestorInfo),S=S.context,m=Id(m),S){case cy:m=m.createElementNS(Nt,h);break;case V1:m=m.createElementNS(_t,h);break;default:switch(h){case"svg":m=m.createElementNS(Nt,h);break;case"math":m=m.createElementNS(_t,h);break;case"script":m=m.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?m.createElement("select",{is:u.is}):m.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?m.createElement(h,{is:u.is}):m.createElement(h),h.indexOf("-")===-1&&(h!==h.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",h),Object.prototype.toString.call(m)!=="[object HTMLUnknownElement]"||pr.call(oj,h)||(oj[h]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",h)))}}m[Hn]=t,m[Dl]=u;e:for(S=t.child;S!==null;){if(S.tag===5||S.tag===6)m.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===t)break e;for(;S.sibling===null;){if(S.return===null||S.return===t)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}t.stateNode=m;e:switch(Bn(m,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Xo(t)}}return vn(t),Vp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&Xo(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Ye(hr.current),l=ce(),cc(t)){if(e=t.stateNode,l=t.memoizedProps,h=!Vu,u=null,m=wl,m!==null)switch(m.tag){case 3:h&&(h=jS(e,l,u),h!==null&&(uc(t,0).serverProps=h));break;case 27:case 5:u=m.memoizedProps,h&&(h=jS(e,l,u),h!==null&&(uc(t,0).serverProps=h))}e[Hn]=t,e=!!(e.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Dv(e.nodeValue,l)),e||Ar(t,!0)}else h=l.ancestorInfo.current,h!=null&&Pf(u,h.tag,l.ancestorInfo.implicitRootScope),e=Id(e).createTextNode(u),e[Hn]=t,t.stateNode=e}return vn(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(u=cc(t),l!==null){if(e===null){if(!u)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Hn]=t,vn(t),(t.mode&Bt)!==gt&&l!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else du(),fu(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,vn(t),(t.mode&Bt)!==gt&&l!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else l=od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Na(t),t):(Na(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return vn(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=u,m=cc(t),h!==null&&h.dehydrated!==null){if(e===null){if(!m)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(m=t.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");m[Hn]=t,vn(t),(t.mode&Bt)!==gt&&h!==null&&(h=t.child,h!==null&&(t.treeBaseDuration-=h.treeBaseDuration))}else du(),fu(),(t.flags&128)===0&&(h=t.memoizedState=null),t.flags|=4,vn(t),(t.mode&Bt)!==gt&&h!==null&&(h=t.child,h!==null&&(t.treeBaseDuration-=h.treeBaseDuration));h=!1}else h=od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return t.flags&256?(Na(t),t):(Na(t),null)}return Na(t),(t.flags&128)!==0?(t.lanes=l,(t.mode&Bt)!==gt&&dc(t),t):(l=u!==null,e=e!==null&&e.memoizedState!==null,l&&(u=t.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==h&&(u.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hs(t,t.updateQueue),vn(t),(t.mode&Bt)!==gt&&l&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return G(t),e===null&&Mu(t.stateNode.containerInfo),vn(t),null;case 10:return to(t.type,t),vn(t),null;case 19:if(Re(Oa,t),u=t.memoizedState,u===null)return vn(t),null;if(h=(t.flags&128)!==0,m=u.rendering,m===null)if(h)$s(u,!1);else{if(Wn!==es||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=pc(e),m!==null){for(t.flags|=128,$s(u,!1),e=m.updateQueue,t.updateQueue=e,Hs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)_g(l,e),l=l.sibling;return ke(Oa,Oa.current&Km|w0,t),Jt&&eo(t,u.treeForkCount),t.child}e=e.sibling}u.tail!==null&&Ba()>A1&&(t.flags|=128,h=!0,$s(u,!1),t.lanes=4194304)}else{if(!h)if(e=pc(m),e!==null){if(t.flags|=128,h=!0,e=e.updateQueue,t.updateQueue=e,Hs(t,e),$s(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!Jt)return vn(t),null}else 2*Ba()-u.renderingStartTime>A1&&l!==536870912&&(t.flags|=128,h=!0,$s(u,!1),t.lanes=4194304);u.isBackwards?(m.sibling=t.child,t.child=m):(e=u.last,e!==null?e.sibling=m:t.child=m,u.last=m)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Ba(),e.sibling=null,l=Oa.current,l=h?l&Km|w0:l&Km,ke(Oa,l,t),Jt&&eo(t,u.treeForkCount),e):(vn(t),null);case 22:case 23:return Na(t),ro(t),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(l&536870912)!==0&&(t.flags&128)===0&&(vn(t),t.subtreeFlags&6&&(t.flags|=8192)):vn(t),l=t.updateQueue,l!==null&&Hs(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==l&&(t.flags|=2048),e!==null&&Re(vh,t),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),to(Ha,t),vn(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function eS(e,t){switch(hp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Bt)!==gt&&dc(t),t):null;case 3:return to(Ha,t),G(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ze(t),null;case 31:if(t.memoizedState!==null){if(Na(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");fu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Bt)!==gt&&dc(t),t):null;case 13:if(Na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");fu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Bt)!==gt&&dc(t),t):null;case 19:return Re(Oa,t),null;case 4:return G(t),null;case 10:return to(t.type,t),null;case 22:case 23:return Na(t),ro(t),e!==null&&Re(vh,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Bt)!==gt&&dc(t),t):null;case 24:return to(Ha,t),null;case 25:return null;default:return null}}function av(e,t){switch(hp(t),t.tag){case 3:to(Ha,t),G(t);break;case 26:case 27:case 5:ze(t);break;case 4:G(t);break;case 31:t.memoizedState!==null&&Na(t);break;case 13:Na(t);break;case 19:Re(Oa,t);break;case 10:to(t.type,t);break;case 22:case 23:Na(t),ro(t),e!==null&&Re(vh,t);break;case 24:to(Ha,t)}}function Io(e){return(e.mode&Bt)!==gt}function tS(e,t){Io(e)?(Jn(),$i(t,e),gl()):$i(t,e)}function kp(e,t,l){Io(e)?(Jn(),Ru(l,e,t),gl()):Ru(l,e,t)}function $i(e,t){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next;l=h;do{if((l.tag&e)===e&&(u=void 0,(e&vr)!==y1&&(oy=!0),u=Le(t,i7,l),(e&vr)!==y1&&(oy=!1),u!==void 0&&typeof u!="function")){var m=void 0;m=(l.tag&To)!==0?"useLayoutEffect":(l.tag&vr)!==0?"useInsertionEffect":"useEffect";var S=void 0;S=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
|
|
234
|
+
|
|
235
|
+
It looks like you wrote `+m+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
236
|
+
|
|
237
|
+
`+m+`(() => {
|
|
238
|
+
async function fetchData() {
|
|
239
|
+
// You can await here
|
|
240
|
+
const response = await MyAPI.getData(someId);
|
|
241
|
+
// ...
|
|
242
|
+
}
|
|
243
|
+
fetchData();
|
|
244
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
245
|
+
|
|
246
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,Le(t,function(_,M){console.error("%s must not return anything besides a function, which is used for clean-up.%s",_,M)},m,S)}l=l.next}while(l!==h)}}catch(_){jt(t,t.return,_)}}function Ru(e,t,l){try{var u=t.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var m=h.next;u=m;do{if((u.tag&e)===e){var S=u.inst,_=S.destroy;_!==void 0&&(S.destroy=void 0,(e&vr)!==y1&&(oy=!0),h=t,Le(h,u7,h,l,_),(e&vr)!==y1&&(oy=!1))}u=u.next}while(u!==m)}}catch(M){jt(t,t.return,M)}}function Nd(e,t){Io(e)?(Jn(),$i(t,e),gl()):$i(t,e)}function Gp(e,t,l){Io(e)?(Jn(),Ru(l,e,t),gl()):Ru(l,e,t)}function lv(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||ty||(l.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),l.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{Le(e,As,t,l)}catch(u){jt(e,e.return,u)}}}function zd(e,t,l){return e.getSnapshotBeforeUpdate(t,l)}function nS(e,t){var l=t.memoizedProps,u=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||ty||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{var h=Qo(e.type,l),m=Le(e,zd,t,h,u);l=BM,m!==void 0||l.has(e.type)||(l.add(e.type),Le(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",me(e))})),t.__reactInternalSnapshotBeforeUpdate=m}catch(S){jt(e,e.return,S)}}function qp(e,t,l){l.props=Qo(e.type,e.memoizedProps),l.state=e.memoizedState,Io(e)?(Jn(),Le(e,nM,e,t,l),gl()):Le(e,nM,e,t,l)}function aS(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}if(typeof t=="function")if(Io(e))try{Jn(),e.refCleanup=t(l)}finally{gl()}else e.refCleanup=t(l);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",me(e)),t.current=l}}function Ac(e,t){try{Le(e,aS,e)}catch(l){jt(e,t,l)}}function Nr(e,t){var l=e.ref,u=e.refCleanup;if(l!==null)if(typeof u=="function")try{if(Io(e))try{Jn(),Le(e,u)}finally{gl(e)}else Le(e,u)}catch(h){jt(e,t,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{if(Io(e))try{Jn(),Le(e,l,null)}finally{gl(e)}else Le(e,l,null)}catch(h){jt(e,t,h)}else l.current=null}function rv(e,t,l,u){var h=e.memoizedProps,m=h.id,S=h.onCommit;h=h.onRender,t=t===null?"mount":"update",s1&&(t="nested-update"),typeof h=="function"&&h(m,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,l),typeof S=="function"&&S(m,t,u,l)}function lS(e,t,l,u){var h=e.memoizedProps;e=h.id,h=h.onPostCommit,t=t===null?"mount":"update",s1&&(t="nested-update"),typeof h=="function"&&h(e,t,u,l)}function Ou(e){var t=e.type,l=e.memoizedProps,u=e.stateNode;try{Le(e,gS,u,t,l,e)}catch(h){jt(e,e.return,h)}}function Yp(e,t,l){try{Le(e,sm,e.stateNode,e.type,l,t,e)}catch(u){jt(e,e.return,u)}}function ov(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nu(e.type)||e.tag===4}function Qp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ov(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Nu(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vs(e,t,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(bS(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t)):(bS(l),t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Rr));else if(u!==4&&(u===27&&Nu(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Vs(e,t,l),e=e.sibling;e!==null;)Vs(e,t,l),e=e.sibling}function Ud(e,t,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(u!==4&&(u===27&&Nu(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ud(e,t,l),e=e.sibling;e!==null;)Ud(e,t,l),e=e.sibling}function iv(e){for(var t,l=e.return;l!==null;){if(ov(l)){t=l;break}l=l.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,l=Qp(e),Ud(e,l,t);break;case 5:l=t.stateNode,t.flags&32&&(fm(l),t.flags&=-33),t=Qp(e),Ud(e,t,l);break;case 3:case 4:t=t.stateNode.containerInfo,l=Qp(e),Vs(e,l,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function uv(e){var t=e.stateNode,l=e.memoizedProps;try{Le(e,ti,e.type,l,t,e)}catch(u){jt(e,e.return,u)}}function cv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function nR(e,t){if(e=e.containerInfo,dO=Y1,e=op(e),yg(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var h=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var S=0,_=-1,M=-1,z=0,ee=0,ne=e,Q=null;t:for(;;){for(var pe;ne!==l||h!==0&&ne.nodeType!==3||(_=S+h),ne!==m||u!==0&&ne.nodeType!==3||(M=S+u),ne.nodeType===3&&(S+=ne.nodeValue.length),(pe=ne.firstChild)!==null;)Q=ne,ne=pe;for(;;){if(ne===e)break t;if(Q===l&&++z===h&&(_=S),Q===m&&++ee===u&&(M=S),(pe=ne.nextSibling)!==null)break;ne=Q,Q=ne.parentNode}ne=pe}l=_===-1||M===-1?null:{start:_,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(hO={focusedElem:e,selectionRange:l},Y1=!1,fl=t;fl!==null;)if(t=fl,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,fl=e;else for(;fl!==null;){switch(e=t=fl,l=e.alternate,h=e.flags,e.tag){case 0:if((h&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)h=e[l],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:(h&1024)!==0&&l!==null&&nS(e,l);break;case 3:if((h&1024)!==0){if(e=e.stateNode.containerInfo,l=e.nodeType,l===9)Ws(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ws(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((h&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,fl=e;break}fl=t.return}}function Xp(e,t,l){var u=Un(),h=Dr(),m=tr(),S=wr(),_=l.flags;switch(l.tag){case 0:case 11:case 15:ur(e,l),_&4&&tS(l,To|pi);break;case 1:if(ur(e,l),_&4)if(e=l.stateNode,t===null)l.type.defaultProps||"ref"in l.memoizedProps||ty||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(l)||"instance")),Io(l)?(Jn(),Le(l,zR,l,e),gl()):Le(l,zR,l,e);else{var M=Qo(l.type,t.memoizedProps);t=t.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||ty||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(l)||"instance")),Io(l)?(Jn(),Le(l,Ww,l,e,M,t,e.__reactInternalSnapshotBeforeUpdate),gl()):Le(l,Ww,l,e,M,t,e.__reactInternalSnapshotBeforeUpdate)}_&64&&lv(l),_&512&&Ac(l,l.return);break;case 3:if(t=Lo(),ur(e,l),_&64&&(_=l.updateQueue,_!==null)){if(M=null,l.child!==null)switch(l.child.tag){case 27:case 5:M=l.child.stateNode;break;case 1:M=l.child.stateNode}try{Le(l,As,_,M)}catch(ee){jt(l,l.return,ee)}}e.effectDuration+=xs(t);break;case 27:t===null&&_&4&&uv(l);case 26:case 5:if(ur(e,l),t===null){if(_&4)Ou(l);else if(_&64){e=l.type,t=l.memoizedProps,M=l.stateNode;try{Le(l,vS,M,e,t,l)}catch(ee){jt(l,l.return,ee)}}}_&512&&Ac(l,l.return);break;case 12:if(_&4){_=Lo(),ur(e,l),e=l.stateNode,e.effectDuration+=yl(_);try{Le(l,rv,l,t,xf,e.effectDuration)}catch(ee){jt(l,l.return,ee)}}else ur(e,l);break;case 31:ur(e,l),_&4&&fv(e,l);break;case 13:ur(e,l),_&4&&dv(e,l),_&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(_=ki.bind(null,l),wS(e,_))));break;case 22:if(_=l.memoizedState!==null||Wc,!_){t=t!==null&&t.memoizedState!==null||Ga,M=Wc;var z=Ga;Wc=_,(Ga=t)&&!z?(co(e,l,(l.subtreeFlags&8772)!==0),(l.mode&Bt)!==gt&&0<=st&&0<=pt&&.05<pt-st&&ip(l,st,pt)):ur(e,l),Wc=M,Ga=z}break;case 30:break;default:ur(e,l)}(l.mode&Bt)!==gt&&0<=st&&0<=pt&&((ca||.05<Pn)&&Wr(l,st,pt,Pn,Zn),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<pt-st&&(cv(l.return.alternate,l.return)||Or(l,st,pt,"Mount"))),Ma(u),er(h),Zn=m,ca=S}function ia(e){var t=e.alternate;t!==null&&(e.alternate=null,ia(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&oe(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nn(e,t,l){for(l=l.child;l!==null;)sv(e,t,l),l=l.sibling}function sv(e,t,l){if(_a&&typeof _a.onCommitFiberUnmount=="function")try{_a.onCommitFiberUnmount(Vc,l)}catch(z){ai||(ai=!0,console.error("React instrumentation encountered an error: %o",z))}var u=Un(),h=Dr(),m=tr(),S=wr();switch(l.tag){case 26:Ga||Nr(l,t),Nn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(e=l.stateNode,e.parentNode.removeChild(e));break;case 27:Ga||Nr(l,t);var _=qa,M=Hr;Nu(l.type)&&(qa=l.stateNode,Hr=!1),Nn(e,t,l),Le(l,Qi,l.stateNode),qa=_,Hr=M;break;case 5:Ga||Nr(l,t);case 6:if(_=qa,M=Hr,qa=null,Nn(e,t,l),qa=_,Hr=M,qa!==null)if(Hr)try{Le(l,SS,qa,l.stateNode)}catch(z){jt(l,t,z)}else try{Le(l,ES,qa,l.stateNode)}catch(z){jt(l,t,z)}break;case 18:qa!==null&&(Hr?(e=qa,jc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Lc(e)):jc(qa,l.stateNode));break;case 4:_=qa,M=Hr,qa=l.stateNode.containerInfo,Hr=!0,Nn(e,t,l),qa=_,Hr=M;break;case 0:case 11:case 14:case 15:Ru(vr,l,t),Ga||kp(l,t,To),Nn(e,t,l);break;case 1:Ga||(Nr(l,t),_=l.stateNode,typeof _.componentWillUnmount=="function"&&qp(l,t,_)),Nn(e,t,l);break;case 21:Nn(e,t,l);break;case 22:Ga=(_=Ga)||l.memoizedState!==null,Nn(e,t,l),Ga=_;break;default:Nn(e,t,l)}(l.mode&Bt)!==gt&&0<=st&&0<=pt&&(ca||.05<Pn)&&Wr(l,st,pt,Pn,Zn),Ma(u),er(h),Zn=m,ca=S}function fv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Le(t,dm,e)}catch(l){jt(t,t.return,l)}}}function dv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Le(t,Nv,e)}catch(l){jt(t,t.return,l)}}function rS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new HM),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new HM),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Au(e,t){var l=rS(e);t.forEach(function(u){if(!l.has(u)){if(l.add(u),li)if(ny!==null&&ay!==null)Xs(ay,ny);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var h=wc.bind(null,e,u);u.then(h,h)}})}function Tl(e,t){var l=t.deletions;if(l!==null)for(var u=0;u<l.length;u++){var h=e,m=t,S=l[u],_=Un(),M=m;e:for(;M!==null;){switch(M.tag){case 27:if(Nu(M.type)){qa=M.stateNode,Hr=!1;break e}break;case 5:qa=M.stateNode,Hr=!1;break e;case 3:case 4:qa=M.stateNode.containerInfo,Hr=!0;break e}M=M.return}if(qa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");sv(h,m,S),qa=null,Hr=!1,(S.mode&Bt)!==gt&&0<=st&&0<=pt&&.05<pt-st&&Or(S,st,pt,"Unmount"),Ma(_),h=S,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ld(t,e),t=t.sibling}function Ld(e,t){var l=Un(),u=Dr(),h=tr(),m=wr(),S=e.alternate,_=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tl(t,e),xl(e),_&4&&(Ru(vr|pi,e,e.return),$i(vr|pi,e),kp(e,e.return,To|pi));break;case 1:if(Tl(t,e),xl(e),_&512&&(Ga||S===null||Nr(S,S.return)),_&64&&Wc&&(_=e.updateQueue,_!==null&&(S=_.callbacks,S!==null))){var M=_.shared.hiddenCallbacks;_.shared.hiddenCallbacks=M===null?S:M.concat(S)}break;case 26:if(M=Ki,Tl(t,e),xl(e),_&512&&(Ga||S===null||Nr(S,S.return)),_&4){var z=S!==null?S.memoizedState:null;if(_=e.memoizedState,S===null)if(_===null)if(e.stateNode===null){e:{_=e.type,S=e.memoizedProps,M=M.ownerDocument||M;t:switch(_){case"title":z=M.getElementsByTagName("title")[0],(!z||z[mf]||z[Hn]||z.namespaceURI===Nt||z.hasAttribute("itemprop"))&&(z=M.createElement(_),M.head.insertBefore(z,M.querySelector("head > title"))),Bn(z,_,S),z[Hn]=e,tt(z),_=z;break e;case"link":var ee=nf("link","href",M).get(_+(S.href||""));if(ee){for(var ne=0;ne<ee.length;ne++)if(z=ee[ne],z.getAttribute("href")===(S.href==null||S.href===""?null:S.href)&&z.getAttribute("rel")===(S.rel==null?null:S.rel)&&z.getAttribute("title")===(S.title==null?null:S.title)&&z.getAttribute("crossorigin")===(S.crossOrigin==null?null:S.crossOrigin)){ee.splice(ne,1);break t}}z=M.createElement(_),Bn(z,_,S),M.head.appendChild(z);break;case"meta":if(ee=nf("meta","content",M).get(_+(S.content||""))){for(ne=0;ne<ee.length;ne++)if(z=ee[ne],Vt(S.content,"content"),z.getAttribute("content")===(S.content==null?null:""+S.content)&&z.getAttribute("name")===(S.name==null?null:S.name)&&z.getAttribute("property")===(S.property==null?null:S.property)&&z.getAttribute("http-equiv")===(S.httpEquiv==null?null:S.httpEquiv)&&z.getAttribute("charset")===(S.charSet==null?null:S.charSet)){ee.splice(ne,1);break t}}z=M.createElement(_),Bn(z,_,S),M.head.appendChild(z);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+_+'". This is a bug in React.')}z[Hn]=e,tt(z),_=z}e.stateNode=_}else zS(M,e.type,e.stateNode);else e.stateNode=mm(M,_,e.memoizedProps);else z!==_?(z===null?S.stateNode!==null&&(S=S.stateNode,S.parentNode.removeChild(S)):z.count--,_===null?zS(M,e.type,e.stateNode):mm(M,_,e.memoizedProps)):_===null&&e.stateNode!==null&&Yp(e,e.memoizedProps,S.memoizedProps)}break;case 27:Tl(t,e),xl(e),_&512&&(Ga||S===null||Nr(S,S.return)),S!==null&&_&4&&Yp(e,e.memoizedProps,S.memoizedProps);break;case 5:if(Tl(t,e),xl(e),_&512&&(Ga||S===null||Nr(S,S.return)),e.flags&32){M=e.stateNode;try{Le(e,fm,M)}catch(Ze){jt(e,e.return,Ze)}}_&4&&e.stateNode!=null&&(M=e.memoizedProps,Yp(e,M,S!==null?S.memoizedProps:M)),_&1024&&(IR=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Tl(t,e),xl(e),_&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");_=e.memoizedProps,S=S!==null?S.memoizedProps:_,M=e.stateNode;try{Le(e,aR,M,S,_)}catch(Ze){jt(e,e.return,Ze)}}break;case 3:if(M=Lo(),k1=null,z=Ki,Ki=hm(t.containerInfo),Tl(t,e),Ki=z,xl(e),_&4&&S!==null&&S.memoizedState.isDehydrated)try{Le(e,jv,t.containerInfo)}catch(Ze){jt(e,e.return,Ze)}IR&&(IR=!1,oS(e)),t.effectDuration+=xs(M);break;case 4:_=Ki,Ki=hm(e.stateNode.containerInfo),Tl(t,e),xl(e),Ki=_;break;case 12:_=Lo(),Tl(t,e),xl(e),e.stateNode.effectDuration+=yl(_);break;case 31:Tl(t,e),xl(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Au(e,_)));break;case 13:Tl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(S!==null&&S.memoizedState!==null)&&(O1=Ba()),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Au(e,_)));break;case 22:M=e.memoizedState!==null;var Q=S!==null&&S.memoizedState!==null,pe=Wc,Ge=Ga;if(Wc=pe||M,Ga=Ge||Q,Tl(t,e),Ga=Ge,Wc=pe,Q&&!M&&!pe&&!Ge&&(e.mode&Bt)!==gt&&0<=st&&0<=pt&&.05<pt-st&&ip(e,st,pt),xl(e),_&8192)e:for(t=e.stateNode,t._visibility=M?t._visibility&~p0:t._visibility|p0,!M||S===null||Q||Wc||Ga||(Cu(e),(e.mode&Bt)!==gt&&0<=st&&0<=pt&&.05<pt-st&&Or(e,st,pt,"Disconnect")),S=null,t=e;;){if(t.tag===5||t.tag===26){if(S===null){Q=S=t;try{z=Q.stateNode,M?Le(Q,xS,z):Le(Q,OS,Q.stateNode,Q.memoizedProps)}catch(Ze){jt(Q,Q.return,Ze)}}}else if(t.tag===6){if(S===null){Q=t;try{ee=Q.stateNode,M?Le(Q,_S,ee):Le(Q,AS,ee,Q.memoizedProps)}catch(Ze){jt(Q,Q.return,Ze)}}}else if(t.tag===18){if(S===null){Q=t;try{ne=Q.stateNode,M?Le(Q,TS,ne):Le(Q,RS,Q.stateNode)}catch(Ze){jt(Q,Q.return,Ze)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;S===t&&(S=null),t=t.return}S===t&&(S=null),t.sibling.return=t.return,t=t.sibling}_&4&&(_=e.updateQueue,_!==null&&(S=_.retryQueue,S!==null&&(_.retryQueue=null,Au(e,S))));break;case 19:Tl(t,e),xl(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Au(e,_)));break;case 30:break;case 21:break;default:Tl(t,e),xl(e)}(e.mode&Bt)!==gt&&0<=st&&0<=pt&&((ca||.05<Pn)&&Wr(e,st,pt,Pn,Zn),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<pt-st&&(cv(e.return.alternate,e.return)||Or(e,st,pt,"Mount"))),Ma(l),er(u),Zn=h,ca=m}function xl(e){var t=e.flags;if(t&2){try{Le(e,iv,e)}catch(l){jt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function oS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;oS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ur(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Xp(e,t.alternate,t),t=t.sibling}function Ip(e){var t=Un(),l=Dr(),u=tr(),h=wr();switch(e.tag){case 0:case 11:case 14:case 15:kp(e,e.return,To),Cu(e);break;case 1:Nr(e,e.return);var m=e.stateNode;typeof m.componentWillUnmount=="function"&&qp(e,e.return,m),Cu(e);break;case 27:Le(e,Qi,e.stateNode);case 26:case 5:Nr(e,e.return),Cu(e);break;case 22:e.memoizedState===null&&Cu(e);break;case 30:Cu(e);break;default:Cu(e)}(e.mode&Bt)!==gt&&0<=st&&0<=pt&&(ca||.05<Pn)&&Wr(e,st,pt,Pn,Zn),Ma(t),er(l),Zn=u,ca=h}function Cu(e){for(e=e.child;e!==null;)Ip(e),e=e.sibling}function hv(e,t,l,u){var h=Un(),m=Dr(),S=tr(),_=wr(),M=l.flags;switch(l.tag){case 0:case 11:case 15:co(e,l,u),tS(l,To);break;case 1:if(co(e,l,u),t=l.stateNode,typeof t.componentDidMount=="function"&&Le(l,zR,l,t),t=l.updateQueue,t!==null){e=l.stateNode;try{Le(l,zg,t,e)}catch(z){jt(l,l.return,z)}}u&&M&64&&lv(l),Ac(l,l.return);break;case 27:uv(l);case 26:case 5:co(e,l,u),u&&t===null&&M&4&&Ou(l),Ac(l,l.return);break;case 12:if(u&&M&4){M=Lo(),co(e,l,u),u=l.stateNode,u.effectDuration+=yl(M);try{Le(l,rv,l,t,xf,u.effectDuration)}catch(z){jt(l,l.return,z)}}else co(e,l,u);break;case 31:co(e,l,u),u&&M&4&&fv(e,l);break;case 13:co(e,l,u),u&&M&4&&dv(e,l);break;case 22:l.memoizedState===null&&co(e,l,u),Ac(l,l.return);break;case 30:break;default:co(e,l,u)}(l.mode&Bt)!==gt&&0<=st&&0<=pt&&(ca||.05<Pn)&&Wr(l,st,pt,Pn,Zn),Ma(h),er(m),Zn=S,ca=_}function co(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)hv(e,t.alternate,t,l),t=t.sibling}function Bd(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&sc(e),l!=null&&cd(l))}function Hd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(sc(t),e!=null&&cd(e))}function cr(e,t,l,u,h){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var m=t.sibling;pv(e,t,l,u,m!==null?m.actualStartTime:h),t=m}}function pv(e,t,l,u,h){var m=Un(),S=Dr(),_=tr(),M=wr(),z=bf,ee=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Bt)!==gt&&0<t.actualStartTime&&(t.flags&1)!==0&&up(t,t.actualStartTime,h,Wa,l),cr(e,t,l,u,h),ee&2048&&Nd(t,br|pi);break;case 1:(t.mode&Bt)!==gt&&0<t.actualStartTime&&((t.flags&128)!==0?vg(t,t.actualStartTime,h,[]):(t.flags&1)!==0&&up(t,t.actualStartTime,h,Wa,l)),cr(e,t,l,u,h);break;case 3:var ne=Lo(),Q=Wa;Wa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,cr(e,t,l,u,h),Wa=Q,ee&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),u=t.memoizedState.cache,u!==l&&(sc(u),l!=null&&cd(l))),e.passiveEffectDuration+=xs(ne);break;case 12:if(ee&2048){ee=Lo(),cr(e,t,l,u,h),e=t.stateNode,e.passiveEffectDuration+=yl(ee);try{Le(t,lS,t,t.alternate,xf,e.passiveEffectDuration)}catch(pe){jt(t,t.return,pe)}}else cr(e,t,l,u,h);break;case 31:ee=Wa,ne=t.alternate!==null?t.alternate.memoizedState:null,Q=t.memoizedState,ne!==null&&Q===null?(Q=t.deletions,Q!==null&&0<Q.length&&Q[0].tag===18?(Wa=!1,ne=ne.hydrationErrors,ne!==null&&vg(t,t.actualStartTime,h,ne)):Wa=!0):Wa=!1,cr(e,t,l,u,h),Wa=ee;break;case 13:ee=Wa,ne=t.alternate!==null?t.alternate.memoizedState:null,Q=t.memoizedState,ne===null||ne.dehydrated===null||Q!==null&&Q.dehydrated!==null?Wa=!1:(Q=t.deletions,Q!==null&&0<Q.length&&Q[0].tag===18?(Wa=!1,ne=ne.hydrationErrors,ne!==null&&vg(t,t.actualStartTime,h,ne)):Wa=!0),cr(e,t,l,u,h),Wa=ee;break;case 23:break;case 22:Q=t.stateNode,ne=t.alternate,t.memoizedState!==null?Q._visibility&qc?cr(e,t,l,u,h):Cc(e,t,l,u,h):Q._visibility&qc?cr(e,t,l,u,h):(Q._visibility|=qc,Du(e,t,l,u,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),h),(t.mode&Bt)===gt||Wa||(e=t.actualStartTime,0<=e&&.05<h-e&&ip(t,e,h),0<=st&&0<=pt&&.05<pt-st&&ip(t,st,pt))),ee&2048&&Bd(ne,t);break;case 24:cr(e,t,l,u,h),ee&2048&&Hd(t.alternate,t);break;default:cr(e,t,l,u,h)}(t.mode&Bt)!==gt&&((e=!Wa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(l=t.actualStartTime,0<=l&&.05<h-l&&Or(t,l,h,"Mount")),0<=st&&0<=pt&&((ca||.05<Pn)&&Wr(t,st,pt,Pn,Zn),e&&.05<pt-st&&Or(t,st,pt,"Mount"))),Ma(m),er(S),Zn=_,ca=M,bf=z}function Du(e,t,l,u,h,m){for(h=h&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var S=t.sibling;$d(e,t,l,u,h,S!==null?S.actualStartTime:m),t=S}}function $d(e,t,l,u,h,m){var S=Un(),_=Dr(),M=tr(),z=wr(),ee=bf;h&&(t.mode&Bt)!==gt&&0<t.actualStartTime&&(t.flags&1)!==0&&up(t,t.actualStartTime,m,Wa,l);var ne=t.flags;switch(t.tag){case 0:case 11:case 15:Du(e,t,l,u,h,m),Nd(t,br);break;case 23:break;case 22:var Q=t.stateNode;t.memoizedState!==null?Q._visibility&qc?Du(e,t,l,u,h,m):Cc(e,t,l,u,m):(Q._visibility|=qc,Du(e,t,l,u,h,m)),h&&ne&2048&&Bd(t.alternate,t);break;case 24:Du(e,t,l,u,h,m),h&&ne&2048&&Hd(t.alternate,t);break;default:Du(e,t,l,u,h,m)}(t.mode&Bt)!==gt&&0<=st&&0<=pt&&(ca||.05<Pn)&&Wr(t,st,pt,Pn,Zn),Ma(S),er(_),Zn=M,ca=z,bf=ee}function Cc(e,t,l,u,h){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var m=t.child;m!==null;){t=m.sibling;var S=e,_=l,M=u,z=t!==null?t.actualStartTime:h,ee=bf;(m.mode&Bt)!==gt&&0<m.actualStartTime&&(m.flags&1)!==0&&up(m,m.actualStartTime,z,Wa,_);var ne=m.flags;switch(m.tag){case 22:Cc(S,m,_,M,z),ne&2048&&Bd(m.alternate,m);break;case 24:Cc(S,m,_,M,z),ne&2048&&Hd(m.alternate,m);break;default:Cc(S,m,_,M,z)}bf=ee,m=t}}function Dc(e,t,l){if(e.subtreeFlags&z0)for(e=e.child;e!==null;)Zp(e,t,l),e=e.sibling}function Zp(e,t,l){switch(e.tag){case 26:Dc(e,t,l),e.flags&z0&&e.memoizedState!==null&&Hv(l,Ki,e.memoizedState,e.memoizedProps);break;case 5:Dc(e,t,l);break;case 3:case 4:var u=Ki;Ki=hm(e.stateNode.containerInfo),Dc(e,t,l),Ki=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=z0,z0=16777216,Dc(e,t,l),z0=u):Dc(e,t,l));break;default:Dc(e,t,l)}}function mv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function sr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var u=t[l],h=Un();fl=u,Zo(u,e),(u.mode&Bt)!==gt&&0<=st&&0<=pt&&.05<pt-st&&Or(u,st,pt,"Unmount"),Ma(h)}mv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jp(e),e=e.sibling}function Jp(e){var t=Un(),l=Dr(),u=tr(),h=wr();switch(e.tag){case 0:case 11:case 15:sr(e),e.flags&2048&&Gp(e,e.return,br|pi);break;case 3:var m=Lo();sr(e),e.stateNode.passiveEffectDuration+=xs(m);break;case 12:m=Lo(),sr(e),e.stateNode.passiveEffectDuration+=yl(m);break;case 22:m=e.stateNode,e.memoizedState!==null&&m._visibility&qc&&(e.return===null||e.return.tag!==13)?(m._visibility&=~qc,Fp(e),(e.mode&Bt)!==gt&&0<=st&&0<=pt&&.05<pt-st&&Or(e,st,pt,"Disconnect")):sr(e);break;default:sr(e)}(e.mode&Bt)!==gt&&0<=st&&0<=pt&&(ca||.05<Pn)&&Wr(e,st,pt,Pn,Zn),Ma(t),er(l),ca=h,Zn=u}function Fp(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var u=t[l],h=Un();fl=u,Zo(u,e),(u.mode&Bt)!==gt&&0<=st&&0<=pt&&.05<pt-st&&Or(u,st,pt,"Unmount"),Ma(h)}mv(e)}for(e=e.child;e!==null;)yv(e),e=e.sibling}function yv(e){var t=Un(),l=Dr(),u=tr(),h=wr();switch(e.tag){case 0:case 11:case 15:Gp(e,e.return,br),Fp(e);break;case 22:var m=e.stateNode;m._visibility&qc&&(m._visibility&=~qc,Fp(e));break;default:Fp(e)}(e.mode&Bt)!==gt&&0<=st&&0<=pt&&(ca||.05<Pn)&&Wr(e,st,pt,Pn,Zn),Ma(t),er(l),ca=h,Zn=u}function Zo(e,t){for(;fl!==null;){var l=fl,u=l,h=t,m=Un(),S=Dr(),_=tr(),M=wr();switch(u.tag){case 0:case 11:case 15:Gp(u,h,br);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool,h!=null&&sc(h));break;case 24:cd(u.memoizedState.cache)}if((u.mode&Bt)!==gt&&0<=st&&0<=pt&&(ca||.05<Pn)&&Wr(u,st,pt,Pn,Zn),Ma(m),er(S),ca=M,Zn=_,u=l.child,u!==null)u.return=l,fl=u;else e:for(l=e;fl!==null;){if(u=fl,m=u.sibling,S=u.return,ia(u),u===l){fl=null;break e}if(m!==null){m.return=S,fl=m;break e}fl=S}}}function gv(){h7.forEach(function(e){return e()})}function vv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||ve.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function il(e){if((nn&el)!==dl&&$t!==0)return $t&-$t;var t=ve.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Cv()):Ir()}function ks(){if(Vr===0)if(($t&536870912)===0||Jt){var e=uh;uh<<=1,(uh&3932160)===0&&(uh=262144),Vr=e}else Vr=536870912;return e=So.current,e!==null&&(e.flags|=32),Vr}function vt(e,t,l){if(oy&&console.error("useInsertionEffect must not schedule updates."),lO&&(w1=!0),(e===wn&&(Tn===_h||Tn===Rh)||e.cancelPendingCommit!==null)&&(Jo(e,0),zr(e,$t,Vr,!1)),Da(e,l),(nn&el)!==dl&&e===wn){if(ni)switch(t.tag){case 0:case 11:case 15:e=Gt&&me(Gt)||"Unknown",WM.has(e)||(WM.add(e),t=me(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:PM||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),PM=!0)}}else li&&ea(e,t,l),qd(t),e===wn&&((nn&el)===dl&&(Mf|=l),Wn===Cf&&zr(e,$t,Vr,!1)),Gl(e)}function iS(e,t,l){if((nn&(el|xo))!==dl)throw Error("Should not already be working.");if($t!==0&&Gt!==null){var u=Gt,h=Ba();switch(Qw){case B0:case _h:var m=E0;$n&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",m,h,oi,void 0,"primary-light")):console.timeStamp("Suspended",m,h,oi,void 0,"primary-light"));break;case Rh:m=E0,$n&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",m,h,oi,void 0,"primary-light")):console.timeStamp("Action",m,h,oi,void 0,"primary-light"));break;default:$n&&(u=h-E0,3>u||console.timeStamp("Blocked",E0,h,oi,void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"))}}m=(l=!l&&(t&127)===0&&(t&e.expiredLanes)===0||jn(e,t))?Vi(e,t):Ys(e,t,!0);var S=l;do{if(m===es){ly&&!l&&zr(e,t,0,!1),t=Tn,E0=$a(),Qw=t;break}else{if(u=Ba(),h=e.current.alternate,S&&!cS(h)){Pr(t),h=sl,m=u,!$n||m<=h||(ma?ma.run(console.timeStamp.bind(console,"Teared Render",h,m,en,Pt,"error")):console.timeStamp("Teared Render",h,m,en,Pt,"error")),wu(t,u),m=Ys(e,t,!1),S=!1;continue}if(m===xh){if(S=t,e.errorRecoveryDisabledLanes&S)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){Pr(t),bg(sl,u,t,ma),wu(t,u),t=_;e:{u=e,m=S,S=$0;var M=u.current.memoizedState.isDehydrated;if(M&&(Jo(u,_).flags|=256),_=Ys(u,_,!1),_!==xh){if(FR&&!M){u.errorRecoveryDisabledLanes|=m,Mf|=m,m=Cf;break e}u=Er,Er=S,u!==null&&(Er===null?Er=u:Er.push.apply(Er,u))}m=_}if(S=!1,m!==xh)continue;u=Ba()}}if(m===L0){Pr(t),bg(sl,u,t,ma),wu(t,u),Jo(e,0),zr(e,t,0,!0);break}e:{switch(l=e,m){case es:case L0:throw Error("Root did not complete. This is a bug in React.");case Cf:if((t&4194048)!==t)break;case T1:Pr(t),BE(sl,u,t,ma),wu(t,u),h=t,(h&127)!==0?i1=u:(h&4194048)!==0&&(u1=u),zr(l,t,Vr,!Df);break e;case xh:Er=null;break;case S1:case $M:break;default:throw Error("Unknown root exit status.")}if(ve.actQueue!==null)An(l,h,t,Er,V0,R1,Vr,Mf,Oh,m,null,null,sl,u);else{if((t&62914560)===t&&(S=O1+GM-Ba(),10<S)){if(zr(l,t,Vr,!Df),Xr(l,0,!0)!==0)break e;Pi=t,l.timeoutHandle=ij(uS.bind(null,l,h,Er,V0,R1,t,Vr,Mf,Oh,Df,m,"Throttled",sl,u),S);break e}uS(l,h,Er,V0,R1,t,Vr,Mf,Oh,Df,m,null,sl,u)}}}break}while(!0);Gl(e)}function uS(e,t,l,u,h,m,S,_,M,z,ee,ne,Q,pe){e.timeoutHandle=Mh;var Ge=t.subtreeFlags,Ze=null;if((Ge&8192||(Ge&16785408)===16785408)&&(Ze={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rr},Zp(t,m,Ze),Ge=(m&62914560)===m?O1-Ba():(m&4194048)===m?kM-Ba():0,Ge=ym(Ze,Ge),Ge!==null)){Pi=m,e.cancelPendingCommit=Ge(An.bind(null,e,t,m,l,u,h,S,_,M,ee,Ze,Ze.waitingForViewTransition?"Waiting for the previous Animation":0<Ze.count?0<Ze.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ze.imgCount===1?"Suspended on an Image":0<Ze.imgCount?"Suspended on Images":null,Q,pe)),zr(e,m,S,!z);return}An(e,t,m,l,u,h,S,_,M,ee,Ze,ne,Q,pe)}function cS(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var h=l[u],m=h.getSnapshot;h=h.value;try{if(!yr(m(),h))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zr(e,t,l,u){t&=~KR,t&=~Mf,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var h=t;0<h;){var m=31-Ka(h),S=1<<m;u[m]=-1,h&=~S}l!==0&&nl(e,l,t)}function fr(){return(nn&(el|xo))===dl?(Ko(0),!1):!0}function Kp(){if(Gt!==null){if(Tn===$r)var e=Gt.return;else e=Gt,Ss(),mu(e),Jm=null,D0=0,e=Gt;for(;e!==null;)av(e.alternate,e),e=e.return;Gt=null}}function wu(e,t){(e&127)!==0&&(ph=t),(e&4194048)!==0&&(Zc=t),(e&62914560)!==0&&(qw=t),(e&2080374784)!==0&&(Yw=t)}function Jo(e,t){$n&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Pt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Pt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Pt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Pt,"primary-light"));var l=sl;if(sl=$a(),$t!==0&&0<l){if(Pr($t),Wn===S1||Wn===Cf)BE(l,sl,t,ma);else{var u=sl,h=ma;if($n&&!(u<=l)){var m=(t&738197653)===t?"tertiary-dark":"primary-dark",S=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";h?h.run(console.timeStamp.bind(console,S,l,u,en,Pt,m)):console.timeStamp(S,l,u,en,Pt,m)}}wu($t,sl)}if(l=ma,ma=null,(t&127)!==0){ma=g0,h=0<=ku&&ku<ph?ph:ku,u=0<=mh&&mh<ph?ph:mh,m=0<=u?u:0<=h?h:sl,0<=i1?(Pr(2),HE(i1,m,t,l)):c1&127,l=h;var _=u,M=v0,z=0<Xm,ee=_f===y0,ne=_f===o1;if(h=sl,u=g0,m=DR,S=wR,$n){if(en="Blocking",0<l?l>h&&(l=h):l=h,0<_?_>l&&(_=l):_=l,M!==null&&l>_){var Q=z?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,z?"Consecutive":"Event: "+M,_,l,en,Pt,Q)):console.timeStamp(z?"Consecutive":"Event: "+M,_,l,en,Pt,Q)}h>l&&(_=ee?"error":(t&738197653)===t?"tertiary-light":"primary-light",ee=ne?"Promise Resolved":ee?"Cascading Update":5<h-l?"Update Blocked":"Update",ne=[],S!=null&&ne.push(["Component name",S]),m!=null&&ne.push(["Method name",m]),l={start:l,end:h,detail:{devtools:{properties:ne,track:en,trackGroup:Pt,color:_}}},u?u.run(performance.measure.bind(performance,ee,l)):performance.measure(ee,l))}ku=-1.1,_f=0,wR=DR=null,i1=-1.1,Xm=mh,mh=-1.1,ph=$a()}if((t&4194048)!==0&&(ma=b0,h=0<=Jc&&Jc<Zc?Zc:Jc,l=0<=di&&di<Zc?Zc:di,u=0<=Rf&&Rf<Zc?Zc:Rf,m=0<=u?u:0<=l?l:sl,0<=u1?(Pr(256),HE(u1,m,t,ma)):c1&4194048,ne=u,_=yh,M=0<Of,z=MR===o1,m=sl,u=b0,S=kw,ee=Gw,$n&&(en="Transition",0<l?l>m&&(l=m):l=m,0<h?h>l&&(h=l):h=l,0<ne?ne>h&&(ne=h):ne=h,h>ne&&_!==null&&(Q=M?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,M?"Consecutive":"Event: "+_,ne,h,en,Pt,Q)):console.timeStamp(M?"Consecutive":"Event: "+_,ne,h,en,Pt,Q)),l>h&&(u?u.run(console.timeStamp.bind(console,"Action",h,l,en,Pt,"primary-dark")):console.timeStamp("Action",h,l,en,Pt,"primary-dark")),m>l&&(h=z?"Promise Resolved":5<m-l?"Update Blocked":"Update",ne=[],ee!=null&&ne.push(["Component name",ee]),S!=null&&ne.push(["Method name",S]),l={start:l,end:m,detail:{devtools:{properties:ne,track:en,trackGroup:Pt,color:"primary-light"}}},u?u.run(performance.measure.bind(performance,h,l)):performance.measure(h,l))),di=Jc=-1.1,MR=0,u1=-1.1,Of=Rf,Rf=-1.1,Zc=$a()),(t&62914560)!==0&&(c1&62914560)!==0&&(Pr(4194304),Eg(qw,sl)),(t&2080374784)!==0&&(c1&2080374784)!==0&&(Pr(268435456),Eg(Yw,sl)),l=e.timeoutHandle,l!==Mh&&(e.timeoutHandle=Mh,O7(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pi=0,Kp(),wn=e,Gt=l=zo(e.current,null),$t=t,Tn=$r,_o=null,Df=!1,ly=jn(e,t),FR=!1,Wn=es,Oh=Vr=KR=Mf=wf=0,Er=$0=null,R1=!1,(t&8)!==0&&(t|=t&32),u=e.entangledLanes,u!==0)for(e=e.entanglements,u&=t;0<u;)h=31-Ka(u),m=1<<h,t|=e[h],u&=~m;return qu=t,cp(),e=Uw(),1e3<e-zw&&(ve.recentlyCreatedOwnerStacks=0,zw=e),Ji.discardPendingWarnings(),l}function so(e,t){St=null,ve.H=N0,ve.getCurrentStack=null,ni=!1,Xl=null,t===Zm||t===h1?(t=hc(),Tn=B0):t===UR?(t=hc(),Tn=VM):Tn=t===QR?JR:t!==null&&typeof t=="object"&&typeof t.then=="function"?H0:x1,_o=t;var l=Gt;l===null?(Wn=L0,Cd(e,ml(t,e.current))):l.mode&Bt&&yp(l)}function bv(){var e=So.current;return e===null?!0:($t&4194048)===$t?hi===null:($t&62914560)===$t||($t&536870912)!==0?e===hi:!1}function Pp(){var e=ve.H;return ve.H=N0,e===null?N0:e}function Ev(){var e=ve.A;return ve.A=d7,e}function Gs(e){ma===null&&(ma=e._debugTask==null?null:e._debugTask)}function qs(){Wn=Cf,Df||($t&4194048)!==$t&&So.current!==null||(ly=!0),(wf&134217727)===0&&(Mf&134217727)===0||wn===null||zr(wn,$t,Vr,!1)}function Ys(e,t,l){var u=nn;nn|=el;var h=Pp(),m=Ev();if(wn!==e||$t!==t){if(li){var S=e.memoizedUpdaters;0<S.size&&(Xs(e,$t),S.clear()),qn(e,t)}V0=null,Jo(e,t)}t=!1,S=Wn;e:do try{if(Tn!==$r&&Gt!==null){var _=Gt,M=_o;switch(Tn){case JR:Kp(),S=T1;break e;case B0:case _h:case Rh:case H0:So.current===null&&(t=!0);var z=Tn;if(Tn=$r,_o=null,Qs(e,_,M,z),l&&ly){S=es;break e}break;default:z=Tn,Tn=$r,_o=null,Qs(e,_,M,z)}}Sv(),S=Wn;break}catch(ee){so(e,ee)}while(!0);return t&&e.shellSuspendCounter++,Ss(),nn=u,ve.H=h,ve.A=m,Gt===null&&(wn=null,$t=0,cp()),S}function Sv(){for(;Gt!==null;)Wp(Gt)}function Vi(e,t){var l=nn;nn|=el;var u=Pp(),h=Ev();if(wn!==e||$t!==t){if(li){var m=e.memoizedUpdaters;0<m.size&&(Xs(e,$t),m.clear()),qn(e,t)}V0=null,A1=Ba()+qM,Jo(e,t)}else ly=jn(e,t);e:do try{if(Tn!==$r&&Gt!==null)t:switch(t=Gt,m=_o,Tn){case x1:Tn=$r,_o=null,Qs(e,t,m,x1);break;case _h:case Rh:if(jg(m)){Tn=$r,_o=null,Tv(t);break}t=function(){Tn!==_h&&Tn!==Rh||wn!==e||(Tn=_1),Gl(e)},m.then(t,t);break e;case B0:Tn=_1;break e;case VM:Tn=ZR;break e;case _1:jg(m)?(Tn=$r,_o=null,Tv(t)):(Tn=$r,_o=null,Qs(e,t,m,_1));break;case ZR:var S=null;switch(Gt.tag){case 26:S=Gt.memoizedState;case 5:case 27:var _=Gt;if(S?Yt(S):_.stateNode.complete){Tn=$r,_o=null;var M=_.sibling;if(M!==null)Gt=M;else{var z=_.return;z!==null?(Gt=z,Vd(z)):Gt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Tn=$r,_o=null,Qs(e,t,m,ZR);break;case H0:Tn=$r,_o=null,Qs(e,t,m,H0);break;case JR:Kp(),Wn=T1;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ve.actQueue!==null?Sv():ha();break}catch(ee){so(e,ee)}while(!0);return Ss(),ve.H=u,ve.A=h,nn=l,Gt!==null?es:(wn=null,$t=0,cp(),Wn)}function ha(){for(;Gt!==null&&!Am();)Wp(Gt)}function Wp(e){var t=e.alternate;(e.mode&Bt)!==gt?(Di(e),t=Le(e,jd,t,e,qu),yp(e)):t=Le(e,jd,t,e,qu),e.memoizedProps=e.pendingProps,t===null?Vd(e):Gt=t}function Tv(e){var t=Le(e,La,e);e.memoizedProps=e.pendingProps,t===null?Vd(e):Gt=t}function La(e){var t=e.alternate,l=(e.mode&Bt)!==gt;switch(l&&Di(e),e.tag){case 15:case 0:t=Kg(t,e,e.pendingProps,e.type,void 0,$t);break;case 11:t=Kg(t,e,e.pendingProps,e.type.render,e.ref,$t);break;case 5:mu(e);default:av(t,e),e=Gt=_g(e,qu),t=jd(t,e,qu)}return l&&yp(e),t}function Qs(e,t,l,u){Ss(),mu(t),Jm=null,D0=0;var h=t.return;try{if(Yg(e,h,t,l,$t)){Wn=L0,Cd(e,ml(l,e.current)),Gt=null;return}}catch(m){if(h!==null)throw Gt=h,m;Wn=L0,Cd(e,ml(l,e.current)),Gt=null;return}t.flags&32768?(Jt||u===x1?e=!0:ly||($t&536870912)!==0?e=!1:(Df=e=!0,(u===_h||u===Rh||u===B0||u===H0)&&(u=So.current,u!==null&&u.tag===13&&(u.flags|=16384))),xv(t,e)):Vd(t)}function Vd(e){var t=e;do{if((t.flags&32768)!==0){xv(t,Df);return}var l=t.alternate;if(e=t.return,Di(t),l=Le(t,nv,l,t,qu),(t.mode&Bt)!==gt&&sd(t),l!==null){Gt=l;return}if(t=t.sibling,t!==null){Gt=t;return}Gt=t=e}while(t!==null);Wn===es&&(Wn=$M)}function xv(e,t){do{var l=eS(e.alternate,e);if(l!==null){l.flags&=32767,Gt=l;return}if((e.mode&Bt)!==gt){sd(e),l=e.actualDuration;for(var u=e.child;u!==null;)l+=u.actualDuration,u=u.sibling;e.actualDuration=l}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Gt=e;return}Gt=e=l}while(e!==null);Wn=T1,Gt=null}function An(e,t,l,u,h,m,S,_,M,z,ee,ne,Q,pe){e.cancelPendingCommit=null;do kd();while(Ya!==Nf);if(Ji.flushLegacyContextWarning(),Ji.flushPendingUnsafeLifecycleWarnings(),(nn&(el|xo))!==dl)throw Error("Should not already be working.");if(Pr(l),z===xh?bg(Q,pe,l,ma):u!==null?P_(Q,pe,l,u,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ma):K_(Q,pe,l,ma),t!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(m=t.lanes|t.childLanes,m|=_R,Bl(e,l,m,S,_,M),e===wn&&(Gt=wn=null,$t=0),ry=t,zf=e,Pi=l,eO=m,nO=h,JM=u,tO=pe,FM=ne,Wi=C1,KM=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Is($c,function(){return X0=window.event,Wi===C1&&(Wi=WR),Gd(),null})):(e.callbackNode=null,e.callbackPriority=0),Ic=null,xf=$a(),ne!==null&&W_(pe,xf,ne,ma),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=ve.T,ve.T=null,h=cn.p,cn.p=Ra,S=nn,nn|=xo;try{nR(e,t,l)}finally{nn=S,cn.p=h,ve.T=u}}Ya=QM,_l(),Fo(),_v()}}function _l(){if(Ya===QM){Ya=Nf;var e=zf,t=ry,l=Pi,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=ve.T,ve.T=null;var h=cn.p;cn.p=Ra;var m=nn;nn|=xo;try{ny=l,ay=e,fc(),Ld(t,e),ay=ny=null,l=hO;var S=op(e.containerInfo),_=l.focusedElem,M=l.selectionRange;if(S!==_&&_&&_.ownerDocument&&NE(_.ownerDocument.documentElement,_)){if(M!==null&&yg(_)){var z=M.start,ee=M.end;if(ee===void 0&&(ee=z),"selectionStart"in _)_.selectionStart=z,_.selectionEnd=Math.min(ee,_.value.length);else{var ne=_.ownerDocument||document,Q=ne&&ne.defaultView||window;if(Q.getSelection){var pe=Q.getSelection(),Ge=_.textContent.length,Ze=Math.min(M.start,Ge),zn=M.end===void 0?Ze:Math.min(M.end,Ge);!pe.extend&&Ze>zn&&(S=zn,zn=Ze,Ze=S);var Wt=jE(_,Ze),q=jE(_,zn);if(Wt&&q&&(pe.rangeCount!==1||pe.anchorNode!==Wt.node||pe.anchorOffset!==Wt.offset||pe.focusNode!==q.node||pe.focusOffset!==q.offset)){var X=ne.createRange();X.setStart(Wt.node,Wt.offset),pe.removeAllRanges(),Ze>zn?(pe.addRange(X),pe.extend(q.node,q.offset)):(X.setEnd(q.node,q.offset),pe.addRange(X))}}}}for(ne=[],pe=_;pe=pe.parentNode;)pe.nodeType===1&&ne.push({element:pe,left:pe.scrollLeft,top:pe.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<ne.length;_++){var W=ne[_];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}Y1=!!dO,hO=dO=null}finally{nn=m,cn.p=h,ve.T=u}}e.current=t,Ya=XM}}function Fo(){if(Ya===XM){Ya=Nf;var e=KM;if(e!==null){xf=$a();var t=Xc,l=xf;!$n||l<=t||console.timeStamp(e,t,l,en,Pt,"secondary-light")}e=zf,t=ry,l=Pi;var u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=ve.T,ve.T=null;var h=cn.p;cn.p=Ra;var m=nn;nn|=xo;try{ny=l,ay=e,fc(),Xp(e,t.alternate,t),ay=ny=null}finally{nn=m,cn.p=h,ve.T=u}}e=tO,t=FM,Xc=$a(),e=t===null?e:xf,t=Xc,l=Wi===PR,u=ma,Ic!==null?$E(e,t,Ic,!1,u):!$n||t<=e||(u?u.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",e,t,en,Pt,l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",e,t,en,Pt,l?"error":"secondary-dark")),Ya=IM}}function _v(){if(Ya===ZM||Ya===IM){if(Ya===ZM){var e=Xc;Xc=$a();var t=Xc,l=Wi===PR;!$n||t<=e||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",e,t,en,Pt,l?" error":"secondary-light"),Wi!==PR&&(Wi=YM)}Ya=Nf,Cm(),e=zf;var u=ry;t=Pi,l=JM;var h=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;h?Ya=D1:(Ya=Nf,ry=zf=null,Rv(e,e.pendingLanes),Ah=0,G0=null);var m=e.pendingLanes;if(m===0&&(jf=null),h||nm(e),m=ta(t),u=u.stateNode,_a&&typeof _a.onCommitFiberRoot=="function")try{var S=(u.current.flags&128)===128;switch(m){case Ra:var _=t0;break;case Pa:_=Dm;break;case cl:_=$c;break;case Hu:_=wm;break;default:_=$c}_a.onCommitFiberRoot(Vc,u,_,S)}catch(ne){ai||(ai=!0,console.error("React instrumentation encountered an error: %o",ne))}if(li&&e.memoizedUpdaters.clear(),gv(),l!==null){S=ve.T,_=cn.p,cn.p=Ra,ve.T=null;try{var M=e.onRecoverableError;for(u=0;u<l.length;u++){var z=l[u],ee=sS(z.stack);Le(z.source,M,z.value,ee)}}finally{ve.T=S,cn.p=_}}(Pi&3)!==0&&kd(),Gl(e),m=e.pendingLanes,(t&261930)!==0&&(m&42)!==0?(f1=!0,e===aO?k0++:(k0=0,aO=e)):k0=0,h||wu(t,Xc),Ko(0)}}function sS(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Rv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,cd(t)))}function kd(){return _l(),Fo(),_v(),Gd()}function Gd(){if(Ya!==D1)return!1;var e=zf,t=eO;eO=0;var l=ta(Pi),u=cl>l?cl:l;l=ve.T;var h=cn.p;try{cn.p=u,ve.T=null;var m=nO;nO=null,u=zf;var S=Pi;if(Ya=Nf,ry=zf=null,Pi=0,(nn&(el|xo))!==dl)throw Error("Cannot flush passive effects while already rendering.");Pr(S),lO=!0,w1=!1;var _=0;if(Ic=null,_=Ba(),Wi===YM)Eg(Xc,_,r7);else{var M=Xc,z=_,ee=Wi===WR;!$n||z<=M||(ma?ma.run(console.timeStamp.bind(console,ee?"Waiting for Paint":"Waiting",M,z,en,Pt,"secondary-light")):console.timeStamp(ee?"Waiting for Paint":"Waiting",M,z,en,Pt,"secondary-light"))}M=nn,nn|=xo;var ne=u.current;fc(),Jp(ne);var Q=u.current;ne=tO,fc(),pv(u,Q,S,m,ne),nm(u),nn=M;var pe=Ba();if(Q=_,ne=ma,Ic!==null?$E(Q,pe,Ic,!0,ne):!$n||pe<=Q||(ne?ne.run(console.timeStamp.bind(console,"Remaining Effects",Q,pe,en,Pt,"secondary-dark")):console.timeStamp("Remaining Effects",Q,pe,en,Pt,"secondary-dark")),wu(S,pe),Ko(0,!1),w1?u===G0?Ah++:(Ah=0,G0=u):Ah=0,w1=lO=!1,_a&&typeof _a.onPostCommitFiberRoot=="function")try{_a.onPostCommitFiberRoot(Vc,u)}catch(Ze){ai||(ai=!0,console.error("React instrumentation encountered an error: %o",Ze))}var Ge=u.current.stateNode;return Ge.effectDuration=0,Ge.passiveEffectDuration=0,!0}finally{cn.p=h,ve.T=l,Rv(e,t)}}function Rl(e,t,l){t=ml(l,t),QE(t),t=jp(e.stateNode,t,2),e=Ho(e,t,2),e!==null&&(Da(e,2),Gl(e))}function jt(e,t,l){if(oy=!1,e.tag===3)Rl(e,e,l);else{for(;t!==null;){if(t.tag===3){Rl(t,e,l);return}if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(jf===null||!jf.has(u))){e=ml(l,e),QE(e),l=Np(2),u=Ho(t,l,2),u!==null&&(zp(l,u,t,e),Da(u,2),Gl(u));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
247
|
+
|
|
248
|
+
Error message:
|
|
249
|
+
|
|
250
|
+
%s`,l)}}function em(e,t,l){var u=e.pingCache;if(u===null){u=e.pingCache=new p7;var h=new Set;u.set(t,h)}else h=u.get(t),h===void 0&&(h=new Set,u.set(t,h));h.has(l)||(FR=!0,h.add(l),u=kl.bind(null,e,t,l),li&&Xs(e,l),t.then(u,u))}function kl(e,t,l){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,(l&127)!==0?0>ku&&(ph=ku=$a(),g0=r1("Promise Resolved"),_f=o1):(l&4194048)!==0&&0>di&&(Zc=di=$a(),b0=r1("Promise Resolved"),MR=o1),vv()&&ve.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
251
|
+
|
|
252
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
253
|
+
|
|
254
|
+
act(() => {
|
|
255
|
+
/* finish loading suspended data */
|
|
256
|
+
});
|
|
257
|
+
/* assert on the output */
|
|
258
|
+
|
|
259
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),wn===e&&($t&l)===l&&(Wn===Cf||Wn===S1&&($t&62914560)===$t&&Ba()-O1<GM?(nn&el)===dl&&Jo(e,0):KR|=l,Oh===$t&&(Oh=0)),Gl(e)}function Ov(e,t){t===0&&(t=Rt()),e=rl(e,t),e!==null&&(Da(e,t),Gl(e))}function ki(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ov(e,l)}function wc(e,t){var l=0;switch(e.tag){case 31:case 13:var u=e.stateNode,h=e.memoizedState;h!==null&&(l=h.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),Ov(e,l)}function fo(e,t,l){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var u=e,h=t,m=h.type===Cl;m=l||m,h.tag!==22?h.flags&67108864?m&&Le(h,tm,u,h):fo(u,h,m):h.memoizedState===null&&(m&&h.flags&8192?Le(h,tm,u,h):h.subtreeFlags&67108864&&Le(h,fo,u,h,m)),t=t.sibling}}function tm(e,t){Je(!0);try{Ip(t),yv(t),hv(e,t.alternate,t,!1),$d(e,t,0,null,!1,0)}finally{Je(!1)}}function nm(e){var t=!0;e.current.mode&(Il|Zi)||(t=!1),fo(e,e.current,t)}function Ur(e){if((nn&el)===dl){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=me(e)||"ReactComponent",M1!==null){if(M1.has(t))return;M1.add(t)}else M1=new Set([t]);Le(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Xs(e,t){li&&e.memoizedUpdaters.forEach(function(l){ea(e,l,t)})}function Is(e,t){var l=ve.actQueue;return l!==null?(l.push(t),g7):e0(e,t)}function qd(e){vv()&&ve.actQueue===null&&Le(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
260
|
+
|
|
261
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
262
|
+
|
|
263
|
+
act(() => {
|
|
264
|
+
/* fire events that update state */
|
|
265
|
+
});
|
|
266
|
+
/* assert on the output */
|
|
267
|
+
|
|
268
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,me(e))})}function Gl(e){e!==iy&&e.next===null&&(iy===null?j1=iy=e:iy=iy.next=e),N1=!0,ve.actQueue!==null?oO||(oO=!0,dS()):rO||(rO=!0,dS())}function Ko(e,t){if(!iO&&N1){iO=!0;do for(var l=!1,u=j1;u!==null;){if(e!==0){var h=u.pendingLanes;if(h===0)var m=0;else{var S=u.suspendedLanes,_=u.pingedLanes;m=(1<<31-Ka(42|e)+1)-1,m&=h&~(S&~_),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,Yd(u,m))}else m=$t,m=Xr(u,u===wn?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==Mh),(m&3)===0||jn(u,m)||(l=!0,Yd(u,m));u=u.next}while(l);iO=!1}}function fS(){X0=window.event,am()}function am(){N1=oO=rO=!1;var e=0;Uf!==0&&wv()&&(e=Uf);for(var t=Ba(),l=null,u=j1;u!==null;){var h=u.next,m=Zs(u,t);m===0?(u.next=null,l===null?j1=h:l.next=h,h===null&&(iy=l)):(l=u,(e!==0||(m&3)!==0)&&(N1=!0)),u=h}Ya!==Nf&&Ya!==D1||Ko(e),Uf!==0&&(Uf=0)}function Zs(e,t){for(var l=e.suspendedLanes,u=e.pingedLanes,h=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var S=31-Ka(m),_=1<<S,M=h[S];M===-1?((_&l)===0||(_&u)!==0)&&(h[S]=Ll(_,t)):M<=t&&(e.expiredLanes|=_),m&=~_}if(t=wn,l=$t,l=Xr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Mh),u=e.callbackNode,l===0||e===t&&(Tn===_h||Tn===Rh)||e.cancelPendingCommit!==null)return u!==null&&lm(u),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||jn(e,l)){if(t=l&-l,t!==e.callbackPriority||ve.actQueue!==null&&u!==uO)lm(u);else return t;switch(ta(l)){case Ra:case Pa:l=Dm;break;case cl:l=$c;break;case Hu:l=wm;break;default:l=$c}return u=Av.bind(null,e),ve.actQueue!==null?(ve.actQueue.push(u),l=uO):l=e0(l,u),e.callbackPriority=t,e.callbackNode=l,t}return u!==null&&lm(u),e.callbackPriority=2,e.callbackNode=null,2}function Av(e,t){if(f1=s1=!1,X0=window.event,Ya!==Nf&&Ya!==D1)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Wi===C1&&(Wi=WR),kd()&&e.callbackNode!==l)return null;var u=$t;return u=Xr(e,e===wn?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Mh),u===0?null:(iS(e,u,t),Zs(e,Ba()),e.callbackNode!=null&&e.callbackNode===l?Av.bind(null,e):null)}function Yd(e,t){if(kd())return null;s1=f1,f1=!1,iS(e,t,!0)}function lm(e){e!==uO&&e!==null&&Om(e)}function dS(){ve.actQueue!==null&&ve.actQueue.push(function(){return am(),null}),A7(function(){(nn&(el|xo))!==dl?e0(t0,fS):am()})}function Cv(){if(Uf===0){var e=gh;e===0&&(e=hf,hf<<=1,(hf&261888)===0&&(hf=256)),Uf=e}return Uf}function ln(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Vt(e,"action"),Wf(""+e))}function bn(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function It(e,t,l,u,h){if(t==="submit"&&l&&l.stateNode===h){var m=ln((h[Dl]||null).action),S=u.submitter;S&&(t=(t=S[Dl]||null)?ln(t.formAction):S.getAttribute("formAction"),t!==null&&(m=t,S=null));var _=new PS("action","action",null,u,h);e.push({event:_,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Uf!==0){var M=S?bn(h,S):new FormData(h),z={pending:!0,data:M,method:h.method,action:m};Object.freeze(z),Bi(l,z,null,M)}}else typeof m=="function"&&(_.preventDefault(),M=S?bn(h,S):new FormData(h),z={pending:!0,data:M,method:h.method,action:m},Object.freeze(z),Bi(l,z,m,M))},currentTarget:h}]})}}function kt(e,t,l){e.currentTarget=l;try{t(e)}catch(u){ER(u)}e.currentTarget=null}function hn(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var u=e[l];e:{var h=void 0,m=u.event;if(u=u.listeners,t)for(var S=u.length-1;0<=S;S--){var _=u[S],M=_.instance,z=_.currentTarget;if(_=_.listener,M!==h&&m.isPropagationStopped())break e;M!==null?Le(M,kt,m,_,z):kt(m,_,z),h=M}else for(S=0;S<u.length;S++){if(_=u[S],M=_.instance,z=_.currentTarget,_=_.listener,M!==h&&m.isPropagationStopped())break e;M!==null?Le(M,kt,m,_,z):kt(m,_,z),h=M}}}}function yt(e,t){cO.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var l=t[kc];l===void 0&&(l=t[kc]=new Set);var u=e+"__bubble";l.has(u)||(rm(t,e,2,!1),l.add(u))}function Po(e,t,l){cO.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),rm(l,e,u,t)}function Mu(e){if(!e[z1]){e[z1]=!0,IS.forEach(function(l){l!=="selectionchange"&&(cO.has(l)||Po(l,!1,e),Po(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[z1]||(t[z1]=!0,Po("selectionchange",!1,t))}}function rm(e,t,l,u){switch(bm(t)){case Ra:var h=qv;break;case Pa:h=Fa;break;default:h=Yv}l=h.bind(null,t,l,e),h=void 0,!sR||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(h=!0),u?h!==void 0?e.addEventListener(t,l,{capture:!0,passive:h}):e.addEventListener(t,l,!0):h!==void 0?e.addEventListener(t,l,{passive:h}):e.addEventListener(t,l,!1)}function ho(e,t,l,u,h){var m=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var _=u.stateNode.containerInfo;if(_===h)break;if(S===4)for(S=u.return;S!==null;){var M=S.tag;if((M===3||M===4)&&S.stateNode.containerInfo===h)return;S=S.return}for(;_!==null;){if(S=we(_),S===null)return;if(M=S.tag,M===5||M===6||M===26||M===27){u=m=S;continue e}_=_.parentNode}}u=u.return}np(function(){var z=m,ee=Fr(l),ne=[];e:{var Q=Nw.get(e);if(Q!==void 0){var pe=PS,Ge=e;switch(e){case"keypress":if(ed(l)===0)break e;case"keydown":case"keyup":pe=j$;break;case"focusin":Ge="focus",pe=pR;break;case"focusout":Ge="blur",pe=pR;break;case"beforeblur":case"afterblur":pe=pR;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=bw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=E$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=U$;break;case Dw:case ww:case Mw:pe=x$;break;case jw:pe=B$;break;case"scroll":case"scrollend":pe=v$;break;case"wheel":pe=$$;break;case"copy":case"cut":case"paste":pe=R$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Sw;break;case"toggle":case"beforetoggle":pe=k$}var Ze=(t&4)!==0,zn=!Ze&&(e==="scroll"||e==="scrollend"),Wt=Ze?Q!==null?Q+"Capture":null:Q;Ze=[];for(var q=z,X;q!==null;){var W=q;if(X=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||X===null||Wt===null||(W=jo(q,Wt),W!=null&&Ze.push(Cn(q,W,X))),zn)break;q=q.return}0<Ze.length&&(Q=new pe(Q,Ge,null,l,ee),ne.push({event:Q,listeners:Ze}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",pe=e==="mouseout"||e==="pointerout",Q&&l!==o0&&(Ge=l.relatedTarget||l.fromElement)&&(we(Ge)||Ge[Ii]))break e;if((pe||Q)&&(Q=ee.window===ee?ee:(Q=ee.ownerDocument)?Q.defaultView||Q.parentWindow:window,pe?(Ge=l.relatedTarget||l.toElement,pe=z,Ge=Ge?we(Ge):null,Ge!==null&&(zn=V(Ge),Ze=Ge.tag,Ge!==zn||Ze!==5&&Ze!==27&&Ze!==6)&&(Ge=null)):(pe=null,Ge=z),pe!==Ge)){if(Ze=bw,W="onMouseLeave",Wt="onMouseEnter",q="mouse",(e==="pointerout"||e==="pointerover")&&(Ze=Sw,W="onPointerLeave",Wt="onPointerEnter",q="pointer"),zn=pe==null?Q:Fe(pe),X=Ge==null?Q:Fe(Ge),Q=new Ze(W,q+"leave",pe,l,ee),Q.target=zn,Q.relatedTarget=X,W=null,we(ee)===z&&(Ze=new Ze(Wt,q+"enter",Ge,l,ee),Ze.target=X,Ze.relatedTarget=zn,W=Ze),zn=W,pe&&Ge)t:{for(Ze=Mc,Wt=pe,q=Ge,X=0,W=Wt;W;W=Ze(W))X++;W=0;for(var xe=q;xe;xe=Ze(xe))W++;for(;0<X-W;)Wt=Ze(Wt),X--;for(;0<W-X;)q=Ze(q),W--;for(;X--;){if(Wt===q||q!==null&&Wt===q.alternate){Ze=Wt;break t}Wt=Ze(Wt),q=Ze(q)}Ze=null}else Ze=null;pe!==null&&om(ne,Q,pe,Ze,!1),Ge!==null&&zn!==null&&om(ne,zn,Ge,Ze,!0)}}e:{if(Q=z?Fe(z):window,pe=Q.nodeName&&Q.nodeName.toLowerCase(),pe==="select"||pe==="input"&&Q.type==="file")var qe=iu;else if(hg(Q))if(Aw)qe=ld;else{qe=pg;var Tt=F_}else pe=Q.nodeName,!pe||pe.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?z&&Mo(z.elementType)&&(qe=iu):qe=mg;if(qe&&(qe=qe(e,z))){nd(ne,qe,l,ee);break e}Tt&&Tt(e,Q,z),e==="focusout"&&z&&Q.type==="number"&&z.memoizedProps.value!=null&&mt(Q,"number",Q.value)}switch(Tt=z?Fe(z):window,e){case"focusin":(hg(Tt)||Tt.contentEditable==="true")&&(Hm=Tt,yR=z,h0=null);break;case"focusout":h0=yR=Hm=null;break;case"mousedown":gR=!0;break;case"contextmenu":case"mouseup":case"dragend":gR=!1,zE(ne,l,ee);break;case"selectionchange":if(Q$)break;case"keydown":case"keyup":zE(ne,l,ee)}var ut;if(mR)e:{switch(e){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else Bm?ys(e,l)&&(at="onCompositionEnd"):e==="keydown"&&l.keyCode===Tw&&(at="onCompositionStart");at&&(xw&&l.locale!=="ko"&&(Bm||at!=="onCompositionStart"?at==="onCompositionEnd"&&Bm&&(ut=tc()):(vf=ee,fR="value"in vf?vf.value:vf.textContent,Bm=!0)),Tt=po(z,at),0<Tt.length&&(at=new Ew(at,e,null,l,ee),ne.push({event:at,listeners:Tt}),ut?at.data=ut:(ut=Ai(l),ut!==null&&(at.data=ut)))),(ut=q$?dg(e,l):ap(e,l))&&(at=po(z,"onBeforeInput"),0<at.length&&(Tt=new A$("onBeforeInput","beforeinput",null,l,ee),ne.push({event:Tt,listeners:at}),Tt.data=ut)),It(ne,e,z,l,ee)}hn(ne,t)})}function Cn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function po(e,t){for(var l=t+"Capture",u=[];e!==null;){var h=e,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=jo(e,l),h!=null&&u.unshift(Cn(e,h,m)),h=jo(e,t),h!=null&&u.push(Cn(e,h,m))),e.tag===3)return u;e=e.return}return[]}function Mc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function om(e,t,l,u,h){for(var m=t._reactName,S=[];l!==null&&l!==u;){var _=l,M=_.alternate,z=_.stateNode;if(_=_.tag,M!==null&&M===u)break;_!==5&&_!==26&&_!==27||z===null||(M=z,h?(z=jo(l,m),z!=null&&S.unshift(Cn(l,z,M))):h||(z=jo(l,m),z!=null&&S.push(Cn(l,z,M)))),l=l.return}S.length!==0&&e.push({event:t,listeners:S})}function Ol(e,t){DE(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||gw||(gw=!0,e==="select"&&t.multiple?console.error("`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):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var l={registrationNameDependencies:ri,possibleRegistrationNames:yf};Mo(e)||typeof t.is=="string"||J_(e,t,l),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("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.")}function Xn(e,t,l,u){t!==l&&(l=mo(l),mo(t)!==l&&(u[e]=t))}function Qd(e,t,l){t.forEach(function(u){l[Gi(u)]=u==="style"?ju(e):e.getAttribute(u)})}function In(e,t){t===!1?console.error("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):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function im(e,t){return e=e.namespaceURI===_t||e.namespaceURI===Nt?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function mo(e){return an(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ct(e)),Mt(e)),(typeof e=="string"?e:""+e).replace(v7,`
|
|
269
|
+
`).replace(b7,"")}function Dv(e,t){return t=mo(t),mo(e)===t}function un(e,t,l,u,h,m){switch(l){case"children":typeof u=="string"?(Pf(u,t,!1),t==="body"||t==="textarea"&&u===""||ec(e,u)):(typeof u=="number"||typeof u=="bigint")&&(Pf(""+u,t,!1),t!=="body"&&ec(e,""+u));break;case"className":Pu(e,"class",u);break;case"tabIndex":Pu(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Pu(e,l,u);break;case"style":cg(e,u,m);break;case"data":if(t!=="object"){Pu(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||l!=="href")){console.error(l==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l),e.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}Vt(u,l),u=Wf(""+u),e.setAttribute(l,u);break;case"action":case"formAction":if(u!=null&&(t==="form"?l==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(h.encType==null&&h.method==null||B1||(B1=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),h.target==null||L1||(L1=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?l==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||h.type==="submit"||h.type==="image"||U1?t!=="button"||h.type==null||h.type==="submit"||U1?typeof u=="function"&&(h.name==null||nj||(nj=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),h.formEncType==null&&h.formMethod==null||B1||(B1=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),h.formTarget==null||L1||(L1=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(U1=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(U1=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(l==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(l==="formAction"?(t!=="input"&&un(e,t,"name",h.name,h,null),un(e,t,"formEncType",h.formEncType,h,null),un(e,t,"formMethod",h.formMethod,h,null),un(e,t,"formTarget",h.formTarget,h,null)):(un(e,t,"encType",h.encType,h,null),un(e,t,"method",h.method,h,null),un(e,t,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}Vt(u,l),u=Wf(""+u),e.setAttribute(l,u);break;case"onClick":u!=null&&(typeof u!="function"&&In(l,u),e.onclick=Rr);break;case"onScroll":u!=null&&(typeof u!="function"&&In(l,u),yt("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&In(l,u),yt("scrollend",e));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=u.__html,l!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}Vt(u,l),l=Wf(""+u),e.setAttributeNS(Ch,"xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?(Vt(u,l),e.setAttribute(l,""+u)):e.removeAttribute(l);break;case"inert":u!==""||H1[l]||(H1[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":u===!0?e.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(Vt(u,l),e.setAttribute(l,u)):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(Vt(u,l),e.setAttribute(l,u)):e.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(l):(Vt(u,l),e.setAttribute(l,u));break;case"popover":yt("beforetoggle",e),yt("toggle",e),Ri(e,"popover",u);break;case"xlinkActuate":xr(e,Ch,"xlink:actuate",u);break;case"xlinkArcrole":xr(e,Ch,"xlink:arcrole",u);break;case"xlinkRole":xr(e,Ch,"xlink:role",u);break;case"xlinkShow":xr(e,Ch,"xlink:show",u);break;case"xlinkTitle":xr(e,Ch,"xlink:title",u);break;case"xlinkType":xr(e,Ch,"xlink:type",u);break;case"xmlBase":xr(e,sO,"xml:base",u);break;case"xmlLang":xr(e,sO,"xml:lang",u);break;case"xmlSpace":xr(e,sO,"xml:space",u);break;case"is":m!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ri(e,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":aj||u==null||typeof u!="object"||(aj=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"?(l=AE(l),Ri(e,l,u)):ri.hasOwnProperty(l)&&u!=null&&typeof u!="function"&&In(l,u)}}function Js(e,t,l,u,h,m){switch(l){case"style":cg(e,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=u.__html,l!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"children":typeof u=="string"?ec(e,u):(typeof u=="number"||typeof u=="bigint")&&ec(e,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&In(l,u),yt("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&In(l,u),yt("scrollend",e));break;case"onClick":u!=null&&(typeof u!="function"&&In(l,u),e.onclick=Rr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ri.hasOwnProperty(l))u!=null&&typeof u!="function"&&In(l,u);else e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),t=l.slice(2,h?l.length-7:void 0),m=e[Dl]||null,m=m!=null?m[l]:null,typeof m=="function"&&e.removeEventListener(t,m,h),typeof u=="function")){typeof m!="function"&&m!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,u,h);break e}l in e?e[l]=u:u===!0?e.setAttribute(l,""):Ri(e,l,u)}}}function Bn(e,t,l){switch(Ol(t,l),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",e),yt("load",e);var u=!1,h=!1,m;for(m in l)if(l.hasOwnProperty(m)){var S=l[m];if(S!=null)switch(m){case"src":u=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:un(e,t,m,S,l,null)}}h&&un(e,t,"srcSet",l.srcSet,l,null),u&&un(e,t,"src",l.src,l,null);return;case"input":ba("input",l),yt("invalid",e);var _=m=S=h=null,M=null,z=null;for(u in l)if(l.hasOwnProperty(u)){var ee=l[u];if(ee!=null)switch(u){case"name":h=ee;break;case"type":S=ee;break;case"checked":M=ee;break;case"defaultChecked":z=ee;break;case"value":m=ee;break;case"defaultValue":_=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:un(e,t,u,ee,l,null)}}Xe(e,l),rt(e,m,_,M,z,S,h,!1);return;case"select":ba("select",l),yt("invalid",e),u=S=m=null;for(h in l)if(l.hasOwnProperty(h)&&(_=l[h],_!=null))switch(h){case"value":m=_;break;case"defaultValue":S=_;break;case"multiple":u=_;default:un(e,t,h,_,l,null)}gn(e,l),t=m,l=S,e.multiple=!!u,t!=null?xt(e,!!u,t,!1):l!=null&&xt(e,!!u,l,!0);return;case"textarea":ba("textarea",l),yt("invalid",e),m=h=u=null;for(S in l)if(l.hasOwnProperty(S)&&(_=l[S],_!=null))switch(S){case"value":u=_;break;case"defaultValue":h=_;break;case"children":m=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:un(e,t,S,_,l,null)}Rn(e,l),Kt(e,u,h,m);return;case"option":lt(e,l);for(M in l)if(l.hasOwnProperty(M)&&(u=l[M],u!=null))switch(M){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:un(e,t,M,u,l,null)}return;case"dialog":yt("beforetoggle",e),yt("toggle",e),yt("cancel",e),yt("close",e);break;case"iframe":case"object":yt("load",e);break;case"video":case"audio":for(u=0;u<q0.length;u++)yt(q0[u],e);break;case"image":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"embed":case"source":case"link":yt("error",e),yt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(u=l[z],u!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:un(e,t,z,u,l,null)}return;default:if(Mo(t)){for(ee in l)l.hasOwnProperty(ee)&&(u=l[ee],u!==void 0&&Js(e,t,ee,u,l,void 0));return}}for(_ in l)l.hasOwnProperty(_)&&(u=l[_],u!=null&&un(e,t,_,u,l,null))}function xa(e,t,l,u){switch(Ol(t,u),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,S=null,_=null,M=null,z=null,ee=null;for(pe in l){var ne=l[pe];if(l.hasOwnProperty(pe)&&ne!=null)switch(pe){case"checked":break;case"value":break;case"defaultValue":M=ne;default:u.hasOwnProperty(pe)||un(e,t,pe,null,u,ne)}}for(var Q in u){var pe=u[Q];if(ne=l[Q],u.hasOwnProperty(Q)&&(pe!=null||ne!=null))switch(Q){case"type":m=pe;break;case"name":h=pe;break;case"checked":z=pe;break;case"defaultChecked":ee=pe;break;case"value":S=pe;break;case"defaultValue":_=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:pe!==ne&&un(e,t,Q,pe,u,ne)}}t=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,t||!u||tj||(console.error("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://react.dev/link/controlled-components"),tj=!0),!t||u||ej||(console.error("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://react.dev/link/controlled-components"),ej=!0),Ie(e,S,_,M,z,ee,m,h);return;case"select":pe=S=_=Q=null;for(m in l)if(M=l[m],l.hasOwnProperty(m)&&M!=null)switch(m){case"value":break;case"multiple":pe=M;default:u.hasOwnProperty(m)||un(e,t,m,null,u,M)}for(h in u)if(m=u[h],M=l[h],u.hasOwnProperty(h)&&(m!=null||M!=null))switch(h){case"value":Q=m;break;case"defaultValue":_=m;break;case"multiple":S=m;default:m!==M&&un(e,t,h,m,u,M)}u=_,t=S,l=pe,Q!=null?xt(e,!!t,Q,!1):!!l!=!!t&&(u!=null?xt(e,!!t,u,!0):xt(e,!!t,t?[]:"",!1));return;case"textarea":pe=Q=null;for(_ in l)if(h=l[_],l.hasOwnProperty(_)&&h!=null&&!u.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:un(e,t,_,null,u,h)}for(S in u)if(h=u[S],m=l[S],u.hasOwnProperty(S)&&(h!=null||m!=null))switch(S){case"value":Q=h;break;case"defaultValue":pe=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:h!==m&&un(e,t,S,h,u,m)}Yn(e,Q,pe);return;case"option":for(var Ge in l)if(Q=l[Ge],l.hasOwnProperty(Ge)&&Q!=null&&!u.hasOwnProperty(Ge))switch(Ge){case"selected":e.selected=!1;break;default:un(e,t,Ge,null,u,Q)}for(M in u)if(Q=u[M],pe=l[M],u.hasOwnProperty(M)&&Q!==pe&&(Q!=null||pe!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:un(e,t,M,Q,u,pe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ze in l)Q=l[Ze],l.hasOwnProperty(Ze)&&Q!=null&&!u.hasOwnProperty(Ze)&&un(e,t,Ze,null,u,Q);for(z in u)if(Q=u[z],pe=l[z],u.hasOwnProperty(z)&&Q!==pe&&(Q!=null||pe!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:un(e,t,z,Q,u,pe)}return;default:if(Mo(t)){for(var zn in l)Q=l[zn],l.hasOwnProperty(zn)&&Q!==void 0&&!u.hasOwnProperty(zn)&&Js(e,t,zn,void 0,u,Q);for(ee in u)Q=u[ee],pe=l[ee],!u.hasOwnProperty(ee)||Q===pe||Q===void 0&&pe===void 0||Js(e,t,ee,Q,u,pe);return}}for(var Wt in l)Q=l[Wt],l.hasOwnProperty(Wt)&&Q!=null&&!u.hasOwnProperty(Wt)&&un(e,t,Wt,null,u,Q);for(ne in u)Q=u[ne],pe=l[ne],!u.hasOwnProperty(ne)||Q===pe||Q==null&&pe==null||un(e,t,ne,Q,u,pe)}function Gi(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function ju(e){var t={};e=e.style;for(var l=0;l<e.length;l++){var u=e[l];t[u]=e.getPropertyValue(u)}return t}function Wo(e,t,l){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var u,h=u="",m;for(m in t)if(t.hasOwnProperty(m)){var S=t[m];S!=null&&typeof S!="boolean"&&S!==""&&(m.indexOf("--")===0?(sn(S,m),u+=h+m+":"+(""+S).trim()):typeof S!="number"||S===0||nt.has(m)?(sn(S,m),u+=h+m.replace(be,"-$1").toLowerCase().replace(We,"-ms-")+":"+(""+S).trim()):u+=h+m.replace(be,"-$1").toLowerCase().replace(We,"-ms-")+":"+S+"px",h=";")}u=u||null,t=e.getAttribute("style"),t!==u&&(u=mo(u),mo(t)!==u&&(l.style=ju(e)))}}function ql(e,t,l,u,h,m){if(h.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(Vt(u,t),e===""+u)return}Xn(t,e,u,m)}function um(e,t,l,u,h,m){if(h.delete(l),e=e.getAttribute(l),e===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}Xn(t,e,u,m)}function cm(e,t,l,u,h,m){if(h.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if(Vt(u,l),e===""+u)return}Xn(t,e,u,m)}function Fs(e,t,l,u,h,m){if(h.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&(Vt(u,t),e===""+u))return}Xn(t,e,u,m)}function Xd(e,t,l,u,h,m){if(h.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(Vt(u,t),l=Wf(""+u),e===l)return}Xn(t,e,u,m)}function Yl(e,t,l,u){for(var h={},m=new Set,S=e.attributes,_=0;_<S.length;_++)switch(S[_].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:m.add(S[_].name)}if(Mo(t)){for(var M in l)if(l.hasOwnProperty(M)){var z=l[M];if(z!=null){if(ri.hasOwnProperty(M))typeof z!="function"&&In(M,z);else if(l.suppressHydrationWarning!==!0)switch(M){case"children":typeof z!="string"&&typeof z!="number"||Xn("children",e.textContent,z,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":S=e.innerHTML,z=z?z.__html:void 0,z!=null&&(z=im(e,z),Xn(M,S,z,h));continue;case"style":m.delete(M),Wo(e,z,h);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":m.delete(M.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",M);continue;case"className":m.delete("class"),S=Kl(e,"class",z),Xn("className",S,z,h);continue;default:u.context===ts&&t!=="svg"&&t!=="math"?m.delete(M.toLowerCase()):m.delete(M),S=Kl(e,M,z),Xn(M,S,z,h)}}}}else for(z in l)if(l.hasOwnProperty(z)&&(M=l[z],M!=null)){if(ri.hasOwnProperty(z))typeof M!="function"&&In(z,M);else if(l.suppressHydrationWarning!==!0)switch(z){case"children":typeof M!="string"&&typeof M!="number"||Xn("children",e.textContent,M,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":S=e.innerHTML,M=M?M.__html:void 0,M!=null&&(M=im(e,M),S!==M&&(h[z]={__html:S}));continue;case"className":ql(e,z,"class",M,m,h);continue;case"tabIndex":ql(e,z,"tabindex",M,m,h);continue;case"style":m.delete(z),Wo(e,M,h);continue;case"multiple":m.delete(z),Xn(z,e.multiple,M,h);continue;case"muted":m.delete(z),Xn(z,e.muted,M,h);continue;case"autoFocus":m.delete("autofocus"),Xn(z,e.autofocus,M,h);continue;case"data":if(t!=="object"){m.delete(z),S=e.getAttribute("data"),Xn(z,S,M,h);continue}case"src":case"href":if(!(M!==""||t==="a"&&z==="href"||t==="object"&&z==="data")){console.error(z==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',z,z);continue}Xd(e,z,z,M,m,h);continue;case"action":case"formAction":if(S=e.getAttribute(z),typeof M=="function"){m.delete(z.toLowerCase()),z==="formAction"?(m.delete("name"),m.delete("formenctype"),m.delete("formmethod"),m.delete("formtarget")):(m.delete("enctype"),m.delete("method"),m.delete("target"));continue}else if(S===E7){m.delete(z.toLowerCase()),Xn(z,"function",M,h);continue}Xd(e,z,z.toLowerCase(),M,m,h);continue;case"xlinkHref":Xd(e,z,"xlink:href",M,m,h);continue;case"contentEditable":cm(e,z,"contenteditable",M,m,h);continue;case"spellCheck":cm(e,z,"spellcheck",M,m,h);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":cm(e,z,z,M,m,h);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":um(e,z,z.toLowerCase(),M,m,h);continue;case"capture":case"download":e:{_=e;var ee=S=z,ne=h;if(m.delete(ee),_=_.getAttribute(ee),_===null)switch(typeof M){case"undefined":case"function":case"symbol":break e;default:if(M===!1)break e}else if(M!=null)switch(typeof M){case"function":case"symbol":break;case"boolean":if(M===!0&&_==="")break e;break;default:if(Vt(M,S),_===""+M)break e}Xn(S,_,M,ne)}continue;case"cols":case"rows":case"size":case"span":e:{if(_=e,ee=S=z,ne=h,m.delete(ee),_=_.getAttribute(ee),_===null)switch(typeof M){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(M)||1>M)break e}else if(M!=null)switch(typeof M){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(M)||1>M)&&(Vt(M,S),_===""+M))break e}Xn(S,_,M,ne)}continue;case"rowSpan":Fs(e,z,"rowspan",M,m,h);continue;case"start":Fs(e,z,z,M,m,h);continue;case"xHeight":ql(e,z,"x-height",M,m,h);continue;case"xlinkActuate":ql(e,z,"xlink:actuate",M,m,h);continue;case"xlinkArcrole":ql(e,z,"xlink:arcrole",M,m,h);continue;case"xlinkRole":ql(e,z,"xlink:role",M,m,h);continue;case"xlinkShow":ql(e,z,"xlink:show",M,m,h);continue;case"xlinkTitle":ql(e,z,"xlink:title",M,m,h);continue;case"xlinkType":ql(e,z,"xlink:type",M,m,h);continue;case"xmlBase":ql(e,z,"xml:base",M,m,h);continue;case"xmlLang":ql(e,z,"xml:lang",M,m,h);continue;case"xmlSpace":ql(e,z,"xml:space",M,m,h);continue;case"inert":M!==""||H1[z]||(H1[z]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",z)),um(e,z,z,M,m,h);continue;default:if(!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"){_=AE(z),S=!1,u.context===ts&&t!=="svg"&&t!=="math"?m.delete(_.toLowerCase()):(ee=z.toLowerCase(),ee=bo.hasOwnProperty(ee)&&bo[ee]||null,ee!==null&&ee!==z&&(S=!0,m.delete(ee)),m.delete(_));e:if(ee=e,ne=_,_=M,Ia(ne))if(ee.hasAttribute(ne))ee=ee.getAttribute(ne),Vt(_,ne),_=ee===""+_?_:ee;else{switch(typeof _){case"function":case"symbol":break e;case"boolean":if(ee=ne.toLowerCase().slice(0,5),ee!=="data-"&&ee!=="aria-")break e}_=_===void 0?void 0:null}else _=void 0;S||Xn(z,_,M,h)}}}return 0<m.size&&l.suppressHydrationWarning!==!0&&Qd(e,m,h),Object.keys(h).length===0?null:h}function hS(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Al(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var h=l[u],m=h.transferSize,S=h.initiatorType,_=h.duration;if(m&&_&&Al(S)){for(S=0,_=h.responseEnd,u+=1;u<l.length;u++){var M=l[u],z=M.startTime;if(z>_)break;var ee=M.transferSize,ne=M.initiatorType;ee&&Al(ne)&&(M=M.responseEnd,S+=ee*(M<_?1:(_-z)/(M-z)))}if(--u,t+=8*(m+S)/(h.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Id(e){return e.nodeType===9?e:e.ownerDocument}function mS(e){switch(e){case Nt:return cy;case _t:return V1;default:return ts}}function qi(e,t){if(e===ts)switch(t){case"svg":return cy;case"math":return V1;default:return ts}return e===cy&&t==="foreignObject"?ts:e}function Ks(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function wv(){var e=window.event;return e&&e.type==="popstate"?e===pO?!1:(pO=e,!0):(pO=null,!1)}function ei(){var e=window.event;return e&&e!==X0?e.type:null}function Ps(){var e=window.event;return e&&e!==X0?e.timeStamp:-1.1}function yS(e){setTimeout(function(){throw e})}function gS(e,t,l){switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&e.focus();break;case"img":l.src?e.src=l.src:l.srcSet&&(e.srcset=l.srcSet)}}function vS(){}function sm(e,t,l,u){xa(e,t,l,u),e[Dl]=u}function fm(e){ec(e,"")}function aR(e,t,l){e.nodeValue=l}function bS(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Dl]||null;if(t!==null){var l=Be(e);l!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,Le(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,Le(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Nu(e){return e==="head"}function ES(e,t){e.removeChild(t)}function SS(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function jc(e,t){var l=t,u=0;do{var h=l.nextSibling;if(e.removeChild(l),h&&h.nodeType===8)if(l=h.data,l===Q0||l===$1){if(u===0){e.removeChild(h),Lc(t);return}u--}else if(l===Y0||l===Lf||l===wh||l===uy||l===Dh)u++;else if(l===T7)Qi(e.ownerDocument.documentElement);else if(l===_7){l=e.ownerDocument.head,Qi(l);for(var m=l.firstChild;m;){var S=m.nextSibling,_=m.nodeName;m[mf]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=S}}else l===x7&&Qi(e.ownerDocument.body);l=h}while(l);Lc(t)}function Zd(e,t){var l=e;e=0;do{var u=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l===Q0){if(e===0)break;e--}else l!==Y0&&l!==Lf&&l!==wh&&l!==uy||e++;l=u}while(l)}function TS(e){Zd(e,!0)}function xS(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function _S(e){e.nodeValue=""}function RS(e){Zd(e,!1)}function OS(e,t){t=t[R7],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function AS(e,t){e.nodeValue=t}function Ws(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ws(l),oe(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function CS(e,t,l,u){for(;e.nodeType===1;){var h=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[mf])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Vt(h.name,"name");var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=dr(e.nextSibling),e===null)break}return null}function DS(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=dr(e.nextSibling),e===null))return null;return e}function pn(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dr(e.nextSibling),e===null))return null;return e}function Jd(e){return e.data===Lf||e.data===wh}function Mv(e){return e.data===uy||e.data===Lf&&e.ownerDocument.readyState!==rj}function wS(e,t){var l=e.ownerDocument;if(e.data===wh)e._reactRetry=t;else if(e.data!==Lf||l.readyState!==rj)t();else{var u=function(){t(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function dr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Y0||t===uy||t===Lf||t===wh||t===Dh||t===fO||t===lj)break;if(t===Q0||t===$1)return null}}return e}function MS(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),l={},u=e.attributes,h=0;h<u.length;h++){var m=u[h];l[Gi(m.name)]=m.name.toLowerCase()==="style"?ju(e):m.value}return{type:t,props:l}}return e.nodeType===8?e.data===Dh?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function jS(e,t,l){return l===null||l[S7]!==!0?(e.nodeValue===t?e=null:(t=mo(t),e=mo(e.nodeValue)===t?null:e.nodeValue),e):null}function ef(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l===Q0||l===$1){if(t===0)return dr(e.nextSibling);t--}else l!==Y0&&l!==uy&&l!==Lf&&l!==wh&&l!==Dh||t++}e=e.nextSibling}return null}function Nc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l===Y0||l===uy||l===Lf||l===wh||l===Dh){if(t===0)return e;t--}else l!==Q0&&l!==$1||t++}e=e.previousSibling}return null}function jv(e){Lc(e)}function dm(e){Lc(e)}function Nv(e){Lc(e)}function Yi(e,t,l,u,h){switch(h&&Kf(e,u.ancestorInfo),t=Id(l),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function ti(e,t,l,u){if(!l[Ii]&&Be(l)){var h=l.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",h,h,h)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(h=l.attributes;h.length;)l.removeAttributeNode(h[0]);Bn(l,e,t),l[Hn]=u,l[Dl]=t}function Qi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);oe(e)}function hm(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function zv(e,t,l){var u=sy;if(u&&typeof t=="string"&&t){var h=Ve(t);h='link[rel="'+e+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),fj.has(h)||(fj.add(h),e={rel:e,crossOrigin:l,href:t},u.querySelector(h)===null&&(t=u.createElement("link"),Bn(t,"link",e),tt(t),u.head.appendChild(t)))}}function Uv(e,t,l,u){var h=(h=hr.current)?hm(h):null;if(!h)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=zc(l.href),t=ct(h).hoistableStyles,u=t.get(l),u||(u={type:"style",instance:null,count:0,state:null},t.set(l,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=zc(l.href);var m=ct(h).hoistableStyles,S=m.get(e);if(!S&&(h=h.ownerDocument||h,S={type:"stylesheet",instance:null,count:0,state:{loading:jh,preload:null}},m.set(e,S),(m=h.querySelector(Kd(e)))&&!m._p&&(S.instance=m,S.state.loading=I0|yi),!gi.has(e))){var _={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};gi.set(e,_),m||NS(h,e,_,S.state)}if(t&&u===null)throw l=`
|
|
270
|
+
|
|
271
|
+
- `+Fd(t)+`
|
|
272
|
+
+ `+Fd(l),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return S}if(t&&u!==null)throw l=`
|
|
273
|
+
|
|
274
|
+
- `+Fd(t)+`
|
|
275
|
+
+ `+Fd(l),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Uc(l),t=ct(h).hoistableScripts,u=t.get(l),u||(u={type:"script",instance:null,count:0,state:null},t.set(l,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Fd(e){var t=0,l="<link";return typeof e.rel=="string"?(t++,l+=' rel="'+e.rel+'"'):pr.call(e,"rel")&&(t++,l+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,l+=' href="'+e.href+'"'):pr.call(e,"href")&&(t++,l+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,l+=' precedence="'+e.precedence+'"'):pr.call(e,"precedence")&&(t++,l+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(l+=" ..."),l+" />"}function zc(e){return'href="'+Ve(e)+'"'}function Kd(e){return'link[rel="stylesheet"]['+e+"]"}function pm(e){return Lt({},e,{"data-precedence":e.precedence,precedence:null})}function NS(e,t,l,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=I0:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=I0}),t.addEventListener("error",function(){return u.loading|=cj}),Bn(t,"link",l),tt(t),e.head.appendChild(t))}function Uc(e){return'[src="'+Ve(e)+'"]'}function Pd(e){return"script[async]"+e}function mm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+Ve(l.href)+'"]');if(u)return t.instance=u,tt(u),u;var h=Lt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),tt(u),Bn(u,"style",h),tf(u,l.precedence,e),t.instance=u;case"stylesheet":h=zc(l.href);var m=e.querySelector(Kd(h));if(m)return t.state.loading|=yi,t.instance=m,tt(m),m;u=pm(l),(h=gi.get(h))&&Lv(u,h),m=(e.ownerDocument||e).createElement("link"),tt(m);var S=m;return S._p=new Promise(function(_,M){S.onload=_,S.onerror=M}),Bn(m,"link",u),t.state.loading|=yi,tf(m,l.precedence,e),t.instance=m;case"script":return m=Uc(l.src),(h=e.querySelector(Pd(m)))?(t.instance=h,tt(h),h):(u=l,(h=gi.get(m))&&(u=Lt({},l),Bv(u,h)),e=e.ownerDocument||e,h=e.createElement("script"),tt(h),Bn(h,"link",u),e.head.appendChild(h),t.instance=h);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&yi)===jh&&(u=t.instance,t.state.loading|=yi,tf(u,l.precedence,e));return t.instance}function tf(e,t,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,m=h,S=0;S<u.length;S++){var _=u[S];if(_.dataset.precedence===t)m=_;else if(m!==h)break}m?m.parentNode.insertBefore(e,m.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Lv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Bv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function nf(e,t,l){if(k1===null){var u=new Map,h=k1=new Map;h.set(l,u)}else h=k1,u=h.get(l),u||(u=new Map,h.set(l,u));if(u.has(e))return u;for(u.set(e,null),l=l.getElementsByTagName(e),h=0;h<l.length;h++){var m=l[h];if(!(m[mf]||m[Hn]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!==Nt){var S=m.getAttribute(t)||"";S=e+S;var _=u.get(S);_?_.push(m):u.set(S,[m])}}return u}function zS(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function US(e,t,l){var u=!l.ancestorInfo.containerTagInScope;if(l.context===cy||t.itemProp!=null)return!u||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var h=t.onError,m=t.disabled;l=[],t.onLoad&&l.push("`onLoad`"),h&&l.push("`onError`"),m!=null&&l.push("`disabled`"),h=hS(l,"and"),h+=l.length===1?" prop":" props",m=l.length===1?"an "+h:"the "+h,l.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,m,h)}u&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){u&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Yt(e){return!(e.type==="stylesheet"&&(e.state.loading&sj)===jh)}function Hv(e,t,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&yi)===jh){if(l.instance===null){var h=zc(u.href),m=t.querySelector(Kd(h));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=af.bind(e),t.then(e,e)),l.state.loading|=yi,l.instance=m,tt(m);return}m=t.ownerDocument||t,u=pm(u),(h=gi.get(h))&&Lv(u,h),m=m.createElement("link"),tt(m);var S=m;S._p=new Promise(function(_,M){S.onload=_,S.onerror=M}),Bn(m,"link",u),l.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&sj)===jh&&(e.count++,l=af.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}function ym(e,t){return e.stylesheets&&e.count===0&&Wd(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var u=setTimeout(function(){if(e.stylesheets&&Wd(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},C7+t);0<e.imgBytes&&yO===0&&(yO=125*pS()*w7);var h=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wd(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>yO?50:D7)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function af(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Wd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,G1=new Map,t.forEach($v,e),G1=null,af.call(e))}function $v(e,t){if(!(t.state.loading&yi)){var l=G1.get(e);if(l)var u=l.get(gO);else{l=new Map,G1.set(e,l);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var S=h[m];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),u=S)}u&&l.set(gO,u)}h=t.instance,S=h.getAttribute("data-precedence"),m=l.get(S)||u,m===u&&l.set(gO,h),l.set(S,h),this.count++,u=af.bind(this),h.addEventListener("load",u),h.addEventListener("error",u),m?m.parentNode.insertBefore(h,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),t.state.loading|=yi}}function eh(e,t,l,u,h,m,S,_,M){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Mh,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.hiddenUpdates=tl(null),this.identifierPrefix=u,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function th(e,t,l,u,h,m,S,_,M,z,ee,ne){return e=new eh(e,t,l,S,M,z,ee,ne,_),t=e7,m===!0&&(t|=Il|Zi),t|=Bt,m=A(3,null,null,t),e.current=m,m.stateNode=e,t=mp(),sc(t),e.pooledCache=t,sc(t),m.memoizedState={element:u,isDehydrated:l,cache:t},Xt(m),e}function LS(e){return e?(e=Sf,e):Sf}function gm(e,t,l,u,h,m){if(_a&&typeof _a.onScheduleFiberRoot=="function")try{_a.onScheduleFiberRoot(Vc,u,l)}catch(S){ai||(ai=!0,console.error("React instrumentation encountered an error: %o",S))}h=LS(h),u.context===null?u.context=h:u.pendingContext=h,ni&&Xl!==null&&!mj&&(mj=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
276
|
+
|
|
277
|
+
Check the render method of %s.`,me(Xl)||"Unknown")),u=Sa(t),u.payload={element:l},m=m===void 0?null:m,m!==null&&(typeof m!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",m),u.callback=m),l=Ho(e,u,t),l!==null&&(Uo(t,"root.render()",null),vt(l,e,t),jr(l,e,t))}function BS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Vv(e,t){BS(e,t),(e=e.alternate)&&BS(e,t)}function kv(e){if(e.tag===13||e.tag===31){var t=rl(e,67108864);t!==null&&vt(t,e,67108864),Vv(e,67108864)}}function Gv(e){if(e.tag===13||e.tag===31){var t=il(e);t=al(t);var l=rl(e,t);l!==null&&vt(l,e,t),Vv(e,t)}}function En(){return Xl}function qv(e,t,l,u){var h=ve.T;ve.T=null;var m=cn.p;try{cn.p=Ra,Yv(e,t,l,u)}finally{cn.p=m,ve.T=h}}function Fa(e,t,l,u){var h=ve.T;ve.T=null;var m=cn.p;try{cn.p=Pa,Yv(e,t,l,u)}finally{cn.p=m,ve.T=h}}function Yv(e,t,l,u){if(Y1){var h=vm(u);if(h===null)ho(e,t,u,Q1,l),Em(e,u);else if(HS(h,e,t,l,u))u.stopPropagation();else if(Em(e,u),t&4&&-1<j7.indexOf(e)){for(;h!==null;){var m=Be(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=Ul(m.pendingLanes);if(S!==0){var _=m;for(_.pendingLanes|=2,_.entangledLanes|=2;S;){var M=1<<31-Ka(S);_.entanglements[1]|=M,S&=~M}Gl(m),(nn&(el|xo))===dl&&(A1=Ba()+qM,Ko(0))}}break;case 31:case 13:_=rl(m,2),_!==null&&vt(_,m,2),fr(),Vv(m,2)}if(m=vm(u),m===null&&ho(e,t,u,Q1,l),m===h)break;h=m}h!==null&&u.stopPropagation()}else ho(e,t,u,null,l)}}function vm(e){return e=Fr(e),Qv(e)}function Qv(e){if(Q1=null,e=we(e),e!==null){var t=V(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=J(t),e!==null)return e;e=null}else if(l===31){if(e=F(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Q1=e,null}function bm(e){switch(e){case"beforetoggle":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"toggle":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 Ra;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Pa;case"message":switch(ih()){case t0:return Ra;case Dm:return Pa;case $c:case YS:return cl;case wm:return Hu;default:return cl}default:return cl}}function Em(e,t){switch(e){case"focusin":case"focusout":Bf=null;break;case"dragenter":case"dragleave":Hf=null;break;case"mouseover":case"mouseout":$f=null;break;case"pointerover":case"pointerout":J0.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":F0.delete(t.pointerId)}}function zu(e,t,l,u,h,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[h]},t!==null&&(t=Be(t),t!==null&&kv(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,h!==null&&t.indexOf(h)===-1&&t.push(h),e)}function HS(e,t,l,u,h){switch(t){case"focusin":return Bf=zu(Bf,e,t,l,u,h),!0;case"dragenter":return Hf=zu(Hf,e,t,l,u,h),!0;case"mouseover":return $f=zu($f,e,t,l,u,h),!0;case"pointerover":var m=h.pointerId;return J0.set(m,zu(J0.get(m)||null,e,t,l,u,h)),!0;case"gotpointercapture":return m=h.pointerId,F0.set(m,zu(F0.get(m)||null,e,t,l,u,h)),!0}return!1}function Xv(e){var t=we(e.target);if(t!==null){var l=V(t);if(l!==null){if(t=l.tag,t===13){if(t=J(l),t!==null){e.blockedOn=t,U(e.priority,function(){Gv(l)});return}}else if(t===31){if(t=F(l),t!==null){e.blockedOn=t,U(e.priority,function(){Gv(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=vm(e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l),h=u;o0!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),o0=h,l.target.dispatchEvent(u),o0===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),o0=null}else return t=Be(l),t!==null&&kv(t),e.blockedOn=l,!1;t.shift()}return!0}function Sm(e,t,l){lf(e)&&l.delete(t)}function lR(){vO=!1,Bf!==null&&lf(Bf)&&(Bf=null),Hf!==null&&lf(Hf)&&(Hf=null),$f!==null&&lf($f)&&($f=null),J0.forEach(Sm),F0.forEach(Sm)}function nh(e,t){e.blockedOn===t&&(e.blockedOn=null,vO||(vO=!0,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,lR)))}function $S(e){X1!==e&&(X1=e,ua.unstable_scheduleCallback(ua.unstable_NormalPriority,function(){X1===e&&(X1=null);for(var t=0;t<e.length;t+=3){var l=e[t],u=e[t+1],h=e[t+2];if(typeof u!="function"){if(Qv(u||l)===null)continue;break}var m=Be(l);m!==null&&(e.splice(t,3),t-=3,l={pending:!0,data:h,method:l.method,action:u},Object.freeze(l),Bi(m,l,u,h))}}))}function Lc(e){function t(M){return nh(M,e)}Bf!==null&&nh(Bf,e),Hf!==null&&nh(Hf,e),$f!==null&&nh($f,e),J0.forEach(t),F0.forEach(t);for(var l=0;l<Vf.length;l++){var u=Vf[l];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Vf.length&&(l=Vf[0],l.blockedOn===null);)Xv(l),l.blockedOn===null&&Vf.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var h=l[u],m=l[u+1],S=h[Dl]||null;if(typeof m=="function")S||$S(l);else if(S){var _=null;if(m&&m.hasAttribute("formAction")){if(h=m,S=m[Dl]||null)_=S.formAction;else if(Qv(h)!==null)continue}else _=S.action;typeof _=="function"?l[u+1]=_:(l.splice(u,3),u-=3),$S(l)}}}function VS(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(S){return h=S})},focusReset:"manual",scroll:"manual"})}function t(){h!==null&&(h(),h=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),h!==null&&(h(),h=null)}}}function Iv(e){this._internalRoot=e}function yo(e){this._internalRoot=e}function Zv(e){e[Ii]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("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."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ua=CO(),ah=ls(),rR=J1(),Lt=Object.assign,kS=Symbol.for("react.element"),Lr=Symbol.for("react.transitional.element"),Uu=Symbol.for("react.portal"),rf=Symbol.for("react.fragment"),Cl=Symbol.for("react.strict_mode"),lh=Symbol.for("react.profiler"),Tm=Symbol.for("react.consumer"),go=Symbol.for("react.context"),of=Symbol.for("react.forward_ref"),Bc=Symbol.for("react.suspense"),Ql=Symbol.for("react.suspense_list"),rh=Symbol.for("react.memo"),ul=Symbol.for("react.lazy"),vo=Symbol.for("react.activity"),oR=Symbol.for("react.memo_cache_sentinel"),GS=Symbol.iterator,uf=Symbol.for("react.client.reference"),pa=Array.isArray,ve=ah.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cn=rR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,iR=Object.freeze({pending:!1,data:null,method:null,action:null}),Jv=[],Fv=[],Xi=-1,Lu=je(null),cf=je(null),hr=je(null),Bu=je(null),sf=0,qS,Hc,ff,Kv,oh,xm,_m;se.__reactDisabledLog=!0;var df,Pv,Rm=!1,Wv=new(typeof WeakMap=="function"?WeakMap:Map),Xl=null,ni=!1,pr=Object.prototype.hasOwnProperty,e0=ua.unstable_scheduleCallback,Om=ua.unstable_cancelCallback,Am=ua.unstable_shouldYield,Cm=ua.unstable_requestPaint,Ba=ua.unstable_now,ih=ua.unstable_getCurrentPriorityLevel,t0=ua.unstable_ImmediatePriority,Dm=ua.unstable_UserBlockingPriority,$c=ua.unstable_NormalPriority,YS=ua.unstable_LowPriority,wm=ua.unstable_IdlePriority,n0=ua.log,QS=ua.unstable_setDisableYieldValue,Vc=null,_a=null,ai=!1,li=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ka=Math.clz32?Math.clz32:Tr,a0=Math.log,Mm=Math.LN2,hf=256,uh=262144,pf=4194304,Ra=2,Pa=8,cl=32,Hu=268435456,Br=Math.random().toString(36).slice(2),Hn="__reactFiber$"+Br,Dl="__reactProps$"+Br,Ii="__reactContainer$"+Br,kc="__reactEvents$"+Br,uR="__reactListeners$"+Br,XS="__reactHandles$"+Br,ch="__reactResources$"+Br,mf="__reactMarker$"+Br,IS=new Set,ri={},yf={},ZS={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gf=RegExp("^[: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]*$"),l0={},jm={},Nm=/[\n"\\]/g,r0=!1,JS=!1,sh=!1,a=!1,r=!1,i=!1,f=["value","defaultValue"],g=!1,b=/["'&<>\n\t]|^\s|\s$/,C="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".split(" "),B="applet caption html table td th marquee object template foreignObject desc title".split(" "),I=B.concat(["button"]),de="dd dt li option optgroup p rp rt".split(" "),Te={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Oe={},he={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),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".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),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".split(" "),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"]},be=/([A-Z])/g,We=/^ms-/,ht=/^(?:webkit|moz|o)[A-Z]/,Sn=/^-ms-/,ie=/-(.)/g,te=/;\s*$/,fe={},_e={},ot=!1,tn=!1,nt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),_t="http://www.w3.org/1998/Math/MathML",Nt="http://www.w3.org/2000/svg",rn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bo={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",fetchpriority:"fetchPriority",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",inert:"inert",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",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",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",transformorigin:"transformOrigin","transform-origin":"transformOrigin",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"},FS={"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,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},zm={},d$=RegExp("^(aria)-[: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]*$"),h$=RegExp("^(aria)[A-Z][: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]*$"),gw=!1,mr={},vw=/^on./,p$=/^on[^A-Z]/,m$=RegExp("^(aria)-[: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]*$"),y$=RegExp("^(aria)[A-Z][: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]*$"),g$=/^[\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,o0=null,Um=null,Lm=null,cR=!1,$u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sR=!1;if($u)try{var i0={};Object.defineProperty(i0,"passive",{get:function(){sR=!0}}),window.addEventListener("test",i0,i0),window.removeEventListener("test",i0,i0)}catch{sR=!1}var vf=null,fR=null,KS=null,fh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},PS=wa(fh),u0=Lt({},fh,{view:0,detail:0}),v$=wa(u0),dR,hR,c0,WS=Lt({},u0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:td,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:(e!==c0&&(c0&&e.type==="mousemove"?(dR=e.screenX-c0.screenX,hR=e.screenY-c0.screenY):hR=dR=0,c0=e),dR)},movementY:function(e){return"movementY"in e?e.movementY:hR}}),bw=wa(WS),b$=Lt({},WS,{dataTransfer:0}),E$=wa(b$),S$=Lt({},u0,{relatedTarget:0}),pR=wa(S$),T$=Lt({},fh,{animationName:0,elapsedTime:0,pseudoElement:0}),x$=wa(T$),_$=Lt({},fh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R$=wa(_$),O$=Lt({},fh,{data:0}),Ew=wa(O$),A$=Ew,C$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D$={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"},w$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},M$=Lt({},u0,{key:function(e){if(e.key){var t=C$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ed(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:td,charCode:function(e){return e.type==="keypress"?ed(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ed(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),j$=wa(M$),N$=Lt({},WS,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sw=wa(N$),z$=Lt({},u0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:td}),U$=wa(z$),L$=Lt({},fh,{propertyName:0,elapsedTime:0,pseudoElement:0}),B$=wa(L$),H$=Lt({},WS,{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}),$$=wa(H$),V$=Lt({},fh,{newState:0,oldState:0}),k$=wa(V$),G$=[9,13,27,32],Tw=229,mR=$u&&"CompositionEvent"in window,s0=null;$u&&"documentMode"in document&&(s0=document.documentMode);var q$=$u&&"TextEvent"in window&&!s0,xw=$u&&(!mR||s0&&8<s0&&11>=s0),_w=32,Rw=String.fromCharCode(_w),Ow=!1,Bm=!1,Y$={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},f0=null,d0=null,Aw=!1;$u&&(Aw=lp("input")&&(!document.documentMode||9<document.documentMode));var yr=typeof Object.is=="function"?Object.is:rp,Q$=$u&&"documentMode"in document&&11>=document.documentMode,Hm=null,yR=null,h0=null,gR=!1,$m={animationend:nc("Animation","AnimationEnd"),animationiteration:nc("Animation","AnimationIteration"),animationstart:nc("Animation","AnimationStart"),transitionrun:nc("Transition","TransitionRun"),transitionstart:nc("Transition","TransitionStart"),transitioncancel:nc("Transition","TransitionCancel"),transitionend:nc("Transition","TransitionEnd")},vR={},Cw={};$u&&(Cw=document.createElement("div").style,"AnimationEvent"in window||(delete $m.animationend.animation,delete $m.animationiteration.animation,delete $m.animationstart.animation),"TransitionEvent"in window||delete $m.transitionend.transition);var Dw=ac("animationend"),ww=ac("animationiteration"),Mw=ac("animationstart"),X$=ac("transitionrun"),I$=ac("transitionstart"),Z$=ac("transitioncancel"),jw=ac("transitionend"),Nw=new Map,bR="abort auxClick beforeToggle 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(" ");bR.push("scrollEnd");var zw=0;if(typeof performance=="object"&&typeof performance.now=="function")var J$=performance,Uw=function(){return J$.now()};else{var F$=Date;Uw=function(){return F$.now()}}var ER=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},K$="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",e1=0,SR=1,TR=2,xR=3,t1="– ",n1="+ ",Lw=" ",$n=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",oi="Components ⚛",Pt="Scheduler ⚛",en="Blocking",bf=!1,Gc={color:"primary",properties:null,tooltipText:"",track:oi},Ef={start:-0,end:-0,detail:{devtools:Gc}},P$=["Changed Props",""],Bw="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",W$=["Changed Props",Bw],p0=1,qc=2,ii=[],Vm=0,_R=0,Sf={};Object.freeze(Sf);var ui=null,km=null,gt=0,e7=1,Bt=2,Il=8,Zi=16,t7=32,Hw=!1;try{var $w=Object.preventExtensions({})}catch{Hw=!0}var RR=new WeakMap,Gm=[],qm=0,a1=null,m0=0,ci=[],si=0,dh=null,Yc=1,Qc="",wl=null,Vn=null,Jt=!1,Vu=!1,Eo=null,Tf=null,fi=!1,OR=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),AR=je(null),CR=je(null),Vw={},l1=null,Ym=null,Qm=!1,n7=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},a7=ua.unstable_scheduleCallback,l7=ua.unstable_NormalPriority,Ha={$$typeof:go,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},$a=ua.unstable_now,r1=console.createTask?console.createTask:function(){return null},y0=1,o1=2,sl=-0,xf=-0,Xc=-0,Ic=null,gr=-1.1,hh=-0,Pn=-0,st=-1.1,pt=-1.1,Zn=null,ca=!1,ph=-0,ku=-1.1,g0=null,_f=0,DR=null,wR=null,mh=-1.1,v0=null,Xm=-1.1,i1=-1.1,Zc=-0,Jc=-1.1,di=-1.1,MR=0,b0=null,kw=null,Gw=null,Rf=-1.1,yh=null,Of=-1.1,u1=-1.1,qw=-0,Yw=-0,c1=0,r7=null,Qw=0,E0=-1.1,s1=!1,f1=!1,S0=null,jR=0,gh=0,Im=null,Xw=ve.S;ve.S=function(e,t){if(kM=Ba(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Jc&&0>di){Jc=$a();var l=Ps(),u=ei();(l!==Of||u!==yh)&&(Of=-1.1),Rf=l,yh=u}wi(e,t)}Xw!==null&&Xw(e,t)};var vh=je(null),Ji={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},T0=[],x0=[],_0=[],R0=[],O0=[],A0=[],bh=new Set;Ji.recordUnsafeLifecycleWarnings=function(e,t){bh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&T0.push(e),e.mode&Il&&typeof t.UNSAFE_componentWillMount=="function"&&x0.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&_0.push(e),e.mode&Il&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&R0.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&O0.push(e),e.mode&Il&&typeof t.UNSAFE_componentWillUpdate=="function"&&A0.push(e))},Ji.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<T0.length&&(T0.forEach(function(_){e.add(me(_)||"Component"),bh.add(_.type)}),T0=[]);var t=new Set;0<x0.length&&(x0.forEach(function(_){t.add(me(_)||"Component"),bh.add(_.type)}),x0=[]);var l=new Set;0<_0.length&&(_0.forEach(function(_){l.add(me(_)||"Component"),bh.add(_.type)}),_0=[]);var u=new Set;0<R0.length&&(R0.forEach(function(_){u.add(me(_)||"Component"),bh.add(_.type)}),R0=[]);var h=new Set;0<O0.length&&(O0.forEach(function(_){h.add(me(_)||"Component"),bh.add(_.type)}),O0=[]);var m=new Set;if(0<A0.length&&(A0.forEach(function(_){m.add(me(_)||"Component"),bh.add(_.type)}),A0=[]),0<t.size){var S=R(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
278
|
+
|
|
279
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
280
|
+
|
|
281
|
+
Please update the following components: %s`,S)}0<u.size&&(S=R(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
282
|
+
|
|
283
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
284
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
285
|
+
|
|
286
|
+
Please update the following components: %s`,S)),0<m.size&&(S=R(m),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
287
|
+
|
|
288
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
289
|
+
|
|
290
|
+
Please update the following components: %s`,S)),0<e.size&&(S=R(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
291
|
+
|
|
292
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
293
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
294
|
+
|
|
295
|
+
Please update the following components: %s`,S)),0<l.size&&(S=R(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
296
|
+
|
|
297
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
298
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
299
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
300
|
+
|
|
301
|
+
Please update the following components: %s`,S)),0<h.size&&(S=R(h),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
302
|
+
|
|
303
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
304
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
305
|
+
|
|
306
|
+
Please update the following components: %s`,S))};var d1=new Map,Iw=new Set;Ji.recordLegacyContextWarning=function(e,t){for(var l=null,u=e;u!==null;)u.mode&Il&&(l=u),u=u.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Iw.has(e.type)&&(u=d1.get(l),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(u===void 0&&(u=[],d1.set(l,u)),u.push(e))},Ji.flushLegacyContextWarning=function(){d1.forEach(function(e){if(e.length!==0){var t=e[0],l=new Set;e.forEach(function(h){l.add(me(h)||"Component"),Iw.add(h.type)});var u=R(l);Le(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
307
|
+
|
|
308
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
309
|
+
|
|
310
|
+
Please update the following components: %s
|
|
311
|
+
|
|
312
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},Ji.discardPendingWarnings=function(){T0=[],x0=[],_0=[],R0=[],O0=[],A0=[],d1=new Map};var Zw={react_stack_bottom_frame:function(e,t,l){var u=ni;ni=!0;try{return e(t,l)}finally{ni=u}}},NR=Zw.react_stack_bottom_frame.bind(Zw),Jw={react_stack_bottom_frame:function(e){var t=ni;ni=!0;try{return e.render()}finally{ni=t}}},Fw=Jw.react_stack_bottom_frame.bind(Jw),Kw={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(l){jt(e,e.return,l)}}},zR=Kw.react_stack_bottom_frame.bind(Kw),Pw={react_stack_bottom_frame:function(e,t,l,u,h){try{t.componentDidUpdate(l,u,h)}catch(m){jt(e,e.return,m)}}},Ww=Pw.react_stack_bottom_frame.bind(Pw),eM={react_stack_bottom_frame:function(e,t){var l=t.stack;e.componentDidCatch(t.value,{componentStack:l!==null?l:""})}},o7=eM.react_stack_bottom_frame.bind(eM),tM={react_stack_bottom_frame:function(e,t,l){try{l.componentWillUnmount()}catch(u){jt(e,t,u)}}},nM=tM.react_stack_bottom_frame.bind(tM),aM={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},i7=aM.react_stack_bottom_frame.bind(aM),lM={react_stack_bottom_frame:function(e,t,l){try{l()}catch(u){jt(e,t,u)}}},u7=lM.react_stack_bottom_frame.bind(lM),rM={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},c7=rM.react_stack_bottom_frame.bind(rM),Zm=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),UR=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),h1=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),p1={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Eh=null,C0=!1,Jm=null,D0=0,Ht=null,LR,oM=LR=!1,iM={},uM={},cM={};O=function(e,t,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var u=me(e),h=u||"null";if(!iM[h]){iM[h]=!0,l=l._owner,e=e._debugOwner;var m="";e&&typeof e.tag=="number"&&(h=me(e))&&(m=`
|
|
313
|
+
|
|
314
|
+
Check the render method of \``+h+"`."),m||u&&(m=`
|
|
315
|
+
|
|
316
|
+
Check the top-level render call using <`+u+">.");var S="";l!=null&&e!==l&&(u=null,typeof l.tag=="number"?u=me(l):typeof l.name=="string"&&(u=l.name),u&&(S=" It was passed a child from "+u+".")),Le(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',m,S)})}}};var Sh=ja(!0),sM=ja(!1),fM=0,dM=1,hM=2,BR=3,Af=!1,pM=!1,HR=null,$R=!1,Fm=je(null),m1=je(0),So=je(null),hi=null,Km=1,w0=2,Oa=je(0),y1=0,pi=1,vr=2,To=4,br=8,Pm,mM=new Set,yM=new Set,VR=new Set,gM=new Set,Fc=0,St=null,Dn=null,Va=null,g1=!1,Wm=!1,Th=!1,v1=0,M0=0,Kc=null,s7=0,f7=25,ge=null,mi=null,Pc=-1,j0=!1,N0={readContext:on,use:zi,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useLayoutEffect:Fn,useInsertionEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useSyncExternalStore:Fn,useId:Fn,useHostTransitionStatus:Fn,useFormState:Fn,useActionState:Fn,useOptimistic:Fn,useMemoCache:Fn,useCacheRefresh:Fn};N0.useEffectEvent=Fn;var kR=null,vM=null,GR=null,bM=null,Gu=null,Fi=null,b1=null;kR={readContext:function(e){return on(e)},use:zi,useCallback:function(e,t){return ge="useCallback",Et(),Ni(t),Op(e,t)},useContext:function(e){return ge="useContext",Et(),on(e)},useEffect:function(e,t){return ge="useEffect",Et(),Ni(t),Ec(e,t)},useImperativeHandle:function(e,t,l){return ge="useImperativeHandle",Et(),Ni(l),Go(e,t,l)},useInsertionEffect:function(e,t){ge="useInsertionEffect",Et(),Ni(t),xu(4,vr,e,t)},useLayoutEffect:function(e,t){return ge="useLayoutEffect",Et(),Ni(t),El(e,t)},useMemo:function(e,t){ge="useMemo",Et(),Ni(t);var l=ve.H;ve.H=Gu;try{return Sl(e,t)}finally{ve.H=l}},useReducer:function(e,t,l){ge="useReducer",Et();var u=ve.H;ve.H=Gu;try{return Cs(e,t,l)}finally{ve.H=u}},useRef:function(e){return ge="useRef",Et(),Rp(e)},useState:function(e){ge="useState",Et();var t=ve.H;ve.H=Gu;try{return bu(e)}finally{ve.H=t}},useDebugValue:function(){ge="useDebugValue",Et()},useDeferredValue:function(e,t){return ge="useDeferredValue",Et(),Ns(e,t)},useTransition:function(){return ge="useTransition",Et(),_u()},useSyncExternalStore:function(e,t,l){return ge="useSyncExternalStore",Et(),Ds(e,t,l)},useId:function(){return ge="useId",Et(),Rd()},useFormState:function(e,t){return ge="useFormState",Et(),pd(),or(e,t)},useActionState:function(e,t){return ge="useActionState",Et(),or(e,t)},useOptimistic:function(e){return ge="useOptimistic",Et(),bc(e)},useHostTransitionStatus:Hi,useMemoCache:lr,useCacheRefresh:function(){return ge="useCacheRefresh",Et(),Ap()},useEffectEvent:function(e){return ge="useEffectEvent",Et(),xd(e)}},vM={readContext:function(e){return on(e)},use:zi,useCallback:function(e,t){return ge="useCallback",Ce(),Op(e,t)},useContext:function(e){return ge="useContext",Ce(),on(e)},useEffect:function(e,t){return ge="useEffect",Ce(),Ec(e,t)},useImperativeHandle:function(e,t,l){return ge="useImperativeHandle",Ce(),Go(e,t,l)},useInsertionEffect:function(e,t){ge="useInsertionEffect",Ce(),xu(4,vr,e,t)},useLayoutEffect:function(e,t){return ge="useLayoutEffect",Ce(),El(e,t)},useMemo:function(e,t){ge="useMemo",Ce();var l=ve.H;ve.H=Gu;try{return Sl(e,t)}finally{ve.H=l}},useReducer:function(e,t,l){ge="useReducer",Ce();var u=ve.H;ve.H=Gu;try{return Cs(e,t,l)}finally{ve.H=u}},useRef:function(e){return ge="useRef",Ce(),Rp(e)},useState:function(e){ge="useState",Ce();var t=ve.H;ve.H=Gu;try{return bu(e)}finally{ve.H=t}},useDebugValue:function(){ge="useDebugValue",Ce()},useDeferredValue:function(e,t){return ge="useDeferredValue",Ce(),Ns(e,t)},useTransition:function(){return ge="useTransition",Ce(),_u()},useSyncExternalStore:function(e,t,l){return ge="useSyncExternalStore",Ce(),Ds(e,t,l)},useId:function(){return ge="useId",Ce(),Rd()},useActionState:function(e,t){return ge="useActionState",Ce(),or(e,t)},useFormState:function(e,t){return ge="useFormState",Ce(),pd(),or(e,t)},useOptimistic:function(e){return ge="useOptimistic",Ce(),bc(e)},useHostTransitionStatus:Hi,useMemoCache:lr,useCacheRefresh:function(){return ge="useCacheRefresh",Ce(),Ap()},useEffectEvent:function(e){return ge="useEffectEvent",Ce(),xd(e)}},GR={readContext:function(e){return on(e)},use:zi,useCallback:function(e,t){return ge="useCallback",Ce(),io(e,t)},useContext:function(e){return ge="useContext",Ce(),on(e)},useEffect:function(e,t){ge="useEffect",Ce(),Ta(2048,br,e,t)},useImperativeHandle:function(e,t,l){return ge="useImperativeHandle",Ce(),js(e,t,l)},useInsertionEffect:function(e,t){return ge="useInsertionEffect",Ce(),Ta(4,vr,e,t)},useLayoutEffect:function(e,t){return ge="useLayoutEffect",Ce(),Ta(4,To,e,t)},useMemo:function(e,t){ge="useMemo",Ce();var l=ve.H;ve.H=Fi;try{return Ln(e,t)}finally{ve.H=l}},useReducer:function(e,t,l){ge="useReducer",Ce();var u=ve.H;ve.H=Fi;try{return yc(e,t,l)}finally{ve.H=u}},useRef:function(){return ge="useRef",Ce(),fn().memoizedState},useState:function(){ge="useState",Ce();var e=ve.H;ve.H=Fi;try{return yc(rr)}finally{ve.H=e}},useDebugValue:function(){ge="useDebugValue",Ce()},useDeferredValue:function(e,t){return ge="useDeferredValue",Ce(),qo(e,t)},useTransition:function(){return ge="useTransition",Ce(),ZE()},useSyncExternalStore:function(e,t,l){return ge="useSyncExternalStore",Ce(),vc(e,t,l)},useId:function(){return ge="useId",Ce(),fn().memoizedState},useFormState:function(e){return ge="useFormState",Ce(),pd(),Su(e)},useActionState:function(e){return ge="useActionState",Ce(),Su(e)},useOptimistic:function(e,t){return ge="useOptimistic",Ce(),Ed(e,t)},useHostTransitionStatus:Hi,useMemoCache:lr,useCacheRefresh:function(){return ge="useCacheRefresh",Ce(),fn().memoizedState},useEffectEvent:function(e){return ge="useEffectEvent",Ce(),Ms(e)}},bM={readContext:function(e){return on(e)},use:zi,useCallback:function(e,t){return ge="useCallback",Ce(),io(e,t)},useContext:function(e){return ge="useContext",Ce(),on(e)},useEffect:function(e,t){ge="useEffect",Ce(),Ta(2048,br,e,t)},useImperativeHandle:function(e,t,l){return ge="useImperativeHandle",Ce(),js(e,t,l)},useInsertionEffect:function(e,t){return ge="useInsertionEffect",Ce(),Ta(4,vr,e,t)},useLayoutEffect:function(e,t){return ge="useLayoutEffect",Ce(),Ta(4,To,e,t)},useMemo:function(e,t){ge="useMemo",Ce();var l=ve.H;ve.H=b1;try{return Ln(e,t)}finally{ve.H=l}},useReducer:function(e,t,l){ge="useReducer",Ce();var u=ve.H;ve.H=b1;try{return gc(e,t,l)}finally{ve.H=u}},useRef:function(){return ge="useRef",Ce(),fn().memoizedState},useState:function(){ge="useState",Ce();var e=ve.H;ve.H=b1;try{return gc(rr)}finally{ve.H=e}},useDebugValue:function(){ge="useDebugValue",Ce()},useDeferredValue:function(e,t){return ge="useDeferredValue",Ce(),Ot(e,t)},useTransition:function(){return ge="useTransition",Ce(),Qn()},useSyncExternalStore:function(e,t,l){return ge="useSyncExternalStore",Ce(),vc(e,t,l)},useId:function(){return ge="useId",Ce(),fn().memoizedState},useFormState:function(e){return ge="useFormState",Ce(),pd(),Tu(e)},useActionState:function(e){return ge="useActionState",Ce(),Tu(e)},useOptimistic:function(e,t){return ge="useOptimistic",Ce(),Sd(e,t)},useHostTransitionStatus:Hi,useMemoCache:lr,useCacheRefresh:function(){return ge="useCacheRefresh",Ce(),fn().memoizedState},useEffectEvent:function(e){return ge="useEffectEvent",Ce(),Ms(e)}},Gu={readContext:function(e){return x(),on(e)},use:function(e){return v(),zi(e)},useCallback:function(e,t){return ge="useCallback",v(),Et(),Op(e,t)},useContext:function(e){return ge="useContext",v(),Et(),on(e)},useEffect:function(e,t){return ge="useEffect",v(),Et(),Ec(e,t)},useImperativeHandle:function(e,t,l){return ge="useImperativeHandle",v(),Et(),Go(e,t,l)},useInsertionEffect:function(e,t){ge="useInsertionEffect",v(),Et(),xu(4,vr,e,t)},useLayoutEffect:function(e,t){return ge="useLayoutEffect",v(),Et(),El(e,t)},useMemo:function(e,t){ge="useMemo",v(),Et();var l=ve.H;ve.H=Gu;try{return Sl(e,t)}finally{ve.H=l}},useReducer:function(e,t,l){ge="useReducer",v(),Et();var u=ve.H;ve.H=Gu;try{return Cs(e,t,l)}finally{ve.H=u}},useRef:function(e){return ge="useRef",v(),Et(),Rp(e)},useState:function(e){ge="useState",v(),Et();var t=ve.H;ve.H=Gu;try{return bu(e)}finally{ve.H=t}},useDebugValue:function(){ge="useDebugValue",v(),Et()},useDeferredValue:function(e,t){return ge="useDeferredValue",v(),Et(),Ns(e,t)},useTransition:function(){return ge="useTransition",v(),Et(),_u()},useSyncExternalStore:function(e,t,l){return ge="useSyncExternalStore",v(),Et(),Ds(e,t,l)},useId:function(){return ge="useId",v(),Et(),Rd()},useFormState:function(e,t){return ge="useFormState",v(),Et(),or(e,t)},useActionState:function(e,t){return ge="useActionState",v(),Et(),or(e,t)},useOptimistic:function(e){return ge="useOptimistic",v(),Et(),bc(e)},useMemoCache:function(e){return v(),lr(e)},useHostTransitionStatus:Hi,useCacheRefresh:function(){return ge="useCacheRefresh",Et(),Ap()},useEffectEvent:function(e){return ge="useEffectEvent",v(),Et(),xd(e)}},Fi={readContext:function(e){return x(),on(e)},use:function(e){return v(),zi(e)},useCallback:function(e,t){return ge="useCallback",v(),Ce(),io(e,t)},useContext:function(e){return ge="useContext",v(),Ce(),on(e)},useEffect:function(e,t){ge="useEffect",v(),Ce(),Ta(2048,br,e,t)},useImperativeHandle:function(e,t,l){return ge="useImperativeHandle",v(),Ce(),js(e,t,l)},useInsertionEffect:function(e,t){return ge="useInsertionEffect",v(),Ce(),Ta(4,vr,e,t)},useLayoutEffect:function(e,t){return ge="useLayoutEffect",v(),Ce(),Ta(4,To,e,t)},useMemo:function(e,t){ge="useMemo",v(),Ce();var l=ve.H;ve.H=Fi;try{return Ln(e,t)}finally{ve.H=l}},useReducer:function(e,t,l){ge="useReducer",v(),Ce();var u=ve.H;ve.H=Fi;try{return yc(e,t,l)}finally{ve.H=u}},useRef:function(){return ge="useRef",v(),Ce(),fn().memoizedState},useState:function(){ge="useState",v(),Ce();var e=ve.H;ve.H=Fi;try{return yc(rr)}finally{ve.H=e}},useDebugValue:function(){ge="useDebugValue",v(),Ce()},useDeferredValue:function(e,t){return ge="useDeferredValue",v(),Ce(),qo(e,t)},useTransition:function(){return ge="useTransition",v(),Ce(),ZE()},useSyncExternalStore:function(e,t,l){return ge="useSyncExternalStore",v(),Ce(),vc(e,t,l)},useId:function(){return ge="useId",v(),Ce(),fn().memoizedState},useFormState:function(e){return ge="useFormState",v(),Ce(),Su(e)},useActionState:function(e){return ge="useActionState",v(),Ce(),Su(e)},useOptimistic:function(e,t){return ge="useOptimistic",v(),Ce(),Ed(e,t)},useMemoCache:function(e){return v(),lr(e)},useHostTransitionStatus:Hi,useCacheRefresh:function(){return ge="useCacheRefresh",Ce(),fn().memoizedState},useEffectEvent:function(e){return ge="useEffectEvent",v(),Ce(),Ms(e)}},b1={readContext:function(e){return x(),on(e)},use:function(e){return v(),zi(e)},useCallback:function(e,t){return ge="useCallback",v(),Ce(),io(e,t)},useContext:function(e){return ge="useContext",v(),Ce(),on(e)},useEffect:function(e,t){ge="useEffect",v(),Ce(),Ta(2048,br,e,t)},useImperativeHandle:function(e,t,l){return ge="useImperativeHandle",v(),Ce(),js(e,t,l)},useInsertionEffect:function(e,t){return ge="useInsertionEffect",v(),Ce(),Ta(4,vr,e,t)},useLayoutEffect:function(e,t){return ge="useLayoutEffect",v(),Ce(),Ta(4,To,e,t)},useMemo:function(e,t){ge="useMemo",v(),Ce();var l=ve.H;ve.H=Fi;try{return Ln(e,t)}finally{ve.H=l}},useReducer:function(e,t,l){ge="useReducer",v(),Ce();var u=ve.H;ve.H=Fi;try{return gc(e,t,l)}finally{ve.H=u}},useRef:function(){return ge="useRef",v(),Ce(),fn().memoizedState},useState:function(){ge="useState",v(),Ce();var e=ve.H;ve.H=Fi;try{return gc(rr)}finally{ve.H=e}},useDebugValue:function(){ge="useDebugValue",v(),Ce()},useDeferredValue:function(e,t){return ge="useDeferredValue",v(),Ce(),Ot(e,t)},useTransition:function(){return ge="useTransition",v(),Ce(),Qn()},useSyncExternalStore:function(e,t,l){return ge="useSyncExternalStore",v(),Ce(),vc(e,t,l)},useId:function(){return ge="useId",v(),Ce(),fn().memoizedState},useFormState:function(e){return ge="useFormState",v(),Ce(),Tu(e)},useActionState:function(e){return ge="useActionState",v(),Ce(),Tu(e)},useOptimistic:function(e,t){return ge="useOptimistic",v(),Ce(),Sd(e,t)},useMemoCache:function(e){return v(),lr(e)},useHostTransitionStatus:Hi,useCacheRefresh:function(){return ge="useCacheRefresh",Ce(),fn().memoizedState},useEffectEvent:function(e){return ge="useEffectEvent",v(),Ce(),Ms(e)}};var EM={},SM=new Set,TM=new Set,xM=new Set,_M=new Set,RM=new Set,OM=new Set,AM=new Set,CM=new Set,DM=new Set,wM=new Set;Object.freeze(EM);var qR={enqueueSetState:function(e,t,l){e=e._reactInternals;var u=il(e),h=Sa(u);h.payload=t,l!=null&&(_c(l),h.callback=l),t=Ho(e,h,u),t!==null&&(Uo(u,"this.setState()",e),vt(t,e,u),jr(t,e,u))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var u=il(e),h=Sa(u);h.tag=dM,h.payload=t,l!=null&&(_c(l),h.callback=l),t=Ho(e,h,u),t!==null&&(Uo(u,"this.replaceState()",e),vt(t,e,u),jr(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=il(e),u=Sa(l);u.tag=hM,t!=null&&(_c(t),u.callback=t),t=Ho(e,u,l),t!==null&&(Uo(l,"this.forceUpdate()",e),vt(t,e,l),jr(t,e,l))}},ey=null,YR=null,QR=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ka=!1,MM={},jM={},NM={},zM={},ty=!1,UM={},E1={},XR={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},LM=!1,BM=null;BM=new Set;var Wc=!1,Ga=!1,IR=!1,HM=typeof WeakSet=="function"?WeakSet:Set,fl=null,ny=null,ay=null,qa=null,Hr=!1,Ki=null,Wa=!1,z0=8192,d7={getCacheForType:function(e){var t=on(Ha),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return on(Ha).controller.signal},getOwner:function(){return Xl}};if(typeof Symbol=="function"&&Symbol.for){var U0=Symbol.for;U0("selector.component"),U0("selector.has_pseudo_class"),U0("selector.role"),U0("selector.test_id"),U0("selector.text")}var h7=[],p7=typeof WeakMap=="function"?WeakMap:Map,dl=0,el=2,xo=4,es=0,L0=1,xh=2,S1=3,Cf=4,T1=6,$M=5,nn=dl,wn=null,Gt=null,$t=0,$r=0,x1=1,_h=2,B0=3,VM=4,ZR=5,H0=6,_1=7,JR=8,Rh=9,Tn=$r,_o=null,Df=!1,ly=!1,FR=!1,qu=0,Wn=es,wf=0,Mf=0,KR=0,Vr=0,Oh=0,$0=null,Er=null,R1=!1,O1=0,kM=0,GM=300,A1=1/0,qM=500,V0=null,ma=null,jf=null,C1=0,PR=1,WR=2,YM=3,Nf=0,QM=1,XM=2,IM=3,ZM=4,D1=5,Ya=0,zf=null,ry=null,Pi=0,eO=0,tO=-0,nO=null,JM=null,FM=null,Wi=C1,KM=null,m7=50,k0=0,aO=null,lO=!1,w1=!1,y7=50,Ah=0,G0=null,oy=!1,M1=null,PM=!1,WM=new Set,g7={},j1=null,iy=null,rO=!1,oO=!1,N1=!1,iO=!1,Uf=0,uO={};(function(){for(var e=0;e<bR.length;e++){var t=bR[e],l=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Kr(l,"on"+t)}Kr(Dw,"onAnimationEnd"),Kr(ww,"onAnimationIteration"),Kr(Mw,"onAnimationStart"),Kr("dblclick","onDoubleClick"),Kr("focusin","onFocus"),Kr("focusout","onBlur"),Kr(X$,"onTransitionRun"),Kr(I$,"onTransitionStart"),Kr(Z$,"onTransitionCancel"),Kr(jw,"onTransitionEnd")})(),bt("onMouseEnter",["mouseout","mouseover"]),bt("onMouseLeave",["mouseout","mouseover"]),bt("onPointerEnter",["pointerout","pointerover"]),bt("onPointerLeave",["pointerout","pointerover"]),Dt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var q0="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(" "),cO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(q0)),z1="_reactListening"+Math.random().toString(36).slice(2),ej=!1,tj=!1,U1=!1,nj=!1,L1=!1,B1=!1,aj=!1,H1={},v7=/\r\n?/g,b7=/\u0000|\uFFFD/g,Ch="http://www.w3.org/1999/xlink",sO="http://www.w3.org/XML/1998/namespace",E7="javascript:throw new Error('React form unexpectedly submitted.')",S7="suppressHydrationWarning",Dh="&",$1="/&",Y0="$",Q0="/$",Lf="$?",wh="$~",uy="$!",T7="html",x7="body",_7="head",fO="F!",lj="F",rj="loading",R7="style",ts=0,cy=1,V1=2,dO=null,hO=null,oj={dialog:!0,webview:!0},pO=null,X0=void 0,ij=typeof setTimeout=="function"?setTimeout:void 0,O7=typeof clearTimeout=="function"?clearTimeout:void 0,Mh=-1,uj=typeof Promise=="function"?Promise:void 0,A7=typeof queueMicrotask=="function"?queueMicrotask:typeof uj<"u"?function(e){return uj.resolve(null).then(e).catch(yS)}:ij,mO=null,jh=0,I0=1,cj=2,sj=3,yi=4,gi=new Map,fj=new Set,ns=cn.d;cn.d={f:function(){var e=ns.f(),t=fr();return e||t},r:function(e){var t=Be(e);t!==null&&t.tag===5&&t.type==="form"?zs(t):ns.r(e)},D:function(e){ns.D(e),zv("dns-prefetch",e,null)},C:function(e,t){ns.C(e,t),zv("preconnect",e,t)},L:function(e,t,l){ns.L(e,t,l);var u=sy;if(u&&e&&t){var h='link[rel="preload"][as="'+Ve(t)+'"]';t==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+Ve(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+Ve(l.imageSizes)+'"]')):h+='[href="'+Ve(e)+'"]';var m=h;switch(t){case"style":m=zc(e);break;case"script":m=Uc(e)}gi.has(m)||(e=Lt({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),gi.set(m,e),u.querySelector(h)!==null||t==="style"&&u.querySelector(Kd(m))||t==="script"&&u.querySelector(Pd(m))||(t=u.createElement("link"),Bn(t,"link",e),tt(t),u.head.appendChild(t)))}},m:function(e,t){ns.m(e,t);var l=sy;if(l&&e){var u=t&&typeof t.as=="string"?t.as:"script",h='link[rel="modulepreload"][as="'+Ve(u)+'"][href="'+Ve(e)+'"]',m=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Uc(e)}if(!gi.has(m)&&(e=Lt({rel:"modulepreload",href:e},t),gi.set(m,e),l.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Pd(m)))return}u=l.createElement("link"),Bn(u,"link",e),tt(u),l.head.appendChild(u)}}},X:function(e,t){ns.X(e,t);var l=sy;if(l&&e){var u=ct(l).hoistableScripts,h=Uc(e),m=u.get(h);m||(m=l.querySelector(Pd(h)),m||(e=Lt({src:e,async:!0},t),(t=gi.get(h))&&Bv(e,t),m=l.createElement("script"),tt(m),Bn(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}},S:function(e,t,l){ns.S(e,t,l);var u=sy;if(u&&e){var h=ct(u).hoistableStyles,m=zc(e);t=t||"default";var S=h.get(m);if(!S){var _={loading:jh,preload:null};if(S=u.querySelector(Kd(m)))_.loading=I0|yi;else{e=Lt({rel:"stylesheet",href:e,"data-precedence":t},l),(l=gi.get(m))&&Lv(e,l);var M=S=u.createElement("link");tt(M),Bn(M,"link",e),M._p=new Promise(function(z,ee){M.onload=z,M.onerror=ee}),M.addEventListener("load",function(){_.loading|=I0}),M.addEventListener("error",function(){_.loading|=cj}),_.loading|=yi,tf(S,t,u)}S={type:"stylesheet",instance:S,count:1,state:_},h.set(m,S)}}},M:function(e,t){ns.M(e,t);var l=sy;if(l&&e){var u=ct(l).hoistableScripts,h=Uc(e),m=u.get(h);m||(m=l.querySelector(Pd(h)),m||(e=Lt({src:e,async:!0,type:"module"},t),(t=gi.get(h))&&Bv(e,t),m=l.createElement("script"),tt(m),Bn(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}};var sy=typeof document>"u"?null:document,k1=null,C7=6e4,D7=800,w7=500,yO=0,gO=null,G1=null,Nh=iR,Z0={$$typeof:go,Provider:null,Consumer:null,_currentValue:Nh,_currentValue2:Nh,_threadCount:0},dj="%c%s%c",hj="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",pj="",q1=" ",M7=Function.prototype.bind,mj=!1,yj=null,gj=null,vj=null,bj=null,Ej=null,Sj=null,Tj=null,xj=null,_j=null,Rj=null;yj=function(e,t,l,u){t=n(e,t),t!==null&&(l=o(t.memoizedState,l,0,u),t.memoizedState=l,t.baseState=l,e.memoizedProps=Lt({},e.memoizedProps),l=rl(e,2),l!==null&&vt(l,e,2))},gj=function(e,t,l){t=n(e,t),t!==null&&(l=d(t.memoizedState,l,0),t.memoizedState=l,t.baseState=l,e.memoizedProps=Lt({},e.memoizedProps),l=rl(e,2),l!==null&&vt(l,e,2))},vj=function(e,t,l,u){t=n(e,t),t!==null&&(l=c(t.memoizedState,l,u),t.memoizedState=l,t.baseState=l,e.memoizedProps=Lt({},e.memoizedProps),l=rl(e,2),l!==null&&vt(l,e,2))},bj=function(e,t,l){e.pendingProps=o(e.memoizedProps,t,0,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=rl(e,2),t!==null&&vt(t,e,2)},Ej=function(e,t){e.pendingProps=d(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=rl(e,2),t!==null&&vt(t,e,2)},Sj=function(e,t,l){e.pendingProps=c(e.memoizedProps,t,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=rl(e,2),t!==null&&vt(t,e,2)},Tj=function(e){var t=rl(e,2);t!==null&&vt(t,e,2)},xj=function(e){var t=Rt(),l=rl(e,t);l!==null&&vt(l,e,t)},_j=function(e){y=e},Rj=function(e){p=e};var Y1=!0,Q1=null,vO=!1,Bf=null,Hf=null,$f=null,J0=new Map,F0=new Map,Vf=[],j7="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".split(" "),X1=null;if(yo.prototype.render=Iv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var l=arguments;typeof l[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(l[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof l[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),l=e;var u=t.current,h=il(u);gm(u,h,l,t,null,null)},yo.prototype.unmount=Iv.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(nn&(el|xo))!==dl&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),gm(e.current,2,null,e,null,null),fr(),t[Ii]=null}},yo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ir();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Vf.length&&t!==0&&t<Vf[l].priority;l++);Vf.splice(l,0,e),l===0&&Xv(e)}},(function(){var e=ah.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
317
|
+
- react: `+(e+`
|
|
318
|
+
- react-dom: 19.2.4
|
|
319
|
+
Learn more: https://react.dev/warnings/version-mismatch`))})(),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"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),cn.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=k(t),e=e!==null?P(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ve,reconcilerVersion:"19.2.4"};return e.overrideHookState=yj,e.overrideHookStateDeletePath=gj,e.overrideHookStateRenamePath=vj,e.overrideProps=bj,e.overridePropsDeletePath=Ej,e.overridePropsRenamePath=Sj,e.scheduleUpdate=Tj,e.scheduleRetry=xj,e.setErrorHandler=_j,e.setSuspenseHandler=Rj,e.scheduleRefresh=j,e.scheduleRoot=w,e.setRefreshHandler=H,e.getCurrentFiber=En,xi(e)})()&&$u&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Oj=window.location.protocol;/^(https?|file):$/.test(Oj)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Oj==="file:"?`
|
|
320
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}yy.createRoot=function(e,t){if(!L(e))throw Error("Target container is not a DOM element.");Zv(e);var l=!1,u="",h=wp,m=Mp,S=Gg;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Lr&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
321
|
+
|
|
322
|
+
let root = createRoot(domContainer);
|
|
323
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(h=t.onUncaughtError),t.onCaughtError!==void 0&&(m=t.onCaughtError),t.onRecoverableError!==void 0&&(S=t.onRecoverableError)),t=th(e,1,!1,null,null,l,u,null,h,m,S,VS),e[Ii]=t.current,Mu(e),new Iv(t)},yy.hydrateRoot=function(e,t,l){if(!L(e))throw Error("Target container is not a DOM element.");Zv(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=!1,h="",m=wp,S=Mp,_=Gg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(_=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=th(e,1,!0,t,l??null,u,h,M,m,S,_,VS),t.context=LS(null),l=t.current,u=il(l),u=al(u),h=Sa(u),h.callback=null,Ho(l,h,u),Uo(u,"hydrateRoot()",null),l=u,t.current.lanes=l,Da(t,l),Gl(t),e[Ii]=t.current,Mu(e),new yo(t)},yy.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),yy}var zO;function Hj(){if(zO)return tb.exports;zO=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}}return process.env.NODE_ENV==="production"?(n(),tb.exports=Lj()):tb.exports=Bj(),tb.exports}var $j=Hj(),D=ls();const hl=P0(D),Vj=fy({__proto__:null,default:hl},[D]);/**
|
|
324
|
+
* react-router v7.13.1
|
|
325
|
+
*
|
|
326
|
+
* Copyright (c) Remix Software Inc.
|
|
327
|
+
*
|
|
328
|
+
* This source code is licensed under the MIT license found in the
|
|
329
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
330
|
+
*
|
|
331
|
+
* @license MIT
|
|
332
|
+
*/var UO=n=>{throw TypeError(n)},kj=(n,o,c)=>o.has(n)||UO("Cannot "+c),F1=(n,o,c)=>(kj(n,o,"read from private field"),c?c.call(n):o.get(n)),Gj=(n,o,c)=>o.has(n)?UO("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(n):o.set(n,c),LO="popstate";function BO(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function qj(n={}){function o(s,d){var E;let p=(E=d.state)==null?void 0:E.masked,{pathname:y,search:v,hash:x}=p||s.location;return gy("",{pathname:y,search:v,hash:x},d.state&&d.state.usr||null,d.state&&d.state.key||"default",p?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function c(s,d){return typeof d=="string"?d:eu(d)}return Qj(o,c,null,n)}function Zt(n,o){if(n===!1||n===null||typeof n>"u")throw new Error(o)}function ya(n,o){if(!n){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Yj(){return Math.random().toString(36).substring(2,10)}function HO(n,o){return{usr:n.state,key:n.key,idx:o,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function gy(n,o,c=null,s,d){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof o=="string"?Yu(o):o,state:c,key:o&&o.key||s||Yj(),unstable_mask:d}}function eu({pathname:n="/",search:o="",hash:c=""}){return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),c&&c!=="#"&&(n+=c.charAt(0)==="#"?c:"#"+c),n}function Yu(n){let o={};if(n){let c=n.indexOf("#");c>=0&&(o.hash=n.substring(c),n=n.substring(0,c));let s=n.indexOf("?");s>=0&&(o.search=n.substring(s),n=n.substring(0,s)),n&&(o.pathname=n)}return o}function Qj(n,o,c,s={}){let{window:d=document.defaultView,v5Compat:p=!1}=s,y=d.history,v="POP",x=null,E=O();E==null&&(E=0,y.replaceState({...y.state,idx:E},""));function O(){return(y.state||{idx:null}).idx}function R(){v="POP";let L=O(),V=L==null?null:L-E;E=L,x&&x({action:v,location:H.location,delta:V})}function A(L,V){v="PUSH";let J=BO(L)?L:gy(H.location,L,V);E=O()+1;let F=HO(J,E),K=H.createHref(J.unstable_mask||J);try{y.pushState(F,"",K)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;d.location.assign(K)}p&&x&&x({action:v,location:H.location,delta:1})}function w(L,V){v="REPLACE";let J=BO(L)?L:gy(H.location,L,V);E=O();let F=HO(J,E),K=H.createHref(J.unstable_mask||J);y.replaceState(F,"",K),p&&x&&x({action:v,location:H.location,delta:0})}function j(L){return $O(L)}let H={get action(){return v},get location(){return n(d,y)},listen(L){if(x)throw new Error("A history only accepts one active listener");return d.addEventListener(LO,R),x=L,()=>{d.removeEventListener(LO,R),x=null}},createHref(L){return o(d,L)},createURL:j,encodeLocation(L){let V=j(L);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:A,replace:w,go(L){return y.go(L)}};return H}function $O(n,o=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Zt(c,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:eu(n);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=c+s),new URL(s,c)}var vy,VO=class{constructor(n){if(Gj(this,vy,new Map),n)for(let[o,c]of n)this.set(o,c)}get(n){if(F1(this,vy).has(n))return F1(this,vy).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,o){F1(this,vy).set(n,o)}};vy=new WeakMap;var Xj=new Set(["lazy","caseSensitive","path","id","index","children"]);function Ij(n){return Xj.has(n)}var Zj=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Jj(n){return Zj.has(n)}function Fj(n){return n.index===!0}function by(n,o,c=[],s={},d=!1){return n.map((p,y)=>{let v=[...c,String(y)],x=typeof p.id=="string"?p.id:v.join("-");if(Zt(p.index!==!0||!p.children,"Cannot specify children on an index route"),Zt(d||!s[x],`Found a route id collision on id "${x}". Route id's must be globally unique within Data Router usages`),Fj(p)){let E={...p,id:x};return s[x]=kO(E,o(E)),E}else{let E={...p,id:x,children:void 0};return s[x]=kO(E,o(E)),p.children&&(E.children=by(p.children,o,v,s,d)),E}})}function kO(n,o){return Object.assign(n,{...o,...typeof o.lazy=="object"&&o.lazy!=null?{lazy:{...n.lazy,...o.lazy}}:{}})}function rs(n,o,c="/"){return Ey(n,o,c,!1)}function Ey(n,o,c,s){let d=typeof o=="string"?Yu(o):o,p=Ro(d.pathname||"/",c);if(p==null)return null;let y=GO(n);Pj(y);let v=null;for(let x=0;v==null&&x<y.length;++x){let E=cN(p);v=iN(y[x],E,s)}return v}function Kj(n,o){let{route:c,pathname:s,params:d}=n;return{id:c.id,pathname:s,params:d,data:o[c.id],loaderData:o[c.id],handle:c.handle}}function GO(n,o=[],c=[],s="",d=!1){let p=(y,v,x=d,E)=>{let O={relativePath:E===void 0?y.path||"":E,caseSensitive:y.caseSensitive===!0,childrenIndex:v,route:y};if(O.relativePath.startsWith("/")){if(!O.relativePath.startsWith(s)&&x)return;Zt(O.relativePath.startsWith(s),`Absolute route path "${O.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),O.relativePath=O.relativePath.slice(s.length)}let R=vi([s,O.relativePath]),A=c.concat(O);y.children&&y.children.length>0&&(Zt(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${R}".`),GO(y.children,o,A,R,x)),!(y.path==null&&!y.index)&&o.push({path:R,score:rN(R,y.index),routesMeta:A})};return n.forEach((y,v)=>{var x;if(y.path===""||!((x=y.path)!=null&&x.includes("?")))p(y,v);else for(let E of qO(y.path))p(y,v,!0,E)}),o}function qO(n){let o=n.split("/");if(o.length===0)return[];let[c,...s]=o,d=c.endsWith("?"),p=c.replace(/\?$/,"");if(s.length===0)return d?[p,""]:[p];let y=qO(s.join("/")),v=[];return v.push(...y.map(x=>x===""?p:[p,x].join("/"))),d&&v.push(...y),v.map(x=>n.startsWith("/")&&x===""?"/":x)}function Pj(n){n.sort((o,c)=>o.score!==c.score?c.score-o.score:oN(o.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var Wj=/^:[\w-]+$/,eN=3,tN=2,nN=1,aN=10,lN=-2,YO=n=>n==="*";function rN(n,o){let c=n.split("/"),s=c.length;return c.some(YO)&&(s+=lN),o&&(s+=tN),c.filter(d=>!YO(d)).reduce((d,p)=>d+(Wj.test(p)?eN:p===""?nN:aN),s)}function oN(n,o){return n.length===o.length&&n.slice(0,-1).every((s,d)=>s===o[d])?n[n.length-1]-o[o.length-1]:0}function iN(n,o,c=!1){let{routesMeta:s}=n,d={},p="/",y=[];for(let v=0;v<s.length;++v){let x=s[v],E=v===s.length-1,O=p==="/"?o:o.slice(p.length)||"/",R=lb({path:x.relativePath,caseSensitive:x.caseSensitive,end:E},O),A=x.route;if(!R&&E&&c&&!s[s.length-1].route.index&&(R=lb({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},O)),!R)return null;Object.assign(d,R.params),y.push({params:d,pathname:vi([p,R.pathname]),pathnameBase:dN(vi([p,R.pathnameBase])),route:A}),R.pathnameBase!=="/"&&(p=vi([p,R.pathnameBase]))}return y}function lb(n,o){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[c,s]=uN(n.path,n.caseSensitive,n.end),d=o.match(c);if(!d)return null;let p=d[0],y=p.replace(/(.)\/+$/,"$1"),v=d.slice(1);return{params:s.reduce((E,{paramName:O,isOptional:R},A)=>{if(O==="*"){let j=v[A]||"";y=p.slice(0,p.length-j.length).replace(/(.)\/+$/,"$1")}const w=v[A];return R&&!w?E[O]=void 0:E[O]=(w||"").replace(/%2F/g,"/"),E},{}),pathname:p,pathnameBase:y,pattern:n}}function uN(n,o=!1,c=!0){ya(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],d="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,v,x,E,O)=>{if(s.push({paramName:v,isOptional:x!=null}),x){let R=O.charAt(E+y.length);return R&&R!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),d+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?d+="\\/*$":n!==""&&n!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),s]}function cN(n){try{return n.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return ya(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),n}}function Ro(n,o){if(o==="/")return n;if(!n.toLowerCase().startsWith(o.toLowerCase()))return null;let c=o.endsWith("/")?o.length-1:o.length,s=n.charAt(c);return s&&s!=="/"?null:n.slice(c)||"/"}function sN({basename:n,pathname:o}){return o==="/"?n:vi([n,o])}var QO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K1=n=>QO.test(n);function fN(n,o="/"){let{pathname:c,search:s="",hash:d=""}=typeof n=="string"?Yu(n):n,p;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?p=XO(c.substring(1),"/"):p=XO(c,o)):p=o,{pathname:p,search:hN(s),hash:pN(d)}}function XO(n,o){let c=o.replace(/\/+$/,"").split("/");return n.split("/").forEach(d=>{d===".."?c.length>1&&c.pop():d!=="."&&c.push(d)}),c.length>1?c.join("/"):"/"}function P1(n,o,c,s){return`Cannot include a '${n}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function IO(n){return n.filter((o,c)=>c===0||o.route.path&&o.route.path.length>0)}function W1(n){let o=IO(n);return o.map((c,s)=>s===o.length-1?c.pathname:c.pathnameBase)}function rb(n,o,c,s=!1){let d;typeof n=="string"?d=Yu(n):(d={...n},Zt(!d.pathname||!d.pathname.includes("?"),P1("?","pathname","search",d)),Zt(!d.pathname||!d.pathname.includes("#"),P1("#","pathname","hash",d)),Zt(!d.search||!d.search.includes("#"),P1("#","search","hash",d)));let p=n===""||d.pathname==="",y=p?"/":d.pathname,v;if(y==null)v=c;else{let R=o.length-1;if(!s&&y.startsWith("..")){let A=y.split("/");for(;A[0]==="..";)A.shift(),R-=1;d.pathname=A.join("/")}v=R>=0?o[R]:"/"}let x=fN(d,v),E=y&&y!=="/"&&y.endsWith("/"),O=(p||y===".")&&c.endsWith("/");return!x.pathname.endsWith("/")&&(E||O)&&(x.pathname+="/"),x}var vi=n=>n.join("/").replace(/\/\/+/g,"/"),dN=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),hN=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,pN=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Sy=class{constructor(n,o,c,s=!1){this.status=n,this.statusText=o||"",this.internal=s,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Ty(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function xy(n){return n.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ZO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function JO(n,o){let c=n;if(typeof c!="string"||!QO.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let s=c,d=!1;if(ZO)try{let p=new URL(window.location.href),y=c.startsWith("//")?new URL(p.protocol+c):new URL(c),v=Ro(y.pathname,o);y.origin===p.origin&&v!=null?c=v+y.search+y.hash:d=!0}catch{ya(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:c}}var os=Symbol("Uninstrumented");function mN(n,o){let c={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(d=>d({id:o.id,index:o.index,path:o.path,instrument(p){let y=Object.keys(c);for(let v of y)p[v]&&c[v].push(p[v])}}));let s={};if(typeof o.lazy=="function"&&c.lazy.length>0){let d=Uh(c.lazy,o.lazy,()=>{});d&&(s.lazy=d)}if(typeof o.lazy=="object"){let d=o.lazy;["middleware","loader","action"].forEach(p=>{let y=d[p],v=c[`lazy.${p}`];if(typeof y=="function"&&v.length>0){let x=Uh(v,y,()=>{});x&&(s.lazy=Object.assign(s.lazy||{},{[p]:x}))}})}return["loader","action"].forEach(d=>{let p=o[d];if(typeof p=="function"&&c[d].length>0){let y=p[os]??p,v=Uh(c[d],y,(...x)=>KO(x[0]));v&&(d==="loader"&&y.hydrate===!0&&(v.hydrate=!0),v[os]=y,s[d]=v)}}),o.middleware&&o.middleware.length>0&&c.middleware.length>0&&(s.middleware=o.middleware.map(d=>{let p=d[os]??d,y=Uh(c.middleware,p,(...v)=>KO(v[0]));return y?(y[os]=p,y):d})),s}function yN(n,o){let c={navigate:[],fetch:[]};if(o.forEach(s=>s({instrument(d){let p=Object.keys(d);for(let y of p)d[y]&&c[y].push(d[y])}})),c.navigate.length>0){let s=n.navigate[os]??n.navigate,d=Uh(c.navigate,s,(...p)=>{let[y,v]=p;return{to:typeof y=="number"||typeof y=="string"?y:y?eu(y):".",...PO(n,v??{})}});d&&(d[os]=s,n.navigate=d)}if(c.fetch.length>0){let s=n.fetch[os]??n.fetch,d=Uh(c.fetch,s,(...p)=>{let[y,,v,x]=p;return{href:v??".",fetcherKey:y,...PO(n,x??{})}});d&&(d[os]=s,n.fetch=d)}return n}function Uh(n,o,c){return n.length===0?null:async(...s)=>{let d=await FO(n,c(...s),()=>o(...s),n.length-1);if(d.type==="error")throw d.value;return d.value}}async function FO(n,o,c,s){let d=n[s],p;if(d){let y,v=async()=>(y?console.error("You cannot call instrumented handlers more than once"):y=FO(n,o,c,s-1),p=await y,Zt(p,"Expected a result"),p.type==="error"&&p.value instanceof Error?{status:"error",error:p.value}:{status:"success",error:void 0});try{await d(v,o)}catch(x){console.error("An instrumentation function threw an error:",x)}y||await v(),await y}else try{p={type:"success",value:await c()}}catch(y){p={type:"error",value:y}}return p||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function KO(n){let{request:o,context:c,params:s,unstable_pattern:d}=n;return{request:gN(o),params:{...s},unstable_pattern:d,context:vN(c)}}function PO(n,o){return{currentUrl:eu(n.state.location),..."formMethod"in o?{formMethod:o.formMethod}:{},..."formEncType"in o?{formEncType:o.formEncType}:{},..."formData"in o?{formData:o.formData}:{},..."body"in o?{body:o.body}:{}}}function gN(n){return{method:n.method,url:n.url,headers:{get:(...o)=>n.headers.get(...o)}}}function vN(n){if(EN(n)){let o={...n};return Object.freeze(o),o}else return{get:o=>n.get(o)}}var bN=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function EN(n){if(n===null||typeof n!="object")return!1;const o=Object.getPrototypeOf(n);return o===Object.prototype||o===null||Object.getOwnPropertyNames(o).sort().join("\0")===bN}var WO=["POST","PUT","PATCH","DELETE"],SN=new Set(WO),TN=["GET",...WO],xN=new Set(TN),eA=new Set([301,302,303,307,308]),_N=new Set([307,308]),eT={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},RN={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_y={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ON=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),tA="remix-router-transitions",nA=Symbol("ResetLoaderData");function AN(n){const o=n.window?n.window:typeof window<"u"?window:void 0,c=typeof o<"u"&&typeof o.document<"u"&&typeof o.document.createElement<"u";Zt(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=n.hydrationRouteProperties||[],d=n.mapRouteProperties||ON,p=d;if(n.unstable_instrumentations){let Y=n.unstable_instrumentations;p=le=>({...d(le),...mN(Y.map(ye=>ye.route).filter(Boolean),le)})}let y={},v=by(n.routes,p,void 0,y),x,E=n.basename||"/";E.startsWith("/")||(E=`/${E}`);let O=n.dataStrategy||jN,R={...n.future},A=null,w=new Set,j=null,H=null,L=null,V=n.hydrationData!=null,J=rs(v,n.history.location,E),F=!1,K=null,k,P;if(J==null&&!n.patchRoutesOnNavigation){let Y=Oo(404,{pathname:n.history.location.pathname}),{matches:le,route:ye}=ob(v);k=!0,P=!k,J=le,K={[ye.id]:Y}}else if(J&&!n.hydrationData&&Ia(J,v,n.history.location.pathname).active&&(J=null),J)if(J.some(Y=>Y.route.lazy))k=!1,P=!k;else if(!J.some(Y=>nT(Y.route)))k=!0,P=!k;else{let Y=n.hydrationData?n.hydrationData.loaderData:null,le=n.hydrationData?n.hydrationData.errors:null,ye=J;if(le){let Ne=J.findIndex(He=>le[He.route.id]!==void 0);ye=ye.slice(0,Ne+1)}P=!1,k=ye.every(Ne=>{let He=rA(Ne.route,Y,le);return P=P||He.renderFallback,!He.shouldLoad})}else{k=!1,P=!k,J=[];let Y=Ia(null,v,n.history.location.pathname);Y.active&&Y.matches&&(F=!0,J=Y.matches)}let ae,$={historyAction:n.history.action,location:n.history.location,matches:J,initialized:k,renderFallback:P,navigation:eT,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||K,fetchers:new Map,blockers:new Map},Se="POP",me=null,je=!1,Re,ke=!1,Ye=new Map,et=null,G=!1,ce=!1,Ee=new Set,ze=new Map,se=0,N=-1,Z=new Map,ue=new Set,re=new Map,De=new Map,Ue=new Set,Me=new Map,Pe,Qe=null;function it(){if(A=n.history.listen(({action:Y,location:le,delta:ye})=>{if(Pe){Pe(),Pe=void 0;return}ya(Me.size===0||ye!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ne=Fe({currentLocation:$.location,nextLocation:le,historyAction:Y});if(Ne&&ye!=null){let He=new Promise(Ke=>{Pe=Ke});n.history.go(ye*-1),Be(Ne,{state:"blocked",location:le,proceed(){Be(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),He.then(()=>n.history.go(ye))},reset(){let Ke=new Map($.blockers);Ke.set(Ne,_y),Ct({blockers:Ke})}}),me==null||me.resolve(),me=null;return}return sn(Y,le)}),c){FN(o,Ye);let Y=()=>KN(o,Ye);o.addEventListener("pagehide",Y),et=()=>o.removeEventListener("pagehide",Y)}return $.initialized||sn("POP",$.location,{initialHydration:!0}),ae}function Le(){A&&A(),et&&et(),w.clear(),Re&&Re.abort(),$.fetchers.forEach((Y,le)=>al(le)),$.blockers.forEach((Y,le)=>we(le))}function $e(Y){return w.add(Y),()=>w.delete(Y)}function Ct(Y,le={}){Y.matches&&(Y.matches=Y.matches.map(He=>{let Ke=y[He.route.id],Ve=He.route;return Ve.element!==Ke.element||Ve.errorElement!==Ke.errorElement||Ve.hydrateFallbackElement!==Ke.hydrateFallbackElement?{...He,route:Ke}:He})),$={...$,...Y};let ye=[],Ne=[];$.fetchers.forEach((He,Ke)=>{He.state==="idle"&&(Ue.has(Ke)?ye.push(Ke):Ne.push(Ke))}),Ue.forEach(He=>{!$.fetchers.has(He)&&!ze.has(He)&&ye.push(He)}),[...w].forEach(He=>He($,{deletedFetchers:ye,newErrors:Y.errors??null,viewTransitionOpts:le.viewTransitionOpts,flushSync:le.flushSync===!0})),ye.forEach(He=>al(He)),Ne.forEach(He=>$.fetchers.delete(He))}function an(Y,le,{flushSync:ye}={}){var mt,lt;let Ne=$.actionData!=null&&$.navigation.formMethod!=null&&Nl($.navigation.formMethod)&&$.navigation.state==="loading"&&((mt=Y.state)==null?void 0:mt._isRedirect)!==!0,He;le.actionData?Object.keys(le.actionData).length>0?He=le.actionData:He=null:Ne?He=$.actionData:He=null;let Ke=le.loaderData?vA($.loaderData,le.loaderData,le.matches||[],le.errors):$.loaderData,Ve=$.blockers;Ve.size>0&&(Ve=new Map(Ve),Ve.forEach((wt,xt)=>Ve.set(xt,_y)));let Xe=G?!1:ba(Y,le.matches||$.matches),Ie=je===!0||$.navigation.formMethod!=null&&Nl($.navigation.formMethod)&&((lt=Y.state)==null?void 0:lt._isRedirect)!==!0;x&&(v=x,x=void 0),G||Se==="POP"||(Se==="PUSH"?n.history.push(Y,Y.state):Se==="REPLACE"&&n.history.replace(Y,Y.state));let rt;if(Se==="POP"){let wt=Ye.get($.location.pathname);wt&&wt.has(Y.pathname)?rt={currentLocation:$.location,nextLocation:Y}:Ye.has(Y.pathname)&&(rt={currentLocation:Y,nextLocation:$.location})}else if(ke){let wt=Ye.get($.location.pathname);wt?wt.add(Y.pathname):(wt=new Set([Y.pathname]),Ye.set($.location.pathname,wt)),rt={currentLocation:$.location,nextLocation:Y}}Ct({...le,actionData:He,loaderData:Ke,historyAction:Se,location:Y,initialized:!0,renderFallback:!1,navigation:eT,revalidation:"idle",restoreScrollPosition:Xe,preventScrollReset:Ie,blockers:Ve},{viewTransitionOpts:rt,flushSync:ye===!0}),Se="POP",je=!1,ke=!1,G=!1,ce=!1,me==null||me.resolve(),me=null,Qe==null||Qe.resolve(),Qe=null}async function Mt(Y,le){if(me==null||me.resolve(),me=null,typeof Y=="number"){me||(me=xA());let gn=me.promise;return n.history.go(Y),gn}let ye=tT($.location,$.matches,E,Y,le==null?void 0:le.fromRouteId,le==null?void 0:le.relative),{path:Ne,submission:He,error:Ke}=aA(!1,ye,le),Ve;le!=null&&le.unstable_mask&&(Ve={pathname:"",search:"",hash:"",...typeof le.unstable_mask=="string"?Yu(le.unstable_mask):{...$.location.unstable_mask,...le.unstable_mask}});let Xe=$.location,Ie=gy(Xe,Ne,le&&le.state,void 0,Ve);Ie={...Ie,...n.history.encodeLocation(Ie)};let rt=le&&le.replace!=null?le.replace:void 0,mt="PUSH";rt===!0?mt="REPLACE":rt===!1||He!=null&&Nl(He.formMethod)&&He.formAction===$.location.pathname+$.location.search&&(mt="REPLACE");let lt=le&&"preventScrollReset"in le?le.preventScrollReset===!0:void 0,wt=(le&&le.flushSync)===!0,xt=Fe({currentLocation:Xe,nextLocation:Ie,historyAction:mt});if(xt){Be(xt,{state:"blocked",location:Ie,proceed(){Be(xt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ie}),Mt(Y,le)},reset(){let gn=new Map($.blockers);gn.set(xt,_y),Ct({blockers:gn})}});return}await sn(mt,Ie,{submission:He,pendingError:Ke,preventScrollReset:lt,replace:le&&le.replace,enableViewTransition:le&&le.viewTransition,flushSync:wt,callSiteDefaultShouldRevalidate:le&&le.unstable_defaultShouldRevalidate})}function Vt(){Qe||(Qe=xA()),Da(),Ct({revalidation:"loading"});let Y=Qe.promise;return $.navigation.state==="submitting"?Y:$.navigation.state==="idle"?(sn($.historyAction,$.location,{startUninterruptedRevalidation:!0}),Y):(sn(Se||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation,enableViewTransition:ke===!0}),Y)}async function sn(Y,le,ye){Re&&Re.abort(),Re=null,Se=Y,G=(ye&&ye.startUninterruptedRevalidation)===!0,bt($.location,$.matches),je=(ye&&ye.preventScrollReset)===!0,ke=(ye&&ye.enableViewTransition)===!0;let Ne=x||v,He=ye&&ye.overrideNavigation,Ke=ye!=null&&ye.initialHydration&&$.matches&&$.matches.length>0&&!F?$.matches:rs(Ne,le,E),Ve=(ye&&ye.flushSync)===!0;if(Ke&&$.initialized&&!ce&&VN($.location,le)&&!(ye&&ye.submission&&Nl(ye.submission.formMethod))){an(le,{matches:Ke},{flushSync:Ve});return}let Xe=Ia(Ke,Ne,le.pathname);if(Xe.active&&Xe.matches&&(Ke=Xe.matches),!Ke){let{error:Rn,notFoundMatches:Yn,route:Kt}=ct(le.pathname);an(le,{matches:Yn,loaderData:{},errors:{[Kt.id]:Rn}},{flushSync:Ve});return}Re=new AbortController;let Ie=Bh(n.history,le,Re.signal,ye&&ye.submission),rt=n.getContext?await n.getContext():new VO,mt;if(ye&&ye.pendingError)mt=[is(Ke).route.id,{type:"error",error:ye.pendingError}];else if(ye&&ye.submission&&Nl(ye.submission.formMethod)){let Rn=await Qr(Ie,le,ye.submission,Ke,rt,Xe.active,ye&&ye.initialHydration===!0,{replace:ye.replace,flushSync:Ve});if(Rn.shortCircuited)return;if(Rn.pendingActionResult){let[Yn,Kt]=Rn.pendingActionResult;if(kr(Kt)&&Ty(Kt.error)&&Kt.error.status===404){Re=null,an(le,{matches:Rn.matches,loaderData:{},errors:{[Yn]:Kt.error}});return}}Ke=Rn.matches||Ke,mt=Rn.pendingActionResult,He=iT(le,ye.submission),Ve=!1,Xe.active=!1,Ie=Bh(n.history,Ie.url,Ie.signal)}let{shortCircuited:lt,matches:wt,loaderData:xt,errors:gn}=await xi(Ie,le,Ke,rt,Xe.active,He,ye&&ye.submission,ye&&ye.fetcherSubmission,ye&&ye.replace,ye&&ye.initialHydration===!0,Ve,mt,ye&&ye.callSiteDefaultShouldRevalidate);lt||(Re=null,an(le,{matches:wt||Ke,...bA(mt),loaderData:xt,errors:gn}))}async function Qr(Y,le,ye,Ne,He,Ke,Ve,Xe={}){Da();let Ie=ZN(le,ye);if(Ct({navigation:Ie},{flushSync:Xe.flushSync===!0}),Ke){let lt=await Kl(Ne,le.pathname,Y.signal);if(lt.type==="aborted")return{shortCircuited:!0};if(lt.type==="error"){if(lt.partialMatches.length===0){let{matches:xt,route:gn}=ob(v);return{matches:xt,pendingActionResult:[gn.id,{type:"error",error:lt.error}]}}let wt=is(lt.partialMatches).route.id;return{matches:lt.partialMatches,pendingActionResult:[wt,{type:"error",error:lt.error}]}}else if(lt.matches)Ne=lt.matches;else{let{notFoundMatches:wt,error:xt,route:gn}=ct(le.pathname);return{matches:wt,pendingActionResult:[gn.id,{type:"error",error:xt}]}}}let rt,mt=ub(Ne,le);if(!mt.route.action&&!mt.route.lazy)rt={type:"error",error:Oo(405,{method:Y.method,pathname:le.pathname,routeId:mt.route.id})};else{let lt=Lh(p,y,Y,Ne,mt,Ve?[]:s,He),wt=await Rt(Y,lt,He,null);if(rt=wt[mt.route.id],!rt){for(let xt of Ne)if(wt[xt.route.id]){rt=wt[xt.route.id];break}}if(Y.signal.aborted)return{shortCircuited:!0}}if(kf(rt)){let lt;return Xe&&Xe.replace!=null?lt=Xe.replace:lt=mA(rt.response.headers.get("Location"),new URL(Y.url),E,n.history)===$.location.pathname+$.location.search,await Ll(Y,rt,!0,{submission:ye,replace:lt}),{shortCircuited:!0}}if(kr(rt)){let lt=is(Ne,mt.route.id);return(Xe&&Xe.replace)!==!0&&(Se="PUSH"),{matches:Ne,pendingActionResult:[lt.route.id,rt,mt.route.id]}}return{matches:Ne,pendingActionResult:[mt.route.id,rt]}}async function xi(Y,le,ye,Ne,He,Ke,Ve,Xe,Ie,rt,mt,lt,wt){let xt=Ke||iT(le,Ve),gn=Ve||Xe||TA(xt),Rn=!G&&!rt;if(He){if(Rn){let na=Je(lt);Ct({navigation:xt,...na!==void 0?{actionData:na}:{}},{flushSync:mt})}let Ut=await Kl(ye,le.pathname,Y.signal);if(Ut.type==="aborted")return{shortCircuited:!0};if(Ut.type==="error"){if(Ut.partialMatches.length===0){let{matches:ll,route:aa}=ob(v);return{matches:ll,loaderData:{},errors:{[aa.id]:Ut.error}}}let na=is(Ut.partialMatches).route.id;return{matches:Ut.partialMatches,loaderData:{},errors:{[na]:Ut.error}}}else if(Ut.matches)ye=Ut.matches;else{let{error:na,notFoundMatches:ll,route:aa}=ct(le.pathname);return{matches:ll,loaderData:{},errors:{[aa.id]:na}}}}let Yn=x||v,{dsMatches:Kt,revalidatingFetchers:fa}=lA(Y,Ne,p,y,n.history,$,ye,gn,le,rt?[]:s,rt===!0,ce,Ee,Ue,re,ue,Yn,E,n.patchRoutesOnNavigation!=null,lt,wt);if(N=++se,!n.dataStrategy&&!Kt.some(Ut=>Ut.shouldLoad)&&!Kt.some(Ut=>Ut.route.middleware&&Ut.route.middleware.length>0)&&fa.length===0){let Ut=Ir();return an(le,{matches:ye,loaderData:{},errors:lt&&kr(lt[1])?{[lt[0]]:lt[1].error}:null,...bA(lt),...Ut?{fetchers:new Map($.fetchers)}:{}},{flushSync:mt}),{shortCircuited:!0}}if(Rn){let Ut={};if(!He){Ut.navigation=xt;let na=Je(lt);na!==void 0&&(Ut.actionData=na)}fa.length>0&&(Ut.fetchers=Tr(fa)),Ct(Ut,{flushSync:mt})}fa.forEach(Ut=>{qn(Ut.key),Ut.controller&&ze.set(Ut.key,Ut.controller)});let qt=()=>fa.forEach(Ut=>qn(Ut.key));Re&&Re.signal.addEventListener("abort",qt);let{loaderResults:Pl,fetcherResults:Za}=await tl(Kt,fa,Y,Ne);if(Y.signal.aborted)return{shortCircuited:!0};Re&&Re.signal.removeEventListener("abort",qt),fa.forEach(Ut=>ze.delete(Ut.key));let Ea=ib(Pl);if(Ea)return await Ll(Y,Ea.result,!0,{replace:Ie}),{shortCircuited:!0};if(Ea=ib(Za),Ea)return ue.add(Ea.key),await Ll(Y,Ea.result,!0,{replace:Ie}),{shortCircuited:!0};let{loaderData:Hl,errors:wo}=gA($,ye,Pl,lt,fa,Za);rt&&$.errors&&(wo={...$.errors,...wo});let _r=Ir(),Zr=U(N),Jr=_r||Zr||fa.length>0;return{matches:ye,loaderData:Hl,errors:wo,...Jr?{fetchers:new Map($.fetchers)}:{}}}function Je(Y){if(Y&&!kr(Y[1]))return{[Y[0]]:Y[1].data};if($.actionData)return Object.keys($.actionData).length===0?null:$.actionData}function Tr(Y){return Y.forEach(le=>{let ye=$.fetchers.get(le.key),Ne=Oy(void 0,ye?ye.data:void 0);$.fetchers.set(le.key,Ne)}),new Map($.fetchers)}async function Ul(Y,le,ye,Ne){qn(Y);let He=(Ne&&Ne.flushSync)===!0,Ke=x||v,Ve=tT($.location,$.matches,E,ye,le,Ne==null?void 0:Ne.relative),Xe=rs(Ke,Ve,E),Ie=Ia(Xe,Ke,Ve);if(Ie.active&&Ie.matches&&(Xe=Ie.matches),!Xe){nl(Y,le,Oo(404,{pathname:Ve}),{flushSync:He});return}let{path:rt,submission:mt,error:lt}=aA(!0,Ve,Ne);if(lt){nl(Y,le,lt,{flushSync:He});return}let wt=n.getContext?await n.getContext():new VO,xt=(Ne&&Ne.preventScrollReset)===!0;if(mt&&Nl(mt.formMethod)){await Xr(Y,le,rt,Xe,wt,Ie.active,He,xt,mt,Ne&&Ne.unstable_defaultShouldRevalidate);return}re.set(Y,{routeId:le,path:rt}),await jn(Y,le,rt,Xe,wt,Ie.active,He,xt,mt)}async function Xr(Y,le,ye,Ne,He,Ke,Ve,Xe,Ie,rt){Da(),re.delete(Y);let mt=$.fetchers.get(Y);Bl(Y,JN(Ie,mt),{flushSync:Ve});let lt=new AbortController,wt=Bh(n.history,ye,lt.signal,Ie);if(Ke){let _n=await Kl(Ne,new URL(wt.url).pathname,wt.signal,Y);if(_n.type==="aborted")return;if(_n.type==="error"){nl(Y,le,_n.error,{flushSync:Ve});return}else if(_n.matches)Ne=_n.matches;else{nl(Y,le,Oo(404,{pathname:ye}),{flushSync:Ve});return}}let xt=ub(Ne,ye);if(!xt.route.action&&!xt.route.lazy){let _n=Oo(405,{method:Ie.formMethod,pathname:ye,routeId:le});nl(Y,le,_n,{flushSync:Ve});return}ze.set(Y,lt);let gn=se,Rn=Lh(p,y,wt,Ne,xt,s,He),Yn=await Rt(wt,Rn,He,Y),Kt=Yn[xt.route.id];if(!Kt){for(let _n of Rn)if(Yn[_n.route.id]){Kt=Yn[_n.route.id];break}}if(wt.signal.aborted){ze.get(Y)===lt&&ze.delete(Y);return}if(Ue.has(Y)){if(kf(Kt)||kr(Kt)){Bl(Y,Qu(void 0));return}}else{if(kf(Kt))if(ze.delete(Y),N>gn){Bl(Y,Qu(void 0));return}else return ue.add(Y),Bl(Y,Oy(Ie)),Ll(wt,Kt,!1,{fetcherSubmission:Ie,preventScrollReset:Xe});if(kr(Kt)){nl(Y,le,Kt.error);return}}let fa=$.navigation.location||$.location,qt=Bh(n.history,fa,lt.signal),Pl=x||v,Za=$.navigation.state!=="idle"?rs(Pl,$.navigation.location,E):$.matches;Zt(Za,"Didn't find any matches after fetcher action");let Ea=++se;Z.set(Y,Ea);let Hl=Oy(Ie,Kt.data);$.fetchers.set(Y,Hl);let{dsMatches:wo,revalidatingFetchers:_r}=lA(qt,He,p,y,n.history,$,Za,Ie,fa,s,!1,ce,Ee,Ue,re,ue,Pl,E,n.patchRoutesOnNavigation!=null,[xt.route.id,Kt],rt);_r.filter(_n=>_n.key!==Y).forEach(_n=>{let ou=_n.key,Wu=$.fetchers.get(ou),Jf=Oy(void 0,Wu?Wu.data:void 0);$.fetchers.set(ou,Jf),qn(ou),_n.controller&&ze.set(ou,_n.controller)}),Ct({fetchers:new Map($.fetchers)});let Zr=()=>_r.forEach(_n=>qn(_n.key));lt.signal.addEventListener("abort",Zr);let{loaderResults:Jr,fetcherResults:Ut}=await tl(wo,_r,qt,He);if(lt.signal.aborted)return;if(lt.signal.removeEventListener("abort",Zr),Z.delete(Y),ze.delete(Y),_r.forEach(_n=>ze.delete(_n.key)),$.fetchers.has(Y)){let _n=Qu(Kt.data);$.fetchers.set(Y,_n)}let na=ib(Jr);if(na)return Ll(qt,na.result,!1,{preventScrollReset:Xe});if(na=ib(Ut),na)return ue.add(na.key),Ll(qt,na.result,!1,{preventScrollReset:Xe});let{loaderData:ll,errors:aa}=gA($,Za,Jr,void 0,_r,Ut);U(Ea),$.navigation.state==="loading"&&Ea>N?(Zt(Se,"Expected pending action"),Re&&Re.abort(),an($.navigation.location,{matches:Za,loaderData:ll,errors:aa,fetchers:new Map($.fetchers)})):(Ct({errors:aa,loaderData:vA($.loaderData,ll,Za,aa),fetchers:new Map($.fetchers)}),ce=!1)}async function jn(Y,le,ye,Ne,He,Ke,Ve,Xe,Ie){let rt=$.fetchers.get(Y);Bl(Y,Oy(Ie,rt?rt.data:void 0),{flushSync:Ve});let mt=new AbortController,lt=Bh(n.history,ye,mt.signal);if(Ke){let Kt=await Kl(Ne,new URL(lt.url).pathname,lt.signal,Y);if(Kt.type==="aborted")return;if(Kt.type==="error"){nl(Y,le,Kt.error,{flushSync:Ve});return}else if(Kt.matches)Ne=Kt.matches;else{nl(Y,le,Oo(404,{pathname:ye}),{flushSync:Ve});return}}let wt=ub(Ne,ye);ze.set(Y,mt);let xt=se,gn=Lh(p,y,lt,Ne,wt,s,He),Yn=(await Rt(lt,gn,He,Y))[wt.route.id];if(ze.get(Y)===mt&&ze.delete(Y),!lt.signal.aborted){if(Ue.has(Y)){Bl(Y,Qu(void 0));return}if(kf(Yn))if(N>xt){Bl(Y,Qu(void 0));return}else{ue.add(Y),await Ll(lt,Yn,!1,{preventScrollReset:Xe});return}if(kr(Yn)){nl(Y,le,Yn.error);return}Bl(Y,Qu(Yn.data))}}async function Ll(Y,le,ye,{submission:Ne,fetcherSubmission:He,preventScrollReset:Ke,replace:Ve}={}){ye||(me==null||me.resolve(),me=null),le.response.headers.has("X-Remix-Revalidate")&&(ce=!0);let Xe=le.response.headers.get("Location");Zt(Xe,"Expected a Location header on the redirect Response"),Xe=mA(Xe,new URL(Y.url),E,n.history);let Ie=gy($.location,Xe,{_isRedirect:!0});if(c){let gn=!1;if(le.response.headers.has("X-Remix-Reload-Document"))gn=!0;else if(K1(Xe)){const Rn=$O(Xe,!0);gn=Rn.origin!==o.location.origin||Ro(Rn.pathname,E)==null}if(gn){Ve?o.location.replace(Xe):o.location.assign(Xe);return}}Re=null;let rt=Ve===!0||le.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:mt,formAction:lt,formEncType:wt}=$.navigation;!Ne&&!He&&mt&<&&wt&&(Ne=TA($.navigation));let xt=Ne||He;if(_N.has(le.response.status)&&xt&&Nl(xt.formMethod))await sn(rt,Ie,{submission:{...xt,formAction:Xe},preventScrollReset:Ke||je,enableViewTransition:ye?ke:void 0});else{let gn=iT(Ie,Ne);await sn(rt,Ie,{overrideNavigation:gn,fetcherSubmission:He,preventScrollReset:Ke||je,enableViewTransition:ye?ke:void 0})}}async function Rt(Y,le,ye,Ne){var Ve;let He,Ke={};try{He=await zN(O,Y,le,Ne,ye,!1)}catch(Xe){return le.filter(Ie=>Ie.shouldLoad).forEach(Ie=>{Ke[Ie.route.id]={type:"error",error:Xe}}),Ke}if(Y.signal.aborted)return Ke;if(!Nl(Y.method))for(let Xe of le){if(((Ve=He[Xe.route.id])==null?void 0:Ve.type)==="error")break;!He.hasOwnProperty(Xe.route.id)&&!$.loaderData.hasOwnProperty(Xe.route.id)&&(!$.errors||!$.errors.hasOwnProperty(Xe.route.id))&&Xe.shouldCallHandler()&&(He[Xe.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Xe.route.id}`)})}for(let[Xe,Ie]of Object.entries(He))if(YN(Ie)){let rt=Ie.result;Ke[Xe]={type:"redirect",response:HN(rt,Y,Xe,le,E)}}else Ke[Xe]=await BN(Ie);return Ke}async function tl(Y,le,ye,Ne){let He=Rt(ye,Y,Ne,null),Ke=Promise.all(le.map(async Ie=>{if(Ie.matches&&Ie.match&&Ie.request&&Ie.controller){let mt=(await Rt(Ie.request,Ie.matches,Ne,Ie.key))[Ie.match.route.id];return{[Ie.key]:mt}}else return Promise.resolve({[Ie.key]:{type:"error",error:Oo(404,{pathname:Ie.path})}})})),Ve=await He,Xe=(await Ke).reduce((Ie,rt)=>Object.assign(Ie,rt),{});return{loaderResults:Ve,fetcherResults:Xe}}function Da(){ce=!0,re.forEach((Y,le)=>{ze.has(le)&&Ee.add(le),qn(le)})}function Bl(Y,le,ye={}){$.fetchers.set(Y,le),Ct({fetchers:new Map($.fetchers)},{flushSync:(ye&&ye.flushSync)===!0})}function nl(Y,le,ye,Ne={}){let He=is($.matches,le);al(Y),Ct({errors:{[He.route.id]:ye},fetchers:new Map($.fetchers)},{flushSync:(Ne&&Ne.flushSync)===!0})}function ru(Y){return De.set(Y,(De.get(Y)||0)+1),Ue.has(Y)&&Ue.delete(Y),$.fetchers.get(Y)||RN}function _i(Y,le){qn(Y,le==null?void 0:le.reason),Bl(Y,Qu(null))}function al(Y){let le=$.fetchers.get(Y);ze.has(Y)&&!(le&&le.state==="loading"&&Z.has(Y))&&qn(Y),re.delete(Y),Z.delete(Y),ue.delete(Y),Ue.delete(Y),Ee.delete(Y),$.fetchers.delete(Y)}function ea(Y){let le=(De.get(Y)||0)-1;le<=0?(De.delete(Y),Ue.add(Y)):De.set(Y,le),Ct({fetchers:new Map($.fetchers)})}function qn(Y,le){let ye=ze.get(Y);ye&&(ye.abort(le),ze.delete(Y))}function ta(Y){for(let le of Y){let ye=ru(le),Ne=Qu(ye.data);$.fetchers.set(le,Ne)}}function Ir(){let Y=[],le=!1;for(let ye of ue){let Ne=$.fetchers.get(ye);Zt(Ne,`Expected fetcher: ${ye}`),Ne.state==="loading"&&(ue.delete(ye),Y.push(ye),le=!0)}return ta(Y),le}function U(Y){let le=[];for(let[ye,Ne]of Z)if(Ne<Y){let He=$.fetchers.get(ye);Zt(He,`Expected fetcher: ${ye}`),He.state==="loading"&&(qn(ye),Z.delete(ye),le.push(ye))}return ta(le),le.length>0}function oe(Y,le){let ye=$.blockers.get(Y)||_y;return Me.get(Y)!==le&&Me.set(Y,le),ye}function we(Y){$.blockers.delete(Y),Me.delete(Y)}function Be(Y,le){let ye=$.blockers.get(Y)||_y;Zt(ye.state==="unblocked"&&le.state==="blocked"||ye.state==="blocked"&&le.state==="blocked"||ye.state==="blocked"&&le.state==="proceeding"||ye.state==="blocked"&&le.state==="unblocked"||ye.state==="proceeding"&&le.state==="unblocked",`Invalid blocker state transition: ${ye.state} -> ${le.state}`);let Ne=new Map($.blockers);Ne.set(Y,le),Ct({blockers:Ne})}function Fe({currentLocation:Y,nextLocation:le,historyAction:ye}){if(Me.size===0)return;Me.size>1&&ya(!1,"A router only supports one blocker at a time");let Ne=Array.from(Me.entries()),[He,Ke]=Ne[Ne.length-1],Ve=$.blockers.get(He);if(!(Ve&&Ve.state==="proceeding")&&Ke({currentLocation:Y,nextLocation:le,historyAction:ye}))return He}function ct(Y){let le=Oo(404,{pathname:Y}),ye=x||v,{matches:Ne,route:He}=ob(ye);return{notFoundMatches:Ne,route:He,error:le}}function tt(Y,le,ye){if(j=Y,L=le,H=ye||null,!V&&$.navigation===eT){V=!0;let Ne=ba($.location,$.matches);Ne!=null&&Ct({restoreScrollPosition:Ne})}return()=>{j=null,L=null,H=null}}function Dt(Y,le){return H&&H(Y,le.map(Ne=>Kj(Ne,$.loaderData)))||Y.key}function bt(Y,le){if(j&&L){let ye=Dt(Y,le);j[ye]=L()}}function ba(Y,le){if(j){let ye=Dt(Y,le),Ne=j[ye];if(typeof Ne=="number")return Ne}return null}function Ia(Y,le,ye){if(n.patchRoutesOnNavigation)if(Y){if(Object.keys(Y[0].params).length>0)return{active:!0,matches:Ey(le,ye,E,!0)}}else return{active:!0,matches:Ey(le,ye,E,!0)||[]};return{active:!1,matches:null}}async function Kl(Y,le,ye,Ne){if(!n.patchRoutesOnNavigation)return{type:"success",matches:Y};let He=Y;for(;;){let Ke=x==null,Ve=x||v,Xe=y;try{await n.patchRoutesOnNavigation({signal:ye,path:le,matches:He,fetcherKey:Ne,patch:(mt,lt)=>{ye.aborted||oA(mt,lt,Ve,Xe,p,!1)}})}catch(mt){return{type:"error",error:mt,partialMatches:He}}finally{Ke&&!ye.aborted&&(v=[...v])}if(ye.aborted)return{type:"aborted"};let Ie=rs(Ve,le,E),rt=null;if(Ie){if(Object.keys(Ie[0].params).length===0)return{type:"success",matches:Ie};if(rt=Ey(Ve,le,E,!0),!(rt&&He.length<rt.length&&Ri(He,rt.slice(0,He.length))))return{type:"success",matches:Ie}}if(rt||(rt=Ey(Ve,le,E,!0)),!rt||Ri(He,rt))return{type:"success",matches:null};He=rt}}function Ri(Y,le){return Y.length===le.length&&Y.every((ye,Ne)=>ye.route.id===le[Ne].route.id)}function Pu(Y){y={},x=by(Y,p,void 0,y)}function xr(Y,le,ye=!1){let Ne=x==null;oA(Y,le,x||v,y,p,ye),Ne&&(v=[...v],Ct({}))}return ae={get basename(){return E},get future(){return R},get state(){return $},get routes(){return v},get window(){return o},initialize:it,subscribe:$e,enableScrollRestoration:tt,navigate:Mt,fetch:Ul,revalidate:Vt,createHref:Y=>n.history.createHref(Y),encodeLocation:Y=>n.history.encodeLocation(Y),getFetcher:ru,resetFetcher:_i,deleteFetcher:ea,dispose:Le,getBlocker:oe,deleteBlocker:we,patchRoutes:xr,_internalFetchControllers:ze,_internalSetRoutes:Pu,_internalSetStateDoNotUseOrYouWillBreakYourApp(Y){Ct(Y)}},n.unstable_instrumentations&&(ae=yN(ae,n.unstable_instrumentations.map(Y=>Y.router).filter(Boolean))),ae}function CN(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function tT(n,o,c,s,d,p){let y,v;if(d){y=[];for(let E of o)if(y.push(E),E.route.id===d){v=E;break}}else y=o,v=o[o.length-1];let x=rb(s||".",W1(y),Ro(n.pathname,c)||n.pathname,p==="path");if(s==null&&(x.search=n.search,x.hash=n.hash),(s==null||s===""||s===".")&&v){let E=oT(x.search);if(v.route.index&&!E)x.search=x.search?x.search.replace(/^\?/,"?index&"):"?index";else if(!v.route.index&&E){let O=new URLSearchParams(x.search),R=O.getAll("index");O.delete("index"),R.filter(w=>w).forEach(w=>O.append("index",w));let A=O.toString();x.search=A?`?${A}`:""}}return c!=="/"&&(x.pathname=sN({basename:c,pathname:x.pathname})),eu(x)}function aA(n,o,c){if(!c||!CN(c))return{path:o};if(c.formMethod&&!IN(c.formMethod))return{path:o,error:Oo(405,{method:c.formMethod})};let s=()=>({path:o,error:Oo(400,{type:"invalid-body"})}),p=(c.formMethod||"get").toUpperCase(),y=EA(o);if(c.body!==void 0){if(c.formEncType==="text/plain"){if(!Nl(p))return s();let R=typeof c.body=="string"?c.body:c.body instanceof FormData||c.body instanceof URLSearchParams?Array.from(c.body.entries()).reduce((A,[w,j])=>`${A}${w}=${j}
|
|
333
|
+
`,""):String(c.body);return{path:o,submission:{formMethod:p,formAction:y,formEncType:c.formEncType,formData:void 0,json:void 0,text:R}}}else if(c.formEncType==="application/json"){if(!Nl(p))return s();try{let R=typeof c.body=="string"?JSON.parse(c.body):c.body;return{path:o,submission:{formMethod:p,formAction:y,formEncType:c.formEncType,formData:void 0,json:R,text:void 0}}}catch{return s()}}}Zt(typeof FormData=="function","FormData is not available in this environment");let v,x;if(c.formData)v=lT(c.formData),x=c.formData;else if(c.body instanceof FormData)v=lT(c.body),x=c.body;else if(c.body instanceof URLSearchParams)v=c.body,x=yA(v);else if(c.body==null)v=new URLSearchParams,x=new FormData;else try{v=new URLSearchParams(c.body),x=yA(v)}catch{return s()}let E={formMethod:p,formAction:y,formEncType:c&&c.formEncType||"application/x-www-form-urlencoded",formData:x,json:void 0,text:void 0};if(Nl(E.formMethod))return{path:o,submission:E};let O=Yu(o);return n&&O.search&&oT(O.search)&&v.append("index",""),O.search=`?${v}`,{path:eu(O),submission:E}}function lA(n,o,c,s,d,p,y,v,x,E,O,R,A,w,j,H,L,V,J,F,K){var et;let k=F?kr(F[1])?F[1].error:F[1].data:void 0,P=d.createURL(p.location),ae=d.createURL(x),$;if(O&&p.errors){let G=Object.keys(p.errors)[0];$=y.findIndex(ce=>ce.route.id===G)}else if(F&&kr(F[1])){let G=F[0];$=y.findIndex(ce=>ce.route.id===G)-1}let Se=F?F[1].statusCode:void 0,me=Se&&Se>=400,je={currentUrl:P,currentParams:((et=p.matches[0])==null?void 0:et.params)||{},nextUrl:ae,nextParams:y[0].params,...v,actionResult:k,actionStatus:Se},Re=xy(y),ke=y.map((G,ce)=>{let{route:Ee}=G,ze=null;if($!=null&&ce>$)ze=!1;else if(Ee.lazy)ze=!0;else if(!nT(Ee))ze=!1;else if(O){let{shouldLoad:ue}=rA(Ee,p.loaderData,p.errors);ze=ue}else DN(p.loaderData,p.matches[ce],G)&&(ze=!0);if(ze!==null)return aT(c,s,n,Re,G,E,o,ze);let se=!1;typeof K=="boolean"?se=K:me?se=!1:(R||P.pathname+P.search===ae.pathname+ae.search||P.search!==ae.search||wN(p.matches[ce],G))&&(se=!0);let N={...je,defaultShouldRevalidate:se},Z=Ry(G,N);return aT(c,s,n,Re,G,E,o,Z,N,K)}),Ye=[];return j.forEach((G,ce)=>{if(O||!y.some(De=>De.route.id===G.routeId)||w.has(ce))return;let Ee=p.fetchers.get(ce),ze=Ee&&Ee.state!=="idle"&&Ee.data===void 0,se=rs(L,G.path,V);if(!se){if(J&&ze)return;Ye.push({key:ce,routeId:G.routeId,path:G.path,matches:null,match:null,request:null,controller:null});return}if(H.has(ce))return;let N=ub(se,G.path),Z=new AbortController,ue=Bh(d,G.path,Z.signal),re=null;if(A.has(ce))A.delete(ce),re=Lh(c,s,ue,se,N,E,o);else if(ze)R&&(re=Lh(c,s,ue,se,N,E,o));else{let De;typeof K=="boolean"?De=K:me?De=!1:De=R;let Ue={...je,defaultShouldRevalidate:De};Ry(N,Ue)&&(re=Lh(c,s,ue,se,N,E,o,Ue))}re&&Ye.push({key:ce,routeId:G.routeId,path:G.path,matches:re,match:N,request:ue,controller:Z})}),{dsMatches:ke,revalidatingFetchers:Ye}}function nT(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function rA(n,o,c){if(n.lazy)return{shouldLoad:!0,renderFallback:!0};if(!nT(n))return{shouldLoad:!1,renderFallback:!1};let s=o!=null&&n.id in o,d=c!=null&&c[n.id]!==void 0;if(!s&&d)return{shouldLoad:!1,renderFallback:!1};if(typeof n.loader=="function"&&n.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!s};let p=!s&&!d;return{shouldLoad:p,renderFallback:p}}function DN(n,o,c){let s=!o||c.route.id!==o.route.id,d=!n.hasOwnProperty(c.route.id);return s||d}function wN(n,o){let c=n.route.path;return n.pathname!==o.pathname||c!=null&&c.endsWith("*")&&n.params["*"]!==o.params["*"]}function Ry(n,o){if(n.route.shouldRevalidate){let c=n.route.shouldRevalidate(o);if(typeof c=="boolean")return c}return o.defaultShouldRevalidate}function oA(n,o,c,s,d,p){let y;if(n){let E=s[n];Zt(E,`No route found to patch children into: routeId = ${n}`),E.children||(E.children=[]),y=E.children}else y=c;let v=[],x=[];if(o.forEach(E=>{let O=y.find(R=>iA(E,R));O?x.push({existingRoute:O,newRoute:E}):v.push(E)}),v.length>0){let E=by(v,d,[n||"_","patch",String((y==null?void 0:y.length)||"0")],s);y.push(...E)}if(p&&x.length>0)for(let E=0;E<x.length;E++){let{existingRoute:O,newRoute:R}=x[E],A=O,[w]=by([R],d,[],{},!0);Object.assign(A,{element:w.element?w.element:A.element,errorElement:w.errorElement?w.errorElement:A.errorElement,hydrateFallbackElement:w.hydrateFallbackElement?w.hydrateFallbackElement:A.hydrateFallbackElement})}}function iA(n,o){var c;return"id"in n&&"id"in o&&n.id===o.id?!0:n.index===o.index&&n.path===o.path&&n.caseSensitive===o.caseSensitive?(!n.children||n.children.length===0)&&(!o.children||o.children.length===0)?!0:((c=n.children)==null?void 0:c.every((s,d)=>{var p;return(p=o.children)==null?void 0:p.some(y=>iA(s,y))}))??!1:!1}var uA=new WeakMap,cA=({key:n,route:o,manifest:c,mapRouteProperties:s})=>{let d=c[o.id];if(Zt(d,"No route found in manifest"),!d.lazy||typeof d.lazy!="object")return;let p=d.lazy[n];if(!p)return;let y=uA.get(d);y||(y={},uA.set(d,y));let v=y[n];if(v)return v;let x=(async()=>{let E=Ij(n),R=d[n]!==void 0&&n!=="hasErrorBoundary";if(E)ya(!E,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),y[n]=Promise.resolve();else if(R)ya(!1,`Route "${d.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let A=await p();A!=null&&(Object.assign(d,{[n]:A}),Object.assign(d,s(d)))}typeof d.lazy=="object"&&(d.lazy[n]=void 0,Object.values(d.lazy).every(A=>A===void 0)&&(d.lazy=void 0))})();return y[n]=x,x},sA=new WeakMap;function MN(n,o,c,s,d){let p=c[n.id];if(Zt(p,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let O=sA.get(p);if(O)return{lazyRoutePromise:O,lazyHandlerPromise:O};let R=(async()=>{Zt(typeof n.lazy=="function","No lazy route function found");let A=await n.lazy(),w={};for(let j in A){let H=A[j];if(H===void 0)continue;let L=Jj(j),J=p[j]!==void 0&&j!=="hasErrorBoundary";L?ya(!L,"Route property "+j+" is not a supported property to be returned from a lazy route function. This property will be ignored."):J?ya(!J,`Route "${p.id}" has a static property "${j}" defined but its lazy function is also returning a value for this property. The lazy route property "${j}" will be ignored.`):w[j]=H}Object.assign(p,w),Object.assign(p,{...s(p),lazy:void 0})})();return sA.set(p,R),R.catch(()=>{}),{lazyRoutePromise:R,lazyHandlerPromise:R}}let y=Object.keys(n.lazy),v=[],x;for(let O of y){if(d&&d.includes(O))continue;let R=cA({key:O,route:n,manifest:c,mapRouteProperties:s});R&&(v.push(R),O===o&&(x=R))}let E=v.length>0?Promise.all(v).then(()=>{}):void 0;return E==null||E.catch(()=>{}),x==null||x.catch(()=>{}),{lazyRoutePromise:E,lazyHandlerPromise:x}}async function fA(n){let o=n.matches.filter(d=>d.shouldLoad),c={};return(await Promise.all(o.map(d=>d.resolve()))).forEach((d,p)=>{c[o[p].route.id]=d}),c}async function jN(n){return n.matches.some(o=>o.route.middleware)?dA(n,()=>fA(n)):fA(n)}function dA(n,o){return NN(n,o,s=>{if(XN(s))throw s;return s},GN,c);function c(s,d,p){if(p)return Promise.resolve(Object.assign(p.value,{[d]:{type:"error",result:s}}));{let{matches:y}=n,v=Math.min(Math.max(y.findIndex(E=>E.route.id===d),0),Math.max(y.findIndex(E=>E.shouldCallHandler()),0)),x=is(y,y[v].route.id).route.id;return Promise.resolve({[x]:{type:"error",result:s}})}}}async function NN(n,o,c,s,d){let{matches:p,request:y,params:v,context:x,unstable_pattern:E}=n,O=p.flatMap(A=>A.route.middleware?A.route.middleware.map(w=>[A.route.id,w]):[]);return await hA({request:y,params:v,context:x,unstable_pattern:E},O,o,c,s,d)}async function hA(n,o,c,s,d,p,y=0){let{request:v}=n;if(v.signal.aborted)throw v.signal.reason??new Error(`Request aborted: ${v.method} ${v.url}`);let x=o[y];if(!x)return await c();let[E,O]=x,R,A=async()=>{if(R)throw new Error("You may only call `next()` once per middleware");try{return R={value:await hA(n,o,c,s,d,p,y+1)},R.value}catch(w){return R={value:await p(w,E,R)},R.value}};try{let w=await O(n,A),j=w!=null?s(w):void 0;return d(j)?j:R?j??R.value:(R={value:await A()},R.value)}catch(w){return await p(w,E,R)}}function pA(n,o,c,s,d){let p=cA({key:"middleware",route:s.route,manifest:o,mapRouteProperties:n}),y=MN(s.route,Nl(c.method)?"action":"loader",o,n,d);return{middleware:p,route:y.lazyRoutePromise,handler:y.lazyHandlerPromise}}function aT(n,o,c,s,d,p,y,v,x=null,E){let O=!1,R=pA(n,o,c,d,p);return{...d,_lazyPromises:R,shouldLoad:v,shouldRevalidateArgs:x,shouldCallHandler(A){return O=!0,x?typeof E=="boolean"?Ry(d,{...x,defaultShouldRevalidate:E}):typeof A=="boolean"?Ry(d,{...x,defaultShouldRevalidate:A}):Ry(d,x):v},resolve(A){let{lazy:w,loader:j,middleware:H}=d.route,L=O||v||A&&!Nl(c.method)&&(w||j),V=H&&H.length>0&&!j&&!w;return L&&(Nl(c.method)||!V)?UN({request:c,unstable_pattern:s,match:d,lazyHandlerPromise:R==null?void 0:R.handler,lazyRoutePromise:R==null?void 0:R.route,handlerOverride:A,scopedContext:y}):Promise.resolve({type:"data",result:void 0})}}}function Lh(n,o,c,s,d,p,y,v=null){return s.map(x=>x.route.id!==d.route.id?{...x,shouldLoad:!1,shouldRevalidateArgs:v,shouldCallHandler:()=>!1,_lazyPromises:pA(n,o,c,x,p),resolve:()=>Promise.resolve({type:"data",result:void 0})}:aT(n,o,c,xy(s),x,p,y,!0,v))}async function zN(n,o,c,s,d,p){c.some(E=>{var O;return(O=E._lazyPromises)==null?void 0:O.middleware})&&await Promise.all(c.map(E=>{var O;return(O=E._lazyPromises)==null?void 0:O.middleware}));let y={request:o,unstable_pattern:xy(c),params:c[0].params,context:d,matches:c},x=await n({...y,fetcherKey:s,runClientMiddleware:E=>{let O=y;return dA(O,()=>E({...O,fetcherKey:s,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(c.flatMap(E=>{var O,R;return[(O=E._lazyPromises)==null?void 0:O.handler,(R=E._lazyPromises)==null?void 0:R.route]}))}catch{}return x}async function UN({request:n,unstable_pattern:o,match:c,lazyHandlerPromise:s,lazyRoutePromise:d,handlerOverride:p,scopedContext:y}){let v,x,E=Nl(n.method),O=E?"action":"loader",R=A=>{let w,j=new Promise((V,J)=>w=J);x=()=>w(),n.signal.addEventListener("abort",x);let H=V=>typeof A!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${O}" [routeId: ${c.route.id}]`)):A({request:n,unstable_pattern:o,params:c.params,context:y},...V!==void 0?[V]:[]),L=(async()=>{try{return{type:"data",result:await(p?p(J=>H(J)):H())}}catch(V){return{type:"error",result:V}}})();return Promise.race([L,j])};try{let A=E?c.route.action:c.route.loader;if(s||d)if(A){let w,[j]=await Promise.all([R(A).catch(H=>{w=H}),s,d]);if(w!==void 0)throw w;v=j}else{await s;let w=E?c.route.action:c.route.loader;if(w)[v]=await Promise.all([R(w),d]);else if(O==="action"){let j=new URL(n.url),H=j.pathname+j.search;throw Oo(405,{method:n.method,pathname:H,routeId:c.route.id})}else return{type:"data",result:void 0}}else if(A)v=await R(A);else{let w=new URL(n.url),j=w.pathname+w.search;throw Oo(404,{pathname:j})}}catch(A){return{type:"error",result:A}}finally{x&&n.signal.removeEventListener("abort",x)}return v}async function LN(n){let o=n.headers.get("Content-Type");return o&&/\bapplication\/json\b/.test(o)?n.body==null?null:n.json():n.text()}async function BN(n){var s,d,p,y,v;let{result:o,type:c}=n;if(rT(o)){let x;try{x=await LN(o)}catch(E){return{type:"error",error:E}}return c==="error"?{type:"error",error:new Sy(o.status,o.statusText,x),statusCode:o.status,headers:o.headers}:{type:"data",data:x,statusCode:o.status,headers:o.headers}}return c==="error"?SA(o)?o.data instanceof Error?{type:"error",error:o.data,statusCode:(s=o.init)==null?void 0:s.status,headers:(d=o.init)!=null&&d.headers?new Headers(o.init.headers):void 0}:{type:"error",error:kN(o),statusCode:Ty(o)?o.status:void 0,headers:(p=o.init)!=null&&p.headers?new Headers(o.init.headers):void 0}:{type:"error",error:o,statusCode:Ty(o)?o.status:void 0}:SA(o)?{type:"data",data:o.data,statusCode:(y=o.init)==null?void 0:y.status,headers:(v=o.init)!=null&&v.headers?new Headers(o.init.headers):void 0}:{type:"data",data:o}}function HN(n,o,c,s,d){let p=n.headers.get("Location");if(Zt(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!K1(p)){let y=s.slice(0,s.findIndex(v=>v.route.id===c)+1);p=tT(new URL(o.url),y,d,p),n.headers.set("Location",p)}return n}function mA(n,o,c,s){let d=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(K1(n)){let p=n,y=p.startsWith("//")?new URL(o.protocol+p):new URL(p);if(d.includes(y.protocol))throw new Error("Invalid redirect location");let v=Ro(y.pathname,c)!=null;if(y.origin===o.origin&&v)return y.pathname+y.search+y.hash}try{let p=s.createURL(n);if(d.includes(p.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Bh(n,o,c,s){let d=n.createURL(EA(o)).toString(),p={signal:c};if(s&&Nl(s.formMethod)){let{formMethod:y,formEncType:v}=s;p.method=y.toUpperCase(),v==="application/json"?(p.headers=new Headers({"Content-Type":v}),p.body=JSON.stringify(s.json)):v==="text/plain"?p.body=s.text:v==="application/x-www-form-urlencoded"&&s.formData?p.body=lT(s.formData):p.body=s.formData}return new Request(d,p)}function lT(n){let o=new URLSearchParams;for(let[c,s]of n.entries())o.append(c,typeof s=="string"?s:s.name);return o}function yA(n){let o=new FormData;for(let[c,s]of n.entries())o.append(c,s);return o}function $N(n,o,c,s=!1,d=!1){let p={},y=null,v,x=!1,E={},O=c&&kr(c[1])?c[1].error:void 0;return n.forEach(R=>{if(!(R.route.id in o))return;let A=R.route.id,w=o[A];if(Zt(!kf(w),"Cannot handle redirect results in processLoaderData"),kr(w)){let j=w.error;if(O!==void 0&&(j=O,O=void 0),y=y||{},d)y[A]=j;else{let H=is(n,A);y[H.route.id]==null&&(y[H.route.id]=j)}s||(p[A]=nA),x||(x=!0,v=Ty(w.error)?w.error.status:500),w.headers&&(E[A]=w.headers)}else p[A]=w.data,w.statusCode&&w.statusCode!==200&&!x&&(v=w.statusCode),w.headers&&(E[A]=w.headers)}),O!==void 0&&c&&(y={[c[0]]:O},c[2]&&(p[c[2]]=void 0)),{loaderData:p,errors:y,statusCode:v||200,loaderHeaders:E}}function gA(n,o,c,s,d,p){let{loaderData:y,errors:v}=$N(o,c,s);return d.filter(x=>!x.matches||x.matches.some(E=>E.shouldLoad)).forEach(x=>{let{key:E,match:O,controller:R}=x;if(R&&R.signal.aborted)return;let A=p[E];if(Zt(A,"Did not find corresponding fetcher result"),kr(A)){let w=is(n.matches,O==null?void 0:O.route.id);v&&v[w.route.id]||(v={...v,[w.route.id]:A.error}),n.fetchers.delete(E)}else if(kf(A))Zt(!1,"Unhandled fetcher revalidation redirect");else{let w=Qu(A.data);n.fetchers.set(E,w)}}),{loaderData:y,errors:v}}function vA(n,o,c,s){let d=Object.entries(o).filter(([,p])=>p!==nA).reduce((p,[y,v])=>(p[y]=v,p),{});for(let p of c){let y=p.route.id;if(!o.hasOwnProperty(y)&&n.hasOwnProperty(y)&&p.route.loader&&(d[y]=n[y]),s&&s.hasOwnProperty(y))break}return d}function bA(n){return n?kr(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function is(n,o){return(o?n.slice(0,n.findIndex(s=>s.route.id===o)+1):[...n]).reverse().find(s=>s.route.hasErrorBoundary===!0)||n[0]}function ob(n){let o=n.length===1?n[0]:n.find(c=>c.index||!c.path||c.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:o}],route:o}}function Oo(n,{pathname:o,routeId:c,method:s,type:d,message:p}={}){let y="Unknown Server Error",v="Unknown @remix-run/router error";return n===400?(y="Bad Request",s&&o&&c?v=`You made a ${s} request to "${o}" but did not provide a \`loader\` for route "${c}", so there is no way to handle the request.`:d==="invalid-body"&&(v="Unable to encode submission body")):n===403?(y="Forbidden",v=`Route "${c}" does not match URL "${o}"`):n===404?(y="Not Found",v=`No route matches URL "${o}"`):n===405&&(y="Method Not Allowed",s&&o&&c?v=`You made a ${s.toUpperCase()} request to "${o}" but did not provide an \`action\` for route "${c}", so there is no way to handle the request.`:s&&(v=`Invalid request method "${s.toUpperCase()}"`)),new Sy(n||500,y,new Error(v),!0)}function ib(n){let o=Object.entries(n);for(let c=o.length-1;c>=0;c--){let[s,d]=o[c];if(kf(d))return{key:s,result:d}}}function EA(n){let o=typeof n=="string"?Yu(n):n;return eu({...o,hash:""})}function VN(n,o){return n.pathname!==o.pathname||n.search!==o.search?!1:n.hash===""?o.hash!=="":n.hash===o.hash?!0:o.hash!==""}function kN(n){var o,c;return new Sy(((o=n.init)==null?void 0:o.status)??500,((c=n.init)==null?void 0:c.statusText)??"Internal Server Error",n.data)}function GN(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([o,c])=>typeof o=="string"&&qN(c))}function qN(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function YN(n){return rT(n.result)&&eA.has(n.result.status)}function kr(n){return n.type==="error"}function kf(n){return(n&&n.type)==="redirect"}function SA(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function rT(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function QN(n){return eA.has(n)}function XN(n){return rT(n)&&QN(n.status)&&n.headers.has("Location")}function IN(n){return xN.has(n.toUpperCase())}function Nl(n){return SN.has(n.toUpperCase())}function oT(n){return new URLSearchParams(n).getAll("index").some(o=>o==="")}function ub(n,o){let c=typeof o=="string"?Yu(o).search:o.search;if(n[n.length-1].route.index&&oT(c||""))return n[n.length-1];let s=IO(n);return s[s.length-1]}function TA(n){let{formMethod:o,formAction:c,formEncType:s,text:d,formData:p,json:y}=n;if(!(!o||!c||!s)){if(d!=null)return{formMethod:o,formAction:c,formEncType:s,formData:void 0,json:void 0,text:d};if(p!=null)return{formMethod:o,formAction:c,formEncType:s,formData:p,json:void 0,text:void 0};if(y!==void 0)return{formMethod:o,formAction:c,formEncType:s,formData:void 0,json:y,text:void 0}}}function iT(n,o){return o?{state:"loading",location:n,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ZN(n,o){return{state:"submitting",location:n,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}}function Oy(n,o){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:o}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:o}}function JN(n,o){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:o?o.data:void 0}}function Qu(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function FN(n,o){try{let c=n.sessionStorage.getItem(tA);if(c){let s=JSON.parse(c);for(let[d,p]of Object.entries(s||{}))p&&Array.isArray(p)&&o.set(d,new Set(p||[]))}}catch{}}function KN(n,o){if(o.size>0){let c={};for(let[s,d]of o)c[s]=[...d];try{n.sessionStorage.setItem(tA,JSON.stringify(c))}catch(s){ya(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function xA(){let n,o,c=new Promise((s,d)=>{n=async p=>{s(p);try{await c}catch{}},o=async p=>{d(p);try{await c}catch{}}});return{promise:c,resolve:n,reject:o}}var Gf=D.createContext(null);Gf.displayName="DataRouter";var Ay=D.createContext(null);Ay.displayName="DataRouterState";var _A=D.createContext(!1);function PN(){return D.useContext(_A)}var uT=D.createContext({isTransitioning:!1});uT.displayName="ViewTransition";var RA=D.createContext(new Map);RA.displayName="Fetchers";var WN=D.createContext(null);WN.displayName="Await";var Ao=D.createContext(null);Ao.displayName="Navigation";var cb=D.createContext(null);cb.displayName="Location";var bi=D.createContext({outlet:null,matches:[],isDataRoute:!1});bi.displayName="Route";var cT=D.createContext(null);cT.displayName="RouteError";var OA="REACT_ROUTER_ERROR",ez="REDIRECT",tz="ROUTE_ERROR_RESPONSE";function nz(n){if(n.startsWith(`${OA}:${ez}:{`))try{let o=JSON.parse(n.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function az(n){if(n.startsWith(`${OA}:${tz}:{`))try{let o=JSON.parse(n.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Sy(o.status,o.statusText,o.data)}catch{}}function lz(n,{relative:o}={}){Zt(Cy(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=D.useContext(Ao),{hash:d,pathname:p,search:y}=Hh(n,{relative:o}),v=p;return c!=="/"&&(v=p==="/"?c:vi([c,p])),s.createHref({pathname:v,search:y,hash:d})}function Cy(){return D.useContext(cb)!=null}function tu(){return Zt(Cy(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(cb).location}var AA="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function CA(n){D.useContext(Ao).static||D.useLayoutEffect(n)}function us(){let{isDataRoute:n}=D.useContext(bi);return n?bz():rz()}function rz(){Zt(Cy(),"useNavigate() may be used only in the context of a <Router> component.");let n=D.useContext(Gf),{basename:o,navigator:c}=D.useContext(Ao),{matches:s}=D.useContext(bi),{pathname:d}=tu(),p=JSON.stringify(W1(s)),y=D.useRef(!1);return CA(()=>{y.current=!0}),D.useCallback((x,E={})=>{if(ya(y.current,AA),!y.current)return;if(typeof x=="number"){c.go(x);return}let O=rb(x,JSON.parse(p),d,E.relative==="path");n==null&&o!=="/"&&(O.pathname=O.pathname==="/"?o:vi([o,O.pathname])),(E.replace?c.replace:c.push)(O,E.state,E)},[o,c,p,d,n])}var oz=D.createContext(null);function iz(n){let o=D.useContext(bi).outlet;return D.useMemo(()=>o&&D.createElement(oz.Provider,{value:n},o),[o,n])}function qf(){let{matches:n}=D.useContext(bi),o=n[n.length-1];return o?o.params:{}}function Hh(n,{relative:o}={}){let{matches:c}=D.useContext(bi),{pathname:s}=tu(),d=JSON.stringify(W1(c));return D.useMemo(()=>rb(n,JSON.parse(d),s,o==="path"),[n,d,s,o])}function uz(n,o,c){Zt(Cy(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=D.useContext(Ao),{matches:d}=D.useContext(bi),p=d[d.length-1],y=p?p.params:{},v=p?p.pathname:"/",x=p?p.pathnameBase:"/",E=p&&p.route;{let L=E&&E.path||"";MA(v,!E||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
334
|
+
|
|
335
|
+
Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let O=tu(),R;R=O;let A=R.pathname||"/",w=A;if(x!=="/"){let L=x.replace(/^\//,"").split("/");w="/"+A.replace(/^\//,"").split("/").slice(L.length).join("/")}let j=rs(n,{pathname:w});return ya(E||j!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),ya(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),hz(j&&j.map(L=>Object.assign({},L,{params:Object.assign({},y,L.params),pathname:vi([x,s.encodeLocation?s.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?x:vi([x,s.encodeLocation?s.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),d,c)}function cz(){let n=vz(),o=Ty(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),c=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},p={padding:"2px 4px",backgroundColor:s},y=null;return console.error("Error handled by React Router default ErrorBoundary:",n),y=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:p},"ErrorBoundary")," or"," ",D.createElement("code",{style:p},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},o),c?D.createElement("pre",{style:d},c):null,y)}var sz=D.createElement(cz,null),DA=class extends D.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,o){return o.location!==n.location||o.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:o.error,location:o.location,revalidation:n.revalidation||o.revalidation}}componentDidCatch(n,o){this.props.onError?this.props.onError(n,o):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const c=az(n.digest);c&&(n=c)}let o=n!==void 0?D.createElement(bi.Provider,{value:this.props.routeContext},D.createElement(cT.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?D.createElement(fz,{error:n},o):o}};DA.contextType=_A;var sT=new WeakMap;function fz({children:n,error:o}){let{basename:c}=D.useContext(Ao);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=nz(o.digest);if(s){let d=sT.get(o);if(d)throw d;let p=JO(s.location,c);if(ZO&&!sT.get(o))if(p.isExternal||s.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:s.replace}));throw sT.set(o,y),y}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return n}function dz({routeContext:n,match:o,children:c}){let s=D.useContext(Gf);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),D.createElement(bi.Provider,{value:n},c)}function hz(n,o=[],c){let s=c==null?void 0:c.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let d=n,p=s==null?void 0:s.errors;if(p!=null){let O=d.findIndex(R=>R.route.id&&(p==null?void 0:p[R.route.id])!==void 0);Zt(O>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),d=d.slice(0,Math.min(d.length,O+1))}let y=!1,v=-1;if(c&&s){y=s.renderFallback;for(let O=0;O<d.length;O++){let R=d[O];if((R.route.HydrateFallback||R.route.hydrateFallbackElement)&&(v=O),R.route.id){let{loaderData:A,errors:w}=s,j=R.route.loader&&!A.hasOwnProperty(R.route.id)&&(!w||w[R.route.id]===void 0);if(R.route.lazy||j){c.isStatic&&(y=!0),v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}}let x=c==null?void 0:c.onError,E=s&&x?(O,R)=>{var A,w;x(O,{location:s.location,params:((w=(A=s.matches)==null?void 0:A[0])==null?void 0:w.params)??{},unstable_pattern:xy(s.matches),errorInfo:R})}:void 0;return d.reduceRight((O,R,A)=>{let w,j=!1,H=null,L=null;s&&(w=p&&R.route.id?p[R.route.id]:void 0,H=R.route.errorElement||sz,y&&(v<0&&A===0?(MA("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,L=null):v===A&&(j=!0,L=R.route.hydrateFallbackElement||null)));let V=o.concat(d.slice(0,A+1)),J=()=>{let F;return w?F=H:j?F=L:R.route.Component?F=D.createElement(R.route.Component,null):R.route.element?F=R.route.element:F=O,D.createElement(dz,{match:R,routeContext:{outlet:O,matches:V,isDataRoute:s!=null},children:F})};return s&&(R.route.ErrorBoundary||R.route.errorElement||A===0)?D.createElement(DA,{location:s.location,revalidation:s.revalidation,component:H,error:w,children:J(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:E}):J()},null)}function fT(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pz(n){let o=D.useContext(Gf);return Zt(o,fT(n)),o}function mz(n){let o=D.useContext(Ay);return Zt(o,fT(n)),o}function yz(n){let o=D.useContext(bi);return Zt(o,fT(n)),o}function dT(n){let o=yz(n),c=o.matches[o.matches.length-1];return Zt(c.route.id,`${n} can only be used on routes that contain a unique "id"`),c.route.id}function gz(){return dT("useRouteId")}function vz(){var s;let n=D.useContext(cT),o=mz("useRouteError"),c=dT("useRouteError");return n!==void 0?n:(s=o.errors)==null?void 0:s[c]}function bz(){let{router:n}=pz("useNavigate"),o=dT("useNavigate"),c=D.useRef(!1);return CA(()=>{c.current=!0}),D.useCallback(async(d,p={})=>{ya(c.current,AA),c.current&&(typeof d=="number"?await n.navigate(d):await n.navigate(d,{fromRouteId:o,...p}))},[n,o])}var wA={};function MA(n,o,c){!o&&!wA[n]&&(wA[n]=!0,ya(!1,c))}var jA={};function NA(n,o){!n&&!jA[o]&&(jA[o]=!0,console.warn(o))}var Ez="useOptimistic",zA=Vj[Ez],Sz=()=>{};function Tz(n){return zA?zA(n):[n,Sz]}function xz(n){let o={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&ya(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(o,{element:D.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&ya(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(o,{hydrateFallbackElement:D.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&ya(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(o,{errorElement:D.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),o}var _z=["HydrateFallback","hydrateFallbackElement"],Rz=class{constructor(){this.status="pending",this.promise=new Promise((n,o)=>{this.resolve=c=>{this.status==="pending"&&(this.status="resolved",n(c))},this.reject=c=>{this.status==="pending"&&(this.status="rejected",o(c))}})}};function Oz({router:n,flushSync:o,onError:c,unstable_useTransitions:s}){s=PN()||s;let[p,y]=D.useState(n.state),[v,x]=Tz(p),[E,O]=D.useState(),[R,A]=D.useState({isTransitioning:!1}),[w,j]=D.useState(),[H,L]=D.useState(),[V,J]=D.useState(),F=D.useRef(new Map),K=D.useCallback(($,{deletedFetchers:Se,newErrors:me,flushSync:je,viewTransitionOpts:Re})=>{me&&c&&Object.values(me).forEach(Ye=>{var et;return c(Ye,{location:$.location,params:((et=$.matches[0])==null?void 0:et.params)??{},unstable_pattern:xy($.matches)})}),$.fetchers.forEach((Ye,et)=>{Ye.data!==void 0&&F.current.set(et,Ye.data)}),Se.forEach(Ye=>F.current.delete(Ye)),NA(je===!1||o!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ke=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(NA(Re==null||ke,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Re||!ke){o&&je?o(()=>y($)):s===!1?y($):D.startTransition(()=>{s===!0&&x(Ye=>UA(Ye,$)),y($)});return}if(o&&je){o(()=>{H&&(w==null||w.resolve(),H.skipTransition()),A({isTransitioning:!0,flushSync:!0,currentLocation:Re.currentLocation,nextLocation:Re.nextLocation})});let Ye=n.window.document.startViewTransition(()=>{o(()=>y($))});Ye.finished.finally(()=>{o(()=>{j(void 0),L(void 0),O(void 0),A({isTransitioning:!1})})}),o(()=>L(Ye));return}H?(w==null||w.resolve(),H.skipTransition(),J({state:$,currentLocation:Re.currentLocation,nextLocation:Re.nextLocation})):(O($),A({isTransitioning:!0,flushSync:!1,currentLocation:Re.currentLocation,nextLocation:Re.nextLocation}))},[n.window,o,H,w,s,x,c]);D.useLayoutEffect(()=>n.subscribe(K),[n,K]),D.useEffect(()=>{R.isTransitioning&&!R.flushSync&&j(new Rz)},[R]),D.useEffect(()=>{if(w&&E&&n.window){let $=E,Se=w.promise,me=n.window.document.startViewTransition(async()=>{s===!1?y($):D.startTransition(()=>{s===!0&&x(je=>UA(je,$)),y($)}),await Se});me.finished.finally(()=>{j(void 0),L(void 0),O(void 0),A({isTransitioning:!1})}),L(me)}},[E,w,n.window,s,x]),D.useEffect(()=>{w&&E&&v.location.key===E.location.key&&w.resolve()},[w,H,v.location,E]),D.useEffect(()=>{!R.isTransitioning&&V&&(O(V.state),A({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}),J(void 0))},[R.isTransitioning,V]);let k=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,Se,me)=>n.navigate($,{state:Se,preventScrollReset:me==null?void 0:me.preventScrollReset}),replace:($,Se,me)=>n.navigate($,{replace:!0,state:Se,preventScrollReset:me==null?void 0:me.preventScrollReset})}),[n]),P=n.basename||"/",ae=D.useMemo(()=>({router:n,navigator:k,static:!1,basename:P,onError:c}),[n,k,P,c]);return D.createElement(D.Fragment,null,D.createElement(Gf.Provider,{value:ae},D.createElement(Ay.Provider,{value:v},D.createElement(RA.Provider,{value:F.current},D.createElement(uT.Provider,{value:R},D.createElement(wz,{basename:P,location:v.location,navigationType:v.historyAction,navigator:k,unstable_useTransitions:s},D.createElement(Az,{routes:n.routes,future:n.future,state:v,isStatic:!1,onError:c})))))),null)}function UA(n,o){return{...n,navigation:o.navigation.state!=="idle"?o.navigation:n.navigation,revalidation:o.revalidation!=="idle"?o.revalidation:n.revalidation,actionData:o.navigation.state!=="submitting"?o.actionData:n.actionData,fetchers:o.fetchers}}var Az=D.memo(Cz);function Cz({routes:n,future:o,state:c,isStatic:s,onError:d}){return uz(n,void 0,{state:c,isStatic:s,onError:d})}function Dz(n){return iz(n.context)}function wz({basename:n="/",children:o=null,location:c,navigationType:s="POP",navigator:d,static:p=!1,unstable_useTransitions:y}){Zt(!Cy(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=n.replace(/^\/*/,"/"),x=D.useMemo(()=>({basename:v,navigator:d,static:p,unstable_useTransitions:y,future:{}}),[v,d,p,y]);typeof c=="string"&&(c=Yu(c));let{pathname:E="/",search:O="",hash:R="",state:A=null,key:w="default",unstable_mask:j}=c,H=D.useMemo(()=>{let L=Ro(E,v);return L==null?null:{location:{pathname:L,search:O,hash:R,state:A,key:w,unstable_mask:j},navigationType:s}},[v,E,O,R,A,w,s,j]);return ya(H!=null,`<Router basename="${v}"> is not able to match the URL "${E}${O}${R}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:D.createElement(Ao.Provider,{value:x},D.createElement(cb.Provider,{children:o,value:H}))}var sb="get",fb="application/x-www-form-urlencoded";function db(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Mz(n){return db(n)&&n.tagName.toLowerCase()==="button"}function jz(n){return db(n)&&n.tagName.toLowerCase()==="form"}function Nz(n){return db(n)&&n.tagName.toLowerCase()==="input"}function zz(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Uz(n,o){return n.button===0&&(!o||o==="_self")&&!zz(n)}function hT(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((o,c)=>{let s=n[c];return o.concat(Array.isArray(s)?s.map(d=>[c,d]):[[c,s]])},[]))}function Lz(n,o){let c=hT(n);return o&&o.forEach((s,d)=>{c.has(d)||o.getAll(d).forEach(p=>{c.append(d,p)})}),c}var hb=null;function Bz(){if(hb===null)try{new FormData(document.createElement("form"),0),hb=!1}catch{hb=!0}return hb}var Hz=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pT(n){return n!=null&&!Hz.has(n)?(ya(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fb}"`),null):n}function $z(n,o){let c,s,d,p,y;if(jz(n)){let v=n.getAttribute("action");s=v?Ro(v,o):null,c=n.getAttribute("method")||sb,d=pT(n.getAttribute("enctype"))||fb,p=new FormData(n)}else if(Mz(n)||Nz(n)&&(n.type==="submit"||n.type==="image")){let v=n.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=n.getAttribute("formaction")||v.getAttribute("action");if(s=x?Ro(x,o):null,c=n.getAttribute("formmethod")||v.getAttribute("method")||sb,d=pT(n.getAttribute("formenctype"))||pT(v.getAttribute("enctype"))||fb,p=new FormData(v,n),!Bz()){let{name:E,type:O,value:R}=n;if(O==="image"){let A=E?`${E}.`:"";p.append(`${A}x`,"0"),p.append(`${A}y`,"0")}else E&&p.append(E,R)}}else{if(db(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=sb,s=null,d=fb,y=n}return p&&d==="text/plain"&&(y=p,p=void 0),{action:s,method:c.toLowerCase(),encType:d,formData:p,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mT(n,o){if(n===!1||n===null||typeof n>"u")throw new Error(o)}function Vz(n,o,c,s){let d=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return c?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:o&&Ro(d.pathname,o)==="/"?d.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${s}`,d}async function kz(n,o){if(n.id in o)return o[n.id];try{let c=await import(n.module);return o[n.id]=c,c}catch(c){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Gz(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function qz(n,o,c){let s=await Promise.all(n.map(async d=>{let p=o.routes[d.route.id];if(p){let y=await kz(p,c);return y.links?y.links():[]}return[]}));return Iz(s.flat(1).filter(Gz).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function LA(n,o,c,s,d,p){let y=(x,E)=>c[E]?x.route.id!==c[E].route.id:!0,v=(x,E)=>{var O;return c[E].pathname!==x.pathname||((O=c[E].route.path)==null?void 0:O.endsWith("*"))&&c[E].params["*"]!==x.params["*"]};return p==="assets"?o.filter((x,E)=>y(x,E)||v(x,E)):p==="data"?o.filter((x,E)=>{var R;let O=s.routes[x.route.id];if(!O||!O.hasLoader)return!1;if(y(x,E)||v(x,E))return!0;if(x.route.shouldRevalidate){let A=x.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((R=c[0])==null?void 0:R.params)||{},nextUrl:new URL(n,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof A=="boolean")return A}return!0}):[]}function Yz(n,o,{includeHydrateFallback:c}={}){return Qz(n.map(s=>{let d=o.routes[s.route.id];if(!d)return[];let p=[d.module];return d.clientActionModule&&(p=p.concat(d.clientActionModule)),d.clientLoaderModule&&(p=p.concat(d.clientLoaderModule)),c&&d.hydrateFallbackModule&&(p=p.concat(d.hydrateFallbackModule)),d.imports&&(p=p.concat(d.imports)),p}).flat(1))}function Qz(n){return[...new Set(n)]}function Xz(n){let o={},c=Object.keys(n).sort();for(let s of c)o[s]=n[s];return o}function Iz(n,o){let c=new Set;return new Set(o),n.reduce((s,d)=>{let p=JSON.stringify(Xz(d));return c.has(p)||(c.add(p),s.push({key:p,link:d})),s},[])}function BA(){let n=D.useContext(Gf);return mT(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Zz(){let n=D.useContext(Ay);return mT(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var yT=D.createContext(void 0);yT.displayName="FrameworkContext";function HA(){let n=D.useContext(yT);return mT(n,"You must render this element inside a <HydratedRouter> element"),n}function Jz(n,o){let c=D.useContext(yT),[s,d]=D.useState(!1),[p,y]=D.useState(!1),{onFocus:v,onBlur:x,onMouseEnter:E,onMouseLeave:O,onTouchStart:R}=o,A=D.useRef(null);D.useEffect(()=>{if(n==="render"&&y(!0),n==="viewport"){let H=V=>{V.forEach(J=>{y(J.isIntersecting)})},L=new IntersectionObserver(H,{threshold:.5});return A.current&&L.observe(A.current),()=>{L.disconnect()}}},[n]),D.useEffect(()=>{if(s){let H=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(H)}}},[s]);let w=()=>{d(!0)},j=()=>{d(!1),y(!1)};return c?n!=="intent"?[p,A,{}]:[p,A,{onFocus:Dy(v,w),onBlur:Dy(x,j),onMouseEnter:Dy(E,w),onMouseLeave:Dy(O,j),onTouchStart:Dy(R,w)}]:[!1,A,{}]}function Dy(n,o){return c=>{n&&n(c),c.defaultPrevented||o(c)}}function Fz({page:n,...o}){let{router:c}=BA(),s=D.useMemo(()=>rs(c.routes,n,c.basename),[c.routes,n,c.basename]);return s?D.createElement(Pz,{page:n,matches:s,...o}):null}function Kz(n){let{manifest:o,routeModules:c}=HA(),[s,d]=D.useState([]);return D.useEffect(()=>{let p=!1;return qz(n,o,c).then(y=>{p||d(y)}),()=>{p=!0}},[n,o,c]),s}function Pz({page:n,matches:o,...c}){let s=tu(),{future:d,manifest:p,routeModules:y}=HA(),{basename:v}=BA(),{loaderData:x,matches:E}=Zz(),O=D.useMemo(()=>LA(n,o,E,p,s,"data"),[n,o,E,p,s]),R=D.useMemo(()=>LA(n,o,E,p,s,"assets"),[n,o,E,p,s]),A=D.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let H=new Set,L=!1;if(o.forEach(J=>{var K;let F=p.routes[J.route.id];!F||!F.hasLoader||(!O.some(k=>k.route.id===J.route.id)&&J.route.id in x&&((K=y[J.route.id])!=null&&K.shouldRevalidate)||F.hasClientLoader?L=!0:H.add(J.route.id))}),H.size===0)return[];let V=Vz(n,v,d.unstable_trailingSlashAwareDataRequests,"data");return L&&H.size>0&&V.searchParams.set("_routes",o.filter(J=>H.has(J.route.id)).map(J=>J.route.id).join(",")),[V.pathname+V.search]},[v,d.unstable_trailingSlashAwareDataRequests,x,s,p,O,o,n,y]),w=D.useMemo(()=>Yz(R,p),[R,p]),j=Kz(R);return D.createElement(D.Fragment,null,A.map(H=>D.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...c})),w.map(H=>D.createElement("link",{key:H,rel:"modulepreload",href:H,...c})),j.map(({key:H,link:L})=>D.createElement("link",{key:H,nonce:c.nonce,...L,crossOrigin:L.crossOrigin??c.crossOrigin})))}function Wz(...n){return o=>{n.forEach(c=>{typeof c=="function"?c(o):c!=null&&(c.current=o)})}}var eU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eU&&(window.__reactRouterVersion="7.13.1")}catch{}function tU(n,o){return AN({basename:o==null?void 0:o.basename,getContext:o==null?void 0:o.getContext,future:o==null?void 0:o.future,history:qj({window:o==null?void 0:o.window}),hydrationData:nU(),routes:n,mapRouteProperties:xz,hydrationRouteProperties:_z,dataStrategy:o==null?void 0:o.dataStrategy,patchRoutesOnNavigation:o==null?void 0:o.patchRoutesOnNavigation,window:o==null?void 0:o.window,unstable_instrumentations:o==null?void 0:o.unstable_instrumentations}).initialize()}function nU(){let n=window==null?void 0:window.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:aU(n.errors)}),n}function aU(n){if(!n)return null;let o=Object.entries(n),c={};for(let[s,d]of o)if(d&&d.__type==="RouteErrorResponse")c[s]=new Sy(d.status,d.statusText,d.data,d.internal===!0);else if(d&&d.__type==="Error"){if(d.__subType){let p=window[d.__subType];if(typeof p=="function")try{let y=new p(d.message);y.stack="",c[s]=y}catch{}}if(c[s]==null){let p=new Error(d.message);p.stack="",c[s]=p}}else c[s]=d;return c}var $A=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gT=D.forwardRef(function({onClick:o,discover:c="render",prefetch:s="none",relative:d,reloadDocument:p,replace:y,unstable_mask:v,state:x,target:E,to:O,preventScrollReset:R,viewTransition:A,unstable_defaultShouldRevalidate:w,...j},H){let{basename:L,navigator:V,unstable_useTransitions:J}=D.useContext(Ao),F=typeof O=="string"&&$A.test(O),K=JO(O,L);O=K.to;let k=lz(O,{relative:d}),P=tu(),ae=null;if(v){let et=rb(v,[],P.unstable_mask?P.unstable_mask.pathname:"/",!0);L!=="/"&&(et.pathname=et.pathname==="/"?L:vi([L,et.pathname])),ae=V.createHref(et)}let[$,Se,me]=Jz(s,j),je=iU(O,{replace:y,unstable_mask:v,state:x,target:E,preventScrollReset:R,relative:d,viewTransition:A,unstable_defaultShouldRevalidate:w,unstable_useTransitions:J});function Re(et){o&&o(et),et.defaultPrevented||je(et)}let ke=!(K.isExternal||p),Ye=D.createElement("a",{...j,...me,href:(ke?ae:void 0)||K.absoluteURL||k,onClick:ke?Re:o,ref:Wz(H,Se),target:E,"data-discover":!F&&c==="render"?"true":void 0});return $&&!F?D.createElement(D.Fragment,null,Ye,D.createElement(Fz,{page:k})):Ye});gT.displayName="Link";var lU=D.forwardRef(function({"aria-current":o="page",caseSensitive:c=!1,className:s="",end:d=!1,style:p,to:y,viewTransition:v,children:x,...E},O){let R=Hh(y,{relative:E.relative}),A=tu(),w=D.useContext(Ay),{navigator:j,basename:H}=D.useContext(Ao),L=w!=null&&dU(R)&&v===!0,V=j.encodeLocation?j.encodeLocation(R).pathname:R.pathname,J=A.pathname,F=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;c||(J=J.toLowerCase(),F=F?F.toLowerCase():null,V=V.toLowerCase()),F&&H&&(F=Ro(F,H)||F);const K=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let k=J===V||!d&&J.startsWith(V)&&J.charAt(K)==="/",P=F!=null&&(F===V||!d&&F.startsWith(V)&&F.charAt(V.length)==="/"),ae={isActive:k,isPending:P,isTransitioning:L},$=k?o:void 0,Se;typeof s=="function"?Se=s(ae):Se=[s,k?"active":null,P?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let me=typeof p=="function"?p(ae):p;return D.createElement(gT,{...E,"aria-current":$,className:Se,ref:O,style:me,to:y,viewTransition:v},typeof x=="function"?x(ae):x)});lU.displayName="NavLink";var rU=D.forwardRef(({discover:n="render",fetcherKey:o,navigate:c,reloadDocument:s,replace:d,state:p,method:y=sb,action:v,onSubmit:x,relative:E,preventScrollReset:O,viewTransition:R,unstable_defaultShouldRevalidate:A,...w},j)=>{let{unstable_useTransitions:H}=D.useContext(Ao),L=sU(),V=fU(v,{relative:E}),J=y.toLowerCase()==="get"?"get":"post",F=typeof v=="string"&&$A.test(v),K=k=>{if(x&&x(k),k.defaultPrevented)return;k.preventDefault();let P=k.nativeEvent.submitter,ae=(P==null?void 0:P.getAttribute("formmethod"))||y,$=()=>L(P||k.currentTarget,{fetcherKey:o,method:ae,navigate:c,replace:d,state:p,relative:E,preventScrollReset:O,viewTransition:R,unstable_defaultShouldRevalidate:A});H&&c!==!1?D.startTransition(()=>$()):$()};return D.createElement("form",{ref:j,method:J,action:V,onSubmit:s?x:K,...w,"data-discover":!F&&n==="render"?"true":void 0})});rU.displayName="Form";function oU(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VA(n){let o=D.useContext(Gf);return Zt(o,oU(n)),o}function iU(n,{target:o,replace:c,unstable_mask:s,state:d,preventScrollReset:p,relative:y,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:E}={}){let O=us(),R=tu(),A=Hh(n,{relative:y});return D.useCallback(w=>{if(Uz(w,o)){w.preventDefault();let j=c!==void 0?c:eu(R)===eu(A),H=()=>O(n,{replace:j,unstable_mask:s,state:d,preventScrollReset:p,relative:y,viewTransition:v,unstable_defaultShouldRevalidate:x});E?D.startTransition(()=>H()):H()}},[R,O,A,c,s,d,o,n,p,y,v,x,E])}function wy(n){ya(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let o=D.useRef(hT(n)),c=D.useRef(!1),s=tu(),d=D.useMemo(()=>Lz(s.search,c.current?null:o.current),[s.search]),p=us(),y=D.useCallback((v,x)=>{const E=hT(typeof v=="function"?v(new URLSearchParams(d)):v);c.current=!0,p("?"+E,x)},[p,d]);return[d,y]}var uU=0,cU=()=>`__${String(++uU)}__`;function sU(){let{router:n}=VA("useSubmit"),{basename:o}=D.useContext(Ao),c=gz(),s=n.fetch,d=n.navigate;return D.useCallback(async(p,y={})=>{let{action:v,method:x,encType:E,formData:O,body:R}=$z(p,o);if(y.navigate===!1){let A=y.fetcherKey||cU();await s(A,c,y.action||v,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:O,body:R,formMethod:y.method||x,formEncType:y.encType||E,flushSync:y.flushSync})}else await d(y.action||v,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:O,body:R,formMethod:y.method||x,formEncType:y.encType||E,replace:y.replace,state:y.state,fromRouteId:c,flushSync:y.flushSync,viewTransition:y.viewTransition})},[s,d,o,c])}function fU(n,{relative:o}={}){let{basename:c}=D.useContext(Ao),s=D.useContext(bi);Zt(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),p={...Hh(n||".",{relative:o})},y=tu();if(n==null){p.search=y.search;let v=new URLSearchParams(p.search),x=v.getAll("index");if(x.some(O=>O==="")){v.delete("index"),x.filter(R=>R).forEach(R=>v.append("index",R));let O=v.toString();p.search=O?`?${O}`:""}}return(!n||n===".")&&d.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(p.pathname=p.pathname==="/"?c:vi([c,p.pathname])),eu(p)}function dU(n,{relative:o}={}){let c=D.useContext(uT);Zt(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=VA("useViewTransitionState"),d=Hh(n,{relative:o});if(!c.isTransitioning)return!1;let p=Ro(c.currentLocation.pathname,s)||c.currentLocation.pathname,y=Ro(c.nextLocation.pathname,s)||c.nextLocation.pathname;return lb(d.pathname,y)!=null||lb(d.pathname,p)!=null}var vT=J1();const Yf=P0(vT);/**
|
|
336
|
+
* react-router v7.13.1
|
|
337
|
+
*
|
|
338
|
+
* Copyright (c) Remix Software Inc.
|
|
339
|
+
*
|
|
340
|
+
* This source code is licensed under the MIT license found in the
|
|
341
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
342
|
+
*
|
|
343
|
+
* @license MIT
|
|
344
|
+
*/function hU(n){return D.createElement(Oz,{flushSync:vT.flushSync,...n})}var pb={exports:{}},bT={};/**
|
|
345
|
+
* @license React
|
|
346
|
+
* use-sync-external-store-with-selector.production.js
|
|
347
|
+
*
|
|
348
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
349
|
+
*
|
|
350
|
+
* This source code is licensed under the MIT license found in the
|
|
351
|
+
* LICENSE file in the root directory of this source tree.
|
|
352
|
+
*/var kA;function pU(){if(kA)return bT;kA=1;var n=ls();function o(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}var c=typeof Object.is=="function"?Object.is:o,s=n.useSyncExternalStore,d=n.useRef,p=n.useEffect,y=n.useMemo,v=n.useDebugValue;return bT.useSyncExternalStoreWithSelector=function(x,E,O,R,A){var w=d(null);if(w.current===null){var j={hasValue:!1,value:null};w.current=j}else j=w.current;w=y(function(){function L(k){if(!V){if(V=!0,J=k,k=R(k),A!==void 0&&j.hasValue){var P=j.value;if(A(P,k))return F=P}return F=k}if(P=F,c(J,k))return P;var ae=R(k);return A!==void 0&&A(P,ae)?(J=k,P):(J=k,F=ae)}var V=!1,J,F,K=O===void 0?null:O;return[function(){return L(E())},K===null?void 0:function(){return L(K())}]},[E,O,R,A]);var H=s(x,w[0],w[1]);return p(function(){j.hasValue=!0,j.value=H},[H]),v(H),H},bT}var ET={};/**
|
|
353
|
+
* @license React
|
|
354
|
+
* use-sync-external-store-with-selector.development.js
|
|
355
|
+
*
|
|
356
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
357
|
+
*
|
|
358
|
+
* This source code is licensed under the MIT license found in the
|
|
359
|
+
* LICENSE file in the root directory of this source tree.
|
|
360
|
+
*/var GA;function mU(){return GA||(GA=1,process.env.NODE_ENV!=="production"&&(function(){function n(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=ls(),c=typeof Object.is=="function"?Object.is:n,s=o.useSyncExternalStore,d=o.useRef,p=o.useEffect,y=o.useMemo,v=o.useDebugValue;ET.useSyncExternalStoreWithSelector=function(x,E,O,R,A){var w=d(null);if(w.current===null){var j={hasValue:!1,value:null};w.current=j}else j=w.current;w=y(function(){function L(k){if(!V){if(V=!0,J=k,k=R(k),A!==void 0&&j.hasValue){var P=j.value;if(A(P,k))return F=P}return F=k}if(P=F,c(J,k))return P;var ae=R(k);return A!==void 0&&A(P,ae)?(J=k,P):(J=k,F=ae)}var V=!1,J,F,K=O===void 0?null:O;return[function(){return L(E())},K===null?void 0:function(){return L(K())}]},[E,O,R,A]);var H=s(x,w[0],w[1]);return p(function(){j.hasValue=!0,j.value=H},[H]),v(H),H},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ET}var qA;function yU(){return qA||(qA=1,process.env.NODE_ENV==="production"?pb.exports=pU():pb.exports=mU()),pb.exports}var gU=yU(),Gr=hl,YA=Symbol.for("react-redux-context"),QA=typeof globalThis<"u"?globalThis:{};function vU(){if(!Gr.createContext)return{};const n=QA[YA]??(QA[YA]=new Map);let o=n.get(Gr.createContext);return o||(o=Gr.createContext(null),process.env.NODE_ENV!=="production"&&(o.displayName="ReactRedux"),n.set(Gr.createContext,o)),o}var cs=vU(),bU=()=>{throw new Error("uSES not initialized!")};function ST(n=cs){return function(){const c=Gr.useContext(n);if(process.env.NODE_ENV!=="production"&&!c)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return c}}var XA=ST(),IA=bU,EU=n=>{IA=n},SU=(n,o)=>n===o;function TU(n=cs){const o=n===cs?XA:ST(n),c=(s,d={})=>{const{equalityFn:p=SU,devModeChecks:y={}}=typeof d=="function"?{equalityFn:d}:d;if(process.env.NODE_ENV!=="production"){if(!s)throw new Error("You must pass a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof p!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:v,subscription:x,getServerState:E,stabilityCheck:O,identityFunctionCheck:R}=o(),A=Gr.useRef(!0),w=Gr.useCallback({[s.name](H){const L=s(H);if(process.env.NODE_ENV!=="production"){const{identityFunctionCheck:V,stabilityCheck:J}={stabilityCheck:O,identityFunctionCheck:R,...y};if(J==="always"||J==="once"&&A.current){const F=s(H);if(!p(L,F)){let K;try{throw new Error}catch(k){({stack:K}=k)}console.warn("Selector "+(s.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
361
|
+
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:H,selected:L,selected2:F,stack:K})}}if((V==="always"||V==="once"&&A.current)&&L===H){let F;try{throw new Error}catch(K){({stack:F}=K)}console.warn("Selector "+(s.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
362
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:F})}A.current&&(A.current=!1)}return L}}[s.name],[s,O,y.stabilityCheck]),j=IA(x.addNestedSub,v.getState,E||v.getState,w,p);return Gr.useDebugValue(j),j};return Object.assign(c,{withTypes:()=>c}),c}var TT=TU();function xU(n){n()}function _U(){let n=null,o=null;return{clear(){n=null,o=null},notify(){xU(()=>{let c=n;for(;c;)c.callback(),c=c.next})},get(){const c=[];let s=n;for(;s;)c.push(s),s=s.next;return c},subscribe(c){let s=!0;const d=o={callback:c,next:null,prev:o};return d.prev?d.prev.next=d:n=d,function(){!s||n===null||(s=!1,d.next?d.next.prev=d.prev:o=d.prev,d.prev?d.prev.next=d.next:n=d.next)}}}}var ZA={notify(){},get:()=>[]};function RU(n,o){let c,s=ZA,d=0,p=!1;function y(H){O();const L=s.subscribe(H);let V=!1;return()=>{V||(V=!0,L(),R())}}function v(){s.notify()}function x(){j.onStateChange&&j.onStateChange()}function E(){return p}function O(){d++,c||(c=n.subscribe(x),s=_U())}function R(){d--,c&&d===0&&(c(),c=void 0,s.clear(),s=ZA)}function A(){p||(p=!0,O())}function w(){p&&(p=!1,R())}const j={addNestedSub:y,notifyNestedSubs:v,handleChangeWrapper:x,isSubscribed:E,trySubscribe:A,tryUnsubscribe:w,getListeners:()=>s};return j}var OU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AU=typeof navigator<"u"&&navigator.product==="ReactNative",CU=OU||AU?Gr.useLayoutEffect:Gr.useEffect;function DU({store:n,context:o,children:c,serverState:s,stabilityCheck:d="once",identityFunctionCheck:p="once"}){const y=Gr.useMemo(()=>{const E=RU(n);return{store:n,subscription:E,getServerState:s?()=>s:void 0,stabilityCheck:d,identityFunctionCheck:p}},[n,s,d,p]),v=Gr.useMemo(()=>n.getState(),[n]);CU(()=>{const{subscription:E}=y;return E.onStateChange=E.notifyNestedSubs,E.trySubscribe(),v!==n.getState()&&E.notifyNestedSubs(),()=>{E.tryUnsubscribe(),E.onStateChange=void 0}},[y,v]);const x=o||cs;return Gr.createElement(x.Provider,{value:y},c)}var wU=DU;function JA(n=cs){const o=n===cs?XA:ST(n),c=()=>{const{store:s}=o();return s};return Object.assign(c,{withTypes:()=>c}),c}var MU=JA();function jU(n=cs){const o=n===cs?MU:JA(n),c=()=>o().dispatch;return Object.assign(c,{withTypes:()=>c}),c}var xT=jU();EU(gU.useSyncExternalStoreWithSelector);function pl(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var NU=typeof Symbol=="function"&&Symbol.observable||"@@observable",FA=NU,_T=()=>Math.random().toString(36).substring(7).split("").join("."),zU={INIT:`@@redux/INIT${_T()}`,REPLACE:`@@redux/REPLACE${_T()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_T()}`},Qf=zU;function My(n){if(typeof n!="object"||n===null)return!1;let o=n;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(n)===o||Object.getPrototypeOf(n)===null}function UU(n){if(n===void 0)return"undefined";if(n===null)return"null";const o=typeof n;switch(o){case"boolean":case"string":case"number":case"symbol":case"function":return o}if(Array.isArray(n))return"array";if(HU(n))return"date";if(BU(n))return"error";const c=LU(n);switch(c){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return c}return Object.prototype.toString.call(n).slice(8,-1).toLowerCase().replace(/\s/g,"")}function LU(n){return typeof n.constructor=="function"?n.constructor.name:null}function BU(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function HU(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function ss(n){let o=typeof n;return process.env.NODE_ENV!=="production"&&(o=UU(n)),o}function KA(n,o,c){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?pl(2):`Expected the root reducer to be a function. Instead, received: '${ss(n)}'`);if(typeof o=="function"&&typeof c=="function"||typeof c=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?pl(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 o=="function"&&typeof c>"u"&&(c=o,o=void 0),typeof c<"u"){if(typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?pl(1):`Expected the enhancer to be a function. Instead, received: '${ss(c)}'`);return c(KA)(n,o)}let s=n,d=o,p=new Map,y=p,v=0,x=!1;function E(){y===p&&(y=new Map,p.forEach((L,V)=>{y.set(V,L)}))}function O(){if(x)throw new Error(process.env.NODE_ENV==="production"?pl(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 d}function R(L){if(typeof L!="function")throw new Error(process.env.NODE_ENV==="production"?pl(4):`Expected the listener to be a function. Instead, received: '${ss(L)}'`);if(x)throw new Error(process.env.NODE_ENV==="production"?pl(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 V=!0;E();const J=v++;return y.set(J,L),function(){if(V){if(x)throw new Error(process.env.NODE_ENV==="production"?pl(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.");V=!1,E(),y.delete(J),p=null}}}function A(L){if(!My(L))throw new Error(process.env.NODE_ENV==="production"?pl(7):`Actions must be plain objects. Instead, the actual type was: '${ss(L)}'. 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 L.type>"u")throw new Error(process.env.NODE_ENV==="production"?pl(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof L.type!="string")throw new Error(process.env.NODE_ENV==="production"?pl(17):`Action "type" property must be a string. Instead, the actual type was: '${ss(L.type)}'. Value was: '${L.type}' (stringified)`);if(x)throw new Error(process.env.NODE_ENV==="production"?pl(9):"Reducers may not dispatch actions.");try{x=!0,d=s(d,L)}finally{x=!1}return(p=y).forEach(J=>{J()}),L}function w(L){if(typeof L!="function")throw new Error(process.env.NODE_ENV==="production"?pl(10):`Expected the nextReducer to be a function. Instead, received: '${ss(L)}`);s=L,A({type:Qf.REPLACE})}function j(){const L=R;return{subscribe(V){if(typeof V!="object"||V===null)throw new Error(process.env.NODE_ENV==="production"?pl(11):`Expected the observer to be an object. Instead, received: '${ss(V)}'`);function J(){const K=V;K.next&&K.next(O())}return J(),{unsubscribe:L(J)}},[FA](){return this}}}return A({type:Qf.INIT}),{dispatch:A,subscribe:R,getState:O,replaceReducer:w,[FA]:j}}function PA(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function $U(n,o,c,s){const d=Object.keys(o),p=c&&c.type===Qf.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(d.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(!My(n))return`The ${p} has unexpected type of "${ss(n)}". Expected argument to be an object with the following keys: "${d.join('", "')}"`;const y=Object.keys(n).filter(v=>!o.hasOwnProperty(v)&&!s[v]);if(y.forEach(v=>{s[v]=!0}),!(c&&c.type===Qf.REPLACE)&&y.length>0)return`Unexpected ${y.length>1?"keys":"key"} "${y.join('", "')}" found in ${p}. Expected to find one of the known reducer keys instead: "${d.join('", "')}". Unexpected keys will be ignored.`}function VU(n){Object.keys(n).forEach(o=>{const c=n[o];if(typeof c(void 0,{type:Qf.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?pl(12):`The slice reducer for key "${o}" 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 c(void 0,{type:Qf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?pl(13):`The slice reducer for key "${o}" returned undefined when probed with a random type. Don't try to handle '${Qf.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 kU(n){const o=Object.keys(n),c={};for(let y=0;y<o.length;y++){const v=o[y];process.env.NODE_ENV!=="production"&&typeof n[v]>"u"&&PA(`No reducer provided for key "${v}"`),typeof n[v]=="function"&&(c[v]=n[v])}const s=Object.keys(c);let d;process.env.NODE_ENV!=="production"&&(d={});let p;try{VU(c)}catch(y){p=y}return function(v={},x){if(p)throw p;if(process.env.NODE_ENV!=="production"){const R=$U(v,c,x,d);R&&PA(R)}let E=!1;const O={};for(let R=0;R<s.length;R++){const A=s[R],w=c[A],j=v[A],H=w(j,x);if(typeof H>"u"){const L=x&&x.type;throw new Error(process.env.NODE_ENV==="production"?pl(14):`When called with an action of type ${L?`"${String(L)}"`:"(unknown type)"}, the slice reducer for key "${A}" 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.`)}O[A]=H,E=E||H!==j}return E=E||s.length!==Object.keys(v).length,E?O:v}}function mb(...n){return n.length===0?o=>o:n.length===1?n[0]:n.reduce((o,c)=>(...s)=>o(c(...s)))}function GU(...n){return o=>(c,s)=>{const d=o(c,s);let p=()=>{throw new Error(process.env.NODE_ENV==="production"?pl(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const y={getState:d.getState,dispatch:(x,...E)=>p(x,...E)},v=n.map(x=>x(y));return p=mb(...v)(d.dispatch),{...d,dispatch:p}}}function RT(n){return My(n)&&"type"in n&&typeof n.type=="string"}var WA=Symbol.for("immer-nothing"),eC=Symbol.for("immer-draftable"),Zl=Symbol.for("immer-state"),qU=process.env.NODE_ENV!=="production"?[function(n){return`The plugin for '${n}' has not been loaded into Immer. To enable the plugin, import and call \`enable${n}()\` when initializing your application.`},function(n){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 '${n}'`},"This object has been frozen and should not be mutated",function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},"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(n){return`'current' expects a draft, got: ${n}`},"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(n){return`'original' expects a draft, got: ${n}`}]:[];function qr(n,...o){if(process.env.NODE_ENV!=="production"){const c=qU[n],s=Xf(c)?c.apply(null,o):c;throw new Error(`[Immer] ${s}`)}throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Yr=Object,$h=Yr.getPrototypeOf,yb="constructor",gb="prototype",OT="configurable",vb="enumerable",bb="writable",jy="value",Co=n=>!!n&&!!n[Zl];function Ei(n){var o;return n?nC(n)||Sb(n)||!!n[eC]||!!((o=n[yb])!=null&&o[eC])||Tb(n)||xb(n):!1}var YU=Yr[gb][yb].toString(),tC=new WeakMap;function nC(n){if(!n||!CT(n))return!1;const o=$h(n);if(o===null||o===Yr[gb])return!0;const c=Yr.hasOwnProperty.call(o,yb)&&o[yb];if(c===Object)return!0;if(!Xf(c))return!1;let s=tC.get(c);return s===void 0&&(s=Function.toString.call(c),tC.set(c,s)),s===YU}function Ny(n,o,c=!0){zy(n)===0?(c?Reflect.ownKeys(n):Yr.keys(n)).forEach(d=>{o(d,n[d],n)}):n.forEach((s,d)=>o(d,s,n))}function zy(n){const o=n[Zl];return o?o.type_:Sb(n)?1:Tb(n)?2:xb(n)?3:0}var aC=(n,o,c=zy(n))=>c===2?n.has(o):Yr[gb].hasOwnProperty.call(n,o),AT=(n,o,c=zy(n))=>c===2?n.get(o):n[o],Eb=(n,o,c,s=zy(n))=>{s===2?n.set(o,c):s===3?n.add(c):n[o]=c};function QU(n,o){return n===o?n!==0||1/n===1/o:n!==n&&o!==o}var Sb=Array.isArray,Tb=n=>n instanceof Map,xb=n=>n instanceof Set,CT=n=>typeof n=="object",Xf=n=>typeof n=="function",DT=n=>typeof n=="boolean",Xu=n=>n.copy_||n.base_,wT=n=>n.modified_?n.copy_:n.base_;function MT(n,o){if(Tb(n))return new Map(n);if(xb(n))return new Set(n);if(Sb(n))return Array[gb].slice.call(n);const c=nC(n);if(o===!0||o==="class_only"&&!c){const s=Yr.getOwnPropertyDescriptors(n);delete s[Zl];let d=Reflect.ownKeys(s);for(let p=0;p<d.length;p++){const y=d[p],v=s[y];v[bb]===!1&&(v[bb]=!0,v[OT]=!0),(v.get||v.set)&&(s[y]={[OT]:!0,[bb]:!0,[vb]:v[vb],[jy]:n[y]})}return Yr.create($h(n),s)}else{const s=$h(n);if(s!==null&&c)return{...n};const d=Yr.create(s);return Yr.assign(d,n)}}function jT(n,o=!1){return Rb(n)||Co(n)||!Ei(n)||(zy(n)>1&&Yr.defineProperties(n,{set:_b,add:_b,clear:_b,delete:_b}),Yr.freeze(n),o&&Ny(n,(c,s)=>{jT(s,!0)},!1)),n}function XU(){qr(2)}var _b={[jy]:XU};function Rb(n){return n===null||!CT(n)?!0:Yr.isFrozen(n)}var Ob="MapSet",NT="Patches",lC={};function Vh(n){const o=lC[n];return o||qr(0,n),o}var IU=n=>!!lC[n],Uy,rC=()=>Uy,ZU=(n,o)=>({drafts_:[],parent_:n,immer_:o,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:IU(Ob)?Vh(Ob):void 0});function oC(n,o){o&&(n.patchPlugin_=Vh(NT),n.patches_=[],n.inversePatches_=[],n.patchListener_=o)}function zT(n){UT(n),n.drafts_.forEach(JU),n.drafts_=null}function UT(n){n===Uy&&(Uy=n.parent_)}var iC=n=>Uy=ZU(Uy,n);function JU(n){const o=n[Zl];o.type_===0||o.type_===1?o.revoke_():o.revoked_=!0}function uC(n,o){o.unfinalizedDrafts_=o.drafts_.length;const c=o.drafts_[0];if(n!==void 0&&n!==c){c[Zl].modified_&&(zT(o),qr(4)),Ei(n)&&(n=cC(o,n));const{patchPlugin_:d}=o;d&&d.generateReplacementPatches_(c[Zl].base_,n,o)}else n=cC(o,c);return FU(o,n,!0),zT(o),o.patches_&&o.patchListener_(o.patches_,o.inversePatches_),n!==WA?n:void 0}function cC(n,o){if(Rb(o))return o;const c=o[Zl];if(!c)return LT(o,n.handledSet_,n);if(!Ab(c,n))return o;if(!c.modified_)return c.base_;if(!c.finalized_){const{callbacks_:s}=c;if(s)for(;s.length>0;)s.pop()(n);dC(c,n)}return c.copy_}function FU(n,o,c=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&jT(o,c)}function sC(n){n.finalized_=!0,n.scope_.unfinalizedDrafts_--}var Ab=(n,o)=>n.scope_===o,KU=[];function fC(n,o,c,s){const d=Xu(n),p=n.type_;if(s!==void 0&&AT(d,s,p)===o){Eb(d,s,c,p);return}if(!n.draftLocations_){const v=n.draftLocations_=new Map;Ny(d,(x,E)=>{if(Co(E)){const O=v.get(E)||[];O.push(x),v.set(E,O)}})}const y=n.draftLocations_.get(o)??KU;for(const v of y)Eb(d,v,c,p)}function PU(n,o,c){n.callbacks_.push(function(d){var v;const p=o;if(!p||!Ab(p,d))return;(v=d.mapSetPlugin_)==null||v.fixSetContents(p);const y=wT(p);fC(n,p.draft_??p,y,c),dC(p,d)})}function dC(n,o){var s;if(n.modified_&&!n.finalized_&&(n.type_===3||(((s=n.assigned_)==null?void 0:s.size)??0)>0)){const{patchPlugin_:d}=o;if(d){const p=d.getPath(n);p&&d.generatePatches_(n,p,o)}sC(n)}}function WU(n,o,c){const{scope_:s}=n;if(Co(c)){const d=c[Zl];Ab(d,s)&&d.callbacks_.push(function(){Cb(n);const y=wT(d);fC(n,c,y,o)})}else Ei(c)&&n.callbacks_.push(function(){const p=Xu(n);AT(p,o,n.type_)===c&&s.drafts_.length>1&&(n.assigned_.get(o)??!1)===!0&&n.copy_&<(AT(n.copy_,o,n.type_),s.handledSet_,s)})}function LT(n,o,c){return!c.immer_.autoFreeze_&&c.unfinalizedDrafts_<1||Co(n)||o.has(n)||!Ei(n)||Rb(n)||(o.add(n),Ny(n,(s,d)=>{if(Co(d)){const p=d[Zl];if(Ab(p,c)){const y=wT(p);Eb(n,s,y,n.type_),sC(p)}}else Ei(d)&<(d,o,c)})),n}function e3(n,o){const c=Sb(n),s={type_:c?1:0,scope_:o?o.scope_:rC(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:o,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let d=s,p=BT;c&&(d=[s],p=Ly);const{revoke:y,proxy:v}=Proxy.revocable(d,p);return s.draft_=v,s.revoke_=y,[v,s]}var BT={get(n,o){if(o===Zl)return n;const c=Xu(n);if(!aC(c,o,n.type_))return t3(n,c,o);const s=c[o];if(n.finalized_||!Ei(s))return s;if(s===HT(n.base_,o)){Cb(n);const d=n.type_===1?+o:o,p=VT(n.scope_,s,n,d);return n.copy_[d]=p}return s},has(n,o){return o in Xu(n)},ownKeys(n){return Reflect.ownKeys(Xu(n))},set(n,o,c){const s=hC(Xu(n),o);if(s!=null&&s.set)return s.set.call(n.draft_,c),!0;if(!n.modified_){const d=HT(Xu(n),o),p=d==null?void 0:d[Zl];if(p&&p.base_===c)return n.copy_[o]=c,n.assigned_.set(o,!1),!0;if(QU(c,d)&&(c!==void 0||aC(n.base_,o,n.type_)))return!0;Cb(n),$T(n)}return n.copy_[o]===c&&(c!==void 0||o in n.copy_)||Number.isNaN(c)&&Number.isNaN(n.copy_[o])||(n.copy_[o]=c,n.assigned_.set(o,!0),WU(n,o,c)),!0},deleteProperty(n,o){return Cb(n),HT(n.base_,o)!==void 0||o in n.base_?(n.assigned_.set(o,!1),$T(n)):n.assigned_.delete(o),n.copy_&&delete n.copy_[o],!0},getOwnPropertyDescriptor(n,o){const c=Xu(n),s=Reflect.getOwnPropertyDescriptor(c,o);return s&&{[bb]:!0,[OT]:n.type_!==1||o!=="length",[vb]:s[vb],[jy]:c[o]}},defineProperty(){qr(11)},getPrototypeOf(n){return $h(n.base_)},setPrototypeOf(){qr(12)}},Ly={};Ny(BT,(n,o)=>{Ly[n]=function(){const c=arguments;return c[0]=c[0][0],o.apply(this,c)}}),Ly.deleteProperty=function(n,o){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(o))&&qr(13),Ly.set.call(this,n,o,void 0)},Ly.set=function(n,o,c){return process.env.NODE_ENV!=="production"&&o!=="length"&&isNaN(parseInt(o))&&qr(14),BT.set.call(this,n[0],o,c,n[0])};function HT(n,o){const c=n[Zl];return(c?Xu(c):n)[o]}function t3(n,o,c){var d;const s=hC(o,c);return s?jy in s?s[jy]:(d=s.get)==null?void 0:d.call(n.draft_):void 0}function hC(n,o){if(!(o in n))return;let c=$h(n);for(;c;){const s=Object.getOwnPropertyDescriptor(c,o);if(s)return s;c=$h(c)}}function $T(n){n.modified_||(n.modified_=!0,n.parent_&&$T(n.parent_))}function Cb(n){n.copy_||(n.assigned_=new Map,n.copy_=MT(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var n3=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(o,c,s)=>{if(Xf(o)&&!Xf(c)){const p=c;c=o;const y=this;return function(x=p,...E){return y.produce(x,O=>c.call(this,O,...E))}}Xf(c)||qr(6),s!==void 0&&!Xf(s)&&qr(7);let d;if(Ei(o)){const p=iC(this),y=VT(p,o,void 0);let v=!0;try{d=c(y),v=!1}finally{v?zT(p):UT(p)}return oC(p,s),uC(d,p)}else if(!o||!CT(o)){if(d=c(o),d===void 0&&(d=o),d===WA&&(d=void 0),this.autoFreeze_&&jT(d,!0),s){const p=[],y=[];Vh(NT).generateReplacementPatches_(o,d,{patches_:p,inversePatches_:y}),s(p,y)}return d}else qr(1,o)},this.produceWithPatches=(o,c)=>{if(Xf(o))return(y,...v)=>this.produceWithPatches(y,x=>o(x,...v));let s,d;return[this.produce(o,c,(y,v)=>{s=y,d=v}),s,d]},DT(n==null?void 0:n.autoFreeze)&&this.setAutoFreeze(n.autoFreeze),DT(n==null?void 0:n.useStrictShallowCopy)&&this.setUseStrictShallowCopy(n.useStrictShallowCopy),DT(n==null?void 0:n.useStrictIteration)&&this.setUseStrictIteration(n.useStrictIteration)}createDraft(n){Ei(n)||qr(8),Co(n)&&(n=kT(n));const o=iC(this),c=VT(o,n,void 0);return c[Zl].isManual_=!0,UT(o),c}finishDraft(n,o){const c=n&&n[Zl];(!c||!c.isManual_)&&qr(9);const{scope_:s}=c;return oC(s,o),uC(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}setUseStrictIteration(n){this.useStrictIteration_=n}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(n,o){let c;for(c=o.length-1;c>=0;c--){const d=o[c];if(d.path.length===0&&d.op==="replace"){n=d.value;break}}c>-1&&(o=o.slice(c+1));const s=Vh(NT).applyPatches_;return Co(n)?s(n,o):this.produce(n,d=>s(d,o))}};function VT(n,o,c,s){const[d,p]=Tb(o)?Vh(Ob).proxyMap_(o,c):xb(o)?Vh(Ob).proxySet_(o,c):e3(o,c);return((c==null?void 0:c.scope_)??rC()).drafts_.push(d),p.callbacks_=(c==null?void 0:c.callbacks_)??[],p.key_=s,c&&s!==void 0?PU(c,p,s):p.callbacks_.push(function(x){var O;(O=x.mapSetPlugin_)==null||O.fixSetContents(p);const{patchPlugin_:E}=x;p.modified_&&E&&E.generatePatches_(p,[],x)}),d}function kT(n){return Co(n)||qr(10,n),pC(n)}function pC(n){if(!Ei(n)||Rb(n))return n;const o=n[Zl];let c,s=!0;if(o){if(!o.modified_)return o.base_;o.finalized_=!0,c=MT(n,o.scope_.immer_.useStrictShallowCopy_),s=o.scope_.immer_.shouldUseStrictIteration()}else c=MT(n,!0);return Ny(c,(d,p)=>{Eb(c,d,pC(p))},s),o&&(o.finalized_=!1),c}var a3=new n3,GT=a3.produce,l3=(n,o,c)=>{if(o.length===1&&o[0]===c){let s=!1;try{const d={};n(d)===d&&(s=!0)}catch{}if(s){let d;try{throw new Error}catch(p){({stack:d}=p)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
363
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
364
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
365
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:d})}}},r3=(n,o,c)=>{const{memoize:s,memoizeOptions:d}=o,{inputSelectorResults:p,inputSelectorResultsCopy:y}=n,v=s(()=>({}),...d);if(!(v.apply(null,p)===v.apply(null,y))){let E;try{throw new Error}catch(O){({stack:E}=O)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
366
|
+
This means your output selector will likely run more frequently than intended.
|
|
367
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
368
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:c,firstInputs:p,secondInputs:y,stack:E})}},o3={inputStabilityCheck:"once",identityFunctionCheck:"once"};function i3(n,o=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(o)}function u3(n,o=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(o)}function c3(n,o="expected all items to be functions, instead received the following types: "){if(!n.every(c=>typeof c=="function")){const c=n.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${o}[${c}]`)}}var mC=n=>Array.isArray(n)?n:[n];function s3(n){const o=Array.isArray(n[0])?n[0]:n;return c3(o,"createSelector expects all input-selectors to be functions, but received the following types: "),o}function yC(n,o){const c=[],{length:s}=n;for(let d=0;d<s;d++)c.push(n[d].apply(null,o));return c}var f3=(n,o)=>{const{identityFunctionCheck:c,inputStabilityCheck:s}={...o3,...o};return{identityFunctionCheck:{shouldRun:c==="always"||c==="once"&&n,run:l3},inputStabilityCheck:{shouldRun:s==="always"||s==="once"&&n,run:r3}}},d3=class{constructor(n){this.value=n}deref(){return this.value}},h3=typeof WeakRef<"u"?WeakRef:d3,p3=0,gC=1;function Db(){return{s:p3,v:void 0,o:null,p:null}}function qT(n,o={}){let c=Db();const{resultEqualityCheck:s}=o;let d,p=0;function y(){var R;let v=c;const{length:x}=arguments;for(let A=0,w=x;A<w;A++){const j=arguments[A];if(typeof j=="function"||typeof j=="object"&&j!==null){let H=v.o;H===null&&(v.o=H=new WeakMap);const L=H.get(j);L===void 0?(v=Db(),H.set(j,v)):v=L}else{let H=v.p;H===null&&(v.p=H=new Map);const L=H.get(j);L===void 0?(v=Db(),H.set(j,v)):v=L}}const E=v;let O;if(v.s===gC)O=v.v;else if(O=n.apply(null,arguments),p++,s){const A=((R=d==null?void 0:d.deref)==null?void 0:R.call(d))??d;A!=null&&s(A,O)&&(O=A,p!==0&&p--),d=typeof O=="object"&&O!==null||typeof O=="function"?new h3(O):O}return E.s=gC,E.v=O,O}return y.clearCache=()=>{c=Db(),y.resetResultsCount()},y.resultsCount=()=>p,y.resetResultsCount=()=>{p=0},y}function vC(n,...o){const c=typeof n=="function"?{memoize:n,memoizeOptions:o}:n,s=(...d)=>{let p=0,y=0,v,x={},E=d.pop();typeof E=="object"&&(x=E,E=d.pop()),i3(E,`createSelector expects an output function after the inputs, but received: [${typeof E}]`);const O={...c,...x},{memoize:R,memoizeOptions:A=[],argsMemoize:w=qT,argsMemoizeOptions:j=[],devModeChecks:H={}}=O,L=mC(A),V=mC(j),J=s3(d),F=R(function(){return p++,E.apply(null,arguments)},...L);let K=!0;const k=w(function(){y++;const ae=yC(J,arguments);if(v=F.apply(null,ae),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:$,inputStabilityCheck:Se}=f3(K,H);if($.shouldRun&&$.run(E,ae,v),Se.shouldRun){const me=yC(J,arguments);Se.run({inputSelectorResults:ae,inputSelectorResultsCopy:me},{memoize:R,memoizeOptions:L},arguments)}K&&(K=!1)}return v},...V);return Object.assign(k,{resultFunc:E,memoizedResultFunc:F,dependencies:J,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>v,recomputations:()=>p,resetRecomputations:()=>{p=0},memoize:R,argsMemoize:w})};return Object.assign(s,{withTypes:()=>s}),s}var m3=vC(qT),y3=Object.assign((n,o=m3)=>{u3(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const c=Object.keys(n),s=c.map(p=>n[p]);return o(s,(...p)=>p.reduce((y,v,x)=>(y[c[x]]=v,y),{}))},{withTypes:()=>y3});function bC(n){return({dispatch:c,getState:s})=>d=>p=>typeof p=="function"?p(c,s,n):d(p)}var g3=bC(),v3=bC,b3=(...n)=>{const o=vC(...n),c=Object.assign((...s)=>{const d=o(...s),p=(y,...v)=>d(Co(y)?kT(y):y,...v);return Object.assign(p,d),p},{withTypes:()=>c});return c},E3=b3(qT),S3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mb:mb.apply(null,arguments)},T3=n=>n&&typeof n.match=="function";function EC(n,o){function c(...s){if(o){let d=o(...s);if(!d)throw new Error(process.env.NODE_ENV==="production"?Mn(0):"prepareAction did not return an object");return{type:n,payload:d.payload,..."meta"in d&&{meta:d.meta},..."error"in d&&{error:d.error}}}return{type:n,payload:s[0]}}return c.toString=()=>`${n}`,c.type=n,c.match=s=>RT(s)&&s.type===n,c}function x3(n){return typeof n=="function"&&"type"in n&&T3(n)}function _3(n){return RT(n)&&Object.keys(n).every(R3)}function R3(n){return["type","payload","error","meta"].indexOf(n)>-1}function O3(n){const o=n?`${n}`.split("/"):[],c=o[o.length-1]||"actionCreator";return`Detected an action creator with type "${n||"unknown"}" being dispatched.
|
|
369
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${c}())\` instead of \`dispatch(${c})\`. This is necessary even if the action has no payload.`}function A3(n={}){if(process.env.NODE_ENV==="production")return()=>c=>s=>c(s);const{isActionCreator:o=x3}=n;return()=>c=>s=>(o(s)&&console.warn(O3(s.type)),c(s))}function SC(n,o){let c=0;return{measureTime(s){const d=Date.now();try{return s()}finally{const p=Date.now();c+=p-d}},warnIfExceeded(){c>n&&console.warn(`${o} took ${c}ms, which is more than the warning threshold of ${n}ms.
|
|
370
|
+
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.
|
|
371
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var TC=class K0 extends Array{constructor(...o){super(...o),Object.setPrototypeOf(this,K0.prototype)}static get[Symbol.species](){return K0}concat(...o){return super.concat.apply(this,o)}prepend(...o){return o.length===1&&Array.isArray(o[0])?new K0(...o[0].concat(this)):new K0(...o.concat(this))}};function xC(n){return Ei(n)?GT(n,()=>{}):n}function wb(n,o,c){return n.has(o)?n.get(o):n.set(o,c(o)).get(o)}function C3(n){return typeof n!="object"||n==null||Object.isFrozen(n)}function D3(n,o,c){const s=_C(n,o,c);return{detectMutations(){return RC(n,o,s,c)}}}function _C(n,o=[],c,s="",d=new Set){const p={value:c};if(!n(c)&&!d.has(c)){d.add(c),p.children={};const y=o.length>0;for(const v in c){const x=s?s+"."+v:v;y&&o.some(O=>O instanceof RegExp?O.test(x):x===O)||(p.children[v]=_C(n,o,c[v],x))}}return p}function RC(n,o=[],c,s,d=!1,p=""){const y=c?c.value:void 0,v=y===s;if(d&&!v&&!Number.isNaN(s))return{wasMutated:!0,path:p};if(n(y)||n(s))return{wasMutated:!1};const x={};for(let O in c.children)x[O]=!0;for(let O in s)x[O]=!0;const E=o.length>0;for(let O in x){const R=p?p+"."+O:O;if(E&&o.some(j=>j instanceof RegExp?j.test(R):R===j))continue;const A=RC(n,o,c.children[O],s[O],v,R);if(A.wasMutated)return A}return{wasMutated:!1}}function w3(n={}){if(process.env.NODE_ENV==="production")return()=>o=>c=>o(c);{let o=function(v,x,E,O){return JSON.stringify(v,c(x,O),E)},c=function(v,x){let E=[],O=[];return x||(x=function(R,A){return E[0]===A?"[Circular ~]":"[Circular ~."+O.slice(0,E.indexOf(A)).join(".")+"]"}),function(R,A){if(E.length>0){var w=E.indexOf(this);~w?E.splice(w+1):E.push(this),~w?O.splice(w,1/0,R):O.push(R),~E.indexOf(A)&&(A=x.call(this,R,A))}else E.push(A);return v==null?A:v.call(this,R,A)}},{isImmutable:s=C3,ignoredPaths:d,warnAfter:p=32}=n;const y=D3.bind(null,s,d);return({getState:v})=>{let x=v(),E=y(x),O;return R=>A=>{const w=SC(p,"ImmutableStateInvariantMiddleware");w.measureTime(()=>{if(x=v(),O=E.detectMutations(),E=y(x),O.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Mn(19):`A state mutation was detected between dispatches, in the path '${O.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const j=R(A);return w.measureTime(()=>{if(x=v(),O=E.detectMutations(),E=y(x),O.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Mn(20):`A state mutation was detected inside a dispatch, in the path: ${O.path||""}. Take a look at the reducer(s) handling the action ${o(A)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),w.warnIfExceeded(),j}}}}function OC(n){const o=typeof n;return n==null||o==="string"||o==="boolean"||o==="number"||Array.isArray(n)||My(n)}function YT(n,o="",c=OC,s,d=[],p){let y;if(!c(n))return{keyPath:o||"<root>",value:n};if(typeof n!="object"||n===null||p!=null&&p.has(n))return!1;const v=s!=null?s(n):Object.entries(n),x=d.length>0;for(const[E,O]of v){const R=o?o+"."+E:E;if(!(x&&d.some(w=>w instanceof RegExp?w.test(R):R===w))){if(!c(O))return{keyPath:R,value:O};if(typeof O=="object"&&(y=YT(O,R,c,s,d,p),y))return y}}return p&&AC(n)&&p.add(n),!1}function AC(n){if(!Object.isFrozen(n))return!1;for(const o of Object.values(n))if(!(typeof o!="object"||o===null)&&!AC(o))return!1;return!0}function M3(n={}){if(process.env.NODE_ENV==="production")return()=>o=>c=>o(c);{const{isSerializable:o=OC,getEntries:c,ignoredActions:s=[],ignoredActionPaths:d=["meta.arg","meta.baseQueryMeta"],ignoredPaths:p=[],warnAfter:y=32,ignoreState:v=!1,ignoreActions:x=!1,disableCache:E=!1}=n,O=!E&&WeakSet?new WeakSet:void 0;return R=>A=>w=>{if(!RT(w))return A(w);const j=A(w),H=SC(y,"SerializableStateInvariantMiddleware");return!x&&!(s.length&&s.indexOf(w.type)!==-1)&&H.measureTime(()=>{const L=YT(w,"",o,c,d,O);if(L){const{keyPath:V,value:J}=L;console.error(`A non-serializable value was detected in an action, in the path: \`${V}\`. Value:`,J,`
|
|
372
|
+
Take a look at the logic that dispatched this action: `,w,`
|
|
373
|
+
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
374
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),v||(H.measureTime(()=>{const L=R.getState(),V=YT(L,"",o,c,p,O);if(V){const{keyPath:J,value:F}=V;console.error(`A non-serializable value was detected in the state, in the path: \`${J}\`. Value:`,F,`
|
|
375
|
+
Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
376
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),H.warnIfExceeded()),j}}}function Mb(n){return typeof n=="boolean"}var j3=()=>function(o){const{thunk:c=!0,immutableCheck:s=!0,serializableCheck:d=!0,actionCreatorCheck:p=!0}=o??{};let y=new TC;if(c&&(Mb(c)?y.push(g3):y.push(v3(c.extraArgument))),process.env.NODE_ENV!=="production"){if(s){let v={};Mb(s)||(v=s),y.unshift(w3(v))}if(d){let v={};Mb(d)||(v=d),y.push(M3(v))}if(p){let v={};Mb(p)||(v=p),y.unshift(A3(v))}}return y},N3="RTK_autoBatch",CC=n=>o=>{setTimeout(o,n)},z3=(n={type:"raf"})=>o=>(...c)=>{const s=o(...c);let d=!0,p=!1,y=!1;const v=new Set,x=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:CC(10):n.type==="callback"?n.queueNotification:CC(n.timeout),E=()=>{y=!1,p&&(p=!1,v.forEach(O=>O()))};return Object.assign({},s,{subscribe(O){const R=()=>d&&O(),A=s.subscribe(R);return v.add(O),()=>{A(),v.delete(O)}},dispatch(O){var R;try{return d=!((R=O==null?void 0:O.meta)!=null&&R[N3]),p=!d,p&&(y||(y=!0,x(E))),s.dispatch(O)}finally{d=!0}}})},U3=n=>function(c){const{autoBatch:s=!0}=c??{};let d=new TC(n);return s&&d.push(z3(typeof s=="object"?s:void 0)),d};function L3(n){const o=j3(),{reducer:c=void 0,middleware:s,devTools:d=!0,duplicateMiddlewareCheck:p=!0,preloadedState:y=void 0,enhancers:v=void 0}=n||{};let x;if(typeof c=="function")x=c;else if(My(c))x=kU(c);else throw new Error(process.env.NODE_ENV==="production"?Mn(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?Mn(2):"`middleware` field must be a callback");let E;if(typeof s=="function"){if(E=s(o),process.env.NODE_ENV!=="production"&&!Array.isArray(E))throw new Error(process.env.NODE_ENV==="production"?Mn(3):"when using a middleware builder function, an array of middleware must be returned")}else E=o();if(process.env.NODE_ENV!=="production"&&E.some(H=>typeof H!="function"))throw new Error(process.env.NODE_ENV==="production"?Mn(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&p){let H=new Set;E.forEach(L=>{if(H.has(L))throw new Error(process.env.NODE_ENV==="production"?Mn(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");H.add(L)})}let O=mb;d&&(O=S3({trace:process.env.NODE_ENV!=="production",...typeof d=="object"&&d}));const R=GU(...E),A=U3(R);if(process.env.NODE_ENV!=="production"&&v&&typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Mn(5):"`enhancers` field must be a callback");let w=typeof v=="function"?v(A):A();if(process.env.NODE_ENV!=="production"&&!Array.isArray(w))throw new Error(process.env.NODE_ENV==="production"?Mn(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&w.some(H=>typeof H!="function"))throw new Error(process.env.NODE_ENV==="production"?Mn(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&E.length&&!w.includes(R)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const j=O(...w);return KA(x,y,j)}function DC(n){const o={},c=[];let s;const d={addCase(p,y){if(process.env.NODE_ENV!=="production"){if(c.length>0)throw new Error(process.env.NODE_ENV==="production"?Mn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(s)throw new Error(process.env.NODE_ENV==="production"?Mn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const v=typeof p=="string"?p:p.type;if(!v)throw new Error(process.env.NODE_ENV==="production"?Mn(28):"`builder.addCase` cannot be called with an empty action type");if(v in o)throw new Error(process.env.NODE_ENV==="production"?Mn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${v}'`);return o[v]=y,d},addAsyncThunk(p,y){if(process.env.NODE_ENV!=="production"&&s)throw new Error(process.env.NODE_ENV==="production"?Mn(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return y.pending&&(o[p.pending.type]=y.pending),y.rejected&&(o[p.rejected.type]=y.rejected),y.fulfilled&&(o[p.fulfilled.type]=y.fulfilled),y.settled&&c.push({matcher:p.settled,reducer:y.settled}),d},addMatcher(p,y){if(process.env.NODE_ENV!=="production"&&s)throw new Error(process.env.NODE_ENV==="production"?Mn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return c.push({matcher:p,reducer:y}),d},addDefaultCase(p){if(process.env.NODE_ENV!=="production"&&s)throw new Error(process.env.NODE_ENV==="production"?Mn(31):"`builder.addDefaultCase` can only be called once");return s=p,d}};return n(d),[o,c,s]}function B3(n){return typeof n=="function"}function H3(n,o){if(process.env.NODE_ENV!=="production"&&typeof o=="object")throw new Error(process.env.NODE_ENV==="production"?Mn(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[c,s,d]=DC(o),p;if(B3(n))p=()=>xC(n());else{const v=xC(n);p=()=>v}function y(v=p(),x){let E=[c[x.type],...s.filter(({matcher:O})=>O(x)).map(({reducer:O})=>O)];return E.filter(O=>!!O).length===0&&(E=[d]),E.reduce((O,R)=>{if(R)if(Co(O)){const w=R(O,x);return w===void 0?O:w}else{if(Ei(O))return GT(O,A=>R(A,x));{const A=R(O,x);if(A===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return O},v)}return y.getInitialState=p,y}var $3=Symbol.for("rtk-slice-createasyncthunk");function V3(n,o){return`${n}/${o}`}function k3({creators:n}={}){var c;const o=(c=n==null?void 0:n.asyncThunk)==null?void 0:c[$3];return function(d){const{name:p,reducerPath:y=p}=d;if(!p)throw new Error(process.env.NODE_ENV==="production"?Mn(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&d.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const v=(typeof d.reducers=="function"?d.reducers(q3()):d.reducers)||{},x=Object.keys(v),E={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},O={addCase(K,k){const P=typeof K=="string"?K:K.type;if(!P)throw new Error(process.env.NODE_ENV==="production"?Mn(12):"`context.addCase` cannot be called with an empty action type");if(P in E.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Mn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return E.sliceCaseReducersByType[P]=k,O},addMatcher(K,k){return E.sliceMatchers.push({matcher:K,reducer:k}),O},exposeAction(K,k){return E.actionCreators[K]=k,O},exposeCaseReducer(K,k){return E.sliceCaseReducersByName[K]=k,O}};x.forEach(K=>{const k=v[K],P={reducerName:K,type:V3(p,K),createNotation:typeof d.reducers=="function"};Q3(k)?I3(P,k,O,o):Y3(P,k,O)});function R(){if(process.env.NODE_ENV!=="production"&&typeof d.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Mn(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[K={},k=[],P=void 0]=typeof d.extraReducers=="function"?DC(d.extraReducers):[d.extraReducers],ae={...K,...E.sliceCaseReducersByType};return H3(d.initialState,$=>{for(let Se in ae)$.addCase(Se,ae[Se]);for(let Se of E.sliceMatchers)$.addMatcher(Se.matcher,Se.reducer);for(let Se of k)$.addMatcher(Se.matcher,Se.reducer);P&&$.addDefaultCase(P)})}const A=K=>K,w=new Map,j=new WeakMap;let H;function L(K,k){return H||(H=R()),H(K,k)}function V(){return H||(H=R()),H.getInitialState()}function J(K,k=!1){function P($){let Se=$[K];if(typeof Se>"u"){if(k)Se=wb(j,P,V);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Mn(15):"selectSlice returned undefined for an uninjected slice reducer")}return Se}function ae($=A){const Se=wb(w,k,()=>new WeakMap);return wb(Se,$,()=>{const me={};for(const[je,Re]of Object.entries(d.selectors??{}))me[je]=G3(Re,$,()=>wb(j,$,V),k);return me})}return{reducerPath:K,getSelectors:ae,get selectors(){return ae(P)},selectSlice:P}}const F={name:p,reducer:L,actions:E.actionCreators,caseReducers:E.sliceCaseReducersByName,getInitialState:V,...J(y),injectInto(K,{reducerPath:k,...P}={}){const ae=k??y;return K.inject({reducerPath:ae,reducer:L},P),{...F,...J(ae,!0)}}};return F}}function G3(n,o,c,s){function d(p,...y){let v=o(p);if(typeof v>"u"){if(s)v=c();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Mn(16):"selectState returned undefined for an uninjected slice reducer")}return n(v,...y)}return d.unwrapped=n,d}var QT=k3();function q3(){function n(o,c){return{_reducerDefinitionType:"asyncThunk",payloadCreator:o,...c}}return n.withTypes=()=>n,{reducer(o){return Object.assign({[o.name](...c){return o(...c)}}[o.name],{_reducerDefinitionType:"reducer"})},preparedReducer(o,c){return{_reducerDefinitionType:"reducerWithPrepare",prepare:o,reducer:c}},asyncThunk:n}}function Y3({type:n,reducerName:o,createNotation:c},s,d){let p,y;if("reducer"in s){if(c&&!X3(s))throw new Error(process.env.NODE_ENV==="production"?Mn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");p=s.reducer,y=s.prepare}else p=s;d.addCase(n,p).exposeCaseReducer(o,p).exposeAction(o,y?EC(n,y):EC(n))}function Q3(n){return n._reducerDefinitionType==="asyncThunk"}function X3(n){return n._reducerDefinitionType==="reducerWithPrepare"}function I3({type:n,reducerName:o},c,s,d){if(!d)throw new Error(process.env.NODE_ENV==="production"?Mn(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:p,fulfilled:y,pending:v,rejected:x,settled:E,options:O}=c,R=d(n,p,O);s.exposeAction(o,R),y&&s.addCase(R.fulfilled,y),v&&s.addCase(R.pending,v),x&&s.addCase(R.rejected,x),E&&s.addMatcher(R.settled,E),s.exposeCaseReducer(o,{fulfilled:y||jb,pending:v||jb,rejected:x||jb,settled:E||jb})}function jb(){}function Z3(){return{ids:[],entities:{}}}function J3(n){function o(c={},s){const d=Object.assign(Z3(),c);return s?n.setAll(d,s):d}return{getInitialState:o}}function F3(){function n(o,c={}){const{createSelector:s=E3}=c,d=R=>R.ids,p=R=>R.entities,y=s(d,p,(R,A)=>R.map(w=>A[w])),v=(R,A)=>A,x=(R,A)=>R[A],E=s(d,R=>R.length);if(!o)return{selectIds:d,selectEntities:p,selectAll:y,selectTotal:E,selectById:s(p,v,x)};const O=s(o,p);return{selectIds:s(o,d),selectEntities:O,selectAll:s(o,y),selectTotal:s(o,E),selectById:s(O,v,x)}}return{getSelectors:n}}var K3=Co;function P3(n){const o=ga((c,s)=>n(s));return function(s){return o(s,void 0)}}function ga(n){return function(c,s){function d(y){return _3(y)}const p=y=>{d(s)?n(s.payload,y):n(s,y)};return K3(c)?(p(c),c):GT(c,p)}}function kh(n,o){const c=o(n);return process.env.NODE_ENV!=="production"&&c===void 0&&console.warn("The entity passed to the `selectId` implementation returned undefined.","You should probably provide your own `selectId` implementation.","The entity that was passed:",n,"The `selectId` implementation:",o.toString()),c}function fs(n){return Array.isArray(n)||(n=Object.values(n)),n}function Nb(n){return Co(n)?kT(n):n}function wC(n,o,c){n=fs(n);const s=Nb(c.ids),d=new Set(s),p=[],y=new Set([]),v=[];for(const x of n){const E=kh(x,o);d.has(E)||y.has(E)?v.push({id:E,changes:x}):(y.add(E),p.push(x))}return[p,v,s]}function MC(n){function o(j,H){const L=kh(j,n);L in H.entities||(H.ids.push(L),H.entities[L]=j)}function c(j,H){j=fs(j);for(const L of j)o(L,H)}function s(j,H){const L=kh(j,n);L in H.entities||H.ids.push(L),H.entities[L]=j}function d(j,H){j=fs(j);for(const L of j)s(L,H)}function p(j,H){j=fs(j),H.ids=[],H.entities={},c(j,H)}function y(j,H){return v([j],H)}function v(j,H){let L=!1;j.forEach(V=>{V in H.entities&&(delete H.entities[V],L=!0)}),L&&(H.ids=H.ids.filter(V=>V in H.entities))}function x(j){Object.assign(j,{ids:[],entities:{}})}function E(j,H,L){const V=L.entities[H.id];if(V===void 0)return!1;const J=Object.assign({},V,H.changes),F=kh(J,n),K=F!==H.id;return K&&(j[H.id]=F,delete L.entities[H.id]),L.entities[F]=J,K}function O(j,H){return R([j],H)}function R(j,H){const L={},V={};j.forEach(F=>{var K;F.id in H.entities&&(V[F.id]={id:F.id,changes:{...(K=V[F.id])==null?void 0:K.changes,...F.changes}})}),j=Object.values(V),j.length>0&&j.filter(K=>E(L,K,H)).length>0&&(H.ids=Object.values(H.entities).map(K=>kh(K,n)))}function A(j,H){return w([j],H)}function w(j,H){const[L,V]=wC(j,n,H);c(L,H),R(V,H)}return{removeAll:P3(x),addOne:ga(o),addMany:ga(c),setOne:ga(s),setMany:ga(d),setAll:ga(p),updateOne:ga(O),updateMany:ga(R),upsertOne:ga(A),upsertMany:ga(w),removeOne:ga(y),removeMany:ga(v)}}function W3(n,o,c){let s=0,d=n.length;for(;s<d;){let p=s+d>>>1;const y=n[p];c(o,y)>=0?s=p+1:d=p}return s}function eL(n,o,c){const s=W3(n,o,c);return n.splice(s,0,o),n}function tL(n,o){const{removeOne:c,removeMany:s,removeAll:d}=MC(n);function p(L,V){return y([L],V)}function y(L,V,J){L=fs(L);const F=new Set(J??Nb(V.ids)),K=new Set,k=L.filter(P=>{const ae=kh(P,n),$=!K.has(ae);return $&&K.add(ae),!F.has(ae)&&$});k.length!==0&&H(V,k)}function v(L,V){return x([L],V)}function x(L,V){let J={};if(L=fs(L),L.length!==0){for(const F of L){const K=n(F);J[K]=F,delete V.entities[K]}L=fs(J),H(V,L)}}function E(L,V){L=fs(L),V.entities={},V.ids=[],y(L,V,[])}function O(L,V){return R([L],V)}function R(L,V){let J=!1,F=!1;for(let K of L){const k=V.entities[K.id];if(!k)continue;J=!0,Object.assign(k,K.changes);const P=n(k);if(K.id!==P){F=!0,delete V.entities[K.id];const ae=V.ids.indexOf(K.id);V.ids[ae]=P,V.entities[P]=k}}J&&H(V,[],J,F)}function A(L,V){return w([L],V)}function w(L,V){const[J,F,K]=wC(L,n,V);J.length&&y(J,V,K),F.length&&R(F,V)}function j(L,V){if(L.length!==V.length)return!1;for(let J=0;J<L.length;J++)if(L[J]!==V[J])return!1;return!0}const H=(L,V,J,F)=>{const K=Nb(L.entities),k=Nb(L.ids),P=L.entities;let ae=k;F&&(ae=new Set(k));let $=[];for(const je of ae){const Re=K[je];Re&&$.push(Re)}const Se=$.length===0;for(const je of V)P[n(je)]=je,Se||eL($,je,o);Se?$=V.slice().sort(o):J&&$.sort(o);const me=$.map(n);j(k,me)||(L.ids=me)};return{removeOne:c,removeMany:s,removeAll:d,addOne:ga(p),updateOne:ga(O),upsertOne:ga(A),setOne:ga(v),setMany:ga(x),setAll:ga(E),addMany:ga(y),updateMany:ga(R),upsertMany:ga(w)}}function nL(n={}){const{selectId:o,sortComparer:c}={sortComparer:!1,selectId:y=>y.id,...n},s=c?tL(o,c):MC(o),d=J3(s),p=F3();return{selectId:o,sortComparer:c,...d,...p,...s}}function Mn(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const nu=nL({selectId:n=>n.id}),XT=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2),aL=nu.getInitialState(),IT=(n,o)=>{const c=o.id||XT(),s=n.entities[c]||{},d={...s,...o,id:c,_updatedAt:Date.now(),_version:(s._version??0)+1};return nu.upsertOne(n,d),d},jC=n=>n?Array.isArray(n)?n:[n]:[],NC=QT({name:"items",initialState:aL,reducers:{item_add:(n,o)=>{const c=jC(o.payload);for(const s of c)IT(n,s)},item_replace:(n,o)=>{var p;const c=o.payload,s=c.id||XT(),d={...c,id:s,_updatedAt:Date.now(),_version:(((p=n.entities[s])==null?void 0:p._version)??0)+1};nu.setOne(n,d)},item_update:(n,o)=>{const c=jC(o.payload);if(c.length===0)return;const s=Date.now(),d=E=>{if(!E||typeof E!="object")return E;const O={};for(const[R,A]of Object.entries(E))A!==void 0&&(O[R]=A);return O};if(c.length>1){const E=[];for(const O of c){const R=O==null?void 0:O.id;if(!R)continue;const A=n.entities[R]||{},w=d(O);E.push({id:R,changes:{...w,_updatedAt:s,_version:(A._version??0)+1}})}E.length&&nu.updateMany(n,E);return}const p=c[0],y=p==null?void 0:p.id;if(!y)return;const v=n.entities[y]||{},x=d(p);nu.updateOne(n,{id:y,changes:{...x,_updatedAt:s,_version:(v._version??0)+1}})},item_delete:(n,o)=>{const c=o.payload,s=typeof c=="string"?c:c==null?void 0:c.id;s&&nu.removeOne(n,s)},item_updateAttributeScalar:(n,o)=>{const{item:c,scalarname:s}=o.payload||{};if(!c||!c.id||!s)return;const d=n.entities[c.id]||{},p=d[s]||{},y=c[s];nu.updateOne(n,{id:c.id,changes:{[s]:y&&typeof y=="object"?{...p,...y}:y,_updatedAt:Date.now(),_version:(d._version??0)+1}}),y&&typeof y=="object"&&y.__typename&&IT(n,y)},item_updateAttributeVector:(n,o)=>{const{item:c,vectorname:s}=o.payload||{};if(!c||!c.id||!s)return;const d=n.entities[c.id]||{},p=Array.isArray(d[s])?d[s]:[],y=Array.isArray(c[s])?c[s]:[],v={};for(const E of p)E&&E.id&&(v[E.id]=E);for(const E of y){if(!E)continue;const O=E.id||XT();E.__typename&&IT(n,{...E,id:O});const R=v[O]||{};v[O]={...R,...E,id:O}}const x=Object.values(v);nu.updateOne(n,{id:c.id,changes:{[s]:x,_updatedAt:Date.now(),_version:(d._version??0)+1}})},item_updateChildInMain:(n,o)=>{const{mainItem:c,childItem:s}=o.payload||{},d=c==null?void 0:c.id,p=s==null?void 0:s.id,y=s==null?void 0:s.__typename;if(!d||!p||!y)return;const v=n.entities[d];if(!v)return;const x=A=>A&&typeof A=="object"&&A.id===p&&A.__typename===y,E=A=>{if(!A)return A;if(Array.isArray(A)){let w=!1;const j=A.map(H=>{const L=E(H);return L!==H&&(w=!0),L});return w?j:A}if(typeof A=="object"){if(x(A))return{...A,...s};let w=!1;const j={...A};for(const[H,L]of Object.entries(A)){const V=E(L);V!==L&&(j[H]=V,w=!0)}return w?j:A}return A},O=E(v);if(O===v)return;const R=Date.now();nu.updateOne(n,{id:d,changes:{...O,_updatedAt:R,_version:(v._version??0)+1}})}}}),lL=NC.reducer,zC=NC.actions,By=nu.getSelectors(n=>n.items),ZT=By.selectById;By.selectAll,By.selectEntities,By.selectIds,By.selectTotal;const rL=(n=>L3({reducer:{items:lL},preloadedState:n}))();class oL extends Error{constructor(o,c,s){super(o),this.name="GraphQLHttpError",this.response=c,this.body=s}}class UC extends Error{constructor(o,c,s){super(o),this.name="GraphQLResponseError",this.errors=c,this.response=s}}async function iL(n,o,c={}){const{query:s,variables:d={},operationName:p}=o,{headers:y,...v}=c,x={method:"POST",body:JSON.stringify({query:s,variables:d}),signal:c.signal,credentials:c.credentials??"include",headers:{"Content-Type":"application/json",...y||{}},...v},E=await fetch(n,x);let O;try{O=await E.json()}catch{throw new UC(`GraphQL endpoint returned non-JSON response (${E.status})`,E,null)}if(!E.ok)throw new oL(`GraphQL HTTP error: ${E.status}`,E,O);return O}const LC=`
|
|
377
|
+
query IntrospectionQuery {
|
|
378
|
+
__schema {
|
|
379
|
+
queryType { name }
|
|
380
|
+
mutationType { name }
|
|
381
|
+
types {
|
|
382
|
+
name
|
|
383
|
+
description
|
|
384
|
+
kind
|
|
385
|
+
fields {
|
|
386
|
+
name
|
|
387
|
+
description
|
|
388
|
+
args {
|
|
389
|
+
name
|
|
390
|
+
description
|
|
391
|
+
type {
|
|
392
|
+
kind
|
|
393
|
+
name
|
|
394
|
+
ofType {
|
|
395
|
+
kind
|
|
396
|
+
name
|
|
397
|
+
ofType {
|
|
398
|
+
kind
|
|
399
|
+
name
|
|
400
|
+
ofType {
|
|
401
|
+
kind
|
|
402
|
+
name
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
type {
|
|
409
|
+
kind
|
|
410
|
+
name
|
|
411
|
+
ofType {
|
|
412
|
+
kind
|
|
413
|
+
name
|
|
414
|
+
ofType {
|
|
415
|
+
kind
|
|
416
|
+
name
|
|
417
|
+
ofType {
|
|
418
|
+
kind
|
|
419
|
+
name
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
inputFields {
|
|
426
|
+
name
|
|
427
|
+
description
|
|
428
|
+
type {
|
|
429
|
+
kind
|
|
430
|
+
name
|
|
431
|
+
ofType {
|
|
432
|
+
kind
|
|
433
|
+
name
|
|
434
|
+
ofType {
|
|
435
|
+
kind
|
|
436
|
+
name
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
possibleTypes {
|
|
442
|
+
name
|
|
443
|
+
kind
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
`,uL="query __ApolloGetServiceDefinition__ { _service { sdl } }";function BC(n){const{endpoint:o,getHeaders:c,onGraphQLErrors:s}=n,d=async(R,A={})=>{const w=c?await c():{},j=await iL(o,R,{...A,headers:{...A.headers||{},...w}});if(j!=null&&j.errors&&j.errors.length)throw s&&s(j.errors,j),new UC("GraphQL returned errors",j.errors,j);return j},p=(R,A,w)=>d({query:R,variables:A},w),y=(R,A,w)=>d({query:R,variables:A},w);let v=null;const x=async()=>(v||(v=await d({query:LC})),v);let E=null;return{request:d,query:p,mutate:y,introspect:x,sdl:async()=>{var R;if(!E){const A=await d({query:uL});E=((R=A==null?void 0:A._service)==null?void 0:R.sdl)||null}return E}}}BC({endpoint:"/api/gql"});const cL=({children:n,clientOptions:o})=>T.jsx(sL,{clientOptions:o,children:T.jsx(wU,{store:rL,children:n})}),HC=D.createContext(null),sL=({children:n,clientOptions:o={}})=>{const c=D.useMemo(()=>BC(o),[]);return T.jsx(HC.Provider,{value:c,children:n})},zb=()=>{const n=D.useContext(HC);if(!n)throw Error("useGQLClient not in GQLClientContext");return n},JT=(n,o=[],c)=>{if(!n||typeof n!="object")return o;if(Array.isArray(n)){for(const s of n)JT(s,o,c+1);return o}{if(c===1){if(n.__typename){if(((n==null?void 0:n.__typename)||"").endsWith("Error")){const d=Error(`Požadavek vrátil řízený chybový stav
|
|
449
|
+
${JSON.stringify(n,null,2)}`);throw d.errors=n,d}}else if(n.id!=null)throw new Error(`GraphQL entity with id='${n.id}' is missing __typename. Add __typename to your query/fragment, otherwise normalizace nebude fungovat.`)}o.push(n)}for(const s of Object.values(n))JT(s,o,c+1);return o},$C=(n=zC.item_update)=>o=>async(c,s,d)=>{const p=o&&typeof o=="object"&&"data"in o&&o.data!=null?o.data:o;if(p&&typeof p=="object"){let y=[];try{y=JT(p,[],0)}catch(x){throw console.error("ItemsFromGraphQLResult: normalization failed",x),x}const v=Object.values(p).filter(Boolean);c(n(v))}return d(o)},Ub=$C(),fL=$C(zC.item_add),VC=n=>n&&typeof n=="object"&&"data"in n&&n.data!=null?n.data:n,kC=(n,o)=>{if(!n||typeof n!="object")return null;if(o&&o in n)return n[o];const c=Object.values(n);return c.length>0?c[0]:null},Hy=n=>{if(typeof n=="string"){const c=n;return s=>async(d,p,y)=>{const v=VC(s),x=kC(v,c);return y(x)}}const o=n;return async(c,s,d)=>{const p=VC(o),y=kC(p);return d(y)}};var FT={exports:{}};/*!
|
|
450
|
+
Copyright (c) 2018 Jed Watson.
|
|
451
|
+
Licensed under the MIT License (MIT), see
|
|
452
|
+
http://jedwatson.github.io/classnames
|
|
453
|
+
*/var GC;function dL(){return GC||(GC=1,(function(n){(function(){var o={}.hasOwnProperty;function c(){for(var p="",y=0;y<arguments.length;y++){var v=arguments[y];v&&(p=d(p,s(v)))}return p}function s(p){if(typeof p=="string"||typeof p=="number")return p;if(typeof p!="object")return"";if(Array.isArray(p))return c.apply(null,p);if(p.toString!==Object.prototype.toString&&!p.toString.toString().includes("[native code]"))return p.toString();var y="";for(var v in p)o.call(p,v)&&p[v]&&(y=d(y,v));return y}function d(p,y){return y?p?p+" "+y:p+y:p}n.exports?(c.default=c,n.exports=c):window.classNames=c})()})(FT)),FT.exports}var hL=dL();const xn=P0(hL);function KT(){return KT=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var c=arguments[o];for(var s in c)({}).hasOwnProperty.call(c,s)&&(n[s]=c[s])}return n},KT.apply(null,arguments)}function qC(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)!==-1)continue;c[s]=n[s]}return c}function YC(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}function pL(n){var o=mL(n,"string");return typeof o=="symbol"?o:String(o)}function mL(n,o){if(typeof n!="object"||n===null)return n;var c=n[Symbol.toPrimitive];if(c!==void 0){var s=c.call(n,o);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function yL(n,o,c){var s=D.useRef(n!==void 0),d=D.useState(o),p=d[0],y=d[1],v=n!==void 0,x=s.current;return s.current=v,!v&&x&&p!==o&&y(o),[v?n:p,D.useCallback(function(E){for(var O=arguments.length,R=new Array(O>1?O-1:0),A=1;A<O;A++)R[A-1]=arguments[A];c&&c.apply(void 0,[E].concat(R)),y(E)},[c])]}function QC(n,o){return Object.keys(o).reduce(function(c,s){var d,p=c,y=p[YC(s)],v=p[s],x=qC(p,[YC(s),s].map(pL)),E=o[s],O=yL(v,y,n[E]),R=O[0],A=O[1];return KT({},x,(d={},d[s]=R,d[E]=A,d))},n)}function PT(n,o){return PT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},PT(n,o)}function gL(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n,PT(n,o)}const vL=["xxl","xl","lg","md","sm","xs"],$y=D.createContext({prefixes:{},breakpoints:vL,minBreakpoint:"xs"}),{Consumer:L7,Provider:B7}=$y;function sa(n,o){const{prefixes:c}=D.useContext($y);return n||c[o]||o}function XC(){const{breakpoints:n}=D.useContext($y);return n}function IC(){const{minBreakpoint:n}=D.useContext($y);return n}function bL(){const{dir:n}=D.useContext($y);return n==="rtl"}function Lb(n){return n&&n.ownerDocument||document}function EL(n){var o=Lb(n);return o&&o.defaultView||window}function SL(n,o){return EL(n).getComputedStyle(n,o)}var TL=/([A-Z])/g;function xL(n){return n.replace(TL,"-$1").toLowerCase()}var _L=/^ms-/;function Bb(n){return xL(n).replace(_L,"-ms-")}var RL=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function OL(n){return!!(n&&RL.test(n))}function Iu(n,o){var c="",s="";if(typeof o=="string")return n.style.getPropertyValue(Bb(o))||SL(n).getPropertyValue(Bb(o));Object.keys(o).forEach(function(d){var p=o[d];!p&&p!==0?n.style.removeProperty(Bb(d)):OL(d)?s+=d+"("+p+") ":c+=Bb(d)+": "+p+";"}),s&&(c+="transform: "+s+";"),n.style.cssText+=";"+c}var Hb={exports:{}},$b={exports:{}},mn={};/** @license React v16.13.1
|
|
454
|
+
* react-is.production.min.js
|
|
455
|
+
*
|
|
456
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
457
|
+
*
|
|
458
|
+
* This source code is licensed under the MIT license found in the
|
|
459
|
+
* LICENSE file in the root directory of this source tree.
|
|
460
|
+
*/var ZC;function AL(){if(ZC)return mn;ZC=1;var n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103,c=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,d=n?Symbol.for("react.strict_mode"):60108,p=n?Symbol.for("react.profiler"):60114,y=n?Symbol.for("react.provider"):60109,v=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.async_mode"):60111,E=n?Symbol.for("react.concurrent_mode"):60111,O=n?Symbol.for("react.forward_ref"):60112,R=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,w=n?Symbol.for("react.memo"):60115,j=n?Symbol.for("react.lazy"):60116,H=n?Symbol.for("react.block"):60121,L=n?Symbol.for("react.fundamental"):60117,V=n?Symbol.for("react.responder"):60118,J=n?Symbol.for("react.scope"):60119;function F(k){if(typeof k=="object"&&k!==null){var P=k.$$typeof;switch(P){case o:switch(k=k.type,k){case x:case E:case s:case p:case d:case R:return k;default:switch(k=k&&k.$$typeof,k){case v:case O:case j:case w:case y:return k;default:return P}}case c:return P}}}function K(k){return F(k)===E}return mn.AsyncMode=x,mn.ConcurrentMode=E,mn.ContextConsumer=v,mn.ContextProvider=y,mn.Element=o,mn.ForwardRef=O,mn.Fragment=s,mn.Lazy=j,mn.Memo=w,mn.Portal=c,mn.Profiler=p,mn.StrictMode=d,mn.Suspense=R,mn.isAsyncMode=function(k){return K(k)||F(k)===x},mn.isConcurrentMode=K,mn.isContextConsumer=function(k){return F(k)===v},mn.isContextProvider=function(k){return F(k)===y},mn.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===o},mn.isForwardRef=function(k){return F(k)===O},mn.isFragment=function(k){return F(k)===s},mn.isLazy=function(k){return F(k)===j},mn.isMemo=function(k){return F(k)===w},mn.isPortal=function(k){return F(k)===c},mn.isProfiler=function(k){return F(k)===p},mn.isStrictMode=function(k){return F(k)===d},mn.isSuspense=function(k){return F(k)===R},mn.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===s||k===E||k===p||k===d||k===R||k===A||typeof k=="object"&&k!==null&&(k.$$typeof===j||k.$$typeof===w||k.$$typeof===y||k.$$typeof===v||k.$$typeof===O||k.$$typeof===L||k.$$typeof===V||k.$$typeof===J||k.$$typeof===H)},mn.typeOf=F,mn}var yn={};/** @license React v16.13.1
|
|
461
|
+
* react-is.development.js
|
|
462
|
+
*
|
|
463
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
464
|
+
*
|
|
465
|
+
* This source code is licensed under the MIT license found in the
|
|
466
|
+
* LICENSE file in the root directory of this source tree.
|
|
467
|
+
*/var JC;function CL(){return JC||(JC=1,process.env.NODE_ENV!=="production"&&(function(){var n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103,c=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,d=n?Symbol.for("react.strict_mode"):60108,p=n?Symbol.for("react.profiler"):60114,y=n?Symbol.for("react.provider"):60109,v=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.async_mode"):60111,E=n?Symbol.for("react.concurrent_mode"):60111,O=n?Symbol.for("react.forward_ref"):60112,R=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,w=n?Symbol.for("react.memo"):60115,j=n?Symbol.for("react.lazy"):60116,H=n?Symbol.for("react.block"):60121,L=n?Symbol.for("react.fundamental"):60117,V=n?Symbol.for("react.responder"):60118,J=n?Symbol.for("react.scope"):60119;function F($e){return typeof $e=="string"||typeof $e=="function"||$e===s||$e===E||$e===p||$e===d||$e===R||$e===A||typeof $e=="object"&&$e!==null&&($e.$$typeof===j||$e.$$typeof===w||$e.$$typeof===y||$e.$$typeof===v||$e.$$typeof===O||$e.$$typeof===L||$e.$$typeof===V||$e.$$typeof===J||$e.$$typeof===H)}function K($e){if(typeof $e=="object"&&$e!==null){var Ct=$e.$$typeof;switch(Ct){case o:var an=$e.type;switch(an){case x:case E:case s:case p:case d:case R:return an;default:var Mt=an&&an.$$typeof;switch(Mt){case v:case O:case j:case w:case y:return Mt;default:return Ct}}case c:return Ct}}}var k=x,P=E,ae=v,$=y,Se=o,me=O,je=s,Re=j,ke=w,Ye=c,et=p,G=d,ce=R,Ee=!1;function ze($e){return Ee||(Ee=!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.")),se($e)||K($e)===x}function se($e){return K($e)===E}function N($e){return K($e)===v}function Z($e){return K($e)===y}function ue($e){return typeof $e=="object"&&$e!==null&&$e.$$typeof===o}function re($e){return K($e)===O}function De($e){return K($e)===s}function Ue($e){return K($e)===j}function Me($e){return K($e)===w}function Pe($e){return K($e)===c}function Qe($e){return K($e)===p}function it($e){return K($e)===d}function Le($e){return K($e)===R}yn.AsyncMode=k,yn.ConcurrentMode=P,yn.ContextConsumer=ae,yn.ContextProvider=$,yn.Element=Se,yn.ForwardRef=me,yn.Fragment=je,yn.Lazy=Re,yn.Memo=ke,yn.Portal=Ye,yn.Profiler=et,yn.StrictMode=G,yn.Suspense=ce,yn.isAsyncMode=ze,yn.isConcurrentMode=se,yn.isContextConsumer=N,yn.isContextProvider=Z,yn.isElement=ue,yn.isForwardRef=re,yn.isFragment=De,yn.isLazy=Ue,yn.isMemo=Me,yn.isPortal=Pe,yn.isProfiler=Qe,yn.isStrictMode=it,yn.isSuspense=Le,yn.isValidElementType=F,yn.typeOf=K})()),yn}var FC;function KC(){return FC||(FC=1,process.env.NODE_ENV==="production"?$b.exports=AL():$b.exports=CL()),$b.exports}/*
|
|
468
|
+
object-assign
|
|
469
|
+
(c) Sindre Sorhus
|
|
470
|
+
@license MIT
|
|
471
|
+
*/var WT,PC;function DL(){if(PC)return WT;PC=1;var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function s(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function d(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var y={},v=0;v<10;v++)y["_"+String.fromCharCode(v)]=v;var x=Object.getOwnPropertyNames(y).map(function(O){return y[O]});if(x.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(O){E[O]=O}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return WT=d()?Object.assign:function(p,y){for(var v,x=s(p),E,O=1;O<arguments.length;O++){v=Object(arguments[O]);for(var R in v)o.call(v,R)&&(x[R]=v[R]);if(n){E=n(v);for(var A=0;A<E.length;A++)c.call(v,E[A])&&(x[E[A]]=v[E[A]])}}return x},WT}var ex,WC;function tx(){if(WC)return ex;WC=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ex=n,ex}var nx,eD;function tD(){return eD||(eD=1,nx=Function.call.bind(Object.prototype.hasOwnProperty)),nx}var ax,nD;function wL(){if(nD)return ax;nD=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var o=tx(),c={},s=tD();n=function(p){var y="Warning: "+p;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}}}function d(p,y,v,x,E){if(process.env.NODE_ENV!=="production"){for(var O in p)if(s(p,O)){var R;try{if(typeof p[O]!="function"){var A=Error((x||"React class")+": "+v+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}R=p[O](y,O,x,v,null,o)}catch(j){R=j}if(R&&!(R instanceof Error)&&n((x||"React class")+": type specification of "+v+" `"+O+"` 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 c)){c[R.message]=!0;var w=E?E():"";n("Failed "+v+" type: "+R.message+(w??""))}}}}return d.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(c={})},ax=d,ax}var lx,aD;function ML(){if(aD)return lx;aD=1;var n=KC(),o=DL(),c=tx(),s=tD(),d=wL(),p=function(){};process.env.NODE_ENV!=="production"&&(p=function(v){var x="Warning: "+v;typeof console<"u"&&console.error(x);try{throw new Error(x)}catch{}});function y(){return null}return lx=function(v,x){var E=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator";function R(se){var N=se&&(E&&se[E]||se[O]);if(typeof N=="function")return N}var A="<<anonymous>>",w={array:V("array"),bigint:V("bigint"),bool:V("boolean"),func:V("function"),number:V("number"),object:V("object"),string:V("string"),symbol:V("symbol"),any:J(),arrayOf:F,element:K(),elementType:k(),instanceOf:P,node:me(),objectOf:$,oneOf:ae,oneOfType:Se,shape:Re,exact:ke};function j(se,N){return se===N?se!==0||1/se===1/N:se!==se&&N!==N}function H(se,N){this.message=se,this.data=N&&typeof N=="object"?N:{},this.stack=""}H.prototype=Error.prototype;function L(se){if(process.env.NODE_ENV!=="production")var N={},Z=0;function ue(De,Ue,Me,Pe,Qe,it,Le){if(Pe=Pe||A,it=it||Me,Le!==c){if(x){var $e=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 $e.name="Invariant Violation",$e}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ct=Pe+":"+Me;!N[Ct]&&Z<3&&(p("You are manually calling a React.PropTypes validation function for the `"+it+"` prop on `"+Pe+"`. 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."),N[Ct]=!0,Z++)}}return Ue[Me]==null?De?Ue[Me]===null?new H("The "+Qe+" `"+it+"` is marked as required "+("in `"+Pe+"`, but its value is `null`.")):new H("The "+Qe+" `"+it+"` is marked as required in "+("`"+Pe+"`, but its value is `undefined`.")):null:se(Ue,Me,Pe,Qe,it)}var re=ue.bind(null,!1);return re.isRequired=ue.bind(null,!0),re}function V(se){function N(Z,ue,re,De,Ue,Me){var Pe=Z[ue],Qe=G(Pe);if(Qe!==se){var it=ce(Pe);return new H("Invalid "+De+" `"+Ue+"` of type "+("`"+it+"` supplied to `"+re+"`, expected ")+("`"+se+"`."),{expectedType:se})}return null}return L(N)}function J(){return L(y)}function F(se){function N(Z,ue,re,De,Ue){if(typeof se!="function")return new H("Property `"+Ue+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var Me=Z[ue];if(!Array.isArray(Me)){var Pe=G(Me);return new H("Invalid "+De+" `"+Ue+"` of type "+("`"+Pe+"` supplied to `"+re+"`, expected an array."))}for(var Qe=0;Qe<Me.length;Qe++){var it=se(Me,Qe,re,De,Ue+"["+Qe+"]",c);if(it instanceof Error)return it}return null}return L(N)}function K(){function se(N,Z,ue,re,De){var Ue=N[Z];if(!v(Ue)){var Me=G(Ue);return new H("Invalid "+re+" `"+De+"` of type "+("`"+Me+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return L(se)}function k(){function se(N,Z,ue,re,De){var Ue=N[Z];if(!n.isValidElementType(Ue)){var Me=G(Ue);return new H("Invalid "+re+" `"+De+"` of type "+("`"+Me+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return L(se)}function P(se){function N(Z,ue,re,De,Ue){if(!(Z[ue]instanceof se)){var Me=se.name||A,Pe=ze(Z[ue]);return new H("Invalid "+De+" `"+Ue+"` of type "+("`"+Pe+"` supplied to `"+re+"`, expected ")+("instance of `"+Me+"`."))}return null}return L(N)}function ae(se){if(!Array.isArray(se))return process.env.NODE_ENV!=="production"&&(arguments.length>1?p("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])."):p("Invalid argument supplied to oneOf, expected an array.")),y;function N(Z,ue,re,De,Ue){for(var Me=Z[ue],Pe=0;Pe<se.length;Pe++)if(j(Me,se[Pe]))return null;var Qe=JSON.stringify(se,function(Le,$e){var Ct=ce($e);return Ct==="symbol"?String($e):$e});return new H("Invalid "+De+" `"+Ue+"` of value `"+String(Me)+"` "+("supplied to `"+re+"`, expected one of "+Qe+"."))}return L(N)}function $(se){function N(Z,ue,re,De,Ue){if(typeof se!="function")return new H("Property `"+Ue+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var Me=Z[ue],Pe=G(Me);if(Pe!=="object")return new H("Invalid "+De+" `"+Ue+"` of type "+("`"+Pe+"` supplied to `"+re+"`, expected an object."));for(var Qe in Me)if(s(Me,Qe)){var it=se(Me,Qe,re,De,Ue+"."+Qe,c);if(it instanceof Error)return it}return null}return L(N)}function Se(se){if(!Array.isArray(se))return process.env.NODE_ENV!=="production"&&p("Invalid argument supplied to oneOfType, expected an instance of array."),y;for(var N=0;N<se.length;N++){var Z=se[N];if(typeof Z!="function")return p("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ee(Z)+" at index "+N+"."),y}function ue(re,De,Ue,Me,Pe){for(var Qe=[],it=0;it<se.length;it++){var Le=se[it],$e=Le(re,De,Ue,Me,Pe,c);if($e==null)return null;$e.data&&s($e.data,"expectedType")&&Qe.push($e.data.expectedType)}var Ct=Qe.length>0?", expected one of type ["+Qe.join(", ")+"]":"";return new H("Invalid "+Me+" `"+Pe+"` supplied to "+("`"+Ue+"`"+Ct+"."))}return L(ue)}function me(){function se(N,Z,ue,re,De){return Ye(N[Z])?null:new H("Invalid "+re+" `"+De+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return L(se)}function je(se,N,Z,ue,re){return new H((se||"React class")+": "+N+" type `"+Z+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function Re(se){function N(Z,ue,re,De,Ue){var Me=Z[ue],Pe=G(Me);if(Pe!=="object")return new H("Invalid "+De+" `"+Ue+"` of type `"+Pe+"` "+("supplied to `"+re+"`, expected `object`."));for(var Qe in se){var it=se[Qe];if(typeof it!="function")return je(re,De,Ue,Qe,ce(it));var Le=it(Me,Qe,re,De,Ue+"."+Qe,c);if(Le)return Le}return null}return L(N)}function ke(se){function N(Z,ue,re,De,Ue){var Me=Z[ue],Pe=G(Me);if(Pe!=="object")return new H("Invalid "+De+" `"+Ue+"` of type `"+Pe+"` "+("supplied to `"+re+"`, expected `object`."));var Qe=o({},Z[ue],se);for(var it in Qe){var Le=se[it];if(s(se,it)&&typeof Le!="function")return je(re,De,Ue,it,ce(Le));if(!Le)return new H("Invalid "+De+" `"+Ue+"` key `"+it+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(Z[ue],null," ")+`
|
|
472
|
+
Valid keys: `+JSON.stringify(Object.keys(se),null," "));var $e=Le(Me,it,re,De,Ue+"."+it,c);if($e)return $e}return null}return L(N)}function Ye(se){switch(typeof se){case"number":case"string":case"undefined":return!0;case"boolean":return!se;case"object":if(Array.isArray(se))return se.every(Ye);if(se===null||v(se))return!0;var N=R(se);if(N){var Z=N.call(se),ue;if(N!==se.entries){for(;!(ue=Z.next()).done;)if(!Ye(ue.value))return!1}else for(;!(ue=Z.next()).done;){var re=ue.value;if(re&&!Ye(re[1]))return!1}}else return!1;return!0;default:return!1}}function et(se,N){return se==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function G(se){var N=typeof se;return Array.isArray(se)?"array":se instanceof RegExp?"object":et(N,se)?"symbol":N}function ce(se){if(typeof se>"u"||se===null)return""+se;var N=G(se);if(N==="object"){if(se instanceof Date)return"date";if(se instanceof RegExp)return"regexp"}return N}function Ee(se){var N=ce(se);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function ze(se){return!se.constructor||!se.constructor.name?A:se.constructor.name}return w.checkPropTypes=d,w.resetWarningCache=d.resetWarningCache,w.PropTypes=w,w},lx}var rx,lD;function jL(){if(lD)return rx;lD=1;var n=tx();function o(){}function c(){}return c.resetWarningCache=o,rx=function(){function s(y,v,x,E,O,R){if(R!==n){var A=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 A.name="Invariant Violation",A}}s.isRequired=s;function d(){return s}var p={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:d,element:s,elementType:s,instanceOf:d,node:s,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:c,resetWarningCache:o};return p.PropTypes=p,p},rx}var rD;function NL(){if(rD)return Hb.exports;if(rD=1,process.env.NODE_ENV!=="production"){var n=KC(),o=!0;Hb.exports=ML()(n.isElement,o)}else Hb.exports=jL()();return Hb.exports}var zL=NL();const ft=P0(zL),oD={disabled:!1};var UL=process.env.NODE_ENV!=="production"?ft.oneOfType([ft.number,ft.shape({enter:ft.number,exit:ft.number,appear:ft.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&ft.oneOfType([ft.string,ft.shape({enter:ft.string,exit:ft.string,active:ft.string}),ft.shape({enter:ft.string,enterDone:ft.string,enterActive:ft.string,exit:ft.string,exitDone:ft.string,exitActive:ft.string})]);const iD=hl.createContext(null);var LL=function(o){return o.scrollTop},Vy="unmounted",ds="exited",Si="entering",Zu="entered",ky="exiting",Ju=(function(n){gL(o,n);function o(s,d){var p;p=n.call(this,s,d)||this;var y=d,v=y&&!y.isMounting?s.enter:s.appear,x;return p.appearStatus=null,s.in?v?(x=ds,p.appearStatus=Si):x=Zu:s.unmountOnExit||s.mountOnEnter?x=Vy:x=ds,p.state={status:x},p.nextCallback=null,p}o.getDerivedStateFromProps=function(d,p){var y=d.in;return y&&p.status===Vy?{status:ds}:null};var c=o.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(d){var p=null;if(d!==this.props){var y=this.state.status;this.props.in?y!==Si&&y!==Zu&&(p=Si):(y===Si||y===Zu)&&(p=ky)}this.updateStatus(!1,p)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var d=this.props.timeout,p,y,v;return p=y=v=d,d!=null&&typeof d!="number"&&(p=d.exit,y=d.enter,v=d.appear!==void 0?d.appear:y),{exit:p,enter:y,appear:v}},c.updateStatus=function(d,p){if(d===void 0&&(d=!1),p!==null)if(this.cancelNextCallback(),p===Si){if(this.props.unmountOnExit||this.props.mountOnEnter){var y=this.props.nodeRef?this.props.nodeRef.current:Yf.findDOMNode(this);y&&LL(y)}this.performEnter(d)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ds&&this.setState({status:Vy})},c.performEnter=function(d){var p=this,y=this.props.enter,v=this.context?this.context.isMounting:d,x=this.props.nodeRef?[v]:[Yf.findDOMNode(this),v],E=x[0],O=x[1],R=this.getTimeouts(),A=v?R.appear:R.enter;if(!d&&!y||oD.disabled){this.safeSetState({status:Zu},function(){p.props.onEntered(E)});return}this.props.onEnter(E,O),this.safeSetState({status:Si},function(){p.props.onEntering(E,O),p.onTransitionEnd(A,function(){p.safeSetState({status:Zu},function(){p.props.onEntered(E,O)})})})},c.performExit=function(){var d=this,p=this.props.exit,y=this.getTimeouts(),v=this.props.nodeRef?void 0:Yf.findDOMNode(this);if(!p||oD.disabled){this.safeSetState({status:ds},function(){d.props.onExited(v)});return}this.props.onExit(v),this.safeSetState({status:ky},function(){d.props.onExiting(v),d.onTransitionEnd(y.exit,function(){d.safeSetState({status:ds},function(){d.props.onExited(v)})})})},c.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(d,p){p=this.setNextCallback(p),this.setState(d,p)},c.setNextCallback=function(d){var p=this,y=!0;return this.nextCallback=function(v){y&&(y=!1,p.nextCallback=null,d(v))},this.nextCallback.cancel=function(){y=!1},this.nextCallback},c.onTransitionEnd=function(d,p){this.setNextCallback(p);var y=this.props.nodeRef?this.props.nodeRef.current:Yf.findDOMNode(this),v=d==null&&!this.props.addEndListener;if(!y||v){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var x=this.props.nodeRef?[this.nextCallback]:[y,this.nextCallback],E=x[0],O=x[1];this.props.addEndListener(E,O)}d!=null&&setTimeout(this.nextCallback,d)},c.render=function(){var d=this.state.status;if(d===Vy)return null;var p=this.props,y=p.children;p.in,p.mountOnEnter,p.unmountOnExit,p.appear,p.enter,p.exit,p.timeout,p.addEndListener,p.onEnter,p.onEntering,p.onEntered,p.onExit,p.onExiting,p.onExited,p.nodeRef;var v=qC(p,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hl.createElement(iD.Provider,{value:null},typeof y=="function"?y(d,v):hl.cloneElement(hl.Children.only(y),v))},o})(hl.Component);Ju.contextType=iD,Ju.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ft.shape({current:typeof Element>"u"?ft.any:function(n,o,c,s,d,p){var y=n[o];return ft.instanceOf(y&&"ownerDocument"in y?y.ownerDocument.defaultView.Element:Element)(n,o,c,s,d,p)}}),children:ft.oneOfType([ft.func.isRequired,ft.element.isRequired]).isRequired,in:ft.bool,mountOnEnter:ft.bool,unmountOnExit:ft.bool,appear:ft.bool,enter:ft.bool,exit:ft.bool,timeout:function(o){var c=UL;o.addEndListener||(c=c.isRequired);for(var s=arguments.length,d=new Array(s>1?s-1:0),p=1;p<s;p++)d[p-1]=arguments[p];return c.apply(void 0,[o].concat(d))},addEndListener:ft.func,onEnter:ft.func,onEntering:ft.func,onEntered:ft.func,onExit:ft.func,onExiting:ft.func,onExited:ft.func}:{};function Gh(){}Ju.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gh,onEntering:Gh,onEntered:Gh,onExit:Gh,onExiting:Gh,onExited:Gh},Ju.UNMOUNTED=Vy,Ju.EXITED=ds,Ju.ENTERING=Si,Ju.ENTERED=Zu,Ju.EXITING=ky;function BL(n){return n.code==="Escape"||n.keyCode===27}function HL(){const n=D.version.split(".");return{major:+n[0],minor:+n[1],patch:+n[2]}}function qh(n){if(!n||typeof n=="function")return null;const{major:o}=HL();return o>=19?n.props.ref:n.ref}const Yh=!!(typeof window<"u"&&window.document&&window.document.createElement);var ox=!1,ix=!1;try{var ux={get passive(){return ox=!0},get once(){return ix=ox=!0}};Yh&&(window.addEventListener("test",ux,ux),window.removeEventListener("test",ux,!0))}catch{}function uD(n,o,c,s){if(s&&typeof s!="boolean"&&!ix){var d=s.once,p=s.capture,y=c;!ix&&d&&(y=c.__once||function v(x){this.removeEventListener(o,v,p),c.call(this,x)},c.__once=y),n.addEventListener(o,y,ox?s:p)}n.addEventListener(o,c,s)}function cx(n,o,c,s){var d=s&&typeof s!="boolean"?s.capture:s;n.removeEventListener(o,c,d),c.__once&&n.removeEventListener(o,c.__once,d)}function Vb(n,o,c,s){return uD(n,o,c,s),function(){cx(n,o,c,s)}}function $L(n,o,c,s){if(s===void 0&&(s=!0),n){var d=document.createEvent("HTMLEvents");d.initEvent(o,c,s),n.dispatchEvent(d)}}function VL(n){var o=Iu(n,"transitionDuration")||"",c=o.indexOf("ms")===-1?1e3:1;return parseFloat(o)*c}function kL(n,o,c){c===void 0&&(c=5);var s=!1,d=setTimeout(function(){s||$L(n,"transitionend",!0)},o+c),p=Vb(n,"transitionend",function(){s=!0},{once:!0});return function(){clearTimeout(d),p()}}function cD(n,o,c,s){c==null&&(c=VL(n)||0);var d=kL(n,c,s),p=Vb(n,"transitionend",o);return function(){d(),p()}}function sD(n,o){const c=Iu(n,o)||"",s=c.indexOf("ms")===-1?1e3:1;return parseFloat(c)*s}function sx(n,o){const c=sD(n,"transitionDuration"),s=sD(n,"transitionDelay"),d=cD(n,p=>{p.target===n&&(d(),o(p))},c+s)}function Gy(...n){return n.filter(o=>o!=null).reduce((o,c)=>{if(typeof c!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return o===null?c:function(...d){o.apply(this,d),c.apply(this,d)}},null)}function fD(n){n.offsetHeight}const dD=n=>!n||typeof n=="function"?n:o=>{n.current=o};function GL(n,o){const c=dD(n),s=dD(o);return d=>{c&&c(d),s&&s(d)}}function hD(n,o){return D.useMemo(()=>GL(n,o),[n,o])}function qL(n){return n&&"setState"in n?Yf.findDOMNode(n):n??null}const kb=hl.forwardRef(({onEnter:n,onEntering:o,onEntered:c,onExit:s,onExiting:d,onExited:p,addEndListener:y,children:v,childRef:x,...E},O)=>{const R=D.useRef(null),A=hD(R,x),w=P=>{A(qL(P))},j=P=>ae=>{P&&R.current&&P(R.current,ae)},H=D.useCallback(j(n),[n]),L=D.useCallback(j(o),[o]),V=D.useCallback(j(c),[c]),J=D.useCallback(j(s),[s]),F=D.useCallback(j(d),[d]),K=D.useCallback(j(p),[p]),k=D.useCallback(j(y),[y]);return T.jsx(Ju,{ref:O,...E,onEnter:H,onEntered:V,onEntering:L,onExit:J,onExited:K,onExiting:F,addEndListener:k,nodeRef:R,children:typeof v=="function"?(P,ae)=>v(P,{...ae,ref:w}):hl.cloneElement(v,{ref:w})})});kb.displayName="TransitionWrapper";const YL={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function QL(n,o){const c=`offset${n[0].toUpperCase()}${n.slice(1)}`,s=o[c],d=YL[n];return s+parseInt(Iu(o,d[0]),10)+parseInt(Iu(o,d[1]),10)}const XL={[ds]:"collapse",[ky]:"collapsing",[Si]:"collapsing",[Zu]:"collapse show"},pD=hl.forwardRef(({onEnter:n,onEntering:o,onEntered:c,onExit:s,onExiting:d,className:p,children:y,dimension:v="height",in:x=!1,timeout:E=300,mountOnEnter:O=!1,unmountOnExit:R=!1,appear:A=!1,getDimensionValue:w=QL,...j},H)=>{const L=typeof v=="function"?v():v,V=D.useMemo(()=>Gy(P=>{P.style[L]="0"},n),[L,n]),J=D.useMemo(()=>Gy(P=>{const ae=`scroll${L[0].toUpperCase()}${L.slice(1)}`;P.style[L]=`${P[ae]}px`},o),[L,o]),F=D.useMemo(()=>Gy(P=>{P.style[L]=null},c),[L,c]),K=D.useMemo(()=>Gy(P=>{P.style[L]=`${w(L,P)}px`,fD(P)},s),[s,w,L]),k=D.useMemo(()=>Gy(P=>{P.style[L]=null},d),[L,d]);return T.jsx(kb,{ref:H,addEndListener:sx,...j,"aria-expanded":j.role?x:null,onEnter:V,onEntering:J,onEntered:F,onExit:K,onExiting:k,childRef:qh(y),in:x,timeout:E,mountOnEnter:O,unmountOnExit:R,appear:A,children:(P,ae)=>hl.cloneElement(y,{...ae,className:xn(p,y.props.className,XL[P],L==="width"&&"collapse-horizontal")})})});pD.displayName="Collapse";function IL(n){const o=D.useRef(n);return D.useEffect(()=>{o.current=n},[n]),o}function Qh(n){const o=IL(n);return D.useCallback(function(...c){return o.current&&o.current(...c)},[o])}const mD=(n=>D.forwardRef((o,c)=>T.jsx("div",{...o,ref:c,className:xn(o.className,n)})));function ZL(n){const o=D.useRef(n);return D.useEffect(()=>{o.current=n},[n]),o}function Fu(n){const o=ZL(n);return D.useCallback(function(...c){return o.current&&o.current(...c)},[o])}function JL(){const n=D.useRef(!0),o=D.useRef(()=>n.current);return D.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),o.current}function FL(n){const o=D.useRef(null);return D.useEffect(()=>{o.current=n}),o.current}const KL=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",yD=typeof document<"u"||KL?D.useLayoutEffect:D.useEffect,PL=["as","disabled"];function WL(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)>=0)continue;c[s]=n[s]}return c}function e4(n){return!n||n.trim()==="#"}function fx({tagName:n,disabled:o,href:c,target:s,rel:d,role:p,onClick:y,tabIndex:v=0,type:x}){n||(c!=null||s!=null||d!=null?n="a":n="button");const E={tagName:n};if(n==="button")return[{type:x||"button",disabled:o},E];const O=A=>{if((o||n==="a"&&e4(c))&&A.preventDefault(),o){A.stopPropagation();return}y==null||y(A)},R=A=>{A.key===" "&&(A.preventDefault(),O(A))};return n==="a"&&(c||(c="#"),o&&(c=void 0)),[{role:p??"button",disabled:void 0,tabIndex:o?void 0:v,href:c,target:n==="a"?s:void 0,"aria-disabled":o||void 0,rel:n==="a"?d:void 0,onClick:O,onKeyDown:R},E]}const gD=D.forwardRef((n,o)=>{let{as:c,disabled:s}=n,d=WL(n,PL);const[p,{tagName:y}]=fx(Object.assign({tagName:c,disabled:s},d));return T.jsx(y,Object.assign({},d,p,{ref:o}))});gD.displayName="Button";const t4=["onKeyDown"];function n4(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)>=0)continue;c[s]=n[s]}return c}function a4(n){return!n||n.trim()==="#"}const vD=D.forwardRef((n,o)=>{let{onKeyDown:c}=n,s=n4(n,t4);const[d]=fx(Object.assign({tagName:"a"},s)),p=Fu(y=>{d.onKeyDown(y),c==null||c(y)});return a4(s.href)||s.role==="button"?T.jsx("a",Object.assign({ref:o},s,d,{onKeyDown:p})):T.jsx("a",Object.assign({ref:o},s,{onKeyDown:c}))});vD.displayName="Anchor";const l4={[Si]:"show",[Zu]:"show"},Gb=D.forwardRef(({className:n,children:o,transitionClasses:c={},onEnter:s,...d},p)=>{const y={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...d},v=D.useCallback((x,E)=>{fD(x),s==null||s(x,E)},[s]);return T.jsx(kb,{ref:p,addEndListener:sx,...y,onEnter:v,childRef:qh(o),children:(x,E)=>D.cloneElement(o,{...E,className:xn("fade",n,o.props.className,l4[x],c[x])})})});Gb.displayName="Fade";const r4={"aria-label":ft.string,onClick:ft.func,variant:ft.oneOf(["white"])},dx=D.forwardRef(({className:n,variant:o,"aria-label":c="Close",...s},d)=>T.jsx("button",{ref:d,type:"button",className:xn("btn-close",o&&`btn-close-${o}`,n),"aria-label":c,...s}));dx.displayName="CloseButton",dx.propTypes=r4;const hx=D.forwardRef(({as:n,bsPrefix:o,variant:c="primary",size:s,active:d=!1,disabled:p=!1,className:y,...v},x)=>{const E=sa(o,"btn"),[O,{tagName:R}]=fx({tagName:n,disabled:p,...v}),A=R;return T.jsx(A,{...O,...v,ref:x,disabled:p,className:xn(y,E,d&&"active",c&&`${E}-${c}`,s&&`${E}-${s}`,v.href&&p&&"disabled")})});hx.displayName="Button";const bD=D.createContext(null);bD.displayName="CardHeaderContext";function o4(n){const o=D.useRef(n);return o.current=n,o}function i4(n){const o=o4(n);D.useEffect(()=>()=>o.current(),[])}function u4({as:n,bsPrefix:o,className:c,...s}){o=sa(o,"col");const d=XC(),p=IC(),y=[],v=[];return d.forEach(x=>{const E=s[x];delete s[x];let O,R,A;typeof E=="object"&&E!=null?{span:O,offset:R,order:A}=E:O=E;const w=x!==p?`-${x}`:"";O&&y.push(O===!0?`${o}${w}`:`${o}${w}-${O}`),A!=null&&v.push(`order${w}-${A}`),R!=null&&v.push(`offset${w}-${R}`)}),[{...s,className:xn(c,...y,...v)},{as:n,bsPrefix:o,spans:y}]}const qb=D.forwardRef((n,o)=>{const[{className:c,...s},{as:d="div",bsPrefix:p,spans:y}]=u4(n);return T.jsx(d,{...s,ref:o,className:xn(c,!y.length&&p)})});qb.displayName="Col";var c4=Function.prototype.bind.call(Function.prototype.call,[].slice);function If(n,o){return c4(n.querySelectorAll(o))}function s4(){const[,n]=D.useReducer(o=>o+1,0);return n}function ED(n,o){if(n.contains)return n.contains(o);if(n.compareDocumentPosition)return n===o||!!(n.compareDocumentPosition(o)&16)}const Yb=D.createContext(null),px=(n,o=null)=>n!=null?String(n):o||null,mx=D.createContext(null);mx.displayName="NavContext";const f4="data-rr-ui-",d4="rrUi";function Qb(n){return`${f4}${n}`}function h4(n){return`${d4}${n}`}const SD=D.createContext(Yh?window:void 0);SD.Provider;function yx(){return D.useContext(SD)}const p4=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",m4=typeof document<"u"||p4?D.useLayoutEffect:D.useEffect,Xh=D.createContext(null);Xh.displayName="NavbarContext";const TD=n=>!n||typeof n=="function"?n:o=>{n.current=o};function y4(n,o){const c=TD(n),s=TD(o);return d=>{c&&c(d),s&&s(d)}}function Xb(n,o){return D.useMemo(()=>y4(n,o),[n,o])}const xD=D.createContext(null),g4=["as","active","eventKey"];function v4(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)>=0)continue;c[s]=n[s]}return c}function _D({key:n,onClick:o,active:c,id:s,role:d,disabled:p}){const y=D.useContext(Yb),v=D.useContext(mx),x=D.useContext(xD);let E=c;const O={role:d};if(v){!d&&v.role==="tablist"&&(O.role="tab");const R=v.getControllerId(n??null),A=v.getControlledId(n??null);O[Qb("event-key")]=n,O.id=R||s,E=c==null&&n!=null?v.activeKey===n:c,(E||!(x!=null&&x.unmountOnExit)&&!(x!=null&&x.mountOnEnter))&&(O["aria-controls"]=A)}return O.role==="tab"&&(O["aria-selected"]=E,E||(O.tabIndex=-1),p&&(O.tabIndex=-1,O["aria-disabled"]=!0)),O.onClick=Fu(R=>{p||(o==null||o(R),n!=null&&y&&!R.isPropagationStopped()&&y(n,R))}),[O,{isActive:E}]}const RD=D.forwardRef((n,o)=>{let{as:c=gD,active:s,eventKey:d}=n,p=v4(n,g4);const[y,v]=_D(Object.assign({key:px(d,p.href),active:s},p));return y[Qb("active")]=v.isActive,T.jsx(c,Object.assign({},p,y,{ref:o}))});RD.displayName="NavItem";const b4=["as","onSelect","activeKey","role","onKeyDown"];function E4(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)>=0)continue;c[s]=n[s]}return c}const OD=()=>{},AD=Qb("event-key"),CD=D.forwardRef((n,o)=>{let{as:c="div",onSelect:s,activeKey:d,role:p,onKeyDown:y}=n,v=E4(n,b4);const x=s4(),E=D.useRef(!1),O=D.useContext(Yb),R=D.useContext(xD);let A,w;R&&(p=p||"tablist",d=R.activeKey,A=R.getControlledId,w=R.getControllerId);const j=D.useRef(null),H=F=>{const K=j.current;if(!K)return null;const k=If(K,`[${AD}]:not([aria-disabled=true])`),P=K.querySelector("[aria-selected=true]");if(!P||P!==document.activeElement)return null;const ae=k.indexOf(P);if(ae===-1)return null;let $=ae+F;return $>=k.length&&($=0),$<0&&($=k.length-1),k[$]},L=(F,K)=>{F!=null&&(s==null||s(F,K),O==null||O(F,K))},V=F=>{if(y==null||y(F),!R)return;let K;switch(F.key){case"ArrowLeft":case"ArrowUp":K=H(-1);break;case"ArrowRight":case"ArrowDown":K=H(1);break;default:return}K&&(F.preventDefault(),L(K.dataset[h4("EventKey")]||null,F),E.current=!0,x())};D.useEffect(()=>{if(j.current&&E.current){const F=j.current.querySelector(`[${AD}][aria-selected=true]`);F==null||F.focus()}E.current=!1});const J=Xb(o,j);return T.jsx(Yb.Provider,{value:L,children:T.jsx(mx.Provider,{value:{role:p,activeKey:px(d),getControlledId:A||OD,getControllerId:w||OD},children:T.jsx(c,Object.assign({},v,{onKeyDown:V,ref:J,role:p}))})})});CD.displayName="Nav";const S4=Object.assign(CD,{Item:RD});var Ib;function DD(n){if((!Ib&&Ib!==0||n)&&Yh){var o=document.createElement("div");o.style.position="absolute",o.style.top="-9999px",o.style.width="50px",o.style.height="50px",o.style.overflow="scroll",document.body.appendChild(o),Ib=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}return Ib}function T4(){return D.useState(null)}function gx(n){n===void 0&&(n=Lb());try{var o=n.activeElement;return!o||!o.nodeName?null:o}catch{return n.body}}function x4(n){const o=D.useRef(n);return o.current=n,o}function _4(n){const o=x4(n);D.useEffect(()=>()=>o.current(),[])}function R4(n=document){const o=n.defaultView;return Math.abs(o.innerWidth-n.documentElement.clientWidth)}const wD=Qb("modal-open");class vx{constructor({ownerDocument:o,handleContainerOverflow:c=!0,isRTL:s=!1}={}){this.handleContainerOverflow=c,this.isRTL=s,this.modals=[],this.ownerDocument=o}getScrollbarWidth(){return R4(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(o){}removeModalAttributes(o){}setContainerStyle(o){const c={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",d=this.getElement();o.style={overflow:d.style.overflow,[s]:d.style[s]},o.scrollBarWidth&&(c[s]=`${parseInt(Iu(d,s)||"0",10)+o.scrollBarWidth}px`),d.setAttribute(wD,""),Iu(d,c)}reset(){[...this.modals].forEach(o=>this.remove(o))}removeContainerStyle(o){const c=this.getElement();c.removeAttribute(wD),Object.assign(c.style,o.style)}add(o){let c=this.modals.indexOf(o);return c!==-1||(c=this.modals.length,this.modals.push(o),this.setModalAttributes(o),c!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),c}remove(o){const c=this.modals.indexOf(o);c!==-1&&(this.modals.splice(c,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(o))}isTopModal(o){return!!this.modals.length&&this.modals[this.modals.length-1]===o}}const bx=(n,o)=>Yh?n==null?(o||Lb()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function O4(n,o){const c=yx(),[s,d]=D.useState(()=>bx(n,c==null?void 0:c.document));if(!s){const p=bx(n);p&&d(p)}return D.useEffect(()=>{},[o,s]),D.useEffect(()=>{const p=bx(n);p!==s&&d(p)},[n,s]),s}function A4({children:n,in:o,onExited:c,mountOnEnter:s,unmountOnExit:d}){const p=D.useRef(null),y=D.useRef(o),v=Fu(c);D.useEffect(()=>{o?y.current=!0:v(p.current)},[o,v]);const x=Xb(p,qh(n)),E=D.cloneElement(n,{ref:x});return o?E:d||!y.current&&s?null:E}const C4=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function D4(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)>=0)continue;c[s]=n[s]}return c}function w4(n){let{onEnter:o,onEntering:c,onEntered:s,onExit:d,onExiting:p,onExited:y,addEndListener:v,children:x}=n,E=D4(n,C4);const O=D.useRef(null),R=Xb(O,qh(x)),A=K=>k=>{K&&O.current&&K(O.current,k)},w=D.useCallback(A(o),[o]),j=D.useCallback(A(c),[c]),H=D.useCallback(A(s),[s]),L=D.useCallback(A(d),[d]),V=D.useCallback(A(p),[p]),J=D.useCallback(A(y),[y]),F=D.useCallback(A(v),[v]);return Object.assign({},E,{nodeRef:O},o&&{onEnter:w},c&&{onEntering:j},s&&{onEntered:H},d&&{onExit:L},p&&{onExiting:V},y&&{onExited:J},v&&{addEndListener:F},{children:typeof x=="function"?(K,k)=>x(K,Object.assign({},k,{ref:R})):D.cloneElement(x,{ref:R})})}const M4=["component"];function j4(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)>=0)continue;c[s]=n[s]}return c}const N4=D.forwardRef((n,o)=>{let{component:c}=n,s=j4(n,M4);const d=w4(s);return T.jsx(c,Object.assign({ref:o},d))});function z4({in:n,onTransition:o}){const c=D.useRef(null),s=D.useRef(!0),d=Fu(o);return yD(()=>{if(!c.current)return;let p=!1;return d({in:n,element:c.current,initial:s.current,isStale:()=>p}),()=>{p=!0}},[n,d]),yD(()=>(s.current=!1,()=>{s.current=!0}),[]),c}function U4({children:n,in:o,onExited:c,onEntered:s,transition:d}){const[p,y]=D.useState(!o);o&&p&&y(!1);const v=z4({in:!!o,onTransition:E=>{const O=()=>{E.isStale()||(E.in?s==null||s(E.element,E.initial):(y(!0),c==null||c(E.element)))};Promise.resolve(d(E)).then(O,R=>{throw E.in||y(!0),R})}}),x=Xb(v,qh(n));return p&&!o?null:D.cloneElement(n,{ref:x})}function MD(n,o,c){return n?T.jsx(N4,Object.assign({},c,{component:n})):o?T.jsx(U4,Object.assign({},c,{transition:o})):T.jsx(A4,Object.assign({},c))}const L4=["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 B4(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.indexOf(s)>=0)continue;c[s]=n[s]}return c}let Ex;function H4(n){return Ex||(Ex=new vx({ownerDocument:n==null?void 0:n.document})),Ex}function $4(n){const o=yx(),c=n||H4(o),s=D.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>c.add(s.current),remove:()=>c.remove(s.current),isTopModal:()=>c.isTopModal(s.current),setDialogRef:D.useCallback(d=>{s.current.dialog=d},[]),setBackdropRef:D.useCallback(d=>{s.current.backdrop=d},[])})}const jD=D.forwardRef((n,o)=>{let{show:c=!1,role:s="dialog",className:d,style:p,children:y,backdrop:v=!0,keyboard:x=!0,onBackdropClick:E,onEscapeKeyDown:O,transition:R,runTransition:A,backdropTransition:w,runBackdropTransition:j,autoFocus:H=!0,enforceFocus:L=!0,restoreFocus:V=!0,restoreFocusOptions:J,renderDialog:F,renderBackdrop:K=Mt=>T.jsx("div",Object.assign({},Mt)),manager:k,container:P,onShow:ae,onHide:$=()=>{},onExit:Se,onExited:me,onExiting:je,onEnter:Re,onEntering:ke,onEntered:Ye}=n,et=B4(n,L4);const G=yx(),ce=O4(P),Ee=$4(k),ze=JL(),se=FL(c),[N,Z]=D.useState(!c),ue=D.useRef(null);D.useImperativeHandle(o,()=>Ee,[Ee]),Yh&&!se&&c&&(ue.current=gx(G==null?void 0:G.document)),c&&N&&Z(!1);const re=Fu(()=>{if(Ee.add(),it.current=Vb(document,"keydown",Pe),Qe.current=Vb(document,"focus",()=>setTimeout(Ue),!0),ae&&ae(),H){var Mt,Vt;const sn=gx((Mt=(Vt=Ee.dialog)==null?void 0:Vt.ownerDocument)!=null?Mt:G==null?void 0:G.document);Ee.dialog&&sn&&!ED(Ee.dialog,sn)&&(ue.current=sn,Ee.dialog.focus())}}),De=Fu(()=>{if(Ee.remove(),it.current==null||it.current(),Qe.current==null||Qe.current(),V){var Mt;(Mt=ue.current)==null||Mt.focus==null||Mt.focus(J),ue.current=null}});D.useEffect(()=>{!c||!ce||re()},[c,ce,re]),D.useEffect(()=>{N&&De()},[N,De]),_4(()=>{De()});const Ue=Fu(()=>{if(!L||!ze()||!Ee.isTopModal())return;const Mt=gx(G==null?void 0:G.document);Ee.dialog&&Mt&&!ED(Ee.dialog,Mt)&&Ee.dialog.focus()}),Me=Fu(Mt=>{Mt.target===Mt.currentTarget&&(E==null||E(Mt),v===!0&&$())}),Pe=Fu(Mt=>{x&&BL(Mt)&&Ee.isTopModal()&&(O==null||O(Mt),Mt.defaultPrevented||$())}),Qe=D.useRef(),it=D.useRef(),Le=(...Mt)=>{Z(!0),me==null||me(...Mt)};if(!ce)return null;const $e=Object.assign({role:s,ref:Ee.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},et,{style:p,className:d,tabIndex:-1});let Ct=F?F($e):T.jsx("div",Object.assign({},$e,{children:D.cloneElement(y,{role:"document"})}));Ct=MD(R,A,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!c,onExit:Se,onExiting:je,onExited:Le,onEnter:Re,onEntering:ke,onEntered:Ye,children:Ct});let an=null;return v&&(an=K({ref:Ee.setBackdropRef,onClick:Me}),an=MD(w,j,{in:!!c,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:an})),T.jsx(T.Fragment,{children:Yf.createPortal(T.jsxs(T.Fragment,{children:[an,Ct]}),ce)})});jD.displayName="Modal";const ND=Object.assign(jD,{Manager:vx});function V4(n,o){return n.classList?n.classList.contains(o):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+o+" ")!==-1}function k4(n,o){n.classList?n.classList.add(o):V4(n,o)||(typeof n.className=="string"?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o))}function zD(n,o){return n.replace(new RegExp("(^|\\s)"+o+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function G4(n,o){n.classList?n.classList.remove(o):typeof n.className=="string"?n.className=zD(n.className,o):n.setAttribute("class",zD(n.className&&n.className.baseVal||"",o))}const Ih={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class UD extends vx{adjustAndStore(o,c,s){const d=c.style[o];c.dataset[o]=d,Iu(c,{[o]:`${parseFloat(Iu(c,o))+s}px`})}restore(o,c){const s=c.dataset[o];s!==void 0&&(delete c.dataset[o],Iu(c,{[o]:s}))}setContainerStyle(o){super.setContainerStyle(o);const c=this.getElement();if(k4(c,"modal-open"),!o.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",d=this.isRTL?"marginLeft":"marginRight";If(c,Ih.FIXED_CONTENT).forEach(p=>this.adjustAndStore(s,p,o.scrollBarWidth)),If(c,Ih.STICKY_CONTENT).forEach(p=>this.adjustAndStore(d,p,-o.scrollBarWidth)),If(c,Ih.NAVBAR_TOGGLER).forEach(p=>this.adjustAndStore(d,p,o.scrollBarWidth))}removeContainerStyle(o){super.removeContainerStyle(o);const c=this.getElement();G4(c,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",d=this.isRTL?"marginLeft":"marginRight";If(c,Ih.FIXED_CONTENT).forEach(p=>this.restore(s,p)),If(c,Ih.STICKY_CONTENT).forEach(p=>this.restore(d,p)),If(c,Ih.NAVBAR_TOGGLER).forEach(p=>this.restore(d,p))}}let Sx;function LD(n){return Sx||(Sx=new UD(n)),Sx}const BD=D.forwardRef(({className:n,bsPrefix:o,as:c="div",...s},d)=>(o=sa(o,"modal-body"),T.jsx(c,{ref:d,className:xn(n,o),...s})));BD.displayName="ModalBody";const Tx=D.createContext({onHide(){}}),xx=D.forwardRef(({bsPrefix:n,className:o,contentClassName:c,centered:s,size:d,fullscreen:p,children:y,scrollable:v,...x},E)=>{n=sa(n,"modal");const O=`${n}-dialog`,R=typeof p=="string"?`${n}-fullscreen-${p}`:`${n}-fullscreen`;return T.jsx("div",{...x,ref:E,className:xn(O,o,d&&`${n}-${d}`,s&&`${O}-centered`,v&&`${O}-scrollable`,p&&R),children:T.jsx("div",{className:xn(`${n}-content`,c),children:y})})});xx.displayName="ModalDialog";const HD=D.forwardRef(({className:n,bsPrefix:o,as:c="div",...s},d)=>(o=sa(o,"modal-footer"),T.jsx(c,{ref:d,className:xn(n,o),...s})));HD.displayName="ModalFooter";const _x=D.forwardRef(({closeLabel:n="Close",closeVariant:o,closeButton:c=!1,onHide:s,children:d,...p},y)=>{const v=D.useContext(Tx),x=Qh(()=>{v==null||v.onHide(),s==null||s()});return T.jsxs("div",{ref:y,...p,children:[d,c&&T.jsx(dx,{"aria-label":n,variant:o,onClick:x})]})});_x.displayName="AbstractModalHeader";const $D=D.forwardRef(({bsPrefix:n,className:o,closeLabel:c="Close",closeButton:s=!1,...d},p)=>(n=sa(n,"modal-header"),T.jsx(_x,{ref:p,...d,className:xn(o,n),closeLabel:c,closeButton:s})));$D.displayName="ModalHeader";const q4=mD("h4"),VD=D.forwardRef(({className:n,bsPrefix:o,as:c=q4,...s},d)=>(o=sa(o,"modal-title"),T.jsx(c,{ref:d,className:xn(n,o),...s})));VD.displayName="ModalTitle";function Y4(n){return T.jsx(Gb,{...n,timeout:null})}function Q4(n){return T.jsx(Gb,{...n,timeout:null})}const kD=D.forwardRef(({bsPrefix:n,className:o,style:c,dialogClassName:s,contentClassName:d,children:p,dialogAs:y=xx,"data-bs-theme":v,"aria-labelledby":x,"aria-describedby":E,"aria-label":O,show:R=!1,animation:A=!0,backdrop:w=!0,keyboard:j=!0,onEscapeKeyDown:H,onShow:L,onHide:V,container:J,autoFocus:F=!0,enforceFocus:K=!0,restoreFocus:k=!0,restoreFocusOptions:P,onEntered:ae,onExit:$,onExiting:Se,onEnter:me,onEntering:je,onExited:Re,backdropClassName:ke,manager:Ye,...et},G)=>{const[ce,Ee]=D.useState({}),[ze,se]=D.useState(!1),N=D.useRef(!1),Z=D.useRef(!1),ue=D.useRef(null),[re,De]=T4(),Ue=hD(G,De),Me=Qh(V),Pe=bL();n=sa(n,"modal");const Qe=D.useMemo(()=>({onHide:Me}),[Me]);function it(){return Ye||LD({isRTL:Pe})}function Le(Rt){if(!Yh)return;const tl=it().getScrollbarWidth()>0,Da=Rt.scrollHeight>Lb(Rt).documentElement.clientHeight;Ee({paddingRight:tl&&!Da?DD():void 0,paddingLeft:!tl&&Da?DD():void 0})}const $e=Qh(()=>{re&&Le(re.dialog)});i4(()=>{cx(window,"resize",$e),ue.current==null||ue.current()});const Ct=()=>{N.current=!0},an=Rt=>{N.current&&re&&Rt.target===re.dialog&&(Z.current=!0),N.current=!1},Mt=()=>{se(!0),ue.current=cD(re.dialog,()=>{se(!1)})},Vt=Rt=>{Rt.target===Rt.currentTarget&&Mt()},sn=Rt=>{if(w==="static"){Vt(Rt);return}if(Z.current||Rt.target!==Rt.currentTarget){Z.current=!1;return}V==null||V()},Qr=Rt=>{j?H==null||H(Rt):(Rt.preventDefault(),w==="static"&&Mt())},xi=(Rt,tl)=>{Rt&&Le(Rt),me==null||me(Rt,tl)},Je=Rt=>{ue.current==null||ue.current(),$==null||$(Rt)},Tr=(Rt,tl)=>{je==null||je(Rt,tl),uD(window,"resize",$e)},Ul=Rt=>{Rt&&(Rt.style.display=""),Re==null||Re(Rt),cx(window,"resize",$e)},Xr=D.useCallback(Rt=>T.jsx("div",{...Rt,className:xn(`${n}-backdrop`,ke,!A&&"show")}),[A,ke,n]),jn={...c,...ce};jn.display="block";const Ll=Rt=>T.jsx("div",{role:"dialog",...Rt,style:jn,className:xn(o,n,ze&&`${n}-static`,!A&&"show"),onClick:w?sn:void 0,onMouseUp:an,"data-bs-theme":v,"aria-label":O,"aria-labelledby":x,"aria-describedby":E,children:T.jsx(y,{...et,onMouseDown:Ct,className:s,contentClassName:d,children:p})});return T.jsx(Tx.Provider,{value:Qe,children:T.jsx(ND,{show:R,ref:Ue,backdrop:w,container:J,keyboard:!0,autoFocus:F,enforceFocus:K,restoreFocus:k,restoreFocusOptions:P,onEscapeKeyDown:Qr,onShow:L,onHide:V,onEnter:xi,onEntering:Tr,onEntered:ae,onExit:Je,onExiting:Se,onExited:Ul,manager:it(),transition:A?Y4:void 0,backdropTransition:A?Q4:void 0,renderBackdrop:Xr,renderDialog:Ll})})});kD.displayName="Modal";const Jl=Object.assign(kD,{Body:BD,Header:$D,Title:VD,Footer:HD,Dialog:xx,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),GD=D.forwardRef(({className:n,bsPrefix:o,as:c="div",...s},d)=>(o=sa(o,"nav-item"),T.jsx(c,{ref:d,className:xn(n,o),...s})));GD.displayName="NavItem";const qD=D.forwardRef(({bsPrefix:n,className:o,as:c=vD,active:s,eventKey:d,disabled:p=!1,...y},v)=>{n=sa(n,"nav-link");const[x,E]=_D({key:px(d,y.href),active:s,disabled:p,...y});return T.jsx(c,{...y,...x,ref:v,disabled:p,className:xn(o,n,p&&"disabled",E.isActive&&"active")})});qD.displayName="NavLink";const YD=D.forwardRef((n,o)=>{const{as:c="div",bsPrefix:s,variant:d,fill:p=!1,justify:y=!1,navbar:v,navbarScroll:x,className:E,activeKey:O,...R}=QC(n,{activeKey:"onSelect"}),A=sa(s,"nav");let w,j,H=!1;const L=D.useContext(Xh),V=D.useContext(bD);return L?(w=L.bsPrefix,H=v??!0):V&&({cardHeaderBsPrefix:j}=V),T.jsx(S4,{as:c,ref:o,activeKey:O,className:xn(E,{[A]:!H,[`${w}-nav`]:H,[`${w}-nav-scroll`]:H&&x,[`${j}-${d}`]:!!j,[`${A}-${d}`]:!!d,[`${A}-fill`]:p,[`${A}-justified`]:y}),...R})});YD.displayName="Nav";const X4=Object.assign(YD,{Item:GD,Link:qD}),QD=D.forwardRef(({bsPrefix:n,className:o,as:c,...s},d)=>{n=sa(n,"navbar-brand");const p=c||(s.href?"a":"span");return T.jsx(p,{...s,ref:d,className:xn(o,n)})});QD.displayName="NavbarBrand";const XD=D.forwardRef(({children:n,bsPrefix:o,...c},s)=>{o=sa(o,"navbar-collapse");const d=D.useContext(Xh);return T.jsx(pD,{in:!!(d&&d.expanded),...c,children:T.jsx("div",{ref:s,className:o,children:n})})});XD.displayName="NavbarCollapse";const ID=D.forwardRef(({bsPrefix:n,className:o,children:c,label:s="Toggle navigation",as:d="button",onClick:p,...y},v)=>{n=sa(n,"navbar-toggler");const{onToggle:x,expanded:E}=D.useContext(Xh)||{},O=Qh(R=>{p&&p(R),x&&x()});return d==="button"&&(y.type="button"),T.jsx(d,{...y,ref:v,onClick:O,"aria-label":s,className:xn(o,n,!E&&"collapsed"),children:c||T.jsx("span",{className:`${n}-icon`})})});ID.displayName="NavbarToggle";const Rx=new WeakMap,ZD=(n,o)=>{if(!n||!o)return;const c=Rx.get(o)||new Map;Rx.set(o,c);let s=c.get(n);return s||(s=o.matchMedia(n),s.refCount=0,c.set(s.media,s)),s};function I4(n,o=typeof window>"u"?void 0:window){const c=ZD(n,o),[s,d]=D.useState(()=>c?c.matches:!1);return m4(()=>{let p=ZD(n,o);if(!p)return d(!1);let y=Rx.get(o);const v=()=>{d(p.matches)};return p.refCount++,p.addListener(v),v(),()=>{p.removeListener(v),p.refCount--,p.refCount<=0&&(y==null||y.delete(p.media)),p=void 0}},[n]),s}function Z4(n){const o=Object.keys(n);function c(v,x){return v===x?x:v?`${v} and ${x}`:x}function s(v){return o[Math.min(o.indexOf(v)+1,o.length-1)]}function d(v){const x=s(v);let E=n[x];return typeof E=="number"?E=`${E-.2}px`:E=`calc(${E} - 0.2px)`,`(max-width: ${E})`}function p(v){let x=n[v];return typeof x=="number"&&(x=`${x}px`),`(min-width: ${x})`}function y(v,x,E){let O;typeof v=="object"?(O=v,E=x,x=!0):(x=x||!0,O={[v]:x});let R=D.useMemo(()=>Object.entries(O).reduce((A,[w,j])=>((j==="up"||j===!0)&&(A=c(A,p(w))),(j==="down"||j===!0)&&(A=c(A,d(w))),A),""),[JSON.stringify(O)]);return I4(R,E)}return y}const J4=Z4({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),JD=D.forwardRef(({className:n,bsPrefix:o,as:c="div",...s},d)=>(o=sa(o,"offcanvas-body"),T.jsx(c,{ref:d,className:xn(n,o),...s})));JD.displayName="OffcanvasBody";const F4={[Si]:"show",[Zu]:"show"},FD=D.forwardRef(({bsPrefix:n,className:o,children:c,in:s=!1,mountOnEnter:d=!1,unmountOnExit:p=!1,appear:y=!1,...v},x)=>(n=sa(n,"offcanvas"),T.jsx(kb,{ref:x,addEndListener:sx,in:s,mountOnEnter:d,unmountOnExit:p,appear:y,...v,childRef:qh(c),children:(E,O)=>D.cloneElement(c,{...O,className:xn(o,c.props.className,(E===Si||E===ky)&&`${n}-toggling`,F4[E])})})));FD.displayName="OffcanvasToggling";const KD=D.forwardRef(({bsPrefix:n,className:o,closeLabel:c="Close",closeButton:s=!1,...d},p)=>(n=sa(n,"offcanvas-header"),T.jsx(_x,{ref:p,...d,className:xn(o,n),closeLabel:c,closeButton:s})));KD.displayName="OffcanvasHeader";const K4=mD("h5"),PD=D.forwardRef(({className:n,bsPrefix:o,as:c=K4,...s},d)=>(o=sa(o,"offcanvas-title"),T.jsx(c,{ref:d,className:xn(n,o),...s})));PD.displayName="OffcanvasTitle";function P4(n){return T.jsx(FD,{...n})}function W4(n){return T.jsx(Gb,{...n})}const WD=D.forwardRef(({bsPrefix:n,className:o,children:c,"aria-labelledby":s,placement:d="start",responsive:p,show:y=!1,backdrop:v=!0,keyboard:x=!0,scroll:E=!1,onEscapeKeyDown:O,onShow:R,onHide:A,container:w,autoFocus:j=!0,enforceFocus:H=!0,restoreFocus:L=!0,restoreFocusOptions:V,onEntered:J,onExit:F,onExiting:K,onEnter:k,onEntering:P,onExited:ae,backdropClassName:$,manager:Se,renderStaticNode:me=!1,...je},Re)=>{const ke=D.useRef();n=sa(n,"offcanvas");const[Ye,et]=D.useState(!1),G=Qh(A),ce=J4(p||"xs","up");D.useEffect(()=>{et(p?y&&!ce:y)},[y,p,ce]);const Ee=D.useMemo(()=>({onHide:G}),[G]);function ze(){return Se||(E?(ke.current||(ke.current=new UD({handleContainerOverflow:!1})),ke.current):LD())}const se=(re,...De)=>{re&&(re.style.visibility="visible"),k==null||k(re,...De)},N=(re,...De)=>{re&&(re.style.visibility=""),ae==null||ae(...De)},Z=D.useCallback(re=>T.jsx("div",{...re,className:xn(`${n}-backdrop`,$)}),[$,n]),ue=re=>T.jsx("div",{...re,...je,className:xn(o,p?`${n}-${p}`:n,`${n}-${d}`),"aria-labelledby":s,children:c});return T.jsxs(T.Fragment,{children:[!Ye&&(p||me)&&ue({}),T.jsx(Tx.Provider,{value:Ee,children:T.jsx(ND,{show:Ye,ref:Re,backdrop:v,container:w,keyboard:x,autoFocus:j,enforceFocus:H&&!E,restoreFocus:L,restoreFocusOptions:V,onEscapeKeyDown:O,onShow:R,onHide:G,onEnter:se,onEntering:P,onEntered:J,onExit:F,onExiting:K,onExited:N,manager:ze(),transition:P4,backdropTransition:W4,renderBackdrop:Z,renderDialog:ue})})]})});WD.displayName="Offcanvas";const e6=Object.assign(WD,{Body:JD,Header:KD,Title:PD}),e2=D.forwardRef(({onHide:n,...o},c)=>{const s=D.useContext(Xh),d=Qh(()=>{s==null||s.onToggle==null||s.onToggle(),n==null||n()});return T.jsx(e6,{ref:c,show:!!(s!=null&&s.expanded),...o,renderStaticNode:!0,onHide:d})});e2.displayName="NavbarOffcanvas";const t2=D.forwardRef(({className:n,bsPrefix:o,as:c="span",...s},d)=>(o=sa(o,"navbar-text"),T.jsx(c,{ref:d,className:xn(n,o),...s})));t2.displayName="NavbarText";const n2=D.forwardRef((n,o)=>{const{bsPrefix:c,expand:s=!0,variant:d="light",bg:p,fixed:y,sticky:v,className:x,as:E="nav",expanded:O,onToggle:R,onSelect:A,collapseOnSelect:w=!1,...j}=QC(n,{expanded:"onToggle"}),H=sa(c,"navbar"),L=D.useCallback((...F)=>{A==null||A(...F),w&&O&&(R==null||R(!1))},[A,w,O,R]);j.role===void 0&&E!=="nav"&&(j.role="navigation");let V=`${H}-expand`;typeof s=="string"&&(V=`${V}-${s}`);const J=D.useMemo(()=>({onToggle:()=>R==null?void 0:R(!O),bsPrefix:H,expanded:!!O,expand:s}),[H,O,s,R]);return T.jsx(Xh.Provider,{value:J,children:T.jsx(Yb.Provider,{value:L,children:T.jsx(E,{ref:o,...j,className:xn(x,H,s&&V,d&&`${H}-${d}`,p&&`bg-${p}`,v&&`sticky-${v}`,y&&`fixed-${y}`)})})})});n2.displayName="Navbar";const Zb=Object.assign(n2,{Brand:QD,Collapse:XD,Offcanvas:e2,Text:t2,Toggle:ID}),a2=D.forwardRef(({bsPrefix:n,className:o,as:c="div",...s},d)=>{const p=sa(n,"row"),y=XC(),v=IC(),x=`${p}-cols`,E=[];return y.forEach(O=>{const R=s[O];delete s[O];let A;R!=null&&typeof R=="object"?{cols:A}=R:A=R;const w=O!==v?`-${O}`:"";A!=null&&E.push(`${x}${w}-${A}`)}),T.jsx(c,{ref:d,...s,className:xn(o,p,...E)})});a2.displayName="Row";const t6=({to:n,preserveHash:o=!0,preserveSearch:c=!0}={})=>{const s=Hh(n),d=us(),p=D.useCallback(()=>{console.log("state.href",y.href),d(y.href)},[d]),y=D.useMemo(()=>{const v=typeof window<"u"?window.location.origin:"http://localhost",x=typeof window<"u"?window.location.href:`${v}/`,{pathname:E}=s,O=E.split("/")[1]||"",R=new URL(x),A=o?R.hash:"",w=c?R.search:"",j=new URL(n,v);j.search=j.search||w,j.hash=j.hash||A;const H=j.pathname+j.search+j.hash,L=typeof window<"u"?window.location.pathname.startsWith(`/${O}`):!0;return{follow:p,href:H,pathname:j.pathname,search:j.search,hash:j.hash,isLocal:L,reloadDocument:!L}},[n,o,c,s]);return y},au=({to:n,children:o,preserveHash:c=!0,preserveSearch:s=!0,disabled:d=!1,...p})=>{const{href:y,reloadDocument:v}=t6({to:n,preserveHash:c,preserveSearch:s});return T.jsxs(T.Fragment,{children:[d&&o,!d&&T.jsx(gT,{to:y,reloadDocument:v,...p,children:o})]})},l2=D.createContext(null),n6=10,a6=({children:n})=>{const o=tu(),c=us(),[s,d]=D.useState([]),p=o.pathname,y=p.split("/").filter(Boolean),[v,x,E,O]=y,R=TT(w=>O!=null?ZT(w,O):null);D.useEffect(()=>{if(!O||O==="create"||O==="new")return;const w=[];w.push({key:`${x}:${O}:view`,label:x,to:`/${v}/${x}/view/${O}`}),E&&E!=="view"&&w.push({key:`${x}:${O}:${E}`,label:E,to:`/${v}/${x}/${E}/${O}`});const j={entityKey:`${x}:${O}`,trail:w,entityType:x},H=Date.now();d(L=>{var k;const V=L.find(P=>P.entityKey===j.entityKey),J=(R==null?void 0:R.fullname)||(R==null?void 0:R.name)||j.entityType,F={...V??{},entityKey:j.entityKey,trail:j.trail,lastSeenAt:H,itemLabel:J,pathname:p};if(((k=L[0])==null?void 0:k.entityKey)===j.entityKey)return[F,...L.slice(1)];const K=L.filter(P=>P.entityKey!==j.entityKey);return[F,...K].slice(0,n6)})},[o.pathname,R]);const A=D.useMemo(()=>({items:s,goToCrumb:w=>c(w.to),goToEntry:w=>c(w.trail[w.trail.length-1].to),clear:()=>d([])}),[s,c]);return T.jsx(l2.Provider,{value:A,children:n})},l6=()=>{const n=D.useContext(l2);if(!n)throw new Error("useAzureLikeHistory must be used inside NavigationHistoryProvider");return n},r6=()=>{const{items:n=[],goToEntry:o,clear:c}=l6(),s=us(),d=D.useMemo(()=>[...n].reverse(),[n]),p=v=>{var E;const x=(E=(v==null?void 0:v.target)||{})==null?void 0:E.href;v.preventDefault(),x&&s(x)},y=v=>x=>{x.preventDefault(),o(v)};return n.length?T.jsx(Zb,{bg:"light",children:T.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[T.jsx("span",{style:{opacity:.7}}),d.map(v=>T.jsxs(T.Fragment,{children:[T.jsx("a",{type:"button",href:v.pathname,onClick:y(v),className:"btn btn-sm btn-link border-0",title:v.trail.map(x=>x.label).join(" / "),children:v.itemLabel},v.entityKey),v.trail.length>1&&T.jsx("span",{style:{opacity:.7},children:v.trail.map((x,E)=>T.jsx("a",{href:x.to,className:"btn btn-sm btn-link border-0",onClick:p,children:x.label},x.to+":"+E))}),"|"]})),T.jsx("button",{type:"button",className:"btn btn-sm btn-outline-danger border-0",onClick:c,children:"Vymazat"})]})}):null},Ox={},Ax=(n,o,c)=>{const s=o;!Ox[n]||c?Ox[n]=s:console.warn(`Link for typename ${n} is already registered.`)},Zh="/generic",qy=Zh+"/view/",zl=({item:n,action:o="view",children:c,...s})=>{const d=n!=null&&n.__typename?Ox[n.__typename]:null;if(d&&d!==zl)return T.jsx(d,{item:n,action:o,...s,children:c});const p=c||(n==null?void 0:n.fullname)||(n==null?void 0:n.name)||(n==null?void 0:n.id)||"Missing",y=n!=null&&n.__typename&&(n!=null&&n.id)?`${Zh}/${n.__typename}/${o}/${n.id}`:"#";return T.jsx(au,{to:y,...s,children:p})};function Ku(n){for(;n&&n.ofType;)n=n.ofType;return n}function Jh(n){if(!n)return"";const o=n.kind;return o==="NON_NULL"?Jh(n.ofType)+"!":o==="LIST"?"["+Jh(n.ofType)+"]":n.name||""}function o6(n,o){let c=[];return n.forEach(s=>{if(s.name==="where")c.push(`$${s.name}: ${Jh(s.type)}`);else{let d=Ku(s.type);if(d.kind==="INPUT_OBJECT"){let p=o[d.name];p&&p.inputFields?p.inputFields.forEach(y=>{c.push(`$${y.name}: ${Jh(y.type)}`)}):c.push(`$${s.name}: ${Jh(s.type)}`)}else c.push(`$${s.name}: ${Jh(s.type)}`)}}),c}function i6(n,o){let c=[];return n.forEach(s=>{if(s.name==="where")c.push(`${s.name}: $${s.name}`);else{let d=Ku(s.type);if(d.kind==="INPUT_OBJECT"){let p=o[d.name];if(p&&p.inputFields){let y=[];p.inputFields.forEach(x=>{y.push(`${x.name}: $${x.name}`)});let v="{"+y.join(", ")+"}";c.push(`${s.name}: ${v}`)}else c.push(`${s.name}: $${s.name}`)}else c.push(`${s.name}: $${s.name}`)}}),c.length>0?"("+c.join(", ")+")":""}function Yy(n){return n!=null&&n.endsWith("GQLModelUpdateError")?"Error":n!=null&&n.endsWith("GQLModel")?n==null?void 0:n.slice(0,-8):n}function r2(n){return n?n.kind==="NON_NULL"?!0:n.ofType?r2(n.ofType):!1:!1}function u6(n){return n.args&&n.args.some(o=>r2(o.type))}function Jb(n,o,c,s=0,d=2,p=1,y=" "){const v=Ku(n);if(v.kind==="UNION"){let E=v.possibleTypes;if(!E){const R=o[v.name];E=R?R.possibleTypes||[]:[]}let O=[];return E.forEach(R=>{const A=R.name;c[A]||Jb(R,o,c,s+1,d,p+1,y);const w=`... on ${A} { ...${Yy(A)} }`;O.push(y.repeat(p)+w)}),O.length>0?`{
|
|
473
|
+
`+O.join(`
|
|
474
|
+
`)+`
|
|
475
|
+
`+y.repeat(p-1)+"}":""}else if(v.kind!=="OBJECT")return"";if(s>=d)return"{ __typename, id }";const x=v.name;if(!c[x]){const E=o[x];let O="";if(!E||!E.fields)O="{ __typename, id }";else{let A=[];A.push(y.repeat(p)+"__typename"),E.fields.forEach(w=>{let j=y.repeat(p);if(w.args&&u6(w))j+="# "+w.name;else{const H=Ku(w.type),L=Yy(H.name||""),V=Yy(x);if(["OBJECT","UNION"].includes(H.kind))if(L===V){const J=[...A];J.includes("__typename")||J.unshift("__typename"),J.includes("id")||J.push("id"),j+=`${w.name} { ${J.join(`
|
|
476
|
+
`)} }`}else if(s+1<d){const J=Jb(w.type,o,c,s+1,d,p+1,y);j+=`${w.name} ${J}`}else j+=`${w.name} { __typename id }`;else j+=w.name}A.push(j)}),O=`{
|
|
477
|
+
`+A.join(`
|
|
478
|
+
`)+`
|
|
479
|
+
`+y.repeat(p-1)+"}"}const R=`fragment ${Yy(x)} on ${x} ${O}`;c[x]=R}return`{
|
|
480
|
+
`+y+`...${Yy(x)}
|
|
481
|
+
}`}function Cx(n,o,c="query",s=2){c==="mutation"&&(s=3);const d=n.args||[],p=o6(d,o);let y="";p.length>0&&(y="("+p.join(", ")+")");const v=i6(d,o);let x={},E="";const O=Ku(n.type);["OBJECT","UNION"].includes(O.kind)&&(E=Jb(n.type,o,x,0,s,1," "),E.trim().startsWith("{")||(E=`{
|
|
482
|
+
`+E.trim()+`
|
|
483
|
+
}`)),c==="mutation"&&!E&&(E="{ __typename, id }");let R=[];R.push(`${c} ${n.name}${y} {`),R.push(` ${n.name}${v} ${E}`),R.push("}");let A=R.join(`
|
|
484
|
+
`);if(Object.keys(x).length>0){const w=Object.keys(x).map(j=>x[j]).join(`
|
|
485
|
+
|
|
486
|
+
`);A+=`
|
|
487
|
+
|
|
488
|
+
`+w}return A}function c6(n,o,c=2){let s={},d=Jb({kind:"OBJECT",name:n},o,s,0,c,1," ");d.trim().startsWith("{")||(d=`{
|
|
489
|
+
`+d.trim()+`
|
|
490
|
+
}`);const p=[];p.push("query($representations: [_Any!]!) {"),p.push(" _entities(representations: $representations) {"),p.push(` ... on ${n} ${d}`),p.push(" }"),p.push("}");let y=p.join(`
|
|
491
|
+
`);if(Object.keys(s).length>0){const v=Object.values(s).join(`
|
|
492
|
+
|
|
493
|
+
`);y+=`
|
|
494
|
+
|
|
495
|
+
`+v}return y}function s6(n,o){const s=n.__schema.types,d={};for(const y of s)y.name.startsWith("__")||(d[y.name]=y);return c6(o,d)}function f6(n,o){const c=n.__schema,s=c.types,d={};for(const x of s)x.name.startsWith("__")||(d[x.name]=x);const p=c.queryType?c.queryType.name:null;c.mutationType&&c.mutationType.name;const v=d[p].fields.find(x=>{const E=x.type.kind,O=Ku(x.type);return E!=="NON_NULL"&&O.name===o&&x.name.endsWith("ById")});return v?Cx(v,d):null}function d6(n){if(!n)return!1;for(;n&&n.kind==="NON_NULL";)n=n.ofType;if(!n||n.kind!=="LIST")return!1;let o=n.ofType;for(;o&&o.kind==="NON_NULL";)o=o.ofType;return o.name}function h6(n,o){if(!n)return!1;for(;n&&n.kind==="NON_NULL";)n=n.ofType;if(!n||n.kind!=="LIST")return!1;let c=n.ofType;for(;c&&c.kind==="NON_NULL";)c=c.ofType;return!!c&&c.name===o}function p6(n,o){const c=n.__schema,s=c.types,d={};for(const x of s)x.name.startsWith("__")||(d[x.name]=x);const p=c.queryType?c.queryType.name:null,y=d[p];if(!(y!=null&&y.fields))return null;const v=y.fields.find(x=>{const E=Ku(x.type),O=(E==null?void 0:E.name)===o,R=h6(x.type,o);return O&&R});return v?Cx(v,d):null}function m6(n){const o=n.__schema,c=o.types,s={};for(const v of c)v.name.startsWith("__")||(s[v.name]=v);const d=o.queryType?o.queryType.name:null,p=s[d];return p!=null&&p.fields?p.fields.map(v=>d6(v.type)):null}function y6(n,o){const c=n.__schema,s=c.types,d={};for(const E of s)E.name.startsWith("__")||(d[E.name]=E);const p=c.mutationType?c.mutationType.name:null,y=p?d[p]:null;if(!(y!=null&&y.fields))return[];function v(E){if(!E)return[];if(E.possibleTypes&&E.possibleTypes.length)return E.possibleTypes;const O=d[E.name];return(O==null?void 0:O.possibleTypes)||[]}return y.fields.filter(E=>{const O=Ku(E.type),R=d[O==null?void 0:O.name];return(O==null?void 0:O.kind)==="UNION"||(R==null?void 0:R.kind)==="UNION"?v(O).some(j=>(j==null?void 0:j.name)===o):!1}).map(E=>{var O;return{name:E.name,returnUnion:(O=Ku(E.type))==null?void 0:O.name,query:Cx(E,d,"mutation")}})}const g6=(n,o)=>{const c=y6(n,o),s={};for(const d of c)s[d==null?void 0:d.name]=d==null?void 0:d.query;return s},Gn=(n,o=fL,...c)=>{var p;let s="";typeof n=="function"&&(s=(p=n==null?void 0:n.__metadata)==null?void 0:p.queryStr,n=n(),s=s||n),typeof o=="function"&&(c=[o,...c],o={}),c.forEach((y,v)=>{if(typeof y!="function")throw new Error(`createAsyncGraphQLAction: Middleware at index ${v} is not a function.`)});const d=(y,v)=>async(x,E,O=R=>R)=>{if(!v||typeof v.request!="function")throw new Error("createAsyncGraphQLAction2: missing GraphQL client (second argument AsyncAction(vars, client))");const R=await v.request({query:n,variables:{...o,...y}});try{return c.reduceRight((w,j)=>async H=>j(H)(x,E,w),O)(R)}catch(A){throw console.error("createAsyncGraphQLAction: Error during async action execution",A),x({type:"ASYNC_GRAPHQL_ACTION_GENERAL_ERROR",payload:A.message}),A}};return d.__metadata={queryStr:s,graphQLQuery:n},d},v6=(n,o)=>{if(n===o)return!0;if(!n||!o)return!1;const c=Object.keys(n),s=Object.keys(o);if(c.length!==s.length)return!1;for(const d of c)if(n[d]!==o[d])return!1;return!0},o2=(n,o)=>(c,s,d={})=>{const{deferred:p=!1,network:y=!0}=d,v=n(),x=zb(),[E,O]=D.useState(s||{});D.useEffect(()=>{const V=s||{};v6(V,E)||O(V)},[s]);const[R,A]=D.useState({loading:!p&&y,error:null,data:null}),w=E&&E.id,j=o(V=>w!=null?ZT(V,w):null),H=D.useRef(new Map),L=D.useCallback(V=>{if(!y||!c)return Promise.resolve(null);const J=V===void 0?E:{...E||{},...V},F=JSON.stringify(J),K=H.current.get(F);if(K)return K;A(P=>({...P,loading:!0,error:null}));const k=v(c(J,x)).then(P=>(A({loading:!1,error:null,data:P}),P)).catch(P=>{throw A({loading:!1,error:P,data:null}),P}).finally(()=>{H.current.delete(F)});return H.current.set(F,k),k},[c,x,v,y,E]);return D.useEffect(()=>{!p&&y&&L()},[p,y,L]),{loading:R.loading,error:R.error,data:R.data,entity:j,run:L}},b6=((n=()=>({}),o=void 0)=>{const c=s=>typeof s=="function"?Promise.resolve(s(c,n,o)):Promise.resolve(s);return c})(),E6=()=>b6,S6=()=>null,Dx=o2(xT,TT),i2=o2(E6,S6),T6=Gn(LC),wx=n=>{const{loading:o,error:c,data:s}=i2(T6),[d,p]=D.useState(null),[y,v]=D.useState(null),[x,E]=D.useState(null),[O,R]=D.useState(null),[A,w]=D.useState(null),[j,H]=D.useState(null);return D.useEffect(()=>{if(s){const L=s.data,V=f6(L,n),J=s6(L,n),F=Gn(J),K=({id:ae},$)=>{const Se=[{__typename:n,id:ae}];return console.log("entityquerydef",Se,J),F({representations:Se},$)},k=p6(L,n);w(()=>k);const P=g6(L,n);H(()=>P),p(()=>V),E(()=>V?Gn(V):K),R(()=>Gn(k)),v(()=>K)}},[s,n]),{loading:o,error:c,introspection:s==null?void 0:s.data,queryById:d,ByIdAsyncAction:x,EntityAsyncAction:y,queryVector:A,PageAsyncAction:O,mutations:j}};function Ti(...n){return n.flat(1/0).filter(Boolean).join(" ")}const u2={grid:{container:(...n)=>Ti("container",n),containerFluid:(...n)=>Ti("container-fluid",n),row:(n={},...o)=>{const{g:c,gx:s,gy:d,align:p,justify:y}=n||{};return Ti("row",c!=null&&`g-${c}`,s!=null&&`gx-${s}`,d!=null&&`gy-${d}`,p&&`align-items-${p}`,y&&`justify-content-${y}`,o)},col:(n={},...o)=>{const c=["","sm","md","lg","xl","xxl"],s=[];for(const d of c){const p=d===""?"xs":d,y=n==null?void 0:n[p];if(y==null)continue;const v=d===""?"col":`col-${d}`;y===!0?s.push(v):s.push(`${v}-${y}`)}return s.length===0&&s.push("col"),Ti(s,o)}}};function Qt({className:n,classNames:o,xs:c,sm:s,md:d,lg:p,xl:y,xxl:v,as:x="div",...E}){return T.jsx(x,{...E,className:Ti("Col",u2.grid.col({xs:c,sm:s,md:d,lg:p,xl:y,xxl:v}),n,o==null?void 0:o.root)})}const Mx=({children:n,...o})=>T.jsx(Qt,{xl:3,md:12,className:"LeftColumn",...o,children:n}),jx=({children:n,...o})=>T.jsx(Qt,{xl:9,md:12,className:"MiddleColumn",...o,children:n});function va({className:n,classNames:o,g:c,gx:s,gy:d,align:p,justify:y,as:v="div",...x}){return T.jsx(v,{...x,className:Ti("Row",u2.grid.row({g:c,gx:s,gy:d,align:p,justify:y}),n,o==null?void 0:o.root)})}const lu=({id:n,header:o,title:c,children:s,className:d,style:p,...y})=>{const v=c||o;return T.jsxs("div",{id:n,className:Ti("CardCapsule","card","position-relative","my-3",d),style:p,...y,children:[v&&T.jsx("span",{className:Ti("CardCapsule__title","position-absolute","top-0","start-0","translate-middle-y","ms-3","px-2","bg-white","text-uppercase","fw-bold","text-muted"),children:v}),T.jsx("div",{className:Ti("CardCapsule__body","card-body"),children:T.jsx("div",{className:Ti("CardCapsule__content","text-start"),children:s})})]})},Qa=lu,c2=({children:n,className:o,...c})=>T.jsx("span",{className:Ti("CardCapsule__corner","position-absolute","top-0","end-0","translate-middle-y","me-3","px-2","bg-white","text-muted",o),...c,children:n}),Nx=n=>{const o=n instanceof Date?n:new Date(n);return Number.isNaN(o.getTime())?String(n):new Intl.DateTimeFormat("cs-CZ",{dateStyle:"medium",timeStyle:"short"}).format(o)},hs=({item:n,label:o,attribute_name:c,attribute_value:s,children:d})=>{const p=s??(n==null?void 0:n[c]),v=d||(x=>x==null?"":typeof x=="boolean"?x?"Ano":"Ne":x instanceof Date?Nx(x):typeof x=="string"?x.includes("T")?Nx(x):x:typeof x=="object"?T.jsx("pre",{className:"mb-0",children:JSON.stringify(x,null,2)}):String(x))(p);return T.jsx(va,{className:"Attribute_Row",children:o?T.jsxs(T.Fragment,{children:[T.jsx(Qt,{md:4,xs:12,className:"Attribute_Col_Label",children:T.jsx("b",{children:o})}),T.jsx(Qt,{md:8,xs:12,className:"Attribute_Col_Value",children:v})]}):T.jsx(Qt,{md:12,className:"Attribute_Col_Value",children:v})})},s2=({datarow:n={},name:o})=>{const c=(n==null?void 0:n[o])||"";if(o==="id")return T.jsx(hs,{item:n,label:o,attribute_name:o,children:T.jsx(zl,{item:n,children:(n==null?void 0:n.id)||"Data Error"})});if(["name","surname","fullname"].includes(o))return T.jsx(hs,{item:n,label:o,attribute_name:o,children:T.jsx(zl,{item:n,children:c})});if(o.indexOf("Id")===-1)return typeof c=="object"?null:T.jsx(hs,{item:n,label:o,attribute_name:o,attribute_value_result:c||""});const d=o.replace("Id",""),{id:p,__typename:y}=(n==null?void 0:n[d])||{};if(p&&y)return T.jsx(hs,{item:n,label:o,attribute_name:o,children:T.jsx(zl,{item:n==null?void 0:n[d],children:p})})},Fb=({item:n,children:o})=>T.jsxs(T.Fragment,{children:[Object.entries(n).map(([c,s])=>Array.isArray(s)?null:s?T.jsx(s2,{datarow:n,name:c},c):null),Object.entries(n).map(([c,s])=>s!==null||s?null:T.jsx(s2,{datarow:n,name:c},c)),o]}),f2=({header:n,item:o,children:c})=>T.jsxs(Qa,{header:n||T.jsx(zl,{item:o}),item:o,children:[T.jsx(Fb,{item:o}),c,T.jsx("hr",{}),Object.entries(o).map(([s,d])=>Array.isArray(d)?null:typeof d=="object"&&d!==null?T.jsxs(zl,{item:d,children:[T.jsxs("b",{children:[s," ",JSON.stringify({})]}),T.jsx("br",{})]}):null),T.jsx("hr",{}),Object.entries(o).map(([s,d])=>Array.isArray(d)?T.jsxs(zl,{item:o,action:s,children:[T.jsxs("b",{children:[s," []"]}),T.jsx("br",{})]}):null)]}),zx=({item:n,children:o})=>T.jsxs(va,{children:[T.jsx(Qt,{className:"col-3",children:T.jsx(f2,{item:n,children:T.jsx(c2,{children:T.jsx(zl,{className:"btn btn-sm border-0",item:n,action:"__def",children:"Definice"})})})}),T.jsx(Qt,{className:"col-9",children:o})]});function Ux(n,o){if(!!!n)throw new Error(o)}function x6(n){return typeof n=="object"&&n!==null}function _6(n,o){if(!!!n)throw new Error("Unexpected invariant triggered.")}const R6=/\r\n|[\n\r]/g;function Lx(n,o){let c=0,s=1;for(const d of n.body.matchAll(R6)){if(typeof d.index=="number"||_6(!1),d.index>=o)break;c=d.index+d[0].length,s+=1}return{line:s,column:o+1-c}}function O6(n){return d2(n.source,Lx(n.source,n.start))}function d2(n,o){const c=n.locationOffset.column-1,s="".padStart(c)+n.body,d=o.line-1,p=n.locationOffset.line-1,y=o.line+p,v=o.line===1?c:0,x=o.column+v,E=`${n.name}:${y}:${x}
|
|
496
|
+
`,O=s.split(/\r\n|[\n\r]/g),R=O[d];if(R.length>120){const A=Math.floor(x/80),w=x%80,j=[];for(let H=0;H<R.length;H+=80)j.push(R.slice(H,H+80));return E+h2([[`${y} |`,j[0]],...j.slice(1,A+1).map(H=>["|",H]),["|","^".padStart(w)],["|",j[A+1]]])}return E+h2([[`${y-1} |`,O[d-1]],[`${y} |`,R],["|","^".padStart(x)],[`${y+1} |`,O[d+1]]])}function h2(n){const o=n.filter(([s,d])=>d!==void 0),c=Math.max(...o.map(([s])=>s.length));return o.map(([s,d])=>s.padStart(c)+(d?" "+d:"")).join(`
|
|
497
|
+
`)}function A6(n){const o=n[0];return o==null||"kind"in o||"length"in o?{nodes:o,source:n[1],positions:n[2],path:n[3],originalError:n[4],extensions:n[5]}:o}class Bx extends Error{constructor(o,...c){var s,d,p;const{nodes:y,source:v,positions:x,path:E,originalError:O,extensions:R}=A6(c);super(o),this.name="GraphQLError",this.path=E??void 0,this.originalError=O??void 0,this.nodes=p2(Array.isArray(y)?y:y?[y]:void 0);const A=p2((s=this.nodes)===null||s===void 0?void 0:s.map(j=>j.loc).filter(j=>j!=null));this.source=v??(A==null||(d=A[0])===null||d===void 0?void 0:d.source),this.positions=x??(A==null?void 0:A.map(j=>j.start)),this.locations=x&&v?x.map(j=>Lx(v,j)):A==null?void 0:A.map(j=>Lx(j.source,j.start));const w=x6(O==null?void 0:O.extensions)?O==null?void 0:O.extensions:void 0;this.extensions=(p=R??w)!==null&&p!==void 0?p:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),O!=null&&O.stack?Object.defineProperty(this,"stack",{value:O.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Bx):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let o=this.message;if(this.nodes)for(const c of this.nodes)c.loc&&(o+=`
|
|
498
|
+
|
|
499
|
+
`+O6(c.loc));else if(this.source&&this.locations)for(const c of this.locations)o+=`
|
|
500
|
+
|
|
501
|
+
`+d2(this.source,c);return o}toJSON(){const o={message:this.message};return this.locations!=null&&(o.locations=this.locations),this.path!=null&&(o.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(o.extensions=this.extensions),o}}function p2(n){return n===void 0||n.length===0?void 0:n}function Xa(n,o,c){return new Bx(`Syntax Error: ${c}`,{source:n,positions:[o]})}class C6{constructor(o,c,s){this.start=o.start,this.end=c.end,this.startToken=o,this.endToken=c,this.source=s}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class m2{constructor(o,c,s,d,p,y){this.kind=o,this.start=c,this.end=s,this.line=d,this.column=p,this.value=y,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const D6={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};new Set(Object.keys(D6));var Fh;(function(n){n.QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription"})(Fh||(Fh={}));var Hx;(function(n){n.QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Hx||(Hx={}));var dt;(function(n){n.NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.VARIABLE="Variable",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition",n.SCHEMA_EXTENSION="SchemaExtension",n.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",n.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",n.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",n.UNION_TYPE_EXTENSION="UnionTypeExtension",n.ENUM_TYPE_EXTENSION="EnumTypeExtension",n.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",n.TYPE_COORDINATE="TypeCoordinate",n.MEMBER_COORDINATE="MemberCoordinate",n.ARGUMENT_COORDINATE="ArgumentCoordinate",n.DIRECTIVE_COORDINATE="DirectiveCoordinate",n.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(dt||(dt={}));function w6(n){return n===9||n===32}function Qy(n){return n>=48&&n<=57}function y2(n){return n>=97&&n<=122||n>=65&&n<=90}function g2(n){return y2(n)||n===95}function M6(n){return y2(n)||Qy(n)||n===95}function j6(n){var o;let c=Number.MAX_SAFE_INTEGER,s=null,d=-1;for(let y=0;y<n.length;++y){var p;const v=n[y],x=N6(v);x!==v.length&&(s=(p=s)!==null&&p!==void 0?p:y,d=y,y!==0&&x<c&&(c=x))}return n.map((y,v)=>v===0?y:y.slice(c)).slice((o=s)!==null&&o!==void 0?o:0,d+1)}function N6(n){let o=0;for(;o<n.length&&w6(n.charCodeAt(o));)++o;return o}var Ae;(function(n){n.SOF="<SOF>",n.EOF="<EOF>",n.BANG="!",n.DOLLAR="$",n.AMP="&",n.PAREN_L="(",n.PAREN_R=")",n.DOT=".",n.SPREAD="...",n.COLON=":",n.EQUALS="=",n.AT="@",n.BRACKET_L="[",n.BRACKET_R="]",n.BRACE_L="{",n.PIPE="|",n.BRACE_R="}",n.NAME="Name",n.INT="Int",n.FLOAT="Float",n.STRING="String",n.BLOCK_STRING="BlockString",n.COMMENT="Comment"})(Ae||(Ae={}));class z6{constructor(o){const c=new m2(Ae.SOF,0,0,0,0);this.source=o,this.lastToken=c,this.token=c,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let o=this.token;if(o.kind!==Ae.EOF)do if(o.next)o=o.next;else{const c=L6(this,o.end);o.next=c,c.prev=o,o=c}while(o.kind===Ae.COMMENT);return o}}function U6(n){return n===Ae.BANG||n===Ae.DOLLAR||n===Ae.AMP||n===Ae.PAREN_L||n===Ae.PAREN_R||n===Ae.DOT||n===Ae.SPREAD||n===Ae.COLON||n===Ae.EQUALS||n===Ae.AT||n===Ae.BRACKET_L||n===Ae.BRACKET_R||n===Ae.BRACE_L||n===Ae.PIPE||n===Ae.BRACE_R}function Kh(n){return n>=0&&n<=55295||n>=57344&&n<=1114111}function Kb(n,o){return v2(n.charCodeAt(o))&&b2(n.charCodeAt(o+1))}function v2(n){return n>=55296&&n<=56319}function b2(n){return n>=56320&&n<=57343}function Zf(n,o){const c=n.source.body.codePointAt(o);if(c===void 0)return Ae.EOF;if(c>=32&&c<=126){const s=String.fromCodePoint(c);return s==='"'?`'"'`:`"${s}"`}return"U+"+c.toString(16).toUpperCase().padStart(4,"0")}function Ca(n,o,c,s,d){const p=n.line,y=1+c-n.lineStart;return new m2(o,c,s,p,y,d)}function L6(n,o){const c=n.source.body,s=c.length;let d=o;for(;d<s;){const p=c.charCodeAt(d);switch(p){case 65279:case 9:case 32:case 44:++d;continue;case 10:++d,++n.line,n.lineStart=d;continue;case 13:c.charCodeAt(d+1)===10?d+=2:++d,++n.line,n.lineStart=d;continue;case 35:return B6(n,d);case 33:return Ca(n,Ae.BANG,d,d+1);case 36:return Ca(n,Ae.DOLLAR,d,d+1);case 38:return Ca(n,Ae.AMP,d,d+1);case 40:return Ca(n,Ae.PAREN_L,d,d+1);case 41:return Ca(n,Ae.PAREN_R,d,d+1);case 46:if(c.charCodeAt(d+1)===46&&c.charCodeAt(d+2)===46)return Ca(n,Ae.SPREAD,d,d+3);break;case 58:return Ca(n,Ae.COLON,d,d+1);case 61:return Ca(n,Ae.EQUALS,d,d+1);case 64:return Ca(n,Ae.AT,d,d+1);case 91:return Ca(n,Ae.BRACKET_L,d,d+1);case 93:return Ca(n,Ae.BRACKET_R,d,d+1);case 123:return Ca(n,Ae.BRACE_L,d,d+1);case 124:return Ca(n,Ae.PIPE,d,d+1);case 125:return Ca(n,Ae.BRACE_R,d,d+1);case 34:return c.charCodeAt(d+1)===34&&c.charCodeAt(d+2)===34?q6(n,d):$6(n,d)}if(Qy(p)||p===45)return H6(n,d,p);if(g2(p))return Y6(n,d);throw Xa(n.source,d,p===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Kh(p)||Kb(c,d)?`Unexpected character: ${Zf(n,d)}.`:`Invalid character: ${Zf(n,d)}.`)}return Ca(n,Ae.EOF,s,s)}function B6(n,o){const c=n.source.body,s=c.length;let d=o+1;for(;d<s;){const p=c.charCodeAt(d);if(p===10||p===13)break;if(Kh(p))++d;else if(Kb(c,d))d+=2;else break}return Ca(n,Ae.COMMENT,o,d,c.slice(o+1,d))}function H6(n,o,c){const s=n.source.body;let d=o,p=c,y=!1;if(p===45&&(p=s.charCodeAt(++d)),p===48){if(p=s.charCodeAt(++d),Qy(p))throw Xa(n.source,d,`Invalid number, unexpected digit after 0: ${Zf(n,d)}.`)}else d=$x(n,d,p),p=s.charCodeAt(d);if(p===46&&(y=!0,p=s.charCodeAt(++d),d=$x(n,d,p),p=s.charCodeAt(d)),(p===69||p===101)&&(y=!0,p=s.charCodeAt(++d),(p===43||p===45)&&(p=s.charCodeAt(++d)),d=$x(n,d,p),p=s.charCodeAt(d)),p===46||g2(p))throw Xa(n.source,d,`Invalid number, expected digit but got: ${Zf(n,d)}.`);return Ca(n,y?Ae.FLOAT:Ae.INT,o,d,s.slice(o,d))}function $x(n,o,c){if(!Qy(c))throw Xa(n.source,o,`Invalid number, expected digit but got: ${Zf(n,o)}.`);const s=n.source.body;let d=o+1;for(;Qy(s.charCodeAt(d));)++d;return d}function $6(n,o){const c=n.source.body,s=c.length;let d=o+1,p=d,y="";for(;d<s;){const v=c.charCodeAt(d);if(v===34)return y+=c.slice(p,d),Ca(n,Ae.STRING,o,d+1,y);if(v===92){y+=c.slice(p,d);const x=c.charCodeAt(d+1)===117?c.charCodeAt(d+2)===123?V6(n,d):k6(n,d):G6(n,d);y+=x.value,d+=x.size,p=d;continue}if(v===10||v===13)break;if(Kh(v))++d;else if(Kb(c,d))d+=2;else throw Xa(n.source,d,`Invalid character within String: ${Zf(n,d)}.`)}throw Xa(n.source,d,"Unterminated string.")}function V6(n,o){const c=n.source.body;let s=0,d=3;for(;d<12;){const p=c.charCodeAt(o+d++);if(p===125){if(d<5||!Kh(s))break;return{value:String.fromCodePoint(s),size:d}}if(s=s<<4|Xy(p),s<0)break}throw Xa(n.source,o,`Invalid Unicode escape sequence: "${c.slice(o,o+d)}".`)}function k6(n,o){const c=n.source.body,s=E2(c,o+2);if(Kh(s))return{value:String.fromCodePoint(s),size:6};if(v2(s)&&c.charCodeAt(o+6)===92&&c.charCodeAt(o+7)===117){const d=E2(c,o+8);if(b2(d))return{value:String.fromCodePoint(s,d),size:12}}throw Xa(n.source,o,`Invalid Unicode escape sequence: "${c.slice(o,o+6)}".`)}function E2(n,o){return Xy(n.charCodeAt(o))<<12|Xy(n.charCodeAt(o+1))<<8|Xy(n.charCodeAt(o+2))<<4|Xy(n.charCodeAt(o+3))}function Xy(n){return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:-1}function G6(n,o){const c=n.source.body;switch(c.charCodeAt(o+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
502
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Xa(n.source,o,`Invalid character escape sequence: "${c.slice(o,o+2)}".`)}function q6(n,o){const c=n.source.body,s=c.length;let d=n.lineStart,p=o+3,y=p,v="";const x=[];for(;p<s;){const E=c.charCodeAt(p);if(E===34&&c.charCodeAt(p+1)===34&&c.charCodeAt(p+2)===34){v+=c.slice(y,p),x.push(v);const O=Ca(n,Ae.BLOCK_STRING,o,p+3,j6(x).join(`
|
|
503
|
+
`));return n.line+=x.length-1,n.lineStart=d,O}if(E===92&&c.charCodeAt(p+1)===34&&c.charCodeAt(p+2)===34&&c.charCodeAt(p+3)===34){v+=c.slice(y,p),y=p+1,p+=4;continue}if(E===10||E===13){v+=c.slice(y,p),x.push(v),E===13&&c.charCodeAt(p+1)===10?p+=2:++p,v="",y=p,d=p;continue}if(Kh(E))++p;else if(Kb(c,p))p+=2;else throw Xa(n.source,p,`Invalid character within String: ${Zf(n,p)}.`)}throw Xa(n.source,p,"Unterminated string.")}function Y6(n,o){const c=n.source.body,s=c.length;let d=o+1;for(;d<s;){const p=c.charCodeAt(d);if(M6(p))++d;else break}return Ca(n,Ae.NAME,o,d,c.slice(o,d))}const Q6=10,S2=2;function T2(n){return Pb(n,[])}function Pb(n,o){switch(typeof n){case"string":return JSON.stringify(n);case"function":return n.name?`[function ${n.name}]`:"[function]";case"object":return X6(n,o);default:return String(n)}}function X6(n,o){if(n===null)return"null";if(o.includes(n))return"[Circular]";const c=[...o,n];if(I6(n)){const s=n.toJSON();if(s!==n)return typeof s=="string"?s:Pb(s,c)}else if(Array.isArray(n))return J6(n,c);return Z6(n,c)}function I6(n){return typeof n.toJSON=="function"}function Z6(n,o){const c=Object.entries(n);return c.length===0?"{}":o.length>S2?"["+F6(n)+"]":"{ "+c.map(([d,p])=>d+": "+Pb(p,o)).join(", ")+" }"}function J6(n,o){if(n.length===0)return"[]";if(o.length>S2)return"[Array]";const c=Math.min(Q6,n.length),s=n.length-c,d=[];for(let p=0;p<c;++p)d.push(Pb(n[p],o));return s===1?d.push("... 1 more item"):s>1&&d.push(`... ${s} more items`),"["+d.join(", ")+"]"}function F6(n){const o=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if(o==="Object"&&typeof n.constructor=="function"){const c=n.constructor.name;if(typeof c=="string"&&c!=="")return c}return o}const K6=globalThis.process&&process.env.NODE_ENV==="production"?function(o,c){return o instanceof c}:function(o,c){if(o instanceof c)return!0;if(typeof o=="object"&&o!==null){var s;const d=c.prototype[Symbol.toStringTag],p=Symbol.toStringTag in o?o[Symbol.toStringTag]:(s=o.constructor)===null||s===void 0?void 0:s.name;if(d===p){const y=T2(o);throw new Error(`Cannot use ${d} "${y}" from another module or realm.
|
|
504
|
+
|
|
505
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
506
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
507
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
508
|
+
|
|
509
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
510
|
+
|
|
511
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
512
|
+
versions may have different capabilities and behavior. The data from one
|
|
513
|
+
version used in the function from another could produce confusing and
|
|
514
|
+
spurious results.`)}}return!1};class x2{constructor(o,c="GraphQL request",s={line:1,column:1}){typeof o=="string"||Ux(!1,`Body must be a string. Received: ${T2(o)}.`),this.body=o,this.name=c,this.locationOffset=s,this.locationOffset.line>0||Ux(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ux(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function P6(n){return K6(n,x2)}function W6(n,o){const c=new e5(n,o),s=c.parseDocument();return Object.defineProperty(s,"tokenCount",{enumerable:!1,value:c.tokenCount}),s}class e5{constructor(o,c={}){const{lexer:s,...d}=c;if(s)this._lexer=s;else{const p=P6(o)?o:new x2(o);this._lexer=new z6(p)}this._options=d,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const o=this.expectToken(Ae.NAME);return this.node(o,{kind:dt.NAME,value:o.value})}parseDocument(){return this.node(this._lexer.token,{kind:dt.DOCUMENT,definitions:this.many(Ae.SOF,this.parseDefinition,Ae.EOF)})}parseDefinition(){if(this.peek(Ae.BRACE_L))return this.parseOperationDefinition();const o=this.peekDescription(),c=o?this._lexer.lookahead():this._lexer.token;if(o&&c.kind===Ae.BRACE_L)throw Xa(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(c.kind===Ae.NAME){switch(c.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(c.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(o)throw Xa(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(c.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(c)}parseOperationDefinition(){const o=this._lexer.token;if(this.peek(Ae.BRACE_L))return this.node(o,{kind:dt.OPERATION_DEFINITION,operation:Fh.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const c=this.parseDescription(),s=this.parseOperationType();let d;return this.peek(Ae.NAME)&&(d=this.parseName()),this.node(o,{kind:dt.OPERATION_DEFINITION,operation:s,description:c,name:d,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const o=this.expectToken(Ae.NAME);switch(o.value){case"query":return Fh.QUERY;case"mutation":return Fh.MUTATION;case"subscription":return Fh.SUBSCRIPTION}throw this.unexpected(o)}parseVariableDefinitions(){return this.optionalMany(Ae.PAREN_L,this.parseVariableDefinition,Ae.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:dt.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Ae.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ae.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const o=this._lexer.token;return this.expectToken(Ae.DOLLAR),this.node(o,{kind:dt.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:dt.SELECTION_SET,selections:this.many(Ae.BRACE_L,this.parseSelection,Ae.BRACE_R)})}parseSelection(){return this.peek(Ae.SPREAD)?this.parseFragment():this.parseField()}parseField(){const o=this._lexer.token,c=this.parseName();let s,d;return this.expectOptionalToken(Ae.COLON)?(s=c,d=this.parseName()):d=c,this.node(o,{kind:dt.FIELD,alias:s,name:d,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ae.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(o){const c=o?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ae.PAREN_L,c,Ae.PAREN_R)}parseArgument(o=!1){const c=this._lexer.token,s=this.parseName();return this.expectToken(Ae.COLON),this.node(c,{kind:dt.ARGUMENT,name:s,value:this.parseValueLiteral(o)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const o=this._lexer.token;this.expectToken(Ae.SPREAD);const c=this.expectOptionalKeyword("on");return!c&&this.peek(Ae.NAME)?this.node(o,{kind:dt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(o,{kind:dt.INLINE_FRAGMENT,typeCondition:c?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const o=this._lexer.token,c=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(o,{kind:dt.FRAGMENT_DEFINITION,description:c,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(o,{kind:dt.FRAGMENT_DEFINITION,description:c,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(o){const c=this._lexer.token;switch(c.kind){case Ae.BRACKET_L:return this.parseList(o);case Ae.BRACE_L:return this.parseObject(o);case Ae.INT:return this.advanceLexer(),this.node(c,{kind:dt.INT,value:c.value});case Ae.FLOAT:return this.advanceLexer(),this.node(c,{kind:dt.FLOAT,value:c.value});case Ae.STRING:case Ae.BLOCK_STRING:return this.parseStringLiteral();case Ae.NAME:switch(this.advanceLexer(),c.value){case"true":return this.node(c,{kind:dt.BOOLEAN,value:!0});case"false":return this.node(c,{kind:dt.BOOLEAN,value:!1});case"null":return this.node(c,{kind:dt.NULL});default:return this.node(c,{kind:dt.ENUM,value:c.value})}case Ae.DOLLAR:if(o)if(this.expectToken(Ae.DOLLAR),this._lexer.token.kind===Ae.NAME){const s=this._lexer.token.value;throw Xa(this._lexer.source,c.start,`Unexpected variable "$${s}" in constant value.`)}else throw this.unexpected(c);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const o=this._lexer.token;return this.advanceLexer(),this.node(o,{kind:dt.STRING,value:o.value,block:o.kind===Ae.BLOCK_STRING})}parseList(o){const c=()=>this.parseValueLiteral(o);return this.node(this._lexer.token,{kind:dt.LIST,values:this.any(Ae.BRACKET_L,c,Ae.BRACKET_R)})}parseObject(o){const c=()=>this.parseObjectField(o);return this.node(this._lexer.token,{kind:dt.OBJECT,fields:this.any(Ae.BRACE_L,c,Ae.BRACE_R)})}parseObjectField(o){const c=this._lexer.token,s=this.parseName();return this.expectToken(Ae.COLON),this.node(c,{kind:dt.OBJECT_FIELD,name:s,value:this.parseValueLiteral(o)})}parseDirectives(o){const c=[];for(;this.peek(Ae.AT);)c.push(this.parseDirective(o));return c}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(o){const c=this._lexer.token;return this.expectToken(Ae.AT),this.node(c,{kind:dt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(o)})}parseTypeReference(){const o=this._lexer.token;let c;if(this.expectOptionalToken(Ae.BRACKET_L)){const s=this.parseTypeReference();this.expectToken(Ae.BRACKET_R),c=this.node(o,{kind:dt.LIST_TYPE,type:s})}else c=this.parseNamedType();return this.expectOptionalToken(Ae.BANG)?this.node(o,{kind:dt.NON_NULL_TYPE,type:c}):c}parseNamedType(){return this.node(this._lexer.token,{kind:dt.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ae.STRING)||this.peek(Ae.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("schema");const s=this.parseConstDirectives(),d=this.many(Ae.BRACE_L,this.parseOperationTypeDefinition,Ae.BRACE_R);return this.node(o,{kind:dt.SCHEMA_DEFINITION,description:c,directives:s,operationTypes:d})}parseOperationTypeDefinition(){const o=this._lexer.token,c=this.parseOperationType();this.expectToken(Ae.COLON);const s=this.parseNamedType();return this.node(o,{kind:dt.OPERATION_TYPE_DEFINITION,operation:c,type:s})}parseScalarTypeDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("scalar");const s=this.parseName(),d=this.parseConstDirectives();return this.node(o,{kind:dt.SCALAR_TYPE_DEFINITION,description:c,name:s,directives:d})}parseObjectTypeDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("type");const s=this.parseName(),d=this.parseImplementsInterfaces(),p=this.parseConstDirectives(),y=this.parseFieldsDefinition();return this.node(o,{kind:dt.OBJECT_TYPE_DEFINITION,description:c,name:s,interfaces:d,directives:p,fields:y})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Ae.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ae.BRACE_L,this.parseFieldDefinition,Ae.BRACE_R)}parseFieldDefinition(){const o=this._lexer.token,c=this.parseDescription(),s=this.parseName(),d=this.parseArgumentDefs();this.expectToken(Ae.COLON);const p=this.parseTypeReference(),y=this.parseConstDirectives();return this.node(o,{kind:dt.FIELD_DEFINITION,description:c,name:s,arguments:d,type:p,directives:y})}parseArgumentDefs(){return this.optionalMany(Ae.PAREN_L,this.parseInputValueDef,Ae.PAREN_R)}parseInputValueDef(){const o=this._lexer.token,c=this.parseDescription(),s=this.parseName();this.expectToken(Ae.COLON);const d=this.parseTypeReference();let p;this.expectOptionalToken(Ae.EQUALS)&&(p=this.parseConstValueLiteral());const y=this.parseConstDirectives();return this.node(o,{kind:dt.INPUT_VALUE_DEFINITION,description:c,name:s,type:d,defaultValue:p,directives:y})}parseInterfaceTypeDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("interface");const s=this.parseName(),d=this.parseImplementsInterfaces(),p=this.parseConstDirectives(),y=this.parseFieldsDefinition();return this.node(o,{kind:dt.INTERFACE_TYPE_DEFINITION,description:c,name:s,interfaces:d,directives:p,fields:y})}parseUnionTypeDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("union");const s=this.parseName(),d=this.parseConstDirectives(),p=this.parseUnionMemberTypes();return this.node(o,{kind:dt.UNION_TYPE_DEFINITION,description:c,name:s,directives:d,types:p})}parseUnionMemberTypes(){return this.expectOptionalToken(Ae.EQUALS)?this.delimitedMany(Ae.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("enum");const s=this.parseName(),d=this.parseConstDirectives(),p=this.parseEnumValuesDefinition();return this.node(o,{kind:dt.ENUM_TYPE_DEFINITION,description:c,name:s,directives:d,values:p})}parseEnumValuesDefinition(){return this.optionalMany(Ae.BRACE_L,this.parseEnumValueDefinition,Ae.BRACE_R)}parseEnumValueDefinition(){const o=this._lexer.token,c=this.parseDescription(),s=this.parseEnumValueName(),d=this.parseConstDirectives();return this.node(o,{kind:dt.ENUM_VALUE_DEFINITION,description:c,name:s,directives:d})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Xa(this._lexer.source,this._lexer.token.start,`${Wb(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("input");const s=this.parseName(),d=this.parseConstDirectives(),p=this.parseInputFieldsDefinition();return this.node(o,{kind:dt.INPUT_OBJECT_TYPE_DEFINITION,description:c,name:s,directives:d,fields:p})}parseInputFieldsDefinition(){return this.optionalMany(Ae.BRACE_L,this.parseInputValueDef,Ae.BRACE_R)}parseTypeSystemExtension(){const o=this._lexer.lookahead();if(o.kind===Ae.NAME)switch(o.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(o)}parseSchemaExtension(){const o=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const c=this.parseConstDirectives(),s=this.optionalMany(Ae.BRACE_L,this.parseOperationTypeDefinition,Ae.BRACE_R);if(c.length===0&&s.length===0)throw this.unexpected();return this.node(o,{kind:dt.SCHEMA_EXTENSION,directives:c,operationTypes:s})}parseScalarTypeExtension(){const o=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const c=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(o,{kind:dt.SCALAR_TYPE_EXTENSION,name:c,directives:s})}parseObjectTypeExtension(){const o=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const c=this.parseName(),s=this.parseImplementsInterfaces(),d=this.parseConstDirectives(),p=this.parseFieldsDefinition();if(s.length===0&&d.length===0&&p.length===0)throw this.unexpected();return this.node(o,{kind:dt.OBJECT_TYPE_EXTENSION,name:c,interfaces:s,directives:d,fields:p})}parseInterfaceTypeExtension(){const o=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const c=this.parseName(),s=this.parseImplementsInterfaces(),d=this.parseConstDirectives(),p=this.parseFieldsDefinition();if(s.length===0&&d.length===0&&p.length===0)throw this.unexpected();return this.node(o,{kind:dt.INTERFACE_TYPE_EXTENSION,name:c,interfaces:s,directives:d,fields:p})}parseUnionTypeExtension(){const o=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const c=this.parseName(),s=this.parseConstDirectives(),d=this.parseUnionMemberTypes();if(s.length===0&&d.length===0)throw this.unexpected();return this.node(o,{kind:dt.UNION_TYPE_EXTENSION,name:c,directives:s,types:d})}parseEnumTypeExtension(){const o=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const c=this.parseName(),s=this.parseConstDirectives(),d=this.parseEnumValuesDefinition();if(s.length===0&&d.length===0)throw this.unexpected();return this.node(o,{kind:dt.ENUM_TYPE_EXTENSION,name:c,directives:s,values:d})}parseInputObjectTypeExtension(){const o=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const c=this.parseName(),s=this.parseConstDirectives(),d=this.parseInputFieldsDefinition();if(s.length===0&&d.length===0)throw this.unexpected();return this.node(o,{kind:dt.INPUT_OBJECT_TYPE_EXTENSION,name:c,directives:s,fields:d})}parseDirectiveDefinition(){const o=this._lexer.token,c=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ae.AT);const s=this.parseName(),d=this.parseArgumentDefs(),p=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const y=this.parseDirectiveLocations();return this.node(o,{kind:dt.DIRECTIVE_DEFINITION,description:c,name:s,arguments:d,repeatable:p,locations:y})}parseDirectiveLocations(){return this.delimitedMany(Ae.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const o=this._lexer.token,c=this.parseName();if(Object.prototype.hasOwnProperty.call(Hx,c.value))return c;throw this.unexpected(o)}parseSchemaCoordinate(){const o=this._lexer.token,c=this.expectOptionalToken(Ae.AT),s=this.parseName();let d;!c&&this.expectOptionalToken(Ae.DOT)&&(d=this.parseName());let p;return(c||d)&&this.expectOptionalToken(Ae.PAREN_L)&&(p=this.parseName(),this.expectToken(Ae.COLON),this.expectToken(Ae.PAREN_R)),c?p?this.node(o,{kind:dt.DIRECTIVE_ARGUMENT_COORDINATE,name:s,argumentName:p}):this.node(o,{kind:dt.DIRECTIVE_COORDINATE,name:s}):d?p?this.node(o,{kind:dt.ARGUMENT_COORDINATE,name:s,fieldName:d,argumentName:p}):this.node(o,{kind:dt.MEMBER_COORDINATE,name:s,memberName:d}):this.node(o,{kind:dt.TYPE_COORDINATE,name:s})}node(o,c){return this._options.noLocation!==!0&&(c.loc=new C6(o,this._lexer.lastToken,this._lexer.source)),c}peek(o){return this._lexer.token.kind===o}expectToken(o){const c=this._lexer.token;if(c.kind===o)return this.advanceLexer(),c;throw Xa(this._lexer.source,c.start,`Expected ${_2(o)}, found ${Wb(c)}.`)}expectOptionalToken(o){return this._lexer.token.kind===o?(this.advanceLexer(),!0):!1}expectKeyword(o){const c=this._lexer.token;if(c.kind===Ae.NAME&&c.value===o)this.advanceLexer();else throw Xa(this._lexer.source,c.start,`Expected "${o}", found ${Wb(c)}.`)}expectOptionalKeyword(o){const c=this._lexer.token;return c.kind===Ae.NAME&&c.value===o?(this.advanceLexer(),!0):!1}unexpected(o){const c=o??this._lexer.token;return Xa(this._lexer.source,c.start,`Unexpected ${Wb(c)}.`)}any(o,c,s){this.expectToken(o);const d=[];for(;!this.expectOptionalToken(s);)d.push(c.call(this));return d}optionalMany(o,c,s){if(this.expectOptionalToken(o)){const d=[];do d.push(c.call(this));while(!this.expectOptionalToken(s));return d}return[]}many(o,c,s){this.expectToken(o);const d=[];do d.push(c.call(this));while(!this.expectOptionalToken(s));return d}delimitedMany(o,c){this.expectOptionalToken(o);const s=[];do s.push(c.call(this));while(this.expectOptionalToken(o));return s}advanceLexer(){const{maxTokens:o}=this._options,c=this._lexer.advance();if(c.kind!==Ae.EOF&&(++this._tokenCounter,o!==void 0&&this._tokenCounter>o))throw Xa(this._lexer.source,c.start,`Document contains more that ${o} tokens. Parsing aborted.`)}}function Wb(n){const o=n.value;return _2(n.kind)+(o!=null?` "${o}"`:"")}function _2(n){return U6(n)?`"${n}"`:n}const t5=async(n,o={},c={})=>{const{replaceUUID:s=!1,replaceID:d=!1,globalFetchParams:p={method:"POST",headers:{"Content-Type":"application/json"},cache:"no-cache",redirect:"manual"},overridenPath:y="/api/gql",ast:v=null}=c,x={...p.headers,...o.headers},E={...p,...o,headers:x};typeof E.body=="string"&&(s&&(E.body=E.body.replaceAll("UUID","ID")),d&&(E.body=E.body.replaceAll(": ID",": UUID")));let O=null,R=null;try{if(O=await fetch(y,E),O.type==="opaqueredirect")return console.log("fetch got opaque redirect"),{errors:[{stage:"redirect",msg:"Opaque redirect",status:302,original:O}]}}catch(A){return console.log("fetch got error ",A),{errors:[{stage:"fetch",msg:A.message,status:O.status,original:O}]}}try{R=await O.json()}catch(A){return{errors:[{stage:"json",msg:A.message,status:O.status,original:O}]}}return R},n5=(n,o)=>({query:n,variables:o}),a5=(n,o={})=>{var p;if(!n||typeof n!="string")throw new Error("Invalid query: must be a non-empty string.");const c=W6(n),s=c.definitions.find(y=>y.kind==="OperationDefinition"&&y.name),d=((p=s==null?void 0:s.name)==null?void 0:p.value)||null;return async y=>{const v={method:"POST",headers:{"Content-Type":"application/json"}},x=JSON.stringify(n5(n,y));try{return await t5("",{body:x,...v,...o},{ast:c,operationName:d})}catch(E){return console.error("createAsyncGraphQLAction: Error during async action execution",E),{errors:[{message:E.message,status:500}],data:null}}}},R2=(n,o)=>{const c=o.payload,s=c.id||crypto.randomUUID();return c.id||(c.id=s),n[s]=c,n},O2=(n,o)=>{const c=o.payload;return delete n[c.id],n},l5=QT({name:"items",initialState:{},reducers:{item_add:R2,item_update:(n,o)=>{const c=o.payload,s=n[c.id];return n[c.id]={...s,...c},n},item_replace:(n,o)=>{const c=o.payload;return n[c.id]=c,n},item_delete:O2,item_updateAttributeScalar:(n,o)=>{const{item:c,scalarname:s}=o.payload,d=n[c.id],p=c[s];return d[s]={...d[s],...p},p!=null&&p.__typename&&(n[p.id]={...n[p.id],...p}),n},item_updateAttributeVector:(n,o)=>{const{item:c,vectorname:s}=o.payload;if(!n[c.id])console.log("UpdateSubVector, item not found, setting directly",c),n[c.id]={...c};else{const p=n[c.id],y=s in p?p[s]:[],v={};for(let x of y)v[x.id]=x;for(let x of c[s]){x!=null&&x.__typename&&(n[x.id]={...n[x.id],...x});const E=v[x.id]||{};v[x.id]={...E,...x}}p[s]=Object.values(v)}return n}}}).actions;QT({name:"msgs",initialState:{},reducers:{msg_add:R2,msg_delete:O2}});function A2(n,o=1/0){return async function(s,d){function p(y,v){v>o||y&&typeof y=="object"&&("__typename"in y&&s(l5.item_update(y)),Object.values(y).forEach(x=>{x&&typeof x=="object"&&(Array.isArray(x)?x.forEach(E=>p(E,v+1)):p(x,v+1))}))}p(n,0)}}const r5=(n=1/0)=>{let o=n;const c=s=>async(d,p,y=v=>v)=>{const v=s==null?void 0:s.data;if(!v)return console.warn("GQLQueryAfterFetch: No data found in jsonResult",s),y(s);let x=v==null?void 0:v.result;if(!x&&Object.keys(v).length===1){const E=Object.keys(v)[0];x=v[E]}return x?Array.isArray(x)?x.forEach(E=>d(A2(E,o))):d(A2(x,o)):Object.keys(v).length===1?console.warn("GQLQueryAfterFetch: result is null",s):console.warn("GQLQueryAfterFetch: No valid result found in data",s),y(s)};return typeof n=="object"&&n!==null?(o=1,c(n)):c};class o5 extends Error{constructor(o,c,s,d){super(o),this.name="GQLMutationError",this.jsonResponse=d,this.graphQLQuery=c,this.graphQLParameters=s}}const Vx=(n,o=r5,...c)=>{var y,v;let s=n;if(typeof n=="function"&&(s=(y=n==null?void 0:n.__metadata)==null?void 0:y.queryStr,(v=n==null?void 0:n.__metadata)==null||v.nodes,n=n()),typeof n!="string")throw new Error("createAsyncGraphQLAction: 'query' must be a string.");i5(n)||(console.error("query does not have __typename this can lead to improper error catching"),console.error(n)),c.forEach((x,E)=>{if(typeof x!="function")throw new Error(`createAsyncGraphQLAction: Middleware at index ${E} is not a function.`)}),typeof o=="function"&&(c=[o,...c],o={});const d=a5(n,o),p=x=>{if(typeof x!="object"||x===null)throw new Error(`createAsyncGraphQLAction: 'graphQLVariables' must be a valid JSON object.
|
|
515
|
+
${x}`);return async(E,O,R=A=>A)=>{var A;try{const w=await d(x);if(w.errors&&Array.isArray(w.errors)){console.error("createAsyncGraphQLAction: Server returned errors.",w.errors),E({type:"ASYNC_GRAPHQL_ACTION_SERVER_ERROR",payload:w.errors});const V=new Error("Server returned errors in GraphQL response.");return V.details=w.errors,Promise.reject(V)}const j=w==null?void 0:w.data,H=Object.values(j);if(H.length>0){const V=(A=H[0])==null?void 0:A.__typename;if(V!=null&&V.includes("Error"))return Promise.reject(new o5("Controlled fail from server ",n,x,w))}return c.reduceRight((V,J)=>async F=>J(F)(E,O,V),R)(w)}catch(w){throw console.error("createAsyncGraphQLAction: Error during async action execution",w),E({type:"ASYNC_GRAPHQL_ACTION_GENERAL_ERROR",payload:w.message}),w}}};return p.__metadata={queryStr:s},p},i5=n=>n.includes("__typename"),Ft=(n,...o)=>{const c=(d,p)=>{if(!d||typeof d!="function"&&typeof d!="object")return"";const y=d.__metadata;if(!y||typeof y.queryStr!="string"||p.has(d))return"";p.add(d);const x=(Array.isArray(y.nodes)?y.nodes:[]).map(O=>c(O,p)).filter(Boolean);return[y.queryStr,...x].filter(Boolean).join(`
|
|
516
|
+
`)},s=()=>c(s,new WeakSet);return s.__metadata={queryStr:n,nodes:o},s},kx=({children:n,...o})=>T.jsx(qb,{xl:3,md:12,...o,children:n}),u5={capsuleRightCorner:{position:"absolute",top:"-14px",right:"16px",backgroundColor:"white",padding:"0 8px",fontSize:"0.85rem",fontWeight:"bold",color:"#6c757d"}},Ph=({children:n})=>T.jsx("span",{style:u5.capsuleRightCorner,children:n}),C2=(n=300)=>{let o=null,c=!1;return s=>{if(typeof s!="function")throw new Error("Delayed function must be a valid function.");return c&&(clearTimeout(o),o=null,c=!1),new Promise((d,p)=>{const y=()=>{o=null,c=!1;try{const v=s();d(v)}catch(v){p(v)}};c=!0,o=setTimeout(y,n)})}},c5=({className:n,className1:o="btn btn-sm btn-warning",className2:c="btn btn-sm btn-danger",children:s,onClick:d})=>{const[p,y]=D.useState(!1),v=D.useCallback(()=>y(!1),[]),x=D.useCallback(()=>y(!0),[]);return T.jsxs(T.Fragment,{children:[T.jsx("button",{className:n||o,onClick:p?v:x,children:s}),p&&T.jsx("button",{className:c,onClick:d,children:s})]})},s5=({errors:n="DEMO ERROR",show:o=!0})=>{var y,v,x,E,O;const[c,s]=D.useState(o);let d;const p=()=>{s(R=>!1)};console.log("ErrorHandler",n);try{d=Array.isArray(n)?n:JSON.parse(n)}catch{d=[{message:"Unparsable error",raw:n}]}return c?((v=(y=n==null?void 0:n.details)==null?void 0:y[0])==null?void 0:v.status)===302?T.jsxs(Jl,{show:o,onHide:p,centered:!0,backdrop:"static",size:"xl","aria-labelledby":"error-handler-title",children:[T.jsx(Jl.Header,{closeButton:!0,children:T.jsx(Jl.Title,{id:"error-handler-title",children:"Chyba"})}),T.jsxs(Jl.Body,{children:[((x=n==null?void 0:n.details[0])==null?void 0:x.status)===302&&T.jsx("span",{children:"Nejste přihlášeni"}),T.jsx("br",{})]}),T.jsx(Jl.Footer,{children:T.jsx("button",{className:"btn btn-primary",onClick:p,children:"Zavřít"})})]}):T.jsxs(Jl,{show:o,onHide:p,centered:!0,backdrop:"static",size:"xl","aria-labelledby":"error-handler-title",children:[T.jsx(Jl.Header,{closeButton:!0,children:T.jsx(Jl.Title,{id:"error-handler-title",children:"Chyba"})}),T.jsxs(Jl.Body,{children:[(n==null?void 0:n.name)==="GQLMutationError"&&T.jsx(f5,{error:n,onClose:p}),(n==null?void 0:n.name)!=="GQLMutationError"&&T.jsx(m5,{errors:d,onClose:p}),T.jsx("pre",{children:JSON.stringify(n,null,4)}),((O=(E=n==null?void 0:n.details)==null?void 0:E[0])==null?void 0:O.status)===302&&T.jsx("span",{children:"Nejste přihlášeni"})]}),T.jsx(Jl.Footer,{children:T.jsx("button",{className:"btn btn-primary",onClick:p,children:"Zavřít"})})]}):null},f5=({error:n,onClose:o})=>{var A;const{jsonResponse:c,graphQLQuery:s,graphQLParameters:d}=n,p=Object.keys((c==null?void 0:c.data)||{})[0],y=(A=c==null?void 0:c.data)==null?void 0:A[p],v=(y==null?void 0:y.input)||{},x=(y==null?void 0:y.Entity)||{},E={},O={},R={};return v&&typeof v=="object"&&Object.keys(v).forEach(w=>{d!=null&&d.hasOwnProperty(w)&&(E[w]=d[w]),x!=null&&x.hasOwnProperty(w)&&(O[w]=x[w])}),Object.keys(x).forEach(w=>{w.startsWith("created")&&(R[w]=x[w]),w.startsWith("changed")&&(R[w]=x[w])}),n.name!=="GQLMutationError"?null:E.lastchange?E.lastchange!==O.lastchange?T.jsx(h5,{error:n,extractedInputParameters:E,extractedOutputParameters:O,createdFields:R,onClose:o}):T.jsxs("div",{children:[T.jsx("h5",{children:"GraphQL Mutation Error"}),T.jsx("p",{children:T.jsx("strong",{children:"Query:"})}),T.jsx("pre",{children:JSON.stringify(E,null,2)}),T.jsx("pre",{children:JSON.stringify(O,null,2)}),T.jsx("p",{children:T.jsx("strong",{children:"Parameters:"})}),T.jsx("pre",{children:JSON.stringify(n.graphQLParameters,null,2)}),T.jsx("p",{children:T.jsx("strong",{children:"Response:"})}),T.jsx("pre",{children:JSON.stringify(n.jsonResponse,null,2)})]}):T.jsxs(d5,{error:n,messageToDisplay:"Chybí časové razítko, toto je chyba v programu.",onClose:o,children:[T.jsx("p",{children:T.jsx("strong",{children:"Query:"})}),T.jsx("pre",{children:s})]})},d5=({error:n,messageToDisplay:o,children:c})=>T.jsxs("div",{children:[T.jsx("h5",{children:"Chyba"}),T.jsx("p",{children:T.jsx("strong",{children:o})}),c]}),h5=({error:n,extractedInputParameters:o,extractedOutputParameters:c,createdFields:s})=>{const d=xT(),p=s==null?void 0:s.changedby,y={...o,lastchange:c.lastchange},v=Vx(n.graphQLQuery);let x;const E=async()=>{try{await d(v(y)),x=""}catch(O){x=JSON.stringify(O,null,2)}};return T.jsxs("div",{children:[T.jsx("h5",{children:"Chyba časového razítka"}),T.jsx("p",{children:"Odeslané časové razítko neodpovídá časovému razítku na serveru. Toto nastává v případě, když někdo jiný data změnil."}),!p&&T.jsx("p",{children:"Není dostupná informace o tom, kdo změnu provedl, toto je chyba. Poznamenejte si, jak jste k této chybě dospěli a nahlaste ji."}),p&&T.jsxs("div",{children:["Změnu provedl uživatel ",T.jsx("span",{className:"btn btn-sm btn-outline-secondary",children:T.jsx("a",{href:`email:${p==null?void 0:p.email}`,children:p==null?void 0:p.email})})," (link do jiné záložky)"]}),T.jsx("hr",{}),T.jsx("p",{children:T.jsx("strong",{children:"Odeslaná data:"})}),T.jsx("pre",{children:JSON.stringify(o,null,2)}),T.jsx("p",{children:T.jsx("strong",{children:"Data na serveru:"})}),T.jsx("pre",{children:JSON.stringify(c,null,2)}),T.jsx("hr",{}),!x&&T.jsx(c5,{onClick:E,children:"Přepsat data na serveru hrubou silou"}),x===""&&T.jsx("p",{children:"Přepsání se povedlo"}),x&&x!==""&&T.jsxs("p",{children:["Při přepisu nastala další chyba",T.jsx("pre",{children:x})]}),T.jsx("hr",{})]})},p5=({extensions:n})=>{var o;return n?T.jsxs("div",{style:{marginTop:"10px",padding:"10px",border:"1px solid lightgray",background:"#f9f9f9"},children:[n.serviceName&&T.jsxs("p",{children:[T.jsx("strong",{children:"Service:"})," ",n.serviceName]}),n.code&&T.jsxs("p",{children:[T.jsx("strong",{children:"Code:"})," ",n.code]}),((o=n.exception)==null?void 0:o.msg)&&T.jsxs("div",{children:[T.jsx("strong",{children:"Exception Message:"}),T.jsx("pre",{children:n.exception.msg})]}),n.msg_e&&T.jsxs("div",{children:[T.jsx("strong",{children:"Details:"}),T.jsx("pre",{children:n.msg_e.join(`
|
|
517
|
+
`)})]}),n.stacktrace&&T.jsxs("details",{children:[T.jsx("summary",{children:T.jsx("strong",{children:"Stacktrace"})}),T.jsx("pre",{children:n.stacktrace.join(`
|
|
518
|
+
`)})]})]}):null},m5=({errors:n})=>Array.isArray(n)?T.jsxs("div",{children:['A"',JSON.stringify(n),'"Z',T.jsx("br",{}),'A"',JSON.stringify(n[0].raw),'"Z',n.map((o,c)=>{var s;return T.jsxs("div",{style:{border:"1px solid red",marginBottom:"10px",padding:"10px"},children:[T.jsxs("h4",{children:["Error ",c+1]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Message:"})," ",o.message]}),o.path&&T.jsxs("p",{children:[T.jsx("strong",{children:"Path:"})," ",o.path.join(" > ")]}),T.jsx(p5,{extensions:o.extensions}),(o==null?void 0:o.raw)&&JSON.stringify(o.raw),JSON.stringify(o),((s=o==null?void 0:o.raw)==null?void 0:s.toString)&&JSON.stringify(o.raw.toString())]},c)})]}):T.jsx("p",{children:"No errors to display."}),y5=({text:n="Nahrávám..."})=>Yf.createPortal(T.jsxs("div",{style:g5,children:[T.jsxs("div",{style:v5,children:[T.jsx("div",{style:b5}),T.jsx("span",{style:E5,children:n})]}),T.jsx("style",{children:`
|
|
519
|
+
@keyframes spin {
|
|
520
|
+
to {
|
|
521
|
+
transform: rotate(360deg);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
`})]}),document.body),g5={position:"fixed",top:0,left:"50%",transform:"translateX(-50%)",width:"30vw",height:"20vh",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},v5={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},b5={width:"60px",height:"60px",border:"6px solid rgba(0, 0, 0, 0.2)",borderTopColor:"#007bff",borderRadius:"50%",animation:"spin 1s infinite linear",marginBottom:"15px"},E5={fontSize:"1.5rem",fontWeight:"bold",color:"#555"};var S5=["color","size","title","className"];function Gx(){return Gx=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var c=arguments[o];for(var s in c)({}).hasOwnProperty.call(c,s)&&(n[s]=c[s])}return n},Gx.apply(null,arguments)}function T5(n,o){if(n==null)return{};var c,s,d=x5(n,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(s=0;s<p.length;s++)c=p[s],o.includes(c)||{}.propertyIsEnumerable.call(n,c)&&(d[c]=n[c])}return d}function x5(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.includes(s))continue;c[s]=n[s]}return c}var qx=D.forwardRef(function(n,o){var c=n.color,s=c===void 0?"currentColor":c,d=n.size,p=d===void 0?"1em":d,y=n.title,v=y===void 0?null:y,x=n.className,E=x===void 0?"":x,O=T5(n,S5);return hl.createElement("svg",Gx({ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:p,height:p,fill:s,className:["bi","bi-lock",E].filter(Boolean).join(" ")},O),v?hl.createElement("title",null,v):null,hl.createElement("path",{d:"M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2m3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2M5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1"}))});qx.propTypes={color:ft.string,size:ft.oneOfType([ft.string,ft.number]),title:ft.string,className:ft.string};var _5=["color","size","title","className"];function Yx(){return Yx=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var c=arguments[o];for(var s in c)({}).hasOwnProperty.call(c,s)&&(n[s]=c[s])}return n},Yx.apply(null,arguments)}function R5(n,o){if(n==null)return{};var c,s,d=O5(n,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(s=0;s<p.length;s++)c=p[s],o.includes(c)||{}.propertyIsEnumerable.call(n,c)&&(d[c]=n[c])}return d}function O5(n,o){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(o.includes(s))continue;c[s]=n[s]}return c}var eE=D.forwardRef(function(n,o){var c=n.color,s=c===void 0?"currentColor":c,d=n.size,p=d===void 0?"1em":d,y=n.title,v=y===void 0?null:y,x=n.className,E=x===void 0?"":x,O=R5(n,_5);return hl.createElement("svg",Yx({ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:p,height:p,fill:s,className:["bi","bi-person-fill",E].filter(Boolean).join(" ")},O),v?hl.createElement("title",null,v):null,hl.createElement("path",{d:"M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6"}))});eE.propTypes={color:ft.string,size:ft.oneOfType([ft.string,ft.number]),title:ft.string,className:ft.string},Vx(`
|
|
525
|
+
{
|
|
526
|
+
result: me {
|
|
527
|
+
__typename
|
|
528
|
+
isThisMe
|
|
529
|
+
id
|
|
530
|
+
name
|
|
531
|
+
surname
|
|
532
|
+
fullname
|
|
533
|
+
email
|
|
534
|
+
roles {
|
|
535
|
+
id
|
|
536
|
+
group {
|
|
537
|
+
id
|
|
538
|
+
name
|
|
539
|
+
}
|
|
540
|
+
userId
|
|
541
|
+
roletype {
|
|
542
|
+
id
|
|
543
|
+
name
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}`),Vx(`
|
|
548
|
+
query StateReadQuery($id: UUID!) {
|
|
549
|
+
stateById(id: $id) {
|
|
550
|
+
__typename
|
|
551
|
+
id
|
|
552
|
+
readers: roletypes(access: READ) {
|
|
553
|
+
__typename
|
|
554
|
+
id
|
|
555
|
+
name
|
|
556
|
+
}
|
|
557
|
+
writers: roletypes(access: WRITE) {
|
|
558
|
+
__typename
|
|
559
|
+
id
|
|
560
|
+
name
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}`);const Qx=({children:n,...o})=>T.jsx(qb,{xl:9,md:12,...o,children:n}),A5=`
|
|
564
|
+
fragment Link on RoleTypeGQLModel {
|
|
565
|
+
__typename
|
|
566
|
+
id
|
|
567
|
+
lastchange
|
|
568
|
+
created
|
|
569
|
+
createdbyId
|
|
570
|
+
changedbyId
|
|
571
|
+
rbacobjectId
|
|
572
|
+
name
|
|
573
|
+
nameEn
|
|
574
|
+
path
|
|
575
|
+
mastertypeId
|
|
576
|
+
mastertype {
|
|
577
|
+
__typename
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
}
|
|
581
|
+
`,C5=`
|
|
582
|
+
fragment Medium on RoleTypeGQLModel {
|
|
583
|
+
...Link
|
|
584
|
+
rbacobject {
|
|
585
|
+
...RBRoles
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
`,D5=`
|
|
589
|
+
fragment Large on RoleTypeGQLModel {
|
|
590
|
+
...Medium
|
|
591
|
+
subtypes {
|
|
592
|
+
__typename
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
`,w5=`
|
|
596
|
+
fragment Role on RoleGQLModel {
|
|
597
|
+
__typename
|
|
598
|
+
id
|
|
599
|
+
lastchange
|
|
600
|
+
created
|
|
601
|
+
createdbyId
|
|
602
|
+
changedbyId
|
|
603
|
+
rbacobjectId
|
|
604
|
+
createdby { id __typename }
|
|
605
|
+
changedby { id __typename }
|
|
606
|
+
rbacobject { id __typename }
|
|
607
|
+
valid
|
|
608
|
+
deputy
|
|
609
|
+
startdate
|
|
610
|
+
enddate
|
|
611
|
+
roletypeId
|
|
612
|
+
userId
|
|
613
|
+
groupId
|
|
614
|
+
roletype { __typename id name }
|
|
615
|
+
user { __typename id fullname }
|
|
616
|
+
group { __typename id name }
|
|
617
|
+
}
|
|
618
|
+
`,M5=`
|
|
619
|
+
fragment RBRoles on RBACObjectGQLModel {
|
|
620
|
+
__typename
|
|
621
|
+
id
|
|
622
|
+
currentUserRoles {
|
|
623
|
+
__typename
|
|
624
|
+
id
|
|
625
|
+
lastchange
|
|
626
|
+
valid
|
|
627
|
+
startdate
|
|
628
|
+
enddate
|
|
629
|
+
roletype {
|
|
630
|
+
__typename
|
|
631
|
+
id
|
|
632
|
+
name
|
|
633
|
+
}
|
|
634
|
+
group {
|
|
635
|
+
__typename
|
|
636
|
+
id
|
|
637
|
+
name
|
|
638
|
+
grouptype {
|
|
639
|
+
__typename
|
|
640
|
+
id
|
|
641
|
+
name
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}`;Ft(`${w5}`);const j5=Ft(`${M5}`),N5=Ft(`${A5}`),D2=Ft(`${C5}`,N5,j5),Iy=Ft(`${D5}`,D2),z5=Ft(`
|
|
646
|
+
mutation roleTypeInsert(
|
|
647
|
+
$mastertypeId: UUID # null,
|
|
648
|
+
$id: UUID # null,
|
|
649
|
+
$name: String # null,
|
|
650
|
+
$nameEn: String # null,
|
|
651
|
+
$subtypes: [RoleTypeInsertGQLModel!] # null
|
|
652
|
+
) {
|
|
653
|
+
roleTypeInsert(
|
|
654
|
+
roleType: {
|
|
655
|
+
mastertypeId: $mastertypeId,
|
|
656
|
+
id: $id,
|
|
657
|
+
name: $name,
|
|
658
|
+
nameEn: $nameEn,
|
|
659
|
+
subtypes: $subtypes}
|
|
660
|
+
) {
|
|
661
|
+
... on InsertError { ...InsertError }
|
|
662
|
+
... on RoleTypeGQLModel { ...Large }
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
fragment InsertError on InsertError {
|
|
668
|
+
__typename
|
|
669
|
+
msg
|
|
670
|
+
failed
|
|
671
|
+
code
|
|
672
|
+
location
|
|
673
|
+
input
|
|
674
|
+
|
|
675
|
+
}
|
|
676
|
+
`,Iy),Xx=Gn(z5),U5=Ft(`
|
|
677
|
+
mutation roleTypeUpdate(
|
|
678
|
+
$id: UUID! # null,
|
|
679
|
+
$lastchange: DateTime! # null,
|
|
680
|
+
$name: String # null,
|
|
681
|
+
$nameEn: String # null
|
|
682
|
+
) {
|
|
683
|
+
roleTypeUpdate(
|
|
684
|
+
roleType: {
|
|
685
|
+
id: $id,
|
|
686
|
+
lastchange: $lastchange,
|
|
687
|
+
name: $name,
|
|
688
|
+
nameEn: $nameEn}
|
|
689
|
+
) {
|
|
690
|
+
... on RoleTypeGQLModel { ...Large }
|
|
691
|
+
... on RoleTypeGQLModelUpdateError { ...Error }
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
fragment Error on RoleTypeGQLModelUpdateError {
|
|
696
|
+
__typename
|
|
697
|
+
Entity {
|
|
698
|
+
...Large
|
|
699
|
+
}
|
|
700
|
+
msg
|
|
701
|
+
failed
|
|
702
|
+
code
|
|
703
|
+
location
|
|
704
|
+
input
|
|
705
|
+
}
|
|
706
|
+
`,Iy),tE=Gn(U5,Ub,Hy),L5=Ft(`
|
|
707
|
+
mutation roleTypeDelete(
|
|
708
|
+
$id: UUID! # null,
|
|
709
|
+
$lastchange: DateTime! # null
|
|
710
|
+
) {
|
|
711
|
+
roleTypeDelete(
|
|
712
|
+
roleType: {
|
|
713
|
+
id: $id,
|
|
714
|
+
lastchange: $lastchange}
|
|
715
|
+
) {
|
|
716
|
+
...RoleTypeGQLModelDeleteError
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
fragment RoleTypeGQLModelDeleteError on RoleTypeGQLModelDeleteError {
|
|
721
|
+
__typename
|
|
722
|
+
Entity {
|
|
723
|
+
...Large
|
|
724
|
+
}
|
|
725
|
+
msg
|
|
726
|
+
code
|
|
727
|
+
failed
|
|
728
|
+
location
|
|
729
|
+
input
|
|
730
|
+
}
|
|
731
|
+
`,Iy),Ix=Gn(L5),B5=Ft(`
|
|
732
|
+
query roleTypeById($id: UUID!) {
|
|
733
|
+
roleTypeById(id: $id) {
|
|
734
|
+
...Large
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
`,Iy),H5=Gn(B5),$5=Ft(`
|
|
738
|
+
query roleTypePage($skip: Int, $limit: Int, $orderby: String, $where: RoleTypeInputWhereFilter) {
|
|
739
|
+
roleTypePage(skip: $skip, limit: $limit, orderby: $orderby, where: $where) {
|
|
740
|
+
...Medium
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
`,D2);Gn($5);const V5=Ft(`
|
|
744
|
+
query SearchQuery($skip: Int, $limit: Int, $pattern: String) {
|
|
745
|
+
result: userPage(skip: $skip, limit: $limit, where: {name: {_ilike: $pattern}}) {
|
|
746
|
+
...Large
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
`,Iy),k5=Gn(V5,Hy),w2=({tools:n,children:o,...c})=>T.jsxs(lu,{...c,children:[n,o]}),Fl=({label:n,ariaHidden:o=!1,children:c,...s})=>{const{id:d,value:p,defaultValue:y,onChange:v=()=>null,onBlur:x=()=>null,type:E="text",reset:O=0,...R}=s,A=p!==void 0,w=D.useRef(!1),j=ae=>{if(E==="number"){if(ae===""||ae==null)return"";const $=Number(ae);return Number.isNaN($)?"":$}return ae??""},[H,L]=D.useState(()=>j(p));D.useEffect(()=>{A&&(w.current=!1,L(p))},[A,p,O]);const V=D.useMemo(()=>A?j(p):void 0,[A,p,E]);D.useEffect(()=>{A&&(w.current=!1)},[V,A]);const J=ae=>$=>{const Se=j($.target.value);ae({target:{id:d,value:Se}})},F=ae=>{var Se;w.current=!0;const $=(Se=ae==null?void 0:ae.target)==null?void 0:Se.value;L($),console.log("Input.handleChange.value changed to",$,O),J(v)(ae)},K=ae=>{w.current&&J(x)(ae)};if(o)return null;const k={id:d,type:E,onChange:F,onBlur:K,...R};A?k.value=j(H):k.defaultValue=j(y),p!==H&&(k.className=(k.className?k.className+" ":"")+"bg-warning");const P=T.jsx("input",{...k});return n?T.jsxs(w2,{title:n,children:[P,c]}):P},Do=({error:n,loading:o,text:c,children:s})=>T.jsxs(T.Fragment,{children:[n&&T.jsx(s5,{errors:n}),o&&T.jsx(y5,{text:c})]}),G5=({id:n,asyncAction:o,value:c,onSelect:s=E=>{},onChange:d=null,skip:p=0,limit:y=10,label:v,...x})=>{if(typeof o!="function")throw Error("EntityLookup.asyncAction must be function - dispatchable async action creator");const[E]=D.useState(()=>C2()),{run:O,loading:R,error:A}=i2(o,{},{deferred:!0}),[w,j]=D.useState([]),H=zb(),[L,V]=D.useState(c);D.useEffect(()=>{console.log("EntityLookup.useEffect",c),V(c)},[c]);const J=D.useCallback(async k=>{const P=(k==null?void 0:k.target)||{},ae=(P==null?void 0:P.value)||"";if((P==null?void 0:P.value)===""&&d&&d({target:{id:n,value:null}}),ae.length<3)return;const $=await E(async()=>await O({pattern:"%"+ae+"%"},H));if(!Array.isArray($))throw Error("EntityLookup.searchresult doest not return array, check EntityLookup.asyncAction");j(Se=>$)},[o,p,y]),F=D.useCallback(k=>{V($=>k||$),d&&(d({target:{id:n,value:k==null?void 0:k.id}}),j(()=>[]));const P=s(k)||{},{clear:ae=!0}=P;ae&&j(()=>[])},[s,j]),K=T.jsxs(T.Fragment,{children:[T.jsx(Fl,{...x,id:"__phrase",onChange:J,placeholder:"Napište alespoň 3 znaky",value:(L==null?void 0:L.fullname)||(L==null?void 0:L.name),reset:L}),w.map(k=>T.jsx(q5,{item:k,onSelect:F},k==null?void 0:k.id))]});return v?T.jsxs(T.Fragment,{children:[T.jsx(Do,{loading:R,error:A,text:"Hledám"}),T.jsx(w2,{title:v,children:K})]}):T.jsxs(T.Fragment,{children:[T.jsx(Do,{loading:R,error:A,text:"Hledám"}),K]})},q5=({item:n,onSelect:o})=>{const c=(n==null?void 0:n.fullname)||(n==null?void 0:n.name)||(n==null?void 0:n.id)||"(Chyba v programu, dotaz nevraci jmena)";return T.jsx("button",{type:"button",className:"btn btn-outline-secondary",onClick:()=>o(n),style:{display:"block",width:"100%",textAlign:"left"},children:c})},nE=({item:n,onChange:o=d=>null,onBlur:c=d=>null,children:s})=>T.jsxs(T.Fragment,{children:[T.jsx(Fl,{id:"name",label:"Jméno",className:"form-control",value:(n==null?void 0:n.name)||"Jméno",onChange:o,onBlur:c}),T.jsx(G5,{id:"mastertypeId",label:"Nadřízený typ",className:"form-control",value:n==null?void 0:n.mastertype,asyncAction:k5,onChange:o,onBlur:c}),s]}),Y5=(n,o)=>{if(n===o)return!0;if(!n||!o)return!1;const c=Object.keys(n),s=Object.keys(o);if(c.length!==s.length)return!1;for(const d of c)if(n[d]!==o[d])return!1;return!0},Zx=(n,o,c={})=>{const{mode:s="confirm",delayMs:d=600,mapDraftToVars:p,commitOnBlur:y=!0,onCommit:v=()=>null}=c;if(typeof n!="function")throw new Error("useEditAction: AsyncAction musí být funkce (thunk factory)");const{entity:x,run:E,loading:O,error:R,data:A}=Dx(n,o,{deferred:!0,network:!0}),[w,j]=D.useState(o||{}),[H,L]=D.useState(o||{});D.useEffect(()=>{const je=o||{};j(je),L(je)},[x]);const V=D.useMemo(()=>!Y5(H,w),[H,w]),J=D.useRef(null),F=()=>{J.current&&(clearTimeout(J.current),J.current=null)};D.useEffect(()=>()=>F(),[]);const K=D.useCallback(je=>typeof p=="function"?p(je,{entity:x,item:o}):je,[p,x,o]),k=D.useCallback(async je=>{console.log("useEditAction commitNow",V,je);const Re=await E(K(je));return v(je,Re),Re},[E,K]),P=D.useCallback(je=>{F(),J.current=setTimeout(()=>{k(je).catch(()=>{})},d)},[k,d]),ae=D.useCallback(je=>{var et,G;const Re=(et=je==null?void 0:je.target)==null?void 0:et.id,ke=(G=je==null?void 0:je.target)==null?void 0:G.value;let Ye;Re?Ye={...H||{},[Re]:ke}:ke&&typeof ke=="object"?Ye=ke:Ye=H,L(Ye),s==="live"&&P(Ye)},[H,s,P]),$=D.useCallback(async()=>s!=="live"||!y||(F(),!V)?null:k(H),[s,y,V,H,k]),Se=D.useCallback(()=>{F(),L(w||{})},[w]),me=D.useCallback(async()=>(F(),V?k(H):null),[V,H,k]);return{entity:x,baseline:w,draft:H,setDraft:L,dirty:V,loading:O,error:R,data:A,onChange:ae,onBlur:$,onCancel:Se,onConfirm:me,run:E,commitNow:k}},M2=D.createContext(null),Zy=()=>{const n=D.useContext(M2);if(n==null)throw new Error("useGQLEntityContext must be used within a GQLEntityProvider");return n},Jx=({item:n,queryAsyncAction:o,options:c={deferred:!1,network:!0},onChange:s=()=>null,onBlur:d=()=>null,children:p})=>{var F;if(o==null)throw new Error("AsyncActionProvider: queryAsyncAction is required");const[y]=D.useState(((F=crypto==null?void 0:crypto.randomUUID)==null?void 0:F.call(crypto))??null),{run:v,error:x,loading:E,entity:O,data:R}=Dx(o,n,c),[A]=D.useState(()=>C2()),[w,j]=D.useState(n||{}),H=D.useCallback(K=>async k=>{var Se;const P=(Se=k==null?void 0:k.target)==null?void 0:Se.value;j(me=>P);const $={target:{value:await A(()=>v(P))}};return await K($)},[j,A,v]),L=D.useCallback(H(s),[H,s]),V=D.useCallback(H(d),[H,d]),J={loading:E,error:x,reRead:v,params:w,item:O,data:R,onChange:L,onBlur:V};return T.jsxs(M2.Provider,{value:J,children:[T.jsx(Do,{error:x,loading:E}),p]})},Wh=({text:n,className:o="btn btn-sm btn-outline-secondary"})=>{const[c,s]=D.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(n),s(!0),window.setTimeout(()=>s(!1),1200)}catch{const y=document.createElement("textarea");y.value=n,y.style.position="fixed",y.style.left="-9999px",document.body.appendChild(y),y.focus(),y.select(),document.execCommand("copy"),document.body.removeChild(y),s(!0),window.setTimeout(()=>s(!1),1200)}};return T.jsx("button",{type:"button",className:o,onClick:d,title:"Kopírovat",children:c?"Zkopírováno":"Kopírovat"})},Q5=({item:n,children:o,mutationAsyncAction:c=tE,DefaultContent:s=nE})=>{const{loading:d,error:p,onChange:y,onBlur:v}=Zx(c,n,{mode:"live"});return T.jsxs(s,{item:n,onChange:y,onBlur:v,children:[T.jsx(Do,{loading:d,error:p,text:"Ukládám"}),o]})},X5=({item:n={},oneOfRoles:o=[],caseInsensitive:c=!1}={})=>{var v;const s=(v=n==null?void 0:n.rbacobject)==null?void 0:v.currentUserRoles,d=D.useMemo(()=>{const x=Array.isArray(s)?s:[],E=O=>{if(typeof O!="string")return"";const R=O.trim();return c?R.toLowerCase():R};return x.map(O=>{var R;return(R=O==null?void 0:O.roletype)==null?void 0:R.name}).map(E).filter(Boolean)},[s,c]),p=D.useMemo(()=>{if(!Array.isArray(s)||!Array.isArray(o)||o.length===0)return!1;const x=O=>{if(typeof O!="string")return"";const R=O.trim();return c?R.toLowerCase():R},E=new Set(d);return o.some(O=>E.has(x(O)))},[s,o,c,d]);return s==null&&console.error("Nelze posoudit práva, data nejsou k dispozici.",n),{can:p,roleNames:d,loading:!1,error:null}},I5=({item:n,oneOfRoles:o=[],deniedFallback:c=null,children:s})=>{if(!n)throw Error("(Item)PermissionGate must have item property it is missing now");const{can:d,loading:p,error:y}=X5({item:n,oneOfRoles:o}),v={allowed:d,loading:p,error:y,oneOfRoles:o,item:n};return y?T.jsx(lE.Provider,{value:v,children:T.jsx(Do,{loading:p,error:y,text:"Ověřuji oprávnění"})}):T.jsx(lE.Provider,{value:v,children:s})},aE=new Map;function Z5(n,o,c={}){const s=c.ttlMs??6e4,p=(c.now??(()=>Date.now()))(),y=aE.get(n);if(y&&y.value!==void 0&&y.expiresAt>p)return Promise.resolve(y.value);if(y&&y.promise&&y.expiresAt>p)return y.promise;const v=p+s,x=Promise.resolve().then(o).then(E=>(aE.set(n,{value:E,expiresAt:v}),E)).catch(E=>{throw aE.delete(n),E});return aE.set(n,{promise:x,expiresAt:v}),x}const J5=`
|
|
750
|
+
{
|
|
751
|
+
me {
|
|
752
|
+
roles(limit: 1000, where: {valid: {_eq: true}}) {
|
|
753
|
+
roletype {
|
|
754
|
+
__typename
|
|
755
|
+
id
|
|
756
|
+
name
|
|
757
|
+
}
|
|
758
|
+
user {
|
|
759
|
+
__typename
|
|
760
|
+
id
|
|
761
|
+
fullname
|
|
762
|
+
}
|
|
763
|
+
group {
|
|
764
|
+
__typename
|
|
765
|
+
id
|
|
766
|
+
name
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}`;function F5({oneOfRoles:n=[],...o}){const c=zb(),s=o.enabled??!0,d=o.ttlMs??6e4,p=o.cacheKey??"me.roles",y=D.useCallback(async()=>{var w,j;const O=await c.query(J5),A=(((j=(w=O==null?void 0:O.data)==null?void 0:w.me)==null?void 0:j.roles)??[]).map(H=>{var L;return(L=H==null?void 0:H.roletype)==null?void 0:L.name}).filter(Boolean);return Array.from(new Set(A))},[c]),[v,x]=D.useState(()=>({loading:!!s,allowed:null,roles:[],error:null})),E=D.useMemo(()=>new Set((n??[]).filter(Boolean)),[n]);return D.useEffect(()=>{let O=!1;if(!s){x({loading:!1,allowed:null,roles:[],error:null});return}return x(R=>({...R,loading:!0,error:null})),Z5(p,y,{ttlMs:d}).then(R=>{if(O)return;const A=E.size===0?!0:R.some(w=>E.has(w));x({loading:!1,allowed:A,roles:R,error:null})}).catch(R=>{O||x({loading:!1,allowed:null,roles:[],error:R})}),()=>{O=!0}},[s,d,p,y,E]),v}const K5=[],P5=T.jsx(T.Fragment,{children:"Nemáte dostatečná oprávnění"}),W5=({oneOfRoles:n=K5,deniedFallback:o=P5,children:c})=>{const{loading:s,allowed:d,error:p}=F5({oneOfRoles:n});return T.jsxs(lE.Provider,{value:{oneOfRoles:n,loading:s,allowed:d,error:p},children:[T.jsx(Do,{error:p,loading:s,text:"Ověřuji oprávnění"}),d===!0&&c,d===!1&&o]})},lE=D.createContext(null),rE=()=>{const n=D.useContext(lE);if(n==null)throw Error("usePermissionGateContext must be used within PermissionGate");return n},Jy=({oneOfRoles:n,mode:o="absolute",...c})=>{if(!n)throw Error("PermissionGate.oneOfRoles must be specified");if(o==="absolute")return T.jsx(W5,{oneOfRoles:n,...c});if(o==="item")return T.jsx(I5,{oneOfRoles:n,...c});throw Error("PermissionGate.mode must be one of 'absolute' or 'item'")};function eB({mutationAsyncAction:n,item:o,onAfterConfirm:c,onAfterCancel:s,readUri:d,defaultName:p="Nový typ"}){if(!d)throw Error("readUri with ':id' must be defined");const y=us(),v=D.useMemo(()=>{const K=o??{id:crypto.randomUUID(),name:p};return K.id=(K==null?void 0:K.id)??crypto.randomUUID(),K},[o,p]),[x,E]=D.useState(v),{draft:O,dirty:R,loading:A,error:w,onChange:j,onBlur:H,onCancel:L,commitNow:V}=Zx(n,x,{mode:"confirm"}),J=D.useCallback(async()=>{const K=await V(O);if(E(k=>({...k,id:crypto.randomUUID()})),c)console.log("useCreateSession using onAfterConfirm"),await c(K,O);else{if(console.log("going to navigate",d,y),d&&y){const k=(K==null?void 0:K.id)??(O==null?void 0:O.id);k!=null&&y(d.replace(":id",`${k}`),{replace:!0})}return K}},[V,O,y,c,d]),F=D.useCallback(async()=>{if(L==null||L(),s){await s();return}console.log("going to navigate",-1,y),y==null||y(-1)},[y,s,L]);return{draft:O,dirty:R,saving:A,error:w,onChange:j,onBlur:H,handleConfirm:J,handleCancel:F}}const j2=({children:n,title:o="Dialog",oklabel:c="Ok",cancellabel:s="Zrušit",onOk:d,onCancel:p})=>{const y=()=>{d&&d()},v=()=>{p&&p()};return T.jsxs(Jl,{size:"xl",show:!0,onHide:v,backdrop:"static",children:[T.jsx(Jl.Header,{closeButton:!0,children:T.jsx(Jl.Title,{children:o})}),T.jsx(Jl.Body,{children:n}),T.jsx(Jl.Footer,{children:T.jsx(a2,{children:T.jsx(qb,{children:T.jsxs("div",{className:"d-flex justify-content-end",children:[T.jsx(hx,{variant:"outline-success",onClick:y,children:c})," ",T.jsx(hx,{variant:"outline-danger",onClick:v,children:s})]})})})})]})},oE=(n,o,{withId:c=!1}={})=>{const s=/\/view(\/|$)/;if(!s.test(n))throw new Error(`LinkURI must contain '/view'. Got: ${n}`);const d=n.replace(s,`/${o}$1`).replace(/\/?$/,"/");return c?`${d}:id`:d.replace(/\/$/,"")},Fx=n=>T.jsx(nE,{...n}),tB=()=>{var n,o;return((o=(n=globalThis.crypto)==null?void 0:n.randomUUID)==null?void 0:o.call(n))??`${Date.now()}-${Math.random().toString(16).slice(2)}`},nB=({rbacitem:n={},oneOfRoles:o=["superadmin"],mode:c="absolute",uriPattern:s,children:d,...p})=>T.jsx(Jy,{oneOfRoles:o,mode:c,item:n,children:T.jsx(aB,{uriPattern:s,children:d,...p})}),aB=({uriPattern:n,children:o,...c})=>{const{allowed:s}=rE();return s?T.jsx(au,{to:n,...c,children:o||"Vytvořit"}):T.jsxs(au,{to:n,disabled:!0,...c,children:[T.jsx(qx,{})," ",o||"Vytvořit"]})},Kx=({children:n,rbacitem:o,mutationAsyncAction:c,oneOfRoles:s=["superadmin"],mode:d="absolute",Dialog:p,DefaultContent:y=Fx,onOk:v,onCancel:x,uriPattern:E,item:O,...R})=>{if(typeof c!="function")throw Error("GeneralButton.mutationAsyncAction cannot be undefined");return T.jsx(Jy,{oneOfRoles:s,mode:d,item:o,children:T.jsx(lB,{children:n,mutationAsyncAction:c,Dialog:p,DefaultContent:y,item:O,uriPattern:E,rbacitem:o,onOk:v,onCancel:x,title:JSON.stringify(s),...R})})},Px=({title:n="Nov(é/ý/á)",oklabel:o="Ok",cancellabel:c="Zrušit",onOk:s,onCancel:d,DefaultContent:p=Fx,item:y,children:v,...x})=>{const[E,O]=D.useState(y);D.useEffect(()=>{O(j=>{console.log("GeneralDialog.useEffect",y);const H=y??{};return{...H,id:H.id??tB()}})},[y,O]);const R=D.useCallback(j=>{var V,J;const H=(V=j==null?void 0:j.target)==null?void 0:V.id,L=(J=j==null?void 0:j.target)==null?void 0:J.value;if(!H){console.warn("GeneralDialog.handleChange fired event has no e?.target?.id",j);return}O(F=>({...F||{},[H]:L}))},[O]),A=j=>{R(j)},w=()=>s==null?void 0:s(E);return T.jsx(j2,{title:n,oklabel:o,cancellabel:c,onCancel:d,onOk:w,...x,children:T.jsx(p,{item:E,onChange:R,onBlur:A,children:v})})},lB=({children:n,rbacitem:o,mutationAsyncAction:c,Dialog:s,DefaultContent:d=Fx,uriPattern:p,item:y,onOk:v,onCancel:x,...E})=>{const{allowed:O}=rE(),[R,A]=D.useState(!1),w=D.useCallback(()=>A(!0),[]),j=D.useCallback(()=>A(!1),[]),{loading:H,error:L,run:V}=Dx(c,y,{deferred:!0}),J=us(),F=D.useCallback(async k=>{await V(k),v?v(k):p&&J(`${p}`.replace(":id",k.id)),j()},[j,v,J,p,V]),K=D.useCallback(k=>{x&&x(k),j()},[j,x]);if(O)return T.jsxs(T.Fragment,{children:[T.jsx(Do,{error:L,loading:H,text:"Ukládám"}),T.jsx("button",{...E,onClick:w,children:n||"Vytvořit nový"}),R&&s&&T.jsx(s,{onOk:F,onCancel:K,mutationAsyncAction:c,uriPattern:p,item:y}),R&&!s&&T.jsx(j2,{onOk:F,onCancel:K,mutationAsyncAction:c,DefaultContent:d,uriPattern:p,item:y})]});{const{title:k,onClick:P,...ae}=E;return T.jsxs("button",{...ae,title:k,style:{opacity:.5,pointerEvents:"auto"},children:[T.jsx(qx,{})," ",n||"Vytvořit nový"]})}};oE(qy,"create",{withId:!1});const Wx=`${qy}:id`,iE=nE,uE=({title:n="Nové oprávnění",oklabel:o="Ok",cancellabel:c="Zrušit",DefaultContent:s=iE,item:d,onOk:p,onCancel:y,children:v,...x})=>T.jsx(Px,{title:n,oklabel:o,cancellabel:c,DefaultContent:s,item:d,onOk:p,onCancel:y,...x,children:v}),e_=({mutationAsyncAction:n=Xx,CreateDialog:o=uE,DefaultContent:c=iE,readItemURI:s=Wx,uriPattern:d,children:p,...y})=>T.jsx(Kx,{mutationAsyncAction:n,Dialog:o,DefaultContent:c,uriPattern:d??s,...y,children:p}),t_=({children:n,rbacitem:o,mutationAsyncAction:c=Xx,onOk:s,onCancel:d,DefaultContent:p=iE,readItemURI:y=Wx,oneOfRoles:v=["superadmin"],mode:x="absolute",...E})=>T.jsx(Jy,{oneOfRoles:v,mode:x,item:o,children:T.jsx(rB,{children:n,mutationAsyncAction:c,onOk:s,onCancel:d,DefaultContent:p,readItemURI:y,...E})}),rB=({children:n,mutationAsyncAction:o=Xx,onOk:c,onCancel:s,DefaultContent:d=iE,readItemURI:p=Wx,...y})=>{const v=eB({readUri:p,mutationAsyncAction:o,onAfterConfirm:async(x,E)=>{if(c)return c(x,E)},onAfterCancel:async()=>{if(s)return s()}});return T.jsx(T.Fragment,{children:T.jsxs(d,{item:v.draft,onChange:v.onChange,onBlur:v.onBlur,...y,children:[T.jsx(Do,{error:v.error,loading:v.saving}),n,T.jsx("button",{className:"btn btn-warning form-control",onClick:v.handleCancel,children:"Zrušit změny"}),T.jsx("button",{className:"btn btn-primary form-control",onClick:v.handleConfirm,children:"Uložit změny"})]})})},oB=oE(qy,"edit",{withId:!0}),cE=({item:n,oneOfRoles:o=["superadmin"],mode:c="absolute",uriPattern:s=oB,children:d,...p})=>{const y=D.useMemo(()=>{const v=(n==null?void 0:n.id)??"";return s.replace(":id",String(v))},[s,n==null?void 0:n.id]);return T.jsx(nB,{rbacitem:n,oneOfRoles:o,mode:c,uriPattern:y,...p,children:d})},sE=nE,fE=({children:n,item:o,mutationAsyncAction:c=tE,oneOfRoles:s=["superadmin"],mode:d="absolute",DefaultContent:p=sE,Dialog:y=dE,uriPattern:v,onOk:x,onCancel:E,...O})=>T.jsx(Kx,{rbacitem:o,oneOfRoles:s,mode:d,mutationAsyncAction:c,Dialog:y,DefaultContent:p,item:o,uriPattern:v,onOk:x,onCancel:E,...O,children:n||"Editovat"}),dE=({title:n="Editace",oklabel:o="Ok",cancellabel:c="Zrušit",DefaultContent:s=sE,item:d,onOk:p,onCancel:y,children:v,...x})=>T.jsx(Px,{title:n,oklabel:o,cancellabel:c,DefaultContent:s,item:d,onOk:p,onCancel:y,...x,children:v}),n_=({children:n,mutationAsyncAction:o=tE,DefaultContent:c=sE,oneOfRoles:s=["superadmin"],mode:d="absolute"})=>{const{item:p}=Zy();return p?T.jsx(Jy,{oneOfRoles:s,mode:d,item:p,children:T.jsx(iB,{item:p,mutationAsyncAction:o,DefaultContent:c,children:n})}):T.jsx(T.Fragment,{children:"No item"})},iB=({item:n,children:o,mutationAsyncAction:c=tE,DefaultContent:s=sE})=>{const{allowed:d}=rE();return d?T.jsxs(T.Fragment,{children:[T.jsx(Q5,{item:n,mutationAsyncAction:c,DefaultContent:s}),o]}):T.jsx(T.Fragment,{children:T.jsx("div",{children:"Nemáte oprávnění"})})};oE(qy,"delete",{withId:!0});const a_=oE(qy,"list",{withId:!1}),l_=Fb,hE=({children:n,item:o,mutationAsyncAction:c=Ix,oneOfRoles:s=["superadmin"],mode:d="absolute",vectorItemsURI:p=a_,Dialog:y,onOk:v,...x})=>T.jsx(Kx,{rbacitem:o,oneOfRoles:s,mode:d,mutationAsyncAction:c,Dialog:y,item:o,uriPattern:p,onOk:v,...x,children:n||"Odstranit"}),r_=({title:n="Odstranit",item:o,oklabel:c="Odstranit",cancellabel:s="Zrušit",onOk:d,onCancel:p,DefaultContent:y=l_})=>{const[v]=D.useState(o),x=D.useCallback(async()=>d==null?void 0:d(v),[d,v]);return T.jsx(Px,{title:n,oklabel:c,cancellabel:s,item:v,onOk:x,onCancel:p,DefaultContent:({item:E})=>T.jsx(T.Fragment,{children:T.jsx(y,{item:E})})})},o_=({children:n,mutationAsyncAction:o=Ix,DefaultContent:c=l_,oneOfRoles:s=["superadmin"],mode:d="absolute",vectorItemsURI:p=a_})=>T.jsx(Jy,{oneOfRoles:s,mode:d,children:T.jsx(uB,{mutationAsyncAction:o,DefaultContent:c,vectorItemsURI:p,children:n})}),uB=({children:n,mutationAsyncAction:o=Ix,DefaultContent:c=l_,vectorItemsURI:s=a_})=>{const{allowed:d}=rE(),p=us(),{item:y}=Zy(),{loading:v,error:x,commitNow:E}=Zx(o,y,{mode:"confirm"}),O=D.useCallback(async()=>{const A=await E(y);console.log("handleConfirm",A),A&&p&&p(s,{replace:!0})},[p,E]),R=()=>{p(-1)};return y?d?T.jsx(T.Fragment,{children:T.jsxs(c,{item:y,children:[T.jsx(Do,{error:x,loading:v,text:"Odstraňuji"}),n,T.jsx("button",{className:"btn btn-warning form-control",onClick:R,disabled:v,children:"Zrušit"}),T.jsx("button",{className:"btn btn-primary form-control",onClick:O,disabled:v,children:"Smazat"})]})}):T.jsx("div",{children:T.jsx("button",{className:"btn btn-warning form-control",onClick:R,disabled:v,children:"Nemáte oprávnění"})}):null},cB=({row:n,name:o})=>T.jsx("td",{children:T.jsx(zl,{item:n,children:(n==null?void 0:n.id)||"Data Error"})},o),sB=({row:n,name:o})=>T.jsx("td",{children:T.jsx(zl,{item:n})},o),fB=({row:n,name:o})=>{const c=(n==null?void 0:n[o])??"";if(o.indexOf("Id")===-1)return T.jsx("td",{children:typeof c=="object"?`${c}`:c||""},o);const d=o.replace("Id",""),{id:p,__typename:y}=(n==null?void 0:n[d])||{};return p&&y&&p==c?T.jsx("td",{children:T.jsx(zl,{item:n==null?void 0:n[d],children:c||""})},o):T.jsx("td",{children:typeof c=="object"?`${c}`:c||""},o)},dB=n=>{const o=(n==null?void 0:n[0])??{},c=["__typename","id","name"],s=Object.keys(o).filter(y=>{const v=o[y];return!(Array.isArray(v)||typeof v=="object"&&v!==null)}),d=[...c.filter(y=>s.includes(y)),...s.filter(y=>!c.includes(y))],p=Object.fromEntries(d.map(y=>{let v=fB;return y==="id"&&(v=cB),y==="name"&&(v=sB),[y,{label:y,component:v}]}));return p.tools={label:"Nástroje",component:({row:y})=>T.jsx("td",{children:T.jsx(hB,{actions:[{children:T.jsx(zl,{className:"btn btn-sm btn-outline-secondary border-0 text-start w-100",item:y,children:"Detail"})},{children:T.jsx(cE,{className:"btn btn-sm btn-outline-secondary border-0 text-start w-100",item:y,action:"edit",children:"Editovat"})},{children:T.jsx(fE,{className:"btn btn-sm btn-outline-secondary border-0 text-start w-100",item:y,children:"Editovat (zde)"})},{children:T.jsx(hE,{className:"btn btn-sm btn-outline-secondary border-0 text-start w-100",children:"Smazat"})}]})})},p},hB=({actions:n=[]})=>{const[o,c]=D.useState(!1),s=D.useRef(null),d=D.useRef(null),[p,y]=D.useState({left:0,top:0}),v=()=>c(!1);D.useEffect(()=>{if(!o)return;const E=R=>{const A=s.current,w=d.current;!A||!w||A.contains(R.target)||w.contains(R.target)||v()},O=R=>{R.key==="Escape"&&v()};return document.addEventListener("mousedown",E),document.addEventListener("keydown",O),()=>{document.removeEventListener("mousedown",E),document.removeEventListener("keydown",O)}},[o]),D.useLayoutEffect(()=>{if(!o)return;const E=()=>{const O=s.current;if(!O)return;const R=O.getBoundingClientRect();y({left:R.right+window.scrollX,top:R.bottom+window.scrollY})};return E(),window.addEventListener("resize",E),window.addEventListener("scroll",E,!0),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",E,!0)}},[o]);const x=o?T.jsx("div",{ref:d,style:{position:"absolute",left:p.left,top:p.top,transform:"translateX(-100%)",background:"white",border:"1px solid #ddd",borderRadius:4,boxShadow:"0 4px 12px rgba(0,0,0,0.15)",zIndex:2e3,minWidth:140},role:"menu",children:n.map((E,O)=>{const R=E==null?void 0:E.children;return R?T.jsx("div",{children:R},O):T.jsx("button",{type:"button",className:"btn btn-sm btn-outline-secondary border-0 text-start w-100",onClick:()=>{var A;v(),(A=E==null?void 0:E.onClick)==null||A.call(E)},style:{padding:"8px 12px",textDecoration:"none"},role:"menuitem",children:E==null?void 0:E.label},O)})}):null;return T.jsxs(T.Fragment,{children:[T.jsx("button",{ref:s,className:"btn btn-sm btn-outline-secondary border-1",onClick:()=>c(E=>!E),"aria-expanded":o,"aria-haspopup":"menu","aria-label":"Menu",type:"button",children:"⋮"}),o?vT.createPortal(x,document.body):null]})},pB=({row:n,table_def:o})=>T.jsx("tr",{children:Object.keys(o).map(c=>{const s=o[c].component;return T.jsx(s,{row:n,name:c},c)})}),mB=({data:n,table_def:o,TableRow:c=pB})=>T.jsx("tbody",{children:n.map(s=>T.jsx(c,{row:s,table_def:o},s==null?void 0:s.id))}),Fy=({data:n,table_def:o=null,TableBody:c=mB})=>{if(!n||n.length===0)return null;const s=D.useMemo(()=>o||dB(n),[n,o]),d=D.useMemo(()=>Object.keys(s).map(p=>s[p].label),[s]);return T.jsx("div",{className:"table-responsive",children:T.jsxs("table",{className:"table table-stripped",children:[T.jsx("thead",{children:T.jsx("tr",{children:d.map(p=>T.jsx("th",{children:`${p}`},p))})}),T.jsx(c,{data:n,table_def:s})]})})},N2=({attribute_name:n,item:o})=>{const c=(o==null?void 0:o[n])||{};return T.jsx(T.Fragment,{children:T.jsx(f2,{item:c,header:T.jsxs(T.Fragment,{children:[T.jsx(zl,{item:o,children:T.jsx("b",{children:n})}),"/",T.jsx(zl,{item:c})]})})})},z2=({item:n})=>T.jsx(Qa,{item:n,header:"Skalární atributy",children:Object.entries(n).map(([o,c])=>Array.isArray(c)?null:typeof c=="object"&&c!==null?T.jsx(N2,{item:n,attribute_name:o},o):null)}),U2=({attribute_name:n,item:o})=>{const c=(o==null?void 0:o[n])||[];return T.jsx(Qa,{item:o,header:T.jsx(zl,{item:o,action:n,children:n+" []"}),children:T.jsx(Fy,{data:c})})},L2=({item:n})=>T.jsx(Qa,{item:n,header:"Vektorové atributy",children:Object.entries(n).map(([o,c])=>Array.isArray(c)?T.jsx(U2,{attribute_name:o,item:n},o):null)}),B2=n=>n!==null&&typeof n=="object"&&!Array.isArray(n)&&(Object.getPrototypeOf(n)===Object.prototype||Object.getPrototypeOf(n)===null),yB=({label:n,value:o})=>T.jsxs(T.Fragment,{children:[T.jsx("b",{children:n}),T.jsx("br",{})," ",`${o}`," "]}),gB=({item:n})=>T.jsx(va,{children:Object.entries(n).map(([o,c])=>c===null||Array.isArray(c)||B2(c)?null:T.jsx(Qt,{children:T.jsx(yB,{datarow:n,name:o,label:o,value:c})},o))}),i_=({title:n,item:o})=>{const[c,s]=D.useState(!0),d=()=>s(p=>!p);return T.jsxs(lu,{title:T.jsxs(T.Fragment,{children:[`${n} `,T.jsx(zl,{item:o}),T.jsx("button",{className:"btn btn-outline-secondary btn-sm btn-link border-0",onClick:d,children:T.jsxs("b",{children:[" ",c?"Open":"Close"]})})]}),children:[T.jsx(gB,{item:o}),!c&&T.jsxs(T.Fragment,{children:[Object.entries(o).map(([p,y])=>Array.isArray(y)?null:B2(y)?T.jsx(i_,{title:p,item:y},p):null),Object.entries(o).map(([p,y])=>Array.isArray(y)?T.jsx(vB,{title:`${p}`,items:y},p):null)]})]})},vB=({title:n,items:o})=>{const[c,s]=D.useState(!0),d=()=>s(p=>!p);return T.jsxs(lu,{title:T.jsxs(T.Fragment,{children:[`${n}[${o==null?void 0:o.length}]`,T.jsx("button",{className:"btn btn-link btn-sm btn-outline-secondary border-0",onClick:d,children:T.jsxs("b",{children:[" ",c?"Open":"Close"]})})]}),children:[T.jsx(c2,{children:T.jsx("button",{className:"btn btn-sm btn-outline-secondary form-control border-0",onClick:d,children:c?"Open":"Close"})}),!c&&(o==null?void 0:o.map((p,y)=>T.jsx(i_,{title:`${n}[${y}] `,item:p},p==null?void 0:p.id)))]})},bB=({item:n})=>T.jsx(i_,{title:"Tree",item:n}),Ky=({item:n})=>T.jsxs(T.Fragment,{children:[T.jsx(bB,{item:n}),T.jsx(z2,{item:n}),T.jsx(L2,{item:n})]}),EB=({PageNavbar:n=null,ItemLayout:o=zx,SubPage:c=Ky,OtherComponents:s=[],children:d})=>{const{item:p}=Zy();if(!p)return T.jsx(T.Fragment,{children:"Položka nenalezena"});const y=(s||[]).reduceRight((v,x)=>x?T.jsx(x,{item:p,children:v}):v,null);return T.jsxs(T.Fragment,{children:[n&&T.jsx(n,{item:p}),d,T.jsx(o,{item:p,children:c?T.jsx(c,{item:p,children:y}):{content:y}})]})},u_=({queryAsyncAction:n=H5,PageNavbar:o=()=>null,ItemLayout:c=zx,SubPage:s=Ky,children:d})=>{const{id:p}=qf(),y={id:p};return T.jsx(Jx,{item:y,queryAsyncAction:n,children:T.jsx(EB,{PageNavbar:o,ItemLayout:c,SubPage:s,children:d})})},SB=({queryById:n,queryVector:o,mutations:c,children:s,params:d})=>{const p=Zy(),{id:y,typename:v,action:x="view"}=qf(),{item:E}=p||{};if(!E)return T.jsxs("div",{children:["Položka nenalezena",T.jsx("pre",{children:JSON.stringify(p)})]});let O=s;const R=E==null?void 0:E[x];return x==="__def"&&(O=T.jsxs(va,{children:[T.jsx(Qt,{children:T.jsxs(Qa,{header:"queryById",children:[T.jsx(Ph,{children:T.jsx(Wh,{className:"btn btn-sm border-0",text:n})}),T.jsx("pre",{children:n==null?void 0:n.replaceAll(", ",`,
|
|
771
|
+
`).replaceAll("(",`(
|
|
772
|
+
`)})]})}),T.jsx(Qt,{children:T.jsxs(Qa,{header:"queryVector",children:[T.jsx(Ph,{children:T.jsx(Wh,{className:"btn btn-sm border-0",text:o})}),T.jsx("pre",{children:o==null?void 0:o.replaceAll(", ",`,
|
|
773
|
+
`).replaceAll("(",`(
|
|
774
|
+
`)})]})}),Object.entries(c).map(([A,w])=>T.jsx(Qt,{children:T.jsxs(Qa,{header:A,children:[T.jsx(Ph,{children:T.jsx(Wh,{className:"btn btn-sm border-0",text:w})}),T.jsx("pre",{children:w==null?void 0:w.replaceAll(", ",`,
|
|
775
|
+
`).replaceAll("(",`(
|
|
776
|
+
`)})]})},A))]})),x==="view"&&(O=T.jsxs(T.Fragment,{children:[T.jsx(z2,{item:E},"MediumCardScalars"),T.jsx(L2,{item:E},"MediumCardVectors")]})),Array.isArray(R)?O=T.jsx(U2,{attribute_name:x,item:E}):R&&(O=T.jsx(N2,{attribute_name:x,item:E})),T.jsxs(T.Fragment,{children:[T.jsx(zx,{item:E,children:O}),T.jsxs(va,{children:[T.jsx(Qt,{children:T.jsx(Qa,{header:"QueryById",children:T.jsx("pre",{children:n})})}),T.jsx(Qt,{children:T.jsx(Qa,{header:"Parametry",children:T.jsx("pre",{children:JSON.stringify(d,null,2)})})}),T.jsx(Qt,{children:T.jsx(Qa,{header:"Response",children:T.jsx("pre",{children:JSON.stringify(E,null,2)})})})]})]})},TB=({children:n})=>{const{id:o,typename:c,action:s="view"}=qf(),d={id:o},{ByIdAsyncAction:p,queryById:y,queryVector:v,mutations:x}=wx(c||"RoleGQLModel");return T.jsxs(T.Fragment,{children:[p&&T.jsx(Jx,{item:d,queryAsyncAction:p,children:T.jsx(SB,{queryById:y,queryVector:v,mutations:x,params:d,children:n})}),!p&&T.jsxs("div",{children:["No ByIdAsyncAction for type ",c]})]})},c_=({children:n})=>{const{id:o,typename:c,action:s="list"}=qf(),{introspection:d}=wx(c),p=d?m6(d):[];return T.jsxs(T.Fragment,{children:[T.jsx(lu,{title:"types",children:p.map((y,v)=>T.jsx("div",{children:T.jsx(au,{to:`${Zh}/${y}/list`,children:y})},y+":"+v))}),T.jsx(lu,{title:"_schema",children:T.jsx("pre",{children:JSON.stringify(d,null,2)})})]})},xB=({queryById:n,queryVector:o,mutations:c,children:s,params:d})=>{var A,w;const p=Zy(),{id:y,typename:v,action:x="view"}=qf(),{item:E,data:O}=p||{};let R=s;if(x==="__def"&&(R=T.jsxs(va,{children:[T.jsx(Qt,{children:T.jsxs(Qa,{header:"queryById",children:[T.jsx(Ph,{children:T.jsx(Wh,{className:"btn btn-sm border-0",text:n})}),T.jsx("pre",{children:n==null?void 0:n.replaceAll(", ",`,
|
|
777
|
+
`).replaceAll("(",`(
|
|
778
|
+
`)})]})}),T.jsx(Qt,{children:T.jsxs(Qa,{header:"queryVector",children:[T.jsx(Ph,{children:T.jsx(Wh,{className:"btn btn-sm border-0",text:o})}),T.jsx("pre",{children:o==null?void 0:o.replaceAll(", ",`,
|
|
779
|
+
`).replaceAll("(",`(
|
|
780
|
+
`)})]})}),Object.entries(c).map(([j,H])=>T.jsx(Qt,{children:T.jsxs(Qa,{header:j,children:[T.jsx(Ph,{children:T.jsx(Wh,{className:"btn btn-sm border-0",text:H})}),T.jsx("pre",{children:H==null?void 0:H.replaceAll(", ",`,
|
|
781
|
+
`).replaceAll("(",`(
|
|
782
|
+
`)})]})},j))]})),x==="list"){const j=(O==null?void 0:O.data)||{},H=((w=(A=Object.entries(j))==null?void 0:A[0])==null?void 0:w[1])||[];R=T.jsx(Fy,{data:H})}return T.jsxs(T.Fragment,{children:[R,T.jsxs(va,{children:[T.jsx(Qt,{children:T.jsx(Qa,{header:"queryVector",children:T.jsx("pre",{children:n})})}),T.jsx(Qt,{children:T.jsx(Qa,{header:"Parametry",children:T.jsx("pre",{children:JSON.stringify(d,null,2)})})}),T.jsx(Qt,{children:T.jsx(Qa,{header:"Response",children:T.jsx("pre",{children:JSON.stringify(O,null,2)})})})]})]})},_B=({children:n})=>{const{id:o,typename:c,action:s="view"}=qf(),d={id:o},{ByIdAsyncAction:p,queryById:y,PageAsyncAction:v,queryVector:x,mutations:E}=wx(c||"RoleGQLModel");return T.jsxs(T.Fragment,{children:[p&&T.jsx(Jx,{item:d,queryAsyncAction:v,children:T.jsx(xB,{queryById:y,queryVector:x,mutations:E,params:d,children:n})}),!p&&T.jsxs("div",{children:["No ByIdAsyncAction for type ",c]})]})},RB=[{path:`/${Zh}/:typename/:action/:id`,element:T.jsx(TB,{})},{path:`/${Zh}/:typename/:action/`,element:T.jsx(_B,{})},{path:"/",element:T.jsx(c_,{})},{path:`/${Zh}/`,element:T.jsx(c_,{})},{path:"*",element:T.jsx(c_,{})}],s_=()=>null,OB=({indexUrl:n,item:o,children:c,handleSearchChange:s,HomeButton:d=s_,PersonButton:p=s_,SearchBox:y=s_})=>T.jsxs(Zb,{bg:"light",expand:"lg",children:[T.jsx(Zb.Toggle,{"aria-controls":"basic-navbar-nav"}),T.jsx(Zb.Collapse,{id:"basic-navbar-nav",children:T.jsxs(X4,{variant:"tabs",className:"align-items-center w-100 flex-column flex-lg-row",children:[T.jsx(d,{indexURL:n}),T.jsx("div",{className:"mx-auto d-flex align-items-center flex-column flex-lg-row mb-0",children:c}),T.jsx("div",{className:"d-flex flex-column flex-lg-row align-items-center ml-lg-auto",children:T.jsx(y,{handleSearchChange:s})}),T.jsx(p,{item:o})]})})]}),AB=()=>{const{id:n}=qf(),o=TT(c=>ZT(c,n))||{};return T.jsx(OB,{item:o})},CB=`
|
|
783
|
+
fragment Event on EventGQLModel {
|
|
784
|
+
__typename
|
|
785
|
+
id
|
|
786
|
+
lastchange
|
|
787
|
+
created
|
|
788
|
+
name
|
|
789
|
+
nameEn
|
|
790
|
+
startdate
|
|
791
|
+
enddate
|
|
792
|
+
valid
|
|
793
|
+
place
|
|
794
|
+
path
|
|
795
|
+
description
|
|
796
|
+
|
|
797
|
+
subevents {
|
|
798
|
+
__typename
|
|
799
|
+
id
|
|
800
|
+
name
|
|
801
|
+
nameEn
|
|
802
|
+
startdate
|
|
803
|
+
enddate
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
userInvitations {
|
|
807
|
+
__typename
|
|
808
|
+
id
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
`,DB=`
|
|
812
|
+
fragment Medium on EventGQLModel {
|
|
813
|
+
...Event
|
|
814
|
+
}
|
|
815
|
+
`,wB=`
|
|
816
|
+
fragment Large on EventGQLModel {
|
|
817
|
+
...Medium
|
|
818
|
+
}
|
|
819
|
+
`,f_=Ft(`${CB}`),MB=Ft(`${DB}`,f_),Py=Ft(`${wB}`,MB),jB=Ft(`
|
|
820
|
+
mutation roleTypeInsert(
|
|
821
|
+
$mastertypeId: UUID # null,
|
|
822
|
+
$id: UUID # null,
|
|
823
|
+
$name: String # null,
|
|
824
|
+
$nameEn: String # null,
|
|
825
|
+
$subtypes: [RoleTypeInsertGQLModel!] # null
|
|
826
|
+
) {
|
|
827
|
+
roleTypeInsert(
|
|
828
|
+
roleType: {
|
|
829
|
+
mastertypeId: $mastertypeId,
|
|
830
|
+
id: $id,
|
|
831
|
+
name: $name,
|
|
832
|
+
nameEn: $nameEn,
|
|
833
|
+
subtypes: $subtypes}
|
|
834
|
+
) {
|
|
835
|
+
... on InsertError { ...InsertError }
|
|
836
|
+
... on RoleTypeGQLModel { ...Large }
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
fragment InsertError on InsertError {
|
|
842
|
+
__typename
|
|
843
|
+
msg
|
|
844
|
+
failed
|
|
845
|
+
code
|
|
846
|
+
location
|
|
847
|
+
input
|
|
848
|
+
|
|
849
|
+
}
|
|
850
|
+
`,Py),NB=Gn(jB),zB=Ft(`
|
|
851
|
+
mutation eventUpdate($id: UUID!, $lastchange: DateTime!, $name: String, $nameEn: String, $description: String, $startdate: DateTime, $enddate: DateTime) {
|
|
852
|
+
eventUpdate(event: {id: $id, lastchange: $lastchange, name: $name, nameEn: $nameEn, description: $description, startdate: $startdate, enddate: $enddate}) {
|
|
853
|
+
... on EventGQLModel { ...Large}
|
|
854
|
+
... on EventGQLModelUpdateError { ...Error }
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
fragment Error on EventGQLModelUpdateError {
|
|
859
|
+
__typename
|
|
860
|
+
Entity {
|
|
861
|
+
...Large
|
|
862
|
+
}
|
|
863
|
+
msg
|
|
864
|
+
failed
|
|
865
|
+
code
|
|
866
|
+
location
|
|
867
|
+
}
|
|
868
|
+
`,Py),UB=Gn(zB,Ub,Hy),LB=Ft(`
|
|
869
|
+
mutation eventDelete(
|
|
870
|
+
$id: UUID!
|
|
871
|
+
$lastchange: DateTime!
|
|
872
|
+
) {
|
|
873
|
+
eventDelete(
|
|
874
|
+
event: {
|
|
875
|
+
id: $id
|
|
876
|
+
lastchange: $lastchange
|
|
877
|
+
}
|
|
878
|
+
) {
|
|
879
|
+
... on EventGQLModelDeleteError { ...Error }
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
fragment Error on EventGQLModelDeleteError {
|
|
884
|
+
__typename
|
|
885
|
+
Entity {
|
|
886
|
+
...Large
|
|
887
|
+
}
|
|
888
|
+
msg
|
|
889
|
+
failed
|
|
890
|
+
input
|
|
891
|
+
}
|
|
892
|
+
`,Py),BB=Gn(LB),HB=Ft(`
|
|
893
|
+
query eventById($id: UUID!) {
|
|
894
|
+
eventById(id: $id) {
|
|
895
|
+
...Large
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
`,Py),$B=Gn(HB),VB=Ft(`
|
|
899
|
+
query eventPage($skip: Int, $limit: Int, $orderby: String, $where: EventInputFilter) {
|
|
900
|
+
eventPage(skip: $skip, limit: $limit, orderby: $orderby, where: $where) {
|
|
901
|
+
...Large
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
`,Py),kB=Gn(VB),GB=(n=[],o=[])=>{const c=new Map;return n.forEach(s=>(s==null?void 0:s.id)!=null&&c.set(s.id,s)),o.forEach(s=>(s==null?void 0:s.id)!=null&&c.set(s.id,s)),Array.from(c.values())},qB=n=>{const o={...n,skip:(n.skip||0)+(n.limit||10),limit:n.limit||10};return console.log("newFilter",o),o},YB=n=>{const o=n!=null&&n.data?n.data:n,c=o?Object.values(o):[];let s=c==null?void 0:c[0];return Array.isArray(s)||(s=c.find(d=>Array.isArray(d)),Array.isArray(s))?s:[]},QB=n=>{if(!n)return!1;const o=n.getBoundingClientRect();return o.top<window.innerHeight&&o.bottom>0},XB=()=>null,d_=({preloadedItems:n,actionParams:o,asyncAction:c,calculateNewFilter:s=qB,reset:d=0,onAll:p=XB,enabled:y=!0,autoload:v=!0}={})=>{const x=xT(),E=zb();if(typeof c!="function")throw Error("useInfiniteScroll.asyncAction must be a function, typically pageRead");const O=D.useMemo(()=>({...o||{}}),[o]),[R,A]=D.useState(()=>({filter:O,loading:!1,hasMore:!0,error:null,items:n,result:null})),w=D.useRef(0),j=D.useRef(!1),H=D.useRef(R);D.useEffect(()=>{H.current=R},[R]);const L=D.useRef(O);D.useEffect(()=>{L.current=R.filter},[R.filter]);const V=D.useRef(y);D.useEffect(()=>{V.current=y},[y]),D.useEffect(()=>{A(P=>({...P,items:n}))},[n]),D.useEffect(()=>{A(P=>({...P,filter:{...o||{}},loading:!1,hasMore:!0,error:null,items:[]}))},[d]);const J=D.useCallback(async()=>{if(!V.current||j.current)return null;j.current=!0;const P=w.current;try{const ae=H.current;if(ae.loading||!ae.hasMore)return null;A(je=>({...je,loading:!0,error:null}));const $=L.current,Se=await x(c($,E)),me=YB(Se);return w.current!==P?null:(A(je=>{const Re=GB(je.items,me),ke=me.length,Ye=($&&$.limit!=null?$.limit:void 0)??(je.filter&&je.filter.limit!=null?je.filter.limit:void 0),et=Ye==null?ke>0:ke===Ye;et||p();const G=et?(()=>{const ce={fetched:me,fetchedCount:ke,limit:Ye,params:$,result:Se};return(s.length>=2?s(je.filter,ce):s(je.filter))??je.filter})():je.filter;return L.current=G,{...je,items:Re,filter:G,hasMore:et,loading:!1,result:Se}}),Se)}catch(ae){return w.current===P&&A($=>({...$,loading:!1,hasMore:!1,error:ae})),null}finally{j.current=!1}},[x,c,E,p,s]),F=D.useCallback(async(P={})=>{w.current+=1,j.current=!1;const ae={...P||{}};return L.current=ae,A($=>({...$,filter:ae,loading:!1,hasMore:!0,error:null,items:[],result:null})),await new Promise($=>requestAnimationFrame($)),J()},[J]),K=D.useRef(null),k=D.useCallback(P=>{K.current=P},[]);return D.useEffect(()=>{const P=K.current;if(!y||!P)return;const ae=new IntersectionObserver(([me])=>{me.isIntersecting&&V.current&&J()});ae.observe(P);let $=!1;return(async()=>{if(v)for(await new Promise(me=>requestAnimationFrame(me)),await new Promise(me=>setTimeout(me,0));!$&&V.current;){const me=H.current;if(me.loading||!me.hasMore||!QB(P))break;await J(),await new Promise(je=>requestAnimationFrame(je))}})(),()=>{$=!0,ae.disconnect()}},[y,v,J,d]),{items:R.items,loading:R.loading,error:R.error,hasMore:R.hasMore,filter:R.filter,result:R.result,loadMore:J,restart:F,sentinelRef:k}},h_=n=>String(n??"").replace(/^\/+|\/+$/g,""),H2=({app:n="_",model:o="_",action:c="view",withId:s=!1,idParam:d=":id"}={})=>{const p={app:h_(n),model:h_(o),action:h_(c),withId:!!s,idParam:String(d).startsWith(":")?String(d):`:${String(d)}`},y=`/${p.app}/${p.model}/${p.action}`.replace(/\/+/g,"/"),v=p.withId?`${y}/${p.idParam}`:y,x={path:v,segments:p,toString(){return v},valueOf(){return v},[Symbol.toPrimitive](){return v},change(E={}){return H2({...p,...E})},app(E){return x.change({app:E})},model(E){return x.change({model:E})},action(E){return x.change({action:E})},id(E=!0){return x.change({withId:E})},idParam(E=":id"){return x.change({idParam:E})}};return x},pE="dochazka";H2({app:pE});const Wy=`${pE}/event`,mE=`${Wy}/list/`,IB=`${Wy}/create/`,ZB=`${Wy}/view/`,JB=`${Wy}/edit/`,FB=`${Wy}/delete/`,$2=ZB,p_=mE,m_=":id",eg=`${$2}${m_}`,V2=`${JB}${m_}`,KB=`${FB}${m_}`,yE=({item:n,LinkURI:o=$2,action:c="view",children:s,...d})=>{const p=o.replace("view",c);return T.jsx(au,{to:p+(n==null?void 0:n.id),...d,children:s||(n==null?void 0:n.fullname)||(n==null?void 0:n.name)||(n==null?void 0:n.id)||"Nevim"})};Ax("EventGQLModel",yE);const k2=({item:n,children:o,title:c=null})=>(c||(c=T.jsxs(T.Fragment,{children:[T.jsx(eE,{})," ",T.jsx(yE,{item:n})]})),T.jsx(Qa,{title:c,children:o})),tg=({children:n})=>T.jsx(va,{className:"mt-3 mb-2",children:T.jsx(Qt,{className:"col-12",children:T.jsx("h5",{children:n})})}),gE=n=>n?new Date(n).toLocaleString("cs-CZ"):"",Sr=({label:n,value:o,isLink:c=!1,item:s=null})=>o==null||o===""?null:T.jsxs(va,{className:"mb-1",children:[T.jsx(Qt,{className:"col-4",children:T.jsx("b",{children:n})}),T.jsx(Qt,{className:"col-8",children:c&&s?T.jsx(yE,{item:s,children:o}):String(o)})]}),G2=({items:n,emptyText:o="Žádné položky"})=>!n||n.length===0?T.jsx("div",{children:o}):T.jsx(T.Fragment,{children:n.map((c,s)=>T.jsx("div",{className:"mb-2",children:T.jsx(yE,{item:c,children:(c==null?void 0:c.name)||(c==null?void 0:c.nameEn)||(c==null?void 0:c.id)||`Položka ${s+1}`})},(c==null?void 0:c.id)||s))}),q2=({item:n,children:o})=>{var d,p,y,v;const c=((d=n==null?void 0:n.subevents)==null?void 0:d.length)??0,s=((p=n==null?void 0:n.userInvitations)==null?void 0:p.length)??0;return T.jsxs(T.Fragment,{children:[T.jsx(tg,{children:"Základní informace"}),T.jsx(Sr,{label:"Typ modelu",value:n==null?void 0:n.__typename}),T.jsx(Sr,{label:"ID",value:n==null?void 0:n.id,isLink:!0,item:n}),T.jsx(Sr,{label:"Název",value:n==null?void 0:n.name,isLink:!0,item:n}),T.jsx(Sr,{label:"Název EN",value:n==null?void 0:n.nameEn}),T.jsx(tg,{children:"Čas a stav"}),T.jsx(Sr,{label:"Vytvořeno",value:gE(n==null?void 0:n.created)}),T.jsx(Sr,{label:"Poslední změna",value:gE(n==null?void 0:n.lastchange)}),T.jsx(Sr,{label:"Začátek",value:gE(n==null?void 0:n.startdate)}),T.jsx(Sr,{label:"Konec",value:gE(n==null?void 0:n.enddate)}),T.jsx(Sr,{label:"Validní",value:n==null?void 0:n.valid}),T.jsx(tg,{children:"Detaily"}),T.jsx(Sr,{label:"Popis",value:n==null?void 0:n.description}),T.jsx(Sr,{label:"Místo",value:n==null?void 0:n.place}),T.jsx(Sr,{label:"Cesta",value:n==null?void 0:n.path}),T.jsx(tg,{children:"Souhrn"}),T.jsx(Sr,{label:"Počet subevents",value:c}),T.jsx(Sr,{label:"Počet účastí",value:s}),T.jsx(tg,{children:"Vazby"}),T.jsxs(va,{className:"mb-3",children:[T.jsx(Qt,{className:"col-4",children:T.jsx("b",{children:"Subeventy"})}),T.jsx(Qt,{className:"col-8",children:T.jsx(G2,{items:n==null?void 0:n.subevents,emptyText:"Žádné subeventy"})})]}),T.jsxs(va,{className:"mb-3",children:[T.jsx(Qt,{className:"col-4",children:T.jsx("b",{children:"Účasti"})}),T.jsx(Qt,{className:"col-8",children:T.jsx(G2,{items:n==null?void 0:n.userInvitations,emptyText:"Žádné účasti"})})]}),T.jsx(hs,{label:"Moje Role",children:((v=(y=n==null?void 0:n.rbacobject)==null?void 0:y.currentUserRoles)==null?void 0:v.length)>0?n.rbacobject.currentUserRoles.map(x=>{var E;return(E=x.roletype)==null?void 0:E.name}).join(", "):"Žádná role"}),o]})},y_=n=>T.jsx(X2,{...n}),Y2=NB,PB={oneOfRoles:["superadmin"],mode:"absolute"},Q2={name:"Nový"},WB=({mutationAsyncAction:n=Y2,CreateDialog:o=e8,DefaultContent:c=y_,readItemURI:s=eg,rbacitem:d,item:p=Q2,...y})=>T.jsx(e_,{...y,DefaultContent:c,CreateDialog:o,readItemURI:s,rbacitem:d,item:p,mutationAsyncAction:n,...PB}),e8=({title:n="Nov(ý/é)",DefaultContent:o=y_,readItemURI:c=eg,item:s=Q2,...d})=>T.jsx(uE,{...d,title:n,DefaultContent:o,readItemURI:c,item:s}),t8=({mutationAsyncAction:n=Y2,DefaultContent:o=y_,readItemURI:c=eg,...s})=>T.jsx(t_,{...s,DefaultContent:o,readItemURI:c,mutationAsyncAction:n}),g_=n=>T.jsx(X2,{...n}),v_=UB,vE={oneOfRoles:["superadmin","administrátor"],mode:"absolute"},n8=({uriPattern:n=V2,...o})=>T.jsx(cE,{...o,uriPattern:n,...vE}),a8=({DefaultContent:n=g_,mutationAsyncAction:o=v_,...c})=>T.jsx(dE,{...c,DefaultContent:n,mutationAsyncAction:o,...vE}),l8=({DefaultContent:n=g_,Dialog:o=a8,mutationAsyncAction:c=v_,...s})=>T.jsx(fE,{...s,DefaultContent:n,Dialog:o,mutationAsyncAction:c,...vE}),r8=({DefaultContent:n=g_,mutationAsyncAction:o=v_,...c})=>T.jsx(n_,{...c,DefaultContent:n,mutationAsyncAction:o,...vE}),b_=q2,E_=BB,S_={oneOfRoles:["superadmin"],mode:"absolute"},o8=({mutationAsyncAction:n=E_,DefaultContent:o=b_,Dialog:c=i8,vectorItemsURI:s=mE,onOk:d,...p})=>T.jsx(hE,{...p,DefaultContent:o,Dialog:c,mutationAsyncAction:n,vectorItemsURI:s,onOk:d,...S_}),i8=({mutationAsyncAction:n=E_,DefaultContent:o=b_,vectorItemsURI:c=mE,...s})=>T.jsx(r_,{...s,DefaultContent:o,mutationAsyncAction:n,vectorItemsURI:c,...S_}),u8=({mutationAsyncAction:n=E_,DefaultContent:o=b_,vectorItemsURI:c=mE,...s})=>T.jsx(o_,{...s,DefaultContent:o,mutationAsyncAction:n,vectorItemsURI:c,...S_}),c8=({children:n,preserveHash:o=!0,preserveSearch:c=!0,...s})=>T.jsx(au,{to:p_,preserveHash:o,preserveSearch:c,...s,children:n}),s8=({item:n})=>T.jsxs(k2,{item:n,title:"Nástroje",children:[T.jsx(c8,{className:"btn btn-outline-success",children:"Stránka"}),T.jsx(n8,{className:"btn btn-outline-success",item:n,children:"Upravit"}),T.jsx(l8,{className:"btn btn-outline-success",item:n,children:"Upravit Dialog"}),T.jsx(WB,{className:"btn btn-outline-success",rbacitem:{},children:"Vytvořit nový"}),T.jsx(o8,{className:"btn btn-outline-danger",item:n,children:"Odstranit"})]}),f8=({item:n,children:o,CardCapsule:c=k2,MediumContent:s=q2})=>T.jsx(c,{item:n,children:T.jsxs(va,{children:[T.jsxs(Mx,{children:[T.jsx(c,{item:n,title:"Detail",children:T.jsx(s,{item:n})}),T.jsx(s8,{item:n})]}),T.jsx(jx,{children:o})]})}),X2=({item:n,onChange:o=d=>null,onBlur:c=d=>null,children:s})=>T.jsxs(T.Fragment,{children:[T.jsx(Fl,{id:"name",type:"string",label:"Název",className:"form-control",value:(n==null?void 0:n.name)||"",onChange:o,onBlur:c}),T.jsx(Fl,{id:"description",type:"string",label:"Popis",className:"form-control",value:(n==null?void 0:n.description)||"",onChange:o,onBlur:c}),s]}),bE=({queryAsyncAction:n=$B,PageNavbar:o=()=>null,ItemLayout:c=f8,SubPage:s=null,...d})=>T.jsx(u_,{queryAsyncAction:n,PageNavbar:o,ItemLayout:c,SubPage:s,...d}),d8=({children:n,PageNavbar:o=()=>null})=>T.jsxs(T.Fragment,{children:[T.jsx(o,{}),n]}),h8=({data:n})=>T.jsx(Fy,{data:n}),I2=D.createContext(null),ep=()=>D.useContext(I2);function p8(n,o){if(!n||typeof n!="object"||Array.isArray(n))return!1;const c=Object.keys(n);return c.length===1&&c[0]===o&&Array.isArray(n[o])}function m8(n,o=[]){const c=o.filter(Boolean).filter(d=>Object.keys(d).length>0),s=[];for(const d of c)p8(d,n)?s.push(...d[n]):s.push(d);return s.length===0?{}:s.length===1?s[0]:{[n]:s}}const T_=({id:n,label:o,resetKey:c,join:s="_and",onChange:d=()=>null,children:p})=>{const y=ep(),[v,x]=D.useState({}),[E,O]=D.useState(s),R=D.useCallback(k=>{const{id:P,value:ae}=k.target;x($=>({...$,[P]:ae}))},[]),A=D.useMemo(()=>Object.values(v).filter(Boolean).map(P=>!Array.isArray(P)||P.length===0?null:P.length===1?P[0]:{_and:P}).filter(Boolean),[v]),w=A.length>1,j=D.useMemo(()=>m8(E,A),[E,A]),H=D.useMemo(()=>n?{[n]:j}:j,[n,j]);D.useEffect(()=>{d({where:H})},[H,d]),D.useEffect(()=>{if(!(y!=null&&y.handleChange))return;const k=!H||typeof H=="object"&&Object.keys(H).length===0;return y.handleChange({target:{id:n??"__root__",value:k?null:[H]}}),()=>{y.handleChange({target:{id:n??"__root__",value:null}})}},[y,H,n]);const L=D.useCallback(k=>{O(k.target.value)},[]),V=D.useCallback(()=>H,[H]),[J,F]=D.useState(0),K=D.useCallback(()=>{x({}),O(s),F(k=>k+1)},[s]);return T.jsx(I2.Provider,{value:{handleChange:R,readFilter:V,resetFilter:K},children:T.jsxs(lu,{title:o||n||"where",children:[w&&T.jsxs(va,{children:[T.jsx(Qt,{children:T.jsxs("label",{children:[T.jsx("input",{type:"radio",name:`join-${n??"root"}`,value:"_and",checked:E==="_and",onChange:L}),"_and"]})}),T.jsx(Qt,{children:T.jsxs("label",{children:[T.jsx("input",{type:"radio",name:`join-${n??"root"}`,value:"_or",checked:E==="_or",onChange:L}),"_or"]})})]}),T.jsx("div",{children:p},c??J)]})})};function y8(n){return!n||typeof n!="object"?!0:Array.isArray(n)?n.length===0:Object.keys(n).length===0}function g8(n){return JSON.stringify(n)}const x_=({onClick:n,paramName:o="where",replace:c=!0,...s})=>{const d=ep(),[p,y]=wy(),v=D.useCallback(()=>{if(!(d!=null&&d.readFilter))throw Error("<FilterButton /> must be placed inside <Filter />");const x=new URLSearchParams(p);x.delete(o),n&&n({where:{}}),d.resetFilter&&d.resetFilter(),y(x,{replace:c})},[d,n,p,y,o,c]);return T.jsx("button",{...s,onClick:v})},__=({onClick:n,paramName:o="where",replace:c=!0,...s})=>{const d=ep(),[p,y]=wy(),v=D.useCallback(()=>{if(!(d!=null&&d.readFilter))throw Error("<FilterButton /> must be placed inside <Filter />");const x=d.readFilter(),E={where:x};if(n)return n(E);const O=new URLSearchParams(p);y8(x)?O.delete(o):O.set(o,g8(x)),y(O,{replace:c})},[d,n,p,y,o,c]);return T.jsx("button",{...s,onClick:v})},R_=({id:n,label:o,initialValue:c="",initialOp:s="_ilike"})=>{const d=ep();if(!d)throw Error("<StringFilter /> must be placed inside <Filter />");const[p,y]=D.useState(s),[v,x]=D.useState(c),[E,O]=D.useState(""),[R,A]=D.useState(""),w=D.useCallback(P=>{d.handleChange({target:{id:n,value:P}})},[d,n]),j=D.useCallback((P,ae)=>{if(!ae)return null;let $=ae;return P==="_ilike"&&($=ae.includes("%")?ae:`%${ae}%`),[{[n]:{[P]:$}}]},[n]),H=D.useCallback((P,ae)=>{const $=[];return P&&$.push({[n]:{_gt:P}}),ae&&$.push({[n]:{_lt:ae}}),$.length?$:null},[n]),L=D.useCallback(({nextOp:P=p,nextText:ae=v,nextFrom:$=E,nextTo:Se=R})=>{w(P==="_between"?H($,Se):j(P,ae))},[p,v,E,R,w,j,H]),V=D.useCallback(P=>{const ae=P.target.value;ae!==p&&(y(ae),L(ae==="_between"?{nextOp:ae}:{nextOp:ae}))},[p,L]),J=D.useCallback(P=>{const ae=P.target.value;ae!==v&&(x(ae),p!=="_between"&&L({nextText:ae}))},[p,v,L]),F=D.useCallback(P=>{const ae=P.target.value;ae!==E&&(O(ae),p==="_between"&&L({nextFrom:ae}))},[p,E,L]),K=D.useCallback(P=>{const ae=P.target.value;ae!==R&&(A(ae),p==="_between"&&L({nextTo:ae}))},[p,R,L]),k=p==="_between";return T.jsx(lu,{title:o||n,children:T.jsxs(va,{children:[T.jsx(Qt,{children:T.jsxs("select",{className:"form-control",value:p,onChange:V,children:[T.jsx("option",{value:"Obsahuje",children:"_ilike"}),T.jsx("option",{value:"Začíná na",children:"_startswith"}),T.jsx("option",{value:"Končí na",children:"_endswith"}),T.jsx("option",{value:"Je rovno",children:"_eq"}),T.jsx("option",{value:"Je větší než",children:"_gt"}),T.jsx("option",{value:"Je menší než",children:"_lt"}),T.jsx("option",{value:"Mezi",children:"_between"})]})}),k?T.jsxs(T.Fragment,{children:[T.jsx(Qt,{children:T.jsx(Fl,{className:"form-control",value:E,onChange:F,placeholder:"from…"})}),T.jsx(Qt,{children:p==="_between"&&T.jsx(Fl,{className:"form-control",value:R,onChange:K,placeholder:"to…"})})]}):T.jsx(Qt,{children:T.jsx(Fl,{className:"form-control",value:v,onChange:J})})]})})};function v8(n){const o=new Date(n);return Number.isNaN(o.getTime())?null:o.toISOString()}const O_=({id:n,label:o,initialOp:c="_gte",initialValue:s="",emitUtcIso:d=!0})=>{const p=ep();if(!p)throw Error("<DateTimeFilter /> must be placed inside <Filter />");const[y,v]=D.useState(c),[x,E]=D.useState(s),[O,R]=D.useState(""),[A,w]=D.useState(""),j=D.useCallback($=>$?d?v8($):$:null,[d]),H=D.useCallback($=>{p.handleChange({target:{id:n,value:$}})},[p,n]),L=D.useCallback(($,Se)=>{const me=j(Se);return me?[{[n]:{[$]:me}}]:null},[n,j]),V=D.useCallback(($,Se)=>{const me=[],je=j($),Re=j(Se);return je&&me.push({[n]:{_gt:je}}),Re&&me.push({[n]:{_lt:Re}}),me.length?me:null},[n,j]),J=D.useCallback(({nextOp:$=y,nextText:Se=x,nextFrom:me=O,nextTo:je=A})=>{H($==="_between"?V(me,je):L($,Se))},[y,x,O,A,H,L,V]),F=D.useCallback($=>{const Se=$.target.value;Se!==y&&(v(Se),J({nextOp:Se}))},[y,J]),K=D.useCallback($=>{const Se=$.target.value;Se!==x&&(E(Se),y!=="_between"&&J({nextText:Se}))},[y,x,J]),k=D.useCallback($=>{const Se=$.target.value;Se!==O&&(R(Se),y==="_between"&&J({nextFrom:Se}))},[y,O,J]),P=D.useCallback($=>{const Se=$.target.value;Se!==A&&(w(Se),y==="_between"&&J({nextTo:Se}))},[y,A,J]),ae=y==="_between";return T.jsx(lu,{title:o||n,children:T.jsxs(va,{children:[T.jsx(Qt,{children:T.jsxs("select",{className:"form-control",value:y,onChange:F,children:[T.jsx("option",{value:"_eq",children:"_eq"}),T.jsx("option",{value:"_gt",children:"_gt"}),T.jsx("option",{value:"_gte",children:"_gte"}),T.jsx("option",{value:"_lt",children:"_lt"}),T.jsx("option",{value:"_lte",children:"_lte"}),T.jsx("option",{value:"_between",children:"_between"})]})}),ae?T.jsxs(T.Fragment,{children:[T.jsx(Qt,{children:T.jsx(Fl,{className:"form-control",type:"datetime-local",value:O,onChange:k,placeholder:"from…"})}),T.jsx(Qt,{children:T.jsx(Fl,{className:"form-control",type:"datetime-local",value:A,onChange:P,placeholder:"to…"})})]}):T.jsx(Qt,{children:T.jsx(Fl,{className:"form-control",type:"datetime-local",value:x,onChange:K})})]})})},Z2=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,A_=({id:n,label:o,initialValue:c=""})=>{const s=ep();if(!s)throw Error("<UUIDFilter /> must be placed inside <Filter />");const[d,p]=D.useState(c),y=D.useMemo(()=>(d??"").trim(),[d]),x=y.length===0?!0:Z2.test(y),E=D.useCallback(A=>{s.handleChange({target:{id:n,value:A}})},[s,n]),O=D.useCallback(A=>{const w=(A??"").trim();if(!w){E(null);return}if(!Z2.test(w)){E(null);return}E([{[n]:{_eq:w}}])},[n,E]),R=D.useCallback(A=>{const w=A.target.value;w!==d&&(p(w),O(w))},[d,O]);return T.jsx(lu,{title:o||n,children:T.jsxs(va,{children:[T.jsx(Qt,{style:{minWidth:80},children:T.jsx("span",{style:{opacity:.7},children:"(_eq)"})}),T.jsxs(Qt,{children:[T.jsx(Fl,{className:`form-control ${x?"":"is-invalid"}`,value:d,onChange:R,placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}),!x&&T.jsx("div",{className:"invalid-feedback",style:{display:"block"},children:"Neplatné UUID. Očekávám formát 8-4-4-4-12 hex (např. 550e8400-e29b-41d4-a716-446655440000)."})]})]})})},b8=({id:n,onChange:o,children:c})=>T.jsxs(T_,{id:n,onChange:o,children:[T.jsx(A_,{id:"id"}),T.jsx(R_,{id:"name"}),T.jsx(O_,{id:"created",emitUtcIso:!1}),c]}),C_=({collapsed:n=!0,children:o,buttonLabel:c,buttonLabelCollapsed:s="Zobrazit",buttonLabelExpanded:d="Skrýt",onToggle:p,...y})=>{const[v,x]=D.useState(n);D.useEffect(()=>{x(n)},[n]);const E=D.useCallback(()=>{x(R=>{const A=!R;return p==null||p(A),A})},[p]),O=c??(v?s:d);return T.jsxs(T.Fragment,{children:[T.jsx("div",{hidden:v,"aria-hidden":v,children:o}),T.jsx("button",{type:"button",...y,onClick:E,"aria-expanded":!v,children:O})]})};function E8(n,o="where"){const c=n.get(o);if(!c)return null;try{const s=JSON.parse(c);return s&&typeof s=="object"?s:null}catch{return null}}const D_="gr_where",J2=({children:n,queryAsyncAction:o=kB})=>{const[c]=wy(),s=D.useMemo(()=>E8(c,D_),[c.toString()]),{items:d,loading:p,error:y,hasMore:v,sentinelRef:x,loadMore:E,restart:O}=d_({asyncAction:o,actionParams:{skip:0,limit:25,where:s}});return D.useEffect(()=>{O({skip:0,limit:25,where:s})},[s]),T.jsxs(d8,{children:[T.jsx(C_,{className:"form-control btn btn-outline-primary",buttonLabelCollapsed:"Zobrazit filtr",buttonLabelExpanded:"Skrýt filtr",children:T.jsxs(b8,{children:[T.jsx(__,{className:"form-control btn btn-outline-success",paramName:D_,children:"Filtrovat"}),T.jsx(x_,{className:"form-control btn btn-warning",paramName:D_,children:"Vymazat filtr"})]})}),T.jsx(h8,{data:d}),T.jsx(Do,{error:y,loading:p,text:"Nahrávám další..."}),v&&T.jsx("div",{ref:x,style:{height:80,backgroundColor:"lightgray"}}),v&&T.jsx("button",{className:"btn btn-success form-control",onClick:()=>E(),children:"Více"})]})},S8=({SubPage:n=r8,...o})=>T.jsx(bE,{SubPage:n,...o}),T8=({...n})=>T.jsxs(va,{children:[T.jsx(kx,{}),T.jsx(Qx,{children:T.jsx(t8,{...n})})]}),x8=({SubPage:n=T8,...o})=>T.jsx(bE,{SubPage:n,...o}),F2=({SubPage:n=Ky,...o})=>T.jsx(bE,{SubPage:n,...o}),_8=({SubPage:n=u8,...o})=>T.jsx(bE,{SubPage:n,...o}),R8=[{path:IB,element:T.jsx(x8,{})},{path:p_,element:T.jsx(J2,{})},{path:eg,element:T.jsx(F2,{})},{path:V2,element:T.jsx(S8,{})},{path:KB,element:T.jsx(_8,{})},{path:p_.replace("list",":any"),element:T.jsx(J2,{})},{path:eg.replace("view",":any"),element:T.jsx(F2,{})}],O8=`
|
|
905
|
+
fragment StudyPlanLesson on StudyPlanLessonGQLModel {
|
|
906
|
+
__typename
|
|
907
|
+
id
|
|
908
|
+
lastchange
|
|
909
|
+
created
|
|
910
|
+
createdbyId
|
|
911
|
+
changedbyId
|
|
912
|
+
rbacobjectId
|
|
913
|
+
order
|
|
914
|
+
name
|
|
915
|
+
nameEn
|
|
916
|
+
length
|
|
917
|
+
eventId
|
|
918
|
+
event {
|
|
919
|
+
...Event
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
linkedWithId
|
|
923
|
+
planId
|
|
924
|
+
|
|
925
|
+
linkedWith { id }
|
|
926
|
+
}
|
|
927
|
+
`,A8=`
|
|
928
|
+
fragment Medium on StudyPlanLessonGQLModel {
|
|
929
|
+
...StudyPlanLesson
|
|
930
|
+
}
|
|
931
|
+
`,C8=`
|
|
932
|
+
fragment Large on StudyPlanLessonGQLModel {
|
|
933
|
+
...Medium
|
|
934
|
+
}
|
|
935
|
+
`,K2=Ft(`${O8}`),D8=Ft(`${A8}`,K2,f_),ng=Ft(`${C8}`,D8),w8=`
|
|
936
|
+
fragment Link on StudyPlanGQLModel {
|
|
937
|
+
__typename
|
|
938
|
+
id
|
|
939
|
+
lastchange
|
|
940
|
+
created
|
|
941
|
+
createdbyId
|
|
942
|
+
changedbyId
|
|
943
|
+
rbacobjectId
|
|
944
|
+
semesterId
|
|
945
|
+
examId
|
|
946
|
+
eventId
|
|
947
|
+
event {
|
|
948
|
+
...Event
|
|
949
|
+
}
|
|
950
|
+
lessons {
|
|
951
|
+
...StudyPlanLesson
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
`,M8=`
|
|
955
|
+
fragment Medium on StudyPlanGQLModel {
|
|
956
|
+
...Link
|
|
957
|
+
rbacobject {
|
|
958
|
+
...RBRoles
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
`,j8=`
|
|
962
|
+
fragment Large on StudyPlanGQLModel {
|
|
963
|
+
...Medium
|
|
964
|
+
}
|
|
965
|
+
`,N8=`
|
|
966
|
+
fragment Role on RoleGQLModel {
|
|
967
|
+
__typename
|
|
968
|
+
id
|
|
969
|
+
lastchange
|
|
970
|
+
created
|
|
971
|
+
createdbyId
|
|
972
|
+
changedbyId
|
|
973
|
+
rbacobjectId
|
|
974
|
+
createdby { id __typename }
|
|
975
|
+
changedby { id __typename }
|
|
976
|
+
rbacobject { id __typename }
|
|
977
|
+
valid
|
|
978
|
+
deputy
|
|
979
|
+
startdate
|
|
980
|
+
enddate
|
|
981
|
+
roletypeId
|
|
982
|
+
userId
|
|
983
|
+
groupId
|
|
984
|
+
roletype { __typename id }
|
|
985
|
+
user { __typename id fullname }
|
|
986
|
+
group { __typename id name }
|
|
987
|
+
}
|
|
988
|
+
`,z8=`
|
|
989
|
+
fragment RBRoles on RBACObjectGQLModel {
|
|
990
|
+
__typename
|
|
991
|
+
id
|
|
992
|
+
currentUserRoles {
|
|
993
|
+
__typename
|
|
994
|
+
id
|
|
995
|
+
lastchange
|
|
996
|
+
valid
|
|
997
|
+
startdate
|
|
998
|
+
enddate
|
|
999
|
+
roletype {
|
|
1000
|
+
__typename
|
|
1001
|
+
id
|
|
1002
|
+
name
|
|
1003
|
+
}
|
|
1004
|
+
group {
|
|
1005
|
+
__typename
|
|
1006
|
+
id
|
|
1007
|
+
name
|
|
1008
|
+
grouptype {
|
|
1009
|
+
__typename
|
|
1010
|
+
id
|
|
1011
|
+
name
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}`;Ft(`${N8}`);const U8=Ft(`${z8}`),L8=Ft(`${w8}`),B8=Ft(`${M8}`,L8,U8),ag=Ft(`${j8}`,B8,f_,K2),H8=Ft(`
|
|
1016
|
+
mutation roleTypeInsert(
|
|
1017
|
+
$mastertypeId: UUID # null,
|
|
1018
|
+
$id: UUID # null,
|
|
1019
|
+
$name: String # null,
|
|
1020
|
+
$nameEn: String # null,
|
|
1021
|
+
$subtypes: [RoleTypeInsertGQLModel!] # null
|
|
1022
|
+
) {
|
|
1023
|
+
roleTypeInsert(
|
|
1024
|
+
roleType: {
|
|
1025
|
+
mastertypeId: $mastertypeId,
|
|
1026
|
+
id: $id,
|
|
1027
|
+
name: $name,
|
|
1028
|
+
nameEn: $nameEn,
|
|
1029
|
+
subtypes: $subtypes}
|
|
1030
|
+
) {
|
|
1031
|
+
... on InsertError { ...InsertError }
|
|
1032
|
+
... on RoleTypeGQLModel { ...Large }
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
fragment InsertError on InsertError {
|
|
1038
|
+
__typename
|
|
1039
|
+
msg
|
|
1040
|
+
failed
|
|
1041
|
+
code
|
|
1042
|
+
location
|
|
1043
|
+
input
|
|
1044
|
+
|
|
1045
|
+
}
|
|
1046
|
+
`,ag),$8=Gn(H8),V8=Ft(`
|
|
1047
|
+
mutation roleTypeUpdate(
|
|
1048
|
+
$id: UUID! # null,
|
|
1049
|
+
$lastchange: DateTime! # null,
|
|
1050
|
+
$name: String # null,
|
|
1051
|
+
$nameEn: String # null
|
|
1052
|
+
) {
|
|
1053
|
+
roleTypeUpdate(
|
|
1054
|
+
roleType: {
|
|
1055
|
+
id: $id,
|
|
1056
|
+
lastchange: $lastchange,
|
|
1057
|
+
name: $name,
|
|
1058
|
+
nameEn: $nameEn}
|
|
1059
|
+
) {
|
|
1060
|
+
... on RoleTypeGQLModel { ...Large }
|
|
1061
|
+
... on RoleTypeGQLModelUpdateError { ...Error }
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
fragment Error on RoleTypeGQLModelUpdateError {
|
|
1066
|
+
__typename
|
|
1067
|
+
Entity {
|
|
1068
|
+
...Large
|
|
1069
|
+
}
|
|
1070
|
+
msg
|
|
1071
|
+
failed
|
|
1072
|
+
code
|
|
1073
|
+
location
|
|
1074
|
+
input
|
|
1075
|
+
}
|
|
1076
|
+
`,ag),k8=Gn(V8,Ub,Hy),G8=Ft(`
|
|
1077
|
+
mutation roleTypeDelete(
|
|
1078
|
+
$id: UUID! # null,
|
|
1079
|
+
$lastchange: DateTime! # null
|
|
1080
|
+
) {
|
|
1081
|
+
roleTypeDelete(
|
|
1082
|
+
roleType: {
|
|
1083
|
+
id: $id,
|
|
1084
|
+
lastchange: $lastchange}
|
|
1085
|
+
) {
|
|
1086
|
+
...RoleTypeGQLModelDeleteError
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
fragment RoleTypeGQLModelDeleteError on RoleTypeGQLModelDeleteError {
|
|
1091
|
+
__typename
|
|
1092
|
+
Entity {
|
|
1093
|
+
...Large
|
|
1094
|
+
}
|
|
1095
|
+
msg
|
|
1096
|
+
code
|
|
1097
|
+
failed
|
|
1098
|
+
location
|
|
1099
|
+
input
|
|
1100
|
+
}
|
|
1101
|
+
`,ag),q8=Gn(G8),Y8=Ft(`
|
|
1102
|
+
query studyPlanById($id: UUID!) {
|
|
1103
|
+
studyPlanById(id: $id) {
|
|
1104
|
+
...Large
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
`,ag),Q8=Gn(Y8),X8=Ft(`
|
|
1108
|
+
query studyPlanPage($skip: Int, $limit: Int, $orderby: String, $where: StudyPlanInputFilter) {
|
|
1109
|
+
studyPlanPage(skip: $skip, limit: $limit, orderby: $orderby, where: $where) {
|
|
1110
|
+
...Large
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
`,ag),I8=Gn(X8),lg=`${pE}/StudyPlanGQLModel`,EE=`${lg}/list/`,Z8=`${lg}/create/`,J8=`${lg}/view/`,F8=`${lg}/edit/`,K8=`${lg}/delete/`,P2=J8,w_=EE,M_=":id",rg=`${P2}${M_}`,W2=`${F8}${M_}`,P8=`${K8}${M_}`,SE=({item:n,LinkURI:o=P2,action:c="view",children:s,...d})=>{const p=o.replace("view",c);return T.jsx(au,{to:p+(n==null?void 0:n.id),...d,children:s||(n==null?void 0:n.fullname)||(n==null?void 0:n.name)||(n==null?void 0:n.id)||"Nevim"})};Ax("StudyPlanGQLModel",SE);const ew=({item:n,children:o,title:c=null})=>(c||(c=T.jsxs(T.Fragment,{children:[T.jsx(eE,{})," ",T.jsx(SE,{item:n})]})),T.jsx(Qa,{title:c,children:o})),tw=({item:n,children:o})=>{var c,s;return T.jsxs(T.Fragment,{children:[T.jsx(hs,{label:"ID",children:T.jsx(SE,{item:n,children:(n==null?void 0:n.id)||"Chyba dat!!"})}),T.jsx(hs,{label:"Vytvořeno",children:T.jsx(SE,{item:n,children:Nx(n==null?void 0:n.created)||"Chyba dat!!"})}),T.jsx("hr",{}),T.jsx(hs,{label:"Moje role",children:((s=(c=n==null?void 0:n.rbacobject)==null?void 0:c.currentUserRoles)==null?void 0:s.length)>0?n.rbacobject.currentUserRoles.map(d=>{var p;return(p=d.roletype)==null?void 0:p.name}).join(", "):"Žádné role!"})]})},j_=n=>T.jsx(lw,{...n}),nw=$8,W8={oneOfRoles:["superadmin"],mode:"absolute"},aw={name:"Nový"},eH=({mutationAsyncAction:n=nw,CreateDialog:o=tH,DefaultContent:c=j_,readItemURI:s=rg,rbacitem:d,item:p=aw,...y})=>T.jsx(e_,{...y,DefaultContent:c,CreateDialog:o,readItemURI:s,rbacitem:d,item:p,mutationAsyncAction:n,...W8}),tH=({title:n="Nov(ý/é)",DefaultContent:o=j_,readItemURI:c=rg,item:s=aw,...d})=>T.jsx(uE,{...d,title:n,DefaultContent:o,readItemURI:c,item:s}),nH=({mutationAsyncAction:n=nw,DefaultContent:o=j_,readItemURI:c=rg,...s})=>T.jsx(t_,{...s,DefaultContent:o,readItemURI:c,mutationAsyncAction:n}),N_=n=>T.jsx(lw,{...n}),z_=k8,TE={oneOfRoles:["administrátor"],mode:"absolute"},aH=({uriPattern:n=W2,...o})=>T.jsx(cE,{...o,uriPattern:n,...TE}),lH=({DefaultContent:n=N_,mutationAsyncAction:o=z_,...c})=>T.jsx(dE,{...c,DefaultContent:n,mutationAsyncAction:o,...TE}),rH=({DefaultContent:n=N_,Dialog:o=lH,mutationAsyncAction:c=z_,...s})=>T.jsx(fE,{...s,DefaultContent:n,Dialog:o,mutationAsyncAction:c,...TE}),oH=({DefaultContent:n=N_,mutationAsyncAction:o=z_,...c})=>T.jsx(n_,{...c,DefaultContent:n,mutationAsyncAction:o,...TE}),U_=tw,L_=q8,B_={oneOfRoles:["superadmin"],mode:"absolute"},iH=({mutationAsyncAction:n=L_,DefaultContent:o=U_,Dialog:c=uH,vectorItemsURI:s=EE,onOk:d,...p})=>T.jsx(hE,{...p,DefaultContent:o,Dialog:c,mutationAsyncAction:n,vectorItemsURI:s,onOk:d,...B_}),uH=({mutationAsyncAction:n=L_,DefaultContent:o=U_,vectorItemsURI:c=EE,...s})=>T.jsx(r_,{...s,DefaultContent:o,mutationAsyncAction:n,vectorItemsURI:c,...B_}),cH=({mutationAsyncAction:n=L_,DefaultContent:o=U_,vectorItemsURI:c=EE,...s})=>T.jsx(o_,{...s,DefaultContent:o,mutationAsyncAction:n,vectorItemsURI:c,...B_}),sH=({children:n,preserveHash:o=!0,preserveSearch:c=!0,...s})=>T.jsx(au,{to:w_,preserveHash:o,preserveSearch:c,...s,children:n}),fH=({item:n})=>T.jsxs(ew,{item:n,title:"Nástroje",children:[T.jsx(sH,{className:"btn btn-outline-success",children:"Stránka"}),T.jsx(aH,{className:"btn btn-outline-success",item:n,children:"Upravit"}),T.jsx(rH,{className:"btn btn-outline-success",item:n,children:"Upravit Dialog"}),T.jsx(eH,{className:"btn btn-outline-success",rbacitem:{},children:"Vytvořit nový"}),T.jsx(iH,{className:"btn btn-outline-danger",item:n,children:"Odstranit"})]}),dH=({item:n,children:o,CardCapsule:c=ew,MediumContent:s=tw})=>T.jsx(c,{item:n,children:T.jsxs(va,{children:[T.jsxs(Mx,{children:[T.jsx(c,{item:n,title:"Detailní informace",children:T.jsx(s,{item:n})}),T.jsx(fH,{item:n})]}),T.jsx(jx,{children:o})]})}),lw=({item:n,onChange:o=d=>null,onBlur:c=d=>null,children:s})=>T.jsxs(T.Fragment,{children:[T.jsx(Fl,{id:"name",label:"Jméno",className:"form-control",value:(n==null?void 0:n.name)||"Název",onChange:o,onBlur:c}),T.jsx(Fl,{id:"nameEn",label:"Anglický název",className:"form-control",value:(n==null?void 0:n.nameEn)||"Anglický název",onChange:o,onBlur:c}),s]}),xE=({queryAsyncAction:n=Q8,PageNavbar:o=()=>null,ItemLayout:c=dH,SubPage:s=null,...d})=>T.jsx(u_,{queryAsyncAction:n,PageNavbar:o,ItemLayout:c,SubPage:s,...d}),hH=({children:n,PageNavbar:o=()=>null})=>T.jsxs(T.Fragment,{children:[T.jsx(o,{}),n]}),pH=({data:n})=>T.jsx(Fy,{data:n}),mH=({id:n,onChange:o,children:c})=>T.jsxs(T_,{id:n,onChange:o,children:[T.jsx(A_,{id:"id"}),T.jsx(R_,{id:"name"}),T.jsx(O_,{id:"created",emitUtcIso:!1}),c]});function yH(n,o="where"){const c=n.get(o);if(!c)return null;try{const s=JSON.parse(c);return s&&typeof s=="object"?s:null}catch{return null}}const H_="gr_where",rw=({children:n,queryAsyncAction:o=I8})=>{const[c]=wy(),s=D.useMemo(()=>yH(c,H_),[c.toString()]),{items:d,loading:p,error:y,hasMore:v,sentinelRef:x,loadMore:E,restart:O}=d_({asyncAction:o,actionParams:{skip:0,limit:25,where:s}});return D.useEffect(()=>{O({skip:0,limit:25,where:s})},[s]),T.jsxs(hH,{children:[T.jsx(C_,{className:"form-control btn btn-outline-primary",buttonLabelCollapsed:"Zobrazit filtr",buttonLabelExpanded:"Skrýt filtr",children:T.jsxs(mH,{children:[T.jsx(__,{className:"form-control btn btn-outline-success",paramName:H_,children:"Filtrovat"}),T.jsx(x_,{className:"form-control btn btn-warning",paramName:H_,children:"Vymazat filtr"})]})}),T.jsx(pH,{data:d}),T.jsx(Do,{error:y,loading:p,text:"Nahrávám další..."}),v&&T.jsx("div",{ref:x,style:{height:80,backgroundColor:"lightgray"}}),v&&T.jsx("button",{className:"btn btn-success form-control",onClick:()=>E(),children:"Více"})]})},gH=({SubPage:n=oH,...o})=>T.jsx(xE,{SubPage:n,...o}),vH=({...n})=>T.jsxs(va,{children:[T.jsx(kx,{}),T.jsx(Qx,{children:T.jsx(nH,{...n})})]}),bH=({SubPage:n=vH,...o})=>T.jsx(xE,{SubPage:n,...o}),ow=({SubPage:n=Ky,...o})=>T.jsx(xE,{SubPage:n,...o}),EH=({SubPage:n=cH,...o})=>T.jsx(xE,{SubPage:n,...o}),SH=[{path:Z8,element:T.jsx(bH,{})},{path:w_,element:T.jsx(rw,{})},{path:rg,element:T.jsx(ow,{})},{path:W2,element:T.jsx(gH,{})},{path:P8,element:T.jsx(EH,{})},{path:w_.replace("list",":any"),element:T.jsx(rw,{})},{path:rg.replace("view",":any"),element:T.jsx(ow,{})}],TH=Ft(`
|
|
1114
|
+
mutation roleTypeInsert(
|
|
1115
|
+
$mastertypeId: UUID # null,
|
|
1116
|
+
$id: UUID # null,
|
|
1117
|
+
$name: String # null,
|
|
1118
|
+
$nameEn: String # null,
|
|
1119
|
+
$subtypes: [RoleTypeInsertGQLModel!] # null
|
|
1120
|
+
) {
|
|
1121
|
+
roleTypeInsert(
|
|
1122
|
+
roleType: {
|
|
1123
|
+
mastertypeId: $mastertypeId,
|
|
1124
|
+
id: $id,
|
|
1125
|
+
name: $name,
|
|
1126
|
+
nameEn: $nameEn,
|
|
1127
|
+
subtypes: $subtypes}
|
|
1128
|
+
) {
|
|
1129
|
+
... on InsertError { ...InsertError }
|
|
1130
|
+
... on RoleTypeGQLModel { ...Large }
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
fragment InsertError on InsertError {
|
|
1136
|
+
__typename
|
|
1137
|
+
msg
|
|
1138
|
+
failed
|
|
1139
|
+
code
|
|
1140
|
+
location
|
|
1141
|
+
input
|
|
1142
|
+
|
|
1143
|
+
}
|
|
1144
|
+
`,ng),xH=Gn(TH),_H=Ft(`
|
|
1145
|
+
mutation roleTypeUpdate(
|
|
1146
|
+
$id: UUID! # null,
|
|
1147
|
+
$lastchange: DateTime! # null,
|
|
1148
|
+
$name: String # null,
|
|
1149
|
+
$nameEn: String # null
|
|
1150
|
+
) {
|
|
1151
|
+
roleTypeUpdate(
|
|
1152
|
+
roleType: {
|
|
1153
|
+
id: $id,
|
|
1154
|
+
lastchange: $lastchange,
|
|
1155
|
+
name: $name,
|
|
1156
|
+
nameEn: $nameEn}
|
|
1157
|
+
) {
|
|
1158
|
+
... on RoleTypeGQLModel { ...Large }
|
|
1159
|
+
... on RoleTypeGQLModelUpdateError { ...Error }
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
fragment Error on RoleTypeGQLModelUpdateError {
|
|
1164
|
+
__typename
|
|
1165
|
+
Entity {
|
|
1166
|
+
...Large
|
|
1167
|
+
}
|
|
1168
|
+
msg
|
|
1169
|
+
failed
|
|
1170
|
+
code
|
|
1171
|
+
location
|
|
1172
|
+
input
|
|
1173
|
+
}
|
|
1174
|
+
`,ng),RH=Gn(_H,Ub,Hy),OH=Ft(`
|
|
1175
|
+
mutation roleTypeDelete(
|
|
1176
|
+
$id: UUID! # null,
|
|
1177
|
+
$lastchange: DateTime! # null
|
|
1178
|
+
) {
|
|
1179
|
+
roleTypeDelete(
|
|
1180
|
+
roleType: {
|
|
1181
|
+
id: $id,
|
|
1182
|
+
lastchange: $lastchange}
|
|
1183
|
+
) {
|
|
1184
|
+
...RoleTypeGQLModelDeleteError
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
fragment RoleTypeGQLModelDeleteError on RoleTypeGQLModelDeleteError {
|
|
1189
|
+
__typename
|
|
1190
|
+
Entity {
|
|
1191
|
+
...Large
|
|
1192
|
+
}
|
|
1193
|
+
msg
|
|
1194
|
+
code
|
|
1195
|
+
failed
|
|
1196
|
+
location
|
|
1197
|
+
input
|
|
1198
|
+
}
|
|
1199
|
+
`,ng),AH=Gn(OH),CH=Ft(`
|
|
1200
|
+
query studyPlanLessonById($id: UUID!) {
|
|
1201
|
+
studyPlanLessonById(id: $id) {
|
|
1202
|
+
...Large
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
`,ng),DH=Gn(CH),wH=Ft(`
|
|
1206
|
+
query studyPlanLessonPage($skip: Int, $limit: Int, $orderby: String, $where: StudyPlanLessonInputFilter) {
|
|
1207
|
+
studyPlanLessonPage(skip: $skip, limit: $limit, orderby: $orderby, where: $where) {
|
|
1208
|
+
...Large
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
`,ng),MH=Gn(wH),og=`${pE}/studyplanlesson`,_E=`${og}/list/`,jH=`${og}/create/`,NH=`${og}/view/`,zH=`${og}/edit/`,UH=`${og}/delete/`,iw=NH,$_=_E,V_=":id",ig=`${iw}${V_}`,uw=`${zH}${V_}`,LH=`${UH}${V_}`,cw=({item:n,LinkURI:o=iw,action:c="view",children:s,...d})=>{const p=o.replace("view",c);return T.jsx(au,{to:p+(n==null?void 0:n.id),...d,children:s||(n==null?void 0:n.fullname)||(n==null?void 0:n.name)||(n==null?void 0:n.id)||"Nevim"})};Ax("StudyPlanLessonGQLModel",cw);const sw=({item:n,children:o,title:c=null})=>(c||(c=T.jsxs(T.Fragment,{children:[T.jsx(eE,{})," ",T.jsx(cw,{item:n})]})),T.jsx(Qa,{title:c,children:o})),k_=n=>T.jsx(hw,{...n}),fw=xH,BH={oneOfRoles:["superadmin"],mode:"absolute"},dw={name:"Nový"},HH=({mutationAsyncAction:n=fw,CreateDialog:o=$H,DefaultContent:c=k_,readItemURI:s=ig,rbacitem:d,item:p=dw,...y})=>T.jsx(e_,{...y,DefaultContent:c,CreateDialog:o,readItemURI:s,rbacitem:d,item:p,mutationAsyncAction:n,...BH}),$H=({title:n="Nov(ý/é)",DefaultContent:o=k_,readItemURI:c=ig,item:s=dw,...d})=>T.jsx(uE,{...d,title:n,DefaultContent:o,readItemURI:c,item:s}),VH=({mutationAsyncAction:n=fw,DefaultContent:o=k_,readItemURI:c=ig,...s})=>T.jsx(t_,{...s,DefaultContent:o,readItemURI:c,mutationAsyncAction:n}),G_=n=>T.jsx(hw,{...n}),q_=RH,RE={oneOfRoles:["superadmin"],mode:"absolute"},kH=({uriPattern:n=uw,...o})=>T.jsx(cE,{...o,uriPattern:n,...RE}),GH=({DefaultContent:n=G_,mutationAsyncAction:o=q_,...c})=>T.jsx(dE,{...c,DefaultContent:n,mutationAsyncAction:o,...RE}),qH=({DefaultContent:n=G_,Dialog:o=GH,mutationAsyncAction:c=q_,...s})=>T.jsx(fE,{...s,DefaultContent:n,Dialog:o,mutationAsyncAction:c,...RE}),YH=({DefaultContent:n=G_,mutationAsyncAction:o=q_,...c})=>T.jsx(n_,{...c,DefaultContent:n,mutationAsyncAction:o,...RE}),Y_=Fb,Q_=AH,X_={oneOfRoles:["superadmin"],mode:"absolute"},QH=({mutationAsyncAction:n=Q_,DefaultContent:o=Y_,Dialog:c=XH,vectorItemsURI:s=_E,onOk:d,...p})=>T.jsx(hE,{...p,DefaultContent:o,Dialog:c,mutationAsyncAction:n,vectorItemsURI:s,onOk:d,...X_}),XH=({mutationAsyncAction:n=Q_,DefaultContent:o=Y_,vectorItemsURI:c=_E,...s})=>T.jsx(r_,{...s,DefaultContent:o,mutationAsyncAction:n,vectorItemsURI:c,...X_}),IH=({mutationAsyncAction:n=Q_,DefaultContent:o=Y_,vectorItemsURI:c=_E,...s})=>T.jsx(o_,{...s,DefaultContent:o,mutationAsyncAction:n,vectorItemsURI:c,...X_}),ZH=({children:n,preserveHash:o=!0,preserveSearch:c=!0,...s})=>T.jsx(au,{to:$_,preserveHash:o,preserveSearch:c,...s,children:n}),JH=({item:n})=>T.jsxs(sw,{item:n,title:"Nástroje",children:[T.jsx(ZH,{className:"btn btn-outline-success",children:"Stránka"}),T.jsx(kH,{className:"btn btn-outline-success",item:n,children:"Upravit"}),T.jsx(qH,{className:"btn btn-outline-success",item:n,children:"Upravit Dialog"}),T.jsx(HH,{className:"btn btn-outline-success",rbacitem:{},children:"Vytvořit nový"}),T.jsx(QH,{className:"btn btn-outline-danger",item:n,children:"Odstranit"})]}),FH=({item:n,children:o,CardCapsule:c=sw,MediumContent:s=Fb})=>T.jsx(c,{item:n,children:T.jsxs(va,{children:[T.jsxs(Mx,{children:[T.jsx(c,{item:n,title:"Detail",children:T.jsx(s,{item:n})}),T.jsx(JH,{item:n})]}),T.jsx(jx,{children:o})]})}),hw=({item:n,onChange:o=d=>null,onBlur:c=d=>null,children:s})=>T.jsxs(T.Fragment,{children:[T.jsx(Fl,{id:"name",label:"Jméno",className:"form-control",value:(n==null?void 0:n.name)||"Název",onChange:o,onBlur:c}),T.jsx(Fl,{id:"nameEn",label:"Anglický název",className:"form-control",value:(n==null?void 0:n.nameEn)||"Anglický název",onChange:o,onBlur:c}),s]}),OE=({queryAsyncAction:n=DH,PageNavbar:o=()=>null,ItemLayout:c=FH,SubPage:s=null,...d})=>T.jsx(u_,{queryAsyncAction:n,PageNavbar:o,ItemLayout:c,SubPage:s,...d}),KH=({children:n,PageNavbar:o=()=>null})=>T.jsxs(T.Fragment,{children:[T.jsx(o,{}),n]}),PH=({data:n})=>T.jsx(Fy,{data:n}),WH=({id:n,onChange:o,children:c})=>T.jsxs(T_,{id:n,onChange:o,children:[T.jsx(A_,{id:"id"}),T.jsx(R_,{id:"name"}),T.jsx(O_,{id:"created",emitUtcIso:!1}),c]});function e$(n,o="where"){const c=n.get(o);if(!c)return null;try{const s=JSON.parse(c);return s&&typeof s=="object"?s:null}catch{return null}}const I_="gr_where",pw=({children:n,queryAsyncAction:o=MH})=>{const[c]=wy(),s=D.useMemo(()=>e$(c,I_),[c.toString()]),{items:d,loading:p,error:y,hasMore:v,sentinelRef:x,loadMore:E,restart:O}=d_({asyncAction:o,actionParams:{skip:0,limit:25,where:s}});return D.useEffect(()=>{O({skip:0,limit:25,where:s})},[s]),T.jsxs(KH,{children:[T.jsx(C_,{className:"form-control btn btn-outline-primary",buttonLabelCollapsed:"Zobrazit filtr",buttonLabelExpanded:"Skrýt filtr",children:T.jsxs(WH,{children:[T.jsx(__,{className:"form-control btn btn-outline-success",paramName:I_,children:"Filtrovat"}),T.jsx(x_,{className:"form-control btn btn-warning",paramName:I_,children:"Vymazat filtr"})]})}),T.jsx(PH,{data:d}),T.jsx(Do,{error:y,loading:p,text:"Nahrávám další..."}),v&&T.jsx("div",{ref:x,style:{height:80,backgroundColor:"lightgray"}}),v&&T.jsx("button",{className:"btn btn-success form-control",onClick:()=>E(),children:"Více"})]})},t$=({SubPage:n=YH,...o})=>T.jsx(OE,{SubPage:n,...o}),n$=({...n})=>T.jsxs(va,{children:[T.jsx(kx,{}),T.jsx(Qx,{children:T.jsx(VH,{...n})})]}),a$=({SubPage:n=n$,...o})=>T.jsx(OE,{SubPage:n,...o}),mw=({SubPage:n=Ky,...o})=>T.jsx(OE,{SubPage:n,...o}),l$=({SubPage:n=IH,...o})=>T.jsx(OE,{SubPage:n,...o}),r$=[{path:jH,element:T.jsx(a$,{})},{path:$_,element:T.jsx(pw,{})},{path:ig,element:T.jsx(mw,{})},{path:uw,element:T.jsx(t$,{})},{path:LH,element:T.jsx(l$,{})},{path:$_.replace("list",":any"),element:T.jsx(pw,{})},{path:ig.replace("view",":any"),element:T.jsx(mw,{})}],o$=()=>T.jsxs(a6,{children:[T.jsx(AB,{}),T.jsx(r6,{}),T.jsx(Dz,{})]}),i$=[{path:"/",element:T.jsx(o$,{}),children:[...R8,...RB,...SH,...r$]}],u$=tU(i$),c$=()=>T.jsx(hU,{router:u$}),s$="/api/gql",f$=({GQLENDPOINT:n=s$})=>T.jsx(cL,{clientOptions:{endpoint:n},children:T.jsx(c$,{})});function yw(n,o={}){if(!n)throw new Error("MyApp.mount: missing mount element");console.log("inside mount, doing to render"),$j.createRoot(n).render(T.jsx(f$,{...o})),console.log("inside mount, render finished")}typeof window<"u"&&(window.MyApp={mount:yw}),zh.mount=yw,Object.defineProperty(zh,Symbol.toStringTag,{value:"Module"})}));
|