@moneypot/hub 1.14.3 → 1.14.7
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/dashboard/assets/{index-D5u-RqBs.js → index-BXG4SGJn.js} +56 -56
- package/dist/dashboard/index.html +1 -1
- package/dist/src/graphile.d.ts +1 -1
- package/dist/src/graphile.js +1 -1
- package/dist/src/hash-chain/plugins/hub-user-active-hash-chain.js +34 -25
- package/dist/src/plugins/debug.js +2 -2
- package/dist/src/plugins/hub-current-x.js +10 -27
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var xC=Object.defineProperty;var KS=e=>{throw TypeError(e)};var OC=(e,t,n)=>t in e?xC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var TC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ta=(e,t,n)=>OC(e,typeof t!="symbol"?t+"":t,n),fm=(e,t,n)=>t.has(e)||KS("Cannot "+n);var Z=(e,t,n)=>(fm(e,t,"read from private field"),n?n.call(e):t.get(e)),lt=(e,t,n)=>t.has(e)?KS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ze=(e,t,n,a)=>(fm(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),cn=(e,t,n)=>(fm(e,t,"access private method"),n);var jf=(e,t,n,a)=>({set _(s){ze(e,t,s,n)},get _(){return Z(e,t,a)}});var $6=TC((Hn,Pn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dm={exports:{}},yu={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var yC=Object.defineProperty;var KS=e=>{throw TypeError(e)};var gC=(e,t,n)=>t in
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var QS;function
|
|
9
|
+
*/var QS;function wC(){if(QS)return yu;QS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var h in s)h!=="key"&&(o[h]=s[h])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return yu.Fragment=t,yu.jsx=n,yu.jsxs=n,yu}var XS;function AC(){return XS||(XS=1,dm.exports=wC()),dm.exports}var g=AC(),hm={exports:{}},gu={},pm={exports:{}},mm={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var yC=Object.defineProperty;var KS=e=>{throw TypeError(e)};var gC=(e,t,n)=>t in
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ZS;function
|
|
17
|
+
*/var ZS;function NC(){return ZS||(ZS=1,function(e){function t(L,te){var le=L.length;L.push(te);e:for(;0<le;){var we=le-1>>>1,k=L[we];if(0<s(k,te))L[we]=te,L[le]=k,le=we;else break e}}function n(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var te=L[0],le=L.pop();if(le!==te){L[0]=le;e:for(var we=0,k=L.length,Y=k>>>1;we<Y;){var ae=2*(we+1)-1,ne=L[ae],se=ae+1,Se=L[se];if(0>s(ne,le))se<k&&0>s(Se,ne)?(L[we]=Se,L[se]=le,we=se):(L[we]=ne,L[ae]=le,we=ae);else if(se<k&&0>s(Se,le))L[we]=Se,L[se]=le,we=se;else break e}}return te}function s(L,te){var le=L.sortIndex-te.sortIndex;return le!==0?le:L.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var d=[],p=[],v=1,b=null,y=3,_=!1,x=!1,A=!1,N=!1,O=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function U(L){for(var te=n(p);te!==null;){if(te.callback===null)a(p);else if(te.startTime<=L)a(p),te.sortIndex=te.expirationTime,t(d,te);else break;te=n(p)}}function C(L){if(A=!1,U(L),!x)if(n(d)!==null)x=!0,w||(w=!0,Re());else{var te=n(p);te!==null&&Te(C,te.startTime-L)}}var w=!1,q=-1,re=5,Q=-1;function he(){return N?!0:!(e.unstable_now()-Q<re)}function ie(){if(N=!1,w){var L=e.unstable_now();Q=L;var te=!0;try{e:{x=!1,A&&(A=!1,R(q),q=-1),_=!0;var le=y;try{t:{for(U(L),b=n(d);b!==null&&!(b.expirationTime>L&&he());){var we=b.callback;if(typeof we=="function"){b.callback=null,y=b.priorityLevel;var k=we(b.expirationTime<=L);if(L=e.unstable_now(),typeof k=="function"){b.callback=k,U(L),te=!0;break t}b===n(d)&&a(d),U(L)}else a(d);b=n(d)}if(b!==null)te=!0;else{var Y=n(p);Y!==null&&Te(C,Y.startTime-L),te=!1}}break e}finally{b=null,y=le,_=!1}te=void 0}}finally{te?Re():w=!1}}}var Re;if(typeof D=="function")Re=function(){D(ie)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,xe=fe.port2;fe.port1.onmessage=ie,Re=function(){xe.postMessage(null)}}else Re=function(){O(ie,0)};function Te(L,te){q=O(function(){L(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var te=3;break;default:te=y}var le=y;y=te;try{return L()}finally{y=le}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(L,te){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var le=y;y=L;try{return te()}finally{y=le}},e.unstable_scheduleCallback=function(L,te,le){var we=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?we+le:we):le=we,L){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=le+k,L={id:v++,callback:te,priorityLevel:L,startTime:le,expirationTime:k,sortIndex:-1},le>we?(L.sortIndex=le,t(p,L),n(d)===null&&L===n(p)&&(A?(R(q),q=-1):A=!0,Te(C,le-we))):(L.sortIndex=k,t(d,L),x||_||(x=!0,w||(w=!0,Re()))),L},e.unstable_shouldYield=he,e.unstable_wrapCallback=function(L){var te=y;return function(){var le=y;y=te;try{return L.apply(this,arguments)}finally{y=le}}}}(mm)),mm}var JS;function CC(){return JS||(JS=1,pm.exports=NC()),pm.exports}var vm={exports:{}},Ve={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var yC=Object.defineProperty;var KS=e=>{throw TypeError(e)};var gC=(e,t,n)=>t in
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var WS;function
|
|
25
|
+
*/var WS;function RC(){if(WS)return Ve;WS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;function y(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,A={};function N(k,Y,ae){this.props=k,this.context=Y,this.refs=A,this.updater=ae||_}N.prototype.isReactComponent={},N.prototype.setState=function(k,Y){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,Y,"setState")},N.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function O(){}O.prototype=N.prototype;function R(k,Y,ae){this.props=k,this.context=Y,this.refs=A,this.updater=ae||_}var D=R.prototype=new O;D.constructor=R,x(D,N.prototype),D.isPureReactComponent=!0;var U=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},w=Object.prototype.hasOwnProperty;function q(k,Y,ae,ne,se,Se){return ae=Se.ref,{$$typeof:e,type:k,key:Y,ref:ae!==void 0?ae:null,props:Se}}function re(k,Y){return q(k.type,Y,void 0,void 0,void 0,k.props)}function Q(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function he(k){var Y={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ae){return Y[ae]})}var ie=/\/+/g;function Re(k,Y){return typeof k=="object"&&k!==null&&k.key!=null?he(""+k.key):Y.toString(36)}function fe(){}function xe(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(fe,fe):(k.status="pending",k.then(function(Y){k.status==="pending"&&(k.status="fulfilled",k.value=Y)},function(Y){k.status==="pending"&&(k.status="rejected",k.reason=Y)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function Te(k,Y,ae,ne,se){var Se=typeof k;(Se==="undefined"||Se==="boolean")&&(k=null);var me=!1;if(k===null)me=!0;else switch(Se){case"bigint":case"string":case"number":me=!0;break;case"object":switch(k.$$typeof){case e:case t:me=!0;break;case v:return me=k._init,Te(me(k._payload),Y,ae,ne,se)}}if(me)return se=se(k),me=ne===""?"."+Re(k,0):ne,U(se)?(ae="",me!=null&&(ae=me.replace(ie,"$&/")+"/"),Te(se,Y,ae,"",function(Rt){return Rt})):se!=null&&(Q(se)&&(se=re(se,ae+(se.key==null||k&&k.key===se.key?"":(""+se.key).replace(ie,"$&/")+"/")+me)),Y.push(se)),1;me=0;var dt=ne===""?".":ne+":";if(U(k))for(var qe=0;qe<k.length;qe++)ne=k[qe],Se=dt+Re(ne,qe),me+=Te(ne,Y,ae,Se,se);else if(qe=y(k),typeof qe=="function")for(k=qe.call(k),qe=0;!(ne=k.next()).done;)ne=ne.value,Se=dt+Re(ne,qe++),me+=Te(ne,Y,ae,Se,se);else if(Se==="object"){if(typeof k.then=="function")return Te(xe(k),Y,ae,ne,se);throw Y=String(k),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return me}function L(k,Y,ae){if(k==null)return k;var ne=[],se=0;return Te(k,ne,"","",function(Se){return Y.call(ae,Se,se++)}),ne}function te(k){if(k._status===-1){var Y=k._result;Y=Y(),Y.then(function(ae){(k._status===0||k._status===-1)&&(k._status=1,k._result=ae)},function(ae){(k._status===0||k._status===-1)&&(k._status=2,k._result=ae)}),k._status===-1&&(k._status=0,k._result=Y)}if(k._status===1)return k._result.default;throw k._result}var le=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function we(){}return Ve.Children={map:L,forEach:function(k,Y,ae){L(k,function(){Y.apply(this,arguments)},ae)},count:function(k){var Y=0;return L(k,function(){Y++}),Y},toArray:function(k){return L(k,function(Y){return Y})||[]},only:function(k){if(!Q(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Ve.Component=N,Ve.Fragment=n,Ve.Profiler=s,Ve.PureComponent=R,Ve.StrictMode=a,Ve.Suspense=d,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(k){return C.H.useMemoCache(k)}},Ve.cache=function(k){return function(){return k.apply(null,arguments)}},Ve.cloneElement=function(k,Y,ae){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var ne=x({},k.props),se=k.key,Se=void 0;if(Y!=null)for(me in Y.ref!==void 0&&(Se=void 0),Y.key!==void 0&&(se=""+Y.key),Y)!w.call(Y,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Y.ref===void 0||(ne[me]=Y[me]);var me=arguments.length-2;if(me===1)ne.children=ae;else if(1<me){for(var dt=Array(me),qe=0;qe<me;qe++)dt[qe]=arguments[qe+2];ne.children=dt}return q(k.type,se,void 0,void 0,Se,ne)},Ve.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:o,_context:k},k},Ve.createElement=function(k,Y,ae){var ne,se={},Se=null;if(Y!=null)for(ne in Y.key!==void 0&&(Se=""+Y.key),Y)w.call(Y,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(se[ne]=Y[ne]);var me=arguments.length-2;if(me===1)se.children=ae;else if(1<me){for(var dt=Array(me),qe=0;qe<me;qe++)dt[qe]=arguments[qe+2];se.children=dt}if(k&&k.defaultProps)for(ne in me=k.defaultProps,me)se[ne]===void 0&&(se[ne]=me[ne]);return q(k,Se,void 0,void 0,null,se)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(k){return{$$typeof:h,render:k}},Ve.isValidElement=Q,Ve.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:te}},Ve.memo=function(k,Y){return{$$typeof:p,type:k,compare:Y===void 0?null:Y}},Ve.startTransition=function(k){var Y=C.T,ae={};C.T=ae;try{var ne=k(),se=C.S;se!==null&&se(ae,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(we,le)}catch(Se){le(Se)}finally{C.T=Y}},Ve.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Ve.use=function(k){return C.H.use(k)},Ve.useActionState=function(k,Y,ae){return C.H.useActionState(k,Y,ae)},Ve.useCallback=function(k,Y){return C.H.useCallback(k,Y)},Ve.useContext=function(k){return C.H.useContext(k)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(k,Y){return C.H.useDeferredValue(k,Y)},Ve.useEffect=function(k,Y,ae){var ne=C.H;if(typeof ae=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(k,Y)},Ve.useId=function(){return C.H.useId()},Ve.useImperativeHandle=function(k,Y,ae){return C.H.useImperativeHandle(k,Y,ae)},Ve.useInsertionEffect=function(k,Y){return C.H.useInsertionEffect(k,Y)},Ve.useLayoutEffect=function(k,Y){return C.H.useLayoutEffect(k,Y)},Ve.useMemo=function(k,Y){return C.H.useMemo(k,Y)},Ve.useOptimistic=function(k,Y){return C.H.useOptimistic(k,Y)},Ve.useReducer=function(k,Y,ae){return C.H.useReducer(k,Y,ae)},Ve.useRef=function(k){return C.H.useRef(k)},Ve.useState=function(k){return C.H.useState(k)},Ve.useSyncExternalStore=function(k,Y,ae){return C.H.useSyncExternalStore(k,Y,ae)},Ve.useTransition=function(){return C.H.useTransition()},Ve.version="19.1.0",Ve}var eE;function Rd(){return eE||(eE=1,vm.exports=RC()),vm.exports}var ym={exports:{}},fn={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@ var yC=Object.defineProperty;var KS=e=>{throw TypeError(e)};var gC=(e,t,n)=>t in
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var tE;function
|
|
33
|
+
*/var tE;function DC(){if(tE)return fn;tE=1;var e=Rd();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(d,p,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:d,containerInfo:p,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,fn.createPortal=function(d,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return o(d,p,null,v)},fn.flushSync=function(d){var p=c.T,v=a.p;try{if(c.T=null,a.p=2,d)return d()}finally{c.T=p,a.p=v,a.d.f()}},fn.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(d,p))},fn.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},fn.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var v=p.as,b=h(v,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?a.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:y,fetchPriority:_}):v==="script"&&a.d.X(d,{crossOrigin:b,integrity:y,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},fn.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);a.d.M(d,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(d)},fn.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,b=h(v,p.crossOrigin);a.d.L(d,v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},fn.preloadModule=function(d,p){if(typeof d=="string")if(p){var v=h(p.as,p.crossOrigin);a.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(d)},fn.requestFormReset=function(d){a.d.r(d)},fn.unstable_batchedUpdates=function(d,p){return d(p)},fn.useFormState=function(d,p,v){return c.H.useFormState(d,p,v)},fn.useFormStatus=function(){return c.H.useHostTransitionStatus()},fn.version="19.1.0",fn}var nE;function Xx(){if(nE)return ym.exports;nE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ym.exports=DC(),ym.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@ var yC=Object.defineProperty;var KS=e=>{throw TypeError(e)};var gC=(e,t,n)=>t in
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var rE;function wC(){if(rE)return gu;rE=1;var e=xC(),t=Rd(),n=Xx();function a(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function c(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function h(r){if(o(r)!==r)throw Error(a(188))}function d(r){var i=r.alternate;if(!i){if(i=o(r),i===null)throw Error(a(188));return i!==r?null:r}for(var l=r,u=i;;){var f=l.return;if(f===null)break;var m=f.alternate;if(m===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===l)return h(f),r;if(m===u)return h(f),i;m=m.sibling}throw Error(a(188))}if(l.return!==u.return)l=f,u=m;else{for(var E=!1,T=f.child;T;){if(T===l){E=!0,l=f,u=m;break}if(T===u){E=!0,u=f,l=m;break}T=T.sibling}if(!E){for(T=m.child;T;){if(T===l){E=!0,l=m,u=f;break}if(T===u){E=!0,u=m,l=f;break}T=T.sibling}if(!E)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?r:i}function p(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=p(r),i!==null)return i;r=r.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),D=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function xe(r){return r===null||typeof r!="object"?null:(r=ie&&r[ie]||r["@@iterator"],typeof r=="function"?r:null)}var fe=Symbol.for("react.client.reference");function me(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===fe?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case w:return"SuspenseList";case Q:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case _:return"Portal";case D:return(r.displayName||"Context")+".Provider";case R:return(r._context.displayName||"Context")+".Consumer";case U:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case q:return i=r.displayName||null,i!==null?i:me(r.type)||"Memo";case re:i=r._payload,r=r._init;try{return me(r(i))}catch{}}return null}var we=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Ae=[],k=-1;function Y(r){return{current:r}}function ae(r){0>k||(r.current=Ae[k],Ae[k]=null,k--)}function ne(r,i){k++,Ae[k]=r.current,r.current=i}var se=Y(null),Ee=Y(null),ve=Y(null),dt=Y(null);function qe(r,i){switch(ne(ve,i),ne(Ee,r),ne(se,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?_S(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=_S(i),r=xS(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}ae(se),ne(se,r)}function Rt(){ae(se),ae(Ee),ae(ve)}function ut(r){r.memoizedState!==null&&ne(dt,r);var i=se.current,l=xS(i,r.type);i!==l&&(ne(Ee,r),ne(se,l))}function wt(r){Ee.current===r&&(ae(se),ae(Ee)),dt.current===r&&(ae(dt),du._currentValue=le)}var Wt=Object.prototype.hasOwnProperty,en=e.unstable_scheduleCallback,kt=e.unstable_cancelCallback,at=e.unstable_shouldYield,Rn=e.unstable_requestPaint,At=e.unstable_now,la=e.unstable_getCurrentPriorityLevel,Qn=e.unstable_ImmediatePriority,ln=e.unstable_UserBlockingPriority,hn=e.unstable_NormalPriority,V=e.unstable_LowPriority,ce=e.unstable_IdlePriority,pe=e.log,Oe=e.unstable_setDisableYieldValue,ue=null,ge=null;function tt(r){if(typeof pe=="function"&&Oe(r),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(ue,r)}catch{}}var bt=Math.clz32?Math.clz32:Js,Gi=Math.log,gn=Math.LN2;function Js(r){return r>>>=0,r===0?32:31-(Gi(r)/gn|0)|0}var Br=256,oa=4194304;function ua(r){var i=r&42;if(i!==0)return i;switch(r&-r){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:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Yi(r,i,l){var u=r.pendingLanes;if(u===0)return 0;var f=0,m=r.suspendedLanes,E=r.pingedLanes;r=r.warmLanes;var T=u&134217727;return T!==0?(u=T&~m,u!==0?f=ua(u):(E&=T,E!==0?f=ua(E):l||(l=T&~r,l!==0&&(f=ua(l))))):(T=u&~m,T!==0?f=ua(T):E!==0?f=ua(E):l||(l=u&~r,l!==0&&(f=ua(l)))),f===0?0:i!==0&&i!==f&&(i&m)===0&&(m=f&-f,l=i&-i,m>=l||m===32&&(l&4194048)!==0)?i:f}function Fr(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function Sc(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Ws(){var r=Br;return Br<<=1,(Br&4194048)===0&&(Br=256),r}function Ec(){var r=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),r}function el(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function Ki(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function _c(r,i,l,u,f,m){var E=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var T=r.entanglements,j=r.expirationTimes,z=r.hiddenUpdates;for(l=E&~l;0<l;){var K=31-bt(l),J=1<<K;T[K]=0,j[K]=-1;var H=z[K];if(H!==null)for(z[K]=null,K=0;K<H.length;K++){var P=H[K];P!==null&&(P.lane&=-536870913)}l&=~J}u!==0&&Qi(r,u,0),m!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=m&~(E&~i))}function Qi(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var u=31-bt(i);r.entangledLanes|=i,r.entanglements[u]=r.entanglements[u]|1073741824|l&4194090}function Xi(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var u=31-bt(l),f=1<<u;f&i|r[u]&i&&(r[u]|=i),l&=~f}}function Eo(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function _o(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function M(){var r=te.p;return r!==0?r:(r=window.event,r===void 0?32:qS(r.type))}function F(r,i){var l=te.p;try{return te.p=r,i()}finally{te.p=l}}var G=Math.random().toString(36).slice(2),ee="__reactFiber$"+G,oe="__reactProps$"+G,Te="__reactContainer$"+G,ke="__reactEvents$"+G,ye="__reactListeners$"+G,De="__reactHandles$"+G,je="__reactResources$"+G,Le="__reactMarker$"+G;function Ne(r){delete r[ee],delete r[oe],delete r[ke],delete r[ye],delete r[De]}function Ie(r){var i=r[ee];if(i)return i;for(var l=r.parentNode;l;){if(i=l[Te]||l[ee]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=AS(r);r!==null;){if(l=r[ee])return l;r=AS(r)}return i}r=l,l=r.parentNode}return null}function nt(r){if(r=r[ee]||r[Te]){var i=r.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return r}return null}function Ot(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function Dt(r){var i=r[je];return i||(i=r[je]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function it(r){r[Le]=!0}var We=new Set,Ya={};function pn(r,i){Xn(r,i),Xn(r+"Capture",i)}function Xn(r,i){for(Ya[r]=i,r=0;r<i.length;r++)We.add(i[r])}var bn=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]*$"),Ka={},Qa={};function xo(r){return Wt.call(Qa,r)?!0:Wt.call(Ka,r)?!1:bn.test(r)?Qa[r]=!0:(Ka[r]=!0,!1)}function Zn(r,i,l){if(xo(i))if(l===null)r.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+l)}}function ca(r,i,l){if(l===null)r.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+l)}}function Ye(r,i,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(i,l,""+u)}}var on,br;function Sr(r){if(on===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);on=i&&i[1]||"",br=-1<l.stack.indexOf(`
|
|
41
|
+
*/var rE;function jC(){if(rE)return gu;rE=1;var e=CC(),t=Rd(),n=Xx();function a(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function c(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function h(r){if(o(r)!==r)throw Error(a(188))}function d(r){var i=r.alternate;if(!i){if(i=o(r),i===null)throw Error(a(188));return i!==r?null:r}for(var l=r,u=i;;){var f=l.return;if(f===null)break;var m=f.alternate;if(m===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===l)return h(f),r;if(m===u)return h(f),i;m=m.sibling}throw Error(a(188))}if(l.return!==u.return)l=f,u=m;else{for(var E=!1,T=f.child;T;){if(T===l){E=!0,l=f,u=m;break}if(T===u){E=!0,u=f,l=m;break}T=T.sibling}if(!E){for(T=m.child;T;){if(T===l){E=!0,l=m,u=f;break}if(T===u){E=!0,u=m,l=f;break}T=T.sibling}if(!E)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?r:i}function p(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=p(r),i!==null)return i;r=r.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),D=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function Re(r){return r===null||typeof r!="object"?null:(r=ie&&r[ie]||r["@@iterator"],typeof r=="function"?r:null)}var fe=Symbol.for("react.client.reference");function xe(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===fe?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case w:return"SuspenseList";case Q:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case _:return"Portal";case D:return(r.displayName||"Context")+".Provider";case R:return(r._context.displayName||"Context")+".Consumer";case U:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case q:return i=r.displayName||null,i!==null?i:xe(r.type)||"Memo";case re:i=r._payload,r=r._init;try{return xe(r(i))}catch{}}return null}var Te=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},we=[],k=-1;function Y(r){return{current:r}}function ae(r){0>k||(r.current=we[k],we[k]=null,k--)}function ne(r,i){k++,we[k]=r.current,r.current=i}var se=Y(null),Se=Y(null),me=Y(null),dt=Y(null);function qe(r,i){switch(ne(me,i),ne(Se,r),ne(se,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?_S(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=_S(i),r=xS(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}ae(se),ne(se,r)}function Rt(){ae(se),ae(Se),ae(me)}function ut(r){r.memoizedState!==null&&ne(dt,r);var i=se.current,l=xS(i,r.type);i!==l&&(ne(Se,r),ne(se,l))}function wt(r){Se.current===r&&(ae(se),ae(Se)),dt.current===r&&(ae(dt),du._currentValue=le)}var Wt=Object.prototype.hasOwnProperty,en=e.unstable_scheduleCallback,kt=e.unstable_cancelCallback,at=e.unstable_shouldYield,Rn=e.unstable_requestPaint,At=e.unstable_now,la=e.unstable_getCurrentPriorityLevel,Xn=e.unstable_ImmediatePriority,ln=e.unstable_UserBlockingPriority,hn=e.unstable_NormalPriority,V=e.unstable_LowPriority,ce=e.unstable_IdlePriority,pe=e.log,_e=e.unstable_setDisableYieldValue,ue=null,ye=null;function tt(r){if(typeof pe=="function"&&_e(r),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(ue,r)}catch{}}var bt=Math.clz32?Math.clz32:Js,Gi=Math.log,bn=Math.LN2;function Js(r){return r>>>=0,r===0?32:31-(Gi(r)/bn|0)|0}var Br=256,oa=4194304;function ua(r){var i=r&42;if(i!==0)return i;switch(r&-r){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:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Yi(r,i,l){var u=r.pendingLanes;if(u===0)return 0;var f=0,m=r.suspendedLanes,E=r.pingedLanes;r=r.warmLanes;var T=u&134217727;return T!==0?(u=T&~m,u!==0?f=ua(u):(E&=T,E!==0?f=ua(E):l||(l=T&~r,l!==0&&(f=ua(l))))):(T=u&~m,T!==0?f=ua(T):E!==0?f=ua(E):l||(l=u&~r,l!==0&&(f=ua(l)))),f===0?0:i!==0&&i!==f&&(i&m)===0&&(m=f&-f,l=i&-i,m>=l||m===32&&(l&4194048)!==0)?i:f}function Fr(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function Sc(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Ws(){var r=Br;return Br<<=1,(Br&4194048)===0&&(Br=256),r}function Ec(){var r=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),r}function el(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function Ki(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function _c(r,i,l,u,f,m){var E=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var T=r.entanglements,j=r.expirationTimes,z=r.hiddenUpdates;for(l=E&~l;0<l;){var K=31-bt(l),J=1<<K;T[K]=0,j[K]=-1;var H=z[K];if(H!==null)for(z[K]=null,K=0;K<H.length;K++){var P=H[K];P!==null&&(P.lane&=-536870913)}l&=~J}u!==0&&Qi(r,u,0),m!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=m&~(E&~i))}function Qi(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var u=31-bt(i);r.entangledLanes|=i,r.entanglements[u]=r.entanglements[u]|1073741824|l&4194090}function Xi(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var u=31-bt(l),f=1<<u;f&i|r[u]&i&&(r[u]|=i),l&=~f}}function Eo(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function _o(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function M(){var r=te.p;return r!==0?r:(r=window.event,r===void 0?32:qS(r.type))}function F(r,i){var l=te.p;try{return te.p=r,i()}finally{te.p=l}}var G=Math.random().toString(36).slice(2),ee="__reactFiber$"+G,oe="__reactProps$"+G,Oe="__reactContainer$"+G,ke="__reactEvents$"+G,ve="__reactListeners$"+G,De="__reactHandles$"+G,je="__reactResources$"+G,Le="__reactMarker$"+G;function Ae(r){delete r[ee],delete r[oe],delete r[ke],delete r[ve],delete r[De]}function Ie(r){var i=r[ee];if(i)return i;for(var l=r.parentNode;l;){if(i=l[Oe]||l[ee]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=AS(r);r!==null;){if(l=r[ee])return l;r=AS(r)}return i}r=l,l=r.parentNode}return null}function nt(r){if(r=r[ee]||r[Oe]){var i=r.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return r}return null}function Ot(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function Dt(r){var i=r[je];return i||(i=r[je]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function it(r){r[Le]=!0}var We=new Set,Ya={};function pn(r,i){Zn(r,i),Zn(r+"Capture",i)}function Zn(r,i){for(Ya[r]=i,r=0;r<i.length;r++)We.add(i[r])}var Sn=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]*$"),Ka={},Qa={};function xo(r){return Wt.call(Qa,r)?!0:Wt.call(Ka,r)?!1:Sn.test(r)?Qa[r]=!0:(Ka[r]=!0,!1)}function Jn(r,i,l){if(xo(i))if(l===null)r.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+l)}}function ca(r,i,l){if(l===null)r.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+l)}}function Ye(r,i,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(i,l,""+u)}}var on,br;function Sr(r){if(on===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);on=i&&i[1]||"",br=-1<l.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
43
|
`+on+r+br}var Zi=!1;function Nt(r,i){if(!r||Zi)return"";Zi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(P){var H=P}Reflect.construct(r,[],J)}else{try{J.call()}catch(P){H=P}r.call(J.prototype)}}else{try{throw Error()}catch(P){H=P}(J=r())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(P){if(P&&H&&typeof P.stack=="string")return[P.stack,H.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),E=m[0],T=m[1];if(E&&T){var j=E.split(`
|
|
44
44
|
`),z=T.split(`
|
|
45
45
|
`);for(f=u=0;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;for(;f<z.length&&!z[f].includes("DetermineComponentFrameRoot");)f++;if(u===j.length||f===z.length)for(u=j.length-1,f=z.length-1;1<=u&&0<=f&&j[u]!==z[f];)f--;for(;1<=u&&0<=f;u--,f--)if(j[u]!==z[f]){if(u!==1||f!==1)do if(u--,f--,0>f||j[u]!==z[f]){var K=`
|
|
46
46
|
`+j[u].replace(" at new "," at ");return r.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",r.displayName)),K}while(1<=u&&0<=f);break}}}finally{Zi=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Sr(l):""}function Xa(r){switch(r.tag){case 26:case 27:case 5:return Sr(r.type);case 16:return Sr("Lazy");case 13:return Sr("Suspense");case 19:return Sr("SuspenseList");case 0:case 15:return Nt(r.type,!1);case 11:return Nt(r.type.render,!1);case 1:return Nt(r.type,!0);case 31:return Sr("Activity");default:return""}}function Oo(r){try{var i="";do i+=Xa(r),r=r.return;while(r);return i}catch(l){return`
|
|
47
47
|
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}function Sn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function yg(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function dA(r){var i=yg(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),u=""+r[i];if(!r.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,m=l.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return f.call(this)},set:function(E){u=""+E,m.call(this,E)}}),Object.defineProperty(r,i,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(E){u=""+E},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function xc(r){r._valueTracker||(r._valueTracker=dA(r))}function gg(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return r&&(u=yg(r)?r.checked?"true":"false":r.value),r=u,r!==l?(i.setValue(r),!0):!1}function Oc(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var hA=/[\n"\\]/g;function Jn(r){return r.replace(hA,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function oh(r,i,l,u,f,m,E,T){r.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?r.type=E:r.removeAttribute("type"),i!=null?E==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+Sn(i)):r.value!==""+Sn(i)&&(r.value=""+Sn(i)):E!=="submit"&&E!=="reset"||r.removeAttribute("value"),i!=null?uh(r,E,Sn(i)):l!=null?uh(r,E,Sn(l)):u!=null&&r.removeAttribute("value"),f==null&&m!=null&&(r.defaultChecked=!!m),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?r.name=""+Sn(T):r.removeAttribute("name")}function bg(r,i,l,u,f,m,E,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(r.type=m),i!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||i!=null))return;l=l!=null?""+Sn(l):"",i=i!=null?""+Sn(i):l,T||i===r.value||(r.value=i),r.defaultValue=i}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=T?r.checked:!!u,r.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(r.name=E)}function uh(r,i,l){i==="number"&&Oc(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function tl(r,i,l,u){if(r=r.options,i){i={};for(var f=0;f<l.length;f++)i["$"+l[f]]=!0;for(l=0;l<r.length;l++)f=i.hasOwnProperty("$"+r[l].value),r[l].selected!==f&&(r[l].selected=f),f&&u&&(r[l].defaultSelected=!0)}else{for(l=""+Sn(l),i=null,f=0;f<r.length;f++){if(r[f].value===l){r[f].selected=!0,u&&(r[f].defaultSelected=!0);return}i!==null||r[f].disabled||(i=r[f])}i!==null&&(i.selected=!0)}}function Sg(r,i,l){if(i!=null&&(i=""+Sn(i),i!==r.value&&(r.value=i),l==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=l!=null?""+Sn(l):""}function Eg(r,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if(we(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),i=l}l=Sn(i),r.defaultValue=l,u=r.textContent,u===l&&u!==""&&u!==null&&(r.value=u)}function nl(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var pA=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 _g(r,i,l){var u=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":u?r.setProperty(i,l):typeof l!="number"||l===0||pA.has(i)?i==="float"?r.cssFloat=l:r[i]=(""+l).trim():r[i]=l+"px"}function xg(r,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(r=r.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var f in i)u=i[f],i.hasOwnProperty(f)&&l[f]!==u&&_g(r,f,u)}else for(var m in i)i.hasOwnProperty(m)&&_g(r,m,i[m])}function ch(r){if(r.indexOf("-")===-1)return!1;switch(r){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 mA=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"]]),vA=/^[\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 Tc(r){return vA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var fh=null;function dh(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var rl=null,al=null;function Og(r){var i=nt(r);if(i&&(r=i.stateNode)){var l=r[oe]||null;e:switch(r=i.stateNode,i.type){case"input":if(oh(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Jn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==r&&u.form===r.form){var f=u[oe]||null;if(!f)throw Error(a(90));oh(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===r.form&&gg(u)}break e;case"textarea":Sg(r,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&tl(r,!!l.multiple,i,!1)}}}var hh=!1;function Tg(r,i,l){if(hh)return r(i,l);hh=!0;try{var u=r(i);return u}finally{if(hh=!1,(rl!==null||al!==null)&&(ff(),rl&&(i=rl,r=al,al=rl=null,Og(i),r)))for(i=0;i<r.length;i++)Og(r[i])}}function To(r,i){var l=r.stateNode;if(l===null)return null;var u=l[oe]||null;if(u===null)return null;l=u[i];e:switch(i){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)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ph=!1;if(fa)try{var wo={};Object.defineProperty(wo,"passive",{get:function(){ph=!0}}),window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch{ph=!1}var Za=null,mh=null,wc=null;function wg(){if(wc)return wc;var r,i=mh,l=i.length,u,f="value"in Za?Za.value:Za.textContent,m=f.length;for(r=0;r<l&&i[r]===f[r];r++);var E=l-r;for(u=1;u<=E&&i[l-u]===f[m-u];u++);return wc=f.slice(r,1<u?1-u:void 0)}function Ac(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Nc(){return!0}function Ag(){return!1}function En(r){function i(l,u,f,m,E){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=m,this.target=E,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(l=r[T],this[T]=l?l(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Nc:Ag,this.isPropagationStopped=Ag,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Nc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Nc)},persist:function(){},isPersistent:Nc}),i}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cc=En(Ji),Ao=v({},Ji,{view:0,detail:0}),yA=En(Ao),vh,yh,No,Rc=v({},Ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bh,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==No&&(No&&r.type==="mousemove"?(vh=r.screenX-No.screenX,yh=r.screenY-No.screenY):yh=vh=0,No=r),vh)},movementY:function(r){return"movementY"in r?r.movementY:yh}}),Ng=En(Rc),gA=v({},Rc,{dataTransfer:0}),bA=En(gA),SA=v({},Ao,{relatedTarget:0}),gh=En(SA),EA=v({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),_A=En(EA),xA=v({},Ji,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),OA=En(xA),TA=v({},Ji,{data:0}),Cg=En(TA),wA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AA={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"},NA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CA(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=NA[r])?!!i[r]:!1}function bh(){return CA}var RA=v({},Ao,{key:function(r){if(r.key){var i=wA[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Ac(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?AA[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bh,charCode:function(r){return r.type==="keypress"?Ac(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ac(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),DA=En(RA),jA=v({},Rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rg=En(jA),kA=v({},Ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bh}),MA=En(kA),UA=v({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),$A=En(UA),LA=v({},Rc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),BA=En(LA),FA=v({},Ji,{newState:0,oldState:0}),IA=En(FA),zA=[9,13,27,32],Sh=fa&&"CompositionEvent"in window,Co=null;fa&&"documentMode"in document&&(Co=document.documentMode);var qA=fa&&"TextEvent"in window&&!Co,Dg=fa&&(!Sh||Co&&8<Co&&11>=Co),jg=" ",kg=!1;function Mg(r,i){switch(r){case"keyup":return zA.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ug(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var il=!1;function VA(r,i){switch(r){case"compositionend":return Ug(i);case"keypress":return i.which!==32?null:(kg=!0,jg);case"textInput":return r=i.data,r===jg&&kg?null:r;default:return null}}function HA(r,i){if(il)return r==="compositionend"||!Sh&&Mg(r,i)?(r=wg(),wc=mh=Za=null,il=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Dg&&i.locale!=="ko"?null:i.data;default:return null}}var PA={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 $g(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!PA[r.type]:i==="textarea"}function Lg(r,i,l,u){rl?al?al.push(u):al=[u]:rl=u,i=yf(i,"onChange"),0<i.length&&(l=new Cc("onChange","change",null,l,u),r.push({event:l,listeners:i}))}var Ro=null,Do=null;function GA(r){yS(r,0)}function Dc(r){var i=Ot(r);if(gg(i))return r}function Bg(r,i){if(r==="change")return i}var Fg=!1;if(fa){var Eh;if(fa){var _h="oninput"in document;if(!_h){var Ig=document.createElement("div");Ig.setAttribute("oninput","return;"),_h=typeof Ig.oninput=="function"}Eh=_h}else Eh=!1;Fg=Eh&&(!document.documentMode||9<document.documentMode)}function zg(){Ro&&(Ro.detachEvent("onpropertychange",qg),Do=Ro=null)}function qg(r){if(r.propertyName==="value"&&Dc(Do)){var i=[];Lg(i,Do,r,dh(r)),Tg(GA,i)}}function YA(r,i,l){r==="focusin"?(zg(),Ro=i,Do=l,Ro.attachEvent("onpropertychange",qg)):r==="focusout"&&zg()}function KA(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Dc(Do)}function QA(r,i){if(r==="click")return Dc(i)}function XA(r,i){if(r==="input"||r==="change")return Dc(i)}function ZA(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Dn=typeof Object.is=="function"?Object.is:ZA;function jo(r,i){if(Dn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var l=Object.keys(r),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!Wt.call(i,f)||!Dn(r[f],i[f]))return!1}return!0}function Vg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Hg(r,i){var l=Vg(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=i&&u>=i)return{node:l,offset:i-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Vg(l)}}function Pg(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Pg(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Gg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=Oc(r.document);i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=Oc(r.document)}return i}function xh(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var JA=fa&&"documentMode"in document&&11>=document.documentMode,sl=null,Oh=null,ko=null,Th=!1;function Yg(r,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Th||sl==null||sl!==Oc(u)||(u=sl,"selectionStart"in u&&xh(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}),ko&&jo(ko,u)||(ko=u,u=yf(Oh,"onSelect"),0<u.length&&(i=new Cc("onSelect","select",null,i,l),r.push({event:i,listeners:u}),i.target=sl)))}function Wi(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var ll={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionrun:Wi("Transition","TransitionRun"),transitionstart:Wi("Transition","TransitionStart"),transitioncancel:Wi("Transition","TransitionCancel"),transitionend:Wi("Transition","TransitionEnd")},wh={},Kg={};fa&&(Kg=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function es(r){if(wh[r])return wh[r];if(!ll[r])return r;var i=ll[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in Kg)return wh[r]=i[l];return r}var Qg=es("animationend"),Xg=es("animationiteration"),Zg=es("animationstart"),WA=es("transitionrun"),eN=es("transitionstart"),tN=es("transitioncancel"),Jg=es("transitionend"),Wg=new Map,Ah="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(" ");Ah.push("scrollEnd");function Er(r,i){Wg.set(r,i),pn(i,[r])}var e0=new WeakMap;function Wn(r,i){if(typeof r=="object"&&r!==null){var l=e0.get(r);return l!==void 0?l:(i={value:r,source:i,stack:Oo(i)},e0.set(r,i),i)}return{value:r,source:i,stack:Oo(i)}}var er=[],ol=0,Nh=0;function jc(){for(var r=ol,i=Nh=ol=0;i<r;){var l=er[i];er[i++]=null;var u=er[i];er[i++]=null;var f=er[i];er[i++]=null;var m=er[i];if(er[i++]=null,u!==null&&f!==null){var E=u.pending;E===null?f.next=f:(f.next=E.next,E.next=f),u.pending=f}m!==0&&t0(l,f,m)}}function kc(r,i,l,u){er[ol++]=r,er[ol++]=i,er[ol++]=l,er[ol++]=u,Nh|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function Ch(r,i,l,u){return kc(r,i,l,u),Mc(r)}function ul(r,i){return kc(r,null,null,i),Mc(r)}function t0(r,i,l){r.lanes|=l;var u=r.alternate;u!==null&&(u.lanes|=l);for(var f=!1,m=r.return;m!==null;)m.childLanes|=l,u=m.alternate,u!==null&&(u.childLanes|=l),m.tag===22&&(r=m.stateNode,r===null||r._visibility&1||(f=!0)),r=m,m=m.return;return r.tag===3?(m=r.stateNode,f&&i!==null&&(f=31-bt(l),r=m.hiddenUpdates,u=r[f],u===null?r[f]=[i]:u.push(i),i.lane=l|536870912),m):null}function Mc(r){if(50<au)throw au=0,Up=null,Error(a(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var cl={};function nN(r,i,l,u){this.tag=r,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=i,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}function jn(r,i,l,u){return new nN(r,i,l,u)}function Rh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function da(r,i){var l=r.alternate;return l===null?(l=jn(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function n0(r,i){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,i=l.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function Uc(r,i,l,u,f,m){var E=0;if(u=r,typeof r=="function")Rh(r)&&(E=1);else if(typeof r=="string")E=aC(r,l,se.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Q:return r=jn(31,l,i,f),r.elementType=Q,r.lanes=m,r;case x:return ts(l.children,f,m,i);case A:E=8,f|=24;break;case N:return r=jn(12,l,i,f|2),r.elementType=N,r.lanes=m,r;case C:return r=jn(13,l,i,f),r.elementType=C,r.lanes=m,r;case w:return r=jn(19,l,i,f),r.elementType=w,r.lanes=m,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case O:case D:E=10;break e;case R:E=9;break e;case U:E=11;break e;case q:E=14;break e;case re:E=16,u=null;break e}E=29,l=Error(a(130,r===null?"null":typeof r,"")),u=null}return i=jn(E,l,i,f),i.elementType=r,i.type=u,i.lanes=m,i}function ts(r,i,l,u){return r=jn(7,r,u,i),r.lanes=l,r}function Dh(r,i,l){return r=jn(6,r,null,i),r.lanes=l,r}function jh(r,i,l){return i=jn(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var fl=[],dl=0,$c=null,Lc=0,tr=[],nr=0,ns=null,ha=1,pa="";function rs(r,i){fl[dl++]=Lc,fl[dl++]=$c,$c=r,Lc=i}function r0(r,i,l){tr[nr++]=ha,tr[nr++]=pa,tr[nr++]=ns,ns=r;var u=ha;r=pa;var f=32-bt(u)-1;u&=~(1<<f),l+=1;var m=32-bt(i)+f;if(30<m){var E=f-f%5;m=(u&(1<<E)-1).toString(32),u>>=E,f-=E,ha=1<<32-bt(i)+f|l<<f|u,pa=m+r}else ha=1<<m|l<<f|u,pa=r}function kh(r){r.return!==null&&(rs(r,1),r0(r,1,0))}function Mh(r){for(;r===$c;)$c=fl[--dl],fl[dl]=null,Lc=fl[--dl],fl[dl]=null;for(;r===ns;)ns=tr[--nr],tr[nr]=null,pa=tr[--nr],tr[nr]=null,ha=tr[--nr],tr[nr]=null}var mn=null,Mt=null,ct=!1,as=null,Ir=!1,Uh=Error(a(519));function is(r){var i=Error(a(418,""));throw $o(Wn(i,r)),Uh}function a0(r){var i=r.stateNode,l=r.type,u=r.memoizedProps;switch(i[ee]=r,i[oe]=u,l){case"dialog":Xe("cancel",i),Xe("close",i);break;case"iframe":case"object":case"embed":Xe("load",i);break;case"video":case"audio":for(l=0;l<su.length;l++)Xe(su[l],i);break;case"source":Xe("error",i);break;case"img":case"image":case"link":Xe("error",i),Xe("load",i);break;case"details":Xe("toggle",i);break;case"input":Xe("invalid",i),bg(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),xc(i);break;case"select":Xe("invalid",i);break;case"textarea":Xe("invalid",i),Eg(i,u.value,u.defaultValue,u.children),xc(i)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||u.suppressHydrationWarning===!0||ES(i.textContent,l)?(u.popover!=null&&(Xe("beforetoggle",i),Xe("toggle",i)),u.onScroll!=null&&Xe("scroll",i),u.onScrollEnd!=null&&Xe("scrollend",i),u.onClick!=null&&(i.onclick=gf),i=!0):i=!1,i||is(r)}function i0(r){for(mn=r.return;mn;)switch(mn.tag){case 5:case 13:Ir=!1;return;case 27:case 3:Ir=!0;return;default:mn=mn.return}}function Mo(r){if(r!==mn)return!1;if(!ct)return i0(r),ct=!0,!1;var i=r.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||Zp(r.type,r.memoizedProps)),l=!l),l&&Mt&&is(r),i0(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8)if(l=r.data,l==="/$"){if(i===0){Mt=xr(r.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++;r=r.nextSibling}Mt=null}}else i===27?(i=Mt,hi(r.type)?(r=tm,tm=null,Mt=r):Mt=i):Mt=mn?xr(r.stateNode.nextSibling):null;return!0}function Uo(){Mt=mn=null,ct=!1}function s0(){var r=as;return r!==null&&(On===null?On=r:On.push.apply(On,r),as=null),r}function $o(r){as===null?as=[r]:as.push(r)}var $h=Y(null),ss=null,ma=null;function Ja(r,i,l){ne($h,i._currentValue),i._currentValue=l}function va(r){r._currentValue=$h.current,ae($h)}function Lh(r,i,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),r===l)break;r=r.return}}function Bh(r,i,l,u){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var m=f.dependencies;if(m!==null){var E=f.child;m=m.firstContext;e:for(;m!==null;){var T=m;m=f;for(var j=0;j<i.length;j++)if(T.context===i[j]){m.lanes|=l,T=m.alternate,T!==null&&(T.lanes|=l),Lh(m.return,l,r),u||(E=null);break e}m=T.next}}else if(f.tag===18){if(E=f.return,E===null)throw Error(a(341));E.lanes|=l,m=E.alternate,m!==null&&(m.lanes|=l),Lh(E,l,r),E=null}else E=f.child;if(E!==null)E.return=f;else for(E=f;E!==null;){if(E===r){E=null;break}if(f=E.sibling,f!==null){f.return=E.return,E=f;break}E=E.return}f=E}}function Lo(r,i,l,u){r=null;for(var f=i,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var E=f.alternate;if(E===null)throw Error(a(387));if(E=E.memoizedProps,E!==null){var T=f.type;Dn(f.pendingProps.value,E.value)||(r!==null?r.push(T):r=[T])}}else if(f===dt.current){if(E=f.alternate,E===null)throw Error(a(387));E.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(du):r=[du])}f=f.return}r!==null&&Bh(i,r,l,u),i.flags|=262144}function Bc(r){for(r=r.firstContext;r!==null;){if(!Dn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ls(r){ss=r,ma=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function un(r){return l0(ss,r)}function Fc(r,i){return ss===null&&ls(r),l0(r,i)}function l0(r,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},ma===null){if(r===null)throw Error(a(308));ma=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else ma=ma.next=i;return l}var rN=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(l,u){r.push(u)}};this.abort=function(){i.aborted=!0,r.forEach(function(l){return l()})}},aN=e.unstable_scheduleCallback,iN=e.unstable_NormalPriority,Vt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fh(){return{controller:new rN,data:new Map,refCount:0}}function Bo(r){r.refCount--,r.refCount===0&&aN(iN,function(){r.controller.abort()})}var Fo=null,Ih=0,hl=0,pl=null;function sN(r,i){if(Fo===null){var l=Fo=[];Ih=0,hl=qp(),pl={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Ih++,i.then(o0,o0),i}function o0(){if(--Ih===0&&Fo!==null){pl!==null&&(pl.status="fulfilled");var r=Fo;Fo=null,hl=0,pl=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function lN(r,i){var l=[],u={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return r.then(function(){u.status="fulfilled",u.value=i;for(var f=0;f<l.length;f++)(0,l[f])(i)},function(f){for(u.status="rejected",u.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),u}var u0=L.S;L.S=function(r,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&sN(r,i),u0!==null&&u0(r,i)};var os=Y(null);function zh(){var r=os.current;return r!==null?r:Et.pooledCache}function Ic(r,i){i===null?ne(os,os.current):ne(os,i.pool)}function c0(){var r=zh();return r===null?null:{parent:Vt._currentValue,pool:r}}var Io=Error(a(460)),f0=Error(a(474)),zc=Error(a(542)),qh={then:function(){}};function d0(r){return r=r.status,r==="fulfilled"||r==="rejected"}function qc(){}function h0(r,i,l){switch(l=r[l],l===void 0?r.push(i):l!==i&&(i.then(qc,qc),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,m0(r),r;default:if(typeof i.status=="string")i.then(qc,qc);else{if(r=Et,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=i,r.status="pending",r.then(function(u){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=u}},function(u){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,m0(r),r}throw zo=i,Io}}var zo=null;function p0(){if(zo===null)throw Error(a(459));var r=zo;return zo=null,r}function m0(r){if(r===Io||r===zc)throw Error(a(483))}var Wa=!1;function Vh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ei(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ti(r,i,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(ht&2)!==0){var f=u.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),u.pending=i,i=Mc(r),t0(r,null,l),i}return kc(r,u,i,l),Mc(r)}function qo(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var u=i.lanes;u&=r.pendingLanes,l|=u,i.lanes=l,Xi(r,l)}}function Ph(r,i){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var E={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?f=m=E:m=m.next=E,l=l.next}while(l!==null);m===null?f=m=i:m=m.next=i}else f=m=i;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}var Gh=!1;function Vo(){if(Gh){var r=pl;if(r!==null)throw r}}function Ho(r,i,l,u){Gh=!1;var f=r.updateQueue;Wa=!1;var m=f.firstBaseUpdate,E=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var j=T,z=j.next;j.next=null,E===null?m=z:E.next=z,E=j;var K=r.alternate;K!==null&&(K=K.updateQueue,T=K.lastBaseUpdate,T!==E&&(T===null?K.firstBaseUpdate=z:T.next=z,K.lastBaseUpdate=j))}if(m!==null){var J=f.baseState;E=0,K=z=j=null,T=m;do{var H=T.lane&-536870913,P=H!==T.lane;if(P?(et&H)===H:(u&H)===H){H!==0&&H===hl&&(Gh=!0),K!==null&&(K=K.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Be=r,Me=T;H=i;var gt=l;switch(Me.tag){case 1:if(Be=Me.payload,typeof Be=="function"){J=Be.call(gt,J,H);break e}J=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Me.payload,H=typeof Be=="function"?Be.call(gt,J,H):Be,H==null)break e;J=v({},J,H);break e;case 2:Wa=!0}}H=T.callback,H!==null&&(r.flags|=64,P&&(r.flags|=8192),P=f.callbacks,P===null?f.callbacks=[H]:P.push(H))}else P={lane:H,tag:T.tag,payload:T.payload,callback:T.callback,next:null},K===null?(z=K=P,j=J):K=K.next=P,E|=H;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;P=T,T=P.next,P.next=null,f.lastBaseUpdate=P,f.shared.pending=null}}while(!0);K===null&&(j=J),f.baseState=j,f.firstBaseUpdate=z,f.lastBaseUpdate=K,m===null&&(f.shared.lanes=0),ui|=E,r.lanes=E,r.memoizedState=J}}function v0(r,i){if(typeof r!="function")throw Error(a(191,r));r.call(i)}function y0(r,i){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)v0(l[r],i)}var ml=Y(null),Vc=Y(0);function g0(r,i){r=xa,ne(Vc,r),ne(ml,i),xa=r|i.baseLanes}function Yh(){ne(Vc,xa),ne(ml,ml.current)}function Kh(){xa=Vc.current,ae(ml),ae(Vc)}var ni=0,Ge=null,vt=null,Ft=null,Hc=!1,vl=!1,us=!1,Pc=0,Po=0,yl=null,oN=0;function Lt(){throw Error(a(321))}function Qh(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!Dn(r[l],i[l]))return!1;return!0}function Xh(r,i,l,u,f,m){return ni=m,Ge=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=r===null||r.memoizedState===null?tb:nb,us=!1,m=l(u,f),us=!1,vl&&(m=S0(i,l,u,f)),b0(r),m}function b0(r){L.H=Zc;var i=vt!==null&&vt.next!==null;if(ni=0,Ft=vt=Ge=null,Hc=!1,Po=0,yl=null,i)throw Error(a(300));r===null||Yt||(r=r.dependencies,r!==null&&Bc(r)&&(Yt=!0))}function S0(r,i,l,u){Ge=r;var f=0;do{if(vl&&(yl=null),Po=0,vl=!1,25<=f)throw Error(a(301));if(f+=1,Ft=vt=null,r.updateQueue!=null){var m=r.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}L.H=mN,m=i(l,u)}while(vl);return m}function uN(){var r=L.H,i=r.useState()[0];return i=typeof i.then=="function"?Go(i):i,r=r.useState()[0],(vt!==null?vt.memoizedState:null)!==r&&(Ge.flags|=1024),i}function Zh(){var r=Pc!==0;return Pc=0,r}function Jh(r,i,l){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~l}function Wh(r){if(Hc){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Hc=!1}ni=0,Ft=vt=Ge=null,vl=!1,Po=Pc=0,yl=null}function _n(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?Ge.memoizedState=Ft=r:Ft=Ft.next=r,Ft}function It(){if(vt===null){var r=Ge.alternate;r=r!==null?r.memoizedState:null}else r=vt.next;var i=Ft===null?Ge.memoizedState:Ft.next;if(i!==null)Ft=i,vt=r;else{if(r===null)throw Ge.alternate===null?Error(a(467)):Error(a(310));vt=r,r={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},Ft===null?Ge.memoizedState=Ft=r:Ft=Ft.next=r}return Ft}function ep(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Go(r){var i=Po;return Po+=1,yl===null&&(yl=[]),r=h0(yl,r,i),i=Ge,(Ft===null?i.memoizedState:Ft.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?tb:nb),r}function Gc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Go(r);if(r.$$typeof===D)return un(r)}throw Error(a(438,String(r)))}function tp(r){var i=null,l=Ge.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var u=Ge.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=ep(),Ge.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(r),u=0;u<r;u++)l[u]=he;return i.index++,l}function ya(r,i){return typeof i=="function"?i(r):i}function Yc(r){var i=It();return np(i,vt,r)}function np(r,i,l){var u=r.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var f=r.baseQueue,m=u.pending;if(m!==null){if(f!==null){var E=f.next;f.next=m.next,m.next=E}i.baseQueue=f=m,u.pending=null}if(m=r.baseState,f===null)r.memoizedState=m;else{i=f.next;var T=E=null,j=null,z=i,K=!1;do{var J=z.lane&-536870913;if(J!==z.lane?(et&J)===J:(ni&J)===J){var H=z.revertLane;if(H===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),J===hl&&(K=!0);else if((ni&H)===H){z=z.next,H===hl&&(K=!0);continue}else J={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},j===null?(T=j=J,E=m):j=j.next=J,Ge.lanes|=H,ui|=H;J=z.action,us&&l(m,J),m=z.hasEagerState?z.eagerState:l(m,J)}else H={lane:J,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},j===null?(T=j=H,E=m):j=j.next=H,Ge.lanes|=J,ui|=J;z=z.next}while(z!==null&&z!==i);if(j===null?E=m:j.next=T,!Dn(m,r.memoizedState)&&(Yt=!0,K&&(l=pl,l!==null)))throw l;r.memoizedState=m,r.baseState=E,r.baseQueue=j,u.lastRenderedState=m}return f===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function rp(r){var i=It(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=r;var u=l.dispatch,f=l.pending,m=i.memoizedState;if(f!==null){l.pending=null;var E=f=f.next;do m=r(m,E.action),E=E.next;while(E!==f);Dn(m,i.memoizedState)||(Yt=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),l.lastRenderedState=m}return[m,u]}function E0(r,i,l){var u=Ge,f=It(),m=ct;if(m){if(l===void 0)throw Error(a(407));l=l()}else l=i();var E=!Dn((vt||f).memoizedState,l);E&&(f.memoizedState=l,Yt=!0),f=f.queue;var T=O0.bind(null,u,f,r);if(Yo(2048,8,T,[r]),f.getSnapshot!==i||E||Ft!==null&&Ft.memoizedState.tag&1){if(u.flags|=2048,gl(9,Kc(),x0.bind(null,u,f,l,i),null),Et===null)throw Error(a(349));m||(ni&124)!==0||_0(u,i,l)}return l}function _0(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=Ge.updateQueue,i===null?(i=ep(),Ge.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function x0(r,i,l,u){i.value=l,i.getSnapshot=u,T0(i)&&w0(r)}function O0(r,i,l){return l(function(){T0(i)&&w0(r)})}function T0(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!Dn(r,l)}catch{return!0}}function w0(r){var i=ul(r,2);i!==null&&Ln(i,r,2)}function ap(r){var i=_n();if(typeof r=="function"){var l=r;if(r=l(),us){tt(!0);try{l()}finally{tt(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:r},i}function A0(r,i,l,u){return r.baseState=l,np(r,vt,typeof u=="function"?u:ya)}function cN(r,i,l,u,f){if(Xc(r))throw Error(a(485));if(r=i.action,r!==null){var m={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){m.listeners.push(E)}};L.T!==null?l(!0):m.isTransition=!1,u(m),l=i.pending,l===null?(m.next=i.pending=m,N0(i,m)):(m.next=l.next,i.pending=l.next=m)}}function N0(r,i){var l=i.action,u=i.payload,f=r.state;if(i.isTransition){var m=L.T,E={};L.T=E;try{var T=l(f,u),j=L.S;j!==null&&j(E,T),C0(r,i,T)}catch(z){ip(r,i,z)}finally{L.T=m}}else try{m=l(f,u),C0(r,i,m)}catch(z){ip(r,i,z)}}function C0(r,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){R0(r,i,u)},function(u){return ip(r,i,u)}):R0(r,i,l)}function R0(r,i,l){i.status="fulfilled",i.value=l,D0(i),r.state=l,i=r.pending,i!==null&&(l=i.next,l===i?r.pending=null:(l=l.next,i.next=l,N0(r,l)))}function ip(r,i,l){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,D0(i),i=i.next;while(i!==u)}r.action=null}function D0(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function j0(r,i){return i}function k0(r,i){if(ct){var l=Et.formState;if(l!==null){e:{var u=Ge;if(ct){if(Mt){t:{for(var f=Mt,m=Ir;f.nodeType!==8;){if(!m){f=null;break t}if(f=xr(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Mt=xr(f.nextSibling),u=f.data==="F!";break e}}is(u)}u=!1}u&&(i=l[0])}}return l=_n(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:j0,lastRenderedState:i},l.queue=u,l=J0.bind(null,Ge,u),u.dispatch=l,u=ap(!1),m=cp.bind(null,Ge,!1,u.queue),u=_n(),f={state:i,dispatch:null,action:r,pending:null},u.queue=f,l=cN.bind(null,Ge,f,m,l),f.dispatch=l,u.memoizedState=r,[i,l,!1]}function M0(r){var i=It();return U0(i,vt,r)}function U0(r,i,l){if(i=np(r,i,j0)[0],r=Yc(ya)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Go(i)}catch(E){throw E===Io?zc:E}else u=i;i=It();var f=i.queue,m=f.dispatch;return l!==i.memoizedState&&(Ge.flags|=2048,gl(9,Kc(),fN.bind(null,f,l),null)),[u,m,r]}function fN(r,i){r.action=i}function $0(r){var i=It(),l=vt;if(l!==null)return U0(i,l,r);It(),i=i.memoizedState,l=It();var u=l.queue.dispatch;return l.memoizedState=r,[i,u,!1]}function gl(r,i,l,u){return r={tag:r,create:l,deps:u,inst:i,next:null},i=Ge.updateQueue,i===null&&(i=ep(),Ge.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,i.lastEffect=r),r}function Kc(){return{destroy:void 0,resource:void 0}}function L0(){return It().memoizedState}function Qc(r,i,l,u){var f=_n();u=u===void 0?null:u,Ge.flags|=r,f.memoizedState=gl(1|i,Kc(),l,u)}function Yo(r,i,l,u){var f=It();u=u===void 0?null:u;var m=f.memoizedState.inst;vt!==null&&u!==null&&Qh(u,vt.memoizedState.deps)?f.memoizedState=gl(i,m,l,u):(Ge.flags|=r,f.memoizedState=gl(1|i,m,l,u))}function B0(r,i){Qc(8390656,8,r,i)}function F0(r,i){Yo(2048,8,r,i)}function I0(r,i){return Yo(4,2,r,i)}function z0(r,i){return Yo(4,4,r,i)}function q0(r,i){if(typeof i=="function"){r=r();var l=i(r);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function V0(r,i,l){l=l!=null?l.concat([r]):null,Yo(4,4,q0.bind(null,i,r),l)}function sp(){}function H0(r,i){var l=It();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&Qh(i,u[1])?u[0]:(l.memoizedState=[r,i],r)}function P0(r,i){var l=It();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&Qh(i,u[1]))return u[0];if(u=r(),us){tt(!0);try{r()}finally{tt(!1)}}return l.memoizedState=[u,i],u}function lp(r,i,l){return l===void 0||(ni&1073741824)!==0?r.memoizedState=i:(r.memoizedState=l,r=Kb(),Ge.lanes|=r,ui|=r,l)}function G0(r,i,l,u){return Dn(l,i)?l:ml.current!==null?(r=lp(r,l,u),Dn(r,i)||(Yt=!0),r):(ni&42)===0?(Yt=!0,r.memoizedState=l):(r=Kb(),Ge.lanes|=r,ui|=r,i)}function Y0(r,i,l,u,f){var m=te.p;te.p=m!==0&&8>m?m:8;var E=L.T,T={};L.T=T,cp(r,!1,i,l);try{var j=f(),z=L.S;if(z!==null&&z(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var K=lN(j,u);Ko(r,i,K,$n(r))}else Ko(r,i,u,$n(r))}catch(J){Ko(r,i,{then:function(){},status:"rejected",reason:J},$n())}finally{te.p=m,L.T=E}}function dN(){}function op(r,i,l,u){if(r.tag!==5)throw Error(a(476));var f=K0(r).queue;Y0(r,f,i,le,l===null?dN:function(){return Q0(r),l(u)})}function K0(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:le},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:l},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function Q0(r){var i=K0(r).next.queue;Ko(r,i,{},$n())}function up(){return un(du)}function X0(){return It().memoizedState}function Z0(){return It().memoizedState}function hN(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var l=$n();r=ei(l);var u=ti(i,r,l);u!==null&&(Ln(u,i,l),qo(u,i,l)),i={cache:Fh()},r.payload=i;return}i=i.return}}function pN(r,i,l){var u=$n();l={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Xc(r)?W0(i,l):(l=Ch(r,i,l,u),l!==null&&(Ln(l,r,u),eb(l,i,u)))}function J0(r,i,l){var u=$n();Ko(r,i,l,u)}function Ko(r,i,l,u){var f={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xc(r))W0(i,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var E=i.lastRenderedState,T=m(E,l);if(f.hasEagerState=!0,f.eagerState=T,Dn(T,E))return kc(r,i,f,0),Et===null&&jc(),!1}catch{}finally{}if(l=Ch(r,i,f,u),l!==null)return Ln(l,r,u),eb(l,i,u),!0}return!1}function cp(r,i,l,u){if(u={lane:2,revertLane:qp(),action:u,hasEagerState:!1,eagerState:null,next:null},Xc(r)){if(i)throw Error(a(479))}else i=Ch(r,l,u,2),i!==null&&Ln(i,r,2)}function Xc(r){var i=r.alternate;return r===Ge||i!==null&&i===Ge}function W0(r,i){vl=Hc=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function eb(r,i,l){if((l&4194048)!==0){var u=i.lanes;u&=r.pendingLanes,l|=u,i.lanes=l,Xi(r,l)}}var Zc={readContext:un,use:Gc,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt},tb={readContext:un,use:Gc,useCallback:function(r,i){return _n().memoizedState=[r,i===void 0?null:i],r},useContext:un,useEffect:B0,useImperativeHandle:function(r,i,l){l=l!=null?l.concat([r]):null,Qc(4194308,4,q0.bind(null,i,r),l)},useLayoutEffect:function(r,i){return Qc(4194308,4,r,i)},useInsertionEffect:function(r,i){Qc(4,2,r,i)},useMemo:function(r,i){var l=_n();i=i===void 0?null:i;var u=r();if(us){tt(!0);try{r()}finally{tt(!1)}}return l.memoizedState=[u,i],u},useReducer:function(r,i,l){var u=_n();if(l!==void 0){var f=l(i);if(us){tt(!0);try{l(i)}finally{tt(!1)}}}else f=i;return u.memoizedState=u.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},u.queue=r,r=r.dispatch=pN.bind(null,Ge,r),[u.memoizedState,r]},useRef:function(r){var i=_n();return r={current:r},i.memoizedState=r},useState:function(r){r=ap(r);var i=r.queue,l=J0.bind(null,Ge,i);return i.dispatch=l,[r.memoizedState,l]},useDebugValue:sp,useDeferredValue:function(r,i){var l=_n();return lp(l,r,i)},useTransition:function(){var r=ap(!1);return r=Y0.bind(null,Ge,r.queue,!0,!1),_n().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,l){var u=Ge,f=_n();if(ct){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),Et===null)throw Error(a(349));(et&124)!==0||_0(u,i,l)}f.memoizedState=l;var m={value:l,getSnapshot:i};return f.queue=m,B0(O0.bind(null,u,m,r),[r]),u.flags|=2048,gl(9,Kc(),x0.bind(null,u,m,l,i),null),l},useId:function(){var r=_n(),i=Et.identifierPrefix;if(ct){var l=pa,u=ha;l=(u&~(1<<32-bt(u)-1)).toString(32)+l,i="«"+i+"R"+l,l=Pc++,0<l&&(i+="H"+l.toString(32)),i+="»"}else l=oN++,i="«"+i+"r"+l.toString(32)+"»";return r.memoizedState=i},useHostTransitionStatus:up,useFormState:k0,useActionState:k0,useOptimistic:function(r){var i=_n();i.memoizedState=i.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=cp.bind(null,Ge,!0,l),l.dispatch=i,[r,i]},useMemoCache:tp,useCacheRefresh:function(){return _n().memoizedState=hN.bind(null,Ge)}},nb={readContext:un,use:Gc,useCallback:H0,useContext:un,useEffect:F0,useImperativeHandle:V0,useInsertionEffect:I0,useLayoutEffect:z0,useMemo:P0,useReducer:Yc,useRef:L0,useState:function(){return Yc(ya)},useDebugValue:sp,useDeferredValue:function(r,i){var l=It();return G0(l,vt.memoizedState,r,i)},useTransition:function(){var r=Yc(ya)[0],i=It().memoizedState;return[typeof r=="boolean"?r:Go(r),i]},useSyncExternalStore:E0,useId:X0,useHostTransitionStatus:up,useFormState:M0,useActionState:M0,useOptimistic:function(r,i){var l=It();return A0(l,vt,r,i)},useMemoCache:tp,useCacheRefresh:Z0},mN={readContext:un,use:Gc,useCallback:H0,useContext:un,useEffect:F0,useImperativeHandle:V0,useInsertionEffect:I0,useLayoutEffect:z0,useMemo:P0,useReducer:rp,useRef:L0,useState:function(){return rp(ya)},useDebugValue:sp,useDeferredValue:function(r,i){var l=It();return vt===null?lp(l,r,i):G0(l,vt.memoizedState,r,i)},useTransition:function(){var r=rp(ya)[0],i=It().memoizedState;return[typeof r=="boolean"?r:Go(r),i]},useSyncExternalStore:E0,useId:X0,useHostTransitionStatus:up,useFormState:$0,useActionState:$0,useOptimistic:function(r,i){var l=It();return vt!==null?A0(l,vt,r,i):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:tp,useCacheRefresh:Z0},bl=null,Qo=0;function Jc(r){var i=Qo;return Qo+=1,bl===null&&(bl=[]),h0(bl,r,i)}function Xo(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Wc(r,i){throw i.$$typeof===b?Error(a(525)):(r=Object.prototype.toString.call(i),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function rb(r){var i=r._init;return i(r._payload)}function ab(r){function i(B,$){if(r){var I=B.deletions;I===null?(B.deletions=[$],B.flags|=16):I.push($)}}function l(B,$){if(!r)return null;for(;$!==null;)i(B,$),$=$.sibling;return null}function u(B){for(var $=new Map;B!==null;)B.key!==null?$.set(B.key,B):$.set(B.index,B),B=B.sibling;return $}function f(B,$){return B=da(B,$),B.index=0,B.sibling=null,B}function m(B,$,I){return B.index=I,r?(I=B.alternate,I!==null?(I=I.index,I<$?(B.flags|=67108866,$):I):(B.flags|=67108866,$)):(B.flags|=1048576,$)}function E(B){return r&&B.alternate===null&&(B.flags|=67108866),B}function T(B,$,I,X){return $===null||$.tag!==6?($=Dh(I,B.mode,X),$.return=B,$):($=f($,I),$.return=B,$)}function j(B,$,I,X){var be=I.type;return be===x?K(B,$,I.props.children,X,I.key):$!==null&&($.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===re&&rb(be)===$.type)?($=f($,I.props),Xo($,I),$.return=B,$):($=Uc(I.type,I.key,I.props,null,B.mode,X),Xo($,I),$.return=B,$)}function z(B,$,I,X){return $===null||$.tag!==4||$.stateNode.containerInfo!==I.containerInfo||$.stateNode.implementation!==I.implementation?($=jh(I,B.mode,X),$.return=B,$):($=f($,I.children||[]),$.return=B,$)}function K(B,$,I,X,be){return $===null||$.tag!==7?($=ts(I,B.mode,X,be),$.return=B,$):($=f($,I),$.return=B,$)}function J(B,$,I){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Dh(""+$,B.mode,I),$.return=B,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case y:return I=Uc($.type,$.key,$.props,null,B.mode,I),Xo(I,$),I.return=B,I;case _:return $=jh($,B.mode,I),$.return=B,$;case re:var X=$._init;return $=X($._payload),J(B,$,I)}if(we($)||xe($))return $=ts($,B.mode,I,null),$.return=B,$;if(typeof $.then=="function")return J(B,Jc($),I);if($.$$typeof===D)return J(B,Fc(B,$),I);Wc(B,$)}return null}function H(B,$,I,X){var be=$!==null?$.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return be!==null?null:T(B,$,""+I,X);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case y:return I.key===be?j(B,$,I,X):null;case _:return I.key===be?z(B,$,I,X):null;case re:return be=I._init,I=be(I._payload),H(B,$,I,X)}if(we(I)||xe(I))return be!==null?null:K(B,$,I,X,null);if(typeof I.then=="function")return H(B,$,Jc(I),X);if(I.$$typeof===D)return H(B,$,Fc(B,I),X);Wc(B,I)}return null}function P(B,$,I,X,be){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return B=B.get(I)||null,T($,B,""+X,be);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case y:return B=B.get(X.key===null?I:X.key)||null,j($,B,X,be);case _:return B=B.get(X.key===null?I:X.key)||null,z($,B,X,be);case re:var Ke=X._init;return X=Ke(X._payload),P(B,$,I,X,be)}if(we(X)||xe(X))return B=B.get(I)||null,K($,B,X,be,null);if(typeof X.then=="function")return P(B,$,I,Jc(X),be);if(X.$$typeof===D)return P(B,$,I,Fc($,X),be);Wc($,X)}return null}function Be(B,$,I,X){for(var be=null,Ke=null,Ce=$,Ue=$=0,Qt=null;Ce!==null&&Ue<I.length;Ue++){Ce.index>Ue?(Qt=Ce,Ce=null):Qt=Ce.sibling;var st=H(B,Ce,I[Ue],X);if(st===null){Ce===null&&(Ce=Qt);break}r&&Ce&&st.alternate===null&&i(B,Ce),$=m(st,$,Ue),Ke===null?be=st:Ke.sibling=st,Ke=st,Ce=Qt}if(Ue===I.length)return l(B,Ce),ct&&rs(B,Ue),be;if(Ce===null){for(;Ue<I.length;Ue++)Ce=J(B,I[Ue],X),Ce!==null&&($=m(Ce,$,Ue),Ke===null?be=Ce:Ke.sibling=Ce,Ke=Ce);return ct&&rs(B,Ue),be}for(Ce=u(Ce);Ue<I.length;Ue++)Qt=P(Ce,B,Ue,I[Ue],X),Qt!==null&&(r&&Qt.alternate!==null&&Ce.delete(Qt.key===null?Ue:Qt.key),$=m(Qt,$,Ue),Ke===null?be=Qt:Ke.sibling=Qt,Ke=Qt);return r&&Ce.forEach(function(gi){return i(B,gi)}),ct&&rs(B,Ue),be}function Me(B,$,I,X){if(I==null)throw Error(a(151));for(var be=null,Ke=null,Ce=$,Ue=$=0,Qt=null,st=I.next();Ce!==null&&!st.done;Ue++,st=I.next()){Ce.index>Ue?(Qt=Ce,Ce=null):Qt=Ce.sibling;var gi=H(B,Ce,st.value,X);if(gi===null){Ce===null&&(Ce=Qt);break}r&&Ce&&gi.alternate===null&&i(B,Ce),$=m(gi,$,Ue),Ke===null?be=gi:Ke.sibling=gi,Ke=gi,Ce=Qt}if(st.done)return l(B,Ce),ct&&rs(B,Ue),be;if(Ce===null){for(;!st.done;Ue++,st=I.next())st=J(B,st.value,X),st!==null&&($=m(st,$,Ue),Ke===null?be=st:Ke.sibling=st,Ke=st);return ct&&rs(B,Ue),be}for(Ce=u(Ce);!st.done;Ue++,st=I.next())st=P(Ce,B,Ue,st.value,X),st!==null&&(r&&st.alternate!==null&&Ce.delete(st.key===null?Ue:st.key),$=m(st,$,Ue),Ke===null?be=st:Ke.sibling=st,Ke=st);return r&&Ce.forEach(function(vC){return i(B,vC)}),ct&&rs(B,Ue),be}function gt(B,$,I,X){if(typeof I=="object"&&I!==null&&I.type===x&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case y:e:{for(var be=I.key;$!==null;){if($.key===be){if(be=I.type,be===x){if($.tag===7){l(B,$.sibling),X=f($,I.props.children),X.return=B,B=X;break e}}else if($.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===re&&rb(be)===$.type){l(B,$.sibling),X=f($,I.props),Xo(X,I),X.return=B,B=X;break e}l(B,$);break}else i(B,$);$=$.sibling}I.type===x?(X=ts(I.props.children,B.mode,X,I.key),X.return=B,B=X):(X=Uc(I.type,I.key,I.props,null,B.mode,X),Xo(X,I),X.return=B,B=X)}return E(B);case _:e:{for(be=I.key;$!==null;){if($.key===be)if($.tag===4&&$.stateNode.containerInfo===I.containerInfo&&$.stateNode.implementation===I.implementation){l(B,$.sibling),X=f($,I.children||[]),X.return=B,B=X;break e}else{l(B,$);break}else i(B,$);$=$.sibling}X=jh(I,B.mode,X),X.return=B,B=X}return E(B);case re:return be=I._init,I=be(I._payload),gt(B,$,I,X)}if(we(I))return Be(B,$,I,X);if(xe(I)){if(be=xe(I),typeof be!="function")throw Error(a(150));return I=be.call(I),Me(B,$,I,X)}if(typeof I.then=="function")return gt(B,$,Jc(I),X);if(I.$$typeof===D)return gt(B,$,Fc(B,I),X);Wc(B,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,$!==null&&$.tag===6?(l(B,$.sibling),X=f($,I),X.return=B,B=X):(l(B,$),X=Dh(I,B.mode,X),X.return=B,B=X),E(B)):l(B,$)}return function(B,$,I,X){try{Qo=0;var be=gt(B,$,I,X);return bl=null,be}catch(Ce){if(Ce===Io||Ce===zc)throw Ce;var Ke=jn(29,Ce,null,B.mode);return Ke.lanes=X,Ke.return=B,Ke}finally{}}}var Sl=ab(!0),ib=ab(!1),rr=Y(null),zr=null;function ri(r){var i=r.alternate;ne(Ht,Ht.current&1),ne(rr,r),zr===null&&(i===null||ml.current!==null||i.memoizedState!==null)&&(zr=r)}function sb(r){if(r.tag===22){if(ne(Ht,Ht.current),ne(rr,r),zr===null){var i=r.alternate;i!==null&&i.memoizedState!==null&&(zr=r)}}else ai()}function ai(){ne(Ht,Ht.current),ne(rr,rr.current)}function ga(r){ae(rr),zr===r&&(zr=null),ae(Ht)}var Ht=Y(0);function ef(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||em(l)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function fp(r,i,l,u){i=r.memoizedState,l=l(u,i),l=l==null?i:v({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var dp={enqueueSetState:function(r,i,l){r=r._reactInternals;var u=$n(),f=ei(u);f.payload=i,l!=null&&(f.callback=l),i=ti(r,f,u),i!==null&&(Ln(i,r,u),qo(i,r,u))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var u=$n(),f=ei(u);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=ti(r,f,u),i!==null&&(Ln(i,r,u),qo(i,r,u))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=$n(),u=ei(l);u.tag=2,i!=null&&(u.callback=i),i=ti(r,u,l),i!==null&&(Ln(i,r,l),qo(i,r,l))}};function lb(r,i,l,u,f,m,E){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,m,E):i.prototype&&i.prototype.isPureReactComponent?!jo(l,u)||!jo(f,m):!0}function ob(r,i,l,u){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==r&&dp.enqueueReplaceState(i,i.state,null)}function cs(r,i){var l=i;if("ref"in i){l={};for(var u in i)u!=="ref"&&(l[u]=i[u])}if(r=r.defaultProps){l===i&&(l=v({},l));for(var f in r)l[f]===void 0&&(l[f]=r[f])}return l}var tf=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function ub(r){tf(r)}function cb(r){console.error(r)}function fb(r){tf(r)}function nf(r,i){try{var l=r.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function db(r,i,l){try{var u=r.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function hp(r,i,l){return l=ei(l),l.tag=3,l.payload={element:null},l.callback=function(){nf(r,i)},l}function hb(r){return r=ei(r),r.tag=3,r}function pb(r,i,l,u){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var m=u.value;r.payload=function(){return f(m)},r.callback=function(){db(i,l,u)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(r.callback=function(){db(i,l,u),typeof f!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})})}function vN(r,i,l,u,f){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&Lo(i,l,f,!0),l=rr.current,l!==null){switch(l.tag){case 13:return zr===null?Lp():l.alternate===null&&Ut===0&&(Ut=3),l.flags&=-257,l.flags|=65536,l.lanes=f,u===qh?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),Fp(r,u,f)),!1;case 22:return l.flags|=65536,u===qh?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([u]):l.add(u)),Fp(r,u,f)),!1}throw Error(a(435,l.tag))}return Fp(r,u,f),Lp(),!1}if(ct)return i=rr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,u!==Uh&&(r=Error(a(422),{cause:u}),$o(Wn(r,l)))):(u!==Uh&&(i=Error(a(423),{cause:u}),$o(Wn(i,l))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,u=Wn(u,l),f=hp(r.stateNode,u,f),Ph(r,f),Ut!==4&&(Ut=2)),!1;var m=Error(a(520),{cause:u});if(m=Wn(m,l),ru===null?ru=[m]:ru.push(m),Ut!==4&&(Ut=2),i===null)return!0;u=Wn(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,r=f&-f,l.lanes|=r,r=hp(l.stateNode,u,r),Ph(l,r),!1;case 1:if(i=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ci===null||!ci.has(m))))return l.flags|=65536,f&=-f,l.lanes|=f,f=hb(f),pb(f,r,l,u),Ph(l,f),!1}l=l.return}while(l!==null);return!1}var mb=Error(a(461)),Yt=!1;function tn(r,i,l,u){i.child=r===null?ib(i,null,l,u):Sl(i,r.child,l,u)}function vb(r,i,l,u,f){l=l.render;var m=i.ref;if("ref"in u){var E={};for(var T in u)T!=="ref"&&(E[T]=u[T])}else E=u;return ls(i),u=Xh(r,i,l,E,m,f),T=Zh(),r!==null&&!Yt?(Jh(r,i,f),ba(r,i,f)):(ct&&T&&kh(i),i.flags|=1,tn(r,i,u,f),i.child)}function yb(r,i,l,u,f){if(r===null){var m=l.type;return typeof m=="function"&&!Rh(m)&&m.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=m,gb(r,i,m,u,f)):(r=Uc(l.type,null,u,i,i.mode,f),r.ref=i.ref,r.return=i,i.child=r)}if(m=r.child,!Ep(r,f)){var E=m.memoizedProps;if(l=l.compare,l=l!==null?l:jo,l(E,u)&&r.ref===i.ref)return ba(r,i,f)}return i.flags|=1,r=da(m,u),r.ref=i.ref,r.return=i,i.child=r}function gb(r,i,l,u,f){if(r!==null){var m=r.memoizedProps;if(jo(m,u)&&r.ref===i.ref)if(Yt=!1,i.pendingProps=u=m,Ep(r,f))(r.flags&131072)!==0&&(Yt=!0);else return i.lanes=r.lanes,ba(r,i,f)}return pp(r,i,l,u,f)}function bb(r,i,l){var u=i.pendingProps,f=u.children,m=r!==null?r.memoizedState:null;if(u.mode==="hidden"){if((i.flags&128)!==0){if(u=m!==null?m.baseLanes|l:l,r!==null){for(f=i.child=r.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;i.childLanes=m&~u}else i.childLanes=0,i.child=null;return Sb(r,i,u,l)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&Ic(i,m!==null?m.cachePool:null),m!==null?g0(i,m):Yh(),sb(i);else return i.lanes=i.childLanes=536870912,Sb(r,i,m!==null?m.baseLanes|l:l,l)}else m!==null?(Ic(i,m.cachePool),g0(i,m),ai(),i.memoizedState=null):(r!==null&&Ic(i,null),Yh(),ai());return tn(r,i,f,l),i.child}function Sb(r,i,l,u){var f=zh();return f=f===null?null:{parent:Vt._currentValue,pool:f},i.memoizedState={baseLanes:l,cachePool:f},r!==null&&Ic(i,null),Yh(),sb(i),r!==null&&Lo(r,i,u,!0),null}function rf(r,i){var l=i.ref;if(l===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(r===null||r.ref!==l)&&(i.flags|=4194816)}}function pp(r,i,l,u,f){return ls(i),l=Xh(r,i,l,u,void 0,f),u=Zh(),r!==null&&!Yt?(Jh(r,i,f),ba(r,i,f)):(ct&&u&&kh(i),i.flags|=1,tn(r,i,l,f),i.child)}function Eb(r,i,l,u,f,m){return ls(i),i.updateQueue=null,l=S0(i,u,l,f),b0(r),u=Zh(),r!==null&&!Yt?(Jh(r,i,m),ba(r,i,m)):(ct&&u&&kh(i),i.flags|=1,tn(r,i,l,m),i.child)}function _b(r,i,l,u,f){if(ls(i),i.stateNode===null){var m=cl,E=l.contextType;typeof E=="object"&&E!==null&&(m=un(E)),m=new l(u,m),i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=dp,i.stateNode=m,m._reactInternals=i,m=i.stateNode,m.props=u,m.state=i.memoizedState,m.refs={},Vh(i),E=l.contextType,m.context=typeof E=="object"&&E!==null?un(E):cl,m.state=i.memoizedState,E=l.getDerivedStateFromProps,typeof E=="function"&&(fp(i,l,E,u),m.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(E=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),E!==m.state&&dp.enqueueReplaceState(m,m.state,null),Ho(i,u,m,f),Vo(),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(r===null){m=i.stateNode;var T=i.memoizedProps,j=cs(l,T);m.props=j;var z=m.context,K=l.contextType;E=cl,typeof K=="object"&&K!==null&&(E=un(K));var J=l.getDerivedStateFromProps;K=typeof J=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=i.pendingProps!==T,K||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||z!==E)&&ob(i,m,u,E),Wa=!1;var H=i.memoizedState;m.state=H,Ho(i,u,m,f),Vo(),z=i.memoizedState,T||H!==z||Wa?(typeof J=="function"&&(fp(i,l,J,u),z=i.memoizedState),(j=Wa||lb(i,l,j,u,H,z,E))?(K||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"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=z),m.props=u,m.state=z,m.context=E,u=j):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{m=i.stateNode,Hh(r,i),E=i.memoizedProps,K=cs(l,E),m.props=K,J=i.pendingProps,H=m.context,z=l.contextType,j=cl,typeof z=="object"&&z!==null&&(j=un(z)),T=l.getDerivedStateFromProps,(z=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E!==J||H!==j)&&ob(i,m,u,j),Wa=!1,H=i.memoizedState,m.state=H,Ho(i,u,m,f),Vo();var P=i.memoizedState;E!==J||H!==P||Wa||r!==null&&r.dependencies!==null&&Bc(r.dependencies)?(typeof T=="function"&&(fp(i,l,T,u),P=i.memoizedState),(K=Wa||lb(i,l,K,u,H,P,j)||r!==null&&r.dependencies!==null&&Bc(r.dependencies))?(z||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,P,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,P,j)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=P),m.props=u,m.state=P,m.context=j,u=K):(typeof m.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),u=!1)}return m=u,rf(r,i),u=(i.flags&128)!==0,m||u?(m=i.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:m.render(),i.flags|=1,r!==null&&u?(i.child=Sl(i,r.child,null,f),i.child=Sl(i,null,l,f)):tn(r,i,l,f),i.memoizedState=m.state,r=i.child):r=ba(r,i,f),r}function xb(r,i,l,u){return Uo(),i.flags|=256,tn(r,i,l,u),i.child}var mp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vp(r){return{baseLanes:r,cachePool:c0()}}function yp(r,i,l){return r=r!==null?r.childLanes&~l:0,i&&(r|=ar),r}function Ob(r,i,l){var u=i.pendingProps,f=!1,m=(i.flags&128)!==0,E;if((E=m)||(E=r!==null&&r.memoizedState===null?!1:(Ht.current&2)!==0),E&&(f=!0,i.flags&=-129),E=(i.flags&32)!==0,i.flags&=-33,r===null){if(ct){if(f?ri(i):ai(),ct){var T=Mt,j;if(j=T){e:{for(j=T,T=Ir;j.nodeType!==8;){if(!T){T=null;break e}if(j=xr(j.nextSibling),j===null){T=null;break e}}T=j}T!==null?(i.memoizedState={dehydrated:T,treeContext:ns!==null?{id:ha,overflow:pa}:null,retryLane:536870912,hydrationErrors:null},j=jn(18,null,null,0),j.stateNode=T,j.return=i,i.child=j,mn=i,Mt=null,j=!0):j=!1}j||is(i)}if(T=i.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return em(T)?i.lanes=32:i.lanes=536870912,null;ga(i)}return T=u.children,u=u.fallback,f?(ai(),f=i.mode,T=af({mode:"hidden",children:T},f),u=ts(u,f,l,null),T.return=i,u.return=i,T.sibling=u,i.child=T,f=i.child,f.memoizedState=vp(l),f.childLanes=yp(r,E,l),i.memoizedState=mp,u):(ri(i),gp(i,T))}if(j=r.memoizedState,j!==null&&(T=j.dehydrated,T!==null)){if(m)i.flags&256?(ri(i),i.flags&=-257,i=bp(r,i,l)):i.memoizedState!==null?(ai(),i.child=r.child,i.flags|=128,i=null):(ai(),f=u.fallback,T=i.mode,u=af({mode:"visible",children:u.children},T),f=ts(f,T,l,null),f.flags|=2,u.return=i,f.return=i,u.sibling=f,i.child=u,Sl(i,r.child,null,l),u=i.child,u.memoizedState=vp(l),u.childLanes=yp(r,E,l),i.memoizedState=mp,i=f);else if(ri(i),em(T)){if(E=T.nextSibling&&T.nextSibling.dataset,E)var z=E.dgst;E=z,u=Error(a(419)),u.stack="",u.digest=E,$o({value:u,source:null,stack:null}),i=bp(r,i,l)}else if(Yt||Lo(r,i,l,!1),E=(l&r.childLanes)!==0,Yt||E){if(E=Et,E!==null&&(u=l&-l,u=(u&42)!==0?1:Eo(u),u=(u&(E.suspendedLanes|l))!==0?0:u,u!==0&&u!==j.retryLane))throw j.retryLane=u,ul(r,u),Ln(E,r,u),mb;T.data==="$?"||Lp(),i=bp(r,i,l)}else T.data==="$?"?(i.flags|=192,i.child=r.child,i=null):(r=j.treeContext,Mt=xr(T.nextSibling),mn=i,ct=!0,as=null,Ir=!1,r!==null&&(tr[nr++]=ha,tr[nr++]=pa,tr[nr++]=ns,ha=r.id,pa=r.overflow,ns=i),i=gp(i,u.children),i.flags|=4096);return i}return f?(ai(),f=u.fallback,T=i.mode,j=r.child,z=j.sibling,u=da(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,z!==null?f=da(z,f):(f=ts(f,T,l,null),f.flags|=2),f.return=i,u.return=i,u.sibling=f,i.child=u,u=f,f=i.child,T=r.child.memoizedState,T===null?T=vp(l):(j=T.cachePool,j!==null?(z=Vt._currentValue,j=j.parent!==z?{parent:z,pool:z}:j):j=c0(),T={baseLanes:T.baseLanes|l,cachePool:j}),f.memoizedState=T,f.childLanes=yp(r,E,l),i.memoizedState=mp,u):(ri(i),l=r.child,r=l.sibling,l=da(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,r!==null&&(E=i.deletions,E===null?(i.deletions=[r],i.flags|=16):E.push(r)),i.child=l,i.memoizedState=null,l)}function gp(r,i){return i=af({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function af(r,i){return r=jn(22,r,null,i),r.lanes=0,r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function bp(r,i,l){return Sl(i,r.child,null,l),r=gp(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function Tb(r,i,l){r.lanes|=i;var u=r.alternate;u!==null&&(u.lanes|=i),Lh(r.return,i,l)}function Sp(r,i,l,u,f){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=l,m.tailMode=f)}function wb(r,i,l){var u=i.pendingProps,f=u.revealOrder,m=u.tail;if(tn(r,i,u.children,l),u=Ht.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Tb(r,l,i);else if(r.tag===19)Tb(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}switch(ne(Ht,u),f){case"forwards":for(l=i.child,f=null;l!==null;)r=l.alternate,r!==null&&ef(r)===null&&(f=l),l=l.sibling;l=f,l===null?(f=i.child,i.child=null):(f=l.sibling,l.sibling=null),Sp(i,!1,f,l,m);break;case"backwards":for(l=null,f=i.child,i.child=null;f!==null;){if(r=f.alternate,r!==null&&ef(r)===null){i.child=f;break}r=f.sibling,f.sibling=l,l=f,f=r}Sp(i,!0,l,null,m);break;case"together":Sp(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ba(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),ui|=i.lanes,(l&i.childLanes)===0)if(r!==null){if(Lo(r,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(a(153));if(i.child!==null){for(r=i.child,l=da(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=da(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function Ep(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Bc(r)))}function yN(r,i,l){switch(i.tag){case 3:qe(i,i.stateNode.containerInfo),Ja(i,Vt,r.memoizedState.cache),Uo();break;case 27:case 5:ut(i);break;case 4:qe(i,i.stateNode.containerInfo);break;case 10:Ja(i,i.type,i.memoizedProps.value);break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(ri(i),i.flags|=128,null):(l&i.child.childLanes)!==0?Ob(r,i,l):(ri(i),r=ba(r,i,l),r!==null?r.sibling:null);ri(i);break;case 19:var f=(r.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(Lo(r,i,l,!1),u=(l&i.childLanes)!==0),f){if(u)return wb(r,i,l);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ne(Ht,Ht.current),u)break;return null;case 22:case 23:return i.lanes=0,bb(r,i,l);case 24:Ja(i,Vt,r.memoizedState.cache)}return ba(r,i,l)}function Ab(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps)Yt=!0;else{if(!Ep(r,l)&&(i.flags&128)===0)return Yt=!1,yN(r,i,l);Yt=(r.flags&131072)!==0}else Yt=!1,ct&&(i.flags&1048576)!==0&&r0(i,Lc,i.index);switch(i.lanes=0,i.tag){case 16:e:{r=i.pendingProps;var u=i.elementType,f=u._init;if(u=f(u._payload),i.type=u,typeof u=="function")Rh(u)?(r=cs(u,r),i.tag=1,i=_b(null,i,u,r,l)):(i.tag=0,i=pp(null,i,u,r,l));else{if(u!=null){if(f=u.$$typeof,f===U){i.tag=11,i=vb(null,i,u,r,l);break e}else if(f===q){i.tag=14,i=yb(null,i,u,r,l);break e}}throw i=me(u)||u,Error(a(306,i,""))}}return i;case 0:return pp(r,i,i.type,i.pendingProps,l);case 1:return u=i.type,f=cs(u,i.pendingProps),_b(r,i,u,f,l);case 3:e:{if(qe(i,i.stateNode.containerInfo),r===null)throw Error(a(387));u=i.pendingProps;var m=i.memoizedState;f=m.element,Hh(r,i),Ho(i,u,null,l);var E=i.memoizedState;if(u=E.cache,Ja(i,Vt,u),u!==m.cache&&Bh(i,[Vt],l,!0),Vo(),u=E.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:E.cache},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){i=xb(r,i,u,l);break e}else if(u!==f){f=Wn(Error(a(424)),i),$o(f),i=xb(r,i,u,l);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Mt=xr(r.firstChild),mn=i,ct=!0,as=null,Ir=!0,l=ib(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Uo(),u===f){i=ba(r,i,l);break e}tn(r,i,u,l)}i=i.child}return i;case 26:return rf(r,i),r===null?(l=DS(i.type,null,i.pendingProps,null))?i.memoizedState=l:ct||(l=i.type,r=i.pendingProps,u=bf(ve.current).createElement(l),u[ee]=i,u[oe]=r,rn(u,l,r),it(u),i.stateNode=u):i.memoizedState=DS(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return ut(i),r===null&&ct&&(u=i.stateNode=NS(i.type,i.pendingProps,ve.current),mn=i,Ir=!0,f=Mt,hi(i.type)?(tm=f,Mt=xr(u.firstChild)):Mt=f),tn(r,i,i.pendingProps.children,l),rf(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&ct&&((f=u=Mt)&&(u=PN(u,i.type,i.pendingProps,Ir),u!==null?(i.stateNode=u,mn=i,Mt=xr(u.firstChild),Ir=!1,f=!0):f=!1),f||is(i)),ut(i),f=i.type,m=i.pendingProps,E=r!==null?r.memoizedProps:null,u=m.children,Zp(f,m)?u=null:E!==null&&Zp(f,E)&&(i.flags|=32),i.memoizedState!==null&&(f=Xh(r,i,uN,null,null,l),du._currentValue=f),rf(r,i),tn(r,i,u,l),i.child;case 6:return r===null&&ct&&((r=l=Mt)&&(l=GN(l,i.pendingProps,Ir),l!==null?(i.stateNode=l,mn=i,Mt=null,r=!0):r=!1),r||is(i)),null;case 13:return Ob(r,i,l);case 4:return qe(i,i.stateNode.containerInfo),u=i.pendingProps,r===null?i.child=Sl(i,null,u,l):tn(r,i,u,l),i.child;case 11:return vb(r,i,i.type,i.pendingProps,l);case 7:return tn(r,i,i.pendingProps,l),i.child;case 8:return tn(r,i,i.pendingProps.children,l),i.child;case 12:return tn(r,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,Ja(i,i.type,u.value),tn(r,i,u.children,l),i.child;case 9:return f=i.type._context,u=i.pendingProps.children,ls(i),f=un(f),u=u(f),i.flags|=1,tn(r,i,u,l),i.child;case 14:return yb(r,i,i.type,i.pendingProps,l);case 15:return gb(r,i,i.type,i.pendingProps,l);case 19:return wb(r,i,l);case 31:return u=i.pendingProps,l=i.mode,u={mode:u.mode,children:u.children},r===null?(l=af(u,l),l.ref=i.ref,i.child=l,l.return=i,i=l):(l=da(r.child,u),l.ref=i.ref,i.child=l,l.return=i,i=l),i;case 22:return bb(r,i,l);case 24:return ls(i),u=un(Vt),r===null?(f=zh(),f===null&&(f=Et,m=Fh(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=l),f=m),i.memoizedState={parent:u,cache:f},Vh(i),Ja(i,Vt,f)):((r.lanes&l)!==0&&(Hh(r,i),Ho(i,null,null,l),Vo()),f=r.memoizedState,m=i.memoizedState,f.parent!==u?(f={parent:u,cache:u},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),Ja(i,Vt,u)):(u=m.cache,Ja(i,Vt,u),u!==f.cache&&Bh(i,[Vt],l,!0))),tn(r,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function Sa(r){r.flags|=4}function Nb(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!$S(i)){if(i=rr.current,i!==null&&((et&4194048)===et?zr!==null:(et&62914560)!==et&&(et&536870912)===0||i!==zr))throw zo=qh,f0;r.flags|=8192}}function sf(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Ec():536870912,r.lanes|=i,Ol|=i)}function Zo(r,i){if(!ct)switch(r.tailMode){case"hidden":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function jt(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(i)for(var f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=u,r.childLanes=l,i}function gN(r,i,l){var u=i.pendingProps;switch(Mh(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(i),null;case 1:return jt(i),null;case 3:return l=i.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),va(Vt),Rt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Mo(i)?Sa(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,s0())),jt(i),null;case 26:return l=i.memoizedState,r===null?(Sa(i),l!==null?(jt(i),Nb(i,l)):(jt(i),i.flags&=-16777217)):l?l!==r.memoizedState?(Sa(i),jt(i),Nb(i,l)):(jt(i),i.flags&=-16777217):(r.memoizedProps!==u&&Sa(i),jt(i),i.flags&=-16777217),null;case 27:wt(i),l=ve.current;var f=i.type;if(r!==null&&i.stateNode!=null)r.memoizedProps!==u&&Sa(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return jt(i),null}r=se.current,Mo(i)?a0(i):(r=NS(f,u,l),i.stateNode=r,Sa(i))}return jt(i),null;case 5:if(wt(i),l=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&Sa(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return jt(i),null}if(r=se.current,Mo(i))a0(i);else{switch(f=bf(ve.current),r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof u.is=="string"?f.createElement("select",{is:u.is}):f.createElement("select"),u.multiple?r.multiple=!0:u.size&&(r.size=u.size);break;default:r=typeof u.is=="string"?f.createElement(l,{is:u.is}):f.createElement(l)}}r[ee]=i,r[oe]=u;e:for(f=i.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===i)break e;for(;f.sibling===null;){if(f.return===null||f.return===i)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i.stateNode=r;e:switch(rn(r,l,u),l){case"button":case"input":case"select":case"textarea":r=!!u.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Sa(i)}}return jt(i),i.flags&=-16777217,null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==u&&Sa(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(r=ve.current,Mo(i)){if(r=i.stateNode,l=i.memoizedProps,u=null,f=mn,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}r[ee]=i,r=!!(r.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||ES(r.nodeValue,l)),r||is(i)}else r=bf(r).createTextNode(u),r[ee]=i,i.stateNode=r}return jt(i),null;case 13:if(u=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=Mo(i),u!==null&&u.dehydrated!==null){if(r===null){if(!f)throw Error(a(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[ee]=i}else Uo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;jt(i),f=!1}else f=s0(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(ga(i),i):(ga(i),null)}if(ga(i),(i.flags&128)!==0)return i.lanes=l,i;if(l=u!==null,r=r!==null&&r.memoizedState!==null,l){u=i.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool);var m=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==f&&(u.flags|=2048)}return l!==r&&l&&(i.child.flags|=8192),sf(i,i.updateQueue),jt(i),null;case 4:return Rt(),r===null&&Gp(i.stateNode.containerInfo),jt(i),null;case 10:return va(i.type),jt(i),null;case 19:if(ae(Ht),f=i.memoizedState,f===null)return jt(i),null;if(u=(i.flags&128)!==0,m=f.rendering,m===null)if(u)Zo(f,!1);else{if(Ut!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(m=ef(r),m!==null){for(i.flags|=128,Zo(f,!1),r=m.updateQueue,i.updateQueue=r,sf(i,r),i.subtreeFlags=0,r=l,l=i.child;l!==null;)n0(l,r),l=l.sibling;return ne(Ht,Ht.current&1|2),i.child}r=r.sibling}f.tail!==null&&At()>uf&&(i.flags|=128,u=!0,Zo(f,!1),i.lanes=4194304)}else{if(!u)if(r=ef(m),r!==null){if(i.flags|=128,u=!0,r=r.updateQueue,i.updateQueue=r,sf(i,r),Zo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!ct)return jt(i),null}else 2*At()-f.renderingStartTime>uf&&l!==536870912&&(i.flags|=128,u=!0,Zo(f,!1),i.lanes=4194304);f.isBackwards?(m.sibling=i.child,i.child=m):(r=f.last,r!==null?r.sibling=m:i.child=m,f.last=m)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=At(),i.sibling=null,r=Ht.current,ne(Ht,u?r&1|2:r&1),i):(jt(i),null);case 22:case 23:return ga(i),Kh(),u=i.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(l&536870912)!==0&&(i.flags&128)===0&&(jt(i),i.subtreeFlags&6&&(i.flags|=8192)):jt(i),l=i.updateQueue,l!==null&&sf(i,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048),r!==null&&ae(os),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),va(Vt),jt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function bN(r,i){switch(Mh(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return va(Vt),Rt(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return wt(i),null;case 13:if(ga(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Uo()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return ae(Ht),null;case 4:return Rt(),null;case 10:return va(i.type),null;case 22:case 23:return ga(i),Kh(),r!==null&&ae(os),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return va(Vt),null;case 25:return null;default:return null}}function Cb(r,i){switch(Mh(i),i.tag){case 3:va(Vt),Rt();break;case 26:case 27:case 5:wt(i);break;case 4:Rt();break;case 13:ga(i);break;case 19:ae(Ht);break;case 10:va(i.type);break;case 22:case 23:ga(i),Kh(),r!==null&&ae(os);break;case 24:va(Vt)}}function Jo(r,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&r)===r){u=void 0;var m=l.create,E=l.inst;u=m(),E.destroy=u}l=l.next}while(l!==f)}}catch(T){St(i,i.return,T)}}function ii(r,i,l){try{var u=i.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var m=f.next;u=m;do{if((u.tag&r)===r){var E=u.inst,T=E.destroy;if(T!==void 0){E.destroy=void 0,f=i;var j=l,z=T;try{z()}catch(K){St(f,j,K)}}}u=u.next}while(u!==m)}}catch(K){St(i,i.return,K)}}function Rb(r){var i=r.updateQueue;if(i!==null){var l=r.stateNode;try{y0(i,l)}catch(u){St(r,r.return,u)}}}function Db(r,i,l){l.props=cs(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(u){St(r,i,u)}}function Wo(r,i){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof l=="function"?r.refCleanup=l(u):l.current=u}}catch(f){St(r,i,f)}}function qr(r,i){var l=r.ref,u=r.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(f){St(r,i,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){St(r,i,f)}else l.current=null}function jb(r){var i=r.type,l=r.memoizedProps,u=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(f){St(r,r.return,f)}}function _p(r,i,l){try{var u=r.stateNode;IN(u,r.type,l,i),u[oe]=i}catch(f){St(r,r.return,f)}}function kb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&hi(r.type)||r.tag===4}function xp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||kb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&hi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Op(r,i,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(r),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=gf));else if(u!==4&&(u===27&&hi(r.type)&&(l=r.stateNode,i=null),r=r.child,r!==null))for(Op(r,i,l),r=r.sibling;r!==null;)Op(r,i,l),r=r.sibling}function lf(r,i,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(u!==4&&(u===27&&hi(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(lf(r,i,l),r=r.sibling;r!==null;)lf(r,i,l),r=r.sibling}function Mb(r){var i=r.stateNode,l=r.memoizedProps;try{for(var u=r.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);rn(i,u,l),i[ee]=r,i[oe]=l}catch(m){St(r,r.return,m)}}var Ea=!1,Bt=!1,Tp=!1,Ub=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function SN(r,i){if(r=r.containerInfo,Qp=Tf,r=Gg(r),xh(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var E=0,T=-1,j=-1,z=0,K=0,J=r,H=null;t:for(;;){for(var P;J!==l||f!==0&&J.nodeType!==3||(T=E+f),J!==m||u!==0&&J.nodeType!==3||(j=E+u),J.nodeType===3&&(E+=J.nodeValue.length),(P=J.firstChild)!==null;)H=J,J=P;for(;;){if(J===r)break t;if(H===l&&++z===f&&(T=E),H===m&&++K===u&&(j=E),(P=J.nextSibling)!==null)break;J=H,H=J.parentNode}J=P}l=T===-1||j===-1?null:{start:T,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(Xp={focusedElem:r,selectionRange:l},Tf=!1,Kt=i;Kt!==null;)if(i=Kt,r=i.child,(i.subtreeFlags&1024)!==0&&r!==null)r.return=i,Kt=r;else for(;Kt!==null;){switch(i=Kt,m=i.alternate,r=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&m!==null){r=void 0,l=i,f=m.memoizedProps,m=m.memoizedState,u=l.stateNode;try{var Be=cs(l.type,f,l.elementType===l.type);r=u.getSnapshotBeforeUpdate(Be,m),u.__reactInternalSnapshotBeforeUpdate=r}catch(Me){St(l,l.return,Me)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,l=r.nodeType,l===9)Wp(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Wp(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=i.sibling,r!==null){r.return=i.return,Kt=r;break}Kt=i.return}}function $b(r,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:si(r,l),u&4&&Jo(5,l);break;case 1:if(si(r,l),u&4)if(r=l.stateNode,i===null)try{r.componentDidMount()}catch(E){St(l,l.return,E)}else{var f=cs(l.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(f,i,r.__reactInternalSnapshotBeforeUpdate)}catch(E){St(l,l.return,E)}}u&64&&Rb(l),u&512&&Wo(l,l.return);break;case 3:if(si(r,l),u&64&&(r=l.updateQueue,r!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{y0(r,i)}catch(E){St(l,l.return,E)}}break;case 27:i===null&&u&4&&Mb(l);case 26:case 5:si(r,l),i===null&&u&4&&jb(l),u&512&&Wo(l,l.return);break;case 12:si(r,l);break;case 13:si(r,l),u&4&&Fb(r,l),u&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=CN.bind(null,l),YN(r,l))));break;case 22:if(u=l.memoizedState!==null||Ea,!u){i=i!==null&&i.memoizedState!==null||Bt,f=Ea;var m=Bt;Ea=u,(Bt=i)&&!m?li(r,l,(l.subtreeFlags&8772)!==0):si(r,l),Ea=f,Bt=m}break;case 30:break;default:si(r,l)}}function Lb(r){var i=r.alternate;i!==null&&(r.alternate=null,Lb(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Ne(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Ct=null,xn=!1;function _a(r,i,l){for(l=l.child;l!==null;)Bb(r,i,l),l=l.sibling}function Bb(r,i,l){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(ue,l)}catch{}switch(l.tag){case 26:Bt||qr(l,i),_a(r,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Bt||qr(l,i);var u=Ct,f=xn;hi(l.type)&&(Ct=l.stateNode,xn=!1),_a(r,i,l),ou(l.stateNode),Ct=u,xn=f;break;case 5:Bt||qr(l,i);case 6:if(u=Ct,f=xn,Ct=null,_a(r,i,l),Ct=u,xn=f,Ct!==null)if(xn)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(l.stateNode)}catch(m){St(l,i,m)}else try{Ct.removeChild(l.stateNode)}catch(m){St(l,i,m)}break;case 18:Ct!==null&&(xn?(r=Ct,wS(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),vu(r)):wS(Ct,l.stateNode));break;case 4:u=Ct,f=xn,Ct=l.stateNode.containerInfo,xn=!0,_a(r,i,l),Ct=u,xn=f;break;case 0:case 11:case 14:case 15:Bt||ii(2,l,i),Bt||ii(4,l,i),_a(r,i,l);break;case 1:Bt||(qr(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Db(l,i,u)),_a(r,i,l);break;case 21:_a(r,i,l);break;case 22:Bt=(u=Bt)||l.memoizedState!==null,_a(r,i,l),Bt=u;break;default:_a(r,i,l)}}function Fb(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{vu(r)}catch(l){St(i,i.return,l)}}function EN(r){switch(r.tag){case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new Ub),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new Ub),i;default:throw Error(a(435,r.tag))}}function wp(r,i){var l=EN(r);i.forEach(function(u){var f=RN.bind(null,r,u);l.has(u)||(l.add(u),u.then(f,f))})}function kn(r,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u],m=r,E=i,T=E;e:for(;T!==null;){switch(T.tag){case 27:if(hi(T.type)){Ct=T.stateNode,xn=!1;break e}break;case 5:Ct=T.stateNode,xn=!1;break e;case 3:case 4:Ct=T.stateNode.containerInfo,xn=!0;break e}T=T.return}if(Ct===null)throw Error(a(160));Bb(m,E,f),Ct=null,xn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Ib(i,r),i=i.sibling}var _r=null;function Ib(r,i){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:kn(i,r),Mn(r),u&4&&(ii(3,r,r.return),Jo(3,r),ii(5,r,r.return));break;case 1:kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),u&64&&Ea&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var f=_r;if(kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),u&4){var m=l!==null?l.memoizedState:null;if(u=r.memoizedState,l===null)if(u===null)if(r.stateNode===null){e:{u=r.type,l=r.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Le]||m[ee]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(u),f.head.insertBefore(m,f.querySelector("head > title"))),rn(m,u,l),m[ee]=r,it(m),u=m;break e;case"link":var E=MS("link","href",f).get(u+(l.href||""));if(E){for(var T=0;T<E.length;T++)if(m=E[T],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){E.splice(T,1);break t}}m=f.createElement(u),rn(m,u,l),f.head.appendChild(m);break;case"meta":if(E=MS("meta","content",f).get(u+(l.content||""))){for(T=0;T<E.length;T++)if(m=E[T],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){E.splice(T,1);break t}}m=f.createElement(u),rn(m,u,l),f.head.appendChild(m);break;default:throw Error(a(468,u))}m[ee]=r,it(m),u=m}r.stateNode=u}else US(f,r.type,r.stateNode);else r.stateNode=kS(f,u,r.memoizedProps);else m!==u?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,u===null?US(f,r.type,r.stateNode):kS(f,u,r.memoizedProps)):u===null&&r.stateNode!==null&&_p(r,r.memoizedProps,l.memoizedProps)}break;case 27:kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),l!==null&&u&4&&_p(r,r.memoizedProps,l.memoizedProps);break;case 5:if(kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),r.flags&32){f=r.stateNode;try{nl(f,"")}catch(P){St(r,r.return,P)}}u&4&&r.stateNode!=null&&(f=r.memoizedProps,_p(r,f,l!==null?l.memoizedProps:f)),u&1024&&(Tp=!0);break;case 6:if(kn(i,r),Mn(r),u&4){if(r.stateNode===null)throw Error(a(162));u=r.memoizedProps,l=r.stateNode;try{l.nodeValue=u}catch(P){St(r,r.return,P)}}break;case 3:if(_f=null,f=_r,_r=Sf(i.containerInfo),kn(i,r),_r=f,Mn(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{vu(i.containerInfo)}catch(P){St(r,r.return,P)}Tp&&(Tp=!1,zb(r));break;case 4:u=_r,_r=Sf(r.stateNode.containerInfo),kn(i,r),Mn(r),_r=u;break;case 12:kn(i,r),Mn(r);break;case 13:kn(i,r),Mn(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(jp=At()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,wp(r,u)));break;case 22:f=r.memoizedState!==null;var j=l!==null&&l.memoizedState!==null,z=Ea,K=Bt;if(Ea=z||f,Bt=K||j,kn(i,r),Bt=K,Ea=z,Mn(r),u&8192)e:for(i=r.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(l===null||j||Ea||Bt||fs(r)),l=null,i=r;;){if(i.tag===5||i.tag===26){if(l===null){j=l=i;try{if(m=j.stateNode,f)E=m.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{T=j.stateNode;var J=j.memoizedProps.style,H=J!=null&&J.hasOwnProperty("display")?J.display:null;T.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(P){St(j,j.return,P)}}}else if(i.tag===6){if(l===null){j=i;try{j.stateNode.nodeValue=f?"":j.memoizedProps}catch(P){St(j,j.return,P)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=r.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,wp(r,l))));break;case 19:kn(i,r),Mn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,wp(r,u)));break;case 30:break;case 21:break;default:kn(i,r),Mn(r)}}function Mn(r){var i=r.flags;if(i&2){try{for(var l,u=r.return;u!==null;){if(kb(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var f=l.stateNode,m=xp(r);lf(r,m,f);break;case 5:var E=l.stateNode;l.flags&32&&(nl(E,""),l.flags&=-33);var T=xp(r);lf(r,T,E);break;case 3:case 4:var j=l.stateNode.containerInfo,z=xp(r);Op(r,z,j);break;default:throw Error(a(161))}}catch(K){St(r,r.return,K)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function zb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;zb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function si(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)$b(r,i.alternate,i),i=i.sibling}function fs(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:ii(4,i,i.return),fs(i);break;case 1:qr(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Db(i,i.return,l),fs(i);break;case 27:ou(i.stateNode);case 26:case 5:qr(i,i.return),fs(i);break;case 22:i.memoizedState===null&&fs(i);break;case 30:fs(i);break;default:fs(i)}r=r.sibling}}function li(r,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,f=r,m=i,E=m.flags;switch(m.tag){case 0:case 11:case 15:li(f,m,l),Jo(4,m);break;case 1:if(li(f,m,l),u=m,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(z){St(u,u.return,z)}if(u=m,f=u.updateQueue,f!==null){var T=u.stateNode;try{var j=f.shared.hiddenCallbacks;if(j!==null)for(f.shared.hiddenCallbacks=null,f=0;f<j.length;f++)v0(j[f],T)}catch(z){St(u,u.return,z)}}l&&E&64&&Rb(m),Wo(m,m.return);break;case 27:Mb(m);case 26:case 5:li(f,m,l),l&&u===null&&E&4&&jb(m),Wo(m,m.return);break;case 12:li(f,m,l);break;case 13:li(f,m,l),l&&E&4&&Fb(f,m);break;case 22:m.memoizedState===null&&li(f,m,l),Wo(m,m.return);break;case 30:break;default:li(f,m,l)}i=i.sibling}}function Ap(r,i){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&Bo(l))}function Np(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Bo(r))}function Vr(r,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)qb(r,i,l,u),i=i.sibling}function qb(r,i,l,u){var f=i.flags;switch(i.tag){case 0:case 11:case 15:Vr(r,i,l,u),f&2048&&Jo(9,i);break;case 1:Vr(r,i,l,u);break;case 3:Vr(r,i,l,u),f&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Bo(r)));break;case 12:if(f&2048){Vr(r,i,l,u),r=i.stateNode;try{var m=i.memoizedProps,E=m.id,T=m.onPostCommit;typeof T=="function"&&T(E,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(j){St(i,i.return,j)}}else Vr(r,i,l,u);break;case 13:Vr(r,i,l,u);break;case 23:break;case 22:m=i.stateNode,E=i.alternate,i.memoizedState!==null?m._visibility&2?Vr(r,i,l,u):eu(r,i):m._visibility&2?Vr(r,i,l,u):(m._visibility|=2,El(r,i,l,u,(i.subtreeFlags&10256)!==0)),f&2048&&Ap(E,i);break;case 24:Vr(r,i,l,u),f&2048&&Np(i.alternate,i);break;default:Vr(r,i,l,u)}}function El(r,i,l,u,f){for(f=f&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var m=r,E=i,T=l,j=u,z=E.flags;switch(E.tag){case 0:case 11:case 15:El(m,E,T,j,f),Jo(8,E);break;case 23:break;case 22:var K=E.stateNode;E.memoizedState!==null?K._visibility&2?El(m,E,T,j,f):eu(m,E):(K._visibility|=2,El(m,E,T,j,f)),f&&z&2048&&Ap(E.alternate,E);break;case 24:El(m,E,T,j,f),f&&z&2048&&Np(E.alternate,E);break;default:El(m,E,T,j,f)}i=i.sibling}}function eu(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=r,u=i,f=u.flags;switch(u.tag){case 22:eu(l,u),f&2048&&Ap(u.alternate,u);break;case 24:eu(l,u),f&2048&&Np(u.alternate,u);break;default:eu(l,u)}i=i.sibling}}var tu=8192;function _l(r){if(r.subtreeFlags&tu)for(r=r.child;r!==null;)Vb(r),r=r.sibling}function Vb(r){switch(r.tag){case 26:_l(r),r.flags&tu&&r.memoizedState!==null&&sC(_r,r.memoizedState,r.memoizedProps);break;case 5:_l(r);break;case 3:case 4:var i=_r;_r=Sf(r.stateNode.containerInfo),_l(r),_r=i;break;case 22:r.memoizedState===null&&(i=r.alternate,i!==null&&i.memoizedState!==null?(i=tu,tu=16777216,_l(r),tu=i):_l(r));break;default:_l(r)}}function Hb(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function nu(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];Kt=u,Gb(u,r)}Hb(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Pb(r),r=r.sibling}function Pb(r){switch(r.tag){case 0:case 11:case 15:nu(r),r.flags&2048&&ii(9,r,r.return);break;case 3:nu(r);break;case 12:nu(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,of(r)):nu(r);break;default:nu(r)}}function of(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];Kt=u,Gb(u,r)}Hb(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:ii(8,i,i.return),of(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,of(i));break;default:of(i)}r=r.sibling}}function Gb(r,i){for(;Kt!==null;){var l=Kt;switch(l.tag){case 0:case 11:case 15:ii(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Bo(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Kt=u;else e:for(l=r;Kt!==null;){u=Kt;var f=u.sibling,m=u.return;if(Lb(u),u===l){Kt=null;break e}if(f!==null){f.return=m,Kt=f;break e}Kt=m}}}var _N={getCacheForType:function(r){var i=un(Vt),l=i.data.get(r);return l===void 0&&(l=r(),i.data.set(r,l)),l}},xN=typeof WeakMap=="function"?WeakMap:Map,ht=0,Et=null,Qe=null,et=0,pt=0,Un=null,oi=!1,xl=!1,Cp=!1,xa=0,Ut=0,ui=0,ds=0,Rp=0,ar=0,Ol=0,ru=null,On=null,Dp=!1,jp=0,uf=1/0,cf=null,ci=null,nn=0,fi=null,Tl=null,wl=0,kp=0,Mp=null,Yb=null,au=0,Up=null;function $n(){if((ht&2)!==0&&et!==0)return et&-et;if(L.T!==null){var r=hl;return r!==0?r:qp()}return M()}function Kb(){ar===0&&(ar=(et&536870912)===0||ct?Ws():536870912);var r=rr.current;return r!==null&&(r.flags|=32),ar}function Ln(r,i,l){(r===Et&&(pt===2||pt===9)||r.cancelPendingCommit!==null)&&(Al(r,0),di(r,et,ar,!1)),Ki(r,l),((ht&2)===0||r!==Et)&&(r===Et&&((ht&2)===0&&(ds|=l),Ut===4&&di(r,et,ar,!1)),Hr(r))}function Qb(r,i,l){if((ht&6)!==0)throw Error(a(327));var u=!l&&(i&124)===0&&(i&r.expiredLanes)===0||Fr(r,i),f=u?wN(r,i):Bp(r,i,!0),m=u;do{if(f===0){xl&&!u&&di(r,i,0,!1);break}else{if(l=r.current.alternate,m&&!ON(l)){f=Bp(r,i,!1),m=!1;continue}if(f===2){if(m=i,r.errorRecoveryDisabledLanes&m)var E=0;else E=r.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){i=E;e:{var T=r;f=ru;var j=T.current.memoizedState.isDehydrated;if(j&&(Al(T,E).flags|=256),E=Bp(T,E,!1),E!==2){if(Cp&&!j){T.errorRecoveryDisabledLanes|=m,ds|=m,f=4;break e}m=On,On=f,m!==null&&(On===null?On=m:On.push.apply(On,m))}f=E}if(m=!1,f!==2)continue}}if(f===1){Al(r,0),di(r,i,0,!0);break}e:{switch(u=r,m=f,m){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:di(u,i,ar,!oi);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(f=jp+300-At(),10<f)){if(di(u,i,ar,!oi),Yi(u,0,!0)!==0)break e;u.timeoutHandle=OS(Xb.bind(null,u,l,On,cf,Dp,i,ar,ds,Ol,oi,m,2,-0,0),f);break e}Xb(u,l,On,cf,Dp,i,ar,ds,Ol,oi,m,0,-0,0)}}break}while(!0);Hr(r)}function Xb(r,i,l,u,f,m,E,T,j,z,K,J,H,P){if(r.timeoutHandle=-1,J=i.subtreeFlags,(J&8192||(J&16785408)===16785408)&&(fu={stylesheets:null,count:0,unsuspend:iC},Vb(i),J=lC(),J!==null)){r.cancelPendingCommit=J(rS.bind(null,r,i,m,l,u,f,E,T,j,K,1,H,P)),di(r,m,E,!z);return}rS(r,i,m,l,u,f,E,T,j)}function ON(r){for(var i=r;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var f=l[u],m=f.getSnapshot;f=f.value;try{if(!Dn(m(),f))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function di(r,i,l,u){i&=~Rp,i&=~ds,r.suspendedLanes|=i,r.pingedLanes&=~i,u&&(r.warmLanes|=i),u=r.expirationTimes;for(var f=i;0<f;){var m=31-bt(f),E=1<<m;u[m]=-1,f&=~E}l!==0&&Qi(r,l,i)}function ff(){return(ht&6)===0?(iu(0),!1):!0}function $p(){if(Qe!==null){if(pt===0)var r=Qe.return;else r=Qe,ma=ss=null,Wh(r),bl=null,Qo=0,r=Qe;for(;r!==null;)Cb(r.alternate,r),r=r.return;Qe=null}}function Al(r,i){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,qN(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),$p(),Et=r,Qe=l=da(r.current,null),et=i,pt=0,Un=null,oi=!1,xl=Fr(r,i),Cp=!1,Ol=ar=Rp=ds=ui=Ut=0,On=ru=null,Dp=!1,(i&8)!==0&&(i|=i&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=i;0<u;){var f=31-bt(u),m=1<<f;i|=r[f],u&=~m}return xa=i,jc(),l}function Zb(r,i){Ge=null,L.H=Zc,i===Io||i===zc?(i=p0(),pt=3):i===f0?(i=p0(),pt=4):pt=i===mb?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Un=i,Qe===null&&(Ut=1,nf(r,Wn(i,r.current)))}function Jb(){var r=L.H;return L.H=Zc,r===null?Zc:r}function Wb(){var r=L.A;return L.A=_N,r}function Lp(){Ut=4,oi||(et&4194048)!==et&&rr.current!==null||(xl=!0),(ui&134217727)===0&&(ds&134217727)===0||Et===null||di(Et,et,ar,!1)}function Bp(r,i,l){var u=ht;ht|=2;var f=Jb(),m=Wb();(Et!==r||et!==i)&&(cf=null,Al(r,i)),i=!1;var E=Ut;e:do try{if(pt!==0&&Qe!==null){var T=Qe,j=Un;switch(pt){case 8:$p(),E=6;break e;case 3:case 2:case 9:case 6:rr.current===null&&(i=!0);var z=pt;if(pt=0,Un=null,Nl(r,T,j,z),l&&xl){E=0;break e}break;default:z=pt,pt=0,Un=null,Nl(r,T,j,z)}}TN(),E=Ut;break}catch(K){Zb(r,K)}while(!0);return i&&r.shellSuspendCounter++,ma=ss=null,ht=u,L.H=f,L.A=m,Qe===null&&(Et=null,et=0,jc()),E}function TN(){for(;Qe!==null;)eS(Qe)}function wN(r,i){var l=ht;ht|=2;var u=Jb(),f=Wb();Et!==r||et!==i?(cf=null,uf=At()+500,Al(r,i)):xl=Fr(r,i);e:do try{if(pt!==0&&Qe!==null){i=Qe;var m=Un;t:switch(pt){case 1:pt=0,Un=null,Nl(r,i,m,1);break;case 2:case 9:if(d0(m)){pt=0,Un=null,tS(i);break}i=function(){pt!==2&&pt!==9||Et!==r||(pt=7),Hr(r)},m.then(i,i);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:d0(m)?(pt=0,Un=null,tS(i)):(pt=0,Un=null,Nl(r,i,m,7));break;case 5:var E=null;switch(Qe.tag){case 26:E=Qe.memoizedState;case 5:case 27:var T=Qe;if(!E||$S(E)){pt=0,Un=null;var j=T.sibling;if(j!==null)Qe=j;else{var z=T.return;z!==null?(Qe=z,df(z)):Qe=null}break t}}pt=0,Un=null,Nl(r,i,m,5);break;case 6:pt=0,Un=null,Nl(r,i,m,6);break;case 8:$p(),Ut=6;break e;default:throw Error(a(462))}}AN();break}catch(K){Zb(r,K)}while(!0);return ma=ss=null,L.H=u,L.A=f,ht=l,Qe!==null?0:(Et=null,et=0,jc(),Ut)}function AN(){for(;Qe!==null&&!at();)eS(Qe)}function eS(r){var i=Ab(r.alternate,r,xa);r.memoizedProps=r.pendingProps,i===null?df(r):Qe=i}function tS(r){var i=r,l=i.alternate;switch(i.tag){case 15:case 0:i=Eb(l,i,i.pendingProps,i.type,void 0,et);break;case 11:i=Eb(l,i,i.pendingProps,i.type.render,i.ref,et);break;case 5:Wh(i);default:Cb(l,i),i=Qe=n0(i,xa),i=Ab(l,i,xa)}r.memoizedProps=r.pendingProps,i===null?df(r):Qe=i}function Nl(r,i,l,u){ma=ss=null,Wh(i),bl=null,Qo=0;var f=i.return;try{if(vN(r,f,i,l,et)){Ut=1,nf(r,Wn(l,r.current)),Qe=null;return}}catch(m){if(f!==null)throw Qe=f,m;Ut=1,nf(r,Wn(l,r.current)),Qe=null;return}i.flags&32768?(ct||u===1?r=!0:xl||(et&536870912)!==0?r=!1:(oi=r=!0,(u===2||u===9||u===3||u===6)&&(u=rr.current,u!==null&&u.tag===13&&(u.flags|=16384))),nS(i,r)):df(i)}function df(r){var i=r;do{if((i.flags&32768)!==0){nS(i,oi);return}r=i.return;var l=gN(i.alternate,i,xa);if(l!==null){Qe=l;return}if(i=i.sibling,i!==null){Qe=i;return}Qe=i=r}while(i!==null);Ut===0&&(Ut=5)}function nS(r,i){do{var l=bN(r.alternate,r);if(l!==null){l.flags&=32767,Qe=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(r=r.sibling,r!==null)){Qe=r;return}Qe=r=l}while(r!==null);Ut=6,Qe=null}function rS(r,i,l,u,f,m,E,T,j){r.cancelPendingCommit=null;do hf();while(nn!==0);if((ht&6)!==0)throw Error(a(327));if(i!==null){if(i===r.current)throw Error(a(177));if(m=i.lanes|i.childLanes,m|=Nh,_c(r,l,m,E,T,j),r===Et&&(Qe=Et=null,et=0),Tl=i,fi=r,wl=l,kp=m,Mp=f,Yb=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,DN(hn,function(){return oS(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=L.T,L.T=null,f=te.p,te.p=2,E=ht,ht|=4;try{SN(r,i,l)}finally{ht=E,te.p=f,L.T=u}}nn=1,aS(),iS(),sS()}}function aS(){if(nn===1){nn=0;var r=fi,i=Tl,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var u=te.p;te.p=2;var f=ht;ht|=4;try{Ib(i,r);var m=Xp,E=Gg(r.containerInfo),T=m.focusedElem,j=m.selectionRange;if(E!==T&&T&&T.ownerDocument&&Pg(T.ownerDocument.documentElement,T)){if(j!==null&&xh(T)){var z=j.start,K=j.end;if(K===void 0&&(K=z),"selectionStart"in T)T.selectionStart=z,T.selectionEnd=Math.min(K,T.value.length);else{var J=T.ownerDocument||document,H=J&&J.defaultView||window;if(H.getSelection){var P=H.getSelection(),Be=T.textContent.length,Me=Math.min(j.start,Be),gt=j.end===void 0?Me:Math.min(j.end,Be);!P.extend&&Me>gt&&(E=gt,gt=Me,Me=E);var B=Hg(T,Me),$=Hg(T,gt);if(B&&$&&(P.rangeCount!==1||P.anchorNode!==B.node||P.anchorOffset!==B.offset||P.focusNode!==$.node||P.focusOffset!==$.offset)){var I=J.createRange();I.setStart(B.node,B.offset),P.removeAllRanges(),Me>gt?(P.addRange(I),P.extend($.node,$.offset)):(I.setEnd($.node,$.offset),P.addRange(I))}}}}for(J=[],P=T;P=P.parentNode;)P.nodeType===1&&J.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<J.length;T++){var X=J[T];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Tf=!!Qp,Xp=Qp=null}finally{ht=f,te.p=u,L.T=l}}r.current=i,nn=2}}function iS(){if(nn===2){nn=0;var r=fi,i=Tl,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var u=te.p;te.p=2;var f=ht;ht|=4;try{$b(r,i.alternate,i)}finally{ht=f,te.p=u,L.T=l}}nn=3}}function sS(){if(nn===4||nn===3){nn=0,Rn();var r=fi,i=Tl,l=wl,u=Yb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?nn=5:(nn=0,Tl=fi=null,lS(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(ci=null),_o(l),i=i.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(ue,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=L.T,f=te.p,te.p=2,L.T=null;try{for(var m=r.onRecoverableError,E=0;E<u.length;E++){var T=u[E];m(T.value,{componentStack:T.stack})}}finally{L.T=i,te.p=f}}(wl&3)!==0&&hf(),Hr(r),f=r.pendingLanes,(l&4194090)!==0&&(f&42)!==0?r===Up?au++:(au=0,Up=r):au=0,iu(0)}}function lS(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,Bo(i)))}function hf(r){return aS(),iS(),sS(),oS()}function oS(){if(nn!==5)return!1;var r=fi,i=kp;kp=0;var l=_o(wl),u=L.T,f=te.p;try{te.p=32>l?32:l,L.T=null,l=Mp,Mp=null;var m=fi,E=wl;if(nn=0,Tl=fi=null,wl=0,(ht&6)!==0)throw Error(a(331));var T=ht;if(ht|=4,Pb(m.current),qb(m,m.current,E,l),ht=T,iu(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(ue,m)}catch{}return!0}finally{te.p=f,L.T=u,lS(r,i)}}function uS(r,i,l){i=Wn(l,i),i=hp(r.stateNode,i,2),r=ti(r,i,2),r!==null&&(Ki(r,2),Hr(r))}function St(r,i,l){if(r.tag===3)uS(r,r,l);else for(;i!==null;){if(i.tag===3){uS(i,r,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ci===null||!ci.has(u))){r=Wn(l,r),l=hb(2),u=ti(i,l,2),u!==null&&(pb(l,u,i,r),Ki(u,2),Hr(u));break}}i=i.return}}function Fp(r,i,l){var u=r.pingCache;if(u===null){u=r.pingCache=new xN;var f=new Set;u.set(i,f)}else f=u.get(i),f===void 0&&(f=new Set,u.set(i,f));f.has(l)||(Cp=!0,f.add(l),r=NN.bind(null,r,i,l),i.then(r,r))}function NN(r,i,l){var u=r.pingCache;u!==null&&u.delete(i),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,Et===r&&(et&l)===l&&(Ut===4||Ut===3&&(et&62914560)===et&&300>At()-jp?(ht&2)===0&&Al(r,0):Rp|=l,Ol===et&&(Ol=0)),Hr(r)}function cS(r,i){i===0&&(i=Ec()),r=ul(r,i),r!==null&&(Ki(r,i),Hr(r))}function CN(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),cS(r,l)}function RN(r,i){var l=0;switch(r.tag){case 13:var u=r.stateNode,f=r.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),cS(r,l)}function DN(r,i){return en(r,i)}var pf=null,Cl=null,Ip=!1,mf=!1,zp=!1,hs=0;function Hr(r){r!==Cl&&r.next===null&&(Cl===null?pf=Cl=r:Cl=Cl.next=r),mf=!0,Ip||(Ip=!0,kN())}function iu(r,i){if(!zp&&mf){zp=!0;do for(var l=!1,u=pf;u!==null;){if(r!==0){var f=u.pendingLanes;if(f===0)var m=0;else{var E=u.suspendedLanes,T=u.pingedLanes;m=(1<<31-bt(42|r)+1)-1,m&=f&~(E&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,pS(u,m))}else m=et,m=Yi(u,u===Et?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Fr(u,m)||(l=!0,pS(u,m));u=u.next}while(l);zp=!1}}function jN(){fS()}function fS(){mf=Ip=!1;var r=0;hs!==0&&(zN()&&(r=hs),hs=0);for(var i=At(),l=null,u=pf;u!==null;){var f=u.next,m=dS(u,i);m===0?(u.next=null,l===null?pf=f:l.next=f,f===null&&(Cl=l)):(l=u,(r!==0||(m&3)!==0)&&(mf=!0)),u=f}iu(r)}function dS(r,i){for(var l=r.suspendedLanes,u=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes&-62914561;0<m;){var E=31-bt(m),T=1<<E,j=f[E];j===-1?((T&l)===0||(T&u)!==0)&&(f[E]=Sc(T,i)):j<=i&&(r.expiredLanes|=T),m&=~T}if(i=Et,l=et,l=Yi(r,r===i?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,l===0||r===i&&(pt===2||pt===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&kt(u),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Fr(r,l)){if(i=l&-l,i===r.callbackPriority)return i;switch(u!==null&&kt(u),_o(l)){case 2:case 8:l=ln;break;case 32:l=hn;break;case 268435456:l=ce;break;default:l=hn}return u=hS.bind(null,r),l=en(l,u),r.callbackPriority=i,r.callbackNode=l,i}return u!==null&&u!==null&&kt(u),r.callbackPriority=2,r.callbackNode=null,2}function hS(r,i){if(nn!==0&&nn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(hf()&&r.callbackNode!==l)return null;var u=et;return u=Yi(r,r===Et?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(Qb(r,u,i),dS(r,At()),r.callbackNode!=null&&r.callbackNode===l?hS.bind(null,r):null)}function pS(r,i){if(hf())return null;Qb(r,i,!0)}function kN(){VN(function(){(ht&6)!==0?en(Qn,jN):fS()})}function qp(){return hs===0&&(hs=Ws()),hs}function mS(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Tc(""+r)}function vS(r,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,r.id&&l.setAttribute("form",r.id),i.parentNode.insertBefore(l,i),r=new FormData(r),l.parentNode.removeChild(l),r}function MN(r,i,l,u,f){if(i==="submit"&&l&&l.stateNode===f){var m=mS((f[oe]||null).action),E=u.submitter;E&&(i=(i=E[oe]||null)?mS(i.formAction):E.getAttribute("formAction"),i!==null&&(m=i,E=null));var T=new Cc("action","action",null,u,f);r.push({event:T,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(hs!==0){var j=E?vS(f,E):new FormData(f);op(l,{pending:!0,data:j,method:f.method,action:m},null,j)}}else typeof m=="function"&&(T.preventDefault(),j=E?vS(f,E):new FormData(f),op(l,{pending:!0,data:j,method:f.method,action:m},m,j))},currentTarget:f}]})}}for(var Vp=0;Vp<Ah.length;Vp++){var Hp=Ah[Vp],UN=Hp.toLowerCase(),$N=Hp[0].toUpperCase()+Hp.slice(1);Er(UN,"on"+$N)}Er(Qg,"onAnimationEnd"),Er(Xg,"onAnimationIteration"),Er(Zg,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(WA,"onTransitionRun"),Er(eN,"onTransitionStart"),Er(tN,"onTransitionCancel"),Er(Jg,"onTransitionEnd"),Xn("onMouseEnter",["mouseout","mouseover"]),Xn("onMouseLeave",["mouseout","mouseover"]),Xn("onPointerEnter",["pointerout","pointerover"]),Xn("onPointerLeave",["pointerout","pointerover"]),pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="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(" "),LN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(su));function yS(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],f=u.event;u=u.listeners;e:{var m=void 0;if(i)for(var E=u.length-1;0<=E;E--){var T=u[E],j=T.instance,z=T.currentTarget;if(T=T.listener,j!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=z;try{m(f)}catch(K){tf(K)}f.currentTarget=null,m=j}else for(E=0;E<u.length;E++){if(T=u[E],j=T.instance,z=T.currentTarget,T=T.listener,j!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=z;try{m(f)}catch(K){tf(K)}f.currentTarget=null,m=j}}}}function Xe(r,i){var l=i[ke];l===void 0&&(l=i[ke]=new Set);var u=r+"__bubble";l.has(u)||(gS(i,r,2,!1),l.add(u))}function Pp(r,i,l){var u=0;i&&(u|=4),gS(l,r,u,i)}var vf="_reactListening"+Math.random().toString(36).slice(2);function Gp(r){if(!r[vf]){r[vf]=!0,We.forEach(function(l){l!=="selectionchange"&&(LN.has(l)||Pp(l,!1,r),Pp(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[vf]||(i[vf]=!0,Pp("selectionchange",!1,i))}}function gS(r,i,l,u){switch(qS(i)){case 2:var f=cC;break;case 8:f=fC;break;default:f=sm}l=f.bind(null,i,l,r),f=void 0,!ph||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),u?f!==void 0?r.addEventListener(i,l,{capture:!0,passive:f}):r.addEventListener(i,l,!0):f!==void 0?r.addEventListener(i,l,{passive:f}):r.addEventListener(i,l,!1)}function Yp(r,i,l,u,f){var m=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var E=u.tag;if(E===3||E===4){var T=u.stateNode.containerInfo;if(T===f)break;if(E===4)for(E=u.return;E!==null;){var j=E.tag;if((j===3||j===4)&&E.stateNode.containerInfo===f)return;E=E.return}for(;T!==null;){if(E=Ie(T),E===null)return;if(j=E.tag,j===5||j===6||j===26||j===27){u=m=E;continue e}T=T.parentNode}}u=u.return}Tg(function(){var z=m,K=dh(l),J=[];e:{var H=Wg.get(r);if(H!==void 0){var P=Cc,Be=r;switch(r){case"keypress":if(Ac(l)===0)break e;case"keydown":case"keyup":P=DA;break;case"focusin":Be="focus",P=gh;break;case"focusout":Be="blur",P=gh;break;case"beforeblur":case"afterblur":P=gh;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":P=Ng;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=bA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=MA;break;case Qg:case Xg:case Zg:P=_A;break;case Jg:P=$A;break;case"scroll":case"scrollend":P=yA;break;case"wheel":P=BA;break;case"copy":case"cut":case"paste":P=OA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Rg;break;case"toggle":case"beforetoggle":P=IA}var Me=(i&4)!==0,gt=!Me&&(r==="scroll"||r==="scrollend"),B=Me?H!==null?H+"Capture":null:H;Me=[];for(var $=z,I;$!==null;){var X=$;if(I=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||I===null||B===null||(X=To($,B),X!=null&&Me.push(lu($,X,I))),gt)break;$=$.return}0<Me.length&&(H=new P(H,Be,null,l,K),J.push({event:H,listeners:Me}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",P=r==="mouseout"||r==="pointerout",H&&l!==fh&&(Be=l.relatedTarget||l.fromElement)&&(Ie(Be)||Be[Te]))break e;if((P||H)&&(H=K.window===K?K:(H=K.ownerDocument)?H.defaultView||H.parentWindow:window,P?(Be=l.relatedTarget||l.toElement,P=z,Be=Be?Ie(Be):null,Be!==null&&(gt=o(Be),Me=Be.tag,Be!==gt||Me!==5&&Me!==27&&Me!==6)&&(Be=null)):(P=null,Be=z),P!==Be)){if(Me=Ng,X="onMouseLeave",B="onMouseEnter",$="mouse",(r==="pointerout"||r==="pointerover")&&(Me=Rg,X="onPointerLeave",B="onPointerEnter",$="pointer"),gt=P==null?H:Ot(P),I=Be==null?H:Ot(Be),H=new Me(X,$+"leave",P,l,K),H.target=gt,H.relatedTarget=I,X=null,Ie(K)===z&&(Me=new Me(B,$+"enter",Be,l,K),Me.target=I,Me.relatedTarget=gt,X=Me),gt=X,P&&Be)t:{for(Me=P,B=Be,$=0,I=Me;I;I=Rl(I))$++;for(I=0,X=B;X;X=Rl(X))I++;for(;0<$-I;)Me=Rl(Me),$--;for(;0<I-$;)B=Rl(B),I--;for(;$--;){if(Me===B||B!==null&&Me===B.alternate)break t;Me=Rl(Me),B=Rl(B)}Me=null}else Me=null;P!==null&&bS(J,H,P,Me,!1),Be!==null&>!==null&&bS(J,gt,Be,Me,!0)}}e:{if(H=z?Ot(z):window,P=H.nodeName&&H.nodeName.toLowerCase(),P==="select"||P==="input"&&H.type==="file")var be=Bg;else if($g(H))if(Fg)be=XA;else{be=KA;var Ke=YA}else P=H.nodeName,!P||P.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?z&&ch(z.elementType)&&(be=Bg):be=QA;if(be&&(be=be(r,z))){Lg(J,be,l,K);break e}Ke&&Ke(r,H,z),r==="focusout"&&z&&H.type==="number"&&z.memoizedProps.value!=null&&uh(H,"number",H.value)}switch(Ke=z?Ot(z):window,r){case"focusin":($g(Ke)||Ke.contentEditable==="true")&&(sl=Ke,Oh=z,ko=null);break;case"focusout":ko=Oh=sl=null;break;case"mousedown":Th=!0;break;case"contextmenu":case"mouseup":case"dragend":Th=!1,Yg(J,l,K);break;case"selectionchange":if(JA)break;case"keydown":case"keyup":Yg(J,l,K)}var Ce;if(Sh)e:{switch(r){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else il?Mg(r,l)&&(Ue="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Ue="onCompositionStart");Ue&&(Dg&&l.locale!=="ko"&&(il||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&il&&(Ce=wg()):(Za=K,mh="value"in Za?Za.value:Za.textContent,il=!0)),Ke=yf(z,Ue),0<Ke.length&&(Ue=new Cg(Ue,r,null,l,K),J.push({event:Ue,listeners:Ke}),Ce?Ue.data=Ce:(Ce=Ug(l),Ce!==null&&(Ue.data=Ce)))),(Ce=qA?VA(r,l):HA(r,l))&&(Ue=yf(z,"onBeforeInput"),0<Ue.length&&(Ke=new Cg("onBeforeInput","beforeinput",null,l,K),J.push({event:Ke,listeners:Ue}),Ke.data=Ce)),MN(J,r,z,l,K)}yS(J,i)})}function lu(r,i,l){return{instance:r,listener:i,currentTarget:l}}function yf(r,i){for(var l=i+"Capture",u=[];r!==null;){var f=r,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=To(r,l),f!=null&&u.unshift(lu(r,f,m)),f=To(r,i),f!=null&&u.push(lu(r,f,m))),r.tag===3)return u;r=r.return}return[]}function Rl(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function bS(r,i,l,u,f){for(var m=i._reactName,E=[];l!==null&&l!==u;){var T=l,j=T.alternate,z=T.stateNode;if(T=T.tag,j!==null&&j===u)break;T!==5&&T!==26&&T!==27||z===null||(j=z,f?(z=To(l,m),z!=null&&E.unshift(lu(l,z,j))):f||(z=To(l,m),z!=null&&E.push(lu(l,z,j)))),l=l.return}E.length!==0&&r.push({event:i,listeners:E})}var BN=/\r\n?/g,FN=/\u0000|\uFFFD/g;function SS(r){return(typeof r=="string"?r:""+r).replace(BN,`
|
|
49
|
-
`).replace(FN,"")}function ES(r,i){return i=SS(i),SS(r)===i}function gf(){}function yt(r,i,l,u,f,m){switch(l){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||nl(r,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&nl(r,""+u);break;case"className":ca(r,"class",u);break;case"tabIndex":ca(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ca(r,l,u);break;case"style":xg(r,u,m);break;case"data":if(i!=="object"){ca(r,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||l!=="href")){r.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Tc(""+u),r.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){r.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"?(i!=="input"&&yt(r,i,"name",f.name,f,null),yt(r,i,"formEncType",f.formEncType,f,null),yt(r,i,"formMethod",f.formMethod,f,null),yt(r,i,"formTarget",f.formTarget,f,null)):(yt(r,i,"encType",f.encType,f,null),yt(r,i,"method",f.method,f,null),yt(r,i,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Tc(""+u),r.setAttribute(l,u);break;case"onClick":u!=null&&(r.onclick=gf);break;case"onScroll":u!=null&&Xe("scroll",r);break;case"onScrollEnd":u!=null&&Xe("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.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"){r.removeAttribute("xlink:href");break}l=Tc(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","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"?r.setAttribute(l,""+u):r.removeAttribute(l);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":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":u===!0?r.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,u):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(l,u):r.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(l):r.setAttribute(l,u);break;case"popover":Xe("beforetoggle",r),Xe("toggle",r),Zn(r,"popover",u);break;case"xlinkActuate":Ye(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ye(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ye(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ye(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ye(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ye(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ye(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ye(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ye(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Zn(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=mA.get(l)||l,Zn(r,l,u))}}function Kp(r,i,l,u,f,m){switch(l){case"style":xg(r,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"children":typeof u=="string"?nl(r,u):(typeof u=="number"||typeof u=="bigint")&&nl(r,""+u);break;case"onScroll":u!=null&&Xe("scroll",r);break;case"onScrollEnd":u!=null&&Xe("scrollend",r);break;case"onClick":u!=null&&(r.onclick=gf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ya.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),i=l.slice(2,f?l.length-7:void 0),m=r[oe]||null,m=m!=null?m[l]:null,typeof m=="function"&&r.removeEventListener(i,m,f),typeof u=="function")){typeof m!="function"&&m!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(i,u,f);break e}l in r?r[l]=u:u===!0?r.setAttribute(l,""):Zn(r,l,u)}}}function rn(r,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",r),Xe("load",r);var u=!1,f=!1,m;for(m in l)if(l.hasOwnProperty(m)){var E=l[m];if(E!=null)switch(m){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:yt(r,i,m,E,l,null)}}f&&yt(r,i,"srcSet",l.srcSet,l,null),u&&yt(r,i,"src",l.src,l,null);return;case"input":Xe("invalid",r);var T=m=E=f=null,j=null,z=null;for(u in l)if(l.hasOwnProperty(u)){var K=l[u];if(K!=null)switch(u){case"name":f=K;break;case"type":E=K;break;case"checked":j=K;break;case"defaultChecked":z=K;break;case"value":m=K;break;case"defaultValue":T=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(a(137,i));break;default:yt(r,i,u,K,l,null)}}bg(r,m,T,j,z,E,f,!1),xc(r);return;case"select":Xe("invalid",r),u=E=m=null;for(f in l)if(l.hasOwnProperty(f)&&(T=l[f],T!=null))switch(f){case"value":m=T;break;case"defaultValue":E=T;break;case"multiple":u=T;default:yt(r,i,f,T,l,null)}i=m,l=E,r.multiple=!!u,i!=null?tl(r,!!u,i,!1):l!=null&&tl(r,!!u,l,!0);return;case"textarea":Xe("invalid",r),m=f=u=null;for(E in l)if(l.hasOwnProperty(E)&&(T=l[E],T!=null))switch(E){case"value":u=T;break;case"defaultValue":f=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:yt(r,i,E,T,l,null)}Eg(r,u,f,m),xc(r);return;case"option":for(j in l)if(l.hasOwnProperty(j)&&(u=l[j],u!=null))switch(j){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:yt(r,i,j,u,l,null)}return;case"dialog":Xe("beforetoggle",r),Xe("toggle",r),Xe("cancel",r),Xe("close",r);break;case"iframe":case"object":Xe("load",r);break;case"video":case"audio":for(u=0;u<su.length;u++)Xe(su[u],r);break;case"image":Xe("error",r),Xe("load",r);break;case"details":Xe("toggle",r);break;case"embed":case"source":case"link":Xe("error",r),Xe("load",r);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(a(137,i));default:yt(r,i,z,u,l,null)}return;default:if(ch(i)){for(K in l)l.hasOwnProperty(K)&&(u=l[K],u!==void 0&&Kp(r,i,K,u,l,void 0));return}}for(T in l)l.hasOwnProperty(T)&&(u=l[T],u!=null&&yt(r,i,T,u,l,null))}function IN(r,i,l,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,E=null,T=null,j=null,z=null,K=null;for(P in l){var J=l[P];if(l.hasOwnProperty(P)&&J!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":j=J;default:u.hasOwnProperty(P)||yt(r,i,P,null,u,J)}}for(var H in u){var P=u[H];if(J=l[H],u.hasOwnProperty(H)&&(P!=null||J!=null))switch(H){case"type":m=P;break;case"name":f=P;break;case"checked":z=P;break;case"defaultChecked":K=P;break;case"value":E=P;break;case"defaultValue":T=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,i));break;default:P!==J&&yt(r,i,H,P,u,J)}}oh(r,E,T,j,z,K,m,f);return;case"select":P=E=T=H=null;for(m in l)if(j=l[m],l.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":P=j;default:u.hasOwnProperty(m)||yt(r,i,m,null,u,j)}for(f in u)if(m=u[f],j=l[f],u.hasOwnProperty(f)&&(m!=null||j!=null))switch(f){case"value":H=m;break;case"defaultValue":T=m;break;case"multiple":E=m;default:m!==j&&yt(r,i,f,m,u,j)}i=T,l=E,u=P,H!=null?tl(r,!!l,H,!1):!!u!=!!l&&(i!=null?tl(r,!!l,i,!0):tl(r,!!l,l?[]:"",!1));return;case"textarea":P=H=null;for(T in l)if(f=l[T],l.hasOwnProperty(T)&&f!=null&&!u.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:yt(r,i,T,null,u,f)}for(E in u)if(f=u[E],m=l[E],u.hasOwnProperty(E)&&(f!=null||m!=null))switch(E){case"value":H=f;break;case"defaultValue":P=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==m&&yt(r,i,E,f,u,m)}Sg(r,H,P);return;case"option":for(var Be in l)if(H=l[Be],l.hasOwnProperty(Be)&&H!=null&&!u.hasOwnProperty(Be))switch(Be){case"selected":r.selected=!1;break;default:yt(r,i,Be,null,u,H)}for(j in u)if(H=u[j],P=l[j],u.hasOwnProperty(j)&&H!==P&&(H!=null||P!=null))switch(j){case"selected":r.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:yt(r,i,j,H,u,P)}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 Me in l)H=l[Me],l.hasOwnProperty(Me)&&H!=null&&!u.hasOwnProperty(Me)&&yt(r,i,Me,null,u,H);for(z in u)if(H=u[z],P=l[z],u.hasOwnProperty(z)&&H!==P&&(H!=null||P!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,i));break;default:yt(r,i,z,H,u,P)}return;default:if(ch(i)){for(var gt in l)H=l[gt],l.hasOwnProperty(gt)&&H!==void 0&&!u.hasOwnProperty(gt)&&Kp(r,i,gt,void 0,u,H);for(K in u)H=u[K],P=l[K],!u.hasOwnProperty(K)||H===P||H===void 0&&P===void 0||Kp(r,i,K,H,u,P);return}}for(var B in l)H=l[B],l.hasOwnProperty(B)&&H!=null&&!u.hasOwnProperty(B)&&yt(r,i,B,null,u,H);for(J in u)H=u[J],P=l[J],!u.hasOwnProperty(J)||H===P||H==null&&P==null||yt(r,i,J,H,u,P)}var Qp=null,Xp=null;function bf(r){return r.nodeType===9?r:r.ownerDocument}function _S(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xS(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function Zp(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Jp=null;function zN(){var r=window.event;return r&&r.type==="popstate"?r===Jp?!1:(Jp=r,!0):(Jp=null,!1)}var OS=typeof setTimeout=="function"?setTimeout:void 0,qN=typeof clearTimeout=="function"?clearTimeout:void 0,TS=typeof Promise=="function"?Promise:void 0,VN=typeof queueMicrotask=="function"?queueMicrotask:typeof TS<"u"?function(r){return TS.resolve(null).then(r).catch(HN)}:OS;function HN(r){setTimeout(function(){throw r})}function hi(r){return r==="head"}function wS(r,i){var l=i,u=0,f=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"){if(0<u&&8>u){l=u;var E=r.ownerDocument;if(l&1&&ou(E.documentElement),l&2&&ou(E.body),l&4)for(l=E.head,ou(l),E=l.firstChild;E;){var T=E.nextSibling,j=E.nodeName;E[Le]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&E.rel.toLowerCase()==="stylesheet"||l.removeChild(E),E=T}}if(f===0){r.removeChild(m),vu(i);return}f--}else l==="$"||l==="$?"||l==="$!"?f++:u=l.charCodeAt(0)-48;else u=0;l=m}while(l);vu(i)}function Wp(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Wp(l),Ne(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function PN(r,i,l,u){for(;r.nodeType===1;){var f=l;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[Le])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(m=r.getAttribute("rel"),m==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(m!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(m=r.getAttribute("src"),(m!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===m)return r}else return r;if(r=xr(r.nextSibling),r===null)break}return null}function GN(r,i,l){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=xr(r.nextSibling),r===null))return null;return r}function em(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState==="complete"}function YN(r,i){var l=r.ownerDocument;if(r.data!=="$?"||l.readyState==="complete")i();else{var u=function(){i(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function xr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return r}var tm=null;function AS(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return r;i--}else l==="/$"&&i++}r=r.previousSibling}return null}function NS(r,i,l){switch(i=bf(l),r){case"html":if(r=i.documentElement,!r)throw Error(a(452));return r;case"head":if(r=i.head,!r)throw Error(a(453));return r;case"body":if(r=i.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function ou(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Ne(r)}var ir=new Map,CS=new Set;function Sf(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Oa=te.d;te.d={f:KN,r:QN,D:XN,C:ZN,L:JN,m:WN,X:tC,S:eC,M:nC};function KN(){var r=Oa.f(),i=ff();return r||i}function QN(r){var i=nt(r);i!==null&&i.tag===5&&i.type==="form"?Q0(i):Oa.r(r)}var Dl=typeof document>"u"?null:document;function RS(r,i,l){var u=Dl;if(u&&typeof i=="string"&&i){var f=Jn(i);f='link[rel="'+r+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),CS.has(f)||(CS.add(f),r={rel:r,crossOrigin:l,href:i},u.querySelector(f)===null&&(i=u.createElement("link"),rn(i,"link",r),it(i),u.head.appendChild(i)))}}function XN(r){Oa.D(r),RS("dns-prefetch",r,null)}function ZN(r,i){Oa.C(r,i),RS("preconnect",r,i)}function JN(r,i,l){Oa.L(r,i,l);var u=Dl;if(u&&r&&i){var f='link[rel="preload"][as="'+Jn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Jn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Jn(l.imageSizes)+'"]')):f+='[href="'+Jn(r)+'"]';var m=f;switch(i){case"style":m=jl(r);break;case"script":m=kl(r)}ir.has(m)||(r=v({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:r,as:i},l),ir.set(m,r),u.querySelector(f)!==null||i==="style"&&u.querySelector(uu(m))||i==="script"&&u.querySelector(cu(m))||(i=u.createElement("link"),rn(i,"link",r),it(i),u.head.appendChild(i)))}}function WN(r,i){Oa.m(r,i);var l=Dl;if(l&&r){var u=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+Jn(u)+'"][href="'+Jn(r)+'"]',m=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=kl(r)}if(!ir.has(m)&&(r=v({rel:"modulepreload",href:r},i),ir.set(m,r),l.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(cu(m)))return}u=l.createElement("link"),rn(u,"link",r),it(u),l.head.appendChild(u)}}}function eC(r,i,l){Oa.S(r,i,l);var u=Dl;if(u&&r){var f=Dt(u).hoistableStyles,m=jl(r);i=i||"default";var E=f.get(m);if(!E){var T={loading:0,preload:null};if(E=u.querySelector(uu(m)))T.loading=5;else{r=v({rel:"stylesheet",href:r,"data-precedence":i},l),(l=ir.get(m))&&nm(r,l);var j=E=u.createElement("link");it(j),rn(j,"link",r),j._p=new Promise(function(z,K){j.onload=z,j.onerror=K}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Ef(E,i,u)}E={type:"stylesheet",instance:E,count:1,state:T},f.set(m,E)}}}function tC(r,i){Oa.X(r,i);var l=Dl;if(l&&r){var u=Dt(l).hoistableScripts,f=kl(r),m=u.get(f);m||(m=l.querySelector(cu(f)),m||(r=v({src:r,async:!0},i),(i=ir.get(f))&&rm(r,i),m=l.createElement("script"),it(m),rn(m,"link",r),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(f,m))}}function nC(r,i){Oa.M(r,i);var l=Dl;if(l&&r){var u=Dt(l).hoistableScripts,f=kl(r),m=u.get(f);m||(m=l.querySelector(cu(f)),m||(r=v({src:r,async:!0,type:"module"},i),(i=ir.get(f))&&rm(r,i),m=l.createElement("script"),it(m),rn(m,"link",r),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(f,m))}}function DS(r,i,l,u){var f=(f=ve.current)?Sf(f):null;if(!f)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=jl(l.href),l=Dt(f).hoistableStyles,u=l.get(i),u||(u={type:"style",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=jl(l.href);var m=Dt(f).hoistableStyles,E=m.get(r);if(E||(f=f.ownerDocument||f,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(r,E),(m=f.querySelector(uu(r)))&&!m._p&&(E.instance=m,E.state.loading=5),ir.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ir.set(r,l),m||rC(f,r,l,E.state))),i&&u===null)throw Error(a(528,""));return E}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=kl(l),l=Dt(f).hoistableScripts,u=l.get(i),u||(u={type:"script",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function jl(r){return'href="'+Jn(r)+'"'}function uu(r){return'link[rel="stylesheet"]['+r+"]"}function jS(r){return v({},r,{"data-precedence":r.precedence,precedence:null})}function rC(r,i,l,u){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=r.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),rn(i,"link",l),it(i),r.head.appendChild(i))}function kl(r){return'[src="'+Jn(r)+'"]'}function cu(r){return"script[async]"+r}function kS(r,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=r.querySelector('style[data-href~="'+Jn(l.href)+'"]');if(u)return i.instance=u,it(u),u;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),it(u),rn(u,"style",f),Ef(u,l.precedence,r),i.instance=u;case"stylesheet":f=jl(l.href);var m=r.querySelector(uu(f));if(m)return i.state.loading|=4,i.instance=m,it(m),m;u=jS(l),(f=ir.get(f))&&nm(u,f),m=(r.ownerDocument||r).createElement("link"),it(m);var E=m;return E._p=new Promise(function(T,j){E.onload=T,E.onerror=j}),rn(m,"link",u),i.state.loading|=4,Ef(m,l.precedence,r),i.instance=m;case"script":return m=kl(l.src),(f=r.querySelector(cu(m)))?(i.instance=f,it(f),f):(u=l,(f=ir.get(m))&&(u=v({},l),rm(u,f)),r=r.ownerDocument||r,f=r.createElement("script"),it(f),rn(f,"link",u),r.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Ef(u,l.precedence,r));return i.instance}function Ef(r,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,m=f,E=0;E<u.length;E++){var T=u[E];if(T.dataset.precedence===i)m=T;else if(m!==f)break}m?m.parentNode.insertBefore(r,m.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(r,i.firstChild))}function nm(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function rm(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var _f=null;function MS(r,i,l){if(_f===null){var u=new Map,f=_f=new Map;f.set(l,u)}else f=_f,u=f.get(l),u||(u=new Map,f.set(l,u));if(u.has(r))return u;for(u.set(r,null),l=l.getElementsByTagName(r),f=0;f<l.length;f++){var m=l[f];if(!(m[Le]||m[ee]||r==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var E=m.getAttribute(i)||"";E=r+E;var T=u.get(E);T?T.push(m):u.set(E,[m])}}return u}function US(r,i,l){r=r.ownerDocument||r,r.head.insertBefore(l,i==="title"?r.querySelector("head > title"):null)}function aC(r,i,l){if(l===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return r=i.disabled,typeof i.precedence=="string"&&r==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function $S(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var fu=null;function iC(){}function sC(r,i,l){if(fu===null)throw Error(a(475));var u=fu;if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=jl(l.href),m=r.querySelector(uu(f));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(u.count++,u=xf.bind(u),r.then(u,u)),i.state.loading|=4,i.instance=m,it(m);return}m=r.ownerDocument||r,l=jS(l),(f=ir.get(f))&&nm(l,f),m=m.createElement("link"),it(m);var E=m;E._p=new Promise(function(T,j){E.onload=T,E.onerror=j}),rn(m,"link",l),i.instance=m}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(u.count++,i=xf.bind(u),r.addEventListener("load",i),r.addEventListener("error",i))}}function lC(){if(fu===null)throw Error(a(475));var r=fu;return r.stylesheets&&r.count===0&&am(r,r.stylesheets),0<r.count?function(i){var l=setTimeout(function(){if(r.stylesheets&&am(r,r.stylesheets),r.unsuspend){var u=r.unsuspend;r.unsuspend=null,u()}},6e4);return r.unsuspend=i,function(){r.unsuspend=null,clearTimeout(l)}}:null}function xf(){if(this.count--,this.count===0){if(this.stylesheets)am(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Of=null;function am(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Of=new Map,i.forEach(oC,r),Of=null,xf.call(r))}function oC(r,i){if(!(i.state.loading&4)){var l=Of.get(r);if(l)var u=l.get(null);else{l=new Map,Of.set(r,l);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var E=f[m];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(l.set(E.dataset.precedence,E),u=E)}u&&l.set(null,u)}f=i.instance,E=f.getAttribute("data-precedence"),m=l.get(E)||u,m===u&&l.set(null,f),l.set(E,f),this.count++,u=xf.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),m?m.parentNode.insertBefore(f,m.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),i.state.loading|=4}}var du={$$typeof:D,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function uC(r,i,l,u,f,m,E,T){this.tag=1,this.containerInfo=r,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=el(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.hiddenUpdates=el(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function LS(r,i,l,u,f,m,E,T,j,z,K,J){return r=new uC(r,i,l,E,T,j,z,J),i=1,m===!0&&(i|=24),m=jn(3,null,null,i),r.current=m,m.stateNode=r,i=Fh(),i.refCount++,r.pooledCache=i,i.refCount++,m.memoizedState={element:u,isDehydrated:l,cache:i},Vh(m),r}function BS(r){return r?(r=cl,r):cl}function FS(r,i,l,u,f,m){f=BS(f),u.context===null?u.context=f:u.pendingContext=f,u=ei(i),u.payload={element:l},m=m===void 0?null:m,m!==null&&(u.callback=m),l=ti(r,u,i),l!==null&&(Ln(l,r,i),qo(l,r,i))}function IS(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function im(r,i){IS(r,i),(r=r.alternate)&&IS(r,i)}function zS(r){if(r.tag===13){var i=ul(r,67108864);i!==null&&Ln(i,r,67108864),im(r,67108864)}}var Tf=!0;function cC(r,i,l,u){var f=L.T;L.T=null;var m=te.p;try{te.p=2,sm(r,i,l,u)}finally{te.p=m,L.T=f}}function fC(r,i,l,u){var f=L.T;L.T=null;var m=te.p;try{te.p=8,sm(r,i,l,u)}finally{te.p=m,L.T=f}}function sm(r,i,l,u){if(Tf){var f=lm(u);if(f===null)Yp(r,i,u,wf,l),VS(r,u);else if(hC(f,r,i,l,u))u.stopPropagation();else if(VS(r,u),i&4&&-1<dC.indexOf(r)){for(;f!==null;){var m=nt(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var E=ua(m.pendingLanes);if(E!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;E;){var j=1<<31-bt(E);T.entanglements[1]|=j,E&=~j}Hr(m),(ht&6)===0&&(uf=At()+500,iu(0))}}break;case 13:T=ul(m,2),T!==null&&Ln(T,m,2),ff(),im(m,2)}if(m=lm(u),m===null&&Yp(r,i,u,wf,l),m===f)break;f=m}f!==null&&u.stopPropagation()}else Yp(r,i,u,null,l)}}function lm(r){return r=dh(r),om(r)}var wf=null;function om(r){if(wf=null,r=Ie(r),r!==null){var i=o(r);if(i===null)r=null;else{var l=i.tag;if(l===13){if(r=c(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return wf=r,null}function qS(r){switch(r){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(la()){case Qn:return 2;case ln:return 8;case hn:case V:return 32;case ce:return 268435456;default:return 32}default:return 32}}var um=!1,pi=null,mi=null,vi=null,hu=new Map,pu=new Map,yi=[],dC="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 VS(r,i){switch(r){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":hu.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":pu.delete(i.pointerId)}}function mu(r,i,l,u,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[f]},i!==null&&(i=nt(i),i!==null&&zS(i)),r):(r.eventSystemFlags|=u,i=r.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),r)}function hC(r,i,l,u,f){switch(i){case"focusin":return pi=mu(pi,r,i,l,u,f),!0;case"dragenter":return mi=mu(mi,r,i,l,u,f),!0;case"mouseover":return vi=mu(vi,r,i,l,u,f),!0;case"pointerover":var m=f.pointerId;return hu.set(m,mu(hu.get(m)||null,r,i,l,u,f)),!0;case"gotpointercapture":return m=f.pointerId,pu.set(m,mu(pu.get(m)||null,r,i,l,u,f)),!0}return!1}function HS(r){var i=Ie(r.target);if(i!==null){var l=o(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){r.blockedOn=i,F(r.priority,function(){if(l.tag===13){var u=$n();u=Eo(u);var f=ul(l,u);f!==null&&Ln(f,l,u),im(l,u)}});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Af(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=lm(r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);fh=u,l.target.dispatchEvent(u),fh=null}else return i=nt(l),i!==null&&zS(i),r.blockedOn=l,!1;i.shift()}return!0}function PS(r,i,l){Af(r)&&l.delete(i)}function pC(){um=!1,pi!==null&&Af(pi)&&(pi=null),mi!==null&&Af(mi)&&(mi=null),vi!==null&&Af(vi)&&(vi=null),hu.forEach(PS),pu.forEach(PS)}function Nf(r,i){r.blockedOn===i&&(r.blockedOn=null,um||(um=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,pC)))}var Cf=null;function GS(r){Cf!==r&&(Cf=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cf===r&&(Cf=null);for(var i=0;i<r.length;i+=3){var l=r[i],u=r[i+1],f=r[i+2];if(typeof u!="function"){if(om(u||l)===null)continue;break}var m=nt(l);m!==null&&(r.splice(i,3),i-=3,op(m,{pending:!0,data:f,method:l.method,action:u},u,f))}}))}function vu(r){function i(j){return Nf(j,r)}pi!==null&&Nf(pi,r),mi!==null&&Nf(mi,r),vi!==null&&Nf(vi,r),hu.forEach(i),pu.forEach(i);for(var l=0;l<yi.length;l++){var u=yi[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<yi.length&&(l=yi[0],l.blockedOn===null);)HS(l),l.blockedOn===null&&yi.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var f=l[u],m=l[u+1],E=f[oe]||null;if(typeof m=="function")E||GS(l);else if(E){var T=null;if(m&&m.hasAttribute("formAction")){if(f=m,E=m[oe]||null)T=E.formAction;else if(om(f)!==null)continue}else T=E.action;typeof T=="function"?l[u+1]=T:(l.splice(u,3),u-=3),GS(l)}}}function cm(r){this._internalRoot=r}Rf.prototype.render=cm.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=$n();FS(l,u,r,i,null,null)},Rf.prototype.unmount=cm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;FS(r.current,2,null,r,null,null),ff(),i[Te]=null}};function Rf(r){this._internalRoot=r}Rf.prototype.unstable_scheduleHydration=function(r){if(r){var i=M();r={blockedOn:null,target:r,priority:i};for(var l=0;l<yi.length&&i!==0&&i<yi[l].priority;l++);yi.splice(l,0,r),l===0&&HS(r)}};var YS=t.version;if(YS!=="19.1.0")throw Error(a(527,YS,"19.1.0"));te.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=d(i),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var mC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Df.isDisabled&&Df.supportsFiber)try{ue=Df.inject(mC),ge=Df}catch{}}return gu.createRoot=function(r,i){if(!s(r))throw Error(a(299));var l=!1,u="",f=ub,m=cb,E=fb,T=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(T=i.unstable_transitionCallbacks)),i=LS(r,1,!1,null,null,l,u,f,m,E,T,null),r[Te]=i.current,Gp(r),new cm(i)},gu.hydrateRoot=function(r,i,l){if(!s(r))throw Error(a(299));var u=!1,f="",m=ub,E=cb,T=fb,j=null,z=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(E=l.onCaughtError),l.onRecoverableError!==void 0&&(T=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(j=l.unstable_transitionCallbacks),l.formState!==void 0&&(z=l.formState)),i=LS(r,1,!0,i,l??null,u,f,m,E,T,j,z),i.context=BS(null),l=i.current,u=$n(),u=Eo(u),f=ei(u),f.callback=null,ti(l,f,u),l=u,i.current.lanes=l,Ki(i,l),Hr(i),r[Te]=i.current,Gp(r),new Rf(i)},gu.version="19.1.0",gu}var aE;function AC(){if(aE)return hm.exports;aE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hm.exports=wC(),hm.exports}var NC=AC(),S=Rd();const mt=Bs(S);var bu={},iE;function CC(){if(iE)return bu;iE=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.parse=c,bu.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,o=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function c(y,_){const x=new o,A=y.length;if(A<2)return x;const N=(_==null?void 0:_.decode)||v;let O=0;do{const R=y.indexOf("=",O);if(R===-1)break;const D=y.indexOf(";",O),U=D===-1?A:D;if(R>U){O=y.lastIndexOf(";",R-1)+1;continue}const C=h(y,O,R),w=d(y,R,C),q=y.slice(C,w);if(x[q]===void 0){let re=h(y,R+1,U),Q=d(y,U,re);const he=N(y.slice(re,Q));x[q]=he}O=U+1}while(O<A);return x}function h(y,_,x){do{const A=y.charCodeAt(_);if(A!==32&&A!==9)return _}while(++_<x);return x}function d(y,_,x){for(;_>x;){const A=y.charCodeAt(--_);if(A!==32&&A!==9)return _+1}return x}function p(y,_,x){const A=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const N=A(_);if(!t.test(N))throw new TypeError(`argument val is invalid: ${_}`);let O=y+"="+N;if(!x)return O;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);O+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);O+="; Domain="+x.domain}if(x.path){if(!a.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);O+="; Path="+x.path}if(x.expires){if(!b(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);O+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(O+="; HttpOnly"),x.secure&&(O+="; Secure"),x.partitioned&&(O+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return O}function v(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function b(y){return s.call(y)==="[object Date]"}return bu}CC();/**
|
|
48
|
+
`+l.stack}}function En(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function yg(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function gA(r){var i=yg(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),u=""+r[i];if(!r.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,m=l.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return f.call(this)},set:function(E){u=""+E,m.call(this,E)}}),Object.defineProperty(r,i,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(E){u=""+E},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function xc(r){r._valueTracker||(r._valueTracker=gA(r))}function gg(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return r&&(u=yg(r)?r.checked?"true":"false":r.value),r=u,r!==l?(i.setValue(r),!0):!1}function Oc(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var bA=/[\n"\\]/g;function Wn(r){return r.replace(bA,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function oh(r,i,l,u,f,m,E,T){r.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?r.type=E:r.removeAttribute("type"),i!=null?E==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+En(i)):r.value!==""+En(i)&&(r.value=""+En(i)):E!=="submit"&&E!=="reset"||r.removeAttribute("value"),i!=null?uh(r,E,En(i)):l!=null?uh(r,E,En(l)):u!=null&&r.removeAttribute("value"),f==null&&m!=null&&(r.defaultChecked=!!m),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?r.name=""+En(T):r.removeAttribute("name")}function bg(r,i,l,u,f,m,E,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(r.type=m),i!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||i!=null))return;l=l!=null?""+En(l):"",i=i!=null?""+En(i):l,T||i===r.value||(r.value=i),r.defaultValue=i}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=T?r.checked:!!u,r.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(r.name=E)}function uh(r,i,l){i==="number"&&Oc(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function tl(r,i,l,u){if(r=r.options,i){i={};for(var f=0;f<l.length;f++)i["$"+l[f]]=!0;for(l=0;l<r.length;l++)f=i.hasOwnProperty("$"+r[l].value),r[l].selected!==f&&(r[l].selected=f),f&&u&&(r[l].defaultSelected=!0)}else{for(l=""+En(l),i=null,f=0;f<r.length;f++){if(r[f].value===l){r[f].selected=!0,u&&(r[f].defaultSelected=!0);return}i!==null||r[f].disabled||(i=r[f])}i!==null&&(i.selected=!0)}}function Sg(r,i,l){if(i!=null&&(i=""+En(i),i!==r.value&&(r.value=i),l==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=l!=null?""+En(l):""}function Eg(r,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if(Te(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),i=l}l=En(i),r.defaultValue=l,u=r.textContent,u===l&&u!==""&&u!==null&&(r.value=u)}function nl(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var SA=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 _g(r,i,l){var u=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":u?r.setProperty(i,l):typeof l!="number"||l===0||SA.has(i)?i==="float"?r.cssFloat=l:r[i]=(""+l).trim():r[i]=l+"px"}function xg(r,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(r=r.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var f in i)u=i[f],i.hasOwnProperty(f)&&l[f]!==u&&_g(r,f,u)}else for(var m in i)i.hasOwnProperty(m)&&_g(r,m,i[m])}function ch(r){if(r.indexOf("-")===-1)return!1;switch(r){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 EA=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"]]),_A=/^[\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 Tc(r){return _A.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var fh=null;function dh(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var rl=null,al=null;function Og(r){var i=nt(r);if(i&&(r=i.stateNode)){var l=r[oe]||null;e:switch(r=i.stateNode,i.type){case"input":if(oh(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Wn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==r&&u.form===r.form){var f=u[oe]||null;if(!f)throw Error(a(90));oh(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===r.form&&gg(u)}break e;case"textarea":Sg(r,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&tl(r,!!l.multiple,i,!1)}}}var hh=!1;function Tg(r,i,l){if(hh)return r(i,l);hh=!0;try{var u=r(i);return u}finally{if(hh=!1,(rl!==null||al!==null)&&(ff(),rl&&(i=rl,r=al,al=rl=null,Og(i),r)))for(i=0;i<r.length;i++)Og(r[i])}}function To(r,i){var l=r.stateNode;if(l===null)return null;var u=l[oe]||null;if(u===null)return null;l=u[i];e:switch(i){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)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ph=!1;if(fa)try{var wo={};Object.defineProperty(wo,"passive",{get:function(){ph=!0}}),window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch{ph=!1}var Za=null,mh=null,wc=null;function wg(){if(wc)return wc;var r,i=mh,l=i.length,u,f="value"in Za?Za.value:Za.textContent,m=f.length;for(r=0;r<l&&i[r]===f[r];r++);var E=l-r;for(u=1;u<=E&&i[l-u]===f[m-u];u++);return wc=f.slice(r,1<u?1-u:void 0)}function Ac(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Nc(){return!0}function Ag(){return!1}function _n(r){function i(l,u,f,m,E){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=m,this.target=E,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(l=r[T],this[T]=l?l(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Nc:Ag,this.isPropagationStopped=Ag,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Nc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Nc)},persist:function(){},isPersistent:Nc}),i}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cc=_n(Ji),Ao=v({},Ji,{view:0,detail:0}),xA=_n(Ao),vh,yh,No,Rc=v({},Ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bh,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==No&&(No&&r.type==="mousemove"?(vh=r.screenX-No.screenX,yh=r.screenY-No.screenY):yh=vh=0,No=r),vh)},movementY:function(r){return"movementY"in r?r.movementY:yh}}),Ng=_n(Rc),OA=v({},Rc,{dataTransfer:0}),TA=_n(OA),wA=v({},Ao,{relatedTarget:0}),gh=_n(wA),AA=v({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),NA=_n(AA),CA=v({},Ji,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),RA=_n(CA),DA=v({},Ji,{data:0}),Cg=_n(DA),jA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kA={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"},MA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UA(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=MA[r])?!!i[r]:!1}function bh(){return UA}var $A=v({},Ao,{key:function(r){if(r.key){var i=jA[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Ac(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?kA[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bh,charCode:function(r){return r.type==="keypress"?Ac(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ac(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),LA=_n($A),BA=v({},Rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rg=_n(BA),FA=v({},Ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bh}),IA=_n(FA),zA=v({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),qA=_n(zA),VA=v({},Rc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),HA=_n(VA),PA=v({},Ji,{newState:0,oldState:0}),GA=_n(PA),YA=[9,13,27,32],Sh=fa&&"CompositionEvent"in window,Co=null;fa&&"documentMode"in document&&(Co=document.documentMode);var KA=fa&&"TextEvent"in window&&!Co,Dg=fa&&(!Sh||Co&&8<Co&&11>=Co),jg=" ",kg=!1;function Mg(r,i){switch(r){case"keyup":return YA.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ug(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var il=!1;function QA(r,i){switch(r){case"compositionend":return Ug(i);case"keypress":return i.which!==32?null:(kg=!0,jg);case"textInput":return r=i.data,r===jg&&kg?null:r;default:return null}}function XA(r,i){if(il)return r==="compositionend"||!Sh&&Mg(r,i)?(r=wg(),wc=mh=Za=null,il=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Dg&&i.locale!=="ko"?null:i.data;default:return null}}var ZA={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 $g(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!ZA[r.type]:i==="textarea"}function Lg(r,i,l,u){rl?al?al.push(u):al=[u]:rl=u,i=yf(i,"onChange"),0<i.length&&(l=new Cc("onChange","change",null,l,u),r.push({event:l,listeners:i}))}var Ro=null,Do=null;function JA(r){yS(r,0)}function Dc(r){var i=Ot(r);if(gg(i))return r}function Bg(r,i){if(r==="change")return i}var Fg=!1;if(fa){var Eh;if(fa){var _h="oninput"in document;if(!_h){var Ig=document.createElement("div");Ig.setAttribute("oninput","return;"),_h=typeof Ig.oninput=="function"}Eh=_h}else Eh=!1;Fg=Eh&&(!document.documentMode||9<document.documentMode)}function zg(){Ro&&(Ro.detachEvent("onpropertychange",qg),Do=Ro=null)}function qg(r){if(r.propertyName==="value"&&Dc(Do)){var i=[];Lg(i,Do,r,dh(r)),Tg(JA,i)}}function WA(r,i,l){r==="focusin"?(zg(),Ro=i,Do=l,Ro.attachEvent("onpropertychange",qg)):r==="focusout"&&zg()}function eN(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Dc(Do)}function tN(r,i){if(r==="click")return Dc(i)}function nN(r,i){if(r==="input"||r==="change")return Dc(i)}function rN(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Dn=typeof Object.is=="function"?Object.is:rN;function jo(r,i){if(Dn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var l=Object.keys(r),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!Wt.call(i,f)||!Dn(r[f],i[f]))return!1}return!0}function Vg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Hg(r,i){var l=Vg(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=i&&u>=i)return{node:l,offset:i-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Vg(l)}}function Pg(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Pg(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Gg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=Oc(r.document);i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=Oc(r.document)}return i}function xh(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var aN=fa&&"documentMode"in document&&11>=document.documentMode,sl=null,Oh=null,ko=null,Th=!1;function Yg(r,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Th||sl==null||sl!==Oc(u)||(u=sl,"selectionStart"in u&&xh(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}),ko&&jo(ko,u)||(ko=u,u=yf(Oh,"onSelect"),0<u.length&&(i=new Cc("onSelect","select",null,i,l),r.push({event:i,listeners:u}),i.target=sl)))}function Wi(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var ll={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionrun:Wi("Transition","TransitionRun"),transitionstart:Wi("Transition","TransitionStart"),transitioncancel:Wi("Transition","TransitionCancel"),transitionend:Wi("Transition","TransitionEnd")},wh={},Kg={};fa&&(Kg=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function es(r){if(wh[r])return wh[r];if(!ll[r])return r;var i=ll[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in Kg)return wh[r]=i[l];return r}var Qg=es("animationend"),Xg=es("animationiteration"),Zg=es("animationstart"),iN=es("transitionrun"),sN=es("transitionstart"),lN=es("transitioncancel"),Jg=es("transitionend"),Wg=new Map,Ah="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(" ");Ah.push("scrollEnd");function Er(r,i){Wg.set(r,i),pn(i,[r])}var e0=new WeakMap;function er(r,i){if(typeof r=="object"&&r!==null){var l=e0.get(r);return l!==void 0?l:(i={value:r,source:i,stack:Oo(i)},e0.set(r,i),i)}return{value:r,source:i,stack:Oo(i)}}var tr=[],ol=0,Nh=0;function jc(){for(var r=ol,i=Nh=ol=0;i<r;){var l=tr[i];tr[i++]=null;var u=tr[i];tr[i++]=null;var f=tr[i];tr[i++]=null;var m=tr[i];if(tr[i++]=null,u!==null&&f!==null){var E=u.pending;E===null?f.next=f:(f.next=E.next,E.next=f),u.pending=f}m!==0&&t0(l,f,m)}}function kc(r,i,l,u){tr[ol++]=r,tr[ol++]=i,tr[ol++]=l,tr[ol++]=u,Nh|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function Ch(r,i,l,u){return kc(r,i,l,u),Mc(r)}function ul(r,i){return kc(r,null,null,i),Mc(r)}function t0(r,i,l){r.lanes|=l;var u=r.alternate;u!==null&&(u.lanes|=l);for(var f=!1,m=r.return;m!==null;)m.childLanes|=l,u=m.alternate,u!==null&&(u.childLanes|=l),m.tag===22&&(r=m.stateNode,r===null||r._visibility&1||(f=!0)),r=m,m=m.return;return r.tag===3?(m=r.stateNode,f&&i!==null&&(f=31-bt(l),r=m.hiddenUpdates,u=r[f],u===null?r[f]=[i]:u.push(i),i.lane=l|536870912),m):null}function Mc(r){if(50<au)throw au=0,Up=null,Error(a(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var cl={};function oN(r,i,l,u){this.tag=r,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=i,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}function jn(r,i,l,u){return new oN(r,i,l,u)}function Rh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function da(r,i){var l=r.alternate;return l===null?(l=jn(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function n0(r,i){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,i=l.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function Uc(r,i,l,u,f,m){var E=0;if(u=r,typeof r=="function")Rh(r)&&(E=1);else if(typeof r=="string")E=cC(r,l,se.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Q:return r=jn(31,l,i,f),r.elementType=Q,r.lanes=m,r;case x:return ts(l.children,f,m,i);case A:E=8,f|=24;break;case N:return r=jn(12,l,i,f|2),r.elementType=N,r.lanes=m,r;case C:return r=jn(13,l,i,f),r.elementType=C,r.lanes=m,r;case w:return r=jn(19,l,i,f),r.elementType=w,r.lanes=m,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case O:case D:E=10;break e;case R:E=9;break e;case U:E=11;break e;case q:E=14;break e;case re:E=16,u=null;break e}E=29,l=Error(a(130,r===null?"null":typeof r,"")),u=null}return i=jn(E,l,i,f),i.elementType=r,i.type=u,i.lanes=m,i}function ts(r,i,l,u){return r=jn(7,r,u,i),r.lanes=l,r}function Dh(r,i,l){return r=jn(6,r,null,i),r.lanes=l,r}function jh(r,i,l){return i=jn(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var fl=[],dl=0,$c=null,Lc=0,nr=[],rr=0,ns=null,ha=1,pa="";function rs(r,i){fl[dl++]=Lc,fl[dl++]=$c,$c=r,Lc=i}function r0(r,i,l){nr[rr++]=ha,nr[rr++]=pa,nr[rr++]=ns,ns=r;var u=ha;r=pa;var f=32-bt(u)-1;u&=~(1<<f),l+=1;var m=32-bt(i)+f;if(30<m){var E=f-f%5;m=(u&(1<<E)-1).toString(32),u>>=E,f-=E,ha=1<<32-bt(i)+f|l<<f|u,pa=m+r}else ha=1<<m|l<<f|u,pa=r}function kh(r){r.return!==null&&(rs(r,1),r0(r,1,0))}function Mh(r){for(;r===$c;)$c=fl[--dl],fl[dl]=null,Lc=fl[--dl],fl[dl]=null;for(;r===ns;)ns=nr[--rr],nr[rr]=null,pa=nr[--rr],nr[rr]=null,ha=nr[--rr],nr[rr]=null}var mn=null,Mt=null,ct=!1,as=null,Ir=!1,Uh=Error(a(519));function is(r){var i=Error(a(418,""));throw $o(er(i,r)),Uh}function a0(r){var i=r.stateNode,l=r.type,u=r.memoizedProps;switch(i[ee]=r,i[oe]=u,l){case"dialog":Xe("cancel",i),Xe("close",i);break;case"iframe":case"object":case"embed":Xe("load",i);break;case"video":case"audio":for(l=0;l<su.length;l++)Xe(su[l],i);break;case"source":Xe("error",i);break;case"img":case"image":case"link":Xe("error",i),Xe("load",i);break;case"details":Xe("toggle",i);break;case"input":Xe("invalid",i),bg(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),xc(i);break;case"select":Xe("invalid",i);break;case"textarea":Xe("invalid",i),Eg(i,u.value,u.defaultValue,u.children),xc(i)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||u.suppressHydrationWarning===!0||ES(i.textContent,l)?(u.popover!=null&&(Xe("beforetoggle",i),Xe("toggle",i)),u.onScroll!=null&&Xe("scroll",i),u.onScrollEnd!=null&&Xe("scrollend",i),u.onClick!=null&&(i.onclick=gf),i=!0):i=!1,i||is(r)}function i0(r){for(mn=r.return;mn;)switch(mn.tag){case 5:case 13:Ir=!1;return;case 27:case 3:Ir=!0;return;default:mn=mn.return}}function Mo(r){if(r!==mn)return!1;if(!ct)return i0(r),ct=!0,!1;var i=r.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||Zp(r.type,r.memoizedProps)),l=!l),l&&Mt&&is(r),i0(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8)if(l=r.data,l==="/$"){if(i===0){Mt=xr(r.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++;r=r.nextSibling}Mt=null}}else i===27?(i=Mt,hi(r.type)?(r=tm,tm=null,Mt=r):Mt=i):Mt=mn?xr(r.stateNode.nextSibling):null;return!0}function Uo(){Mt=mn=null,ct=!1}function s0(){var r=as;return r!==null&&(Tn===null?Tn=r:Tn.push.apply(Tn,r),as=null),r}function $o(r){as===null?as=[r]:as.push(r)}var $h=Y(null),ss=null,ma=null;function Ja(r,i,l){ne($h,i._currentValue),i._currentValue=l}function va(r){r._currentValue=$h.current,ae($h)}function Lh(r,i,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),r===l)break;r=r.return}}function Bh(r,i,l,u){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var m=f.dependencies;if(m!==null){var E=f.child;m=m.firstContext;e:for(;m!==null;){var T=m;m=f;for(var j=0;j<i.length;j++)if(T.context===i[j]){m.lanes|=l,T=m.alternate,T!==null&&(T.lanes|=l),Lh(m.return,l,r),u||(E=null);break e}m=T.next}}else if(f.tag===18){if(E=f.return,E===null)throw Error(a(341));E.lanes|=l,m=E.alternate,m!==null&&(m.lanes|=l),Lh(E,l,r),E=null}else E=f.child;if(E!==null)E.return=f;else for(E=f;E!==null;){if(E===r){E=null;break}if(f=E.sibling,f!==null){f.return=E.return,E=f;break}E=E.return}f=E}}function Lo(r,i,l,u){r=null;for(var f=i,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var E=f.alternate;if(E===null)throw Error(a(387));if(E=E.memoizedProps,E!==null){var T=f.type;Dn(f.pendingProps.value,E.value)||(r!==null?r.push(T):r=[T])}}else if(f===dt.current){if(E=f.alternate,E===null)throw Error(a(387));E.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(du):r=[du])}f=f.return}r!==null&&Bh(i,r,l,u),i.flags|=262144}function Bc(r){for(r=r.firstContext;r!==null;){if(!Dn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ls(r){ss=r,ma=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function un(r){return l0(ss,r)}function Fc(r,i){return ss===null&&ls(r),l0(r,i)}function l0(r,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},ma===null){if(r===null)throw Error(a(308));ma=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else ma=ma.next=i;return l}var uN=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(l,u){r.push(u)}};this.abort=function(){i.aborted=!0,r.forEach(function(l){return l()})}},cN=e.unstable_scheduleCallback,fN=e.unstable_NormalPriority,Vt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fh(){return{controller:new uN,data:new Map,refCount:0}}function Bo(r){r.refCount--,r.refCount===0&&cN(fN,function(){r.controller.abort()})}var Fo=null,Ih=0,hl=0,pl=null;function dN(r,i){if(Fo===null){var l=Fo=[];Ih=0,hl=qp(),pl={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Ih++,i.then(o0,o0),i}function o0(){if(--Ih===0&&Fo!==null){pl!==null&&(pl.status="fulfilled");var r=Fo;Fo=null,hl=0,pl=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function hN(r,i){var l=[],u={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return r.then(function(){u.status="fulfilled",u.value=i;for(var f=0;f<l.length;f++)(0,l[f])(i)},function(f){for(u.status="rejected",u.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),u}var u0=L.S;L.S=function(r,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&dN(r,i),u0!==null&&u0(r,i)};var os=Y(null);function zh(){var r=os.current;return r!==null?r:Et.pooledCache}function Ic(r,i){i===null?ne(os,os.current):ne(os,i.pool)}function c0(){var r=zh();return r===null?null:{parent:Vt._currentValue,pool:r}}var Io=Error(a(460)),f0=Error(a(474)),zc=Error(a(542)),qh={then:function(){}};function d0(r){return r=r.status,r==="fulfilled"||r==="rejected"}function qc(){}function h0(r,i,l){switch(l=r[l],l===void 0?r.push(i):l!==i&&(i.then(qc,qc),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,m0(r),r;default:if(typeof i.status=="string")i.then(qc,qc);else{if(r=Et,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=i,r.status="pending",r.then(function(u){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=u}},function(u){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,m0(r),r}throw zo=i,Io}}var zo=null;function p0(){if(zo===null)throw Error(a(459));var r=zo;return zo=null,r}function m0(r){if(r===Io||r===zc)throw Error(a(483))}var Wa=!1;function Vh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ei(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ti(r,i,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(ht&2)!==0){var f=u.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),u.pending=i,i=Mc(r),t0(r,null,l),i}return kc(r,u,i,l),Mc(r)}function qo(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var u=i.lanes;u&=r.pendingLanes,l|=u,i.lanes=l,Xi(r,l)}}function Ph(r,i){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var E={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?f=m=E:m=m.next=E,l=l.next}while(l!==null);m===null?f=m=i:m=m.next=i}else f=m=i;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}var Gh=!1;function Vo(){if(Gh){var r=pl;if(r!==null)throw r}}function Ho(r,i,l,u){Gh=!1;var f=r.updateQueue;Wa=!1;var m=f.firstBaseUpdate,E=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var j=T,z=j.next;j.next=null,E===null?m=z:E.next=z,E=j;var K=r.alternate;K!==null&&(K=K.updateQueue,T=K.lastBaseUpdate,T!==E&&(T===null?K.firstBaseUpdate=z:T.next=z,K.lastBaseUpdate=j))}if(m!==null){var J=f.baseState;E=0,K=z=j=null,T=m;do{var H=T.lane&-536870913,P=H!==T.lane;if(P?(et&H)===H:(u&H)===H){H!==0&&H===hl&&(Gh=!0),K!==null&&(K=K.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Be=r,Me=T;H=i;var gt=l;switch(Me.tag){case 1:if(Be=Me.payload,typeof Be=="function"){J=Be.call(gt,J,H);break e}J=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Me.payload,H=typeof Be=="function"?Be.call(gt,J,H):Be,H==null)break e;J=v({},J,H);break e;case 2:Wa=!0}}H=T.callback,H!==null&&(r.flags|=64,P&&(r.flags|=8192),P=f.callbacks,P===null?f.callbacks=[H]:P.push(H))}else P={lane:H,tag:T.tag,payload:T.payload,callback:T.callback,next:null},K===null?(z=K=P,j=J):K=K.next=P,E|=H;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;P=T,T=P.next,P.next=null,f.lastBaseUpdate=P,f.shared.pending=null}}while(!0);K===null&&(j=J),f.baseState=j,f.firstBaseUpdate=z,f.lastBaseUpdate=K,m===null&&(f.shared.lanes=0),ui|=E,r.lanes=E,r.memoizedState=J}}function v0(r,i){if(typeof r!="function")throw Error(a(191,r));r.call(i)}function y0(r,i){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)v0(l[r],i)}var ml=Y(null),Vc=Y(0);function g0(r,i){r=xa,ne(Vc,r),ne(ml,i),xa=r|i.baseLanes}function Yh(){ne(Vc,xa),ne(ml,ml.current)}function Kh(){xa=Vc.current,ae(ml),ae(Vc)}var ni=0,Ge=null,vt=null,Ft=null,Hc=!1,vl=!1,us=!1,Pc=0,Po=0,yl=null,pN=0;function Lt(){throw Error(a(321))}function Qh(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!Dn(r[l],i[l]))return!1;return!0}function Xh(r,i,l,u,f,m){return ni=m,Ge=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=r===null||r.memoizedState===null?tb:nb,us=!1,m=l(u,f),us=!1,vl&&(m=S0(i,l,u,f)),b0(r),m}function b0(r){L.H=Zc;var i=vt!==null&&vt.next!==null;if(ni=0,Ft=vt=Ge=null,Hc=!1,Po=0,yl=null,i)throw Error(a(300));r===null||Yt||(r=r.dependencies,r!==null&&Bc(r)&&(Yt=!0))}function S0(r,i,l,u){Ge=r;var f=0;do{if(vl&&(yl=null),Po=0,vl=!1,25<=f)throw Error(a(301));if(f+=1,Ft=vt=null,r.updateQueue!=null){var m=r.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}L.H=EN,m=i(l,u)}while(vl);return m}function mN(){var r=L.H,i=r.useState()[0];return i=typeof i.then=="function"?Go(i):i,r=r.useState()[0],(vt!==null?vt.memoizedState:null)!==r&&(Ge.flags|=1024),i}function Zh(){var r=Pc!==0;return Pc=0,r}function Jh(r,i,l){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~l}function Wh(r){if(Hc){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Hc=!1}ni=0,Ft=vt=Ge=null,vl=!1,Po=Pc=0,yl=null}function xn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?Ge.memoizedState=Ft=r:Ft=Ft.next=r,Ft}function It(){if(vt===null){var r=Ge.alternate;r=r!==null?r.memoizedState:null}else r=vt.next;var i=Ft===null?Ge.memoizedState:Ft.next;if(i!==null)Ft=i,vt=r;else{if(r===null)throw Ge.alternate===null?Error(a(467)):Error(a(310));vt=r,r={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},Ft===null?Ge.memoizedState=Ft=r:Ft=Ft.next=r}return Ft}function ep(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Go(r){var i=Po;return Po+=1,yl===null&&(yl=[]),r=h0(yl,r,i),i=Ge,(Ft===null?i.memoizedState:Ft.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?tb:nb),r}function Gc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Go(r);if(r.$$typeof===D)return un(r)}throw Error(a(438,String(r)))}function tp(r){var i=null,l=Ge.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var u=Ge.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=ep(),Ge.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(r),u=0;u<r;u++)l[u]=he;return i.index++,l}function ya(r,i){return typeof i=="function"?i(r):i}function Yc(r){var i=It();return np(i,vt,r)}function np(r,i,l){var u=r.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var f=r.baseQueue,m=u.pending;if(m!==null){if(f!==null){var E=f.next;f.next=m.next,m.next=E}i.baseQueue=f=m,u.pending=null}if(m=r.baseState,f===null)r.memoizedState=m;else{i=f.next;var T=E=null,j=null,z=i,K=!1;do{var J=z.lane&-536870913;if(J!==z.lane?(et&J)===J:(ni&J)===J){var H=z.revertLane;if(H===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),J===hl&&(K=!0);else if((ni&H)===H){z=z.next,H===hl&&(K=!0);continue}else J={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},j===null?(T=j=J,E=m):j=j.next=J,Ge.lanes|=H,ui|=H;J=z.action,us&&l(m,J),m=z.hasEagerState?z.eagerState:l(m,J)}else H={lane:J,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},j===null?(T=j=H,E=m):j=j.next=H,Ge.lanes|=J,ui|=J;z=z.next}while(z!==null&&z!==i);if(j===null?E=m:j.next=T,!Dn(m,r.memoizedState)&&(Yt=!0,K&&(l=pl,l!==null)))throw l;r.memoizedState=m,r.baseState=E,r.baseQueue=j,u.lastRenderedState=m}return f===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function rp(r){var i=It(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=r;var u=l.dispatch,f=l.pending,m=i.memoizedState;if(f!==null){l.pending=null;var E=f=f.next;do m=r(m,E.action),E=E.next;while(E!==f);Dn(m,i.memoizedState)||(Yt=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),l.lastRenderedState=m}return[m,u]}function E0(r,i,l){var u=Ge,f=It(),m=ct;if(m){if(l===void 0)throw Error(a(407));l=l()}else l=i();var E=!Dn((vt||f).memoizedState,l);E&&(f.memoizedState=l,Yt=!0),f=f.queue;var T=O0.bind(null,u,f,r);if(Yo(2048,8,T,[r]),f.getSnapshot!==i||E||Ft!==null&&Ft.memoizedState.tag&1){if(u.flags|=2048,gl(9,Kc(),x0.bind(null,u,f,l,i),null),Et===null)throw Error(a(349));m||(ni&124)!==0||_0(u,i,l)}return l}function _0(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=Ge.updateQueue,i===null?(i=ep(),Ge.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function x0(r,i,l,u){i.value=l,i.getSnapshot=u,T0(i)&&w0(r)}function O0(r,i,l){return l(function(){T0(i)&&w0(r)})}function T0(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!Dn(r,l)}catch{return!0}}function w0(r){var i=ul(r,2);i!==null&&Ln(i,r,2)}function ap(r){var i=xn();if(typeof r=="function"){var l=r;if(r=l(),us){tt(!0);try{l()}finally{tt(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:r},i}function A0(r,i,l,u){return r.baseState=l,np(r,vt,typeof u=="function"?u:ya)}function vN(r,i,l,u,f){if(Xc(r))throw Error(a(485));if(r=i.action,r!==null){var m={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){m.listeners.push(E)}};L.T!==null?l(!0):m.isTransition=!1,u(m),l=i.pending,l===null?(m.next=i.pending=m,N0(i,m)):(m.next=l.next,i.pending=l.next=m)}}function N0(r,i){var l=i.action,u=i.payload,f=r.state;if(i.isTransition){var m=L.T,E={};L.T=E;try{var T=l(f,u),j=L.S;j!==null&&j(E,T),C0(r,i,T)}catch(z){ip(r,i,z)}finally{L.T=m}}else try{m=l(f,u),C0(r,i,m)}catch(z){ip(r,i,z)}}function C0(r,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){R0(r,i,u)},function(u){return ip(r,i,u)}):R0(r,i,l)}function R0(r,i,l){i.status="fulfilled",i.value=l,D0(i),r.state=l,i=r.pending,i!==null&&(l=i.next,l===i?r.pending=null:(l=l.next,i.next=l,N0(r,l)))}function ip(r,i,l){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,D0(i),i=i.next;while(i!==u)}r.action=null}function D0(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function j0(r,i){return i}function k0(r,i){if(ct){var l=Et.formState;if(l!==null){e:{var u=Ge;if(ct){if(Mt){t:{for(var f=Mt,m=Ir;f.nodeType!==8;){if(!m){f=null;break t}if(f=xr(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Mt=xr(f.nextSibling),u=f.data==="F!";break e}}is(u)}u=!1}u&&(i=l[0])}}return l=xn(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:j0,lastRenderedState:i},l.queue=u,l=J0.bind(null,Ge,u),u.dispatch=l,u=ap(!1),m=cp.bind(null,Ge,!1,u.queue),u=xn(),f={state:i,dispatch:null,action:r,pending:null},u.queue=f,l=vN.bind(null,Ge,f,m,l),f.dispatch=l,u.memoizedState=r,[i,l,!1]}function M0(r){var i=It();return U0(i,vt,r)}function U0(r,i,l){if(i=np(r,i,j0)[0],r=Yc(ya)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Go(i)}catch(E){throw E===Io?zc:E}else u=i;i=It();var f=i.queue,m=f.dispatch;return l!==i.memoizedState&&(Ge.flags|=2048,gl(9,Kc(),yN.bind(null,f,l),null)),[u,m,r]}function yN(r,i){r.action=i}function $0(r){var i=It(),l=vt;if(l!==null)return U0(i,l,r);It(),i=i.memoizedState,l=It();var u=l.queue.dispatch;return l.memoizedState=r,[i,u,!1]}function gl(r,i,l,u){return r={tag:r,create:l,deps:u,inst:i,next:null},i=Ge.updateQueue,i===null&&(i=ep(),Ge.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,i.lastEffect=r),r}function Kc(){return{destroy:void 0,resource:void 0}}function L0(){return It().memoizedState}function Qc(r,i,l,u){var f=xn();u=u===void 0?null:u,Ge.flags|=r,f.memoizedState=gl(1|i,Kc(),l,u)}function Yo(r,i,l,u){var f=It();u=u===void 0?null:u;var m=f.memoizedState.inst;vt!==null&&u!==null&&Qh(u,vt.memoizedState.deps)?f.memoizedState=gl(i,m,l,u):(Ge.flags|=r,f.memoizedState=gl(1|i,m,l,u))}function B0(r,i){Qc(8390656,8,r,i)}function F0(r,i){Yo(2048,8,r,i)}function I0(r,i){return Yo(4,2,r,i)}function z0(r,i){return Yo(4,4,r,i)}function q0(r,i){if(typeof i=="function"){r=r();var l=i(r);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function V0(r,i,l){l=l!=null?l.concat([r]):null,Yo(4,4,q0.bind(null,i,r),l)}function sp(){}function H0(r,i){var l=It();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&Qh(i,u[1])?u[0]:(l.memoizedState=[r,i],r)}function P0(r,i){var l=It();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&Qh(i,u[1]))return u[0];if(u=r(),us){tt(!0);try{r()}finally{tt(!1)}}return l.memoizedState=[u,i],u}function lp(r,i,l){return l===void 0||(ni&1073741824)!==0?r.memoizedState=i:(r.memoizedState=l,r=Kb(),Ge.lanes|=r,ui|=r,l)}function G0(r,i,l,u){return Dn(l,i)?l:ml.current!==null?(r=lp(r,l,u),Dn(r,i)||(Yt=!0),r):(ni&42)===0?(Yt=!0,r.memoizedState=l):(r=Kb(),Ge.lanes|=r,ui|=r,i)}function Y0(r,i,l,u,f){var m=te.p;te.p=m!==0&&8>m?m:8;var E=L.T,T={};L.T=T,cp(r,!1,i,l);try{var j=f(),z=L.S;if(z!==null&&z(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var K=hN(j,u);Ko(r,i,K,$n(r))}else Ko(r,i,u,$n(r))}catch(J){Ko(r,i,{then:function(){},status:"rejected",reason:J},$n())}finally{te.p=m,L.T=E}}function gN(){}function op(r,i,l,u){if(r.tag!==5)throw Error(a(476));var f=K0(r).queue;Y0(r,f,i,le,l===null?gN:function(){return Q0(r),l(u)})}function K0(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:le},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:l},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function Q0(r){var i=K0(r).next.queue;Ko(r,i,{},$n())}function up(){return un(du)}function X0(){return It().memoizedState}function Z0(){return It().memoizedState}function bN(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var l=$n();r=ei(l);var u=ti(i,r,l);u!==null&&(Ln(u,i,l),qo(u,i,l)),i={cache:Fh()},r.payload=i;return}i=i.return}}function SN(r,i,l){var u=$n();l={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Xc(r)?W0(i,l):(l=Ch(r,i,l,u),l!==null&&(Ln(l,r,u),eb(l,i,u)))}function J0(r,i,l){var u=$n();Ko(r,i,l,u)}function Ko(r,i,l,u){var f={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xc(r))W0(i,f);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var E=i.lastRenderedState,T=m(E,l);if(f.hasEagerState=!0,f.eagerState=T,Dn(T,E))return kc(r,i,f,0),Et===null&&jc(),!1}catch{}finally{}if(l=Ch(r,i,f,u),l!==null)return Ln(l,r,u),eb(l,i,u),!0}return!1}function cp(r,i,l,u){if(u={lane:2,revertLane:qp(),action:u,hasEagerState:!1,eagerState:null,next:null},Xc(r)){if(i)throw Error(a(479))}else i=Ch(r,l,u,2),i!==null&&Ln(i,r,2)}function Xc(r){var i=r.alternate;return r===Ge||i!==null&&i===Ge}function W0(r,i){vl=Hc=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function eb(r,i,l){if((l&4194048)!==0){var u=i.lanes;u&=r.pendingLanes,l|=u,i.lanes=l,Xi(r,l)}}var Zc={readContext:un,use:Gc,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt},tb={readContext:un,use:Gc,useCallback:function(r,i){return xn().memoizedState=[r,i===void 0?null:i],r},useContext:un,useEffect:B0,useImperativeHandle:function(r,i,l){l=l!=null?l.concat([r]):null,Qc(4194308,4,q0.bind(null,i,r),l)},useLayoutEffect:function(r,i){return Qc(4194308,4,r,i)},useInsertionEffect:function(r,i){Qc(4,2,r,i)},useMemo:function(r,i){var l=xn();i=i===void 0?null:i;var u=r();if(us){tt(!0);try{r()}finally{tt(!1)}}return l.memoizedState=[u,i],u},useReducer:function(r,i,l){var u=xn();if(l!==void 0){var f=l(i);if(us){tt(!0);try{l(i)}finally{tt(!1)}}}else f=i;return u.memoizedState=u.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},u.queue=r,r=r.dispatch=SN.bind(null,Ge,r),[u.memoizedState,r]},useRef:function(r){var i=xn();return r={current:r},i.memoizedState=r},useState:function(r){r=ap(r);var i=r.queue,l=J0.bind(null,Ge,i);return i.dispatch=l,[r.memoizedState,l]},useDebugValue:sp,useDeferredValue:function(r,i){var l=xn();return lp(l,r,i)},useTransition:function(){var r=ap(!1);return r=Y0.bind(null,Ge,r.queue,!0,!1),xn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,l){var u=Ge,f=xn();if(ct){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),Et===null)throw Error(a(349));(et&124)!==0||_0(u,i,l)}f.memoizedState=l;var m={value:l,getSnapshot:i};return f.queue=m,B0(O0.bind(null,u,m,r),[r]),u.flags|=2048,gl(9,Kc(),x0.bind(null,u,m,l,i),null),l},useId:function(){var r=xn(),i=Et.identifierPrefix;if(ct){var l=pa,u=ha;l=(u&~(1<<32-bt(u)-1)).toString(32)+l,i="«"+i+"R"+l,l=Pc++,0<l&&(i+="H"+l.toString(32)),i+="»"}else l=pN++,i="«"+i+"r"+l.toString(32)+"»";return r.memoizedState=i},useHostTransitionStatus:up,useFormState:k0,useActionState:k0,useOptimistic:function(r){var i=xn();i.memoizedState=i.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=cp.bind(null,Ge,!0,l),l.dispatch=i,[r,i]},useMemoCache:tp,useCacheRefresh:function(){return xn().memoizedState=bN.bind(null,Ge)}},nb={readContext:un,use:Gc,useCallback:H0,useContext:un,useEffect:F0,useImperativeHandle:V0,useInsertionEffect:I0,useLayoutEffect:z0,useMemo:P0,useReducer:Yc,useRef:L0,useState:function(){return Yc(ya)},useDebugValue:sp,useDeferredValue:function(r,i){var l=It();return G0(l,vt.memoizedState,r,i)},useTransition:function(){var r=Yc(ya)[0],i=It().memoizedState;return[typeof r=="boolean"?r:Go(r),i]},useSyncExternalStore:E0,useId:X0,useHostTransitionStatus:up,useFormState:M0,useActionState:M0,useOptimistic:function(r,i){var l=It();return A0(l,vt,r,i)},useMemoCache:tp,useCacheRefresh:Z0},EN={readContext:un,use:Gc,useCallback:H0,useContext:un,useEffect:F0,useImperativeHandle:V0,useInsertionEffect:I0,useLayoutEffect:z0,useMemo:P0,useReducer:rp,useRef:L0,useState:function(){return rp(ya)},useDebugValue:sp,useDeferredValue:function(r,i){var l=It();return vt===null?lp(l,r,i):G0(l,vt.memoizedState,r,i)},useTransition:function(){var r=rp(ya)[0],i=It().memoizedState;return[typeof r=="boolean"?r:Go(r),i]},useSyncExternalStore:E0,useId:X0,useHostTransitionStatus:up,useFormState:$0,useActionState:$0,useOptimistic:function(r,i){var l=It();return vt!==null?A0(l,vt,r,i):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:tp,useCacheRefresh:Z0},bl=null,Qo=0;function Jc(r){var i=Qo;return Qo+=1,bl===null&&(bl=[]),h0(bl,r,i)}function Xo(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Wc(r,i){throw i.$$typeof===b?Error(a(525)):(r=Object.prototype.toString.call(i),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function rb(r){var i=r._init;return i(r._payload)}function ab(r){function i(B,$){if(r){var I=B.deletions;I===null?(B.deletions=[$],B.flags|=16):I.push($)}}function l(B,$){if(!r)return null;for(;$!==null;)i(B,$),$=$.sibling;return null}function u(B){for(var $=new Map;B!==null;)B.key!==null?$.set(B.key,B):$.set(B.index,B),B=B.sibling;return $}function f(B,$){return B=da(B,$),B.index=0,B.sibling=null,B}function m(B,$,I){return B.index=I,r?(I=B.alternate,I!==null?(I=I.index,I<$?(B.flags|=67108866,$):I):(B.flags|=67108866,$)):(B.flags|=1048576,$)}function E(B){return r&&B.alternate===null&&(B.flags|=67108866),B}function T(B,$,I,X){return $===null||$.tag!==6?($=Dh(I,B.mode,X),$.return=B,$):($=f($,I),$.return=B,$)}function j(B,$,I,X){var ge=I.type;return ge===x?K(B,$,I.props.children,X,I.key):$!==null&&($.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===re&&rb(ge)===$.type)?($=f($,I.props),Xo($,I),$.return=B,$):($=Uc(I.type,I.key,I.props,null,B.mode,X),Xo($,I),$.return=B,$)}function z(B,$,I,X){return $===null||$.tag!==4||$.stateNode.containerInfo!==I.containerInfo||$.stateNode.implementation!==I.implementation?($=jh(I,B.mode,X),$.return=B,$):($=f($,I.children||[]),$.return=B,$)}function K(B,$,I,X,ge){return $===null||$.tag!==7?($=ts(I,B.mode,X,ge),$.return=B,$):($=f($,I),$.return=B,$)}function J(B,$,I){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Dh(""+$,B.mode,I),$.return=B,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case y:return I=Uc($.type,$.key,$.props,null,B.mode,I),Xo(I,$),I.return=B,I;case _:return $=jh($,B.mode,I),$.return=B,$;case re:var X=$._init;return $=X($._payload),J(B,$,I)}if(Te($)||Re($))return $=ts($,B.mode,I,null),$.return=B,$;if(typeof $.then=="function")return J(B,Jc($),I);if($.$$typeof===D)return J(B,Fc(B,$),I);Wc(B,$)}return null}function H(B,$,I,X){var ge=$!==null?$.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return ge!==null?null:T(B,$,""+I,X);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case y:return I.key===ge?j(B,$,I,X):null;case _:return I.key===ge?z(B,$,I,X):null;case re:return ge=I._init,I=ge(I._payload),H(B,$,I,X)}if(Te(I)||Re(I))return ge!==null?null:K(B,$,I,X,null);if(typeof I.then=="function")return H(B,$,Jc(I),X);if(I.$$typeof===D)return H(B,$,Fc(B,I),X);Wc(B,I)}return null}function P(B,$,I,X,ge){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return B=B.get(I)||null,T($,B,""+X,ge);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case y:return B=B.get(X.key===null?I:X.key)||null,j($,B,X,ge);case _:return B=B.get(X.key===null?I:X.key)||null,z($,B,X,ge);case re:var Ke=X._init;return X=Ke(X._payload),P(B,$,I,X,ge)}if(Te(X)||Re(X))return B=B.get(I)||null,K($,B,X,ge,null);if(typeof X.then=="function")return P(B,$,I,Jc(X),ge);if(X.$$typeof===D)return P(B,$,I,Fc($,X),ge);Wc($,X)}return null}function Be(B,$,I,X){for(var ge=null,Ke=null,Ne=$,Ue=$=0,Qt=null;Ne!==null&&Ue<I.length;Ue++){Ne.index>Ue?(Qt=Ne,Ne=null):Qt=Ne.sibling;var st=H(B,Ne,I[Ue],X);if(st===null){Ne===null&&(Ne=Qt);break}r&&Ne&&st.alternate===null&&i(B,Ne),$=m(st,$,Ue),Ke===null?ge=st:Ke.sibling=st,Ke=st,Ne=Qt}if(Ue===I.length)return l(B,Ne),ct&&rs(B,Ue),ge;if(Ne===null){for(;Ue<I.length;Ue++)Ne=J(B,I[Ue],X),Ne!==null&&($=m(Ne,$,Ue),Ke===null?ge=Ne:Ke.sibling=Ne,Ke=Ne);return ct&&rs(B,Ue),ge}for(Ne=u(Ne);Ue<I.length;Ue++)Qt=P(Ne,B,Ue,I[Ue],X),Qt!==null&&(r&&Qt.alternate!==null&&Ne.delete(Qt.key===null?Ue:Qt.key),$=m(Qt,$,Ue),Ke===null?ge=Qt:Ke.sibling=Qt,Ke=Qt);return r&&Ne.forEach(function(gi){return i(B,gi)}),ct&&rs(B,Ue),ge}function Me(B,$,I,X){if(I==null)throw Error(a(151));for(var ge=null,Ke=null,Ne=$,Ue=$=0,Qt=null,st=I.next();Ne!==null&&!st.done;Ue++,st=I.next()){Ne.index>Ue?(Qt=Ne,Ne=null):Qt=Ne.sibling;var gi=H(B,Ne,st.value,X);if(gi===null){Ne===null&&(Ne=Qt);break}r&&Ne&&gi.alternate===null&&i(B,Ne),$=m(gi,$,Ue),Ke===null?ge=gi:Ke.sibling=gi,Ke=gi,Ne=Qt}if(st.done)return l(B,Ne),ct&&rs(B,Ue),ge;if(Ne===null){for(;!st.done;Ue++,st=I.next())st=J(B,st.value,X),st!==null&&($=m(st,$,Ue),Ke===null?ge=st:Ke.sibling=st,Ke=st);return ct&&rs(B,Ue),ge}for(Ne=u(Ne);!st.done;Ue++,st=I.next())st=P(Ne,B,Ue,st.value,X),st!==null&&(r&&st.alternate!==null&&Ne.delete(st.key===null?Ue:st.key),$=m(st,$,Ue),Ke===null?ge=st:Ke.sibling=st,Ke=st);return r&&Ne.forEach(function(_C){return i(B,_C)}),ct&&rs(B,Ue),ge}function gt(B,$,I,X){if(typeof I=="object"&&I!==null&&I.type===x&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case y:e:{for(var ge=I.key;$!==null;){if($.key===ge){if(ge=I.type,ge===x){if($.tag===7){l(B,$.sibling),X=f($,I.props.children),X.return=B,B=X;break e}}else if($.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===re&&rb(ge)===$.type){l(B,$.sibling),X=f($,I.props),Xo(X,I),X.return=B,B=X;break e}l(B,$);break}else i(B,$);$=$.sibling}I.type===x?(X=ts(I.props.children,B.mode,X,I.key),X.return=B,B=X):(X=Uc(I.type,I.key,I.props,null,B.mode,X),Xo(X,I),X.return=B,B=X)}return E(B);case _:e:{for(ge=I.key;$!==null;){if($.key===ge)if($.tag===4&&$.stateNode.containerInfo===I.containerInfo&&$.stateNode.implementation===I.implementation){l(B,$.sibling),X=f($,I.children||[]),X.return=B,B=X;break e}else{l(B,$);break}else i(B,$);$=$.sibling}X=jh(I,B.mode,X),X.return=B,B=X}return E(B);case re:return ge=I._init,I=ge(I._payload),gt(B,$,I,X)}if(Te(I))return Be(B,$,I,X);if(Re(I)){if(ge=Re(I),typeof ge!="function")throw Error(a(150));return I=ge.call(I),Me(B,$,I,X)}if(typeof I.then=="function")return gt(B,$,Jc(I),X);if(I.$$typeof===D)return gt(B,$,Fc(B,I),X);Wc(B,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,$!==null&&$.tag===6?(l(B,$.sibling),X=f($,I),X.return=B,B=X):(l(B,$),X=Dh(I,B.mode,X),X.return=B,B=X),E(B)):l(B,$)}return function(B,$,I,X){try{Qo=0;var ge=gt(B,$,I,X);return bl=null,ge}catch(Ne){if(Ne===Io||Ne===zc)throw Ne;var Ke=jn(29,Ne,null,B.mode);return Ke.lanes=X,Ke.return=B,Ke}finally{}}}var Sl=ab(!0),ib=ab(!1),ar=Y(null),zr=null;function ri(r){var i=r.alternate;ne(Ht,Ht.current&1),ne(ar,r),zr===null&&(i===null||ml.current!==null||i.memoizedState!==null)&&(zr=r)}function sb(r){if(r.tag===22){if(ne(Ht,Ht.current),ne(ar,r),zr===null){var i=r.alternate;i!==null&&i.memoizedState!==null&&(zr=r)}}else ai()}function ai(){ne(Ht,Ht.current),ne(ar,ar.current)}function ga(r){ae(ar),zr===r&&(zr=null),ae(Ht)}var Ht=Y(0);function ef(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||em(l)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function fp(r,i,l,u){i=r.memoizedState,l=l(u,i),l=l==null?i:v({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var dp={enqueueSetState:function(r,i,l){r=r._reactInternals;var u=$n(),f=ei(u);f.payload=i,l!=null&&(f.callback=l),i=ti(r,f,u),i!==null&&(Ln(i,r,u),qo(i,r,u))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var u=$n(),f=ei(u);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=ti(r,f,u),i!==null&&(Ln(i,r,u),qo(i,r,u))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=$n(),u=ei(l);u.tag=2,i!=null&&(u.callback=i),i=ti(r,u,l),i!==null&&(Ln(i,r,l),qo(i,r,l))}};function lb(r,i,l,u,f,m,E){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,m,E):i.prototype&&i.prototype.isPureReactComponent?!jo(l,u)||!jo(f,m):!0}function ob(r,i,l,u){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==r&&dp.enqueueReplaceState(i,i.state,null)}function cs(r,i){var l=i;if("ref"in i){l={};for(var u in i)u!=="ref"&&(l[u]=i[u])}if(r=r.defaultProps){l===i&&(l=v({},l));for(var f in r)l[f]===void 0&&(l[f]=r[f])}return l}var tf=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function ub(r){tf(r)}function cb(r){console.error(r)}function fb(r){tf(r)}function nf(r,i){try{var l=r.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function db(r,i,l){try{var u=r.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function hp(r,i,l){return l=ei(l),l.tag=3,l.payload={element:null},l.callback=function(){nf(r,i)},l}function hb(r){return r=ei(r),r.tag=3,r}function pb(r,i,l,u){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var m=u.value;r.payload=function(){return f(m)},r.callback=function(){db(i,l,u)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(r.callback=function(){db(i,l,u),typeof f!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})})}function _N(r,i,l,u,f){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&Lo(i,l,f,!0),l=ar.current,l!==null){switch(l.tag){case 13:return zr===null?Lp():l.alternate===null&&Ut===0&&(Ut=3),l.flags&=-257,l.flags|=65536,l.lanes=f,u===qh?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),Fp(r,u,f)),!1;case 22:return l.flags|=65536,u===qh?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([u]):l.add(u)),Fp(r,u,f)),!1}throw Error(a(435,l.tag))}return Fp(r,u,f),Lp(),!1}if(ct)return i=ar.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,u!==Uh&&(r=Error(a(422),{cause:u}),$o(er(r,l)))):(u!==Uh&&(i=Error(a(423),{cause:u}),$o(er(i,l))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,u=er(u,l),f=hp(r.stateNode,u,f),Ph(r,f),Ut!==4&&(Ut=2)),!1;var m=Error(a(520),{cause:u});if(m=er(m,l),ru===null?ru=[m]:ru.push(m),Ut!==4&&(Ut=2),i===null)return!0;u=er(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,r=f&-f,l.lanes|=r,r=hp(l.stateNode,u,r),Ph(l,r),!1;case 1:if(i=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ci===null||!ci.has(m))))return l.flags|=65536,f&=-f,l.lanes|=f,f=hb(f),pb(f,r,l,u),Ph(l,f),!1}l=l.return}while(l!==null);return!1}var mb=Error(a(461)),Yt=!1;function tn(r,i,l,u){i.child=r===null?ib(i,null,l,u):Sl(i,r.child,l,u)}function vb(r,i,l,u,f){l=l.render;var m=i.ref;if("ref"in u){var E={};for(var T in u)T!=="ref"&&(E[T]=u[T])}else E=u;return ls(i),u=Xh(r,i,l,E,m,f),T=Zh(),r!==null&&!Yt?(Jh(r,i,f),ba(r,i,f)):(ct&&T&&kh(i),i.flags|=1,tn(r,i,u,f),i.child)}function yb(r,i,l,u,f){if(r===null){var m=l.type;return typeof m=="function"&&!Rh(m)&&m.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=m,gb(r,i,m,u,f)):(r=Uc(l.type,null,u,i,i.mode,f),r.ref=i.ref,r.return=i,i.child=r)}if(m=r.child,!Ep(r,f)){var E=m.memoizedProps;if(l=l.compare,l=l!==null?l:jo,l(E,u)&&r.ref===i.ref)return ba(r,i,f)}return i.flags|=1,r=da(m,u),r.ref=i.ref,r.return=i,i.child=r}function gb(r,i,l,u,f){if(r!==null){var m=r.memoizedProps;if(jo(m,u)&&r.ref===i.ref)if(Yt=!1,i.pendingProps=u=m,Ep(r,f))(r.flags&131072)!==0&&(Yt=!0);else return i.lanes=r.lanes,ba(r,i,f)}return pp(r,i,l,u,f)}function bb(r,i,l){var u=i.pendingProps,f=u.children,m=r!==null?r.memoizedState:null;if(u.mode==="hidden"){if((i.flags&128)!==0){if(u=m!==null?m.baseLanes|l:l,r!==null){for(f=i.child=r.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;i.childLanes=m&~u}else i.childLanes=0,i.child=null;return Sb(r,i,u,l)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&Ic(i,m!==null?m.cachePool:null),m!==null?g0(i,m):Yh(),sb(i);else return i.lanes=i.childLanes=536870912,Sb(r,i,m!==null?m.baseLanes|l:l,l)}else m!==null?(Ic(i,m.cachePool),g0(i,m),ai(),i.memoizedState=null):(r!==null&&Ic(i,null),Yh(),ai());return tn(r,i,f,l),i.child}function Sb(r,i,l,u){var f=zh();return f=f===null?null:{parent:Vt._currentValue,pool:f},i.memoizedState={baseLanes:l,cachePool:f},r!==null&&Ic(i,null),Yh(),sb(i),r!==null&&Lo(r,i,u,!0),null}function rf(r,i){var l=i.ref;if(l===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(r===null||r.ref!==l)&&(i.flags|=4194816)}}function pp(r,i,l,u,f){return ls(i),l=Xh(r,i,l,u,void 0,f),u=Zh(),r!==null&&!Yt?(Jh(r,i,f),ba(r,i,f)):(ct&&u&&kh(i),i.flags|=1,tn(r,i,l,f),i.child)}function Eb(r,i,l,u,f,m){return ls(i),i.updateQueue=null,l=S0(i,u,l,f),b0(r),u=Zh(),r!==null&&!Yt?(Jh(r,i,m),ba(r,i,m)):(ct&&u&&kh(i),i.flags|=1,tn(r,i,l,m),i.child)}function _b(r,i,l,u,f){if(ls(i),i.stateNode===null){var m=cl,E=l.contextType;typeof E=="object"&&E!==null&&(m=un(E)),m=new l(u,m),i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=dp,i.stateNode=m,m._reactInternals=i,m=i.stateNode,m.props=u,m.state=i.memoizedState,m.refs={},Vh(i),E=l.contextType,m.context=typeof E=="object"&&E!==null?un(E):cl,m.state=i.memoizedState,E=l.getDerivedStateFromProps,typeof E=="function"&&(fp(i,l,E,u),m.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(E=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),E!==m.state&&dp.enqueueReplaceState(m,m.state,null),Ho(i,u,m,f),Vo(),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(r===null){m=i.stateNode;var T=i.memoizedProps,j=cs(l,T);m.props=j;var z=m.context,K=l.contextType;E=cl,typeof K=="object"&&K!==null&&(E=un(K));var J=l.getDerivedStateFromProps;K=typeof J=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=i.pendingProps!==T,K||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||z!==E)&&ob(i,m,u,E),Wa=!1;var H=i.memoizedState;m.state=H,Ho(i,u,m,f),Vo(),z=i.memoizedState,T||H!==z||Wa?(typeof J=="function"&&(fp(i,l,J,u),z=i.memoizedState),(j=Wa||lb(i,l,j,u,H,z,E))?(K||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"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=z),m.props=u,m.state=z,m.context=E,u=j):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{m=i.stateNode,Hh(r,i),E=i.memoizedProps,K=cs(l,E),m.props=K,J=i.pendingProps,H=m.context,z=l.contextType,j=cl,typeof z=="object"&&z!==null&&(j=un(z)),T=l.getDerivedStateFromProps,(z=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E!==J||H!==j)&&ob(i,m,u,j),Wa=!1,H=i.memoizedState,m.state=H,Ho(i,u,m,f),Vo();var P=i.memoizedState;E!==J||H!==P||Wa||r!==null&&r.dependencies!==null&&Bc(r.dependencies)?(typeof T=="function"&&(fp(i,l,T,u),P=i.memoizedState),(K=Wa||lb(i,l,K,u,H,P,j)||r!==null&&r.dependencies!==null&&Bc(r.dependencies))?(z||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,P,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,P,j)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=P),m.props=u,m.state=P,m.context=j,u=K):(typeof m.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),u=!1)}return m=u,rf(r,i),u=(i.flags&128)!==0,m||u?(m=i.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:m.render(),i.flags|=1,r!==null&&u?(i.child=Sl(i,r.child,null,f),i.child=Sl(i,null,l,f)):tn(r,i,l,f),i.memoizedState=m.state,r=i.child):r=ba(r,i,f),r}function xb(r,i,l,u){return Uo(),i.flags|=256,tn(r,i,l,u),i.child}var mp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vp(r){return{baseLanes:r,cachePool:c0()}}function yp(r,i,l){return r=r!==null?r.childLanes&~l:0,i&&(r|=ir),r}function Ob(r,i,l){var u=i.pendingProps,f=!1,m=(i.flags&128)!==0,E;if((E=m)||(E=r!==null&&r.memoizedState===null?!1:(Ht.current&2)!==0),E&&(f=!0,i.flags&=-129),E=(i.flags&32)!==0,i.flags&=-33,r===null){if(ct){if(f?ri(i):ai(),ct){var T=Mt,j;if(j=T){e:{for(j=T,T=Ir;j.nodeType!==8;){if(!T){T=null;break e}if(j=xr(j.nextSibling),j===null){T=null;break e}}T=j}T!==null?(i.memoizedState={dehydrated:T,treeContext:ns!==null?{id:ha,overflow:pa}:null,retryLane:536870912,hydrationErrors:null},j=jn(18,null,null,0),j.stateNode=T,j.return=i,i.child=j,mn=i,Mt=null,j=!0):j=!1}j||is(i)}if(T=i.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return em(T)?i.lanes=32:i.lanes=536870912,null;ga(i)}return T=u.children,u=u.fallback,f?(ai(),f=i.mode,T=af({mode:"hidden",children:T},f),u=ts(u,f,l,null),T.return=i,u.return=i,T.sibling=u,i.child=T,f=i.child,f.memoizedState=vp(l),f.childLanes=yp(r,E,l),i.memoizedState=mp,u):(ri(i),gp(i,T))}if(j=r.memoizedState,j!==null&&(T=j.dehydrated,T!==null)){if(m)i.flags&256?(ri(i),i.flags&=-257,i=bp(r,i,l)):i.memoizedState!==null?(ai(),i.child=r.child,i.flags|=128,i=null):(ai(),f=u.fallback,T=i.mode,u=af({mode:"visible",children:u.children},T),f=ts(f,T,l,null),f.flags|=2,u.return=i,f.return=i,u.sibling=f,i.child=u,Sl(i,r.child,null,l),u=i.child,u.memoizedState=vp(l),u.childLanes=yp(r,E,l),i.memoizedState=mp,i=f);else if(ri(i),em(T)){if(E=T.nextSibling&&T.nextSibling.dataset,E)var z=E.dgst;E=z,u=Error(a(419)),u.stack="",u.digest=E,$o({value:u,source:null,stack:null}),i=bp(r,i,l)}else if(Yt||Lo(r,i,l,!1),E=(l&r.childLanes)!==0,Yt||E){if(E=Et,E!==null&&(u=l&-l,u=(u&42)!==0?1:Eo(u),u=(u&(E.suspendedLanes|l))!==0?0:u,u!==0&&u!==j.retryLane))throw j.retryLane=u,ul(r,u),Ln(E,r,u),mb;T.data==="$?"||Lp(),i=bp(r,i,l)}else T.data==="$?"?(i.flags|=192,i.child=r.child,i=null):(r=j.treeContext,Mt=xr(T.nextSibling),mn=i,ct=!0,as=null,Ir=!1,r!==null&&(nr[rr++]=ha,nr[rr++]=pa,nr[rr++]=ns,ha=r.id,pa=r.overflow,ns=i),i=gp(i,u.children),i.flags|=4096);return i}return f?(ai(),f=u.fallback,T=i.mode,j=r.child,z=j.sibling,u=da(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,z!==null?f=da(z,f):(f=ts(f,T,l,null),f.flags|=2),f.return=i,u.return=i,u.sibling=f,i.child=u,u=f,f=i.child,T=r.child.memoizedState,T===null?T=vp(l):(j=T.cachePool,j!==null?(z=Vt._currentValue,j=j.parent!==z?{parent:z,pool:z}:j):j=c0(),T={baseLanes:T.baseLanes|l,cachePool:j}),f.memoizedState=T,f.childLanes=yp(r,E,l),i.memoizedState=mp,u):(ri(i),l=r.child,r=l.sibling,l=da(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,r!==null&&(E=i.deletions,E===null?(i.deletions=[r],i.flags|=16):E.push(r)),i.child=l,i.memoizedState=null,l)}function gp(r,i){return i=af({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function af(r,i){return r=jn(22,r,null,i),r.lanes=0,r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function bp(r,i,l){return Sl(i,r.child,null,l),r=gp(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function Tb(r,i,l){r.lanes|=i;var u=r.alternate;u!==null&&(u.lanes|=i),Lh(r.return,i,l)}function Sp(r,i,l,u,f){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=l,m.tailMode=f)}function wb(r,i,l){var u=i.pendingProps,f=u.revealOrder,m=u.tail;if(tn(r,i,u.children,l),u=Ht.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Tb(r,l,i);else if(r.tag===19)Tb(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}u&=1}switch(ne(Ht,u),f){case"forwards":for(l=i.child,f=null;l!==null;)r=l.alternate,r!==null&&ef(r)===null&&(f=l),l=l.sibling;l=f,l===null?(f=i.child,i.child=null):(f=l.sibling,l.sibling=null),Sp(i,!1,f,l,m);break;case"backwards":for(l=null,f=i.child,i.child=null;f!==null;){if(r=f.alternate,r!==null&&ef(r)===null){i.child=f;break}r=f.sibling,f.sibling=l,l=f,f=r}Sp(i,!0,l,null,m);break;case"together":Sp(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ba(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),ui|=i.lanes,(l&i.childLanes)===0)if(r!==null){if(Lo(r,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(a(153));if(i.child!==null){for(r=i.child,l=da(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=da(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function Ep(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Bc(r)))}function xN(r,i,l){switch(i.tag){case 3:qe(i,i.stateNode.containerInfo),Ja(i,Vt,r.memoizedState.cache),Uo();break;case 27:case 5:ut(i);break;case 4:qe(i,i.stateNode.containerInfo);break;case 10:Ja(i,i.type,i.memoizedProps.value);break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(ri(i),i.flags|=128,null):(l&i.child.childLanes)!==0?Ob(r,i,l):(ri(i),r=ba(r,i,l),r!==null?r.sibling:null);ri(i);break;case 19:var f=(r.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(Lo(r,i,l,!1),u=(l&i.childLanes)!==0),f){if(u)return wb(r,i,l);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ne(Ht,Ht.current),u)break;return null;case 22:case 23:return i.lanes=0,bb(r,i,l);case 24:Ja(i,Vt,r.memoizedState.cache)}return ba(r,i,l)}function Ab(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps)Yt=!0;else{if(!Ep(r,l)&&(i.flags&128)===0)return Yt=!1,xN(r,i,l);Yt=(r.flags&131072)!==0}else Yt=!1,ct&&(i.flags&1048576)!==0&&r0(i,Lc,i.index);switch(i.lanes=0,i.tag){case 16:e:{r=i.pendingProps;var u=i.elementType,f=u._init;if(u=f(u._payload),i.type=u,typeof u=="function")Rh(u)?(r=cs(u,r),i.tag=1,i=_b(null,i,u,r,l)):(i.tag=0,i=pp(null,i,u,r,l));else{if(u!=null){if(f=u.$$typeof,f===U){i.tag=11,i=vb(null,i,u,r,l);break e}else if(f===q){i.tag=14,i=yb(null,i,u,r,l);break e}}throw i=xe(u)||u,Error(a(306,i,""))}}return i;case 0:return pp(r,i,i.type,i.pendingProps,l);case 1:return u=i.type,f=cs(u,i.pendingProps),_b(r,i,u,f,l);case 3:e:{if(qe(i,i.stateNode.containerInfo),r===null)throw Error(a(387));u=i.pendingProps;var m=i.memoizedState;f=m.element,Hh(r,i),Ho(i,u,null,l);var E=i.memoizedState;if(u=E.cache,Ja(i,Vt,u),u!==m.cache&&Bh(i,[Vt],l,!0),Vo(),u=E.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:E.cache},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){i=xb(r,i,u,l);break e}else if(u!==f){f=er(Error(a(424)),i),$o(f),i=xb(r,i,u,l);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Mt=xr(r.firstChild),mn=i,ct=!0,as=null,Ir=!0,l=ib(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Uo(),u===f){i=ba(r,i,l);break e}tn(r,i,u,l)}i=i.child}return i;case 26:return rf(r,i),r===null?(l=DS(i.type,null,i.pendingProps,null))?i.memoizedState=l:ct||(l=i.type,r=i.pendingProps,u=bf(me.current).createElement(l),u[ee]=i,u[oe]=r,rn(u,l,r),it(u),i.stateNode=u):i.memoizedState=DS(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return ut(i),r===null&&ct&&(u=i.stateNode=NS(i.type,i.pendingProps,me.current),mn=i,Ir=!0,f=Mt,hi(i.type)?(tm=f,Mt=xr(u.firstChild)):Mt=f),tn(r,i,i.pendingProps.children,l),rf(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&ct&&((f=u=Mt)&&(u=ZN(u,i.type,i.pendingProps,Ir),u!==null?(i.stateNode=u,mn=i,Mt=xr(u.firstChild),Ir=!1,f=!0):f=!1),f||is(i)),ut(i),f=i.type,m=i.pendingProps,E=r!==null?r.memoizedProps:null,u=m.children,Zp(f,m)?u=null:E!==null&&Zp(f,E)&&(i.flags|=32),i.memoizedState!==null&&(f=Xh(r,i,mN,null,null,l),du._currentValue=f),rf(r,i),tn(r,i,u,l),i.child;case 6:return r===null&&ct&&((r=l=Mt)&&(l=JN(l,i.pendingProps,Ir),l!==null?(i.stateNode=l,mn=i,Mt=null,r=!0):r=!1),r||is(i)),null;case 13:return Ob(r,i,l);case 4:return qe(i,i.stateNode.containerInfo),u=i.pendingProps,r===null?i.child=Sl(i,null,u,l):tn(r,i,u,l),i.child;case 11:return vb(r,i,i.type,i.pendingProps,l);case 7:return tn(r,i,i.pendingProps,l),i.child;case 8:return tn(r,i,i.pendingProps.children,l),i.child;case 12:return tn(r,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,Ja(i,i.type,u.value),tn(r,i,u.children,l),i.child;case 9:return f=i.type._context,u=i.pendingProps.children,ls(i),f=un(f),u=u(f),i.flags|=1,tn(r,i,u,l),i.child;case 14:return yb(r,i,i.type,i.pendingProps,l);case 15:return gb(r,i,i.type,i.pendingProps,l);case 19:return wb(r,i,l);case 31:return u=i.pendingProps,l=i.mode,u={mode:u.mode,children:u.children},r===null?(l=af(u,l),l.ref=i.ref,i.child=l,l.return=i,i=l):(l=da(r.child,u),l.ref=i.ref,i.child=l,l.return=i,i=l),i;case 22:return bb(r,i,l);case 24:return ls(i),u=un(Vt),r===null?(f=zh(),f===null&&(f=Et,m=Fh(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=l),f=m),i.memoizedState={parent:u,cache:f},Vh(i),Ja(i,Vt,f)):((r.lanes&l)!==0&&(Hh(r,i),Ho(i,null,null,l),Vo()),f=r.memoizedState,m=i.memoizedState,f.parent!==u?(f={parent:u,cache:u},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),Ja(i,Vt,u)):(u=m.cache,Ja(i,Vt,u),u!==f.cache&&Bh(i,[Vt],l,!0))),tn(r,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function Sa(r){r.flags|=4}function Nb(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!$S(i)){if(i=ar.current,i!==null&&((et&4194048)===et?zr!==null:(et&62914560)!==et&&(et&536870912)===0||i!==zr))throw zo=qh,f0;r.flags|=8192}}function sf(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Ec():536870912,r.lanes|=i,Ol|=i)}function Zo(r,i){if(!ct)switch(r.tailMode){case"hidden":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function jt(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(i)for(var f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=u,r.childLanes=l,i}function ON(r,i,l){var u=i.pendingProps;switch(Mh(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(i),null;case 1:return jt(i),null;case 3:return l=i.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),va(Vt),Rt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Mo(i)?Sa(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,s0())),jt(i),null;case 26:return l=i.memoizedState,r===null?(Sa(i),l!==null?(jt(i),Nb(i,l)):(jt(i),i.flags&=-16777217)):l?l!==r.memoizedState?(Sa(i),jt(i),Nb(i,l)):(jt(i),i.flags&=-16777217):(r.memoizedProps!==u&&Sa(i),jt(i),i.flags&=-16777217),null;case 27:wt(i),l=me.current;var f=i.type;if(r!==null&&i.stateNode!=null)r.memoizedProps!==u&&Sa(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return jt(i),null}r=se.current,Mo(i)?a0(i):(r=NS(f,u,l),i.stateNode=r,Sa(i))}return jt(i),null;case 5:if(wt(i),l=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&Sa(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return jt(i),null}if(r=se.current,Mo(i))a0(i);else{switch(f=bf(me.current),r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof u.is=="string"?f.createElement("select",{is:u.is}):f.createElement("select"),u.multiple?r.multiple=!0:u.size&&(r.size=u.size);break;default:r=typeof u.is=="string"?f.createElement(l,{is:u.is}):f.createElement(l)}}r[ee]=i,r[oe]=u;e:for(f=i.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===i)break e;for(;f.sibling===null;){if(f.return===null||f.return===i)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i.stateNode=r;e:switch(rn(r,l,u),l){case"button":case"input":case"select":case"textarea":r=!!u.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Sa(i)}}return jt(i),i.flags&=-16777217,null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==u&&Sa(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(r=me.current,Mo(i)){if(r=i.stateNode,l=i.memoizedProps,u=null,f=mn,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}r[ee]=i,r=!!(r.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||ES(r.nodeValue,l)),r||is(i)}else r=bf(r).createTextNode(u),r[ee]=i,i.stateNode=r}return jt(i),null;case 13:if(u=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=Mo(i),u!==null&&u.dehydrated!==null){if(r===null){if(!f)throw Error(a(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[ee]=i}else Uo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;jt(i),f=!1}else f=s0(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(ga(i),i):(ga(i),null)}if(ga(i),(i.flags&128)!==0)return i.lanes=l,i;if(l=u!==null,r=r!==null&&r.memoizedState!==null,l){u=i.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool);var m=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==f&&(u.flags|=2048)}return l!==r&&l&&(i.child.flags|=8192),sf(i,i.updateQueue),jt(i),null;case 4:return Rt(),r===null&&Gp(i.stateNode.containerInfo),jt(i),null;case 10:return va(i.type),jt(i),null;case 19:if(ae(Ht),f=i.memoizedState,f===null)return jt(i),null;if(u=(i.flags&128)!==0,m=f.rendering,m===null)if(u)Zo(f,!1);else{if(Ut!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(m=ef(r),m!==null){for(i.flags|=128,Zo(f,!1),r=m.updateQueue,i.updateQueue=r,sf(i,r),i.subtreeFlags=0,r=l,l=i.child;l!==null;)n0(l,r),l=l.sibling;return ne(Ht,Ht.current&1|2),i.child}r=r.sibling}f.tail!==null&&At()>uf&&(i.flags|=128,u=!0,Zo(f,!1),i.lanes=4194304)}else{if(!u)if(r=ef(m),r!==null){if(i.flags|=128,u=!0,r=r.updateQueue,i.updateQueue=r,sf(i,r),Zo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!ct)return jt(i),null}else 2*At()-f.renderingStartTime>uf&&l!==536870912&&(i.flags|=128,u=!0,Zo(f,!1),i.lanes=4194304);f.isBackwards?(m.sibling=i.child,i.child=m):(r=f.last,r!==null?r.sibling=m:i.child=m,f.last=m)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=At(),i.sibling=null,r=Ht.current,ne(Ht,u?r&1|2:r&1),i):(jt(i),null);case 22:case 23:return ga(i),Kh(),u=i.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(l&536870912)!==0&&(i.flags&128)===0&&(jt(i),i.subtreeFlags&6&&(i.flags|=8192)):jt(i),l=i.updateQueue,l!==null&&sf(i,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048),r!==null&&ae(os),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),va(Vt),jt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function TN(r,i){switch(Mh(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return va(Vt),Rt(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return wt(i),null;case 13:if(ga(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Uo()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return ae(Ht),null;case 4:return Rt(),null;case 10:return va(i.type),null;case 22:case 23:return ga(i),Kh(),r!==null&&ae(os),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return va(Vt),null;case 25:return null;default:return null}}function Cb(r,i){switch(Mh(i),i.tag){case 3:va(Vt),Rt();break;case 26:case 27:case 5:wt(i);break;case 4:Rt();break;case 13:ga(i);break;case 19:ae(Ht);break;case 10:va(i.type);break;case 22:case 23:ga(i),Kh(),r!==null&&ae(os);break;case 24:va(Vt)}}function Jo(r,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&r)===r){u=void 0;var m=l.create,E=l.inst;u=m(),E.destroy=u}l=l.next}while(l!==f)}}catch(T){St(i,i.return,T)}}function ii(r,i,l){try{var u=i.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var m=f.next;u=m;do{if((u.tag&r)===r){var E=u.inst,T=E.destroy;if(T!==void 0){E.destroy=void 0,f=i;var j=l,z=T;try{z()}catch(K){St(f,j,K)}}}u=u.next}while(u!==m)}}catch(K){St(i,i.return,K)}}function Rb(r){var i=r.updateQueue;if(i!==null){var l=r.stateNode;try{y0(i,l)}catch(u){St(r,r.return,u)}}}function Db(r,i,l){l.props=cs(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(u){St(r,i,u)}}function Wo(r,i){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof l=="function"?r.refCleanup=l(u):l.current=u}}catch(f){St(r,i,f)}}function qr(r,i){var l=r.ref,u=r.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(f){St(r,i,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){St(r,i,f)}else l.current=null}function jb(r){var i=r.type,l=r.memoizedProps,u=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(f){St(r,r.return,f)}}function _p(r,i,l){try{var u=r.stateNode;GN(u,r.type,l,i),u[oe]=i}catch(f){St(r,r.return,f)}}function kb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&hi(r.type)||r.tag===4}function xp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||kb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&hi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Op(r,i,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(r),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=gf));else if(u!==4&&(u===27&&hi(r.type)&&(l=r.stateNode,i=null),r=r.child,r!==null))for(Op(r,i,l),r=r.sibling;r!==null;)Op(r,i,l),r=r.sibling}function lf(r,i,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(u!==4&&(u===27&&hi(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(lf(r,i,l),r=r.sibling;r!==null;)lf(r,i,l),r=r.sibling}function Mb(r){var i=r.stateNode,l=r.memoizedProps;try{for(var u=r.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);rn(i,u,l),i[ee]=r,i[oe]=l}catch(m){St(r,r.return,m)}}var Ea=!1,Bt=!1,Tp=!1,Ub=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function wN(r,i){if(r=r.containerInfo,Qp=Tf,r=Gg(r),xh(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var E=0,T=-1,j=-1,z=0,K=0,J=r,H=null;t:for(;;){for(var P;J!==l||f!==0&&J.nodeType!==3||(T=E+f),J!==m||u!==0&&J.nodeType!==3||(j=E+u),J.nodeType===3&&(E+=J.nodeValue.length),(P=J.firstChild)!==null;)H=J,J=P;for(;;){if(J===r)break t;if(H===l&&++z===f&&(T=E),H===m&&++K===u&&(j=E),(P=J.nextSibling)!==null)break;J=H,H=J.parentNode}J=P}l=T===-1||j===-1?null:{start:T,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(Xp={focusedElem:r,selectionRange:l},Tf=!1,Kt=i;Kt!==null;)if(i=Kt,r=i.child,(i.subtreeFlags&1024)!==0&&r!==null)r.return=i,Kt=r;else for(;Kt!==null;){switch(i=Kt,m=i.alternate,r=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&m!==null){r=void 0,l=i,f=m.memoizedProps,m=m.memoizedState,u=l.stateNode;try{var Be=cs(l.type,f,l.elementType===l.type);r=u.getSnapshotBeforeUpdate(Be,m),u.__reactInternalSnapshotBeforeUpdate=r}catch(Me){St(l,l.return,Me)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,l=r.nodeType,l===9)Wp(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Wp(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=i.sibling,r!==null){r.return=i.return,Kt=r;break}Kt=i.return}}function $b(r,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:si(r,l),u&4&&Jo(5,l);break;case 1:if(si(r,l),u&4)if(r=l.stateNode,i===null)try{r.componentDidMount()}catch(E){St(l,l.return,E)}else{var f=cs(l.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(f,i,r.__reactInternalSnapshotBeforeUpdate)}catch(E){St(l,l.return,E)}}u&64&&Rb(l),u&512&&Wo(l,l.return);break;case 3:if(si(r,l),u&64&&(r=l.updateQueue,r!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{y0(r,i)}catch(E){St(l,l.return,E)}}break;case 27:i===null&&u&4&&Mb(l);case 26:case 5:si(r,l),i===null&&u&4&&jb(l),u&512&&Wo(l,l.return);break;case 12:si(r,l);break;case 13:si(r,l),u&4&&Fb(r,l),u&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=UN.bind(null,l),WN(r,l))));break;case 22:if(u=l.memoizedState!==null||Ea,!u){i=i!==null&&i.memoizedState!==null||Bt,f=Ea;var m=Bt;Ea=u,(Bt=i)&&!m?li(r,l,(l.subtreeFlags&8772)!==0):si(r,l),Ea=f,Bt=m}break;case 30:break;default:si(r,l)}}function Lb(r){var i=r.alternate;i!==null&&(r.alternate=null,Lb(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Ae(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Ct=null,On=!1;function _a(r,i,l){for(l=l.child;l!==null;)Bb(r,i,l),l=l.sibling}function Bb(r,i,l){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(ue,l)}catch{}switch(l.tag){case 26:Bt||qr(l,i),_a(r,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Bt||qr(l,i);var u=Ct,f=On;hi(l.type)&&(Ct=l.stateNode,On=!1),_a(r,i,l),ou(l.stateNode),Ct=u,On=f;break;case 5:Bt||qr(l,i);case 6:if(u=Ct,f=On,Ct=null,_a(r,i,l),Ct=u,On=f,Ct!==null)if(On)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(l.stateNode)}catch(m){St(l,i,m)}else try{Ct.removeChild(l.stateNode)}catch(m){St(l,i,m)}break;case 18:Ct!==null&&(On?(r=Ct,wS(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),vu(r)):wS(Ct,l.stateNode));break;case 4:u=Ct,f=On,Ct=l.stateNode.containerInfo,On=!0,_a(r,i,l),Ct=u,On=f;break;case 0:case 11:case 14:case 15:Bt||ii(2,l,i),Bt||ii(4,l,i),_a(r,i,l);break;case 1:Bt||(qr(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Db(l,i,u)),_a(r,i,l);break;case 21:_a(r,i,l);break;case 22:Bt=(u=Bt)||l.memoizedState!==null,_a(r,i,l),Bt=u;break;default:_a(r,i,l)}}function Fb(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{vu(r)}catch(l){St(i,i.return,l)}}function AN(r){switch(r.tag){case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new Ub),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new Ub),i;default:throw Error(a(435,r.tag))}}function wp(r,i){var l=AN(r);i.forEach(function(u){var f=$N.bind(null,r,u);l.has(u)||(l.add(u),u.then(f,f))})}function kn(r,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u],m=r,E=i,T=E;e:for(;T!==null;){switch(T.tag){case 27:if(hi(T.type)){Ct=T.stateNode,On=!1;break e}break;case 5:Ct=T.stateNode,On=!1;break e;case 3:case 4:Ct=T.stateNode.containerInfo,On=!0;break e}T=T.return}if(Ct===null)throw Error(a(160));Bb(m,E,f),Ct=null,On=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Ib(i,r),i=i.sibling}var _r=null;function Ib(r,i){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:kn(i,r),Mn(r),u&4&&(ii(3,r,r.return),Jo(3,r),ii(5,r,r.return));break;case 1:kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),u&64&&Ea&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var f=_r;if(kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),u&4){var m=l!==null?l.memoizedState:null;if(u=r.memoizedState,l===null)if(u===null)if(r.stateNode===null){e:{u=r.type,l=r.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Le]||m[ee]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(u),f.head.insertBefore(m,f.querySelector("head > title"))),rn(m,u,l),m[ee]=r,it(m),u=m;break e;case"link":var E=MS("link","href",f).get(u+(l.href||""));if(E){for(var T=0;T<E.length;T++)if(m=E[T],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){E.splice(T,1);break t}}m=f.createElement(u),rn(m,u,l),f.head.appendChild(m);break;case"meta":if(E=MS("meta","content",f).get(u+(l.content||""))){for(T=0;T<E.length;T++)if(m=E[T],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){E.splice(T,1);break t}}m=f.createElement(u),rn(m,u,l),f.head.appendChild(m);break;default:throw Error(a(468,u))}m[ee]=r,it(m),u=m}r.stateNode=u}else US(f,r.type,r.stateNode);else r.stateNode=kS(f,u,r.memoizedProps);else m!==u?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,u===null?US(f,r.type,r.stateNode):kS(f,u,r.memoizedProps)):u===null&&r.stateNode!==null&&_p(r,r.memoizedProps,l.memoizedProps)}break;case 27:kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),l!==null&&u&4&&_p(r,r.memoizedProps,l.memoizedProps);break;case 5:if(kn(i,r),Mn(r),u&512&&(Bt||l===null||qr(l,l.return)),r.flags&32){f=r.stateNode;try{nl(f,"")}catch(P){St(r,r.return,P)}}u&4&&r.stateNode!=null&&(f=r.memoizedProps,_p(r,f,l!==null?l.memoizedProps:f)),u&1024&&(Tp=!0);break;case 6:if(kn(i,r),Mn(r),u&4){if(r.stateNode===null)throw Error(a(162));u=r.memoizedProps,l=r.stateNode;try{l.nodeValue=u}catch(P){St(r,r.return,P)}}break;case 3:if(_f=null,f=_r,_r=Sf(i.containerInfo),kn(i,r),_r=f,Mn(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{vu(i.containerInfo)}catch(P){St(r,r.return,P)}Tp&&(Tp=!1,zb(r));break;case 4:u=_r,_r=Sf(r.stateNode.containerInfo),kn(i,r),Mn(r),_r=u;break;case 12:kn(i,r),Mn(r);break;case 13:kn(i,r),Mn(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(jp=At()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,wp(r,u)));break;case 22:f=r.memoizedState!==null;var j=l!==null&&l.memoizedState!==null,z=Ea,K=Bt;if(Ea=z||f,Bt=K||j,kn(i,r),Bt=K,Ea=z,Mn(r),u&8192)e:for(i=r.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(l===null||j||Ea||Bt||fs(r)),l=null,i=r;;){if(i.tag===5||i.tag===26){if(l===null){j=l=i;try{if(m=j.stateNode,f)E=m.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{T=j.stateNode;var J=j.memoizedProps.style,H=J!=null&&J.hasOwnProperty("display")?J.display:null;T.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(P){St(j,j.return,P)}}}else if(i.tag===6){if(l===null){j=i;try{j.stateNode.nodeValue=f?"":j.memoizedProps}catch(P){St(j,j.return,P)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=r.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,wp(r,l))));break;case 19:kn(i,r),Mn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,wp(r,u)));break;case 30:break;case 21:break;default:kn(i,r),Mn(r)}}function Mn(r){var i=r.flags;if(i&2){try{for(var l,u=r.return;u!==null;){if(kb(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var f=l.stateNode,m=xp(r);lf(r,m,f);break;case 5:var E=l.stateNode;l.flags&32&&(nl(E,""),l.flags&=-33);var T=xp(r);lf(r,T,E);break;case 3:case 4:var j=l.stateNode.containerInfo,z=xp(r);Op(r,z,j);break;default:throw Error(a(161))}}catch(K){St(r,r.return,K)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function zb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;zb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function si(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)$b(r,i.alternate,i),i=i.sibling}function fs(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:ii(4,i,i.return),fs(i);break;case 1:qr(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Db(i,i.return,l),fs(i);break;case 27:ou(i.stateNode);case 26:case 5:qr(i,i.return),fs(i);break;case 22:i.memoizedState===null&&fs(i);break;case 30:fs(i);break;default:fs(i)}r=r.sibling}}function li(r,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,f=r,m=i,E=m.flags;switch(m.tag){case 0:case 11:case 15:li(f,m,l),Jo(4,m);break;case 1:if(li(f,m,l),u=m,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(z){St(u,u.return,z)}if(u=m,f=u.updateQueue,f!==null){var T=u.stateNode;try{var j=f.shared.hiddenCallbacks;if(j!==null)for(f.shared.hiddenCallbacks=null,f=0;f<j.length;f++)v0(j[f],T)}catch(z){St(u,u.return,z)}}l&&E&64&&Rb(m),Wo(m,m.return);break;case 27:Mb(m);case 26:case 5:li(f,m,l),l&&u===null&&E&4&&jb(m),Wo(m,m.return);break;case 12:li(f,m,l);break;case 13:li(f,m,l),l&&E&4&&Fb(f,m);break;case 22:m.memoizedState===null&&li(f,m,l),Wo(m,m.return);break;case 30:break;default:li(f,m,l)}i=i.sibling}}function Ap(r,i){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&Bo(l))}function Np(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Bo(r))}function Vr(r,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)qb(r,i,l,u),i=i.sibling}function qb(r,i,l,u){var f=i.flags;switch(i.tag){case 0:case 11:case 15:Vr(r,i,l,u),f&2048&&Jo(9,i);break;case 1:Vr(r,i,l,u);break;case 3:Vr(r,i,l,u),f&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Bo(r)));break;case 12:if(f&2048){Vr(r,i,l,u),r=i.stateNode;try{var m=i.memoizedProps,E=m.id,T=m.onPostCommit;typeof T=="function"&&T(E,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(j){St(i,i.return,j)}}else Vr(r,i,l,u);break;case 13:Vr(r,i,l,u);break;case 23:break;case 22:m=i.stateNode,E=i.alternate,i.memoizedState!==null?m._visibility&2?Vr(r,i,l,u):eu(r,i):m._visibility&2?Vr(r,i,l,u):(m._visibility|=2,El(r,i,l,u,(i.subtreeFlags&10256)!==0)),f&2048&&Ap(E,i);break;case 24:Vr(r,i,l,u),f&2048&&Np(i.alternate,i);break;default:Vr(r,i,l,u)}}function El(r,i,l,u,f){for(f=f&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var m=r,E=i,T=l,j=u,z=E.flags;switch(E.tag){case 0:case 11:case 15:El(m,E,T,j,f),Jo(8,E);break;case 23:break;case 22:var K=E.stateNode;E.memoizedState!==null?K._visibility&2?El(m,E,T,j,f):eu(m,E):(K._visibility|=2,El(m,E,T,j,f)),f&&z&2048&&Ap(E.alternate,E);break;case 24:El(m,E,T,j,f),f&&z&2048&&Np(E.alternate,E);break;default:El(m,E,T,j,f)}i=i.sibling}}function eu(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=r,u=i,f=u.flags;switch(u.tag){case 22:eu(l,u),f&2048&&Ap(u.alternate,u);break;case 24:eu(l,u),f&2048&&Np(u.alternate,u);break;default:eu(l,u)}i=i.sibling}}var tu=8192;function _l(r){if(r.subtreeFlags&tu)for(r=r.child;r!==null;)Vb(r),r=r.sibling}function Vb(r){switch(r.tag){case 26:_l(r),r.flags&tu&&r.memoizedState!==null&&dC(_r,r.memoizedState,r.memoizedProps);break;case 5:_l(r);break;case 3:case 4:var i=_r;_r=Sf(r.stateNode.containerInfo),_l(r),_r=i;break;case 22:r.memoizedState===null&&(i=r.alternate,i!==null&&i.memoizedState!==null?(i=tu,tu=16777216,_l(r),tu=i):_l(r));break;default:_l(r)}}function Hb(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function nu(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];Kt=u,Gb(u,r)}Hb(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Pb(r),r=r.sibling}function Pb(r){switch(r.tag){case 0:case 11:case 15:nu(r),r.flags&2048&&ii(9,r,r.return);break;case 3:nu(r);break;case 12:nu(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,of(r)):nu(r);break;default:nu(r)}}function of(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];Kt=u,Gb(u,r)}Hb(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:ii(8,i,i.return),of(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,of(i));break;default:of(i)}r=r.sibling}}function Gb(r,i){for(;Kt!==null;){var l=Kt;switch(l.tag){case 0:case 11:case 15:ii(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Bo(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Kt=u;else e:for(l=r;Kt!==null;){u=Kt;var f=u.sibling,m=u.return;if(Lb(u),u===l){Kt=null;break e}if(f!==null){f.return=m,Kt=f;break e}Kt=m}}}var NN={getCacheForType:function(r){var i=un(Vt),l=i.data.get(r);return l===void 0&&(l=r(),i.data.set(r,l)),l}},CN=typeof WeakMap=="function"?WeakMap:Map,ht=0,Et=null,Qe=null,et=0,pt=0,Un=null,oi=!1,xl=!1,Cp=!1,xa=0,Ut=0,ui=0,ds=0,Rp=0,ir=0,Ol=0,ru=null,Tn=null,Dp=!1,jp=0,uf=1/0,cf=null,ci=null,nn=0,fi=null,Tl=null,wl=0,kp=0,Mp=null,Yb=null,au=0,Up=null;function $n(){if((ht&2)!==0&&et!==0)return et&-et;if(L.T!==null){var r=hl;return r!==0?r:qp()}return M()}function Kb(){ir===0&&(ir=(et&536870912)===0||ct?Ws():536870912);var r=ar.current;return r!==null&&(r.flags|=32),ir}function Ln(r,i,l){(r===Et&&(pt===2||pt===9)||r.cancelPendingCommit!==null)&&(Al(r,0),di(r,et,ir,!1)),Ki(r,l),((ht&2)===0||r!==Et)&&(r===Et&&((ht&2)===0&&(ds|=l),Ut===4&&di(r,et,ir,!1)),Hr(r))}function Qb(r,i,l){if((ht&6)!==0)throw Error(a(327));var u=!l&&(i&124)===0&&(i&r.expiredLanes)===0||Fr(r,i),f=u?jN(r,i):Bp(r,i,!0),m=u;do{if(f===0){xl&&!u&&di(r,i,0,!1);break}else{if(l=r.current.alternate,m&&!RN(l)){f=Bp(r,i,!1),m=!1;continue}if(f===2){if(m=i,r.errorRecoveryDisabledLanes&m)var E=0;else E=r.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){i=E;e:{var T=r;f=ru;var j=T.current.memoizedState.isDehydrated;if(j&&(Al(T,E).flags|=256),E=Bp(T,E,!1),E!==2){if(Cp&&!j){T.errorRecoveryDisabledLanes|=m,ds|=m,f=4;break e}m=Tn,Tn=f,m!==null&&(Tn===null?Tn=m:Tn.push.apply(Tn,m))}f=E}if(m=!1,f!==2)continue}}if(f===1){Al(r,0),di(r,i,0,!0);break}e:{switch(u=r,m=f,m){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:di(u,i,ir,!oi);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(f=jp+300-At(),10<f)){if(di(u,i,ir,!oi),Yi(u,0,!0)!==0)break e;u.timeoutHandle=OS(Xb.bind(null,u,l,Tn,cf,Dp,i,ir,ds,Ol,oi,m,2,-0,0),f);break e}Xb(u,l,Tn,cf,Dp,i,ir,ds,Ol,oi,m,0,-0,0)}}break}while(!0);Hr(r)}function Xb(r,i,l,u,f,m,E,T,j,z,K,J,H,P){if(r.timeoutHandle=-1,J=i.subtreeFlags,(J&8192||(J&16785408)===16785408)&&(fu={stylesheets:null,count:0,unsuspend:fC},Vb(i),J=hC(),J!==null)){r.cancelPendingCommit=J(rS.bind(null,r,i,m,l,u,f,E,T,j,K,1,H,P)),di(r,m,E,!z);return}rS(r,i,m,l,u,f,E,T,j)}function RN(r){for(var i=r;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var f=l[u],m=f.getSnapshot;f=f.value;try{if(!Dn(m(),f))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function di(r,i,l,u){i&=~Rp,i&=~ds,r.suspendedLanes|=i,r.pingedLanes&=~i,u&&(r.warmLanes|=i),u=r.expirationTimes;for(var f=i;0<f;){var m=31-bt(f),E=1<<m;u[m]=-1,f&=~E}l!==0&&Qi(r,l,i)}function ff(){return(ht&6)===0?(iu(0),!1):!0}function $p(){if(Qe!==null){if(pt===0)var r=Qe.return;else r=Qe,ma=ss=null,Wh(r),bl=null,Qo=0,r=Qe;for(;r!==null;)Cb(r.alternate,r),r=r.return;Qe=null}}function Al(r,i){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,KN(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),$p(),Et=r,Qe=l=da(r.current,null),et=i,pt=0,Un=null,oi=!1,xl=Fr(r,i),Cp=!1,Ol=ir=Rp=ds=ui=Ut=0,Tn=ru=null,Dp=!1,(i&8)!==0&&(i|=i&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=i;0<u;){var f=31-bt(u),m=1<<f;i|=r[f],u&=~m}return xa=i,jc(),l}function Zb(r,i){Ge=null,L.H=Zc,i===Io||i===zc?(i=p0(),pt=3):i===f0?(i=p0(),pt=4):pt=i===mb?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Un=i,Qe===null&&(Ut=1,nf(r,er(i,r.current)))}function Jb(){var r=L.H;return L.H=Zc,r===null?Zc:r}function Wb(){var r=L.A;return L.A=NN,r}function Lp(){Ut=4,oi||(et&4194048)!==et&&ar.current!==null||(xl=!0),(ui&134217727)===0&&(ds&134217727)===0||Et===null||di(Et,et,ir,!1)}function Bp(r,i,l){var u=ht;ht|=2;var f=Jb(),m=Wb();(Et!==r||et!==i)&&(cf=null,Al(r,i)),i=!1;var E=Ut;e:do try{if(pt!==0&&Qe!==null){var T=Qe,j=Un;switch(pt){case 8:$p(),E=6;break e;case 3:case 2:case 9:case 6:ar.current===null&&(i=!0);var z=pt;if(pt=0,Un=null,Nl(r,T,j,z),l&&xl){E=0;break e}break;default:z=pt,pt=0,Un=null,Nl(r,T,j,z)}}DN(),E=Ut;break}catch(K){Zb(r,K)}while(!0);return i&&r.shellSuspendCounter++,ma=ss=null,ht=u,L.H=f,L.A=m,Qe===null&&(Et=null,et=0,jc()),E}function DN(){for(;Qe!==null;)eS(Qe)}function jN(r,i){var l=ht;ht|=2;var u=Jb(),f=Wb();Et!==r||et!==i?(cf=null,uf=At()+500,Al(r,i)):xl=Fr(r,i);e:do try{if(pt!==0&&Qe!==null){i=Qe;var m=Un;t:switch(pt){case 1:pt=0,Un=null,Nl(r,i,m,1);break;case 2:case 9:if(d0(m)){pt=0,Un=null,tS(i);break}i=function(){pt!==2&&pt!==9||Et!==r||(pt=7),Hr(r)},m.then(i,i);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:d0(m)?(pt=0,Un=null,tS(i)):(pt=0,Un=null,Nl(r,i,m,7));break;case 5:var E=null;switch(Qe.tag){case 26:E=Qe.memoizedState;case 5:case 27:var T=Qe;if(!E||$S(E)){pt=0,Un=null;var j=T.sibling;if(j!==null)Qe=j;else{var z=T.return;z!==null?(Qe=z,df(z)):Qe=null}break t}}pt=0,Un=null,Nl(r,i,m,5);break;case 6:pt=0,Un=null,Nl(r,i,m,6);break;case 8:$p(),Ut=6;break e;default:throw Error(a(462))}}kN();break}catch(K){Zb(r,K)}while(!0);return ma=ss=null,L.H=u,L.A=f,ht=l,Qe!==null?0:(Et=null,et=0,jc(),Ut)}function kN(){for(;Qe!==null&&!at();)eS(Qe)}function eS(r){var i=Ab(r.alternate,r,xa);r.memoizedProps=r.pendingProps,i===null?df(r):Qe=i}function tS(r){var i=r,l=i.alternate;switch(i.tag){case 15:case 0:i=Eb(l,i,i.pendingProps,i.type,void 0,et);break;case 11:i=Eb(l,i,i.pendingProps,i.type.render,i.ref,et);break;case 5:Wh(i);default:Cb(l,i),i=Qe=n0(i,xa),i=Ab(l,i,xa)}r.memoizedProps=r.pendingProps,i===null?df(r):Qe=i}function Nl(r,i,l,u){ma=ss=null,Wh(i),bl=null,Qo=0;var f=i.return;try{if(_N(r,f,i,l,et)){Ut=1,nf(r,er(l,r.current)),Qe=null;return}}catch(m){if(f!==null)throw Qe=f,m;Ut=1,nf(r,er(l,r.current)),Qe=null;return}i.flags&32768?(ct||u===1?r=!0:xl||(et&536870912)!==0?r=!1:(oi=r=!0,(u===2||u===9||u===3||u===6)&&(u=ar.current,u!==null&&u.tag===13&&(u.flags|=16384))),nS(i,r)):df(i)}function df(r){var i=r;do{if((i.flags&32768)!==0){nS(i,oi);return}r=i.return;var l=ON(i.alternate,i,xa);if(l!==null){Qe=l;return}if(i=i.sibling,i!==null){Qe=i;return}Qe=i=r}while(i!==null);Ut===0&&(Ut=5)}function nS(r,i){do{var l=TN(r.alternate,r);if(l!==null){l.flags&=32767,Qe=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(r=r.sibling,r!==null)){Qe=r;return}Qe=r=l}while(r!==null);Ut=6,Qe=null}function rS(r,i,l,u,f,m,E,T,j){r.cancelPendingCommit=null;do hf();while(nn!==0);if((ht&6)!==0)throw Error(a(327));if(i!==null){if(i===r.current)throw Error(a(177));if(m=i.lanes|i.childLanes,m|=Nh,_c(r,l,m,E,T,j),r===Et&&(Qe=Et=null,et=0),Tl=i,fi=r,wl=l,kp=m,Mp=f,Yb=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,LN(hn,function(){return oS(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=L.T,L.T=null,f=te.p,te.p=2,E=ht,ht|=4;try{wN(r,i,l)}finally{ht=E,te.p=f,L.T=u}}nn=1,aS(),iS(),sS()}}function aS(){if(nn===1){nn=0;var r=fi,i=Tl,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var u=te.p;te.p=2;var f=ht;ht|=4;try{Ib(i,r);var m=Xp,E=Gg(r.containerInfo),T=m.focusedElem,j=m.selectionRange;if(E!==T&&T&&T.ownerDocument&&Pg(T.ownerDocument.documentElement,T)){if(j!==null&&xh(T)){var z=j.start,K=j.end;if(K===void 0&&(K=z),"selectionStart"in T)T.selectionStart=z,T.selectionEnd=Math.min(K,T.value.length);else{var J=T.ownerDocument||document,H=J&&J.defaultView||window;if(H.getSelection){var P=H.getSelection(),Be=T.textContent.length,Me=Math.min(j.start,Be),gt=j.end===void 0?Me:Math.min(j.end,Be);!P.extend&&Me>gt&&(E=gt,gt=Me,Me=E);var B=Hg(T,Me),$=Hg(T,gt);if(B&&$&&(P.rangeCount!==1||P.anchorNode!==B.node||P.anchorOffset!==B.offset||P.focusNode!==$.node||P.focusOffset!==$.offset)){var I=J.createRange();I.setStart(B.node,B.offset),P.removeAllRanges(),Me>gt?(P.addRange(I),P.extend($.node,$.offset)):(I.setEnd($.node,$.offset),P.addRange(I))}}}}for(J=[],P=T;P=P.parentNode;)P.nodeType===1&&J.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<J.length;T++){var X=J[T];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Tf=!!Qp,Xp=Qp=null}finally{ht=f,te.p=u,L.T=l}}r.current=i,nn=2}}function iS(){if(nn===2){nn=0;var r=fi,i=Tl,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var u=te.p;te.p=2;var f=ht;ht|=4;try{$b(r,i.alternate,i)}finally{ht=f,te.p=u,L.T=l}}nn=3}}function sS(){if(nn===4||nn===3){nn=0,Rn();var r=fi,i=Tl,l=wl,u=Yb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?nn=5:(nn=0,Tl=fi=null,lS(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(ci=null),_o(l),i=i.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(ue,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=L.T,f=te.p,te.p=2,L.T=null;try{for(var m=r.onRecoverableError,E=0;E<u.length;E++){var T=u[E];m(T.value,{componentStack:T.stack})}}finally{L.T=i,te.p=f}}(wl&3)!==0&&hf(),Hr(r),f=r.pendingLanes,(l&4194090)!==0&&(f&42)!==0?r===Up?au++:(au=0,Up=r):au=0,iu(0)}}function lS(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,Bo(i)))}function hf(r){return aS(),iS(),sS(),oS()}function oS(){if(nn!==5)return!1;var r=fi,i=kp;kp=0;var l=_o(wl),u=L.T,f=te.p;try{te.p=32>l?32:l,L.T=null,l=Mp,Mp=null;var m=fi,E=wl;if(nn=0,Tl=fi=null,wl=0,(ht&6)!==0)throw Error(a(331));var T=ht;if(ht|=4,Pb(m.current),qb(m,m.current,E,l),ht=T,iu(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(ue,m)}catch{}return!0}finally{te.p=f,L.T=u,lS(r,i)}}function uS(r,i,l){i=er(l,i),i=hp(r.stateNode,i,2),r=ti(r,i,2),r!==null&&(Ki(r,2),Hr(r))}function St(r,i,l){if(r.tag===3)uS(r,r,l);else for(;i!==null;){if(i.tag===3){uS(i,r,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ci===null||!ci.has(u))){r=er(l,r),l=hb(2),u=ti(i,l,2),u!==null&&(pb(l,u,i,r),Ki(u,2),Hr(u));break}}i=i.return}}function Fp(r,i,l){var u=r.pingCache;if(u===null){u=r.pingCache=new CN;var f=new Set;u.set(i,f)}else f=u.get(i),f===void 0&&(f=new Set,u.set(i,f));f.has(l)||(Cp=!0,f.add(l),r=MN.bind(null,r,i,l),i.then(r,r))}function MN(r,i,l){var u=r.pingCache;u!==null&&u.delete(i),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,Et===r&&(et&l)===l&&(Ut===4||Ut===3&&(et&62914560)===et&&300>At()-jp?(ht&2)===0&&Al(r,0):Rp|=l,Ol===et&&(Ol=0)),Hr(r)}function cS(r,i){i===0&&(i=Ec()),r=ul(r,i),r!==null&&(Ki(r,i),Hr(r))}function UN(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),cS(r,l)}function $N(r,i){var l=0;switch(r.tag){case 13:var u=r.stateNode,f=r.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),cS(r,l)}function LN(r,i){return en(r,i)}var pf=null,Cl=null,Ip=!1,mf=!1,zp=!1,hs=0;function Hr(r){r!==Cl&&r.next===null&&(Cl===null?pf=Cl=r:Cl=Cl.next=r),mf=!0,Ip||(Ip=!0,FN())}function iu(r,i){if(!zp&&mf){zp=!0;do for(var l=!1,u=pf;u!==null;){if(r!==0){var f=u.pendingLanes;if(f===0)var m=0;else{var E=u.suspendedLanes,T=u.pingedLanes;m=(1<<31-bt(42|r)+1)-1,m&=f&~(E&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,pS(u,m))}else m=et,m=Yi(u,u===Et?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Fr(u,m)||(l=!0,pS(u,m));u=u.next}while(l);zp=!1}}function BN(){fS()}function fS(){mf=Ip=!1;var r=0;hs!==0&&(YN()&&(r=hs),hs=0);for(var i=At(),l=null,u=pf;u!==null;){var f=u.next,m=dS(u,i);m===0?(u.next=null,l===null?pf=f:l.next=f,f===null&&(Cl=l)):(l=u,(r!==0||(m&3)!==0)&&(mf=!0)),u=f}iu(r)}function dS(r,i){for(var l=r.suspendedLanes,u=r.pingedLanes,f=r.expirationTimes,m=r.pendingLanes&-62914561;0<m;){var E=31-bt(m),T=1<<E,j=f[E];j===-1?((T&l)===0||(T&u)!==0)&&(f[E]=Sc(T,i)):j<=i&&(r.expiredLanes|=T),m&=~T}if(i=Et,l=et,l=Yi(r,r===i?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,l===0||r===i&&(pt===2||pt===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&kt(u),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Fr(r,l)){if(i=l&-l,i===r.callbackPriority)return i;switch(u!==null&&kt(u),_o(l)){case 2:case 8:l=ln;break;case 32:l=hn;break;case 268435456:l=ce;break;default:l=hn}return u=hS.bind(null,r),l=en(l,u),r.callbackPriority=i,r.callbackNode=l,i}return u!==null&&u!==null&&kt(u),r.callbackPriority=2,r.callbackNode=null,2}function hS(r,i){if(nn!==0&&nn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(hf()&&r.callbackNode!==l)return null;var u=et;return u=Yi(r,r===Et?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(Qb(r,u,i),dS(r,At()),r.callbackNode!=null&&r.callbackNode===l?hS.bind(null,r):null)}function pS(r,i){if(hf())return null;Qb(r,i,!0)}function FN(){QN(function(){(ht&6)!==0?en(Xn,BN):fS()})}function qp(){return hs===0&&(hs=Ws()),hs}function mS(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Tc(""+r)}function vS(r,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,r.id&&l.setAttribute("form",r.id),i.parentNode.insertBefore(l,i),r=new FormData(r),l.parentNode.removeChild(l),r}function IN(r,i,l,u,f){if(i==="submit"&&l&&l.stateNode===f){var m=mS((f[oe]||null).action),E=u.submitter;E&&(i=(i=E[oe]||null)?mS(i.formAction):E.getAttribute("formAction"),i!==null&&(m=i,E=null));var T=new Cc("action","action",null,u,f);r.push({event:T,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(hs!==0){var j=E?vS(f,E):new FormData(f);op(l,{pending:!0,data:j,method:f.method,action:m},null,j)}}else typeof m=="function"&&(T.preventDefault(),j=E?vS(f,E):new FormData(f),op(l,{pending:!0,data:j,method:f.method,action:m},m,j))},currentTarget:f}]})}}for(var Vp=0;Vp<Ah.length;Vp++){var Hp=Ah[Vp],zN=Hp.toLowerCase(),qN=Hp[0].toUpperCase()+Hp.slice(1);Er(zN,"on"+qN)}Er(Qg,"onAnimationEnd"),Er(Xg,"onAnimationIteration"),Er(Zg,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(iN,"onTransitionRun"),Er(sN,"onTransitionStart"),Er(lN,"onTransitionCancel"),Er(Jg,"onTransitionEnd"),Zn("onMouseEnter",["mouseout","mouseover"]),Zn("onMouseLeave",["mouseout","mouseover"]),Zn("onPointerEnter",["pointerout","pointerover"]),Zn("onPointerLeave",["pointerout","pointerover"]),pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="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(" "),VN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(su));function yS(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],f=u.event;u=u.listeners;e:{var m=void 0;if(i)for(var E=u.length-1;0<=E;E--){var T=u[E],j=T.instance,z=T.currentTarget;if(T=T.listener,j!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=z;try{m(f)}catch(K){tf(K)}f.currentTarget=null,m=j}else for(E=0;E<u.length;E++){if(T=u[E],j=T.instance,z=T.currentTarget,T=T.listener,j!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=z;try{m(f)}catch(K){tf(K)}f.currentTarget=null,m=j}}}}function Xe(r,i){var l=i[ke];l===void 0&&(l=i[ke]=new Set);var u=r+"__bubble";l.has(u)||(gS(i,r,2,!1),l.add(u))}function Pp(r,i,l){var u=0;i&&(u|=4),gS(l,r,u,i)}var vf="_reactListening"+Math.random().toString(36).slice(2);function Gp(r){if(!r[vf]){r[vf]=!0,We.forEach(function(l){l!=="selectionchange"&&(VN.has(l)||Pp(l,!1,r),Pp(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[vf]||(i[vf]=!0,Pp("selectionchange",!1,i))}}function gS(r,i,l,u){switch(qS(i)){case 2:var f=vC;break;case 8:f=yC;break;default:f=sm}l=f.bind(null,i,l,r),f=void 0,!ph||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),u?f!==void 0?r.addEventListener(i,l,{capture:!0,passive:f}):r.addEventListener(i,l,!0):f!==void 0?r.addEventListener(i,l,{passive:f}):r.addEventListener(i,l,!1)}function Yp(r,i,l,u,f){var m=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var E=u.tag;if(E===3||E===4){var T=u.stateNode.containerInfo;if(T===f)break;if(E===4)for(E=u.return;E!==null;){var j=E.tag;if((j===3||j===4)&&E.stateNode.containerInfo===f)return;E=E.return}for(;T!==null;){if(E=Ie(T),E===null)return;if(j=E.tag,j===5||j===6||j===26||j===27){u=m=E;continue e}T=T.parentNode}}u=u.return}Tg(function(){var z=m,K=dh(l),J=[];e:{var H=Wg.get(r);if(H!==void 0){var P=Cc,Be=r;switch(r){case"keypress":if(Ac(l)===0)break e;case"keydown":case"keyup":P=LA;break;case"focusin":Be="focus",P=gh;break;case"focusout":Be="blur",P=gh;break;case"beforeblur":case"afterblur":P=gh;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":P=Ng;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=TA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=IA;break;case Qg:case Xg:case Zg:P=NA;break;case Jg:P=qA;break;case"scroll":case"scrollend":P=xA;break;case"wheel":P=HA;break;case"copy":case"cut":case"paste":P=RA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Rg;break;case"toggle":case"beforetoggle":P=GA}var Me=(i&4)!==0,gt=!Me&&(r==="scroll"||r==="scrollend"),B=Me?H!==null?H+"Capture":null:H;Me=[];for(var $=z,I;$!==null;){var X=$;if(I=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||I===null||B===null||(X=To($,B),X!=null&&Me.push(lu($,X,I))),gt)break;$=$.return}0<Me.length&&(H=new P(H,Be,null,l,K),J.push({event:H,listeners:Me}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",P=r==="mouseout"||r==="pointerout",H&&l!==fh&&(Be=l.relatedTarget||l.fromElement)&&(Ie(Be)||Be[Oe]))break e;if((P||H)&&(H=K.window===K?K:(H=K.ownerDocument)?H.defaultView||H.parentWindow:window,P?(Be=l.relatedTarget||l.toElement,P=z,Be=Be?Ie(Be):null,Be!==null&&(gt=o(Be),Me=Be.tag,Be!==gt||Me!==5&&Me!==27&&Me!==6)&&(Be=null)):(P=null,Be=z),P!==Be)){if(Me=Ng,X="onMouseLeave",B="onMouseEnter",$="mouse",(r==="pointerout"||r==="pointerover")&&(Me=Rg,X="onPointerLeave",B="onPointerEnter",$="pointer"),gt=P==null?H:Ot(P),I=Be==null?H:Ot(Be),H=new Me(X,$+"leave",P,l,K),H.target=gt,H.relatedTarget=I,X=null,Ie(K)===z&&(Me=new Me(B,$+"enter",Be,l,K),Me.target=I,Me.relatedTarget=gt,X=Me),gt=X,P&&Be)t:{for(Me=P,B=Be,$=0,I=Me;I;I=Rl(I))$++;for(I=0,X=B;X;X=Rl(X))I++;for(;0<$-I;)Me=Rl(Me),$--;for(;0<I-$;)B=Rl(B),I--;for(;$--;){if(Me===B||B!==null&&Me===B.alternate)break t;Me=Rl(Me),B=Rl(B)}Me=null}else Me=null;P!==null&&bS(J,H,P,Me,!1),Be!==null&>!==null&&bS(J,gt,Be,Me,!0)}}e:{if(H=z?Ot(z):window,P=H.nodeName&&H.nodeName.toLowerCase(),P==="select"||P==="input"&&H.type==="file")var ge=Bg;else if($g(H))if(Fg)ge=nN;else{ge=eN;var Ke=WA}else P=H.nodeName,!P||P.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?z&&ch(z.elementType)&&(ge=Bg):ge=tN;if(ge&&(ge=ge(r,z))){Lg(J,ge,l,K);break e}Ke&&Ke(r,H,z),r==="focusout"&&z&&H.type==="number"&&z.memoizedProps.value!=null&&uh(H,"number",H.value)}switch(Ke=z?Ot(z):window,r){case"focusin":($g(Ke)||Ke.contentEditable==="true")&&(sl=Ke,Oh=z,ko=null);break;case"focusout":ko=Oh=sl=null;break;case"mousedown":Th=!0;break;case"contextmenu":case"mouseup":case"dragend":Th=!1,Yg(J,l,K);break;case"selectionchange":if(aN)break;case"keydown":case"keyup":Yg(J,l,K)}var Ne;if(Sh)e:{switch(r){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else il?Mg(r,l)&&(Ue="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Ue="onCompositionStart");Ue&&(Dg&&l.locale!=="ko"&&(il||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&il&&(Ne=wg()):(Za=K,mh="value"in Za?Za.value:Za.textContent,il=!0)),Ke=yf(z,Ue),0<Ke.length&&(Ue=new Cg(Ue,r,null,l,K),J.push({event:Ue,listeners:Ke}),Ne?Ue.data=Ne:(Ne=Ug(l),Ne!==null&&(Ue.data=Ne)))),(Ne=KA?QA(r,l):XA(r,l))&&(Ue=yf(z,"onBeforeInput"),0<Ue.length&&(Ke=new Cg("onBeforeInput","beforeinput",null,l,K),J.push({event:Ke,listeners:Ue}),Ke.data=Ne)),IN(J,r,z,l,K)}yS(J,i)})}function lu(r,i,l){return{instance:r,listener:i,currentTarget:l}}function yf(r,i){for(var l=i+"Capture",u=[];r!==null;){var f=r,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=To(r,l),f!=null&&u.unshift(lu(r,f,m)),f=To(r,i),f!=null&&u.push(lu(r,f,m))),r.tag===3)return u;r=r.return}return[]}function Rl(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function bS(r,i,l,u,f){for(var m=i._reactName,E=[];l!==null&&l!==u;){var T=l,j=T.alternate,z=T.stateNode;if(T=T.tag,j!==null&&j===u)break;T!==5&&T!==26&&T!==27||z===null||(j=z,f?(z=To(l,m),z!=null&&E.unshift(lu(l,z,j))):f||(z=To(l,m),z!=null&&E.push(lu(l,z,j)))),l=l.return}E.length!==0&&r.push({event:i,listeners:E})}var HN=/\r\n?/g,PN=/\u0000|\uFFFD/g;function SS(r){return(typeof r=="string"?r:""+r).replace(HN,`
|
|
49
|
+
`).replace(PN,"")}function ES(r,i){return i=SS(i),SS(r)===i}function gf(){}function yt(r,i,l,u,f,m){switch(l){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||nl(r,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&nl(r,""+u);break;case"className":ca(r,"class",u);break;case"tabIndex":ca(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ca(r,l,u);break;case"style":xg(r,u,m);break;case"data":if(i!=="object"){ca(r,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||l!=="href")){r.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Tc(""+u),r.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){r.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"?(i!=="input"&&yt(r,i,"name",f.name,f,null),yt(r,i,"formEncType",f.formEncType,f,null),yt(r,i,"formMethod",f.formMethod,f,null),yt(r,i,"formTarget",f.formTarget,f,null)):(yt(r,i,"encType",f.encType,f,null),yt(r,i,"method",f.method,f,null),yt(r,i,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Tc(""+u),r.setAttribute(l,u);break;case"onClick":u!=null&&(r.onclick=gf);break;case"onScroll":u!=null&&Xe("scroll",r);break;case"onScrollEnd":u!=null&&Xe("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.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"){r.removeAttribute("xlink:href");break}l=Tc(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","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"?r.setAttribute(l,""+u):r.removeAttribute(l);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":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":u===!0?r.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,u):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(l,u):r.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(l):r.setAttribute(l,u);break;case"popover":Xe("beforetoggle",r),Xe("toggle",r),Jn(r,"popover",u);break;case"xlinkActuate":Ye(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ye(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ye(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ye(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ye(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ye(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ye(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ye(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ye(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Jn(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=EA.get(l)||l,Jn(r,l,u))}}function Kp(r,i,l,u,f,m){switch(l){case"style":xg(r,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"children":typeof u=="string"?nl(r,u):(typeof u=="number"||typeof u=="bigint")&&nl(r,""+u);break;case"onScroll":u!=null&&Xe("scroll",r);break;case"onScrollEnd":u!=null&&Xe("scrollend",r);break;case"onClick":u!=null&&(r.onclick=gf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ya.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),i=l.slice(2,f?l.length-7:void 0),m=r[oe]||null,m=m!=null?m[l]:null,typeof m=="function"&&r.removeEventListener(i,m,f),typeof u=="function")){typeof m!="function"&&m!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(i,u,f);break e}l in r?r[l]=u:u===!0?r.setAttribute(l,""):Jn(r,l,u)}}}function rn(r,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",r),Xe("load",r);var u=!1,f=!1,m;for(m in l)if(l.hasOwnProperty(m)){var E=l[m];if(E!=null)switch(m){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:yt(r,i,m,E,l,null)}}f&&yt(r,i,"srcSet",l.srcSet,l,null),u&&yt(r,i,"src",l.src,l,null);return;case"input":Xe("invalid",r);var T=m=E=f=null,j=null,z=null;for(u in l)if(l.hasOwnProperty(u)){var K=l[u];if(K!=null)switch(u){case"name":f=K;break;case"type":E=K;break;case"checked":j=K;break;case"defaultChecked":z=K;break;case"value":m=K;break;case"defaultValue":T=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(a(137,i));break;default:yt(r,i,u,K,l,null)}}bg(r,m,T,j,z,E,f,!1),xc(r);return;case"select":Xe("invalid",r),u=E=m=null;for(f in l)if(l.hasOwnProperty(f)&&(T=l[f],T!=null))switch(f){case"value":m=T;break;case"defaultValue":E=T;break;case"multiple":u=T;default:yt(r,i,f,T,l,null)}i=m,l=E,r.multiple=!!u,i!=null?tl(r,!!u,i,!1):l!=null&&tl(r,!!u,l,!0);return;case"textarea":Xe("invalid",r),m=f=u=null;for(E in l)if(l.hasOwnProperty(E)&&(T=l[E],T!=null))switch(E){case"value":u=T;break;case"defaultValue":f=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:yt(r,i,E,T,l,null)}Eg(r,u,f,m),xc(r);return;case"option":for(j in l)if(l.hasOwnProperty(j)&&(u=l[j],u!=null))switch(j){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:yt(r,i,j,u,l,null)}return;case"dialog":Xe("beforetoggle",r),Xe("toggle",r),Xe("cancel",r),Xe("close",r);break;case"iframe":case"object":Xe("load",r);break;case"video":case"audio":for(u=0;u<su.length;u++)Xe(su[u],r);break;case"image":Xe("error",r),Xe("load",r);break;case"details":Xe("toggle",r);break;case"embed":case"source":case"link":Xe("error",r),Xe("load",r);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(a(137,i));default:yt(r,i,z,u,l,null)}return;default:if(ch(i)){for(K in l)l.hasOwnProperty(K)&&(u=l[K],u!==void 0&&Kp(r,i,K,u,l,void 0));return}}for(T in l)l.hasOwnProperty(T)&&(u=l[T],u!=null&&yt(r,i,T,u,l,null))}function GN(r,i,l,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,E=null,T=null,j=null,z=null,K=null;for(P in l){var J=l[P];if(l.hasOwnProperty(P)&&J!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":j=J;default:u.hasOwnProperty(P)||yt(r,i,P,null,u,J)}}for(var H in u){var P=u[H];if(J=l[H],u.hasOwnProperty(H)&&(P!=null||J!=null))switch(H){case"type":m=P;break;case"name":f=P;break;case"checked":z=P;break;case"defaultChecked":K=P;break;case"value":E=P;break;case"defaultValue":T=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,i));break;default:P!==J&&yt(r,i,H,P,u,J)}}oh(r,E,T,j,z,K,m,f);return;case"select":P=E=T=H=null;for(m in l)if(j=l[m],l.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":P=j;default:u.hasOwnProperty(m)||yt(r,i,m,null,u,j)}for(f in u)if(m=u[f],j=l[f],u.hasOwnProperty(f)&&(m!=null||j!=null))switch(f){case"value":H=m;break;case"defaultValue":T=m;break;case"multiple":E=m;default:m!==j&&yt(r,i,f,m,u,j)}i=T,l=E,u=P,H!=null?tl(r,!!l,H,!1):!!u!=!!l&&(i!=null?tl(r,!!l,i,!0):tl(r,!!l,l?[]:"",!1));return;case"textarea":P=H=null;for(T in l)if(f=l[T],l.hasOwnProperty(T)&&f!=null&&!u.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:yt(r,i,T,null,u,f)}for(E in u)if(f=u[E],m=l[E],u.hasOwnProperty(E)&&(f!=null||m!=null))switch(E){case"value":H=f;break;case"defaultValue":P=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==m&&yt(r,i,E,f,u,m)}Sg(r,H,P);return;case"option":for(var Be in l)if(H=l[Be],l.hasOwnProperty(Be)&&H!=null&&!u.hasOwnProperty(Be))switch(Be){case"selected":r.selected=!1;break;default:yt(r,i,Be,null,u,H)}for(j in u)if(H=u[j],P=l[j],u.hasOwnProperty(j)&&H!==P&&(H!=null||P!=null))switch(j){case"selected":r.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:yt(r,i,j,H,u,P)}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 Me in l)H=l[Me],l.hasOwnProperty(Me)&&H!=null&&!u.hasOwnProperty(Me)&&yt(r,i,Me,null,u,H);for(z in u)if(H=u[z],P=l[z],u.hasOwnProperty(z)&&H!==P&&(H!=null||P!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,i));break;default:yt(r,i,z,H,u,P)}return;default:if(ch(i)){for(var gt in l)H=l[gt],l.hasOwnProperty(gt)&&H!==void 0&&!u.hasOwnProperty(gt)&&Kp(r,i,gt,void 0,u,H);for(K in u)H=u[K],P=l[K],!u.hasOwnProperty(K)||H===P||H===void 0&&P===void 0||Kp(r,i,K,H,u,P);return}}for(var B in l)H=l[B],l.hasOwnProperty(B)&&H!=null&&!u.hasOwnProperty(B)&&yt(r,i,B,null,u,H);for(J in u)H=u[J],P=l[J],!u.hasOwnProperty(J)||H===P||H==null&&P==null||yt(r,i,J,H,u,P)}var Qp=null,Xp=null;function bf(r){return r.nodeType===9?r:r.ownerDocument}function _S(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xS(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function Zp(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Jp=null;function YN(){var r=window.event;return r&&r.type==="popstate"?r===Jp?!1:(Jp=r,!0):(Jp=null,!1)}var OS=typeof setTimeout=="function"?setTimeout:void 0,KN=typeof clearTimeout=="function"?clearTimeout:void 0,TS=typeof Promise=="function"?Promise:void 0,QN=typeof queueMicrotask=="function"?queueMicrotask:typeof TS<"u"?function(r){return TS.resolve(null).then(r).catch(XN)}:OS;function XN(r){setTimeout(function(){throw r})}function hi(r){return r==="head"}function wS(r,i){var l=i,u=0,f=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"){if(0<u&&8>u){l=u;var E=r.ownerDocument;if(l&1&&ou(E.documentElement),l&2&&ou(E.body),l&4)for(l=E.head,ou(l),E=l.firstChild;E;){var T=E.nextSibling,j=E.nodeName;E[Le]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&E.rel.toLowerCase()==="stylesheet"||l.removeChild(E),E=T}}if(f===0){r.removeChild(m),vu(i);return}f--}else l==="$"||l==="$?"||l==="$!"?f++:u=l.charCodeAt(0)-48;else u=0;l=m}while(l);vu(i)}function Wp(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Wp(l),Ae(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function ZN(r,i,l,u){for(;r.nodeType===1;){var f=l;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[Le])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(m=r.getAttribute("rel"),m==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(m!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(m=r.getAttribute("src"),(m!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===m)return r}else return r;if(r=xr(r.nextSibling),r===null)break}return null}function JN(r,i,l){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=xr(r.nextSibling),r===null))return null;return r}function em(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState==="complete"}function WN(r,i){var l=r.ownerDocument;if(r.data!=="$?"||l.readyState==="complete")i();else{var u=function(){i(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function xr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return r}var tm=null;function AS(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return r;i--}else l==="/$"&&i++}r=r.previousSibling}return null}function NS(r,i,l){switch(i=bf(l),r){case"html":if(r=i.documentElement,!r)throw Error(a(452));return r;case"head":if(r=i.head,!r)throw Error(a(453));return r;case"body":if(r=i.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function ou(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Ae(r)}var sr=new Map,CS=new Set;function Sf(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Oa=te.d;te.d={f:eC,r:tC,D:nC,C:rC,L:aC,m:iC,X:lC,S:sC,M:oC};function eC(){var r=Oa.f(),i=ff();return r||i}function tC(r){var i=nt(r);i!==null&&i.tag===5&&i.type==="form"?Q0(i):Oa.r(r)}var Dl=typeof document>"u"?null:document;function RS(r,i,l){var u=Dl;if(u&&typeof i=="string"&&i){var f=Wn(i);f='link[rel="'+r+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),CS.has(f)||(CS.add(f),r={rel:r,crossOrigin:l,href:i},u.querySelector(f)===null&&(i=u.createElement("link"),rn(i,"link",r),it(i),u.head.appendChild(i)))}}function nC(r){Oa.D(r),RS("dns-prefetch",r,null)}function rC(r,i){Oa.C(r,i),RS("preconnect",r,i)}function aC(r,i,l){Oa.L(r,i,l);var u=Dl;if(u&&r&&i){var f='link[rel="preload"][as="'+Wn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Wn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Wn(l.imageSizes)+'"]')):f+='[href="'+Wn(r)+'"]';var m=f;switch(i){case"style":m=jl(r);break;case"script":m=kl(r)}sr.has(m)||(r=v({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:r,as:i},l),sr.set(m,r),u.querySelector(f)!==null||i==="style"&&u.querySelector(uu(m))||i==="script"&&u.querySelector(cu(m))||(i=u.createElement("link"),rn(i,"link",r),it(i),u.head.appendChild(i)))}}function iC(r,i){Oa.m(r,i);var l=Dl;if(l&&r){var u=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+Wn(u)+'"][href="'+Wn(r)+'"]',m=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=kl(r)}if(!sr.has(m)&&(r=v({rel:"modulepreload",href:r},i),sr.set(m,r),l.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(cu(m)))return}u=l.createElement("link"),rn(u,"link",r),it(u),l.head.appendChild(u)}}}function sC(r,i,l){Oa.S(r,i,l);var u=Dl;if(u&&r){var f=Dt(u).hoistableStyles,m=jl(r);i=i||"default";var E=f.get(m);if(!E){var T={loading:0,preload:null};if(E=u.querySelector(uu(m)))T.loading=5;else{r=v({rel:"stylesheet",href:r,"data-precedence":i},l),(l=sr.get(m))&&nm(r,l);var j=E=u.createElement("link");it(j),rn(j,"link",r),j._p=new Promise(function(z,K){j.onload=z,j.onerror=K}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Ef(E,i,u)}E={type:"stylesheet",instance:E,count:1,state:T},f.set(m,E)}}}function lC(r,i){Oa.X(r,i);var l=Dl;if(l&&r){var u=Dt(l).hoistableScripts,f=kl(r),m=u.get(f);m||(m=l.querySelector(cu(f)),m||(r=v({src:r,async:!0},i),(i=sr.get(f))&&rm(r,i),m=l.createElement("script"),it(m),rn(m,"link",r),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(f,m))}}function oC(r,i){Oa.M(r,i);var l=Dl;if(l&&r){var u=Dt(l).hoistableScripts,f=kl(r),m=u.get(f);m||(m=l.querySelector(cu(f)),m||(r=v({src:r,async:!0,type:"module"},i),(i=sr.get(f))&&rm(r,i),m=l.createElement("script"),it(m),rn(m,"link",r),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(f,m))}}function DS(r,i,l,u){var f=(f=me.current)?Sf(f):null;if(!f)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=jl(l.href),l=Dt(f).hoistableStyles,u=l.get(i),u||(u={type:"style",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=jl(l.href);var m=Dt(f).hoistableStyles,E=m.get(r);if(E||(f=f.ownerDocument||f,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(r,E),(m=f.querySelector(uu(r)))&&!m._p&&(E.instance=m,E.state.loading=5),sr.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},sr.set(r,l),m||uC(f,r,l,E.state))),i&&u===null)throw Error(a(528,""));return E}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=kl(l),l=Dt(f).hoistableScripts,u=l.get(i),u||(u={type:"script",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function jl(r){return'href="'+Wn(r)+'"'}function uu(r){return'link[rel="stylesheet"]['+r+"]"}function jS(r){return v({},r,{"data-precedence":r.precedence,precedence:null})}function uC(r,i,l,u){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=r.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),rn(i,"link",l),it(i),r.head.appendChild(i))}function kl(r){return'[src="'+Wn(r)+'"]'}function cu(r){return"script[async]"+r}function kS(r,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=r.querySelector('style[data-href~="'+Wn(l.href)+'"]');if(u)return i.instance=u,it(u),u;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),it(u),rn(u,"style",f),Ef(u,l.precedence,r),i.instance=u;case"stylesheet":f=jl(l.href);var m=r.querySelector(uu(f));if(m)return i.state.loading|=4,i.instance=m,it(m),m;u=jS(l),(f=sr.get(f))&&nm(u,f),m=(r.ownerDocument||r).createElement("link"),it(m);var E=m;return E._p=new Promise(function(T,j){E.onload=T,E.onerror=j}),rn(m,"link",u),i.state.loading|=4,Ef(m,l.precedence,r),i.instance=m;case"script":return m=kl(l.src),(f=r.querySelector(cu(m)))?(i.instance=f,it(f),f):(u=l,(f=sr.get(m))&&(u=v({},l),rm(u,f)),r=r.ownerDocument||r,f=r.createElement("script"),it(f),rn(f,"link",u),r.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Ef(u,l.precedence,r));return i.instance}function Ef(r,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,m=f,E=0;E<u.length;E++){var T=u[E];if(T.dataset.precedence===i)m=T;else if(m!==f)break}m?m.parentNode.insertBefore(r,m.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(r,i.firstChild))}function nm(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function rm(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var _f=null;function MS(r,i,l){if(_f===null){var u=new Map,f=_f=new Map;f.set(l,u)}else f=_f,u=f.get(l),u||(u=new Map,f.set(l,u));if(u.has(r))return u;for(u.set(r,null),l=l.getElementsByTagName(r),f=0;f<l.length;f++){var m=l[f];if(!(m[Le]||m[ee]||r==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var E=m.getAttribute(i)||"";E=r+E;var T=u.get(E);T?T.push(m):u.set(E,[m])}}return u}function US(r,i,l){r=r.ownerDocument||r,r.head.insertBefore(l,i==="title"?r.querySelector("head > title"):null)}function cC(r,i,l){if(l===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return r=i.disabled,typeof i.precedence=="string"&&r==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function $S(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var fu=null;function fC(){}function dC(r,i,l){if(fu===null)throw Error(a(475));var u=fu;if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=jl(l.href),m=r.querySelector(uu(f));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(u.count++,u=xf.bind(u),r.then(u,u)),i.state.loading|=4,i.instance=m,it(m);return}m=r.ownerDocument||r,l=jS(l),(f=sr.get(f))&&nm(l,f),m=m.createElement("link"),it(m);var E=m;E._p=new Promise(function(T,j){E.onload=T,E.onerror=j}),rn(m,"link",l),i.instance=m}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(u.count++,i=xf.bind(u),r.addEventListener("load",i),r.addEventListener("error",i))}}function hC(){if(fu===null)throw Error(a(475));var r=fu;return r.stylesheets&&r.count===0&&am(r,r.stylesheets),0<r.count?function(i){var l=setTimeout(function(){if(r.stylesheets&&am(r,r.stylesheets),r.unsuspend){var u=r.unsuspend;r.unsuspend=null,u()}},6e4);return r.unsuspend=i,function(){r.unsuspend=null,clearTimeout(l)}}:null}function xf(){if(this.count--,this.count===0){if(this.stylesheets)am(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Of=null;function am(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Of=new Map,i.forEach(pC,r),Of=null,xf.call(r))}function pC(r,i){if(!(i.state.loading&4)){var l=Of.get(r);if(l)var u=l.get(null);else{l=new Map,Of.set(r,l);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var E=f[m];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(l.set(E.dataset.precedence,E),u=E)}u&&l.set(null,u)}f=i.instance,E=f.getAttribute("data-precedence"),m=l.get(E)||u,m===u&&l.set(null,f),l.set(E,f),this.count++,u=xf.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),m?m.parentNode.insertBefore(f,m.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),i.state.loading|=4}}var du={$$typeof:D,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function mC(r,i,l,u,f,m,E,T){this.tag=1,this.containerInfo=r,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=el(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.hiddenUpdates=el(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function LS(r,i,l,u,f,m,E,T,j,z,K,J){return r=new mC(r,i,l,E,T,j,z,J),i=1,m===!0&&(i|=24),m=jn(3,null,null,i),r.current=m,m.stateNode=r,i=Fh(),i.refCount++,r.pooledCache=i,i.refCount++,m.memoizedState={element:u,isDehydrated:l,cache:i},Vh(m),r}function BS(r){return r?(r=cl,r):cl}function FS(r,i,l,u,f,m){f=BS(f),u.context===null?u.context=f:u.pendingContext=f,u=ei(i),u.payload={element:l},m=m===void 0?null:m,m!==null&&(u.callback=m),l=ti(r,u,i),l!==null&&(Ln(l,r,i),qo(l,r,i))}function IS(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function im(r,i){IS(r,i),(r=r.alternate)&&IS(r,i)}function zS(r){if(r.tag===13){var i=ul(r,67108864);i!==null&&Ln(i,r,67108864),im(r,67108864)}}var Tf=!0;function vC(r,i,l,u){var f=L.T;L.T=null;var m=te.p;try{te.p=2,sm(r,i,l,u)}finally{te.p=m,L.T=f}}function yC(r,i,l,u){var f=L.T;L.T=null;var m=te.p;try{te.p=8,sm(r,i,l,u)}finally{te.p=m,L.T=f}}function sm(r,i,l,u){if(Tf){var f=lm(u);if(f===null)Yp(r,i,u,wf,l),VS(r,u);else if(bC(f,r,i,l,u))u.stopPropagation();else if(VS(r,u),i&4&&-1<gC.indexOf(r)){for(;f!==null;){var m=nt(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var E=ua(m.pendingLanes);if(E!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;E;){var j=1<<31-bt(E);T.entanglements[1]|=j,E&=~j}Hr(m),(ht&6)===0&&(uf=At()+500,iu(0))}}break;case 13:T=ul(m,2),T!==null&&Ln(T,m,2),ff(),im(m,2)}if(m=lm(u),m===null&&Yp(r,i,u,wf,l),m===f)break;f=m}f!==null&&u.stopPropagation()}else Yp(r,i,u,null,l)}}function lm(r){return r=dh(r),om(r)}var wf=null;function om(r){if(wf=null,r=Ie(r),r!==null){var i=o(r);if(i===null)r=null;else{var l=i.tag;if(l===13){if(r=c(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return wf=r,null}function qS(r){switch(r){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(la()){case Xn:return 2;case ln:return 8;case hn:case V:return 32;case ce:return 268435456;default:return 32}default:return 32}}var um=!1,pi=null,mi=null,vi=null,hu=new Map,pu=new Map,yi=[],gC="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 VS(r,i){switch(r){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":hu.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":pu.delete(i.pointerId)}}function mu(r,i,l,u,f,m){return r===null||r.nativeEvent!==m?(r={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[f]},i!==null&&(i=nt(i),i!==null&&zS(i)),r):(r.eventSystemFlags|=u,i=r.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),r)}function bC(r,i,l,u,f){switch(i){case"focusin":return pi=mu(pi,r,i,l,u,f),!0;case"dragenter":return mi=mu(mi,r,i,l,u,f),!0;case"mouseover":return vi=mu(vi,r,i,l,u,f),!0;case"pointerover":var m=f.pointerId;return hu.set(m,mu(hu.get(m)||null,r,i,l,u,f)),!0;case"gotpointercapture":return m=f.pointerId,pu.set(m,mu(pu.get(m)||null,r,i,l,u,f)),!0}return!1}function HS(r){var i=Ie(r.target);if(i!==null){var l=o(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){r.blockedOn=i,F(r.priority,function(){if(l.tag===13){var u=$n();u=Eo(u);var f=ul(l,u);f!==null&&Ln(f,l,u),im(l,u)}});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Af(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=lm(r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);fh=u,l.target.dispatchEvent(u),fh=null}else return i=nt(l),i!==null&&zS(i),r.blockedOn=l,!1;i.shift()}return!0}function PS(r,i,l){Af(r)&&l.delete(i)}function SC(){um=!1,pi!==null&&Af(pi)&&(pi=null),mi!==null&&Af(mi)&&(mi=null),vi!==null&&Af(vi)&&(vi=null),hu.forEach(PS),pu.forEach(PS)}function Nf(r,i){r.blockedOn===i&&(r.blockedOn=null,um||(um=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,SC)))}var Cf=null;function GS(r){Cf!==r&&(Cf=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cf===r&&(Cf=null);for(var i=0;i<r.length;i+=3){var l=r[i],u=r[i+1],f=r[i+2];if(typeof u!="function"){if(om(u||l)===null)continue;break}var m=nt(l);m!==null&&(r.splice(i,3),i-=3,op(m,{pending:!0,data:f,method:l.method,action:u},u,f))}}))}function vu(r){function i(j){return Nf(j,r)}pi!==null&&Nf(pi,r),mi!==null&&Nf(mi,r),vi!==null&&Nf(vi,r),hu.forEach(i),pu.forEach(i);for(var l=0;l<yi.length;l++){var u=yi[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<yi.length&&(l=yi[0],l.blockedOn===null);)HS(l),l.blockedOn===null&&yi.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var f=l[u],m=l[u+1],E=f[oe]||null;if(typeof m=="function")E||GS(l);else if(E){var T=null;if(m&&m.hasAttribute("formAction")){if(f=m,E=m[oe]||null)T=E.formAction;else if(om(f)!==null)continue}else T=E.action;typeof T=="function"?l[u+1]=T:(l.splice(u,3),u-=3),GS(l)}}}function cm(r){this._internalRoot=r}Rf.prototype.render=cm.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=$n();FS(l,u,r,i,null,null)},Rf.prototype.unmount=cm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;FS(r.current,2,null,r,null,null),ff(),i[Oe]=null}};function Rf(r){this._internalRoot=r}Rf.prototype.unstable_scheduleHydration=function(r){if(r){var i=M();r={blockedOn:null,target:r,priority:i};for(var l=0;l<yi.length&&i!==0&&i<yi[l].priority;l++);yi.splice(l,0,r),l===0&&HS(r)}};var YS=t.version;if(YS!=="19.1.0")throw Error(a(527,YS,"19.1.0"));te.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=d(i),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var EC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Df.isDisabled&&Df.supportsFiber)try{ue=Df.inject(EC),ye=Df}catch{}}return gu.createRoot=function(r,i){if(!s(r))throw Error(a(299));var l=!1,u="",f=ub,m=cb,E=fb,T=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(T=i.unstable_transitionCallbacks)),i=LS(r,1,!1,null,null,l,u,f,m,E,T,null),r[Oe]=i.current,Gp(r),new cm(i)},gu.hydrateRoot=function(r,i,l){if(!s(r))throw Error(a(299));var u=!1,f="",m=ub,E=cb,T=fb,j=null,z=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(E=l.onCaughtError),l.onRecoverableError!==void 0&&(T=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(j=l.unstable_transitionCallbacks),l.formState!==void 0&&(z=l.formState)),i=LS(r,1,!0,i,l??null,u,f,m,E,T,j,z),i.context=BS(null),l=i.current,u=$n(),u=Eo(u),f=ei(u),f.callback=null,ti(l,f,u),l=u,i.current.lanes=l,Ki(i,l),Hr(i),r[Oe]=i.current,Gp(r),new Rf(i)},gu.version="19.1.0",gu}var aE;function kC(){if(aE)return hm.exports;aE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hm.exports=jC(),hm.exports}var MC=kC(),S=Rd();const mt=Bs(S);var bu={},iE;function UC(){if(iE)return bu;iE=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.parse=c,bu.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,o=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function c(y,_){const x=new o,A=y.length;if(A<2)return x;const N=(_==null?void 0:_.decode)||v;let O=0;do{const R=y.indexOf("=",O);if(R===-1)break;const D=y.indexOf(";",O),U=D===-1?A:D;if(R>U){O=y.lastIndexOf(";",R-1)+1;continue}const C=h(y,O,R),w=d(y,R,C),q=y.slice(C,w);if(x[q]===void 0){let re=h(y,R+1,U),Q=d(y,U,re);const he=N(y.slice(re,Q));x[q]=he}O=U+1}while(O<A);return x}function h(y,_,x){do{const A=y.charCodeAt(_);if(A!==32&&A!==9)return _}while(++_<x);return x}function d(y,_,x){for(;_>x;){const A=y.charCodeAt(--_);if(A!==32&&A!==9)return _+1}return x}function p(y,_,x){const A=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const N=A(_);if(!t.test(N))throw new TypeError(`argument val is invalid: ${_}`);let O=y+"="+N;if(!x)return O;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);O+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);O+="; Domain="+x.domain}if(x.path){if(!a.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);O+="; Path="+x.path}if(x.expires){if(!b(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);O+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(O+="; HttpOnly"),x.secure&&(O+="; Secure"),x.partitioned&&(O+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return O}function v(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function b(y){return s.call(y)==="[object Date]"}return bu}UC();/**
|
|
50
50
|
* react-router v7.5.3
|
|
51
51
|
*
|
|
52
52
|
* Copyright (c) Remix Software Inc.
|
|
@@ -55,10 +55,10 @@ Error generating stack: `+l.message+`
|
|
|
55
55
|
* LICENSE.md file in the root directory of this source tree.
|
|
56
56
|
*
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/var Zx=e=>{throw TypeError(e)},RC=(e,t,n)=>t.has(e)||Zx("Cannot "+n),gm=(e,t,n)=>(RC(e,t,"read from private field"),n?n.call(e):t.get(e)),DC=(e,t,n)=>t.has(e)?Zx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),sE="popstate";function jC(e={}){function t(a,s){let{pathname:o,search:c,hash:h}=a.location;return Bu("",{pathname:o,search:c,hash:h},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(a,s){return typeof s=="string"?s:ji(s)}return MC(t,n,null,e)}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kC(){return Math.random().toString(36).substring(2,10)}function lE(e,t){return{usr:e.state,key:e.key,idx:t}}function Bu(e,t,n=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fi(t):t,state:n,key:t&&t.key||a||kC()}}function ji({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function MC(e,t,n,a={}){let{window:s=document.defaultView,v5Compat:o=!1}=a,c=s.history,h="POP",d=null,p=v();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function v(){return(c.state||{idx:null}).idx}function b(){h="POP";let N=v(),O=N==null?null:N-p;p=N,d&&d({action:h,location:A.location,delta:O})}function y(N,O){h="PUSH";let R=Bu(A.location,N,O);p=v()+1;let D=lE(R,p),U=A.createHref(R);try{c.pushState(D,"",U)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(U)}o&&d&&d({action:h,location:A.location,delta:1})}function _(N,O){h="REPLACE";let R=Bu(A.location,N,O);p=v();let D=lE(R,p),U=A.createHref(R);c.replaceState(D,"",U),o&&d&&d({action:h,location:A.location,delta:0})}function x(N){let O=s.location.origin!=="null"?s.location.origin:s.location.href,R=typeof N=="string"?N:ji(N);return R=R.replace(/ $/,"%20"),Ze(O,`No window.location.(origin|href) available to create URL for href: ${R}`),new URL(R,O)}let A={get action(){return h},get location(){return e(s,c)},listen(N){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(sE,b),d=N,()=>{s.removeEventListener(sE,b),d=null}},createHref(N){return t(s,N)},createURL:x,encodeLocation(N){let O=x(N);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:_,go(N){return c.go(N)}};return A}var Au,oE=class{constructor(e){if(DC(this,Au,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(gm(this,Au).has(e))return gm(this,Au).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){gm(this,Au).set(e,t)}};Au=new WeakMap;var UC=new Set(["lazy","caseSensitive","path","id","index","children"]);function $C(e){return UC.has(e)}var LC=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function BC(e){return LC.has(e)}function FC(e){return e.index===!0}function od(e,t,n=[],a={}){return e.map((s,o)=>{let c=[...n,String(o)],h=typeof s.id=="string"?s.id:c.join("-");if(Ze(s.index!==!0||!s.children,"Cannot specify children on an index route"),Ze(!a[h],`Found a route id collision on id "${h}". Route id's must be globally unique within Data Router usages`),FC(s)){let d={...s,...t(s),id:h};return a[h]=d,d}else{let d={...s,...t(s),id:h,children:void 0};return a[h]=d,s.children&&(d.children=od(s.children,t,c,a)),d}})}function xi(e,t,n="/"){return Qf(e,t,n,!1)}function Qf(e,t,n,a){let s=typeof t=="string"?Fi(t):t,o=mr(s.pathname||"/",n);if(o==null)return null;let c=Jx(e);zC(c);let h=null;for(let d=0;h==null&&d<c.length;++d){let p=JC(o);h=XC(c[d],p,a)}return h}function IC(e,t){let{route:n,pathname:a,params:s}=e;return{id:n.id,pathname:a,params:s,data:t[n.id],handle:n.handle}}function Jx(e,t=[],n=[],a=""){let s=(o,c,h)=>{let d={relativePath:h===void 0?o.path||"":h,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};d.relativePath.startsWith("/")&&(Ze(d.relativePath.startsWith(a),`Absolute route path "${d.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(a.length));let p=Jr([a,d.relativePath]),v=n.concat(d);o.children&&o.children.length>0&&(Ze(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Jx(o.children,t,v,p)),!(o.path==null&&!o.index)&&t.push({path:p,score:KC(p,o.index),routesMeta:v})};return e.forEach((o,c)=>{var h;if(o.path===""||!((h=o.path)!=null&&h.includes("?")))s(o,c);else for(let d of Wx(o.path))s(o,c,d)}),t}function Wx(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(a.length===0)return s?[o,""]:[o];let c=Wx(a.join("/")),h=[];return h.push(...c.map(d=>d===""?o:[o,d].join("/"))),s&&h.push(...c),h.map(d=>e.startsWith("/")&&d===""?"/":d)}function zC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:QC(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var qC=/^:[\w-]+$/,VC=3,HC=2,PC=1,GC=10,YC=-2,uE=e=>e==="*";function KC(e,t){let n=e.split("/"),a=n.length;return n.some(uE)&&(a+=YC),t&&(a+=HC),n.filter(s=>!uE(s)).reduce((s,o)=>s+(qC.test(o)?VC:o===""?PC:GC),a)}function QC(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function XC(e,t,n=!1){let{routesMeta:a}=e,s={},o="/",c=[];for(let h=0;h<a.length;++h){let d=a[h],p=h===a.length-1,v=o==="/"?t:t.slice(o.length)||"/",b=ud({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},v),y=d.route;if(!b&&p&&n&&!a[a.length-1].route.index&&(b=ud({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},v)),!b)return null;Object.assign(s,b.params),c.push({params:s,pathname:Jr([o,b.pathname]),pathnameBase:tR(Jr([o,b.pathnameBase])),route:y}),b.pathnameBase!=="/"&&(o=Jr([o,b.pathnameBase]))}return c}function ud(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=ZC(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:a.reduce((p,{paramName:v,isOptional:b},y)=>{if(v==="*"){let x=h[y]||"";c=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const _=h[y];return b&&!_?p[v]=void 0:p[v]=(_||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:c,pattern:e}}function ZC(e,t=!1,n=!0){qt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,d)=>(a.push({paramName:h,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function JC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function mr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function WC(e,t="/"){let{pathname:n,search:a="",hash:s=""}=typeof e=="string"?Fi(e):e;return{pathname:n?n.startsWith("/")?n:eR(n,t):t,search:nR(a),hash:rR(s)}}function eR(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function bm(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function eO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ay(e){let t=eO(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function iy(e,t,n,a=!1){let s;typeof e=="string"?s=Fi(e):(s={...e},Ze(!s.pathname||!s.pathname.includes("?"),bm("?","pathname","search",s)),Ze(!s.pathname||!s.pathname.includes("#"),bm("#","pathname","hash",s)),Ze(!s.search||!s.search.includes("#"),bm("#","search","hash",s)));let o=e===""||s.pathname==="",c=o?"/":s.pathname,h;if(c==null)h=n;else{let b=t.length-1;if(!a&&c.startsWith("..")){let y=c.split("/");for(;y[0]==="..";)y.shift(),b-=1;s.pathname=y.join("/")}h=b>=0?t[b]:"/"}let d=WC(s,h),p=c&&c!=="/"&&c.endsWith("/"),v=(o||c===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||v)&&(d.pathname+="/"),d}var Jr=e=>e.join("/").replace(/\/\/+/g,"/"),tR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,cd=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Fu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var tO=["POST","PUT","PATCH","DELETE"],aR=new Set(tO),iR=["GET",...tO],sR=new Set(iR),lR=new Set([301,302,303,307,308]),oR=new Set([307,308]),Sm={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uR={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Su={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cR=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),nO="remix-router-transitions",rO=Symbol("ResetLoaderData");function fR(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Ze(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.hydrationRouteProperties||[],s=e.mapRouteProperties||cR,o={},c=od(e.routes,s,void 0,o),h,d=e.basename||"/",p=e.dataStrategy||vR,v={unstable_middleware:!1,...e.future},b=null,y=new Set,_=null,x=null,A=null,N=e.hydrationData!=null,O=xi(c,e.history.location,d),R=!1,D=null;if(O==null&&!e.patchRoutesOnNavigation){let M=or(404,{pathname:e.history.location.pathname}),{matches:F,route:G}=EE(c);O=F,D={[G.id]:M}}O&&!e.hydrationData&&Qi(O,c,e.history.location.pathname).active&&(O=null);let U;if(O)if(O.some(M=>M.route.lazy))U=!1;else if(!O.some(M=>M.route.loader))U=!0;else{let M=e.hydrationData?e.hydrationData.loaderData:null,F=e.hydrationData?e.hydrationData.errors:null;if(F){let G=O.findIndex(ee=>F[ee.route.id]!==void 0);U=O.slice(0,G+1).every(ee=>!iv(ee.route,M,F))}else U=O.every(G=>!iv(G.route,M,F))}else{U=!1,O=[];let M=Qi(null,c,e.history.location.pathname);M.active&&M.matches&&(R=!0,O=M.matches)}let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:U,navigation:Sm,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},q="POP",re=!1,Q,he=!1,ie=new Map,xe=null,fe=!1,me=!1,we=new Set,L=new Map,te=0,le=-1,Ae=new Map,k=new Set,Y=new Map,ae=new Map,ne=new Set,se=new Map,Ee,ve=null;function dt(){if(b=e.history.listen(({action:M,location:F,delta:G})=>{if(Ee){Ee(),Ee=void 0;return}qt(se.size===0||G!=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 ee=Sc({currentLocation:w.location,nextLocation:F,historyAction:M});if(ee&&G!=null){let oe=new Promise(Te=>{Ee=Te});e.history.go(G*-1),Fr(ee,{state:"blocked",location:F,proceed(){Fr(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),oe.then(()=>e.history.go(G))},reset(){let Te=new Map(w.blockers);Te.set(ee,Su),ut({blockers:Te})}});return}return kt(M,F)}),n){AR(t,ie);let M=()=>NR(t,ie);t.addEventListener("pagehide",M),xe=()=>t.removeEventListener("pagehide",M)}return w.initialized||kt("POP",w.location,{initialHydration:!0}),C}function qe(){b&&b(),xe&&xe(),y.clear(),Q&&Q.abort(),w.fetchers.forEach((M,F)=>bt(F)),w.blockers.forEach((M,F)=>Yi(F))}function Rt(M){return y.add(M),()=>y.delete(M)}function ut(M,F={}){w={...w,...M};let G=[],ee=[];w.fetchers.forEach((oe,Te)=>{oe.state==="idle"&&(ne.has(Te)?G.push(Te):ee.push(Te))}),ne.forEach(oe=>{!w.fetchers.has(oe)&&!L.has(oe)&&G.push(oe)}),[...y].forEach(oe=>oe(w,{deletedFetchers:G,viewTransitionOpts:F.viewTransitionOpts,flushSync:F.flushSync===!0})),G.forEach(oe=>bt(oe)),ee.forEach(oe=>w.fetchers.delete(oe))}function wt(M,F,{flushSync:G}={}){var je,Le;let ee=w.actionData!=null&&w.navigation.formMethod!=null&&In(w.navigation.formMethod)&&w.navigation.state==="loading"&&((je=M.state)==null?void 0:je._isRedirect)!==!0,oe;F.actionData?Object.keys(F.actionData).length>0?oe=F.actionData:oe=null:ee?oe=w.actionData:oe=null;let Te=F.loaderData?bE(w.loaderData,F.loaderData,F.matches||[],F.errors):w.loaderData,ke=w.blockers;ke.size>0&&(ke=new Map(ke),ke.forEach((Ne,Ie)=>ke.set(Ie,Su)));let ye=re===!0||w.navigation.formMethod!=null&&In(w.navigation.formMethod)&&((Le=M.state)==null?void 0:Le._isRedirect)!==!0;h&&(c=h,h=void 0),fe||q==="POP"||(q==="PUSH"?e.history.push(M,M.state):q==="REPLACE"&&e.history.replace(M,M.state));let De;if(q==="POP"){let Ne=ie.get(w.location.pathname);Ne&&Ne.has(M.pathname)?De={currentLocation:w.location,nextLocation:M}:ie.has(M.pathname)&&(De={currentLocation:M,nextLocation:w.location})}else if(he){let Ne=ie.get(w.location.pathname);Ne?Ne.add(M.pathname):(Ne=new Set([M.pathname]),ie.set(w.location.pathname,Ne)),De={currentLocation:w.location,nextLocation:M}}ut({...F,actionData:oe,loaderData:Te,historyAction:q,location:M,initialized:!0,navigation:Sm,revalidation:"idle",restoreScrollPosition:_c(M,F.matches||w.matches),preventScrollReset:ye,blockers:ke},{viewTransitionOpts:De,flushSync:G===!0}),q="POP",re=!1,he=!1,fe=!1,me=!1,ve==null||ve.resolve(),ve=null}async function Wt(M,F){if(typeof M=="number"){e.history.go(M);return}let G=av(w.location,w.matches,d,M,F==null?void 0:F.fromRouteId,F==null?void 0:F.relative),{path:ee,submission:oe,error:Te}=cE(!1,G,F),ke=w.location,ye=Bu(w.location,ee,F&&F.state);ye={...ye,...e.history.encodeLocation(ye)};let De=F&&F.replace!=null?F.replace:void 0,je="PUSH";De===!0?je="REPLACE":De===!1||oe!=null&&In(oe.formMethod)&&oe.formAction===w.location.pathname+w.location.search&&(je="REPLACE");let Le=F&&"preventScrollReset"in F?F.preventScrollReset===!0:void 0,Ne=(F&&F.flushSync)===!0,Ie=Sc({currentLocation:ke,nextLocation:ye,historyAction:je});if(Ie){Fr(Ie,{state:"blocked",location:ye,proceed(){Fr(Ie,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),Wt(M,F)},reset(){let nt=new Map(w.blockers);nt.set(Ie,Su),ut({blockers:nt})}});return}await kt(je,ye,{submission:oe,pendingError:Te,preventScrollReset:Le,replace:F&&F.replace,enableViewTransition:F&&F.viewTransition,flushSync:Ne})}function en(){ve||(ve=CR()),Oe(),ut({revalidation:"loading"});let M=ve.promise;return w.navigation.state==="submitting"?M:w.navigation.state==="idle"?(kt(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),M):(kt(q||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:he===!0}),M)}async function kt(M,F,G){Q&&Q.abort(),Q=null,q=M,fe=(G&&G.startUninterruptedRevalidation)===!0,Ki(w.location,w.matches),re=(G&&G.preventScrollReset)===!0,he=(G&&G.enableViewTransition)===!0;let ee=h||c,oe=G&&G.overrideNavigation,Te=G!=null&&G.initialHydration&&w.matches&&w.matches.length>0&&!R?w.matches:xi(ee,F,d),ke=(G&&G.flushSync)===!0;if(Te&&w.initialized&&!me&&_R(w.location,F)&&!(G&&G.submission&&In(G.submission.formMethod))){wt(F,{matches:Te},{flushSync:ke});return}let ye=Qi(Te,ee,F.pathname);if(ye.active&&ye.matches&&(Te=ye.matches),!Te){let{error:Dt,notFoundMatches:it,route:We}=Ws(F.pathname);wt(F,{matches:it,loaderData:{},errors:{[We.id]:Dt}},{flushSync:ke});return}Q=new AbortController;let De=zl(e.history,F,Q.signal,G&&G.submission),je=new oE(e.unstable_getContext?await e.unstable_getContext():void 0),Le;if(G&&G.pendingError)Le=[ys(Te).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&In(G.submission.formMethod)){let Dt=await at(De,F,G.submission,Te,je,ye.active,G&&G.initialHydration===!0,{replace:G.replace,flushSync:ke});if(Dt.shortCircuited)return;if(Dt.pendingActionResult){let[it,We]=Dt.pendingActionResult;if(Fn(We)&&Fu(We.error)&&We.error.status===404){Q=null,wt(F,{matches:Dt.matches,loaderData:{},errors:{[it]:We.error}});return}}Te=Dt.matches||Te,Le=Dt.pendingActionResult,oe=Em(F,G.submission),ke=!1,ye.active=!1,De=zl(e.history,De.url,De.signal)}let{shortCircuited:Ne,matches:Ie,loaderData:nt,errors:Ot}=await Rn(De,F,Te,je,ye.active,oe,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,ke,Le);Ne||(Q=null,wt(F,{matches:Ie||Te,...SE(Le),loaderData:nt,errors:Ot}))}async function at(M,F,G,ee,oe,Te,ke,ye={}){Oe();let De=TR(F,G);if(ut({navigation:De},{flushSync:ye.flushSync===!0}),Te){let Ne=await Xi(ee,F.pathname,M.signal);if(Ne.type==="aborted")return{shortCircuited:!0};if(Ne.type==="error"){let Ie=ys(Ne.partialMatches).route.id;return{matches:Ne.partialMatches,pendingActionResult:[Ie,{type:"error",error:Ne.error}]}}else if(Ne.matches)ee=Ne.matches;else{let{notFoundMatches:Ie,error:nt,route:Ot}=Ws(F.pathname);return{matches:Ie,pendingActionResult:[Ot.id,{type:"error",error:nt}]}}}let je,Le=Nu(ee,F);if(!Le.route.action&&!Le.route.lazy)je={type:"error",error:or(405,{method:M.method,pathname:F.pathname,routeId:Le.route.id})};else{let Ne=Yl(s,o,M,ee,Le,ke?[]:a,oe),Ie=await ce(M,Ne,oe,null);if(je=Ie[Le.route.id],!je){for(let nt of ee)if(Ie[nt.route.id]){je=Ie[nt.route.id];break}}if(M.signal.aborted)return{shortCircuited:!0}}if(gs(je)){let Ne;return ye&&ye.replace!=null?Ne=ye.replace:Ne=vE(je.response.headers.get("Location"),new URL(M.url),d)===w.location.pathname+w.location.search,await V(M,je,!0,{submission:G,replace:Ne}),{shortCircuited:!0}}if(Fn(je)){let Ne=ys(ee,Le.route.id);return(ye&&ye.replace)!==!0&&(q="PUSH"),{matches:ee,pendingActionResult:[Ne.route.id,je,Le.route.id]}}return{matches:ee,pendingActionResult:[Le.route.id,je]}}async function Rn(M,F,G,ee,oe,Te,ke,ye,De,je,Le,Ne){let Ie=Te||Em(F,ke),nt=ke||ye||xE(Ie),Ot=!fe&&!je;if(oe){if(Ot){let on=At(Ne);ut({navigation:Ie,...on!==void 0?{actionData:on}:{}},{flushSync:Le})}let Ye=await Xi(G,F.pathname,M.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let on=ys(Ye.partialMatches).route.id;return{matches:Ye.partialMatches,loaderData:{},errors:{[on]:Ye.error}}}else if(Ye.matches)G=Ye.matches;else{let{error:on,notFoundMatches:br,route:Sr}=Ws(F.pathname);return{matches:br,loaderData:{},errors:{[Sr.id]:on}}}}let Dt=h||c,{dsMatches:it,revalidatingFetchers:We}=fE(M,ee,s,o,e.history,w,G,nt,F,je?[]:a,je===!0,me,we,ne,Y,k,Dt,d,Ne);if(le=++te,!e.dataStrategy&&!it.some(Ye=>Ye.shouldLoad)&&We.length===0){let Ye=Br();return wt(F,{matches:G,loaderData:{},errors:Ne&&Fn(Ne[1])?{[Ne[0]]:Ne[1].error}:null,...SE(Ne),...Ye?{fetchers:new Map(w.fetchers)}:{}},{flushSync:Le}),{shortCircuited:!0}}if(Ot){let Ye={};if(!oe){Ye.navigation=Ie;let on=At(Ne);on!==void 0&&(Ye.actionData=on)}We.length>0&&(Ye.fetchers=la(We)),ut(Ye,{flushSync:Le})}We.forEach(Ye=>{gn(Ye.key),Ye.controller&&L.set(Ye.key,Ye.controller)});let Ya=()=>We.forEach(Ye=>gn(Ye.key));Q&&Q.signal.addEventListener("abort",Ya);let{loaderResults:pn,fetcherResults:Xn}=await pe(it,We,M,ee);if(M.signal.aborted)return{shortCircuited:!0};Q&&Q.signal.removeEventListener("abort",Ya),We.forEach(Ye=>L.delete(Ye.key));let bn=kf(pn);if(bn)return await V(M,bn.result,!0,{replace:De}),{shortCircuited:!0};if(bn=kf(Xn),bn)return k.add(bn.key),await V(M,bn.result,!0,{replace:De}),{shortCircuited:!0};let{loaderData:Ka,errors:Qa}=gE(w,G,pn,Ne,We,Xn);je&&w.errors&&(Qa={...w.errors,...Qa});let xo=Br(),Zn=oa(le),ca=xo||Zn||We.length>0;return{matches:G,loaderData:Ka,errors:Qa,...ca?{fetchers:new Map(w.fetchers)}:{}}}function At(M){if(M&&!Fn(M[1]))return{[M[0]]:M[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function la(M){return M.forEach(F=>{let G=w.fetchers.get(F.key),ee=Eu(void 0,G?G.data:void 0);w.fetchers.set(F.key,ee)}),new Map(w.fetchers)}async function Qn(M,F,G,ee){gn(M);let oe=(ee&&ee.flushSync)===!0,Te=h||c,ke=av(w.location,w.matches,d,G,F,ee==null?void 0:ee.relative),ye=xi(Te,ke,d),De=Qi(ye,Te,ke);if(De.active&&De.matches&&(ye=De.matches),!ye){ge(M,F,or(404,{pathname:ke}),{flushSync:oe});return}let{path:je,submission:Le,error:Ne}=cE(!0,ke,ee);if(Ne){ge(M,F,Ne,{flushSync:oe});return}let Ie=Nu(ye,je),nt=new oE(e.unstable_getContext?await e.unstable_getContext():void 0),Ot=(ee&&ee.preventScrollReset)===!0;if(Le&&In(Le.formMethod)){await ln(M,F,je,Ie,ye,nt,De.active,oe,Ot,Le);return}Y.set(M,{routeId:F,path:je}),await hn(M,F,je,Ie,ye,nt,De.active,oe,Ot,Le)}async function ln(M,F,G,ee,oe,Te,ke,ye,De,je){Oe(),Y.delete(M);function Le(Nt){if(!Nt.route.action&&!Nt.route.lazy){let Xa=or(405,{method:je.formMethod,pathname:G,routeId:F});return ge(M,F,Xa,{flushSync:ye}),!0}return!1}if(!ke&&Le(ee))return;let Ne=w.fetchers.get(M);ue(M,wR(je,Ne),{flushSync:ye});let Ie=new AbortController,nt=zl(e.history,G,Ie.signal,je);if(ke){let Nt=await Xi(oe,G,nt.signal,M);if(Nt.type==="aborted")return;if(Nt.type==="error"){ge(M,F,Nt.error,{flushSync:ye});return}else if(Nt.matches){if(oe=Nt.matches,ee=Nu(oe,G),Le(ee))return}else{ge(M,F,or(404,{pathname:G}),{flushSync:ye});return}}L.set(M,Ie);let Ot=te,Dt=Yl(s,o,nt,oe,ee,a,Te),We=(await ce(nt,Dt,Te,M))[ee.route.id];if(nt.signal.aborted){L.get(M)===Ie&&L.delete(M);return}if(ne.has(M)){if(gs(We)||Fn(We)){ue(M,bi(void 0));return}}else{if(gs(We))if(L.delete(M),le>Ot){ue(M,bi(void 0));return}else return k.add(M),ue(M,Eu(je)),V(nt,We,!1,{fetcherSubmission:je,preventScrollReset:De});if(Fn(We)){ge(M,F,We.error);return}}let Ya=w.navigation.location||w.location,pn=zl(e.history,Ya,Ie.signal),Xn=h||c,bn=w.navigation.state!=="idle"?xi(Xn,w.navigation.location,d):w.matches;Ze(bn,"Didn't find any matches after fetcher action");let Ka=++te;Ae.set(M,Ka);let Qa=Eu(je,We.data);w.fetchers.set(M,Qa);let{dsMatches:xo,revalidatingFetchers:Zn}=fE(pn,Te,s,o,e.history,w,bn,je,Ya,a,!1,me,we,ne,Y,k,Xn,d,[ee.route.id,We]);Zn.filter(Nt=>Nt.key!==M).forEach(Nt=>{let Xa=Nt.key,Oo=w.fetchers.get(Xa),Sn=Eu(void 0,Oo?Oo.data:void 0);w.fetchers.set(Xa,Sn),gn(Xa),Nt.controller&&L.set(Xa,Nt.controller)}),ut({fetchers:new Map(w.fetchers)});let ca=()=>Zn.forEach(Nt=>gn(Nt.key));Ie.signal.addEventListener("abort",ca);let{loaderResults:Ye,fetcherResults:on}=await pe(xo,Zn,pn,Te);if(Ie.signal.aborted)return;Ie.signal.removeEventListener("abort",ca),Ae.delete(M),L.delete(M),Zn.forEach(Nt=>L.delete(Nt.key));let br=kf(Ye);if(br)return V(pn,br.result,!1,{preventScrollReset:De});if(br=kf(on),br)return k.add(br.key),V(pn,br.result,!1,{preventScrollReset:De});let{loaderData:Sr,errors:Zi}=gE(w,bn,Ye,void 0,Zn,on);if(w.fetchers.has(M)){let Nt=bi(We.data);w.fetchers.set(M,Nt)}oa(Ka),w.navigation.state==="loading"&&Ka>le?(Ze(q,"Expected pending action"),Q&&Q.abort(),wt(w.navigation.location,{matches:bn,loaderData:Sr,errors:Zi,fetchers:new Map(w.fetchers)})):(ut({errors:Zi,loaderData:bE(w.loaderData,Sr,bn,Zi),fetchers:new Map(w.fetchers)}),me=!1)}async function hn(M,F,G,ee,oe,Te,ke,ye,De,je){let Le=w.fetchers.get(M);ue(M,Eu(je,Le?Le.data:void 0),{flushSync:ye});let Ne=new AbortController,Ie=zl(e.history,G,Ne.signal);if(ke){let We=await Xi(oe,G,Ie.signal,M);if(We.type==="aborted")return;if(We.type==="error"){ge(M,F,We.error,{flushSync:ye});return}else if(We.matches)oe=We.matches,ee=Nu(oe,G);else{ge(M,F,or(404,{pathname:G}),{flushSync:ye});return}}L.set(M,Ne);let nt=te,Ot=Yl(s,o,Ie,oe,ee,a,Te),it=(await ce(Ie,Ot,Te,M))[ee.route.id];if(L.get(M)===Ne&&L.delete(M),!Ie.signal.aborted){if(ne.has(M)){ue(M,bi(void 0));return}if(gs(it))if(le>nt){ue(M,bi(void 0));return}else{k.add(M),await V(Ie,it,!1,{preventScrollReset:De});return}if(Fn(it)){ge(M,F,it.error);return}ue(M,bi(it.data))}}async function V(M,F,G,{submission:ee,fetcherSubmission:oe,preventScrollReset:Te,replace:ke}={}){F.response.headers.has("X-Remix-Revalidate")&&(me=!0);let ye=F.response.headers.get("Location");Ze(ye,"Expected a Location header on the redirect Response"),ye=vE(ye,new URL(M.url),d);let De=Bu(w.location,ye,{_isRedirect:!0});if(n){let Ot=!1;if(F.response.headers.has("X-Remix-Reload-Document"))Ot=!0;else if(sy.test(ye)){const Dt=e.history.createURL(ye);Ot=Dt.origin!==t.location.origin||mr(Dt.pathname,d)==null}if(Ot){ke?t.location.replace(ye):t.location.assign(ye);return}}Q=null;let je=ke===!0||F.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Le,formAction:Ne,formEncType:Ie}=w.navigation;!ee&&!oe&&Le&&Ne&&Ie&&(ee=xE(w.navigation));let nt=ee||oe;if(oR.has(F.response.status)&&nt&&In(nt.formMethod))await kt(je,De,{submission:{...nt,formAction:ye},preventScrollReset:Te||re,enableViewTransition:G?he:void 0});else{let Ot=Em(De,ee);await kt(je,De,{overrideNavigation:Ot,fetcherSubmission:oe,preventScrollReset:Te||re,enableViewTransition:G?he:void 0})}}async function ce(M,F,G,ee){let oe,Te={};try{oe=await yR(p,M,F,ee,G,!1)}catch(ke){return F.filter(ye=>ye.shouldLoad).forEach(ye=>{Te[ye.route.id]={type:"error",error:ke}}),Te}for(let[ke,ye]of Object.entries(oe))if(xR(ye)){let De=ye.result;Te[ke]={type:"redirect",response:SR(De,M,ke,F,d)}}else Te[ke]=await bR(ye);return Te}async function pe(M,F,G,ee){let oe=ce(G,M,ee,null),Te=Promise.all(F.map(async De=>{if(De.matches&&De.match&&De.request&&De.controller){let Le=(await ce(De.request,De.matches,ee,De.key))[De.match.route.id];return{[De.key]:Le}}else return Promise.resolve({[De.key]:{type:"error",error:or(404,{pathname:De.path})}})})),ke=await oe,ye=(await Te).reduce((De,je)=>Object.assign(De,je),{});return{loaderResults:ke,fetcherResults:ye}}function Oe(){me=!0,Y.forEach((M,F)=>{L.has(F)&&we.add(F),gn(F)})}function ue(M,F,G={}){w.fetchers.set(M,F),ut({fetchers:new Map(w.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function ge(M,F,G,ee={}){let oe=ys(w.matches,F);bt(M),ut({errors:{[oe.route.id]:G},fetchers:new Map(w.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function tt(M){return ae.set(M,(ae.get(M)||0)+1),ne.has(M)&&ne.delete(M),w.fetchers.get(M)||uR}function bt(M){let F=w.fetchers.get(M);L.has(M)&&!(F&&F.state==="loading"&&Ae.has(M))&&gn(M),Y.delete(M),Ae.delete(M),k.delete(M),ne.delete(M),we.delete(M),w.fetchers.delete(M)}function Gi(M){let F=(ae.get(M)||0)-1;F<=0?(ae.delete(M),ne.add(M)):ae.set(M,F),ut({fetchers:new Map(w.fetchers)})}function gn(M){let F=L.get(M);F&&(F.abort(),L.delete(M))}function Js(M){for(let F of M){let G=tt(F),ee=bi(G.data);w.fetchers.set(F,ee)}}function Br(){let M=[],F=!1;for(let G of k){let ee=w.fetchers.get(G);Ze(ee,`Expected fetcher: ${G}`),ee.state==="loading"&&(k.delete(G),M.push(G),F=!0)}return Js(M),F}function oa(M){let F=[];for(let[G,ee]of Ae)if(ee<M){let oe=w.fetchers.get(G);Ze(oe,`Expected fetcher: ${G}`),oe.state==="loading"&&(gn(G),Ae.delete(G),F.push(G))}return Js(F),F.length>0}function ua(M,F){let G=w.blockers.get(M)||Su;return se.get(M)!==F&&se.set(M,F),G}function Yi(M){w.blockers.delete(M),se.delete(M)}function Fr(M,F){let G=w.blockers.get(M)||Su;Ze(G.state==="unblocked"&&F.state==="blocked"||G.state==="blocked"&&F.state==="blocked"||G.state==="blocked"&&F.state==="proceeding"||G.state==="blocked"&&F.state==="unblocked"||G.state==="proceeding"&&F.state==="unblocked",`Invalid blocker state transition: ${G.state} -> ${F.state}`);let ee=new Map(w.blockers);ee.set(M,F),ut({blockers:ee})}function Sc({currentLocation:M,nextLocation:F,historyAction:G}){if(se.size===0)return;se.size>1&&qt(!1,"A router only supports one blocker at a time");let ee=Array.from(se.entries()),[oe,Te]=ee[ee.length-1],ke=w.blockers.get(oe);if(!(ke&&ke.state==="proceeding")&&Te({currentLocation:M,nextLocation:F,historyAction:G}))return oe}function Ws(M){let F=or(404,{pathname:M}),G=h||c,{matches:ee,route:oe}=EE(G);return{notFoundMatches:ee,route:oe,error:F}}function Ec(M,F,G){if(_=M,A=F,x=G||null,!N&&w.navigation===Sm){N=!0;let ee=_c(w.location,w.matches);ee!=null&&ut({restoreScrollPosition:ee})}return()=>{_=null,A=null,x=null}}function el(M,F){return x&&x(M,F.map(ee=>IC(ee,w.loaderData)))||M.key}function Ki(M,F){if(_&&A){let G=el(M,F);_[G]=A()}}function _c(M,F){if(_){let G=el(M,F),ee=_[G];if(typeof ee=="number")return ee}return null}function Qi(M,F,G){if(e.patchRoutesOnNavigation)if(M){if(Object.keys(M[0].params).length>0)return{active:!0,matches:Qf(F,G,d,!0)}}else return{active:!0,matches:Qf(F,G,d,!0)||[]};return{active:!1,matches:null}}async function Xi(M,F,G,ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:M};let oe=M;for(;;){let Te=h==null,ke=h||c,ye=o;try{await e.patchRoutesOnNavigation({signal:G,path:F,matches:oe,fetcherKey:ee,patch:(Le,Ne)=>{G.aborted||dE(Le,Ne,ke,ye,s)}})}catch(Le){return{type:"error",error:Le,partialMatches:oe}}finally{Te&&!G.aborted&&(c=[...c])}if(G.aborted)return{type:"aborted"};let De=xi(ke,F,d);if(De)return{type:"success",matches:De};let je=Qf(ke,F,d,!0);if(!je||oe.length===je.length&&oe.every((Le,Ne)=>Le.route.id===je[Ne].route.id))return{type:"success",matches:null};oe=je}}function Eo(M){o={},h=od(M,s,void 0,o)}function _o(M,F){let G=h==null;dE(M,F,h||c,o,s),G&&(c=[...c],ut({}))}return C={get basename(){return d},get future(){return v},get state(){return w},get routes(){return c},get window(){return t},initialize:dt,subscribe:Rt,enableScrollRestoration:Ec,navigate:Wt,fetch:Qn,revalidate:en,createHref:M=>e.history.createHref(M),encodeLocation:M=>e.history.encodeLocation(M),getFetcher:tt,deleteFetcher:Gi,dispose:qe,getBlocker:ua,deleteBlocker:Yi,patchRoutes:_o,_internalFetchControllers:L,_internalSetRoutes:Eo},C}function dR(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function av(e,t,n,a,s,o){let c,h;if(s){c=[];for(let p of t)if(c.push(p),p.route.id===s){h=p;break}}else c=t,h=t[t.length-1];let d=iy(a||".",ay(c),mr(e.pathname,n)||e.pathname,o==="path");if(a==null&&(d.search=e.search,d.hash=e.hash),(a==null||a===""||a===".")&&h){let p=ly(d.search);if(h.route.index&&!p)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&p){let v=new URLSearchParams(d.search),b=v.getAll("index");v.delete("index"),b.filter(_=>_).forEach(_=>v.append("index",_));let y=v.toString();d.search=y?`?${y}`:""}}return n!=="/"&&(d.pathname=d.pathname==="/"?n:Jr([n,d.pathname])),ji(d)}function cE(e,t,n){if(!n||!dR(n))return{path:t};if(n.formMethod&&!OR(n.formMethod))return{path:t,error:or(405,{method:n.formMethod})};let a=()=>({path:t,error:or(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),c=uO(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!In(o))return a();let b=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[_,x])=>`${y}${_}=${x}
|
|
59
|
-
`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:b}}}else if(n.formEncType==="application/json"){if(!In(o))return a();try{let b=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}Ze(typeof FormData=="function","FormData is not available in this environment");let h,d;if(n.formData)h=lv(n.formData),d=n.formData;else if(n.body instanceof FormData)h=lv(n.body),d=n.body;else if(n.body instanceof URLSearchParams)h=n.body,d=yE(h);else if(n.body==null)h=new URLSearchParams,d=new FormData;else try{h=new URLSearchParams(n.body),d=yE(h)}catch{return a()}let p={formMethod:o,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(In(p.formMethod))return{path:t,submission:p};let v=Fi(t);return e&&v.search&&ly(v.search)&&h.append("index",""),v.search=`?${h}`,{path:ji(v),submission:p}}function fE(e,t,n,a,s,o,c,h,d,p,v,b,y,_,x,A,N,O,R){var xe;let D=R?Fn(R[1])?R[1].error:R[1].data:void 0,U=s.createURL(o.location),C=s.createURL(d),w;if(v&&o.errors){let fe=Object.keys(o.errors)[0];w=c.findIndex(me=>me.route.id===fe)}else if(R&&Fn(R[1])){let fe=R[0];w=c.findIndex(me=>me.route.id===fe)-1}let q=R?R[1].statusCode:void 0,re=q&&q>=400,Q={currentUrl:U,currentParams:((xe=o.matches[0])==null?void 0:xe.params)||{},nextUrl:C,nextParams:c[0].params,...h,actionResult:D,actionStatus:q},he=c.map((fe,me)=>{let{route:we}=fe,L=null;if(w!=null&&me>w?L=!1:we.lazy?L=!0:we.loader==null?L=!1:v?L=iv(we,o.loaderData,o.errors):hR(o.loaderData,o.matches[me],fe)&&(L=!0),L!==null)return sv(n,a,e,fe,p,t,L);let te=re?!1:b||U.pathname+U.search===C.pathname+C.search||U.search!==C.search||pR(o.matches[me],fe),le={...Q,defaultShouldRevalidate:te},Ae=fd(fe,le);return sv(n,a,e,fe,p,t,Ae,le)}),ie=[];return x.forEach((fe,me)=>{if(v||!c.some(Y=>Y.route.id===fe.routeId)||_.has(me))return;let we=xi(N,fe.path,O);if(!we){ie.push({key:me,routeId:fe.routeId,path:fe.path,matches:null,match:null,request:null,controller:null});return}if(A.has(me))return;let L=o.fetchers.get(me),te=Nu(we,fe.path),le=new AbortController,Ae=zl(s,fe.path,le.signal),k=null;if(y.has(me))y.delete(me),k=Yl(n,a,Ae,we,te,p,t);else if(L&&L.state!=="idle"&&L.data===void 0)b&&(k=Yl(n,a,Ae,we,te,p,t));else{let Y={...Q,defaultShouldRevalidate:re?!1:b};fd(te,Y)&&(k=Yl(n,a,Ae,we,te,p,t,Y))}k&&ie.push({key:me,routeId:fe.routeId,path:fe.path,matches:k,match:te,request:Ae,controller:le})}),{dsMatches:he,revalidatingFetchers:ie}}function iv(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let a=t!=null&&t[e.id]!==void 0,s=n!=null&&n[e.id]!==void 0;return!a&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!a&&!s}function hR(e,t,n){let a=!t||n.route.id!==t.route.id,s=!e.hasOwnProperty(n.route.id);return a||s}function pR(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fd(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function dE(e,t,n,a,s){let o;if(e){let d=a[e];Ze(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),o=d.children}else o=n;let c=t.filter(d=>!o.some(p=>aO(d,p))),h=od(c,s,[e||"_","patch",String((o==null?void 0:o.length)||"0")],a);o.push(...h)}function aO(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,a)=>{var s;return(s=t.children)==null?void 0:s.some(o=>aO(n,o))}):!1}var hE=new WeakMap,iO=({key:e,route:t,manifest:n,mapRouteProperties:a})=>{let s=n[t.id];if(Ze(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let o=s.lazy[e];if(!o)return;let c=hE.get(s);c||(c={},hE.set(s,c));let h=c[e];if(h)return h;let d=(async()=>{let p=$C(e),b=s[e]!==void 0&&e!=="hasErrorBoundary";if(p)qt(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),c[e]=Promise.resolve();else if(b)qt(!1,`Route "${s.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await o();y!=null&&(Object.assign(s,{[e]:y}),Object.assign(s,a(s)))}typeof s.lazy=="object"&&(s.lazy[e]=void 0,Object.values(s.lazy).every(y=>y===void 0)&&(s.lazy=void 0))})();return c[e]=d,d},pE=new WeakMap;function mR(e,t,n,a,s){let o=n[e.id];if(Ze(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let v=pE.get(o);if(v)return{lazyRoutePromise:v,lazyHandlerPromise:v};let b=(async()=>{Ze(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),_={};for(let x in y){let A=y[x];if(A===void 0)continue;let N=BC(x),R=o[x]!==void 0&&x!=="hasErrorBoundary";N?qt(!N,"Route property "+x+" is not a supported property to be returned from a lazy route function. This property will be ignored."):R?qt(!R,`Route "${o.id}" has a static property "${x}" defined but its lazy function is also returning a value for this property. The lazy route property "${x}" will be ignored.`):_[x]=A}Object.assign(o,_),Object.assign(o,{...a(o),lazy:void 0})})();return pE.set(o,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let c=Object.keys(e.lazy),h=[],d;for(let v of c){if(s&&s.includes(v))continue;let b=iO({key:v,route:e,manifest:n,mapRouteProperties:a});b&&(h.push(b),v===t&&(d=b))}let p=h.length>0?Promise.all(h).then(()=>{}):void 0;return p==null||p.catch(()=>{}),d==null||d.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:d}}async function mE(e){let t=e.matches.filter(s=>s.shouldLoad),n={};return(await Promise.all(t.map(s=>s.resolve()))).forEach((s,o)=>{n[t[o].route.id]=s}),n}async function vR(e){return e.matches.some(t=>t.route.unstable_middleware)?sO(e,!1,()=>mE(e),(t,n)=>({[n]:{type:"error",result:t}})):mE(e)}async function sO(e,t,n,a){let{matches:s,request:o,params:c,context:h}=e,d={handlerResult:void 0};try{let p=s.flatMap(b=>b.route.unstable_middleware?b.route.unstable_middleware.map(y=>[b.route.id,y]):[]),v=await lO({request:o,params:c,context:h},p,t,d,n);return t?v:d.handlerResult}catch(p){if(!d.middlewareError)throw p;let v=await a(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,v):v}}async function lO(e,t,n,a,s,o=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason?c.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${c.method} ${c.url}`);let h=t[o];if(!h)return a.handlerResult=await s(),a.handlerResult;let[d,p]=h,v=!1,b,y=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");v=!0,await lO(e,t,n,a,s,o+1)};try{let _=await p({request:e.request,params:e.params,context:e.context},y);return v?_===void 0?b:_:y()}catch(_){throw a.middlewareError?a.middlewareError.error!==_&&(a.middlewareError={routeId:d,error:_}):a.middlewareError={routeId:d,error:_},_}}function oO(e,t,n,a,s){let o=iO({key:"unstable_middleware",route:a.route,manifest:t,mapRouteProperties:e}),c=mR(a.route,In(n.method)?"action":"loader",t,e,s);return{middleware:o,route:c.lazyRoutePromise,handler:c.lazyHandlerPromise}}function sv(e,t,n,a,s,o,c,h=null){let d=!1,p=oO(e,t,n,a,s);return{...a,_lazyPromises:p,shouldLoad:c,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler(v){return d=!0,h?typeof v=="boolean"?fd(a,{...h,defaultShouldRevalidate:v}):fd(a,h):c},resolve(v){return d||c||v&&n.method==="GET"&&(a.route.lazy||a.route.loader)?gR({request:n,match:a,lazyHandlerPromise:p==null?void 0:p.handler,lazyRoutePromise:p==null?void 0:p.route,handlerOverride:v,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Yl(e,t,n,a,s,o,c,h=null){return a.map(d=>d.route.id!==s.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler:()=>!1,_lazyPromises:oO(e,t,n,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:sv(e,t,n,d,o,c,!0,h))}async function yR(e,t,n,a,s,o){n.some(p=>{var v;return(v=p._lazyPromises)==null?void 0:v.middleware})&&await Promise.all(n.map(p=>{var v;return(v=p._lazyPromises)==null?void 0:v.middleware}));let c={request:t,params:n[0].params,context:s,matches:n},d=await e({...c,fetcherKey:a,unstable_runClientMiddleware:p=>{let v=c;return sO(v,!1,()=>p({...v,fetcherKey:a,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(b,y)=>({[y]:{type:"error",result:b}}))}});try{await Promise.all(n.flatMap(p=>{var v,b;return[(v=p._lazyPromises)==null?void 0:v.handler,(b=p._lazyPromises)==null?void 0:b.route]}))}catch{}return d}async function gR({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:a,handlerOverride:s,scopedContext:o}){let c,h,d=In(e.method),p=d?"action":"loader",v=b=>{let y,_=new Promise((N,O)=>y=O);h=()=>y(),e.signal.addEventListener("abort",h);let x=N=>typeof b!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${p}" [routeId: ${t.route.id}]`)):b({request:e,params:t.params,context:o},...N!==void 0?[N]:[]),A=(async()=>{try{return{type:"data",result:await(s?s(O=>x(O)):x())}}catch(N){return{type:"error",result:N}}})();return Promise.race([A,_])};try{let b=d?t.route.action:t.route.loader;if(n||a)if(b){let y,[_]=await Promise.all([v(b).catch(x=>{y=x}),n,a]);if(y!==void 0)throw y;c=_}else{await n;let y=d?t.route.action:t.route.loader;if(y)[c]=await Promise.all([v(y),a]);else if(p==="action"){let _=new URL(e.url),x=_.pathname+_.search;throw or(405,{method:e.method,pathname:x,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(b)c=await v(b);else{let y=new URL(e.url),_=y.pathname+y.search;throw or(404,{pathname:_})}}catch(b){return{type:"error",result:b}}finally{h&&e.signal.removeEventListener("abort",h)}return c}async function bR(e){var a,s,o,c,h,d;let{result:t,type:n}=e;if(cO(t)){let p;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?p=null:p=await t.json():p=await t.text()}catch(v){return{type:"error",error:v}}return n==="error"?{type:"error",error:new cd(t.status,t.statusText,p),statusCode:t.status,headers:t.headers}:{type:"data",data:p,statusCode:t.status,headers:t.headers}}return n==="error"?_E(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new cd(((o=t.init)==null?void 0:o.status)||500,void 0,t.data),statusCode:Fu(t)?t.status:void 0,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Fu(t)?t.status:void 0}:_E(t)?{type:"data",data:t.data,statusCode:(h=t.init)==null?void 0:h.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function SR(e,t,n,a,s){let o=e.headers.get("Location");if(Ze(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!sy.test(o)){let c=a.slice(0,a.findIndex(h=>h.route.id===n)+1);o=av(new URL(t.url),c,s,o),e.headers.set("Location",o)}return e}function vE(e,t,n){if(sy.test(e)){let a=e,s=a.startsWith("//")?new URL(t.protocol+a):new URL(a),o=mr(s.pathname,n)!=null;if(s.origin===t.origin&&o)return s.pathname+s.search+s.hash}return e}function zl(e,t,n,a){let s=e.createURL(uO(t)).toString(),o={signal:n};if(a&&In(a.formMethod)){let{formMethod:c,formEncType:h}=a;o.method=c.toUpperCase(),h==="application/json"?(o.headers=new Headers({"Content-Type":h}),o.body=JSON.stringify(a.json)):h==="text/plain"?o.body=a.text:h==="application/x-www-form-urlencoded"&&a.formData?o.body=lv(a.formData):o.body=a.formData}return new Request(s,o)}function lv(e){let t=new URLSearchParams;for(let[n,a]of e.entries())t.append(n,typeof a=="string"?a:a.name);return t}function yE(e){let t=new FormData;for(let[n,a]of e.entries())t.append(n,a);return t}function ER(e,t,n,a=!1,s=!1){let o={},c=null,h,d=!1,p={},v=n&&Fn(n[1])?n[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let y=b.route.id,_=t[y];if(Ze(!gs(_),"Cannot handle redirect results in processLoaderData"),Fn(_)){let x=_.error;if(v!==void 0&&(x=v,v=void 0),c=c||{},s)c[y]=x;else{let A=ys(e,y);c[A.route.id]==null&&(c[A.route.id]=x)}a||(o[y]=rO),d||(d=!0,h=Fu(_.error)?_.error.status:500),_.headers&&(p[y]=_.headers)}else o[y]=_.data,_.statusCode&&_.statusCode!==200&&!d&&(h=_.statusCode),_.headers&&(p[y]=_.headers)}),v!==void 0&&n&&(c={[n[0]]:v},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:c,statusCode:h||200,loaderHeaders:p}}function gE(e,t,n,a,s,o){let{loaderData:c,errors:h}=ER(t,n,a);return s.filter(d=>!d.matches||d.matches.some(p=>p.shouldLoad)).forEach(d=>{let{key:p,match:v,controller:b}=d,y=o[p];if(Ze(y,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(Fn(y)){let _=ys(e.matches,v==null?void 0:v.route.id);h&&h[_.route.id]||(h={...h,[_.route.id]:y.error}),e.fetchers.delete(p)}else if(gs(y))Ze(!1,"Unhandled fetcher revalidation redirect");else{let _=bi(y.data);e.fetchers.set(p,_)}}),{loaderData:c,errors:h}}function bE(e,t,n,a){let s=Object.entries(t).filter(([,o])=>o!==rO).reduce((o,[c,h])=>(o[c]=h,o),{});for(let o of n){let c=o.route.id;if(!t.hasOwnProperty(c)&&e.hasOwnProperty(c)&&o.route.loader&&(s[c]=e[c]),a&&a.hasOwnProperty(c))break}return s}function SE(e){return e?Fn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ys(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function EE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function or(e,{pathname:t,routeId:n,method:a,type:s,message:o}={}){let c="Unknown Server Error",h="Unknown @remix-run/router error";return e===400?(c="Bad Request",a&&t&&n?h=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:s==="invalid-body"&&(h="Unable to encode submission body")):e===403?(c="Forbidden",h=`Route "${n}" does not match URL "${t}"`):e===404?(c="Not Found",h=`No route matches URL "${t}"`):e===405&&(c="Method Not Allowed",a&&t&&n?h=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:a&&(h=`Invalid request method "${a.toUpperCase()}"`)),new cd(e||500,c,new Error(h),!0)}function kf(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[a,s]=t[n];if(gs(s))return{key:a,result:s}}}function uO(e){let t=typeof e=="string"?Fi(e):e;return ji({...t,hash:""})}function _R(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function xR(e){return cO(e.result)&&lR.has(e.result.status)}function Fn(e){return e.type==="error"}function gs(e){return(e&&e.type)==="redirect"}function _E(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function cO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function OR(e){return sR.has(e.toUpperCase())}function In(e){return aR.has(e.toUpperCase())}function ly(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Nu(e,t){let n=typeof t=="string"?Fi(t).search:t.search;if(e[e.length-1].route.index&&ly(n||""))return e[e.length-1];let a=eO(e);return a[a.length-1]}function xE(e){let{formMethod:t,formAction:n,formEncType:a,text:s,formData:o,json:c}=e;if(!(!t||!n||!a)){if(s!=null)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:void 0,text:s};if(o!=null)return{formMethod:t,formAction:n,formEncType:a,formData:o,json:void 0,text:void 0};if(c!==void 0)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:c,text:void 0}}}function Em(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function TR(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Eu(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function wR(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function AR(e,t){try{let n=e.sessionStorage.getItem(nO);if(n){let a=JSON.parse(n);for(let[s,o]of Object.entries(a||{}))o&&Array.isArray(o)&&t.set(s,new Set(o||[]))}}catch{}}function NR(e,t){if(t.size>0){let n={};for(let[a,s]of t)n[a]=[...s];try{e.sessionStorage.setItem(nO,JSON.stringify(n))}catch(a){qt(!1,`Failed to save applied view transitions in sessionStorage (${a}).`)}}}function CR(){let e,t,n=new Promise((a,s)=>{e=async o=>{a(o);try{await n}catch{}},t=async o=>{s(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Fs=S.createContext(null);Fs.displayName="DataRouter";var tc=S.createContext(null);tc.displayName="DataRouterState";var oy=S.createContext({isTransitioning:!1});oy.displayName="ViewTransition";var fO=S.createContext(new Map);fO.displayName="Fetchers";var RR=S.createContext(null);RR.displayName="Await";var ia=S.createContext(null);ia.displayName="Navigation";var Dd=S.createContext(null);Dd.displayName="Location";var Ur=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ur.displayName="Route";var uy=S.createContext(null);uy.displayName="RouteError";function DR(e,{relative:t}={}){Ze(nc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=S.useContext(ia),{hash:s,pathname:o,search:c}=rc(e,{relative:t}),h=o;return n!=="/"&&(h=o==="/"?n:Jr([n,o])),a.createHref({pathname:h,search:c,hash:s})}function nc(){return S.useContext(Dd)!=null}function Ha(){return Ze(nc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Dd).location}var dO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hO(e){S.useContext(ia).static||S.useLayoutEffect(e)}function jd(){let{isDataRoute:e}=S.useContext(Ur);return e?PR():jR()}function jR(){Ze(nc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Fs),{basename:t,navigator:n}=S.useContext(ia),{matches:a}=S.useContext(Ur),{pathname:s}=Ha(),o=JSON.stringify(ay(a)),c=S.useRef(!1);return hO(()=>{c.current=!0}),S.useCallback((d,p={})=>{if(qt(c.current,dO),!c.current)return;if(typeof d=="number"){n.go(d);return}let v=iy(d,JSON.parse(o),s,p.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Jr([t,v.pathname])),(p.replace?n.replace:n.push)(v,p.state,p)},[t,n,o,s,e])}var kR=S.createContext(null);function MR(e){let t=S.useContext(Ur).outlet;return t&&S.createElement(kR.Provider,{value:e},t)}function pO(){let{matches:e}=S.useContext(Ur),t=e[e.length-1];return t?t.params:{}}function rc(e,{relative:t}={}){let{matches:n}=S.useContext(Ur),{pathname:a}=Ha(),s=JSON.stringify(ay(n));return S.useMemo(()=>iy(e,JSON.parse(s),a,t==="path"),[e,s,a,t])}function UR(e,t,n,a){Ze(nc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:o}=S.useContext(ia),{matches:c}=S.useContext(Ur),h=c[c.length-1],d=h?h.params:{},p=h?h.pathname:"/",v=h?h.pathnameBase:"/",b=h&&h.route;{let R=b&&b.path||"";vO(p,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) 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.
|
|
58
|
+
*/var Zx=e=>{throw TypeError(e)},$C=(e,t,n)=>t.has(e)||Zx("Cannot "+n),gm=(e,t,n)=>($C(e,t,"read from private field"),n?n.call(e):t.get(e)),LC=(e,t,n)=>t.has(e)?Zx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),sE="popstate";function BC(e={}){function t(a,s){let{pathname:o,search:c,hash:h}=a.location;return Bu("",{pathname:o,search:c,hash:h},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(a,s){return typeof s=="string"?s:ji(s)}return IC(t,n,null,e)}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FC(){return Math.random().toString(36).substring(2,10)}function lE(e,t){return{usr:e.state,key:e.key,idx:t}}function Bu(e,t,n=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fi(t):t,state:n,key:t&&t.key||a||FC()}}function ji({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function IC(e,t,n,a={}){let{window:s=document.defaultView,v5Compat:o=!1}=a,c=s.history,h="POP",d=null,p=v();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function v(){return(c.state||{idx:null}).idx}function b(){h="POP";let N=v(),O=N==null?null:N-p;p=N,d&&d({action:h,location:A.location,delta:O})}function y(N,O){h="PUSH";let R=Bu(A.location,N,O);p=v()+1;let D=lE(R,p),U=A.createHref(R);try{c.pushState(D,"",U)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(U)}o&&d&&d({action:h,location:A.location,delta:1})}function _(N,O){h="REPLACE";let R=Bu(A.location,N,O);p=v();let D=lE(R,p),U=A.createHref(R);c.replaceState(D,"",U),o&&d&&d({action:h,location:A.location,delta:0})}function x(N){let O=s.location.origin!=="null"?s.location.origin:s.location.href,R=typeof N=="string"?N:ji(N);return R=R.replace(/ $/,"%20"),Ze(O,`No window.location.(origin|href) available to create URL for href: ${R}`),new URL(R,O)}let A={get action(){return h},get location(){return e(s,c)},listen(N){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(sE,b),d=N,()=>{s.removeEventListener(sE,b),d=null}},createHref(N){return t(s,N)},createURL:x,encodeLocation(N){let O=x(N);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:_,go(N){return c.go(N)}};return A}var Au,oE=class{constructor(e){if(LC(this,Au,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(gm(this,Au).has(e))return gm(this,Au).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){gm(this,Au).set(e,t)}};Au=new WeakMap;var zC=new Set(["lazy","caseSensitive","path","id","index","children"]);function qC(e){return zC.has(e)}var VC=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function HC(e){return VC.has(e)}function PC(e){return e.index===!0}function od(e,t,n=[],a={}){return e.map((s,o)=>{let c=[...n,String(o)],h=typeof s.id=="string"?s.id:c.join("-");if(Ze(s.index!==!0||!s.children,"Cannot specify children on an index route"),Ze(!a[h],`Found a route id collision on id "${h}". Route id's must be globally unique within Data Router usages`),PC(s)){let d={...s,...t(s),id:h};return a[h]=d,d}else{let d={...s,...t(s),id:h,children:void 0};return a[h]=d,s.children&&(d.children=od(s.children,t,c,a)),d}})}function xi(e,t,n="/"){return Qf(e,t,n,!1)}function Qf(e,t,n,a){let s=typeof t=="string"?Fi(t):t,o=mr(s.pathname||"/",n);if(o==null)return null;let c=Jx(e);YC(c);let h=null;for(let d=0;h==null&&d<c.length;++d){let p=aR(o);h=nR(c[d],p,a)}return h}function GC(e,t){let{route:n,pathname:a,params:s}=e;return{id:n.id,pathname:a,params:s,data:t[n.id],handle:n.handle}}function Jx(e,t=[],n=[],a=""){let s=(o,c,h)=>{let d={relativePath:h===void 0?o.path||"":h,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};d.relativePath.startsWith("/")&&(Ze(d.relativePath.startsWith(a),`Absolute route path "${d.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(a.length));let p=Jr([a,d.relativePath]),v=n.concat(d);o.children&&o.children.length>0&&(Ze(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Jx(o.children,t,v,p)),!(o.path==null&&!o.index)&&t.push({path:p,score:eR(p,o.index),routesMeta:v})};return e.forEach((o,c)=>{var h;if(o.path===""||!((h=o.path)!=null&&h.includes("?")))s(o,c);else for(let d of Wx(o.path))s(o,c,d)}),t}function Wx(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(a.length===0)return s?[o,""]:[o];let c=Wx(a.join("/")),h=[];return h.push(...c.map(d=>d===""?o:[o,d].join("/"))),s&&h.push(...c),h.map(d=>e.startsWith("/")&&d===""?"/":d)}function YC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tR(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var KC=/^:[\w-]+$/,QC=3,XC=2,ZC=1,JC=10,WC=-2,uE=e=>e==="*";function eR(e,t){let n=e.split("/"),a=n.length;return n.some(uE)&&(a+=WC),t&&(a+=XC),n.filter(s=>!uE(s)).reduce((s,o)=>s+(KC.test(o)?QC:o===""?ZC:JC),a)}function tR(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function nR(e,t,n=!1){let{routesMeta:a}=e,s={},o="/",c=[];for(let h=0;h<a.length;++h){let d=a[h],p=h===a.length-1,v=o==="/"?t:t.slice(o.length)||"/",b=ud({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},v),y=d.route;if(!b&&p&&n&&!a[a.length-1].route.index&&(b=ud({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},v)),!b)return null;Object.assign(s,b.params),c.push({params:s,pathname:Jr([o,b.pathname]),pathnameBase:lR(Jr([o,b.pathnameBase])),route:y}),b.pathnameBase!=="/"&&(o=Jr([o,b.pathnameBase]))}return c}function ud(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=rR(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:a.reduce((p,{paramName:v,isOptional:b},y)=>{if(v==="*"){let x=h[y]||"";c=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const _=h[y];return b&&!_?p[v]=void 0:p[v]=(_||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:c,pattern:e}}function rR(e,t=!1,n=!0){qt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,d)=>(a.push({paramName:h,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function aR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function mr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function iR(e,t="/"){let{pathname:n,search:a="",hash:s=""}=typeof e=="string"?Fi(e):e;return{pathname:n?n.startsWith("/")?n:sR(n,t):t,search:oR(a),hash:uR(s)}}function sR(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function bm(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function eO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ay(e){let t=eO(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function iy(e,t,n,a=!1){let s;typeof e=="string"?s=Fi(e):(s={...e},Ze(!s.pathname||!s.pathname.includes("?"),bm("?","pathname","search",s)),Ze(!s.pathname||!s.pathname.includes("#"),bm("#","pathname","hash",s)),Ze(!s.search||!s.search.includes("#"),bm("#","search","hash",s)));let o=e===""||s.pathname==="",c=o?"/":s.pathname,h;if(c==null)h=n;else{let b=t.length-1;if(!a&&c.startsWith("..")){let y=c.split("/");for(;y[0]==="..";)y.shift(),b-=1;s.pathname=y.join("/")}h=b>=0?t[b]:"/"}let d=iR(s,h),p=c&&c!=="/"&&c.endsWith("/"),v=(o||c===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||v)&&(d.pathname+="/"),d}var Jr=e=>e.join("/").replace(/\/\/+/g,"/"),lR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,cd=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Fu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var tO=["POST","PUT","PATCH","DELETE"],cR=new Set(tO),fR=["GET",...tO],dR=new Set(fR),hR=new Set([301,302,303,307,308]),pR=new Set([307,308]),Sm={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mR={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Su={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vR=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),nO="remix-router-transitions",rO=Symbol("ResetLoaderData");function yR(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Ze(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.hydrationRouteProperties||[],s=e.mapRouteProperties||vR,o={},c=od(e.routes,s,void 0,o),h,d=e.basename||"/",p=e.dataStrategy||_R,v={unstable_middleware:!1,...e.future},b=null,y=new Set,_=null,x=null,A=null,N=e.hydrationData!=null,O=xi(c,e.history.location,d),R=!1,D=null;if(O==null&&!e.patchRoutesOnNavigation){let M=ur(404,{pathname:e.history.location.pathname}),{matches:F,route:G}=EE(c);O=F,D={[G.id]:M}}O&&!e.hydrationData&&Qi(O,c,e.history.location.pathname).active&&(O=null);let U;if(O)if(O.some(M=>M.route.lazy))U=!1;else if(!O.some(M=>M.route.loader))U=!0;else{let M=e.hydrationData?e.hydrationData.loaderData:null,F=e.hydrationData?e.hydrationData.errors:null;if(F){let G=O.findIndex(ee=>F[ee.route.id]!==void 0);U=O.slice(0,G+1).every(ee=>!iv(ee.route,M,F))}else U=O.every(G=>!iv(G.route,M,F))}else{U=!1,O=[];let M=Qi(null,c,e.history.location.pathname);M.active&&M.matches&&(R=!0,O=M.matches)}let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:U,navigation:Sm,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},q="POP",re=!1,Q,he=!1,ie=new Map,Re=null,fe=!1,xe=!1,Te=new Set,L=new Map,te=0,le=-1,we=new Map,k=new Set,Y=new Map,ae=new Map,ne=new Set,se=new Map,Se,me=null;function dt(){if(b=e.history.listen(({action:M,location:F,delta:G})=>{if(Se){Se(),Se=void 0;return}qt(se.size===0||G!=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 ee=Sc({currentLocation:w.location,nextLocation:F,historyAction:M});if(ee&&G!=null){let oe=new Promise(Oe=>{Se=Oe});e.history.go(G*-1),Fr(ee,{state:"blocked",location:F,proceed(){Fr(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),oe.then(()=>e.history.go(G))},reset(){let Oe=new Map(w.blockers);Oe.set(ee,Su),ut({blockers:Oe})}});return}return kt(M,F)}),n){kR(t,ie);let M=()=>MR(t,ie);t.addEventListener("pagehide",M),Re=()=>t.removeEventListener("pagehide",M)}return w.initialized||kt("POP",w.location,{initialHydration:!0}),C}function qe(){b&&b(),Re&&Re(),y.clear(),Q&&Q.abort(),w.fetchers.forEach((M,F)=>bt(F)),w.blockers.forEach((M,F)=>Yi(F))}function Rt(M){return y.add(M),()=>y.delete(M)}function ut(M,F={}){w={...w,...M};let G=[],ee=[];w.fetchers.forEach((oe,Oe)=>{oe.state==="idle"&&(ne.has(Oe)?G.push(Oe):ee.push(Oe))}),ne.forEach(oe=>{!w.fetchers.has(oe)&&!L.has(oe)&&G.push(oe)}),[...y].forEach(oe=>oe(w,{deletedFetchers:G,viewTransitionOpts:F.viewTransitionOpts,flushSync:F.flushSync===!0})),G.forEach(oe=>bt(oe)),ee.forEach(oe=>w.fetchers.delete(oe))}function wt(M,F,{flushSync:G}={}){var je,Le;let ee=w.actionData!=null&&w.navigation.formMethod!=null&&In(w.navigation.formMethod)&&w.navigation.state==="loading"&&((je=M.state)==null?void 0:je._isRedirect)!==!0,oe;F.actionData?Object.keys(F.actionData).length>0?oe=F.actionData:oe=null:ee?oe=w.actionData:oe=null;let Oe=F.loaderData?bE(w.loaderData,F.loaderData,F.matches||[],F.errors):w.loaderData,ke=w.blockers;ke.size>0&&(ke=new Map(ke),ke.forEach((Ae,Ie)=>ke.set(Ie,Su)));let ve=re===!0||w.navigation.formMethod!=null&&In(w.navigation.formMethod)&&((Le=M.state)==null?void 0:Le._isRedirect)!==!0;h&&(c=h,h=void 0),fe||q==="POP"||(q==="PUSH"?e.history.push(M,M.state):q==="REPLACE"&&e.history.replace(M,M.state));let De;if(q==="POP"){let Ae=ie.get(w.location.pathname);Ae&&Ae.has(M.pathname)?De={currentLocation:w.location,nextLocation:M}:ie.has(M.pathname)&&(De={currentLocation:M,nextLocation:w.location})}else if(he){let Ae=ie.get(w.location.pathname);Ae?Ae.add(M.pathname):(Ae=new Set([M.pathname]),ie.set(w.location.pathname,Ae)),De={currentLocation:w.location,nextLocation:M}}ut({...F,actionData:oe,loaderData:Oe,historyAction:q,location:M,initialized:!0,navigation:Sm,revalidation:"idle",restoreScrollPosition:_c(M,F.matches||w.matches),preventScrollReset:ve,blockers:ke},{viewTransitionOpts:De,flushSync:G===!0}),q="POP",re=!1,he=!1,fe=!1,xe=!1,me==null||me.resolve(),me=null}async function Wt(M,F){if(typeof M=="number"){e.history.go(M);return}let G=av(w.location,w.matches,d,M,F==null?void 0:F.fromRouteId,F==null?void 0:F.relative),{path:ee,submission:oe,error:Oe}=cE(!1,G,F),ke=w.location,ve=Bu(w.location,ee,F&&F.state);ve={...ve,...e.history.encodeLocation(ve)};let De=F&&F.replace!=null?F.replace:void 0,je="PUSH";De===!0?je="REPLACE":De===!1||oe!=null&&In(oe.formMethod)&&oe.formAction===w.location.pathname+w.location.search&&(je="REPLACE");let Le=F&&"preventScrollReset"in F?F.preventScrollReset===!0:void 0,Ae=(F&&F.flushSync)===!0,Ie=Sc({currentLocation:ke,nextLocation:ve,historyAction:je});if(Ie){Fr(Ie,{state:"blocked",location:ve,proceed(){Fr(Ie,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),Wt(M,F)},reset(){let nt=new Map(w.blockers);nt.set(Ie,Su),ut({blockers:nt})}});return}await kt(je,ve,{submission:oe,pendingError:Oe,preventScrollReset:Le,replace:F&&F.replace,enableViewTransition:F&&F.viewTransition,flushSync:Ae})}function en(){me||(me=UR()),_e(),ut({revalidation:"loading"});let M=me.promise;return w.navigation.state==="submitting"?M:w.navigation.state==="idle"?(kt(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),M):(kt(q||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:he===!0}),M)}async function kt(M,F,G){Q&&Q.abort(),Q=null,q=M,fe=(G&&G.startUninterruptedRevalidation)===!0,Ki(w.location,w.matches),re=(G&&G.preventScrollReset)===!0,he=(G&&G.enableViewTransition)===!0;let ee=h||c,oe=G&&G.overrideNavigation,Oe=G!=null&&G.initialHydration&&w.matches&&w.matches.length>0&&!R?w.matches:xi(ee,F,d),ke=(G&&G.flushSync)===!0;if(Oe&&w.initialized&&!xe&&NR(w.location,F)&&!(G&&G.submission&&In(G.submission.formMethod))){wt(F,{matches:Oe},{flushSync:ke});return}let ve=Qi(Oe,ee,F.pathname);if(ve.active&&ve.matches&&(Oe=ve.matches),!Oe){let{error:Dt,notFoundMatches:it,route:We}=Ws(F.pathname);wt(F,{matches:it,loaderData:{},errors:{[We.id]:Dt}},{flushSync:ke});return}Q=new AbortController;let De=zl(e.history,F,Q.signal,G&&G.submission),je=new oE(e.unstable_getContext?await e.unstable_getContext():void 0),Le;if(G&&G.pendingError)Le=[ys(Oe).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&In(G.submission.formMethod)){let Dt=await at(De,F,G.submission,Oe,je,ve.active,G&&G.initialHydration===!0,{replace:G.replace,flushSync:ke});if(Dt.shortCircuited)return;if(Dt.pendingActionResult){let[it,We]=Dt.pendingActionResult;if(Fn(We)&&Fu(We.error)&&We.error.status===404){Q=null,wt(F,{matches:Dt.matches,loaderData:{},errors:{[it]:We.error}});return}}Oe=Dt.matches||Oe,Le=Dt.pendingActionResult,oe=Em(F,G.submission),ke=!1,ve.active=!1,De=zl(e.history,De.url,De.signal)}let{shortCircuited:Ae,matches:Ie,loaderData:nt,errors:Ot}=await Rn(De,F,Oe,je,ve.active,oe,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,ke,Le);Ae||(Q=null,wt(F,{matches:Ie||Oe,...SE(Le),loaderData:nt,errors:Ot}))}async function at(M,F,G,ee,oe,Oe,ke,ve={}){_e();let De=DR(F,G);if(ut({navigation:De},{flushSync:ve.flushSync===!0}),Oe){let Ae=await Xi(ee,F.pathname,M.signal);if(Ae.type==="aborted")return{shortCircuited:!0};if(Ae.type==="error"){let Ie=ys(Ae.partialMatches).route.id;return{matches:Ae.partialMatches,pendingActionResult:[Ie,{type:"error",error:Ae.error}]}}else if(Ae.matches)ee=Ae.matches;else{let{notFoundMatches:Ie,error:nt,route:Ot}=Ws(F.pathname);return{matches:Ie,pendingActionResult:[Ot.id,{type:"error",error:nt}]}}}let je,Le=Nu(ee,F);if(!Le.route.action&&!Le.route.lazy)je={type:"error",error:ur(405,{method:M.method,pathname:F.pathname,routeId:Le.route.id})};else{let Ae=Yl(s,o,M,ee,Le,ke?[]:a,oe),Ie=await ce(M,Ae,oe,null);if(je=Ie[Le.route.id],!je){for(let nt of ee)if(Ie[nt.route.id]){je=Ie[nt.route.id];break}}if(M.signal.aborted)return{shortCircuited:!0}}if(gs(je)){let Ae;return ve&&ve.replace!=null?Ae=ve.replace:Ae=vE(je.response.headers.get("Location"),new URL(M.url),d)===w.location.pathname+w.location.search,await V(M,je,!0,{submission:G,replace:Ae}),{shortCircuited:!0}}if(Fn(je)){let Ae=ys(ee,Le.route.id);return(ve&&ve.replace)!==!0&&(q="PUSH"),{matches:ee,pendingActionResult:[Ae.route.id,je,Le.route.id]}}return{matches:ee,pendingActionResult:[Le.route.id,je]}}async function Rn(M,F,G,ee,oe,Oe,ke,ve,De,je,Le,Ae){let Ie=Oe||Em(F,ke),nt=ke||ve||xE(Ie),Ot=!fe&&!je;if(oe){if(Ot){let on=At(Ae);ut({navigation:Ie,...on!==void 0?{actionData:on}:{}},{flushSync:Le})}let Ye=await Xi(G,F.pathname,M.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let on=ys(Ye.partialMatches).route.id;return{matches:Ye.partialMatches,loaderData:{},errors:{[on]:Ye.error}}}else if(Ye.matches)G=Ye.matches;else{let{error:on,notFoundMatches:br,route:Sr}=Ws(F.pathname);return{matches:br,loaderData:{},errors:{[Sr.id]:on}}}}let Dt=h||c,{dsMatches:it,revalidatingFetchers:We}=fE(M,ee,s,o,e.history,w,G,nt,F,je?[]:a,je===!0,xe,Te,ne,Y,k,Dt,d,Ae);if(le=++te,!e.dataStrategy&&!it.some(Ye=>Ye.shouldLoad)&&We.length===0){let Ye=Br();return wt(F,{matches:G,loaderData:{},errors:Ae&&Fn(Ae[1])?{[Ae[0]]:Ae[1].error}:null,...SE(Ae),...Ye?{fetchers:new Map(w.fetchers)}:{}},{flushSync:Le}),{shortCircuited:!0}}if(Ot){let Ye={};if(!oe){Ye.navigation=Ie;let on=At(Ae);on!==void 0&&(Ye.actionData=on)}We.length>0&&(Ye.fetchers=la(We)),ut(Ye,{flushSync:Le})}We.forEach(Ye=>{bn(Ye.key),Ye.controller&&L.set(Ye.key,Ye.controller)});let Ya=()=>We.forEach(Ye=>bn(Ye.key));Q&&Q.signal.addEventListener("abort",Ya);let{loaderResults:pn,fetcherResults:Zn}=await pe(it,We,M,ee);if(M.signal.aborted)return{shortCircuited:!0};Q&&Q.signal.removeEventListener("abort",Ya),We.forEach(Ye=>L.delete(Ye.key));let Sn=kf(pn);if(Sn)return await V(M,Sn.result,!0,{replace:De}),{shortCircuited:!0};if(Sn=kf(Zn),Sn)return k.add(Sn.key),await V(M,Sn.result,!0,{replace:De}),{shortCircuited:!0};let{loaderData:Ka,errors:Qa}=gE(w,G,pn,Ae,We,Zn);je&&w.errors&&(Qa={...w.errors,...Qa});let xo=Br(),Jn=oa(le),ca=xo||Jn||We.length>0;return{matches:G,loaderData:Ka,errors:Qa,...ca?{fetchers:new Map(w.fetchers)}:{}}}function At(M){if(M&&!Fn(M[1]))return{[M[0]]:M[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function la(M){return M.forEach(F=>{let G=w.fetchers.get(F.key),ee=Eu(void 0,G?G.data:void 0);w.fetchers.set(F.key,ee)}),new Map(w.fetchers)}async function Xn(M,F,G,ee){bn(M);let oe=(ee&&ee.flushSync)===!0,Oe=h||c,ke=av(w.location,w.matches,d,G,F,ee==null?void 0:ee.relative),ve=xi(Oe,ke,d),De=Qi(ve,Oe,ke);if(De.active&&De.matches&&(ve=De.matches),!ve){ye(M,F,ur(404,{pathname:ke}),{flushSync:oe});return}let{path:je,submission:Le,error:Ae}=cE(!0,ke,ee);if(Ae){ye(M,F,Ae,{flushSync:oe});return}let Ie=Nu(ve,je),nt=new oE(e.unstable_getContext?await e.unstable_getContext():void 0),Ot=(ee&&ee.preventScrollReset)===!0;if(Le&&In(Le.formMethod)){await ln(M,F,je,Ie,ve,nt,De.active,oe,Ot,Le);return}Y.set(M,{routeId:F,path:je}),await hn(M,F,je,Ie,ve,nt,De.active,oe,Ot,Le)}async function ln(M,F,G,ee,oe,Oe,ke,ve,De,je){_e(),Y.delete(M);function Le(Nt){if(!Nt.route.action&&!Nt.route.lazy){let Xa=ur(405,{method:je.formMethod,pathname:G,routeId:F});return ye(M,F,Xa,{flushSync:ve}),!0}return!1}if(!ke&&Le(ee))return;let Ae=w.fetchers.get(M);ue(M,jR(je,Ae),{flushSync:ve});let Ie=new AbortController,nt=zl(e.history,G,Ie.signal,je);if(ke){let Nt=await Xi(oe,G,nt.signal,M);if(Nt.type==="aborted")return;if(Nt.type==="error"){ye(M,F,Nt.error,{flushSync:ve});return}else if(Nt.matches){if(oe=Nt.matches,ee=Nu(oe,G),Le(ee))return}else{ye(M,F,ur(404,{pathname:G}),{flushSync:ve});return}}L.set(M,Ie);let Ot=te,Dt=Yl(s,o,nt,oe,ee,a,Oe),We=(await ce(nt,Dt,Oe,M))[ee.route.id];if(nt.signal.aborted){L.get(M)===Ie&&L.delete(M);return}if(ne.has(M)){if(gs(We)||Fn(We)){ue(M,bi(void 0));return}}else{if(gs(We))if(L.delete(M),le>Ot){ue(M,bi(void 0));return}else return k.add(M),ue(M,Eu(je)),V(nt,We,!1,{fetcherSubmission:je,preventScrollReset:De});if(Fn(We)){ye(M,F,We.error);return}}let Ya=w.navigation.location||w.location,pn=zl(e.history,Ya,Ie.signal),Zn=h||c,Sn=w.navigation.state!=="idle"?xi(Zn,w.navigation.location,d):w.matches;Ze(Sn,"Didn't find any matches after fetcher action");let Ka=++te;we.set(M,Ka);let Qa=Eu(je,We.data);w.fetchers.set(M,Qa);let{dsMatches:xo,revalidatingFetchers:Jn}=fE(pn,Oe,s,o,e.history,w,Sn,je,Ya,a,!1,xe,Te,ne,Y,k,Zn,d,[ee.route.id,We]);Jn.filter(Nt=>Nt.key!==M).forEach(Nt=>{let Xa=Nt.key,Oo=w.fetchers.get(Xa),En=Eu(void 0,Oo?Oo.data:void 0);w.fetchers.set(Xa,En),bn(Xa),Nt.controller&&L.set(Xa,Nt.controller)}),ut({fetchers:new Map(w.fetchers)});let ca=()=>Jn.forEach(Nt=>bn(Nt.key));Ie.signal.addEventListener("abort",ca);let{loaderResults:Ye,fetcherResults:on}=await pe(xo,Jn,pn,Oe);if(Ie.signal.aborted)return;Ie.signal.removeEventListener("abort",ca),we.delete(M),L.delete(M),Jn.forEach(Nt=>L.delete(Nt.key));let br=kf(Ye);if(br)return V(pn,br.result,!1,{preventScrollReset:De});if(br=kf(on),br)return k.add(br.key),V(pn,br.result,!1,{preventScrollReset:De});let{loaderData:Sr,errors:Zi}=gE(w,Sn,Ye,void 0,Jn,on);if(w.fetchers.has(M)){let Nt=bi(We.data);w.fetchers.set(M,Nt)}oa(Ka),w.navigation.state==="loading"&&Ka>le?(Ze(q,"Expected pending action"),Q&&Q.abort(),wt(w.navigation.location,{matches:Sn,loaderData:Sr,errors:Zi,fetchers:new Map(w.fetchers)})):(ut({errors:Zi,loaderData:bE(w.loaderData,Sr,Sn,Zi),fetchers:new Map(w.fetchers)}),xe=!1)}async function hn(M,F,G,ee,oe,Oe,ke,ve,De,je){let Le=w.fetchers.get(M);ue(M,Eu(je,Le?Le.data:void 0),{flushSync:ve});let Ae=new AbortController,Ie=zl(e.history,G,Ae.signal);if(ke){let We=await Xi(oe,G,Ie.signal,M);if(We.type==="aborted")return;if(We.type==="error"){ye(M,F,We.error,{flushSync:ve});return}else if(We.matches)oe=We.matches,ee=Nu(oe,G);else{ye(M,F,ur(404,{pathname:G}),{flushSync:ve});return}}L.set(M,Ae);let nt=te,Ot=Yl(s,o,Ie,oe,ee,a,Oe),it=(await ce(Ie,Ot,Oe,M))[ee.route.id];if(L.get(M)===Ae&&L.delete(M),!Ie.signal.aborted){if(ne.has(M)){ue(M,bi(void 0));return}if(gs(it))if(le>nt){ue(M,bi(void 0));return}else{k.add(M),await V(Ie,it,!1,{preventScrollReset:De});return}if(Fn(it)){ye(M,F,it.error);return}ue(M,bi(it.data))}}async function V(M,F,G,{submission:ee,fetcherSubmission:oe,preventScrollReset:Oe,replace:ke}={}){F.response.headers.has("X-Remix-Revalidate")&&(xe=!0);let ve=F.response.headers.get("Location");Ze(ve,"Expected a Location header on the redirect Response"),ve=vE(ve,new URL(M.url),d);let De=Bu(w.location,ve,{_isRedirect:!0});if(n){let Ot=!1;if(F.response.headers.has("X-Remix-Reload-Document"))Ot=!0;else if(sy.test(ve)){const Dt=e.history.createURL(ve);Ot=Dt.origin!==t.location.origin||mr(Dt.pathname,d)==null}if(Ot){ke?t.location.replace(ve):t.location.assign(ve);return}}Q=null;let je=ke===!0||F.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Le,formAction:Ae,formEncType:Ie}=w.navigation;!ee&&!oe&&Le&&Ae&&Ie&&(ee=xE(w.navigation));let nt=ee||oe;if(pR.has(F.response.status)&&nt&&In(nt.formMethod))await kt(je,De,{submission:{...nt,formAction:ve},preventScrollReset:Oe||re,enableViewTransition:G?he:void 0});else{let Ot=Em(De,ee);await kt(je,De,{overrideNavigation:Ot,fetcherSubmission:oe,preventScrollReset:Oe||re,enableViewTransition:G?he:void 0})}}async function ce(M,F,G,ee){let oe,Oe={};try{oe=await xR(p,M,F,ee,G,!1)}catch(ke){return F.filter(ve=>ve.shouldLoad).forEach(ve=>{Oe[ve.route.id]={type:"error",error:ke}}),Oe}for(let[ke,ve]of Object.entries(oe))if(CR(ve)){let De=ve.result;Oe[ke]={type:"redirect",response:wR(De,M,ke,F,d)}}else Oe[ke]=await TR(ve);return Oe}async function pe(M,F,G,ee){let oe=ce(G,M,ee,null),Oe=Promise.all(F.map(async De=>{if(De.matches&&De.match&&De.request&&De.controller){let Le=(await ce(De.request,De.matches,ee,De.key))[De.match.route.id];return{[De.key]:Le}}else return Promise.resolve({[De.key]:{type:"error",error:ur(404,{pathname:De.path})}})})),ke=await oe,ve=(await Oe).reduce((De,je)=>Object.assign(De,je),{});return{loaderResults:ke,fetcherResults:ve}}function _e(){xe=!0,Y.forEach((M,F)=>{L.has(F)&&Te.add(F),bn(F)})}function ue(M,F,G={}){w.fetchers.set(M,F),ut({fetchers:new Map(w.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function ye(M,F,G,ee={}){let oe=ys(w.matches,F);bt(M),ut({errors:{[oe.route.id]:G},fetchers:new Map(w.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function tt(M){return ae.set(M,(ae.get(M)||0)+1),ne.has(M)&&ne.delete(M),w.fetchers.get(M)||mR}function bt(M){let F=w.fetchers.get(M);L.has(M)&&!(F&&F.state==="loading"&&we.has(M))&&bn(M),Y.delete(M),we.delete(M),k.delete(M),ne.delete(M),Te.delete(M),w.fetchers.delete(M)}function Gi(M){let F=(ae.get(M)||0)-1;F<=0?(ae.delete(M),ne.add(M)):ae.set(M,F),ut({fetchers:new Map(w.fetchers)})}function bn(M){let F=L.get(M);F&&(F.abort(),L.delete(M))}function Js(M){for(let F of M){let G=tt(F),ee=bi(G.data);w.fetchers.set(F,ee)}}function Br(){let M=[],F=!1;for(let G of k){let ee=w.fetchers.get(G);Ze(ee,`Expected fetcher: ${G}`),ee.state==="loading"&&(k.delete(G),M.push(G),F=!0)}return Js(M),F}function oa(M){let F=[];for(let[G,ee]of we)if(ee<M){let oe=w.fetchers.get(G);Ze(oe,`Expected fetcher: ${G}`),oe.state==="loading"&&(bn(G),we.delete(G),F.push(G))}return Js(F),F.length>0}function ua(M,F){let G=w.blockers.get(M)||Su;return se.get(M)!==F&&se.set(M,F),G}function Yi(M){w.blockers.delete(M),se.delete(M)}function Fr(M,F){let G=w.blockers.get(M)||Su;Ze(G.state==="unblocked"&&F.state==="blocked"||G.state==="blocked"&&F.state==="blocked"||G.state==="blocked"&&F.state==="proceeding"||G.state==="blocked"&&F.state==="unblocked"||G.state==="proceeding"&&F.state==="unblocked",`Invalid blocker state transition: ${G.state} -> ${F.state}`);let ee=new Map(w.blockers);ee.set(M,F),ut({blockers:ee})}function Sc({currentLocation:M,nextLocation:F,historyAction:G}){if(se.size===0)return;se.size>1&&qt(!1,"A router only supports one blocker at a time");let ee=Array.from(se.entries()),[oe,Oe]=ee[ee.length-1],ke=w.blockers.get(oe);if(!(ke&&ke.state==="proceeding")&&Oe({currentLocation:M,nextLocation:F,historyAction:G}))return oe}function Ws(M){let F=ur(404,{pathname:M}),G=h||c,{matches:ee,route:oe}=EE(G);return{notFoundMatches:ee,route:oe,error:F}}function Ec(M,F,G){if(_=M,A=F,x=G||null,!N&&w.navigation===Sm){N=!0;let ee=_c(w.location,w.matches);ee!=null&&ut({restoreScrollPosition:ee})}return()=>{_=null,A=null,x=null}}function el(M,F){return x&&x(M,F.map(ee=>GC(ee,w.loaderData)))||M.key}function Ki(M,F){if(_&&A){let G=el(M,F);_[G]=A()}}function _c(M,F){if(_){let G=el(M,F),ee=_[G];if(typeof ee=="number")return ee}return null}function Qi(M,F,G){if(e.patchRoutesOnNavigation)if(M){if(Object.keys(M[0].params).length>0)return{active:!0,matches:Qf(F,G,d,!0)}}else return{active:!0,matches:Qf(F,G,d,!0)||[]};return{active:!1,matches:null}}async function Xi(M,F,G,ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:M};let oe=M;for(;;){let Oe=h==null,ke=h||c,ve=o;try{await e.patchRoutesOnNavigation({signal:G,path:F,matches:oe,fetcherKey:ee,patch:(Le,Ae)=>{G.aborted||dE(Le,Ae,ke,ve,s)}})}catch(Le){return{type:"error",error:Le,partialMatches:oe}}finally{Oe&&!G.aborted&&(c=[...c])}if(G.aborted)return{type:"aborted"};let De=xi(ke,F,d);if(De)return{type:"success",matches:De};let je=Qf(ke,F,d,!0);if(!je||oe.length===je.length&&oe.every((Le,Ae)=>Le.route.id===je[Ae].route.id))return{type:"success",matches:null};oe=je}}function Eo(M){o={},h=od(M,s,void 0,o)}function _o(M,F){let G=h==null;dE(M,F,h||c,o,s),G&&(c=[...c],ut({}))}return C={get basename(){return d},get future(){return v},get state(){return w},get routes(){return c},get window(){return t},initialize:dt,subscribe:Rt,enableScrollRestoration:Ec,navigate:Wt,fetch:Xn,revalidate:en,createHref:M=>e.history.createHref(M),encodeLocation:M=>e.history.encodeLocation(M),getFetcher:tt,deleteFetcher:Gi,dispose:qe,getBlocker:ua,deleteBlocker:Yi,patchRoutes:_o,_internalFetchControllers:L,_internalSetRoutes:Eo},C}function gR(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function av(e,t,n,a,s,o){let c,h;if(s){c=[];for(let p of t)if(c.push(p),p.route.id===s){h=p;break}}else c=t,h=t[t.length-1];let d=iy(a||".",ay(c),mr(e.pathname,n)||e.pathname,o==="path");if(a==null&&(d.search=e.search,d.hash=e.hash),(a==null||a===""||a===".")&&h){let p=ly(d.search);if(h.route.index&&!p)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&p){let v=new URLSearchParams(d.search),b=v.getAll("index");v.delete("index"),b.filter(_=>_).forEach(_=>v.append("index",_));let y=v.toString();d.search=y?`?${y}`:""}}return n!=="/"&&(d.pathname=d.pathname==="/"?n:Jr([n,d.pathname])),ji(d)}function cE(e,t,n){if(!n||!gR(n))return{path:t};if(n.formMethod&&!RR(n.formMethod))return{path:t,error:ur(405,{method:n.formMethod})};let a=()=>({path:t,error:ur(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),c=uO(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!In(o))return a();let b=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[_,x])=>`${y}${_}=${x}
|
|
59
|
+
`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:b}}}else if(n.formEncType==="application/json"){if(!In(o))return a();try{let b=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}Ze(typeof FormData=="function","FormData is not available in this environment");let h,d;if(n.formData)h=lv(n.formData),d=n.formData;else if(n.body instanceof FormData)h=lv(n.body),d=n.body;else if(n.body instanceof URLSearchParams)h=n.body,d=yE(h);else if(n.body==null)h=new URLSearchParams,d=new FormData;else try{h=new URLSearchParams(n.body),d=yE(h)}catch{return a()}let p={formMethod:o,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(In(p.formMethod))return{path:t,submission:p};let v=Fi(t);return e&&v.search&&ly(v.search)&&h.append("index",""),v.search=`?${h}`,{path:ji(v),submission:p}}function fE(e,t,n,a,s,o,c,h,d,p,v,b,y,_,x,A,N,O,R){var Re;let D=R?Fn(R[1])?R[1].error:R[1].data:void 0,U=s.createURL(o.location),C=s.createURL(d),w;if(v&&o.errors){let fe=Object.keys(o.errors)[0];w=c.findIndex(xe=>xe.route.id===fe)}else if(R&&Fn(R[1])){let fe=R[0];w=c.findIndex(xe=>xe.route.id===fe)-1}let q=R?R[1].statusCode:void 0,re=q&&q>=400,Q={currentUrl:U,currentParams:((Re=o.matches[0])==null?void 0:Re.params)||{},nextUrl:C,nextParams:c[0].params,...h,actionResult:D,actionStatus:q},he=c.map((fe,xe)=>{let{route:Te}=fe,L=null;if(w!=null&&xe>w?L=!1:Te.lazy?L=!0:Te.loader==null?L=!1:v?L=iv(Te,o.loaderData,o.errors):bR(o.loaderData,o.matches[xe],fe)&&(L=!0),L!==null)return sv(n,a,e,fe,p,t,L);let te=re?!1:b||U.pathname+U.search===C.pathname+C.search||U.search!==C.search||SR(o.matches[xe],fe),le={...Q,defaultShouldRevalidate:te},we=fd(fe,le);return sv(n,a,e,fe,p,t,we,le)}),ie=[];return x.forEach((fe,xe)=>{if(v||!c.some(Y=>Y.route.id===fe.routeId)||_.has(xe))return;let Te=xi(N,fe.path,O);if(!Te){ie.push({key:xe,routeId:fe.routeId,path:fe.path,matches:null,match:null,request:null,controller:null});return}if(A.has(xe))return;let L=o.fetchers.get(xe),te=Nu(Te,fe.path),le=new AbortController,we=zl(s,fe.path,le.signal),k=null;if(y.has(xe))y.delete(xe),k=Yl(n,a,we,Te,te,p,t);else if(L&&L.state!=="idle"&&L.data===void 0)b&&(k=Yl(n,a,we,Te,te,p,t));else{let Y={...Q,defaultShouldRevalidate:re?!1:b};fd(te,Y)&&(k=Yl(n,a,we,Te,te,p,t,Y))}k&&ie.push({key:xe,routeId:fe.routeId,path:fe.path,matches:k,match:te,request:we,controller:le})}),{dsMatches:he,revalidatingFetchers:ie}}function iv(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let a=t!=null&&t[e.id]!==void 0,s=n!=null&&n[e.id]!==void 0;return!a&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!a&&!s}function bR(e,t,n){let a=!t||n.route.id!==t.route.id,s=!e.hasOwnProperty(n.route.id);return a||s}function SR(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fd(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function dE(e,t,n,a,s){let o;if(e){let d=a[e];Ze(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),o=d.children}else o=n;let c=t.filter(d=>!o.some(p=>aO(d,p))),h=od(c,s,[e||"_","patch",String((o==null?void 0:o.length)||"0")],a);o.push(...h)}function aO(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,a)=>{var s;return(s=t.children)==null?void 0:s.some(o=>aO(n,o))}):!1}var hE=new WeakMap,iO=({key:e,route:t,manifest:n,mapRouteProperties:a})=>{let s=n[t.id];if(Ze(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let o=s.lazy[e];if(!o)return;let c=hE.get(s);c||(c={},hE.set(s,c));let h=c[e];if(h)return h;let d=(async()=>{let p=qC(e),b=s[e]!==void 0&&e!=="hasErrorBoundary";if(p)qt(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),c[e]=Promise.resolve();else if(b)qt(!1,`Route "${s.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await o();y!=null&&(Object.assign(s,{[e]:y}),Object.assign(s,a(s)))}typeof s.lazy=="object"&&(s.lazy[e]=void 0,Object.values(s.lazy).every(y=>y===void 0)&&(s.lazy=void 0))})();return c[e]=d,d},pE=new WeakMap;function ER(e,t,n,a,s){let o=n[e.id];if(Ze(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let v=pE.get(o);if(v)return{lazyRoutePromise:v,lazyHandlerPromise:v};let b=(async()=>{Ze(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),_={};for(let x in y){let A=y[x];if(A===void 0)continue;let N=HC(x),R=o[x]!==void 0&&x!=="hasErrorBoundary";N?qt(!N,"Route property "+x+" is not a supported property to be returned from a lazy route function. This property will be ignored."):R?qt(!R,`Route "${o.id}" has a static property "${x}" defined but its lazy function is also returning a value for this property. The lazy route property "${x}" will be ignored.`):_[x]=A}Object.assign(o,_),Object.assign(o,{...a(o),lazy:void 0})})();return pE.set(o,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let c=Object.keys(e.lazy),h=[],d;for(let v of c){if(s&&s.includes(v))continue;let b=iO({key:v,route:e,manifest:n,mapRouteProperties:a});b&&(h.push(b),v===t&&(d=b))}let p=h.length>0?Promise.all(h).then(()=>{}):void 0;return p==null||p.catch(()=>{}),d==null||d.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:d}}async function mE(e){let t=e.matches.filter(s=>s.shouldLoad),n={};return(await Promise.all(t.map(s=>s.resolve()))).forEach((s,o)=>{n[t[o].route.id]=s}),n}async function _R(e){return e.matches.some(t=>t.route.unstable_middleware)?sO(e,!1,()=>mE(e),(t,n)=>({[n]:{type:"error",result:t}})):mE(e)}async function sO(e,t,n,a){let{matches:s,request:o,params:c,context:h}=e,d={handlerResult:void 0};try{let p=s.flatMap(b=>b.route.unstable_middleware?b.route.unstable_middleware.map(y=>[b.route.id,y]):[]),v=await lO({request:o,params:c,context:h},p,t,d,n);return t?v:d.handlerResult}catch(p){if(!d.middlewareError)throw p;let v=await a(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,v):v}}async function lO(e,t,n,a,s,o=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason?c.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${c.method} ${c.url}`);let h=t[o];if(!h)return a.handlerResult=await s(),a.handlerResult;let[d,p]=h,v=!1,b,y=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");v=!0,await lO(e,t,n,a,s,o+1)};try{let _=await p({request:e.request,params:e.params,context:e.context},y);return v?_===void 0?b:_:y()}catch(_){throw a.middlewareError?a.middlewareError.error!==_&&(a.middlewareError={routeId:d,error:_}):a.middlewareError={routeId:d,error:_},_}}function oO(e,t,n,a,s){let o=iO({key:"unstable_middleware",route:a.route,manifest:t,mapRouteProperties:e}),c=ER(a.route,In(n.method)?"action":"loader",t,e,s);return{middleware:o,route:c.lazyRoutePromise,handler:c.lazyHandlerPromise}}function sv(e,t,n,a,s,o,c,h=null){let d=!1,p=oO(e,t,n,a,s);return{...a,_lazyPromises:p,shouldLoad:c,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler(v){return d=!0,h?typeof v=="boolean"?fd(a,{...h,defaultShouldRevalidate:v}):fd(a,h):c},resolve(v){return d||c||v&&n.method==="GET"&&(a.route.lazy||a.route.loader)?OR({request:n,match:a,lazyHandlerPromise:p==null?void 0:p.handler,lazyRoutePromise:p==null?void 0:p.route,handlerOverride:v,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Yl(e,t,n,a,s,o,c,h=null){return a.map(d=>d.route.id!==s.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler:()=>!1,_lazyPromises:oO(e,t,n,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:sv(e,t,n,d,o,c,!0,h))}async function xR(e,t,n,a,s,o){n.some(p=>{var v;return(v=p._lazyPromises)==null?void 0:v.middleware})&&await Promise.all(n.map(p=>{var v;return(v=p._lazyPromises)==null?void 0:v.middleware}));let c={request:t,params:n[0].params,context:s,matches:n},d=await e({...c,fetcherKey:a,unstable_runClientMiddleware:p=>{let v=c;return sO(v,!1,()=>p({...v,fetcherKey:a,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(b,y)=>({[y]:{type:"error",result:b}}))}});try{await Promise.all(n.flatMap(p=>{var v,b;return[(v=p._lazyPromises)==null?void 0:v.handler,(b=p._lazyPromises)==null?void 0:b.route]}))}catch{}return d}async function OR({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:a,handlerOverride:s,scopedContext:o}){let c,h,d=In(e.method),p=d?"action":"loader",v=b=>{let y,_=new Promise((N,O)=>y=O);h=()=>y(),e.signal.addEventListener("abort",h);let x=N=>typeof b!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${p}" [routeId: ${t.route.id}]`)):b({request:e,params:t.params,context:o},...N!==void 0?[N]:[]),A=(async()=>{try{return{type:"data",result:await(s?s(O=>x(O)):x())}}catch(N){return{type:"error",result:N}}})();return Promise.race([A,_])};try{let b=d?t.route.action:t.route.loader;if(n||a)if(b){let y,[_]=await Promise.all([v(b).catch(x=>{y=x}),n,a]);if(y!==void 0)throw y;c=_}else{await n;let y=d?t.route.action:t.route.loader;if(y)[c]=await Promise.all([v(y),a]);else if(p==="action"){let _=new URL(e.url),x=_.pathname+_.search;throw ur(405,{method:e.method,pathname:x,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(b)c=await v(b);else{let y=new URL(e.url),_=y.pathname+y.search;throw ur(404,{pathname:_})}}catch(b){return{type:"error",result:b}}finally{h&&e.signal.removeEventListener("abort",h)}return c}async function TR(e){var a,s,o,c,h,d;let{result:t,type:n}=e;if(cO(t)){let p;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?p=null:p=await t.json():p=await t.text()}catch(v){return{type:"error",error:v}}return n==="error"?{type:"error",error:new cd(t.status,t.statusText,p),statusCode:t.status,headers:t.headers}:{type:"data",data:p,statusCode:t.status,headers:t.headers}}return n==="error"?_E(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new cd(((o=t.init)==null?void 0:o.status)||500,void 0,t.data),statusCode:Fu(t)?t.status:void 0,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Fu(t)?t.status:void 0}:_E(t)?{type:"data",data:t.data,statusCode:(h=t.init)==null?void 0:h.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function wR(e,t,n,a,s){let o=e.headers.get("Location");if(Ze(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!sy.test(o)){let c=a.slice(0,a.findIndex(h=>h.route.id===n)+1);o=av(new URL(t.url),c,s,o),e.headers.set("Location",o)}return e}function vE(e,t,n){if(sy.test(e)){let a=e,s=a.startsWith("//")?new URL(t.protocol+a):new URL(a),o=mr(s.pathname,n)!=null;if(s.origin===t.origin&&o)return s.pathname+s.search+s.hash}return e}function zl(e,t,n,a){let s=e.createURL(uO(t)).toString(),o={signal:n};if(a&&In(a.formMethod)){let{formMethod:c,formEncType:h}=a;o.method=c.toUpperCase(),h==="application/json"?(o.headers=new Headers({"Content-Type":h}),o.body=JSON.stringify(a.json)):h==="text/plain"?o.body=a.text:h==="application/x-www-form-urlencoded"&&a.formData?o.body=lv(a.formData):o.body=a.formData}return new Request(s,o)}function lv(e){let t=new URLSearchParams;for(let[n,a]of e.entries())t.append(n,typeof a=="string"?a:a.name);return t}function yE(e){let t=new FormData;for(let[n,a]of e.entries())t.append(n,a);return t}function AR(e,t,n,a=!1,s=!1){let o={},c=null,h,d=!1,p={},v=n&&Fn(n[1])?n[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let y=b.route.id,_=t[y];if(Ze(!gs(_),"Cannot handle redirect results in processLoaderData"),Fn(_)){let x=_.error;if(v!==void 0&&(x=v,v=void 0),c=c||{},s)c[y]=x;else{let A=ys(e,y);c[A.route.id]==null&&(c[A.route.id]=x)}a||(o[y]=rO),d||(d=!0,h=Fu(_.error)?_.error.status:500),_.headers&&(p[y]=_.headers)}else o[y]=_.data,_.statusCode&&_.statusCode!==200&&!d&&(h=_.statusCode),_.headers&&(p[y]=_.headers)}),v!==void 0&&n&&(c={[n[0]]:v},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:c,statusCode:h||200,loaderHeaders:p}}function gE(e,t,n,a,s,o){let{loaderData:c,errors:h}=AR(t,n,a);return s.filter(d=>!d.matches||d.matches.some(p=>p.shouldLoad)).forEach(d=>{let{key:p,match:v,controller:b}=d,y=o[p];if(Ze(y,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(Fn(y)){let _=ys(e.matches,v==null?void 0:v.route.id);h&&h[_.route.id]||(h={...h,[_.route.id]:y.error}),e.fetchers.delete(p)}else if(gs(y))Ze(!1,"Unhandled fetcher revalidation redirect");else{let _=bi(y.data);e.fetchers.set(p,_)}}),{loaderData:c,errors:h}}function bE(e,t,n,a){let s=Object.entries(t).filter(([,o])=>o!==rO).reduce((o,[c,h])=>(o[c]=h,o),{});for(let o of n){let c=o.route.id;if(!t.hasOwnProperty(c)&&e.hasOwnProperty(c)&&o.route.loader&&(s[c]=e[c]),a&&a.hasOwnProperty(c))break}return s}function SE(e){return e?Fn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ys(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function EE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ur(e,{pathname:t,routeId:n,method:a,type:s,message:o}={}){let c="Unknown Server Error",h="Unknown @remix-run/router error";return e===400?(c="Bad Request",a&&t&&n?h=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:s==="invalid-body"&&(h="Unable to encode submission body")):e===403?(c="Forbidden",h=`Route "${n}" does not match URL "${t}"`):e===404?(c="Not Found",h=`No route matches URL "${t}"`):e===405&&(c="Method Not Allowed",a&&t&&n?h=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:a&&(h=`Invalid request method "${a.toUpperCase()}"`)),new cd(e||500,c,new Error(h),!0)}function kf(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[a,s]=t[n];if(gs(s))return{key:a,result:s}}}function uO(e){let t=typeof e=="string"?Fi(e):e;return ji({...t,hash:""})}function NR(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function CR(e){return cO(e.result)&&hR.has(e.result.status)}function Fn(e){return e.type==="error"}function gs(e){return(e&&e.type)==="redirect"}function _E(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function cO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function RR(e){return dR.has(e.toUpperCase())}function In(e){return cR.has(e.toUpperCase())}function ly(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Nu(e,t){let n=typeof t=="string"?Fi(t).search:t.search;if(e[e.length-1].route.index&&ly(n||""))return e[e.length-1];let a=eO(e);return a[a.length-1]}function xE(e){let{formMethod:t,formAction:n,formEncType:a,text:s,formData:o,json:c}=e;if(!(!t||!n||!a)){if(s!=null)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:void 0,text:s};if(o!=null)return{formMethod:t,formAction:n,formEncType:a,formData:o,json:void 0,text:void 0};if(c!==void 0)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:c,text:void 0}}}function Em(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function DR(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Eu(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function jR(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function kR(e,t){try{let n=e.sessionStorage.getItem(nO);if(n){let a=JSON.parse(n);for(let[s,o]of Object.entries(a||{}))o&&Array.isArray(o)&&t.set(s,new Set(o||[]))}}catch{}}function MR(e,t){if(t.size>0){let n={};for(let[a,s]of t)n[a]=[...s];try{e.sessionStorage.setItem(nO,JSON.stringify(n))}catch(a){qt(!1,`Failed to save applied view transitions in sessionStorage (${a}).`)}}}function UR(){let e,t,n=new Promise((a,s)=>{e=async o=>{a(o);try{await n}catch{}},t=async o=>{s(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Fs=S.createContext(null);Fs.displayName="DataRouter";var tc=S.createContext(null);tc.displayName="DataRouterState";var oy=S.createContext({isTransitioning:!1});oy.displayName="ViewTransition";var fO=S.createContext(new Map);fO.displayName="Fetchers";var $R=S.createContext(null);$R.displayName="Await";var ia=S.createContext(null);ia.displayName="Navigation";var Dd=S.createContext(null);Dd.displayName="Location";var Ur=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ur.displayName="Route";var uy=S.createContext(null);uy.displayName="RouteError";function LR(e,{relative:t}={}){Ze(nc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=S.useContext(ia),{hash:s,pathname:o,search:c}=rc(e,{relative:t}),h=o;return n!=="/"&&(h=o==="/"?n:Jr([n,o])),a.createHref({pathname:h,search:c,hash:s})}function nc(){return S.useContext(Dd)!=null}function Ha(){return Ze(nc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Dd).location}var dO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hO(e){S.useContext(ia).static||S.useLayoutEffect(e)}function jd(){let{isDataRoute:e}=S.useContext(Ur);return e?ZR():BR()}function BR(){Ze(nc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Fs),{basename:t,navigator:n}=S.useContext(ia),{matches:a}=S.useContext(Ur),{pathname:s}=Ha(),o=JSON.stringify(ay(a)),c=S.useRef(!1);return hO(()=>{c.current=!0}),S.useCallback((d,p={})=>{if(qt(c.current,dO),!c.current)return;if(typeof d=="number"){n.go(d);return}let v=iy(d,JSON.parse(o),s,p.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Jr([t,v.pathname])),(p.replace?n.replace:n.push)(v,p.state,p)},[t,n,o,s,e])}var FR=S.createContext(null);function IR(e){let t=S.useContext(Ur).outlet;return t&&S.createElement(FR.Provider,{value:e},t)}function pO(){let{matches:e}=S.useContext(Ur),t=e[e.length-1];return t?t.params:{}}function rc(e,{relative:t}={}){let{matches:n}=S.useContext(Ur),{pathname:a}=Ha(),s=JSON.stringify(ay(n));return S.useMemo(()=>iy(e,JSON.parse(s),a,t==="path"),[e,s,a,t])}function zR(e,t,n,a){Ze(nc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:o}=S.useContext(ia),{matches:c}=S.useContext(Ur),h=c[c.length-1],d=h?h.params:{},p=h?h.pathname:"/",v=h?h.pathnameBase:"/",b=h&&h.route;{let R=b&&b.path||"";vO(p,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) 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.
|
|
60
60
|
|
|
61
|
-
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let y=Ha(),_;_=y;let x=_.pathname||"/",A=x;if(v!=="/"){let R=v.replace(/^\//,"").split("/");A="/"+x.replace(/^\//,"").split("/").slice(R.length).join("/")}let N=!o&&n&&n.matches&&n.matches.length>0?n.matches:xi(e,{pathname:A});return qt(b||N!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),qt(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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.`),IR(N&&N.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:Jr([v,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:Jr([v,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),c,n,a)}function $R(){let e=mO(),t=Fu(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:o},"ErrorBoundary")," or"," ",S.createElement("code",{style:o},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:s},n):null,c)}var LR=S.createElement($R,null),BR=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(Ur.Provider,{value:this.props.routeContext},S.createElement(uy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function FR({routeContext:e,match:t,children:n}){let a=S.useContext(Fs);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ur.Provider,{value:e},n)}function IR(e,t=[],n=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=n==null?void 0:n.errors;if(o!=null){let d=s.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);Ze(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,h=-1;if(n)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(h=d),p.route.id){let{loaderData:v,errors:b}=n,y=p.route.loader&&!v.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||y){c=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((d,p,v)=>{let b,y=!1,_=null,x=null;n&&(b=o&&p.route.id?o[p.route.id]:void 0,_=p.route.errorElement||LR,c&&(h<0&&v===0?(vO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,x=null):h===v&&(y=!0,x=p.route.hydrateFallbackElement||null)));let A=t.concat(s.slice(0,v+1)),N=()=>{let O;return b?O=_:y?O=x:p.route.Component?O=S.createElement(p.route.Component,null):p.route.element?O=p.route.element:O=d,S.createElement(FR,{match:p,routeContext:{outlet:d,matches:A,isDataRoute:n!=null},children:O})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?S.createElement(BR,{location:n.location,revalidation:n.revalidation,component:_,error:b,children:N(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):N()},null)}function cy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zR(e){let t=S.useContext(Fs);return Ze(t,cy(e)),t}function qR(e){let t=S.useContext(tc);return Ze(t,cy(e)),t}function VR(e){let t=S.useContext(Ur);return Ze(t,cy(e)),t}function fy(e){let t=VR(e),n=t.matches[t.matches.length-1];return Ze(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function HR(){return fy("useRouteId")}function mO(){var a;let e=S.useContext(uy),t=qR("useRouteError"),n=fy("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function PR(){let{router:e}=zR("useNavigate"),t=fy("useNavigate"),n=S.useRef(!1);return hO(()=>{n.current=!0}),S.useCallback(async(s,o={})=>{qt(n.current,dO),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...o}))},[e,t])}var OE={};function vO(e,t,n){!t&&!OE[e]&&(OE[e]=!0,qt(!1,n))}var TE={};function wE(e,t){!e&&!TE[t]&&(TE[t]=!0,console.warn(t))}function GR(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&qt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:S.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&qt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&qt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var YR=["HydrateFallback","hydrateFallbackElement"],KR=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function QR({router:e,flushSync:t}){let[n,a]=S.useState(e.state),[s,o]=S.useState(),[c,h]=S.useState({isTransitioning:!1}),[d,p]=S.useState(),[v,b]=S.useState(),[y,_]=S.useState(),x=S.useRef(new Map),A=S.useCallback((D,{deletedFetchers:U,flushSync:C,viewTransitionOpts:w})=>{D.fetchers.forEach((re,Q)=>{re.data!==void 0&&x.current.set(Q,re.data)}),U.forEach(re=>x.current.delete(re)),wE(C===!1||t!=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 q=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(wE(w==null||q,"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."),!w||!q){t&&C?t(()=>a(D)):S.startTransition(()=>a(D));return}if(t&&C){t(()=>{v&&(d&&d.resolve(),v.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:w.currentLocation,nextLocation:w.nextLocation})});let re=e.window.document.startViewTransition(()=>{t(()=>a(D))});re.finished.finally(()=>{t(()=>{p(void 0),b(void 0),o(void 0),h({isTransitioning:!1})})}),t(()=>b(re));return}v?(d&&d.resolve(),v.skipTransition(),_({state:D,currentLocation:w.currentLocation,nextLocation:w.nextLocation})):(o(D),h({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}))},[e.window,t,v,d]);S.useLayoutEffect(()=>e.subscribe(A),[e,A]),S.useEffect(()=>{c.isTransitioning&&!c.flushSync&&p(new KR)},[c]),S.useEffect(()=>{if(d&&s&&e.window){let D=s,U=d.promise,C=e.window.document.startViewTransition(async()=>{S.startTransition(()=>a(D)),await U});C.finished.finally(()=>{p(void 0),b(void 0),o(void 0),h({isTransitioning:!1})}),b(C)}},[s,d,e.window]),S.useEffect(()=>{d&&s&&n.location.key===s.location.key&&d.resolve()},[d,v,n.location,s]),S.useEffect(()=>{!c.isTransitioning&&y&&(o(y.state),h({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),_(void 0))},[c.isTransitioning,y]);let N=S.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:D=>e.navigate(D),push:(D,U,C)=>e.navigate(D,{state:U,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(D,U,C)=>e.navigate(D,{replace:!0,state:U,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[e]),O=e.basename||"/",R=S.useMemo(()=>({router:e,navigator:N,static:!1,basename:O}),[e,N,O]);return S.createElement(S.Fragment,null,S.createElement(Fs.Provider,{value:R},S.createElement(tc.Provider,{value:n},S.createElement(fO.Provider,{value:x.current},S.createElement(oy.Provider,{value:c},S.createElement(JR,{basename:O,location:n.location,navigationType:n.historyAction,navigator:N},S.createElement(XR,{routes:e.routes,future:e.future,state:n})))))),null)}var XR=S.memo(ZR);function ZR({routes:e,future:t,state:n}){return UR(e,void 0,n,t)}function yO(e){return MR(e.context)}function JR({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:s,static:o=!1}){Ze(!nc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:c,navigator:s,static:o,future:{}}),[c,s,o]);typeof n=="string"&&(n=Fi(n));let{pathname:d="/",search:p="",hash:v="",state:b=null,key:y="default"}=n,_=S.useMemo(()=>{let x=mr(d,c);return x==null?null:{location:{pathname:x,search:p,hash:v,state:b,key:y},navigationType:a}},[c,d,p,v,b,y,a]);return qt(_!=null,`<Router basename="${c}"> is not able to match the URL "${d}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:S.createElement(ia.Provider,{value:h},S.createElement(Dd.Provider,{children:t,value:_}))}var Xf="get",Zf="application/x-www-form-urlencoded";function kd(e){return e!=null&&typeof e.tagName=="string"}function WR(e){return kd(e)&&e.tagName.toLowerCase()==="button"}function eD(e){return kd(e)&&e.tagName.toLowerCase()==="form"}function tD(e){return kd(e)&&e.tagName.toLowerCase()==="input"}function nD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rD(e,t){return e.button===0&&(!t||t==="_self")&&!nD(e)}var Mf=null;function aD(){if(Mf===null)try{new FormData(document.createElement("form"),0),Mf=!1}catch{Mf=!0}return Mf}var iD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _m(e){return e!=null&&!iD.has(e)?(qt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zf}"`),null):e}function sD(e,t){let n,a,s,o,c;if(eD(e)){let h=e.getAttribute("action");a=h?mr(h,t):null,n=e.getAttribute("method")||Xf,s=_m(e.getAttribute("enctype"))||Zf,o=new FormData(e)}else if(WR(e)||tD(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||h.getAttribute("action");if(a=d?mr(d,t):null,n=e.getAttribute("formmethod")||h.getAttribute("method")||Xf,s=_m(e.getAttribute("formenctype"))||_m(h.getAttribute("enctype"))||Zf,o=new FormData(h,e),!aD()){let{name:p,type:v,value:b}=e;if(v==="image"){let y=p?`${p}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else p&&o.append(p,b)}}else{if(kd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xf,a=null,s=Zf,c=e}return o&&s==="text/plain"&&(c=o,o=void 0),{action:a,method:n.toLowerCase(),encType:s,formData:o,body:c}}function dy(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function lD(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oD(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function uD(e,t,n){let a=await Promise.all(e.map(async s=>{let o=t.routes[s.route.id];if(o){let c=await lD(o,n);return c.links?c.links():[]}return[]}));return hD(a.flat(1).filter(oD).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function AE(e,t,n,a,s,o){let c=(d,p)=>n[p]?d.route.id!==n[p].route.id:!0,h=(d,p)=>{var v;return n[p].pathname!==d.pathname||((v=n[p].route.path)==null?void 0:v.endsWith("*"))&&n[p].params["*"]!==d.params["*"]};return o==="assets"?t.filter((d,p)=>c(d,p)||h(d,p)):o==="data"?t.filter((d,p)=>{var b;let v=a.routes[d.route.id];if(!v||!v.hasLoader)return!1;if(c(d,p)||h(d,p))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=n[0])==null?void 0:b.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function cD(e,t,{includeHydrateFallback:n}={}){return fD(e.map(a=>{let s=t.routes[a.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function fD(e){return[...new Set(e)]}function dD(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function hD(e,t){let n=new Set;return new Set(t),e.reduce((a,s)=>{let o=JSON.stringify(dD(s));return n.has(o)||(n.add(o),a.push({key:o,link:s})),a},[])}var pD=new Set([100,101,204,205]);function mD(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&mr(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function gO(){let e=S.useContext(Fs);return dy(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function vD(){let e=S.useContext(tc);return dy(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var hy=S.createContext(void 0);hy.displayName="FrameworkContext";function bO(){let e=S.useContext(hy);return dy(e,"You must render this element inside a <HydratedRouter> element"),e}function yD(e,t){let n=S.useContext(hy),[a,s]=S.useState(!1),[o,c]=S.useState(!1),{onFocus:h,onBlur:d,onMouseEnter:p,onMouseLeave:v,onTouchStart:b}=t,y=S.useRef(null);S.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let A=O=>{O.forEach(R=>{c(R.isIntersecting)})},N=new IntersectionObserver(A,{threshold:.5});return y.current&&N.observe(y.current),()=>{N.disconnect()}}},[e]),S.useEffect(()=>{if(a){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[a]);let _=()=>{s(!0)},x=()=>{s(!1),c(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:_u(h,_),onBlur:_u(d,x),onMouseEnter:_u(p,_),onMouseLeave:_u(v,x),onTouchStart:_u(b,_)}]:[!1,y,{}]}function _u(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function gD({page:e,...t}){let{router:n}=gO(),a=S.useMemo(()=>xi(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?S.createElement(SD,{page:e,matches:a,...t}):null}function bD(e){let{manifest:t,routeModules:n}=bO(),[a,s]=S.useState([]);return S.useEffect(()=>{let o=!1;return uD(e,t,n).then(c=>{o||s(c)}),()=>{o=!0}},[e,t,n]),a}function SD({page:e,matches:t,...n}){let a=Ha(),{manifest:s,routeModules:o}=bO(),{basename:c}=gO(),{loaderData:h,matches:d}=vD(),p=S.useMemo(()=>AE(e,t,d,s,a,"data"),[e,t,d,s,a]),v=S.useMemo(()=>AE(e,t,d,s,a,"assets"),[e,t,d,s,a]),b=S.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let x=new Set,A=!1;if(t.forEach(O=>{var D;let R=s.routes[O.route.id];!R||!R.hasLoader||(!p.some(U=>U.route.id===O.route.id)&&O.route.id in h&&((D=o[O.route.id])!=null&&D.shouldRevalidate)||R.hasClientLoader?A=!0:x.add(O.route.id))}),x.size===0)return[];let N=mD(e,c);return A&&x.size>0&&N.searchParams.set("_routes",t.filter(O=>x.has(O.route.id)).map(O=>O.route.id).join(",")),[N.pathname+N.search]},[c,h,a,s,p,t,e,o]),y=S.useMemo(()=>cD(v,s),[v,s]),_=bD(v);return S.createElement(S.Fragment,null,b.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),y.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),_.map(({key:x,link:A})=>S.createElement("link",{key:x,...A})))}function ED(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var SO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{SO&&(window.__reactRouterVersion="7.5.3")}catch{}function _D(e,t){return fR({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:jC({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||xD(),routes:e,mapRouteProperties:GR,hydrationRouteProperties:YR,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function xD(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:OD(e.errors)}),e}function OD(e){if(!e)return null;let t=Object.entries(e),n={};for(let[a,s]of t)if(s&&s.__type==="RouteErrorResponse")n[a]=new cd(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let o=window[s.__subType];if(typeof o=="function")try{let c=new o(s.message);c.stack="",n[a]=c}catch{}}if(n[a]==null){let o=new Error(s.message);o.stack="",n[a]=o}}else n[a]=s;return n}var EO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pn=S.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:s,reloadDocument:o,replace:c,state:h,target:d,to:p,preventScrollReset:v,viewTransition:b,...y},_){let{basename:x}=S.useContext(ia),A=typeof p=="string"&&EO.test(p),N,O=!1;if(typeof p=="string"&&A&&(N=p,SO))try{let Q=new URL(window.location.href),he=p.startsWith("//")?new URL(Q.protocol+p):new URL(p),ie=mr(he.pathname,x);he.origin===Q.origin&&ie!=null?p=ie+he.search+he.hash:O=!0}catch{qt(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=DR(p,{relative:s}),[D,U,C]=yD(a,y),w=ND(p,{replace:c,state:h,target:d,preventScrollReset:v,relative:s,viewTransition:b});function q(Q){t&&t(Q),Q.defaultPrevented||w(Q)}let re=S.createElement("a",{...y,...C,href:N||R,onClick:O||o?t:q,ref:ED(_,U),target:d,"data-discover":!A&&n==="render"?"true":void 0});return D&&!A?S.createElement(S.Fragment,null,re,S.createElement(gD,{page:R})):re});Pn.displayName="Link";var TD=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:s=!1,style:o,to:c,viewTransition:h,children:d,...p},v){let b=rc(c,{relative:p.relative}),y=Ha(),_=S.useContext(tc),{navigator:x,basename:A}=S.useContext(ia),N=_!=null&&kD(b)&&h===!0,O=x.encodeLocation?x.encodeLocation(b).pathname:b.pathname,R=y.pathname,D=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(R=R.toLowerCase(),D=D?D.toLowerCase():null,O=O.toLowerCase()),D&&A&&(D=mr(D,A)||D);const U=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let C=R===O||!s&&R.startsWith(O)&&R.charAt(U)==="/",w=D!=null&&(D===O||!s&&D.startsWith(O)&&D.charAt(O.length)==="/"),q={isActive:C,isPending:w,isTransitioning:N},re=C?t:void 0,Q;typeof a=="function"?Q=a(q):Q=[a,C?"active":null,w?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let he=typeof o=="function"?o(q):o;return S.createElement(Pn,{...p,"aria-current":re,className:Q,ref:v,style:he,to:c,viewTransition:h},typeof d=="function"?d(q):d)});TD.displayName="NavLink";var wD=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:s,state:o,method:c=Xf,action:h,onSubmit:d,relative:p,preventScrollReset:v,viewTransition:b,...y},_)=>{let x=DD(),A=jD(h,{relative:p}),N=c.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&EO.test(h),R=D=>{if(d&&d(D),D.defaultPrevented)return;D.preventDefault();let U=D.nativeEvent.submitter,C=(U==null?void 0:U.getAttribute("formmethod"))||c;x(U||D.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:s,state:o,relative:p,preventScrollReset:v,viewTransition:b})};return S.createElement("form",{ref:_,method:N,action:A,onSubmit:a?d:R,...y,"data-discover":!O&&e==="render"?"true":void 0})});wD.displayName="Form";function AD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _O(e){let t=S.useContext(Fs);return Ze(t,AD(e)),t}function ND(e,{target:t,replace:n,state:a,preventScrollReset:s,relative:o,viewTransition:c}={}){let h=jd(),d=Ha(),p=rc(e,{relative:o});return S.useCallback(v=>{if(rD(v,t)){v.preventDefault();let b=n!==void 0?n:ji(d)===ji(p);h(e,{replace:b,state:a,preventScrollReset:s,relative:o,viewTransition:c})}},[d,h,p,n,a,t,e,s,o,c])}var CD=0,RD=()=>`__${String(++CD)}__`;function DD(){let{router:e}=_O("useSubmit"),{basename:t}=S.useContext(ia),n=HR();return S.useCallback(async(a,s={})=>{let{action:o,method:c,encType:h,formData:d,body:p}=sD(a,t);if(s.navigate===!1){let v=s.fetcherKey||RD();await e.fetch(v,n,s.action||o,{preventScrollReset:s.preventScrollReset,formData:d,body:p,formMethod:s.method||c,formEncType:s.encType||h,flushSync:s.flushSync})}else await e.navigate(s.action||o,{preventScrollReset:s.preventScrollReset,formData:d,body:p,formMethod:s.method||c,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function jD(e,{relative:t}={}){let{basename:n}=S.useContext(ia),a=S.useContext(Ur);Ze(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),o={...rc(e||".",{relative:t})},c=Ha();if(e==null){o.search=c.search;let h=new URLSearchParams(o.search),d=h.getAll("index");if(d.some(v=>v==="")){h.delete("index"),d.filter(b=>b).forEach(b=>h.append("index",b));let v=h.toString();o.search=v?`?${v}`:""}}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Jr([n,o.pathname])),ji(o)}function kD(e,t={}){let n=S.useContext(oy);Ze(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=_O("useViewTransitionState"),s=rc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=mr(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=mr(n.nextLocation.pathname,a)||n.nextLocation.pathname;return ud(s.pathname,c)!=null||ud(s.pathname,o)!=null}new TextEncoder;[...pD];var py=Xx();const bs=Bs(py);/**
|
|
61
|
+
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let y=Ha(),_;_=y;let x=_.pathname||"/",A=x;if(v!=="/"){let R=v.replace(/^\//,"").split("/");A="/"+x.replace(/^\//,"").split("/").slice(R.length).join("/")}let N=!o&&n&&n.matches&&n.matches.length>0?n.matches:xi(e,{pathname:A});return qt(b||N!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),qt(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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.`),GR(N&&N.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:Jr([v,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:Jr([v,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),c,n,a)}function qR(){let e=mO(),t=Fu(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:o},"ErrorBoundary")," or"," ",S.createElement("code",{style:o},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:s},n):null,c)}var VR=S.createElement(qR,null),HR=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(Ur.Provider,{value:this.props.routeContext},S.createElement(uy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function PR({routeContext:e,match:t,children:n}){let a=S.useContext(Fs);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ur.Provider,{value:e},n)}function GR(e,t=[],n=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=n==null?void 0:n.errors;if(o!=null){let d=s.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);Ze(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,h=-1;if(n)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(h=d),p.route.id){let{loaderData:v,errors:b}=n,y=p.route.loader&&!v.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||y){c=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((d,p,v)=>{let b,y=!1,_=null,x=null;n&&(b=o&&p.route.id?o[p.route.id]:void 0,_=p.route.errorElement||VR,c&&(h<0&&v===0?(vO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,x=null):h===v&&(y=!0,x=p.route.hydrateFallbackElement||null)));let A=t.concat(s.slice(0,v+1)),N=()=>{let O;return b?O=_:y?O=x:p.route.Component?O=S.createElement(p.route.Component,null):p.route.element?O=p.route.element:O=d,S.createElement(PR,{match:p,routeContext:{outlet:d,matches:A,isDataRoute:n!=null},children:O})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?S.createElement(HR,{location:n.location,revalidation:n.revalidation,component:_,error:b,children:N(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):N()},null)}function cy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function YR(e){let t=S.useContext(Fs);return Ze(t,cy(e)),t}function KR(e){let t=S.useContext(tc);return Ze(t,cy(e)),t}function QR(e){let t=S.useContext(Ur);return Ze(t,cy(e)),t}function fy(e){let t=QR(e),n=t.matches[t.matches.length-1];return Ze(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function XR(){return fy("useRouteId")}function mO(){var a;let e=S.useContext(uy),t=KR("useRouteError"),n=fy("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function ZR(){let{router:e}=YR("useNavigate"),t=fy("useNavigate"),n=S.useRef(!1);return hO(()=>{n.current=!0}),S.useCallback(async(s,o={})=>{qt(n.current,dO),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...o}))},[e,t])}var OE={};function vO(e,t,n){!t&&!OE[e]&&(OE[e]=!0,qt(!1,n))}var TE={};function wE(e,t){!e&&!TE[t]&&(TE[t]=!0,console.warn(t))}function JR(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&qt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:S.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&qt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&qt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var WR=["HydrateFallback","hydrateFallbackElement"],eD=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function tD({router:e,flushSync:t}){let[n,a]=S.useState(e.state),[s,o]=S.useState(),[c,h]=S.useState({isTransitioning:!1}),[d,p]=S.useState(),[v,b]=S.useState(),[y,_]=S.useState(),x=S.useRef(new Map),A=S.useCallback((D,{deletedFetchers:U,flushSync:C,viewTransitionOpts:w})=>{D.fetchers.forEach((re,Q)=>{re.data!==void 0&&x.current.set(Q,re.data)}),U.forEach(re=>x.current.delete(re)),wE(C===!1||t!=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 q=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(wE(w==null||q,"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."),!w||!q){t&&C?t(()=>a(D)):S.startTransition(()=>a(D));return}if(t&&C){t(()=>{v&&(d&&d.resolve(),v.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:w.currentLocation,nextLocation:w.nextLocation})});let re=e.window.document.startViewTransition(()=>{t(()=>a(D))});re.finished.finally(()=>{t(()=>{p(void 0),b(void 0),o(void 0),h({isTransitioning:!1})})}),t(()=>b(re));return}v?(d&&d.resolve(),v.skipTransition(),_({state:D,currentLocation:w.currentLocation,nextLocation:w.nextLocation})):(o(D),h({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}))},[e.window,t,v,d]);S.useLayoutEffect(()=>e.subscribe(A),[e,A]),S.useEffect(()=>{c.isTransitioning&&!c.flushSync&&p(new eD)},[c]),S.useEffect(()=>{if(d&&s&&e.window){let D=s,U=d.promise,C=e.window.document.startViewTransition(async()=>{S.startTransition(()=>a(D)),await U});C.finished.finally(()=>{p(void 0),b(void 0),o(void 0),h({isTransitioning:!1})}),b(C)}},[s,d,e.window]),S.useEffect(()=>{d&&s&&n.location.key===s.location.key&&d.resolve()},[d,v,n.location,s]),S.useEffect(()=>{!c.isTransitioning&&y&&(o(y.state),h({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),_(void 0))},[c.isTransitioning,y]);let N=S.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:D=>e.navigate(D),push:(D,U,C)=>e.navigate(D,{state:U,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(D,U,C)=>e.navigate(D,{replace:!0,state:U,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[e]),O=e.basename||"/",R=S.useMemo(()=>({router:e,navigator:N,static:!1,basename:O}),[e,N,O]);return S.createElement(S.Fragment,null,S.createElement(Fs.Provider,{value:R},S.createElement(tc.Provider,{value:n},S.createElement(fO.Provider,{value:x.current},S.createElement(oy.Provider,{value:c},S.createElement(aD,{basename:O,location:n.location,navigationType:n.historyAction,navigator:N},S.createElement(nD,{routes:e.routes,future:e.future,state:n})))))),null)}var nD=S.memo(rD);function rD({routes:e,future:t,state:n}){return zR(e,void 0,n,t)}function yO(e){return IR(e.context)}function aD({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:s,static:o=!1}){Ze(!nc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:c,navigator:s,static:o,future:{}}),[c,s,o]);typeof n=="string"&&(n=Fi(n));let{pathname:d="/",search:p="",hash:v="",state:b=null,key:y="default"}=n,_=S.useMemo(()=>{let x=mr(d,c);return x==null?null:{location:{pathname:x,search:p,hash:v,state:b,key:y},navigationType:a}},[c,d,p,v,b,y,a]);return qt(_!=null,`<Router basename="${c}"> is not able to match the URL "${d}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:S.createElement(ia.Provider,{value:h},S.createElement(Dd.Provider,{children:t,value:_}))}var Xf="get",Zf="application/x-www-form-urlencoded";function kd(e){return e!=null&&typeof e.tagName=="string"}function iD(e){return kd(e)&&e.tagName.toLowerCase()==="button"}function sD(e){return kd(e)&&e.tagName.toLowerCase()==="form"}function lD(e){return kd(e)&&e.tagName.toLowerCase()==="input"}function oD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uD(e,t){return e.button===0&&(!t||t==="_self")&&!oD(e)}var Mf=null;function cD(){if(Mf===null)try{new FormData(document.createElement("form"),0),Mf=!1}catch{Mf=!0}return Mf}var fD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _m(e){return e!=null&&!fD.has(e)?(qt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zf}"`),null):e}function dD(e,t){let n,a,s,o,c;if(sD(e)){let h=e.getAttribute("action");a=h?mr(h,t):null,n=e.getAttribute("method")||Xf,s=_m(e.getAttribute("enctype"))||Zf,o=new FormData(e)}else if(iD(e)||lD(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||h.getAttribute("action");if(a=d?mr(d,t):null,n=e.getAttribute("formmethod")||h.getAttribute("method")||Xf,s=_m(e.getAttribute("formenctype"))||_m(h.getAttribute("enctype"))||Zf,o=new FormData(h,e),!cD()){let{name:p,type:v,value:b}=e;if(v==="image"){let y=p?`${p}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else p&&o.append(p,b)}}else{if(kd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xf,a=null,s=Zf,c=e}return o&&s==="text/plain"&&(c=o,o=void 0),{action:a,method:n.toLowerCase(),encType:s,formData:o,body:c}}function dy(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function hD(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pD(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mD(e,t,n){let a=await Promise.all(e.map(async s=>{let o=t.routes[s.route.id];if(o){let c=await hD(o,n);return c.links?c.links():[]}return[]}));return bD(a.flat(1).filter(pD).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function AE(e,t,n,a,s,o){let c=(d,p)=>n[p]?d.route.id!==n[p].route.id:!0,h=(d,p)=>{var v;return n[p].pathname!==d.pathname||((v=n[p].route.path)==null?void 0:v.endsWith("*"))&&n[p].params["*"]!==d.params["*"]};return o==="assets"?t.filter((d,p)=>c(d,p)||h(d,p)):o==="data"?t.filter((d,p)=>{var b;let v=a.routes[d.route.id];if(!v||!v.hasLoader)return!1;if(c(d,p)||h(d,p))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=n[0])==null?void 0:b.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function vD(e,t,{includeHydrateFallback:n}={}){return yD(e.map(a=>{let s=t.routes[a.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function yD(e){return[...new Set(e)]}function gD(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function bD(e,t){let n=new Set;return new Set(t),e.reduce((a,s)=>{let o=JSON.stringify(gD(s));return n.has(o)||(n.add(o),a.push({key:o,link:s})),a},[])}var SD=new Set([100,101,204,205]);function ED(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&mr(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function gO(){let e=S.useContext(Fs);return dy(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function _D(){let e=S.useContext(tc);return dy(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var hy=S.createContext(void 0);hy.displayName="FrameworkContext";function bO(){let e=S.useContext(hy);return dy(e,"You must render this element inside a <HydratedRouter> element"),e}function xD(e,t){let n=S.useContext(hy),[a,s]=S.useState(!1),[o,c]=S.useState(!1),{onFocus:h,onBlur:d,onMouseEnter:p,onMouseLeave:v,onTouchStart:b}=t,y=S.useRef(null);S.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let A=O=>{O.forEach(R=>{c(R.isIntersecting)})},N=new IntersectionObserver(A,{threshold:.5});return y.current&&N.observe(y.current),()=>{N.disconnect()}}},[e]),S.useEffect(()=>{if(a){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[a]);let _=()=>{s(!0)},x=()=>{s(!1),c(!1)};return n?e!=="intent"?[o,y,{}]:[o,y,{onFocus:_u(h,_),onBlur:_u(d,x),onMouseEnter:_u(p,_),onMouseLeave:_u(v,x),onTouchStart:_u(b,_)}]:[!1,y,{}]}function _u(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function OD({page:e,...t}){let{router:n}=gO(),a=S.useMemo(()=>xi(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?S.createElement(wD,{page:e,matches:a,...t}):null}function TD(e){let{manifest:t,routeModules:n}=bO(),[a,s]=S.useState([]);return S.useEffect(()=>{let o=!1;return mD(e,t,n).then(c=>{o||s(c)}),()=>{o=!0}},[e,t,n]),a}function wD({page:e,matches:t,...n}){let a=Ha(),{manifest:s,routeModules:o}=bO(),{basename:c}=gO(),{loaderData:h,matches:d}=_D(),p=S.useMemo(()=>AE(e,t,d,s,a,"data"),[e,t,d,s,a]),v=S.useMemo(()=>AE(e,t,d,s,a,"assets"),[e,t,d,s,a]),b=S.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let x=new Set,A=!1;if(t.forEach(O=>{var D;let R=s.routes[O.route.id];!R||!R.hasLoader||(!p.some(U=>U.route.id===O.route.id)&&O.route.id in h&&((D=o[O.route.id])!=null&&D.shouldRevalidate)||R.hasClientLoader?A=!0:x.add(O.route.id))}),x.size===0)return[];let N=ED(e,c);return A&&x.size>0&&N.searchParams.set("_routes",t.filter(O=>x.has(O.route.id)).map(O=>O.route.id).join(",")),[N.pathname+N.search]},[c,h,a,s,p,t,e,o]),y=S.useMemo(()=>vD(v,s),[v,s]),_=TD(v);return S.createElement(S.Fragment,null,b.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),y.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),_.map(({key:x,link:A})=>S.createElement("link",{key:x,...A})))}function AD(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var SO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{SO&&(window.__reactRouterVersion="7.5.3")}catch{}function ND(e,t){return yR({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:BC({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||CD(),routes:e,mapRouteProperties:JR,hydrationRouteProperties:WR,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function CD(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:RD(e.errors)}),e}function RD(e){if(!e)return null;let t=Object.entries(e),n={};for(let[a,s]of t)if(s&&s.__type==="RouteErrorResponse")n[a]=new cd(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let o=window[s.__subType];if(typeof o=="function")try{let c=new o(s.message);c.stack="",n[a]=c}catch{}}if(n[a]==null){let o=new Error(s.message);o.stack="",n[a]=o}}else n[a]=s;return n}var EO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gn=S.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:s,reloadDocument:o,replace:c,state:h,target:d,to:p,preventScrollReset:v,viewTransition:b,...y},_){let{basename:x}=S.useContext(ia),A=typeof p=="string"&&EO.test(p),N,O=!1;if(typeof p=="string"&&A&&(N=p,SO))try{let Q=new URL(window.location.href),he=p.startsWith("//")?new URL(Q.protocol+p):new URL(p),ie=mr(he.pathname,x);he.origin===Q.origin&&ie!=null?p=ie+he.search+he.hash:O=!0}catch{qt(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=LR(p,{relative:s}),[D,U,C]=xD(a,y),w=MD(p,{replace:c,state:h,target:d,preventScrollReset:v,relative:s,viewTransition:b});function q(Q){t&&t(Q),Q.defaultPrevented||w(Q)}let re=S.createElement("a",{...y,...C,href:N||R,onClick:O||o?t:q,ref:AD(_,U),target:d,"data-discover":!A&&n==="render"?"true":void 0});return D&&!A?S.createElement(S.Fragment,null,re,S.createElement(OD,{page:R})):re});Gn.displayName="Link";var DD=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:s=!1,style:o,to:c,viewTransition:h,children:d,...p},v){let b=rc(c,{relative:p.relative}),y=Ha(),_=S.useContext(tc),{navigator:x,basename:A}=S.useContext(ia),N=_!=null&&FD(b)&&h===!0,O=x.encodeLocation?x.encodeLocation(b).pathname:b.pathname,R=y.pathname,D=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(R=R.toLowerCase(),D=D?D.toLowerCase():null,O=O.toLowerCase()),D&&A&&(D=mr(D,A)||D);const U=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let C=R===O||!s&&R.startsWith(O)&&R.charAt(U)==="/",w=D!=null&&(D===O||!s&&D.startsWith(O)&&D.charAt(O.length)==="/"),q={isActive:C,isPending:w,isTransitioning:N},re=C?t:void 0,Q;typeof a=="function"?Q=a(q):Q=[a,C?"active":null,w?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let he=typeof o=="function"?o(q):o;return S.createElement(Gn,{...p,"aria-current":re,className:Q,ref:v,style:he,to:c,viewTransition:h},typeof d=="function"?d(q):d)});DD.displayName="NavLink";var jD=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:s,state:o,method:c=Xf,action:h,onSubmit:d,relative:p,preventScrollReset:v,viewTransition:b,...y},_)=>{let x=LD(),A=BD(h,{relative:p}),N=c.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&EO.test(h),R=D=>{if(d&&d(D),D.defaultPrevented)return;D.preventDefault();let U=D.nativeEvent.submitter,C=(U==null?void 0:U.getAttribute("formmethod"))||c;x(U||D.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:s,state:o,relative:p,preventScrollReset:v,viewTransition:b})};return S.createElement("form",{ref:_,method:N,action:A,onSubmit:a?d:R,...y,"data-discover":!O&&e==="render"?"true":void 0})});jD.displayName="Form";function kD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _O(e){let t=S.useContext(Fs);return Ze(t,kD(e)),t}function MD(e,{target:t,replace:n,state:a,preventScrollReset:s,relative:o,viewTransition:c}={}){let h=jd(),d=Ha(),p=rc(e,{relative:o});return S.useCallback(v=>{if(uD(v,t)){v.preventDefault();let b=n!==void 0?n:ji(d)===ji(p);h(e,{replace:b,state:a,preventScrollReset:s,relative:o,viewTransition:c})}},[d,h,p,n,a,t,e,s,o,c])}var UD=0,$D=()=>`__${String(++UD)}__`;function LD(){let{router:e}=_O("useSubmit"),{basename:t}=S.useContext(ia),n=XR();return S.useCallback(async(a,s={})=>{let{action:o,method:c,encType:h,formData:d,body:p}=dD(a,t);if(s.navigate===!1){let v=s.fetcherKey||$D();await e.fetch(v,n,s.action||o,{preventScrollReset:s.preventScrollReset,formData:d,body:p,formMethod:s.method||c,formEncType:s.encType||h,flushSync:s.flushSync})}else await e.navigate(s.action||o,{preventScrollReset:s.preventScrollReset,formData:d,body:p,formMethod:s.method||c,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function BD(e,{relative:t}={}){let{basename:n}=S.useContext(ia),a=S.useContext(Ur);Ze(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),o={...rc(e||".",{relative:t})},c=Ha();if(e==null){o.search=c.search;let h=new URLSearchParams(o.search),d=h.getAll("index");if(d.some(v=>v==="")){h.delete("index"),d.filter(b=>b).forEach(b=>h.append("index",b));let v=h.toString();o.search=v?`?${v}`:""}}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Jr([n,o.pathname])),ji(o)}function FD(e,t={}){let n=S.useContext(oy);Ze(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=_O("useViewTransitionState"),s=rc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=mr(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=mr(n.nextLocation.pathname,a)||n.nextLocation.pathname;return ud(s.pathname,c)!=null||ud(s.pathname,o)!=null}new TextEncoder;[...SD];var py=Xx();const bs=Bs(py);/**
|
|
62
62
|
* react-router v7.5.3
|
|
63
63
|
*
|
|
64
64
|
* Copyright (c) Remix Software Inc.
|
|
@@ -67,9 +67,9 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
|
|
|
67
67
|
* LICENSE.md file in the root directory of this source tree.
|
|
68
68
|
*
|
|
69
69
|
* @license MIT
|
|
70
|
-
*/function MD(e){return S.createElement(QR,{flushSync:py.flushSync,...e})}var Md=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ud=typeof window>"u"||"Deno"in globalThis;function wr(){}function UD(e,t){return typeof e=="function"?e(t):e}function $D(e){return typeof e=="number"&&e>=0&&e!==1/0}function LD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function NE(e,t){return typeof e=="function"?e(t):e}function BD(e,t){return typeof e=="function"?e(t):e}function CE(e,t){const{type:n="all",exact:a,fetchStatus:s,predicate:o,queryKey:c,stale:h}=e;if(c){if(a){if(t.queryHash!==my(c,t.options))return!1}else if(!zu(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||s&&s!==t.state.fetchStatus||o&&!o(t))}function RE(e,t){const{exact:n,status:a,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Iu(t.options.mutationKey)!==Iu(o))return!1}else if(!zu(t.options.mutationKey,o))return!1}return!(a&&t.state.status!==a||s&&!s(t))}function my(e,t){return((t==null?void 0:t.queryKeyHashFn)||Iu)(e)}function Iu(e){return JSON.stringify(e,(t,n)=>ov(n)?Object.keys(n).sort().reduce((a,s)=>(a[s]=n[s],a),{}):n)}function zu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zu(e[n],t[n])):!1}function xO(e,t){if(e===t)return e;const n=DE(e)&&DE(t);if(n||ov(e)&&ov(t)){const a=n?e:Object.keys(e),s=a.length,o=n?t:Object.keys(t),c=o.length,h=n?[]:{};let d=0;for(let p=0;p<c;p++){const v=n?p:o[p];(!n&&a.includes(v)||n)&&e[v]===void 0&&t[v]===void 0?(h[v]=void 0,d++):(h[v]=xO(e[v],t[v]),h[v]===e[v]&&e[v]!==void 0&&d++)}return s===c&&d===s?e:h}return t}function DE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ov(e){if(!jE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jE(e){return Object.prototype.toString.call(e)==="[object Object]"}function FD(e){return new Promise(t=>{setTimeout(t,e)})}function ID(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xO(e,t):t}function zD(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function qD(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var vy=Symbol();function OO(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _s,Oi,Xl,qx,VD=(qx=class extends Md{constructor(){super();lt(this,_s);lt(this,Oi);lt(this,Xl);ze(this,Xl,t=>{if(!Ud&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Z(this,Oi)||this.setEventListener(Z(this,Xl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Oi))==null||t.call(this),ze(this,Oi,void 0))}setEventListener(t){var n;ze(this,Xl,t),(n=Z(this,Oi))==null||n.call(this),ze(this,Oi,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){Z(this,_s)!==t&&(ze(this,_s,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Z(this,_s)=="boolean"?Z(this,_s):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_s=new WeakMap,Oi=new WeakMap,Xl=new WeakMap,qx),TO=new VD,Zl,Ti,Jl,Vx,HD=(Vx=class extends Md{constructor(){super();lt(this,Zl,!0);lt(this,Ti);lt(this,Jl);ze(this,Jl,t=>{if(!Ud&&window.addEventListener){const n=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){Z(this,Ti)||this.setEventListener(Z(this,Jl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Ti))==null||t.call(this),ze(this,Ti,void 0))}setEventListener(t){var n;ze(this,Jl,t),(n=Z(this,Ti))==null||n.call(this),ze(this,Ti,t(this.setOnline.bind(this)))}setOnline(t){Z(this,Zl)!==t&&(ze(this,Zl,t),this.listeners.forEach(a=>{a(t)}))}isOnline(){return Z(this,Zl)}},Zl=new WeakMap,Ti=new WeakMap,Jl=new WeakMap,Vx),dd=new HD;function PD(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function a(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{a({status:"fulfilled",value:s}),e(s)},n.reject=s=>{a({status:"rejected",reason:s}),t(s)},n}function GD(e){return Math.min(1e3*2**e,3e4)}function wO(e){return(e??"online")==="online"?dd.isOnline():!0}var AO=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xm(e){return e instanceof AO}function NO(e){let t=!1,n=0,a=!1,s;const o=PD(),c=A=>{var N;a||(y(new AO(A)),(N=e.abort)==null||N.call(e))},h=()=>{t=!0},d=()=>{t=!1},p=()=>TO.isFocused()&&(e.networkMode==="always"||dd.isOnline())&&e.canRun(),v=()=>wO(e.networkMode)&&e.canRun(),b=A=>{var N;a||(a=!0,(N=e.onSuccess)==null||N.call(e,A),s==null||s(),o.resolve(A))},y=A=>{var N;a||(a=!0,(N=e.onError)==null||N.call(e,A),s==null||s(),o.reject(A))},_=()=>new Promise(A=>{var N;s=O=>{(a||p())&&A(O)},(N=e.onPause)==null||N.call(e)}).then(()=>{var A;s=void 0,a||(A=e.onContinue)==null||A.call(e)}),x=()=>{if(a)return;let A;const N=n===0?e.initialPromise:void 0;try{A=N??e.fn()}catch(O){A=Promise.reject(O)}Promise.resolve(A).then(b).catch(O=>{var w;if(a)return;const R=e.retry??(Ud?0:3),D=e.retryDelay??GD,U=typeof D=="function"?D(n,O):D,C=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,O);if(t||!C){y(O);return}n++,(w=e.onFail)==null||w.call(e,n,O),FD(U).then(()=>p()?void 0:_()).then(()=>{t?y(O):x()})})};return{promise:o,cancel:c,continue:()=>(s==null||s(),o),cancelRetry:h,continueRetry:d,canStart:v,start:()=>(v()?x():_().then(x),o)}}var YD=e=>setTimeout(e,0);function KD(){let e=[],t=0,n=h=>{h()},a=h=>{h()},s=YD;const o=h=>{t?e.push(h):s(()=>{n(h)})},c=()=>{const h=e;e=[],h.length&&s(()=>{a(()=>{h.forEach(d=>{n(d)})})})};return{batch:h=>{let d;t++;try{d=h()}finally{t--,t||c()}return d},batchCalls:h=>(...d)=>{o(()=>{h(...d)})},schedule:o,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{s=h}}}var yn=KD(),xs,Hx,CO=(Hx=class{constructor(){lt(this,xs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$D(this.gcTime)&&ze(this,xs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ud?1/0:5*60*1e3))}clearGcTimeout(){Z(this,xs)&&(clearTimeout(Z(this,xs)),ze(this,xs,void 0))}},xs=new WeakMap,Hx),Wl,eo,lr,Os,dn,Wu,Ts,Ar,Na,Px,QD=(Px=class extends CO{constructor(t){super();lt(this,Ar);lt(this,Wl);lt(this,eo);lt(this,lr);lt(this,Os);lt(this,dn);lt(this,Wu);lt(this,Ts);ze(this,Ts,!1),ze(this,Wu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Os,t.client),ze(this,lr,Z(this,Os).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Wl,ZD(this.options)),this.state=t.state??Z(this,Wl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Z(this,dn))==null?void 0:t.promise}setOptions(t){this.options={...Z(this,Wu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,lr).remove(this)}setData(t,n){const a=ID(this.state.data,t,this.options);return cn(this,Ar,Na).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(t,n){cn(this,Ar,Na).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var a,s;const n=(a=Z(this,dn))==null?void 0:a.promise;return(s=Z(this,dn))==null||s.cancel(t),n?n.then(wr).catch(wr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Z(this,Wl))}isActive(){return this.observers.some(t=>BD(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!LD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,dn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,dn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Z(this,dn)&&(Z(this,Ts)?Z(this,dn).cancel({revert:!0}):Z(this,dn).cancelRetry()),this.scheduleGc()),Z(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||cn(this,Ar,Na).call(this,{type:"invalidate"})}fetch(t,n){var d,p,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Z(this,dn))return Z(this,dn).continueRetry(),Z(this,dn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(y=>y.options.queryFn);b&&this.setOptions(b.options)}const a=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(ze(this,Ts,!0),a.signal)})},o=()=>{const b=OO(this.options,n),y={client:Z(this,Os),queryKey:this.queryKey,meta:this.meta};return s(y),ze(this,Ts,!1),this.options.persister?this.options.persister(b,y,this):b(y)},c={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Z(this,Os),state:this.state,fetchFn:o};s(c),(d=this.options.behavior)==null||d.onFetch(c,this),ze(this,eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&cn(this,Ar,Na).call(this,{type:"fetch",meta:(v=c.fetchOptions)==null?void 0:v.meta});const h=b=>{var y,_,x,A;xm(b)&&b.silent||cn(this,Ar,Na).call(this,{type:"error",error:b}),xm(b)||((_=(y=Z(this,lr).config).onError)==null||_.call(y,b,this),(A=(x=Z(this,lr).config).onSettled)==null||A.call(x,this.state.data,b,this)),this.scheduleGc()};return ze(this,dn,NO({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:b=>{var y,_,x,A;if(b===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(N){h(N);return}(_=(y=Z(this,lr).config).onSuccess)==null||_.call(y,b,this),(A=(x=Z(this,lr).config).onSettled)==null||A.call(x,b,this.state.error,this),this.scheduleGc()},onError:h,onFail:(b,y)=>{cn(this,Ar,Na).call(this,{type:"failed",failureCount:b,error:y})},onPause:()=>{cn(this,Ar,Na).call(this,{type:"pause"})},onContinue:()=>{cn(this,Ar,Na).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),Z(this,dn).start()}},Wl=new WeakMap,eo=new WeakMap,lr=new WeakMap,Os=new WeakMap,dn=new WeakMap,Wu=new WeakMap,Ts=new WeakMap,Ar=new WeakSet,Na=function(t){const n=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...XD(a.data,this.options),fetchMeta:t.meta??null};case"success":return{...a,data:t.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return xm(s)&&s.revert&&Z(this,eo)?{...Z(this,eo),fetchStatus:"idle"}:{...a,error:s,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=n(this.state),yn.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),Z(this,lr).notify({query:this,type:"updated",action:t})})},Px);function XD(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wO(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ZD(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Yr,Gx,JD=(Gx=class extends Md{constructor(t={}){super();lt(this,Yr);this.config=t,ze(this,Yr,new Map)}build(t,n,a){const s=n.queryKey,o=n.queryHash??my(s,n);let c=this.get(o);return c||(c=new QD({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:a,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){Z(this,Yr).has(t.queryHash)||(Z(this,Yr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Z(this,Yr).get(t.queryHash);n&&(t.destroy(),n===t&&Z(this,Yr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){yn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Z(this,Yr).get(t)}getAll(){return[...Z(this,Yr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(a=>CE(n,a))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(a=>CE(t,a)):n}notify(t){yn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){yn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){yn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yr=new WeakMap,Gx),Kr,vn,ws,Qr,Si,Yx,WD=(Yx=class extends CO{constructor(t){super();lt(this,Qr);lt(this,Kr);lt(this,vn);lt(this,ws);this.mutationId=t.mutationId,ze(this,vn,t.mutationCache),ze(this,Kr,[]),this.state=t.state||ej(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Z(this,Kr).includes(t)||(Z(this,Kr).push(t),this.clearGcTimeout(),Z(this,vn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Kr,Z(this,Kr).filter(n=>n!==t)),this.scheduleGc(),Z(this,vn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Z(this,Kr).length||(this.state.status==="pending"?this.scheduleGc():Z(this,vn).remove(this))}continue(){var t;return((t=Z(this,ws))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,c,h,d,p,v,b,y,_,x,A,N,O,R,D,U,C,w,q,re;const n=()=>{cn(this,Qr,Si).call(this,{type:"continue"})};ze(this,ws,NO({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(Q,he)=>{cn(this,Qr,Si).call(this,{type:"failed",failureCount:Q,error:he})},onPause:()=>{cn(this,Qr,Si).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,vn).canRun(this)}));const a=this.state.status==="pending",s=!Z(this,ws).canStart();try{if(a)n();else{cn(this,Qr,Si).call(this,{type:"pending",variables:t,isPaused:s}),await((c=(o=Z(this,vn).config).onMutate)==null?void 0:c.call(o,t,this));const he=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,t));he!==this.state.context&&cn(this,Qr,Si).call(this,{type:"pending",context:he,variables:t,isPaused:s})}const Q=await Z(this,ws).start();return await((v=(p=Z(this,vn).config).onSuccess)==null?void 0:v.call(p,Q,t,this.state.context,this)),await((y=(b=this.options).onSuccess)==null?void 0:y.call(b,Q,t,this.state.context)),await((x=(_=Z(this,vn).config).onSettled)==null?void 0:x.call(_,Q,null,this.state.variables,this.state.context,this)),await((N=(A=this.options).onSettled)==null?void 0:N.call(A,Q,null,t,this.state.context)),cn(this,Qr,Si).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((R=(O=Z(this,vn).config).onError)==null?void 0:R.call(O,Q,t,this.state.context,this)),await((U=(D=this.options).onError)==null?void 0:U.call(D,Q,t,this.state.context)),await((w=(C=Z(this,vn).config).onSettled)==null?void 0:w.call(C,void 0,Q,this.state.variables,this.state.context,this)),await((re=(q=this.options).onSettled)==null?void 0:re.call(q,void 0,Q,t,this.state.context)),Q}finally{cn(this,Qr,Si).call(this,{type:"error",error:Q})}}finally{Z(this,vn).runNext(this)}}},Kr=new WeakMap,vn=new WeakMap,ws=new WeakMap,Qr=new WeakSet,Si=function(t){const n=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),yn.batch(()=>{Z(this,Kr).forEach(a=>{a.onMutationUpdate(t)}),Z(this,vn).notify({mutation:this,type:"updated",action:t})})},Yx);function ej(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ra,Nr,ec,Kx,tj=(Kx=class extends Md{constructor(t={}){super();lt(this,Ra);lt(this,Nr);lt(this,ec);this.config=t,ze(this,Ra,new Set),ze(this,Nr,new Map),ze(this,ec,0)}build(t,n,a){const s=new WD({mutationCache:this,mutationId:++jf(this,ec)._,options:t.defaultMutationOptions(n),state:a});return this.add(s),s}add(t){Z(this,Ra).add(t);const n=Uf(t);if(typeof n=="string"){const a=Z(this,Nr).get(n);a?a.push(t):Z(this,Nr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Z(this,Ra).delete(t)){const n=Uf(t);if(typeof n=="string"){const a=Z(this,Nr).get(n);if(a)if(a.length>1){const s=a.indexOf(t);s!==-1&&a.splice(s,1)}else a[0]===t&&Z(this,Nr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Uf(t);if(typeof n=="string"){const a=Z(this,Nr).get(n),s=a==null?void 0:a.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var a;const n=Uf(t);if(typeof n=="string"){const s=(a=Z(this,Nr).get(n))==null?void 0:a.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yn.batch(()=>{Z(this,Ra).forEach(t=>{this.notify({type:"removed",mutation:t})}),Z(this,Ra).clear(),Z(this,Nr).clear()})}getAll(){return Array.from(Z(this,Ra))}find(t){const n={exact:!0,...t};return this.getAll().find(a=>RE(n,a))}findAll(t={}){return this.getAll().filter(n=>RE(t,n))}notify(t){yn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return yn.batch(()=>Promise.all(t.map(n=>n.continue().catch(wr))))}},Ra=new WeakMap,Nr=new WeakMap,ec=new WeakMap,Kx);function Uf(e){var t;return(t=e.options.scope)==null?void 0:t.id}function kE(e){return{onFetch:(t,n)=>{var v,b,y,_,x;const a=t.options,s=(y=(b=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:y.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],c=((x=t.state.data)==null?void 0:x.pageParams)||[];let h={pages:[],pageParams:[]},d=0;const p=async()=>{let A=!1;const N=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(t.signal.aborted?A=!0:t.signal.addEventListener("abort",()=>{A=!0}),t.signal)})},O=OO(t.options,t.fetchOptions),R=async(D,U,C)=>{if(A)return Promise.reject();if(U==null&&D.pages.length)return Promise.resolve(D);const w={client:t.client,queryKey:t.queryKey,pageParam:U,direction:C?"backward":"forward",meta:t.options.meta};N(w);const q=await O(w),{maxPages:re}=t.options,Q=C?qD:zD;return{pages:Q(D.pages,q,re),pageParams:Q(D.pageParams,U,re)}};if(s&&o.length){const D=s==="backward",U=D?nj:ME,C={pages:o,pageParams:c},w=U(a,C);h=await R(C,w,D)}else{const D=e??o.length;do{const U=d===0?c[0]??a.initialPageParam:ME(a,h);if(d>0&&U==null)break;h=await R(h,U),d++}while(d<D)}return h};t.options.persister?t.fetchFn=()=>{var A,N;return(N=(A=t.options).persister)==null?void 0:N.call(A,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function ME(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function nj(e,{pages:t,pageParams:n}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,n[0],n):void 0}var $t,wi,Ai,to,no,Ni,ro,ao,Qx,rj=(Qx=class{constructor(e={}){lt(this,$t);lt(this,wi);lt(this,Ai);lt(this,to);lt(this,no);lt(this,Ni);lt(this,ro);lt(this,ao);ze(this,$t,e.queryCache||new JD),ze(this,wi,e.mutationCache||new tj),ze(this,Ai,e.defaultOptions||{}),ze(this,to,new Map),ze(this,no,new Map),ze(this,Ni,0)}mount(){jf(this,Ni)._++,Z(this,Ni)===1&&(ze(this,ro,TO.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,$t).onFocus())})),ze(this,ao,dd.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,$t).onOnline())})))}unmount(){var e,t;jf(this,Ni)._--,Z(this,Ni)===0&&((e=Z(this,ro))==null||e.call(this),ze(this,ro,void 0),(t=Z(this,ao))==null||t.call(this),ze(this,ao,void 0))}isFetching(e){return Z(this,$t).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Z(this,wi).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,$t).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Z(this,$t).build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(NE(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return Z(this,$t).findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),s=Z(this,$t).get(a.queryHash),o=s==null?void 0:s.state.data,c=UD(t,o);if(c!==void 0)return Z(this,$t).build(this,a).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return yn.batch(()=>Z(this,$t).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,$t).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Z(this,$t);yn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Z(this,$t);return yn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=yn.batch(()=>Z(this,$t).findAll(e).map(s=>s.cancel(n)));return Promise.all(a).then(wr).catch(wr)}invalidateQueries(e,t={}){return yn.batch(()=>(Z(this,$t).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=yn.batch(()=>Z(this,$t).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(wr)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(wr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Z(this,$t).build(this,t);return n.isStaleByTime(NE(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wr).catch(wr)}fetchInfiniteQuery(e){return e.behavior=kE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wr).catch(wr)}ensureInfiniteQueryData(e){return e.behavior=kE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dd.isOnline()?Z(this,wi).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,$t)}getMutationCache(){return Z(this,wi)}getDefaultOptions(){return Z(this,Ai)}setDefaultOptions(e){ze(this,Ai,e)}setQueryDefaults(e,t){Z(this,to).set(Iu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Z(this,to).values()],n={};return t.forEach(a=>{zu(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){Z(this,no).set(Iu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Z(this,no).values()],n={};return t.forEach(a=>{zu(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Z(this,Ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=my(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Z(this,Ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Z(this,$t).clear(),Z(this,wi).clear()}},$t=new WeakMap,wi=new WeakMap,Ai=new WeakMap,to=new WeakMap,no=new WeakMap,Ni=new WeakMap,ro=new WeakMap,ao=new WeakMap,Qx),aj=S.createContext(void 0),ij=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(aj.Provider,{value:e,children:t}));function rt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var sj={};function $d(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:sj}var RO=Object.assign,hd=Object.getOwnPropertyDescriptor,Wr=Object.defineProperty,Ld=Object.prototype,uv=[];Object.freeze(uv);var DO={};Object.freeze(DO);var lj=typeof Proxy<"u",oj=Object.toString();function jO(){lj||rt("Proxy not available")}function kO(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var ql=function(){};function jr(e){return typeof e=="function"}function Ds(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Bd(e){return e!==null&&typeof e=="object"}function Fa(e){if(!Bd(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===oj}function MO(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function ac(e,t,n){Wr(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function UO(e,t,n){Wr(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Is(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(a){return Bd(a)&&a[n]===!0}}function po(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function uj(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),a=Object.getPrototypeOf(n);return a===null}function Da(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var $O=typeof Object.getOwnPropertySymbols<"u";function cj(e){var t=Object.keys(e);if(!$O)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(a){return Ld.propertyIsEnumerable.call(e,a)})):t}var io=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:$O?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function LO(e){return e===null?null:typeof e=="object"?""+e:e}function $a(e,t){return Ld.hasOwnProperty.call(e,t)}var fj=Object.getOwnPropertyDescriptors||function(t){var n={};return io(t).forEach(function(a){n[a]=hd(t,a)}),n};function zn(e,t){return!!(e&t)}function qn(e,t,n){return n?e|=t:e&=~t,e}function UE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function dj(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,pj(a.key),a)}}function mo(e,t,n){return t&&dj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=mj(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},js.apply(null,arguments)}function BO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cv(e,t)}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},cv(e,t)}function
|
|
72
|
-
'`+o.annotationType_+"' can only be used on properties with a function value."))}function wj(e,t,n,a){t.annotationType_,a.value}function IO(e,t,n,a,s){var o,c,h,d,p,v,b;s===void 0&&(s=de.safeDescriptors),wj(e,t,n,a);var y=a.value;if((o=t.options_)!=null&&o.bound){var _;y=y.bind((_=e.proxy_)!=null?_:e.target_)}return{value:Ms((c=(h=t.options_)==null?void 0:h.name)!=null?c:n.toString(),y,(d=(p=t.options_)==null?void 0:p.autoAction)!=null?d:!1,(v=t.options_)!=null&&v.bound?(b=e.proxy_)!=null?b:e.target_:void 0),configurable:s?e.isPlainObject_:!0,enumerable:!1,writable:!s}}function zO(e,t){return{annotationType_:e,options_:t,make_:Aj,extend_:Nj,decorate_20223_:Cj}}function Aj(e,t,n,a){var s;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((s=this.options_)!=null&&s.bound&&(!$a(e.target_,t)||!Hu(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Hu(n.value))return 1;var o=qO(e,this,t,n,!1,!1);return Wr(a,t,o),2}function Nj(e,t,n,a){var s,o=qO(e,this,t,n,(s=this.options_)==null?void 0:s.bound);return e.defineProperty_(t,o,a)}function Cj(e,t){var n,a=t.name,s=t.addInitializer;return Hu(e)||(e=so(e)),(n=this.options_)!=null&&n.bound&&s(function(){var o=this,c=o[a].bind(o);c.isMobXFlow=!0,o[a]=c}),e}function Rj(e,t,n,a){t.annotationType_,a.value}function qO(e,t,n,a,s,o){o===void 0&&(o=de.safeDescriptors),Rj(e,t,n,a);var c=a.value;if(Hu(c)||(c=so(c)),s){var h;c=c.bind((h=e.proxy_)!=null?h:e.target_),c.isMobXFlow=!0}return{value:c,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function gy(e,t){return{annotationType_:e,options_:t,make_:Dj,extend_:jj,decorate_20223_:kj}}function Dj(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function jj(e,t,n,a){return Mj(e,this,t,n),e.defineComputedProperty_(t,js({},this.options_,{get:n.get,set:n.set}),a)}function kj(e,t){var n=this,a=t.name,s=t.addInitializer;return s(function(){var o=Vs(this)[Fe],c=js({},n.options_,{get:e,context:this});c.name||(c.name="ObservableObject."+a.toString()),o.values_.set(a,new kr(c))}),function(){return this[Fe].getObservablePropValue_(a)}}function Mj(e,t,n,a){t.annotationType_,a.get}function Id(e,t){return{annotationType_:e,options_:t,make_:Uj,extend_:$j,decorate_20223_:Lj}}function Uj(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function $j(e,t,n,a){var s,o;return Bj(e,this),e.defineObservableProperty_(t,n.value,(s=(o=this.options_)==null?void 0:o.enhancer)!=null?s:ks,a)}function Lj(e,t){var n=this,a=t.kind,s=t.name,o=new WeakSet;function c(h,d){var p,v,b=Vs(h)[Fe],y=new As(d,(p=(v=n.options_)==null?void 0:v.enhancer)!=null?p:ks,"ObservableObject."+s.toString(),!1);b.values_.set(s,y),o.add(h)}if(a=="accessor")return{get:function(){return o.has(this)||c(this,e.get.call(this)),this[Fe].getObservablePropValue_(s)},set:function(d){return o.has(this)||c(this,d),this[Fe].setObservablePropValue_(s,d)},init:function(d){return o.has(this)||c(this,d),d}}}function Bj(e,t,n,a){t.annotationType_}var Fj="true",Ij=VO();function VO(e){return{annotationType_:Fj,options_:e,make_:zj,extend_:qj,decorate_20223_:Vj}}function zj(e,t,n,a){var s,o;if(n.get)return zd.make_(e,t,n,a);if(n.set){var c=Ms(t.toString(),n.set);return a===e.target_?e.defineProperty_(t,{configurable:de.safeDescriptors?e.isPlainObject_:!0,set:c})===null?0:2:(Wr(a,t,{configurable:!0,set:c}),2)}if(a!==e.target_&&typeof n.value=="function"){var h;if(MO(n.value)){var d,p=(d=this.options_)!=null&&d.autoBind?so.bound:so;return p.make_(e,t,n,a)}var v=(h=this.options_)!=null&&h.autoBind?qu.bound:qu;return v.make_(e,t,n,a)}var b=((s=this.options_)==null?void 0:s.deep)===!1?an.ref:an;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var y;n.value=n.value.bind((y=e.proxy_)!=null?y:e.target_)}return b.make_(e,t,n,a)}function qj(e,t,n,a){var s,o;if(n.get)return zd.extend_(e,t,n,a);if(n.set)return e.defineProperty_(t,{configurable:de.safeDescriptors?e.isPlainObject_:!0,set:Ms(t.toString(),n.set)},a);if(typeof n.value=="function"&&(s=this.options_)!=null&&s.autoBind){var c;n.value=n.value.bind((c=e.proxy_)!=null?c:e.target_)}var h=((o=this.options_)==null?void 0:o.deep)===!1?an.ref:an;return h.extend_(e,t,n,a)}function Vj(e,t){rt("'"+this.annotationType_+"' cannot be used as a decorator")}var Hj="observable",Pj="observable.ref",Gj="observable.shallow",Yj="observable.struct",HO={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(HO);function $f(e){return e||HO}var fv=Id(Hj),Kj=Id(Pj,{enhancer:Fd}),Qj=Id(Gj,{enhancer:bj}),Xj=Id(Yj,{enhancer:Sj}),PO=ea(fv);function Lf(e){return e.deep===!0?ks:e.deep===!1?Fd:Jj(e.defaultDecorator)}function Zj(e){var t;return e?(t=e.defaultDecorator)!=null?t:VO(e):void 0}function Jj(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:ks}function GO(e,t,n){if(sc(t))return fv.decorate_20223_(e,t);if(Ds(t)){ic(e,t,fv);return}return fT(e)?e:Fa(e)?an.object(e,t,n):Array.isArray(e)?an.array(e,t):po(e)?an.map(e,t):Da(e)?an.set(e,t):typeof e=="object"&&e!==null?e:an.box(e,t)}RO(GO,PO);var Wj={box:function(t,n){var a=$f(n);return new As(t,Lf(a),a.name,!0,a.equals)},array:function(t,n){var a=$f(n);return(de.useProxies===!1||a.proxy===!1?Zk:zk)(t,Lf(a),a.name)},map:function(t,n){var a=$f(n);return new hT(t,Lf(a),a.name)},set:function(t,n){var a=$f(n);return new pT(t,Lf(a),a.name)},object:function(t,n,a){return zi(function(){return oT(de.useProxies===!1||(a==null?void 0:a.proxy)===!1?Vs({},a):$k({},a),t,n)})},ref:ea(Kj),shallow:ea(Qj),deep:PO,struct:ea(Xj)},an=RO(GO,Wj),YO="computed",ek="computed.struct",dv=gy(YO),tk=gy(ek,{equals:pd.structural}),zd=function(t,n){if(sc(n))return dv.decorate_20223_(t,n);if(Ds(n))return ic(t,n,dv);if(Fa(t))return ea(gy(YO,t));var a=Fa(n)?n:{};return a.get=t,a.name||(a.name=t.name||""),new kr(a)};Object.assign(zd,dv);zd.struct=ea(tk);var $E,LE,md=0,nk=1,rk=($E=(LE=hd(function(){},"name"))==null?void 0:LE.configurable)!=null?$E:!1,BE={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ms(e,t,n,a){n===void 0&&(n=!1);function s(){return ak(e,n,t,a||this,arguments)}return s.isMobxAction=!0,s.toString=function(){return t.toString()},rk&&(BE.value=e,Wr(s,"name",BE)),s}function ak(e,t,n,a,s){var o=ik(e,t);try{return n.apply(a,s)}catch(c){throw o.error_=c,c}finally{sk(o)}}function ik(e,t,n,a){var s=!1,o=0,c=de.trackingDerivation,h=!t||!c;hr();var d=de.allowStateChanges;h&&(zs(),d=by(!0));var p=Ey(!0),v={runAsAction_:h,prevDerivation_:c,prevAllowStateChanges_:d,prevAllowStateReads_:p,notifySpy_:s,startTime_:o,actionId_:nk++,parentActionId_:md};return md=v.actionId_,v}function sk(e){md!==e.actionId_&&rt(30),md=e.parentActionId_,e.error_!==void 0&&(de.suppressReactionErrors=!0),Sy(e.prevAllowStateChanges_),Du(e.prevAllowStateReads_),pr(),e.runAsAction_&&La(e.prevDerivation_),de.suppressReactionErrors=!1}function by(e){var t=de.allowStateChanges;return de.allowStateChanges=e,t}function Sy(e){de.allowStateChanges=e}var As=function(e){function t(a,s,o,c,h){var d;return o===void 0&&(o="ObservableValue"),h===void 0&&(h=pd.default),d=e.call(this,o)||this,d.enhancer=void 0,d.name_=void 0,d.equals=void 0,d.hasUnreportedChange_=!1,d.interceptors_=void 0,d.changeListeners_=void 0,d.value_=void 0,d.dehancer=void 0,d.enhancer=s,d.name_=o,d.equals=h,d.value_=s(a,void 0,o),d}BO(t,e);var n=t.prototype;return n.dehanceValue=function(s){return this.dehancer!==void 0?this.dehancer(s):s},n.set=function(s){this.value_,s=this.prepareNewValue_(s),s!==de.UNCHANGED&&this.setNewValue_(s)},n.prepareNewValue_=function(s){if(cr(this)){var o=fr(this,{object:this,type:ta,newValue:s});if(!o)return de.UNCHANGED;s=o.newValue}return s=this.enhancer(s,this.value_,this.name_),this.equals(this.value_,s)?de.UNCHANGED:s},n.setNewValue_=function(s){var o=this.value_;this.value_=s,this.reportChanged(),Rr(this)&&Dr(this,{type:ta,object:this,newValue:s,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(s){return oc(this,s)},n.observe_=function(s,o){return o&&s({observableKind:"value",debugObjectName:this.name_,object:this,type:ta,newValue:this.value_,oldValue:void 0}),uc(this,s)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return LO(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Ii),kr=function(){function e(n){this.dependenciesState_=ot.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ot.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new yd(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=vd.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||rt(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Ms("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?pd.structural:pd.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){fk(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(a){return a()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(a){return a()})},t.get=function(){if(this.isComputing&&rt(32,this.name_,this.derivation),de.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)hv(this)&&(this.warnAboutUntrackedRead_(),hr(),this.value_=this.computeValue_(!1),pr());else if(eT(this),hv(this)){var a=de.trackingContext;this.keepAlive_&&!a&&(de.trackingContext=this),this.trackAndCompute()&&ck(this),de.trackingContext=a}var s=this.value_;if(Jf(s))throw s.cause;return s},t.set=function(a){if(this.setter_){this.isRunningSetter&&rt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,a)}finally{this.isRunningSetter=!1}}else rt(34,this.name_)},t.trackAndCompute=function(){var a=this.value_,s=this.dependenciesState_===ot.NOT_TRACKING_,o=this.computeValue_(!0),c=s||Jf(a)||Jf(o)||!this.equals_(a,o);return c&&(this.value_=o),c},t.computeValue_=function(a){this.isComputing=!0;var s=by(!1),o;if(a)o=KO(this,this.derivation,this.scope_);else if(de.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(c){o=new yd(c)}return Sy(s),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(pv(this),this.value_=void 0)},t.observe_=function(a,s){var o=this,c=!0,h=void 0;return Ek(function(){var d=o.get();if(!c||s){var p=zs();a({observableKind:"computed",debugObjectName:o.name_,type:ta,object:o,newValue:d,oldValue:h}),La(p)}c=!1,h=d})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return LO(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},mo(e,[{key:"isComputing",get:function(){return zn(this.flags_,e.isComputingMask_)},set:function(a){this.flags_=qn(this.flags_,e.isComputingMask_,a)}},{key:"isRunningSetter",get:function(){return zn(this.flags_,e.isRunningSetterMask_)},set:function(a){this.flags_=qn(this.flags_,e.isRunningSetterMask_,a)}},{key:"isBeingObserved",get:function(){return zn(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=qn(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return zn(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=qn(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return zn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=qn(this.flags_,e.diffValueMask_,a===1)}}])}();kr.isComputingMask_=1;kr.isRunningSetterMask_=2;kr.isBeingObservedMask_=4;kr.isPendingUnobservationMask_=8;kr.diffValueMask_=16;var qd=Is("ComputedValue",kr),ot;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ot||(ot={}));var vd;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(vd||(vd={}));var yd=function(t){this.cause=void 0,this.cause=t};function Jf(e){return e instanceof yd}function hv(e){switch(e.dependenciesState_){case ot.UP_TO_DATE_:return!1;case ot.NOT_TRACKING_:case ot.STALE_:return!0;case ot.POSSIBLY_STALE_:{for(var t=Ey(!0),n=zs(),a=e.observing_,s=a.length,o=0;o<s;o++){var c=a[o];if(qd(c)){if(de.disableErrorBoundaries)c.get();else try{c.get()}catch{return La(n),Du(t),!0}if(e.dependenciesState_===ot.STALE_)return La(n),Du(t),!0}}return XO(e),La(n),Du(t),!1}}}function KO(e,t,n){var a=Ey(!0);XO(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++de.runId;var s=de.trackingDerivation;de.trackingDerivation=e,de.inBatch++;var o;if(de.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(c){o=new yd(c)}return de.inBatch--,de.trackingDerivation=s,lk(e),Du(a),o}function lk(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,a=ot.UP_TO_DATE_,s=0,o=e.unboundDepsCount_,c=0;c<o;c++){var h=n[c];h.diffValue===0&&(h.diffValue=1,s!==c&&(n[s]=h),s++),h.dependenciesState_>a&&(a=h.dependenciesState_)}for(n.length=s,e.newObserving_=null,o=t.length;o--;){var d=t[o];d.diffValue===0&&JO(d,e),d.diffValue=0}for(;s--;){var p=n[s];p.diffValue===1&&(p.diffValue=0,uk(p,e))}a!==ot.UP_TO_DATE_&&(e.dependenciesState_=a,e.onBecomeStale_())}function pv(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)JO(t[n],e);e.dependenciesState_=ot.NOT_TRACKING_}function QO(e){var t=zs();try{return e()}finally{La(t)}}function zs(){var e=de.trackingDerivation;return de.trackingDerivation=null,e}function La(e){de.trackingDerivation=e}function Ey(e){var t=de.allowStateReads;return de.allowStateReads=e,t}function Du(e){de.allowStateReads=e}function XO(e){if(e.dependenciesState_!==ot.UP_TO_DATE_){e.dependenciesState_=ot.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ot.UP_TO_DATE_}}var Wf=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ed=!0,ZO=!1,de=function(){var e=$d();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ed=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Wf().version&&(ed=!1),ed?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Wf):(setTimeout(function(){ZO||rt(35)},1),new Wf)}();function ok(){if((de.pendingReactions.length||de.inBatch||de.isRunningReactions)&&rt(36),ZO=!0,ed){var e=$d();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),de=new Wf}}function uk(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function JO(e,t){e.observers_.delete(t),e.observers_.size===0&&WO(e)}function WO(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,de.pendingUnobservations.push(e))}function hr(){de.inBatch++}function pr(){if(--de.inBatch===0){nT();for(var e=de.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof kr&&n.suspend_())}de.pendingUnobservations=[]}}function eT(e){var t=de.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&de.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&de.inBatch>0&&WO(e),!1)}function tT(e){e.lowestObserverState_!==ot.STALE_&&(e.lowestObserverState_=ot.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ot.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ot.STALE_}))}function ck(e){e.lowestObserverState_!==ot.STALE_&&(e.lowestObserverState_=ot.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ot.POSSIBLY_STALE_?t.dependenciesState_=ot.STALE_:t.dependenciesState_===ot.UP_TO_DATE_&&(e.lowestObserverState_=ot.UP_TO_DATE_)}))}function fk(e){e.lowestObserverState_===ot.UP_TO_DATE_&&(e.lowestObserverState_=ot.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ot.UP_TO_DATE_&&(t.dependenciesState_=ot.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Ia=function(){function e(n,a,s,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ot.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=vd.NONE,this.name_=n,this.onInvalidate_=a,this.errorHandler_=s,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,de.pendingReactions.push(this),nT())},t.runReaction_=function(){if(!this.isDisposed){hr(),this.isScheduled=!1;var a=de.trackingContext;if(de.trackingContext=this,hv(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(s){this.reportExceptionInDerivation_(s)}}de.trackingContext=a,pr()}},t.track=function(a){if(!this.isDisposed){hr(),this.isRunning=!0;var s=de.trackingContext;de.trackingContext=this;var o=KO(this,a,void 0);de.trackingContext=s,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&pv(this),Jf(o)&&this.reportExceptionInDerivation_(o.cause),pr()}},t.reportExceptionInDerivation_=function(a){var s=this;if(this.errorHandler_){this.errorHandler_(a,this);return}if(de.disableErrorBoundaries)throw a;var o="[mobx] uncaught error in '"+this+"'";de.suppressReactionErrors||console.error(o,a),de.globalReactionErrorHandlers.forEach(function(c){return c(a,s)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(hr(),pv(this),pr()))},t.getDisposer_=function(a){var s=this,o=function c(){s.dispose(),a==null||a.removeEventListener==null||a.removeEventListener("abort",c)};return a==null||a.addEventListener==null||a.addEventListener("abort",o),o[Fe]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(a){},mo(e,[{key:"isDisposed",get:function(){return zn(this.flags_,e.isDisposedMask_)},set:function(a){this.flags_=qn(this.flags_,e.isDisposedMask_,a)}},{key:"isScheduled",get:function(){return zn(this.flags_,e.isScheduledMask_)},set:function(a){this.flags_=qn(this.flags_,e.isScheduledMask_,a)}},{key:"isTrackPending",get:function(){return zn(this.flags_,e.isTrackPendingMask_)},set:function(a){this.flags_=qn(this.flags_,e.isTrackPendingMask_,a)}},{key:"isRunning",get:function(){return zn(this.flags_,e.isRunningMask_)},set:function(a){this.flags_=qn(this.flags_,e.isRunningMask_,a)}},{key:"diffValue",get:function(){return zn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=qn(this.flags_,e.diffValueMask_,a===1)}}])}();Ia.isDisposedMask_=1;Ia.isScheduledMask_=2;Ia.isTrackPendingMask_=4;Ia.isRunningMask_=8;Ia.diffValueMask_=16;var dk=100,mv=function(t){return t()};function nT(){de.inBatch>0||de.isRunningReactions||mv(hk)}function hk(){de.isRunningReactions=!0;for(var e=de.pendingReactions,t=0;e.length>0;){++t===dk&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),a=0,s=n.length;a<s;a++)n[a].runReaction_()}de.isRunningReactions=!1}var gd=Is("Reaction",Ia);function pk(e){var t=mv;mv=function(a){return e(function(){return t(a)})}}function ju(){return!1}function mk(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var rT="action",vk="action.bound",aT="autoAction",yk="autoAction.bound",gk="<unnamed action>",vv=lc(rT),bk=lc(vk,{bound:!0}),yv=lc(aT,{autoAction:!0}),Sk=lc(yk,{autoAction:!0,bound:!0});function iT(e){var t=function(a,s){if(jr(a))return Ms(a.name||gk,a,e);if(jr(s))return Ms(a,s,e);if(sc(s))return(e?yv:vv).decorate_20223_(a,s);if(Ds(s))return ic(a,s,e?yv:vv);if(Ds(a))return ea(lc(e?aT:rT,{name:a,autoAction:e}))};return t}var Hl=iT(!1);Object.assign(Hl,vv);var qu=iT(!0);Object.assign(qu,yv);Hl.bound=ea(bk);qu.bound=ea(Sk);function Vu(e){return jr(e)&&e.isMobxAction===!0}function Ek(e,t){var n,a,s,o;t===void 0&&(t=DO);var c=(n=(a=t)==null?void 0:a.name)!=null?n:"Autorun",h=!t.scheduler&&!t.delay,d;if(h)d=new Ia(c,function(){this.track(b)},t.onError,t.requiresObservable);else{var p=xk(t),v=!1;d=new Ia(c,function(){v||(v=!0,p(function(){v=!1,d.isDisposed||d.track(b)}))},t.onError,t.requiresObservable)}function b(){e(d)}return(s=t)!=null&&(s=s.signal)!=null&&s.aborted||d.schedule_(),d.getDisposer_((o=t)==null?void 0:o.signal)}var _k=function(t){return t()};function xk(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:_k}var Ok="onBO",Tk="onBUO";function wk(e,t,n){return lT(Ok,e,t,n)}function sT(e,t,n){return lT(Tk,e,t,n)}function lT(e,t,n,a){var s=Ed(t),o=jr(a)?a:n,c=e+"L";return s[c]?s[c].add(o):s[c]=new Set([o]),function(){var h=s[c];h&&(h.delete(o),h.size===0&&delete s[c])}}var Ak="never",Bf="always",Nk="observed";function Ck(e){e.isolateGlobalState===!0&&ok();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(de.useProxies=t===Bf?!0:t===Ak?!1:typeof Proxy<"u"),t==="ifavailable"&&(de.verifyProxies=!0),n!==void 0){var a=n===Bf?Bf:n===Nk;de.enforceActions=a,de.allowStateChanges=!(a===!0||a===Bf)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(s){s in e&&(de[s]=!!e[s])}),de.allowStateReads=!de.observableRequiresReaction,e.reactionScheduler&&pk(e.reactionScheduler)}function oT(e,t,n,a){var s=fj(t);return zi(function(){var o=Vs(e,a)[Fe];io(s).forEach(function(c){o.extend_(c,s[c],n&&c in n?n[c]:!0)})}),e}function Rk(e,t){return uT(Ed(e,t))}function uT(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Dk(e.observing_).map(uT)),t}function Dk(e){return Array.from(new Set(e))}var jk=0;function cT(){this.message="FLOW_CANCELLED"}cT.prototype=Object.create(Error.prototype);var Om=zO("flow"),kk=zO("flow.bound",{bound:!0}),so=Object.assign(function(t,n){if(sc(n))return Om.decorate_20223_(t,n);if(Ds(n))return ic(t,n,Om);var a=t,s=a.name||"<unnamed flow>",o=function(){var h=this,d=arguments,p=++jk,v=Hl(s+" - runid: "+p+" - init",a).apply(h,d),b,y=void 0,_=new Promise(function(x,A){var N=0;b=A;function O(U){y=void 0;var C;try{C=Hl(s+" - runid: "+p+" - yield "+N++,v.next).call(v,U)}catch(w){return A(w)}D(C)}function R(U){y=void 0;var C;try{C=Hl(s+" - runid: "+p+" - yield "+N++,v.throw).call(v,U)}catch(w){return A(w)}D(C)}function D(U){if(jr(U==null?void 0:U.then)){U.then(D,A);return}return U.done?x(U.value):(y=Promise.resolve(U.value),y.then(O,R))}O(void 0)});return _.cancel=Hl(s+" - runid: "+p+" - cancel",function(){try{y&&FE(y);var x=v.return(void 0),A=Promise.resolve(x.value);A.then(ql,ql),FE(A),b(new cT)}catch(N){b(N)}}),_};return o.isMobXFlow=!0,o},Om);so.bound=ea(kk);function FE(e){jr(e.cancel)&&e.cancel()}function Hu(e){return(e==null?void 0:e.isMobXFlow)===!0}function Mk(e,t){return e?Hd(e)||!!e[Fe]||yy(e)||gd(e)||qd(e):!1}function fT(e){return Mk(e)}function ja(e,t){t===void 0&&(t=void 0),hr();try{return e.apply(t)}finally{pr()}}function Ml(e){return e[Fe]}var Uk={has:function(t,n){return Ml(t).has_(n)},get:function(t,n){return Ml(t).get_(n)},set:function(t,n,a){var s;return Ds(n)?(s=Ml(t).set_(n,a,!0))!=null?s:!0:!1},deleteProperty:function(t,n){var a;return Ds(n)?(a=Ml(t).delete_(n,!0))!=null?a:!0:!1},defineProperty:function(t,n,a){var s;return(s=Ml(t).defineProperty_(n,a))!=null?s:!0},ownKeys:function(t){return Ml(t).ownKeys_()},preventExtensions:function(t){rt(13)}};function $k(e,t){var n,a;return jO(),e=Vs(e,t),(a=(n=e[Fe]).proxy_)!=null?a:n.proxy_=new Proxy(e,Uk)}function cr(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function oc(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),kO(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function fr(e,t){var n=zs();try{for(var a=[].concat(e.interceptors_||[]),s=0,o=a.length;s<o&&(t=a[s](t),t&&!t.type&&rt(14),!!t);s++);return t}finally{La(n)}}function Rr(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function uc(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),kO(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function Dr(e,t){var n=zs(),a=e.changeListeners_;if(a){a=a.slice();for(var s=0,o=a.length;s<o;s++)a[s](t);La(n)}}function Lk(e,t,n){return zi(function(){var a,s=Vs(e,n)[Fe];(a=t)!=null||(t=vj(e)),io(t).forEach(function(o){return s.make_(o,t[o])})}),e}var Tm=Symbol("mobx-keys");function Bk(e,t,n){return Fa(e)?oT(e,e,t,n):(zi(function(){var a=Vs(e,n)[Fe];if(!e[Tm]){var s=Object.getPrototypeOf(e),o=new Set([].concat(io(e),io(s)));o.delete("constructor"),o.delete(Fe),ac(s,Tm,o)}e[Tm].forEach(function(c){return a.make_(c,t&&c in t?t[c]:!0)})}),e)}var IE="splice",ta="update",Fk=1e4,Ik={get:function(t,n){var a=t[Fe];return n===Fe?a:n==="length"?a.getArrayLength_():typeof n=="string"&&!isNaN(n)?a.get_(parseInt(n)):$a(bd,n)?bd[n]:t[n]},set:function(t,n,a){var s=t[Fe];return n==="length"&&s.setArrayLength_(a),typeof n=="symbol"||isNaN(n)?t[n]=a:s.set_(parseInt(n),a),!0},preventExtensions:function(){rt(15)}},_y=function(){function e(n,a,s,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=s,this.legacyMode_=o,this.atom_=new Ii(n),this.enhancer_=function(c,h){return a(c,h,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.dehanceValues_=function(a){return this.dehancer!==void 0&&a.length>0?a.map(this.dehancer):a},t.intercept_=function(a){return oc(this,a)},t.observe_=function(a,s){return s===void 0&&(s=!1),s&&a({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),uc(this,a)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(a){(typeof a!="number"||isNaN(a)||a<0)&&rt("Out of range: "+a);var s=this.values_.length;if(a!==s)if(a>s){for(var o=new Array(a-s),c=0;c<a-s;c++)o[c]=void 0;this.spliceWithArray_(s,0,o)}else this.spliceWithArray_(a,s-a)},t.updateArrayLength_=function(a,s){a!==this.lastKnownLength_&&rt(16),this.lastKnownLength_+=s,this.legacyMode_&&s>0&&gT(a+s+1)},t.spliceWithArray_=function(a,s,o){var c=this;this.atom_;var h=this.values_.length;if(a===void 0?a=0:a>h?a=h:a<0&&(a=Math.max(0,h+a)),arguments.length===1?s=h-a:s==null?s=0:s=Math.max(0,Math.min(s,h-a)),o===void 0&&(o=uv),cr(this)){var d=fr(this,{object:this.proxy_,type:IE,index:a,removedCount:s,added:o});if(!d)return uv;s=d.removedCount,o=d.added}if(o=o.length===0?o:o.map(function(b){return c.enhancer_(b,void 0)}),this.legacyMode_){var p=o.length-s;this.updateArrayLength_(h,p)}var v=this.spliceItemsIntoValues_(a,s,o);return(s!==0||o.length!==0)&&this.notifyArraySplice_(a,o,v),this.dehanceValues_(v)},t.spliceItemsIntoValues_=function(a,s,o){if(o.length<Fk){var c;return(c=this.values_).splice.apply(c,[a,s].concat(o))}else{var h=this.values_.slice(a,a+s),d=this.values_.slice(a+s);this.values_.length+=o.length-s;for(var p=0;p<o.length;p++)this.values_[a+p]=o[p];for(var v=0;v<d.length;v++)this.values_[a+o.length+v]=d[v];return h}},t.notifyArrayChildUpdate_=function(a,s,o){var c=!this.owned_&&ju(),h=Rr(this),d=h||c?{observableKind:"array",object:this.proxy_,type:ta,debugObjectName:this.atom_.name_,index:a,newValue:s,oldValue:o}:null;this.atom_.reportChanged(),h&&Dr(this,d)},t.notifyArraySplice_=function(a,s,o){var c=!this.owned_&&ju(),h=Rr(this),d=h||c?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:IE,index:a,removed:o,added:s,removedCount:o.length,addedCount:s.length}:null;this.atom_.reportChanged(),h&&Dr(this,d)},t.get_=function(a){if(this.legacyMode_&&a>=this.values_.length){console.warn("[mobx] Out of bounds read: "+a);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[a])},t.set_=function(a,s){var o=this.values_;if(this.legacyMode_&&a>o.length&&rt(17,a,o.length),a<o.length){this.atom_;var c=o[a];if(cr(this)){var h=fr(this,{type:ta,object:this.proxy_,index:a,newValue:s});if(!h)return;s=h.newValue}s=this.enhancer_(s,c);var d=s!==c;d&&(o[a]=s,this.notifyArrayChildUpdate_(a,s,c))}else{for(var p=new Array(a+1-o.length),v=0;v<p.length-1;v++)p[v]=void 0;p[p.length-1]=s,this.spliceWithArray_(o.length,0,p)}},e}();function zk(e,t,n,a){return n===void 0&&(n="ObservableArray"),a===void 0&&(a=!1),jO(),zi(function(){var s=new _y(n,t,a,!1);UO(s.values_,Fe,s);var o=new Proxy(s.values_,Ik);return s.proxy_=o,e&&e.length&&s.spliceWithArray_(0,0,e),o})}var bd={clear:function(){return this.splice(0)},replace:function(t){var n=this[Fe];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var a=arguments.length,s=new Array(a>2?a-2:0),o=2;o<a;o++)s[o-2]=arguments[o];var c=this[Fe];switch(arguments.length){case 0:return[];case 1:return c.spliceWithArray_(t);case 2:return c.spliceWithArray_(t,n)}return c.spliceWithArray_(t,n,s)},spliceWithArray:function(t,n,a){return this[Fe].spliceWithArray_(t,n,a)},push:function(){for(var t=this[Fe],n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.spliceWithArray_(t.values_.length,0,a),t.values_.length},pop:function(){return this.splice(Math.max(this[Fe].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Fe],n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.spliceWithArray_(0,0,a),t.values_.length},reverse:function(){return de.trackingDerivation&&rt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){de.trackingDerivation&&rt(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[Fe],a=n.dehanceValues_(n.values_).indexOf(t);return a>-1?(this.splice(a,1),!0):!1}};xt("at",Yn);xt("concat",Yn);xt("flat",Yn);xt("includes",Yn);xt("indexOf",Yn);xt("join",Yn);xt("lastIndexOf",Yn);xt("slice",Yn);xt("toString",Yn);xt("toLocaleString",Yn);xt("toSorted",Yn);xt("toSpliced",Yn);xt("with",Yn);xt("every",$r);xt("filter",$r);xt("find",$r);xt("findIndex",$r);xt("findLast",$r);xt("findLastIndex",$r);xt("flatMap",$r);xt("forEach",$r);xt("map",$r);xt("some",$r);xt("toReversed",$r);xt("reduce",dT);xt("reduceRight",dT);function xt(e,t){typeof Array.prototype[e]=="function"&&(bd[e]=t(e))}function Yn(e){return function(){var t=this[Fe];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function $r(e){return function(t,n){var a=this,s=this[Fe];s.atom_.reportObserved();var o=s.dehanceValues_(s.values_);return o[e](function(c,h){return t.call(n,c,h,a)})}}function dT(e){return function(){var t=this,n=this[Fe];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_),s=arguments[0];return arguments[0]=function(o,c,h){return s(o,c,h,t)},a[e].apply(a,arguments)}}var qk=Is("ObservableArrayAdministration",_y);function Vd(e){return Bd(e)&&qk(e[Fe])}var Vk={},Ci="add",Sd="delete",hT=function(){function e(n,a,s){var o=this;a===void 0&&(a=ks),s===void 0&&(s="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Fe]=Vk,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=a,this.name_=s,jr(Map)||rt(18),zi(function(){o.keysAtom_=FO("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(a){return this.data_.has(a)},t.has=function(a){var s=this;if(!de.trackingDerivation)return this.has_(a);var o=this.hasMap_.get(a);if(!o){var c=o=new As(this.has_(a),Fd,"ObservableMap.key?",!1);this.hasMap_.set(a,c),sT(c,function(){return s.hasMap_.delete(a)})}return o.get()},t.set=function(a,s){var o=this.has_(a);if(cr(this)){var c=fr(this,{type:o?ta:Ci,object:this,newValue:s,name:a});if(!c)return this;s=c.newValue}return o?this.updateValue_(a,s):this.addValue_(a,s),this},t.delete=function(a){var s=this;if(this.keysAtom_,cr(this)){var o=fr(this,{type:Sd,object:this,name:a});if(!o)return!1}if(this.has_(a)){var c=ju(),h=Rr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:Sd,object:this,oldValue:this.data_.get(a).value_,name:a}:null;return ja(function(){var p;s.keysAtom_.reportChanged(),(p=s.hasMap_.get(a))==null||p.setNewValue_(!1);var v=s.data_.get(a);v.setNewValue_(void 0),s.data_.delete(a)}),h&&Dr(this,d),!0}return!1},t.updateValue_=function(a,s){var o=this.data_.get(a);if(s=o.prepareNewValue_(s),s!==de.UNCHANGED){var c=ju(),h=Rr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:ta,object:this,oldValue:o.value_,name:a,newValue:s}:null;o.setNewValue_(s),h&&Dr(this,d)}},t.addValue_=function(a,s){var o=this;this.keysAtom_,ja(function(){var p,v=new As(s,o.enhancer_,"ObservableMap.key",!1);o.data_.set(a,v),s=v.value_,(p=o.hasMap_.get(a))==null||p.setNewValue_(!0),o.keysAtom_.reportChanged()});var c=ju(),h=Rr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:Ci,object:this,name:a,newValue:s}:null;h&&Dr(this,d)},t.get=function(a){return this.has(a)?this.dehanceValue_(this.data_.get(a).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var a=this,s=this.keys();return zE({next:function(){var c=s.next(),h=c.done,d=c.value;return{done:h,value:h?void 0:a.get(d)}}})},t.entries=function(){var a=this,s=this.keys();return zE({next:function(){var c=s.next(),h=c.done,d=c.value;return{done:h,value:h?void 0:[d,a.get(d)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(a,s){for(var o=Vl(this),c;!(c=o()).done;){var h=c.value,d=h[0],p=h[1];a.call(s,p,d,this)}},t.merge=function(a){var s=this;return qs(a)&&(a=new Map(a)),ja(function(){Fa(a)?cj(a).forEach(function(o){return s.set(o,a[o])}):Array.isArray(a)?a.forEach(function(o){var c=o[0],h=o[1];return s.set(c,h)}):po(a)?(uj(a)||rt(19,a),a.forEach(function(o,c){return s.set(c,o)})):a!=null&&rt(20,a)}),this},t.clear=function(){var a=this;ja(function(){QO(function(){for(var s=Vl(a.keys()),o;!(o=s()).done;){var c=o.value;a.delete(c)}})})},t.replace=function(a){var s=this;return ja(function(){for(var o=Hk(a),c=new Map,h=!1,d=Vl(s.data_.keys()),p;!(p=d()).done;){var v=p.value;if(!o.has(v)){var b=s.delete(v);if(b)h=!0;else{var y=s.data_.get(v);c.set(v,y)}}}for(var _=Vl(o.entries()),x;!(x=_()).done;){var A=x.value,N=A[0],O=A[1],R=s.data_.has(N);if(s.set(N,O),s.data_.has(N)){var D=s.data_.get(N);c.set(N,D),R||(h=!0)}}if(!h)if(s.data_.size!==c.size)s.keysAtom_.reportChanged();else for(var U=s.data_.keys(),C=c.keys(),w=U.next(),q=C.next();!w.done;){if(w.value!==q.value){s.keysAtom_.reportChanged();break}w=U.next(),q=C.next()}s.data_=c}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(a,s){return uc(this,a)},t.intercept_=function(a){return oc(this,a)},mo(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),qs=Is("ObservableMap",hT);function zE(e){return e[Symbol.toStringTag]="MapIterator",Oy(e)}function Hk(e){if(po(e)||qs(e))return e;if(Array.isArray(e))return new Map(e);if(Fa(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return rt(21,e)}var Pk={},pT=function(){function e(n,a,s){var o=this;a===void 0&&(a=ks),s===void 0&&(s="ObservableSet"),this.name_=void 0,this[Fe]=Pk,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=s,jr(Set)||rt(22),this.enhancer_=function(c,h){return a(c,h,s)},zi(function(){o.atom_=FO(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.clear=function(){var a=this;ja(function(){QO(function(){for(var s=Vl(a.data_.values()),o;!(o=s()).done;){var c=o.value;a.delete(c)}})})},t.forEach=function(a,s){for(var o=Vl(this),c;!(c=o()).done;){var h=c.value;a.call(s,h,h,this)}},t.add=function(a){var s=this;if(this.atom_,cr(this)){var o=fr(this,{type:Ci,object:this,newValue:a});if(!o)return this;a=o.newValue}if(!this.has(a)){ja(function(){s.data_.add(s.enhancer_(a,void 0)),s.atom_.reportChanged()});var c=!1,h=Rr(this),d=h||c?{observableKind:"set",debugObjectName:this.name_,type:Ci,object:this,newValue:a}:null;h&&Dr(this,d)}return this},t.delete=function(a){var s=this;if(cr(this)){var o=fr(this,{type:Sd,object:this,oldValue:a});if(!o)return!1}if(this.has(a)){var c=!1,h=Rr(this),d=h||c?{observableKind:"set",debugObjectName:this.name_,type:Sd,object:this,oldValue:a}:null;return ja(function(){s.atom_.reportChanged(),s.data_.delete(a)}),h&&Dr(this,d),!0}return!1},t.has=function(a){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(a))},t.entries=function(){var a=this.values();return qE({next:function(){var o=a.next(),c=o.value,h=o.done;return h?{value:void 0,done:h}:{value:[c,c],done:h}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var a=this,s=this.data_.values();return qE({next:function(){var c=s.next(),h=c.value,d=c.done;return d?{value:void 0,done:d}:{value:a.dehanceValue_(h),done:d}}})},t.intersection=function(a){if(Da(a)&&!Xr(a))return a.intersection(this);var s=new Set(this);return s.intersection(a)},t.union=function(a){if(Da(a)&&!Xr(a))return a.union(this);var s=new Set(this);return s.union(a)},t.difference=function(a){return new Set(this).difference(a)},t.symmetricDifference=function(a){if(Da(a)&&!Xr(a))return a.symmetricDifference(this);var s=new Set(this);return s.symmetricDifference(a)},t.isSubsetOf=function(a){return new Set(this).isSubsetOf(a)},t.isSupersetOf=function(a){return new Set(this).isSupersetOf(a)},t.isDisjointFrom=function(a){if(Da(a)&&!Xr(a))return a.isDisjointFrom(this);var s=new Set(this);return s.isDisjointFrom(a)},t.replace=function(a){var s=this;return Xr(a)&&(a=new Set(a)),ja(function(){Array.isArray(a)?(s.clear(),a.forEach(function(o){return s.add(o)})):Da(a)?(s.clear(),a.forEach(function(o){return s.add(o)})):a!=null&&rt("Cannot initialize set from "+a)}),this},t.observe_=function(a,s){return uc(this,a)},t.intercept_=function(a){return oc(this,a)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},mo(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Xr=Is("ObservableSet",pT);function qE(e){return e[Symbol.toStringTag]="SetIterator",Oy(e)}var VE=Object.create(null),HE="remove",mT=function(){function e(n,a,s,o){a===void 0&&(a=new Map),o===void 0&&(o=Ij),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=a,this.name_=s,this.defaultAnnotation_=o,this.keysAtom_=new Ii("ObservableObject.keys"),this.isPlainObject_=Fa(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(a){return this.values_.get(a).get()},t.setObservablePropValue_=function(a,s){var o=this.values_.get(a);if(o instanceof kr)return o.set(s),!0;if(cr(this)){var c=fr(this,{type:ta,object:this.proxy_||this.target_,name:a,newValue:s});if(!c)return null;s=c.newValue}if(s=o.prepareNewValue_(s),s!==de.UNCHANGED){var h=Rr(this),d=!1,p=h||d?{type:ta,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:a,newValue:s}:null;o.setNewValue_(s),h&&Dr(this,p)}return!0},t.get_=function(a){return de.trackingDerivation&&!$a(this.target_,a)&&this.has_(a),this.target_[a]},t.set_=function(a,s,o){return o===void 0&&(o=!1),$a(this.target_,a)?this.values_.has(a)?this.setObservablePropValue_(a,s):o?Reflect.set(this.target_,a,s):(this.target_[a]=s,!0):this.extend_(a,{value:s,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(a){if(!de.trackingDerivation)return a in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var s=this.pendingKeys_.get(a);return s||(s=new As(a in this.target_,Fd,"ObservableObject.key?",!1),this.pendingKeys_.set(a,s)),s.get()},t.make_=function(a,s){if(s===!0&&(s=this.defaultAnnotation_),s!==!1){if(!(a in this.target_)){var o;if((o=this.target_[Zr])!=null&&o[a])return;rt(1,s.annotationType_,this.name_+"."+a.toString())}for(var c=this.target_;c&&c!==Ld;){var h=hd(c,a);if(h){var d=s.make_(this,a,h,c);if(d===0)return;if(d===1)break}c=Object.getPrototypeOf(c)}GE(this,s,a)}},t.extend_=function(a,s,o,c){if(c===void 0&&(c=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(a,s,c);var h=o.extend_(this,a,s,c);return h&&GE(this,o,a),h},t.defineProperty_=function(a,s,o){o===void 0&&(o=!1),this.keysAtom_;try{hr();var c=this.delete_(a);if(!c)return c;if(cr(this)){var h=fr(this,{object:this.proxy_||this.target_,name:a,type:Ci,newValue:s.value});if(!h)return null;var d=h.newValue;s.value!==d&&(s=js({},s,{value:d}))}if(o){if(!Reflect.defineProperty(this.target_,a,s))return!1}else Wr(this.target_,a,s);this.notifyPropertyAddition_(a,s.value)}finally{pr()}return!0},t.defineObservableProperty_=function(a,s,o,c){c===void 0&&(c=!1),this.keysAtom_;try{hr();var h=this.delete_(a);if(!h)return h;if(cr(this)){var d=fr(this,{object:this.proxy_||this.target_,name:a,type:Ci,newValue:s});if(!d)return null;s=d.newValue}var p=PE(a),v={configurable:de.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:p.get,set:p.set};if(c){if(!Reflect.defineProperty(this.target_,a,v))return!1}else Wr(this.target_,a,v);var b=new As(s,o,"ObservableObject.key",!1);this.values_.set(a,b),this.notifyPropertyAddition_(a,b.value_)}finally{pr()}return!0},t.defineComputedProperty_=function(a,s,o){o===void 0&&(o=!1),this.keysAtom_;try{hr();var c=this.delete_(a);if(!c)return c;if(cr(this)){var h=fr(this,{object:this.proxy_||this.target_,name:a,type:Ci,newValue:void 0});if(!h)return null}s.name||(s.name="ObservableObject.key"),s.context=this.proxy_||this.target_;var d=PE(a),p={configurable:de.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:d.get,set:d.set};if(o){if(!Reflect.defineProperty(this.target_,a,p))return!1}else Wr(this.target_,a,p);this.values_.set(a,new kr(s)),this.notifyPropertyAddition_(a,void 0)}finally{pr()}return!0},t.delete_=function(a,s){if(s===void 0&&(s=!1),this.keysAtom_,!$a(this.target_,a))return!0;if(cr(this)){var o=fr(this,{object:this.proxy_||this.target_,name:a,type:HE});if(!o)return null}try{var c;hr();var h=Rr(this),d=!1,p=this.values_.get(a),v=void 0;if(!p&&(h||d)){var b;v=(b=hd(this.target_,a))==null?void 0:b.value}if(s){if(!Reflect.deleteProperty(this.target_,a))return!1}else delete this.target_[a];if(p&&(this.values_.delete(a),p instanceof As&&(v=p.value_),tT(p)),this.keysAtom_.reportChanged(),(c=this.pendingKeys_)==null||(c=c.get(a))==null||c.set(a in this.target_),h||d){var y={type:HE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:v,name:a};h&&Dr(this,y)}}finally{pr()}return!0},t.observe_=function(a,s){return uc(this,a)},t.intercept_=function(a){return oc(this,a)},t.notifyPropertyAddition_=function(a,s){var o,c=Rr(this),h=!1;if(c||h){var d=c||h?{type:Ci,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:a,newValue:s}:null;c&&Dr(this,d)}(o=this.pendingKeys_)==null||(o=o.get(a))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),io(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Vs(e,t){var n;if($a(e,Fe))return e;var a=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",s=new mT(e,new Map,String(a),Zj(t));return ac(e,Fe,s),e}var Gk=Is("ObservableObjectAdministration",mT);function PE(e){return VE[e]||(VE[e]={get:function(){return this[Fe].getObservablePropValue_(e)},set:function(n){return this[Fe].setObservablePropValue_(e,n)}})}function Hd(e){return Bd(e)?Gk(e[Fe]):!1}function GE(e,t,n){var a;(a=e.target_[Zr])==null||delete a[n]}var Yk=yT(0),Kk=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),wm=0,vT=function(){};function Qk(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Qk(vT,Array.prototype);var xy=function(e){function t(a,s,o,c){var h;return o===void 0&&(o="ObservableArray"),c===void 0&&(c=!1),h=e.call(this)||this,zi(function(){var d=new _y(o,s,c,!0);d.proxy_=h,UO(h,Fe,d),a&&a.length&&h.spliceWithArray(0,0,a),Kk&&Object.defineProperty(h,"0",Yk)}),h}BO(t,e);var n=t.prototype;return n.concat=function(){this[Fe].atom_.reportObserved();for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];return Array.prototype.concat.apply(this.slice(),o.map(function(h){return Vd(h)?h.slice():h}))},n[Symbol.iterator]=function(){var a=this,s=0;return Oy({next:function(){return s<a.length?{value:a[s++],done:!1}:{done:!0,value:void 0}}})},mo(t,[{key:"length",get:function(){return this[Fe].getArrayLength_()},set:function(s){this[Fe].setArrayLength_(s)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(vT);Object.entries(bd).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&ac(xy.prototype,t,n)});function yT(e){return{enumerable:!1,configurable:!0,get:function(){return this[Fe].get_(e)},set:function(n){this[Fe].set_(e,n)}}}function Xk(e){Wr(xy.prototype,""+e,yT(e))}function gT(e){if(e>wm){for(var t=wm;t<e+100;t++)Xk(t);wm=e}}gT(1e3);function Zk(e,t,n){return new xy(e,t,n)}function Ed(e,t){if(typeof e=="object"&&e!==null){if(Vd(e))return t!==void 0&&rt(23),e[Fe].atom_;if(Xr(e))return e.atom_;if(qs(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||rt(25,t,gv(e)),n}if(Hd(e)){if(!t)return rt(26);var a=e[Fe].values_.get(t);return a||rt(27,t,gv(e)),a}if(yy(e)||qd(e)||gd(e))return e}else if(jr(e)&&gd(e[Fe]))return e[Fe];rt(28)}function Jk(e,t){if(e||rt(29),yy(e)||qd(e)||gd(e)||qs(e)||Xr(e))return e;if(e[Fe])return e[Fe];rt(24,e)}function gv(e,t){var n;if(t!==void 0)n=Ed(e,t);else{if(Vu(e))return e.name;Hd(e)||qs(e)||Xr(e)?n=Jk(e):n=Ed(e)}return n.name_}function zi(e){var t=zs(),n=by(!0);hr();try{return e()}finally{pr(),Sy(n),La(t)}}var YE=Ld.toString;function bT(e,t,n){return n===void 0&&(n=-1),bv(e,t,n)}function bv(e,t,n,a,s){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var c=YE.call(e);if(c!==YE.call(t))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=KE(e),t=KE(t);var h=c==="[object Array]";if(!h){if(typeof e!="object"||typeof t!="object")return!1;var d=e.constructor,p=t.constructor;if(d!==p&&!(jr(d)&&d instanceof d&&jr(p)&&p instanceof p)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),a=a||[],s=s||[];for(var v=a.length;v--;)if(a[v]===e)return s[v]===t;if(a.push(e),s.push(t),h){if(v=e.length,v!==t.length)return!1;for(;v--;)if(!bv(e[v],t[v],n-1,a,s))return!1}else{var b=Object.keys(e),y=b.length;if(Object.keys(t).length!==y)return!1;for(var _=0;_<y;_++){var x=b[_];if(!($a(t,x)&&bv(e[x],t[x],n-1,a,s)))return!1}}return a.pop(),s.pop(),!0}function KE(e){return Vd(e)?e.slice():po(e)||qs(e)||Da(e)||Xr(e)?Array.from(e.entries()):e}var QE,Wk=((QE=$d().Iterator)==null?void 0:QE.prototype)||{};function Oy(e){return e[Symbol.iterator]=e2,Object.assign(Object.create(Wk),e)}function e2(){return this}["Symbol","Map","Set"].forEach(function(e){var t=$d();typeof t[e]>"u"&&rt("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:mk,extras:{getDebugName:gv},$mobx:Fe});if(!S.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Lk)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function t2(e){e()}function n2(e){e||(e=t2),Ck({reactionScheduler:e})}function r2(e){return Rk(e)}var a2=1e4,i2=1e4,s2=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(a){a===void 0&&(a=a2),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var s=Date.now();n.registrations.forEach(function(o,c){s-o.registeredAt>=a&&(n.finalize(o.value),n.registrations.delete(c))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,a){this.registrations.set(a,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,i2))}}),e}(),l2=typeof FinalizationRegistry<"u"?FinalizationRegistry:s2,Sv=new l2(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Am={exports:{}},Nm={};/**
|
|
70
|
+
*/function ID(e){return S.createElement(tD,{flushSync:py.flushSync,...e})}var Md=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ud=typeof window>"u"||"Deno"in globalThis;function wr(){}function zD(e,t){return typeof e=="function"?e(t):e}function qD(e){return typeof e=="number"&&e>=0&&e!==1/0}function VD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function NE(e,t){return typeof e=="function"?e(t):e}function HD(e,t){return typeof e=="function"?e(t):e}function CE(e,t){const{type:n="all",exact:a,fetchStatus:s,predicate:o,queryKey:c,stale:h}=e;if(c){if(a){if(t.queryHash!==my(c,t.options))return!1}else if(!zu(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||s&&s!==t.state.fetchStatus||o&&!o(t))}function RE(e,t){const{exact:n,status:a,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Iu(t.options.mutationKey)!==Iu(o))return!1}else if(!zu(t.options.mutationKey,o))return!1}return!(a&&t.state.status!==a||s&&!s(t))}function my(e,t){return((t==null?void 0:t.queryKeyHashFn)||Iu)(e)}function Iu(e){return JSON.stringify(e,(t,n)=>ov(n)?Object.keys(n).sort().reduce((a,s)=>(a[s]=n[s],a),{}):n)}function zu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zu(e[n],t[n])):!1}function xO(e,t){if(e===t)return e;const n=DE(e)&&DE(t);if(n||ov(e)&&ov(t)){const a=n?e:Object.keys(e),s=a.length,o=n?t:Object.keys(t),c=o.length,h=n?[]:{};let d=0;for(let p=0;p<c;p++){const v=n?p:o[p];(!n&&a.includes(v)||n)&&e[v]===void 0&&t[v]===void 0?(h[v]=void 0,d++):(h[v]=xO(e[v],t[v]),h[v]===e[v]&&e[v]!==void 0&&d++)}return s===c&&d===s?e:h}return t}function DE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ov(e){if(!jE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jE(e){return Object.prototype.toString.call(e)==="[object Object]"}function PD(e){return new Promise(t=>{setTimeout(t,e)})}function GD(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xO(e,t):t}function YD(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function KD(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var vy=Symbol();function OO(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _s,Oi,Xl,qx,QD=(qx=class extends Md{constructor(){super();lt(this,_s);lt(this,Oi);lt(this,Xl);ze(this,Xl,t=>{if(!Ud&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Z(this,Oi)||this.setEventListener(Z(this,Xl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Oi))==null||t.call(this),ze(this,Oi,void 0))}setEventListener(t){var n;ze(this,Xl,t),(n=Z(this,Oi))==null||n.call(this),ze(this,Oi,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){Z(this,_s)!==t&&(ze(this,_s,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Z(this,_s)=="boolean"?Z(this,_s):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_s=new WeakMap,Oi=new WeakMap,Xl=new WeakMap,qx),TO=new QD,Zl,Ti,Jl,Vx,XD=(Vx=class extends Md{constructor(){super();lt(this,Zl,!0);lt(this,Ti);lt(this,Jl);ze(this,Jl,t=>{if(!Ud&&window.addEventListener){const n=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){Z(this,Ti)||this.setEventListener(Z(this,Jl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Ti))==null||t.call(this),ze(this,Ti,void 0))}setEventListener(t){var n;ze(this,Jl,t),(n=Z(this,Ti))==null||n.call(this),ze(this,Ti,t(this.setOnline.bind(this)))}setOnline(t){Z(this,Zl)!==t&&(ze(this,Zl,t),this.listeners.forEach(a=>{a(t)}))}isOnline(){return Z(this,Zl)}},Zl=new WeakMap,Ti=new WeakMap,Jl=new WeakMap,Vx),dd=new XD;function ZD(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function a(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{a({status:"fulfilled",value:s}),e(s)},n.reject=s=>{a({status:"rejected",reason:s}),t(s)},n}function JD(e){return Math.min(1e3*2**e,3e4)}function wO(e){return(e??"online")==="online"?dd.isOnline():!0}var AO=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xm(e){return e instanceof AO}function NO(e){let t=!1,n=0,a=!1,s;const o=ZD(),c=A=>{var N;a||(y(new AO(A)),(N=e.abort)==null||N.call(e))},h=()=>{t=!0},d=()=>{t=!1},p=()=>TO.isFocused()&&(e.networkMode==="always"||dd.isOnline())&&e.canRun(),v=()=>wO(e.networkMode)&&e.canRun(),b=A=>{var N;a||(a=!0,(N=e.onSuccess)==null||N.call(e,A),s==null||s(),o.resolve(A))},y=A=>{var N;a||(a=!0,(N=e.onError)==null||N.call(e,A),s==null||s(),o.reject(A))},_=()=>new Promise(A=>{var N;s=O=>{(a||p())&&A(O)},(N=e.onPause)==null||N.call(e)}).then(()=>{var A;s=void 0,a||(A=e.onContinue)==null||A.call(e)}),x=()=>{if(a)return;let A;const N=n===0?e.initialPromise:void 0;try{A=N??e.fn()}catch(O){A=Promise.reject(O)}Promise.resolve(A).then(b).catch(O=>{var w;if(a)return;const R=e.retry??(Ud?0:3),D=e.retryDelay??JD,U=typeof D=="function"?D(n,O):D,C=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,O);if(t||!C){y(O);return}n++,(w=e.onFail)==null||w.call(e,n,O),PD(U).then(()=>p()?void 0:_()).then(()=>{t?y(O):x()})})};return{promise:o,cancel:c,continue:()=>(s==null||s(),o),cancelRetry:h,continueRetry:d,canStart:v,start:()=>(v()?x():_().then(x),o)}}var WD=e=>setTimeout(e,0);function ej(){let e=[],t=0,n=h=>{h()},a=h=>{h()},s=WD;const o=h=>{t?e.push(h):s(()=>{n(h)})},c=()=>{const h=e;e=[],h.length&&s(()=>{a(()=>{h.forEach(d=>{n(d)})})})};return{batch:h=>{let d;t++;try{d=h()}finally{t--,t||c()}return d},batchCalls:h=>(...d)=>{o(()=>{h(...d)})},schedule:o,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{s=h}}}var gn=ej(),xs,Hx,CO=(Hx=class{constructor(){lt(this,xs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qD(this.gcTime)&&ze(this,xs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ud?1/0:5*60*1e3))}clearGcTimeout(){Z(this,xs)&&(clearTimeout(Z(this,xs)),ze(this,xs,void 0))}},xs=new WeakMap,Hx),Wl,eo,or,Os,dn,Wu,Ts,Ar,Na,Px,tj=(Px=class extends CO{constructor(t){super();lt(this,Ar);lt(this,Wl);lt(this,eo);lt(this,or);lt(this,Os);lt(this,dn);lt(this,Wu);lt(this,Ts);ze(this,Ts,!1),ze(this,Wu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Os,t.client),ze(this,or,Z(this,Os).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Wl,rj(this.options)),this.state=t.state??Z(this,Wl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Z(this,dn))==null?void 0:t.promise}setOptions(t){this.options={...Z(this,Wu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,or).remove(this)}setData(t,n){const a=GD(this.state.data,t,this.options);return cn(this,Ar,Na).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(t,n){cn(this,Ar,Na).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var a,s;const n=(a=Z(this,dn))==null?void 0:a.promise;return(s=Z(this,dn))==null||s.cancel(t),n?n.then(wr).catch(wr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Z(this,Wl))}isActive(){return this.observers.some(t=>HD(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!VD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,dn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,dn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,or).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Z(this,dn)&&(Z(this,Ts)?Z(this,dn).cancel({revert:!0}):Z(this,dn).cancelRetry()),this.scheduleGc()),Z(this,or).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||cn(this,Ar,Na).call(this,{type:"invalidate"})}fetch(t,n){var d,p,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Z(this,dn))return Z(this,dn).continueRetry(),Z(this,dn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(y=>y.options.queryFn);b&&this.setOptions(b.options)}const a=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(ze(this,Ts,!0),a.signal)})},o=()=>{const b=OO(this.options,n),y={client:Z(this,Os),queryKey:this.queryKey,meta:this.meta};return s(y),ze(this,Ts,!1),this.options.persister?this.options.persister(b,y,this):b(y)},c={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Z(this,Os),state:this.state,fetchFn:o};s(c),(d=this.options.behavior)==null||d.onFetch(c,this),ze(this,eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&cn(this,Ar,Na).call(this,{type:"fetch",meta:(v=c.fetchOptions)==null?void 0:v.meta});const h=b=>{var y,_,x,A;xm(b)&&b.silent||cn(this,Ar,Na).call(this,{type:"error",error:b}),xm(b)||((_=(y=Z(this,or).config).onError)==null||_.call(y,b,this),(A=(x=Z(this,or).config).onSettled)==null||A.call(x,this.state.data,b,this)),this.scheduleGc()};return ze(this,dn,NO({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:b=>{var y,_,x,A;if(b===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(N){h(N);return}(_=(y=Z(this,or).config).onSuccess)==null||_.call(y,b,this),(A=(x=Z(this,or).config).onSettled)==null||A.call(x,b,this.state.error,this),this.scheduleGc()},onError:h,onFail:(b,y)=>{cn(this,Ar,Na).call(this,{type:"failed",failureCount:b,error:y})},onPause:()=>{cn(this,Ar,Na).call(this,{type:"pause"})},onContinue:()=>{cn(this,Ar,Na).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),Z(this,dn).start()}},Wl=new WeakMap,eo=new WeakMap,or=new WeakMap,Os=new WeakMap,dn=new WeakMap,Wu=new WeakMap,Ts=new WeakMap,Ar=new WeakSet,Na=function(t){const n=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...nj(a.data,this.options),fetchMeta:t.meta??null};case"success":return{...a,data:t.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return xm(s)&&s.revert&&Z(this,eo)?{...Z(this,eo),fetchStatus:"idle"}:{...a,error:s,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),Z(this,or).notify({query:this,type:"updated",action:t})})},Px);function nj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wO(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rj(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Yr,Gx,aj=(Gx=class extends Md{constructor(t={}){super();lt(this,Yr);this.config=t,ze(this,Yr,new Map)}build(t,n,a){const s=n.queryKey,o=n.queryHash??my(s,n);let c=this.get(o);return c||(c=new tj({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:a,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){Z(this,Yr).has(t.queryHash)||(Z(this,Yr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Z(this,Yr).get(t.queryHash);n&&(t.destroy(),n===t&&Z(this,Yr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){gn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Z(this,Yr).get(t)}getAll(){return[...Z(this,Yr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(a=>CE(n,a))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(a=>CE(t,a)):n}notify(t){gn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){gn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){gn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yr=new WeakMap,Gx),Kr,vn,ws,Qr,Si,Yx,ij=(Yx=class extends CO{constructor(t){super();lt(this,Qr);lt(this,Kr);lt(this,vn);lt(this,ws);this.mutationId=t.mutationId,ze(this,vn,t.mutationCache),ze(this,Kr,[]),this.state=t.state||sj(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Z(this,Kr).includes(t)||(Z(this,Kr).push(t),this.clearGcTimeout(),Z(this,vn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Kr,Z(this,Kr).filter(n=>n!==t)),this.scheduleGc(),Z(this,vn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Z(this,Kr).length||(this.state.status==="pending"?this.scheduleGc():Z(this,vn).remove(this))}continue(){var t;return((t=Z(this,ws))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,c,h,d,p,v,b,y,_,x,A,N,O,R,D,U,C,w,q,re;const n=()=>{cn(this,Qr,Si).call(this,{type:"continue"})};ze(this,ws,NO({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(Q,he)=>{cn(this,Qr,Si).call(this,{type:"failed",failureCount:Q,error:he})},onPause:()=>{cn(this,Qr,Si).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,vn).canRun(this)}));const a=this.state.status==="pending",s=!Z(this,ws).canStart();try{if(a)n();else{cn(this,Qr,Si).call(this,{type:"pending",variables:t,isPaused:s}),await((c=(o=Z(this,vn).config).onMutate)==null?void 0:c.call(o,t,this));const he=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,t));he!==this.state.context&&cn(this,Qr,Si).call(this,{type:"pending",context:he,variables:t,isPaused:s})}const Q=await Z(this,ws).start();return await((v=(p=Z(this,vn).config).onSuccess)==null?void 0:v.call(p,Q,t,this.state.context,this)),await((y=(b=this.options).onSuccess)==null?void 0:y.call(b,Q,t,this.state.context)),await((x=(_=Z(this,vn).config).onSettled)==null?void 0:x.call(_,Q,null,this.state.variables,this.state.context,this)),await((N=(A=this.options).onSettled)==null?void 0:N.call(A,Q,null,t,this.state.context)),cn(this,Qr,Si).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((R=(O=Z(this,vn).config).onError)==null?void 0:R.call(O,Q,t,this.state.context,this)),await((U=(D=this.options).onError)==null?void 0:U.call(D,Q,t,this.state.context)),await((w=(C=Z(this,vn).config).onSettled)==null?void 0:w.call(C,void 0,Q,this.state.variables,this.state.context,this)),await((re=(q=this.options).onSettled)==null?void 0:re.call(q,void 0,Q,t,this.state.context)),Q}finally{cn(this,Qr,Si).call(this,{type:"error",error:Q})}}finally{Z(this,vn).runNext(this)}}},Kr=new WeakMap,vn=new WeakMap,ws=new WeakMap,Qr=new WeakSet,Si=function(t){const n=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),gn.batch(()=>{Z(this,Kr).forEach(a=>{a.onMutationUpdate(t)}),Z(this,vn).notify({mutation:this,type:"updated",action:t})})},Yx);function sj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ra,Nr,ec,Kx,lj=(Kx=class extends Md{constructor(t={}){super();lt(this,Ra);lt(this,Nr);lt(this,ec);this.config=t,ze(this,Ra,new Set),ze(this,Nr,new Map),ze(this,ec,0)}build(t,n,a){const s=new ij({mutationCache:this,mutationId:++jf(this,ec)._,options:t.defaultMutationOptions(n),state:a});return this.add(s),s}add(t){Z(this,Ra).add(t);const n=Uf(t);if(typeof n=="string"){const a=Z(this,Nr).get(n);a?a.push(t):Z(this,Nr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Z(this,Ra).delete(t)){const n=Uf(t);if(typeof n=="string"){const a=Z(this,Nr).get(n);if(a)if(a.length>1){const s=a.indexOf(t);s!==-1&&a.splice(s,1)}else a[0]===t&&Z(this,Nr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Uf(t);if(typeof n=="string"){const a=Z(this,Nr).get(n),s=a==null?void 0:a.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var a;const n=Uf(t);if(typeof n=="string"){const s=(a=Z(this,Nr).get(n))==null?void 0:a.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){gn.batch(()=>{Z(this,Ra).forEach(t=>{this.notify({type:"removed",mutation:t})}),Z(this,Ra).clear(),Z(this,Nr).clear()})}getAll(){return Array.from(Z(this,Ra))}find(t){const n={exact:!0,...t};return this.getAll().find(a=>RE(n,a))}findAll(t={}){return this.getAll().filter(n=>RE(t,n))}notify(t){gn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return gn.batch(()=>Promise.all(t.map(n=>n.continue().catch(wr))))}},Ra=new WeakMap,Nr=new WeakMap,ec=new WeakMap,Kx);function Uf(e){var t;return(t=e.options.scope)==null?void 0:t.id}function kE(e){return{onFetch:(t,n)=>{var v,b,y,_,x;const a=t.options,s=(y=(b=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:y.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],c=((x=t.state.data)==null?void 0:x.pageParams)||[];let h={pages:[],pageParams:[]},d=0;const p=async()=>{let A=!1;const N=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(t.signal.aborted?A=!0:t.signal.addEventListener("abort",()=>{A=!0}),t.signal)})},O=OO(t.options,t.fetchOptions),R=async(D,U,C)=>{if(A)return Promise.reject();if(U==null&&D.pages.length)return Promise.resolve(D);const w={client:t.client,queryKey:t.queryKey,pageParam:U,direction:C?"backward":"forward",meta:t.options.meta};N(w);const q=await O(w),{maxPages:re}=t.options,Q=C?KD:YD;return{pages:Q(D.pages,q,re),pageParams:Q(D.pageParams,U,re)}};if(s&&o.length){const D=s==="backward",U=D?oj:ME,C={pages:o,pageParams:c},w=U(a,C);h=await R(C,w,D)}else{const D=e??o.length;do{const U=d===0?c[0]??a.initialPageParam:ME(a,h);if(d>0&&U==null)break;h=await R(h,U),d++}while(d<D)}return h};t.options.persister?t.fetchFn=()=>{var A,N;return(N=(A=t.options).persister)==null?void 0:N.call(A,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function ME(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function oj(e,{pages:t,pageParams:n}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,n[0],n):void 0}var $t,wi,Ai,to,no,Ni,ro,ao,Qx,uj=(Qx=class{constructor(e={}){lt(this,$t);lt(this,wi);lt(this,Ai);lt(this,to);lt(this,no);lt(this,Ni);lt(this,ro);lt(this,ao);ze(this,$t,e.queryCache||new aj),ze(this,wi,e.mutationCache||new lj),ze(this,Ai,e.defaultOptions||{}),ze(this,to,new Map),ze(this,no,new Map),ze(this,Ni,0)}mount(){jf(this,Ni)._++,Z(this,Ni)===1&&(ze(this,ro,TO.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,$t).onFocus())})),ze(this,ao,dd.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,$t).onOnline())})))}unmount(){var e,t;jf(this,Ni)._--,Z(this,Ni)===0&&((e=Z(this,ro))==null||e.call(this),ze(this,ro,void 0),(t=Z(this,ao))==null||t.call(this),ze(this,ao,void 0))}isFetching(e){return Z(this,$t).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Z(this,wi).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,$t).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Z(this,$t).build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(NE(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return Z(this,$t).findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),s=Z(this,$t).get(a.queryHash),o=s==null?void 0:s.state.data,c=zD(t,o);if(c!==void 0)return Z(this,$t).build(this,a).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return gn.batch(()=>Z(this,$t).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,$t).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Z(this,$t);gn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Z(this,$t);return gn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=gn.batch(()=>Z(this,$t).findAll(e).map(s=>s.cancel(n)));return Promise.all(a).then(wr).catch(wr)}invalidateQueries(e,t={}){return gn.batch(()=>(Z(this,$t).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=gn.batch(()=>Z(this,$t).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(wr)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(wr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Z(this,$t).build(this,t);return n.isStaleByTime(NE(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wr).catch(wr)}fetchInfiniteQuery(e){return e.behavior=kE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wr).catch(wr)}ensureInfiniteQueryData(e){return e.behavior=kE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dd.isOnline()?Z(this,wi).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,$t)}getMutationCache(){return Z(this,wi)}getDefaultOptions(){return Z(this,Ai)}setDefaultOptions(e){ze(this,Ai,e)}setQueryDefaults(e,t){Z(this,to).set(Iu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Z(this,to).values()],n={};return t.forEach(a=>{zu(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){Z(this,no).set(Iu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Z(this,no).values()],n={};return t.forEach(a=>{zu(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Z(this,Ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=my(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Z(this,Ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Z(this,$t).clear(),Z(this,wi).clear()}},$t=new WeakMap,wi=new WeakMap,Ai=new WeakMap,to=new WeakMap,no=new WeakMap,Ni=new WeakMap,ro=new WeakMap,ao=new WeakMap,Qx),cj=S.createContext(void 0),fj=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(cj.Provider,{value:e,children:t}));function rt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var dj={};function $d(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:dj}var RO=Object.assign,hd=Object.getOwnPropertyDescriptor,Wr=Object.defineProperty,Ld=Object.prototype,uv=[];Object.freeze(uv);var DO={};Object.freeze(DO);var hj=typeof Proxy<"u",pj=Object.toString();function jO(){hj||rt("Proxy not available")}function kO(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var ql=function(){};function jr(e){return typeof e=="function"}function Ds(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Bd(e){return e!==null&&typeof e=="object"}function Fa(e){if(!Bd(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===pj}function MO(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function ac(e,t,n){Wr(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function UO(e,t,n){Wr(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Is(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(a){return Bd(a)&&a[n]===!0}}function po(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function mj(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),a=Object.getPrototypeOf(n);return a===null}function Da(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var $O=typeof Object.getOwnPropertySymbols<"u";function vj(e){var t=Object.keys(e);if(!$O)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(a){return Ld.propertyIsEnumerable.call(e,a)})):t}var io=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:$O?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function LO(e){return e===null?null:typeof e=="object"?""+e:e}function $a(e,t){return Ld.hasOwnProperty.call(e,t)}var yj=Object.getOwnPropertyDescriptors||function(t){var n={};return io(t).forEach(function(a){n[a]=hd(t,a)}),n};function qn(e,t){return!!(e&t)}function Vn(e,t,n){return n?e|=t:e&=~t,e}function UE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function gj(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Sj(a.key),a)}}function mo(e,t,n){return t&&gj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Ej(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
71
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},js.apply(null,arguments)}function BO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cv(e,t)}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},cv(e,t)}function bj(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Sj(e){var t=bj(e,"string");return typeof t=="symbol"?t:t+""}function Ej(e,t){if(e){if(typeof e=="string")return UE(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UE(e,t):void 0}}var Zr=Symbol("mobx-stored-annotations");function ea(e){function t(n,a){if(sc(a))return e.decorate_20223_(n,a);ic(n,a,e)}return Object.assign(t,e)}function ic(e,t,n){$a(e,Zr)||ac(e,Zr,js({},e[Zr])),Nj(n)||(e[Zr][t]=n)}function _j(e){return $a(e,Zr)||ac(e,Zr,js({},e[Zr])),e[Zr]}function sc(e){return typeof e=="object"&&typeof e.kind=="string"}var Fe=Symbol("mobx administration"),Ii=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ot.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(a){return a()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(a){return a()})},t.reportObserved=function(){return eT(this)},t.reportChanged=function(){hr(),tT(this),pr()},t.toString=function(){return this.name_},mo(e,[{key:"isBeingObserved",get:function(){return qn(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return qn(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return qn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Vn(this.flags_,e.diffValueMask_,a===1)}}])}();Ii.isBeingObservedMask_=1;Ii.isPendingUnobservationMask_=2;Ii.diffValueMask_=4;var yy=Is("Atom",Ii);function FO(e,t,n){t===void 0&&(t=ql),n===void 0&&(n=ql);var a=new Ii(e);return t!==ql&&jk(a,t),n!==ql&&sT(a,n),a}function xj(e,t){return bT(e,t)}function Oj(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var pd={structural:xj,default:Oj};function ks(e,t,n){return fT(e)?e:Array.isArray(e)?an.array(e,{name:n}):Fa(e)?an.object(e,void 0,{name:n}):po(e)?an.map(e,{name:n}):Da(e)?an.set(e,{name:n}):typeof e=="function"&&!Vu(e)&&!Hu(e)?MO(e)?so(e):qu(n,e):e}function Tj(e,t,n){if(e==null||Hd(e)||Vd(e)||qs(e)||Xr(e))return e;if(Array.isArray(e))return an.array(e,{name:n,deep:!1});if(Fa(e))return an.object(e,void 0,{name:n,deep:!1});if(po(e))return an.map(e,{name:n,deep:!1});if(Da(e))return an.set(e,{name:n,deep:!1})}function Fd(e){return e}function wj(e,t){return bT(e,t)?t:e}var Aj="override";function Nj(e){return e.annotationType_===Aj}function lc(e,t){return{annotationType_:e,options_:t,make_:Cj,extend_:Rj,decorate_20223_:Dj}}function Cj(e,t,n,a){var s;if((s=this.options_)!=null&&s.bound)return this.extend_(e,t,n,!1)===null?0:1;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(Vu(n.value))return 1;var o=IO(e,this,t,n,!1);return Wr(a,t,o),2}function Rj(e,t,n,a){var s=IO(e,this,t,n);return e.defineProperty_(t,s,a)}function Dj(e,t){var n=t.kind,a=t.name,s=t.addInitializer,o=this,c=function(p){var v,b,y,_;return Ms((v=(b=o.options_)==null?void 0:b.name)!=null?v:a.toString(),p,(y=(_=o.options_)==null?void 0:_.autoAction)!=null?y:!1)};if(n=="field")return function(d){var p,v=d;return Vu(v)||(v=c(v)),(p=o.options_)!=null&&p.bound&&(v=v.bind(this),v.isMobxAction=!0),v};if(n=="method"){var h;return Vu(e)||(e=c(e)),(h=this.options_)!=null&&h.bound&&s(function(){var d=this,p=d[a].bind(d);p.isMobxAction=!0,d[a]=p}),e}rt("Cannot apply '"+o.annotationType_+"' to '"+String(a)+"' (kind: "+n+"):"+(`
|
|
72
|
+
'`+o.annotationType_+"' can only be used on properties with a function value."))}function jj(e,t,n,a){t.annotationType_,a.value}function IO(e,t,n,a,s){var o,c,h,d,p,v,b;s===void 0&&(s=de.safeDescriptors),jj(e,t,n,a);var y=a.value;if((o=t.options_)!=null&&o.bound){var _;y=y.bind((_=e.proxy_)!=null?_:e.target_)}return{value:Ms((c=(h=t.options_)==null?void 0:h.name)!=null?c:n.toString(),y,(d=(p=t.options_)==null?void 0:p.autoAction)!=null?d:!1,(v=t.options_)!=null&&v.bound?(b=e.proxy_)!=null?b:e.target_:void 0),configurable:s?e.isPlainObject_:!0,enumerable:!1,writable:!s}}function zO(e,t){return{annotationType_:e,options_:t,make_:kj,extend_:Mj,decorate_20223_:Uj}}function kj(e,t,n,a){var s;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((s=this.options_)!=null&&s.bound&&(!$a(e.target_,t)||!Hu(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Hu(n.value))return 1;var o=qO(e,this,t,n,!1,!1);return Wr(a,t,o),2}function Mj(e,t,n,a){var s,o=qO(e,this,t,n,(s=this.options_)==null?void 0:s.bound);return e.defineProperty_(t,o,a)}function Uj(e,t){var n,a=t.name,s=t.addInitializer;return Hu(e)||(e=so(e)),(n=this.options_)!=null&&n.bound&&s(function(){var o=this,c=o[a].bind(o);c.isMobXFlow=!0,o[a]=c}),e}function $j(e,t,n,a){t.annotationType_,a.value}function qO(e,t,n,a,s,o){o===void 0&&(o=de.safeDescriptors),$j(e,t,n,a);var c=a.value;if(Hu(c)||(c=so(c)),s){var h;c=c.bind((h=e.proxy_)!=null?h:e.target_),c.isMobXFlow=!0}return{value:c,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function gy(e,t){return{annotationType_:e,options_:t,make_:Lj,extend_:Bj,decorate_20223_:Fj}}function Lj(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Bj(e,t,n,a){return Ij(e,this,t,n),e.defineComputedProperty_(t,js({},this.options_,{get:n.get,set:n.set}),a)}function Fj(e,t){var n=this,a=t.name,s=t.addInitializer;return s(function(){var o=Vs(this)[Fe],c=js({},n.options_,{get:e,context:this});c.name||(c.name="ObservableObject."+a.toString()),o.values_.set(a,new kr(c))}),function(){return this[Fe].getObservablePropValue_(a)}}function Ij(e,t,n,a){t.annotationType_,a.get}function Id(e,t){return{annotationType_:e,options_:t,make_:zj,extend_:qj,decorate_20223_:Vj}}function zj(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function qj(e,t,n,a){var s,o;return Hj(e,this),e.defineObservableProperty_(t,n.value,(s=(o=this.options_)==null?void 0:o.enhancer)!=null?s:ks,a)}function Vj(e,t){var n=this,a=t.kind,s=t.name,o=new WeakSet;function c(h,d){var p,v,b=Vs(h)[Fe],y=new As(d,(p=(v=n.options_)==null?void 0:v.enhancer)!=null?p:ks,"ObservableObject."+s.toString(),!1);b.values_.set(s,y),o.add(h)}if(a=="accessor")return{get:function(){return o.has(this)||c(this,e.get.call(this)),this[Fe].getObservablePropValue_(s)},set:function(d){return o.has(this)||c(this,d),this[Fe].setObservablePropValue_(s,d)},init:function(d){return o.has(this)||c(this,d),d}}}function Hj(e,t,n,a){t.annotationType_}var Pj="true",Gj=VO();function VO(e){return{annotationType_:Pj,options_:e,make_:Yj,extend_:Kj,decorate_20223_:Qj}}function Yj(e,t,n,a){var s,o;if(n.get)return zd.make_(e,t,n,a);if(n.set){var c=Ms(t.toString(),n.set);return a===e.target_?e.defineProperty_(t,{configurable:de.safeDescriptors?e.isPlainObject_:!0,set:c})===null?0:2:(Wr(a,t,{configurable:!0,set:c}),2)}if(a!==e.target_&&typeof n.value=="function"){var h;if(MO(n.value)){var d,p=(d=this.options_)!=null&&d.autoBind?so.bound:so;return p.make_(e,t,n,a)}var v=(h=this.options_)!=null&&h.autoBind?qu.bound:qu;return v.make_(e,t,n,a)}var b=((s=this.options_)==null?void 0:s.deep)===!1?an.ref:an;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var y;n.value=n.value.bind((y=e.proxy_)!=null?y:e.target_)}return b.make_(e,t,n,a)}function Kj(e,t,n,a){var s,o;if(n.get)return zd.extend_(e,t,n,a);if(n.set)return e.defineProperty_(t,{configurable:de.safeDescriptors?e.isPlainObject_:!0,set:Ms(t.toString(),n.set)},a);if(typeof n.value=="function"&&(s=this.options_)!=null&&s.autoBind){var c;n.value=n.value.bind((c=e.proxy_)!=null?c:e.target_)}var h=((o=this.options_)==null?void 0:o.deep)===!1?an.ref:an;return h.extend_(e,t,n,a)}function Qj(e,t){rt("'"+this.annotationType_+"' cannot be used as a decorator")}var Xj="observable",Zj="observable.ref",Jj="observable.shallow",Wj="observable.struct",HO={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(HO);function $f(e){return e||HO}var fv=Id(Xj),ek=Id(Zj,{enhancer:Fd}),tk=Id(Jj,{enhancer:Tj}),nk=Id(Wj,{enhancer:wj}),PO=ea(fv);function Lf(e){return e.deep===!0?ks:e.deep===!1?Fd:ak(e.defaultDecorator)}function rk(e){var t;return e?(t=e.defaultDecorator)!=null?t:VO(e):void 0}function ak(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:ks}function GO(e,t,n){if(sc(t))return fv.decorate_20223_(e,t);if(Ds(t)){ic(e,t,fv);return}return fT(e)?e:Fa(e)?an.object(e,t,n):Array.isArray(e)?an.array(e,t):po(e)?an.map(e,t):Da(e)?an.set(e,t):typeof e=="object"&&e!==null?e:an.box(e,t)}RO(GO,PO);var ik={box:function(t,n){var a=$f(n);return new As(t,Lf(a),a.name,!0,a.equals)},array:function(t,n){var a=$f(n);return(de.useProxies===!1||a.proxy===!1?r2:Yk)(t,Lf(a),a.name)},map:function(t,n){var a=$f(n);return new hT(t,Lf(a),a.name)},set:function(t,n){var a=$f(n);return new pT(t,Lf(a),a.name)},object:function(t,n,a){return zi(function(){return oT(de.useProxies===!1||(a==null?void 0:a.proxy)===!1?Vs({},a):qk({},a),t,n)})},ref:ea(ek),shallow:ea(tk),deep:PO,struct:ea(nk)},an=RO(GO,ik),YO="computed",sk="computed.struct",dv=gy(YO),lk=gy(sk,{equals:pd.structural}),zd=function(t,n){if(sc(n))return dv.decorate_20223_(t,n);if(Ds(n))return ic(t,n,dv);if(Fa(t))return ea(gy(YO,t));var a=Fa(n)?n:{};return a.get=t,a.name||(a.name=t.name||""),new kr(a)};Object.assign(zd,dv);zd.struct=ea(lk);var $E,LE,md=0,ok=1,uk=($E=(LE=hd(function(){},"name"))==null?void 0:LE.configurable)!=null?$E:!1,BE={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ms(e,t,n,a){n===void 0&&(n=!1);function s(){return ck(e,n,t,a||this,arguments)}return s.isMobxAction=!0,s.toString=function(){return t.toString()},uk&&(BE.value=e,Wr(s,"name",BE)),s}function ck(e,t,n,a,s){var o=fk(e,t);try{return n.apply(a,s)}catch(c){throw o.error_=c,c}finally{dk(o)}}function fk(e,t,n,a){var s=!1,o=0,c=de.trackingDerivation,h=!t||!c;hr();var d=de.allowStateChanges;h&&(zs(),d=by(!0));var p=Ey(!0),v={runAsAction_:h,prevDerivation_:c,prevAllowStateChanges_:d,prevAllowStateReads_:p,notifySpy_:s,startTime_:o,actionId_:ok++,parentActionId_:md};return md=v.actionId_,v}function dk(e){md!==e.actionId_&&rt(30),md=e.parentActionId_,e.error_!==void 0&&(de.suppressReactionErrors=!0),Sy(e.prevAllowStateChanges_),Du(e.prevAllowStateReads_),pr(),e.runAsAction_&&La(e.prevDerivation_),de.suppressReactionErrors=!1}function by(e){var t=de.allowStateChanges;return de.allowStateChanges=e,t}function Sy(e){de.allowStateChanges=e}var As=function(e){function t(a,s,o,c,h){var d;return o===void 0&&(o="ObservableValue"),h===void 0&&(h=pd.default),d=e.call(this,o)||this,d.enhancer=void 0,d.name_=void 0,d.equals=void 0,d.hasUnreportedChange_=!1,d.interceptors_=void 0,d.changeListeners_=void 0,d.value_=void 0,d.dehancer=void 0,d.enhancer=s,d.name_=o,d.equals=h,d.value_=s(a,void 0,o),d}BO(t,e);var n=t.prototype;return n.dehanceValue=function(s){return this.dehancer!==void 0?this.dehancer(s):s},n.set=function(s){this.value_,s=this.prepareNewValue_(s),s!==de.UNCHANGED&&this.setNewValue_(s)},n.prepareNewValue_=function(s){if(cr(this)){var o=fr(this,{object:this,type:ta,newValue:s});if(!o)return de.UNCHANGED;s=o.newValue}return s=this.enhancer(s,this.value_,this.name_),this.equals(this.value_,s)?de.UNCHANGED:s},n.setNewValue_=function(s){var o=this.value_;this.value_=s,this.reportChanged(),Rr(this)&&Dr(this,{type:ta,object:this,newValue:s,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(s){return oc(this,s)},n.observe_=function(s,o){return o&&s({observableKind:"value",debugObjectName:this.name_,object:this,type:ta,newValue:this.value_,oldValue:void 0}),uc(this,s)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return LO(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Ii),kr=function(){function e(n){this.dependenciesState_=ot.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ot.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new yd(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=vd.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||rt(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Ms("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?pd.structural:pd.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){yk(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(a){return a()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(a){return a()})},t.get=function(){if(this.isComputing&&rt(32,this.name_,this.derivation),de.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)hv(this)&&(this.warnAboutUntrackedRead_(),hr(),this.value_=this.computeValue_(!1),pr());else if(eT(this),hv(this)){var a=de.trackingContext;this.keepAlive_&&!a&&(de.trackingContext=this),this.trackAndCompute()&&vk(this),de.trackingContext=a}var s=this.value_;if(Jf(s))throw s.cause;return s},t.set=function(a){if(this.setter_){this.isRunningSetter&&rt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,a)}finally{this.isRunningSetter=!1}}else rt(34,this.name_)},t.trackAndCompute=function(){var a=this.value_,s=this.dependenciesState_===ot.NOT_TRACKING_,o=this.computeValue_(!0),c=s||Jf(a)||Jf(o)||!this.equals_(a,o);return c&&(this.value_=o),c},t.computeValue_=function(a){this.isComputing=!0;var s=by(!1),o;if(a)o=KO(this,this.derivation,this.scope_);else if(de.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(c){o=new yd(c)}return Sy(s),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(pv(this),this.value_=void 0)},t.observe_=function(a,s){var o=this,c=!0,h=void 0;return Ak(function(){var d=o.get();if(!c||s){var p=zs();a({observableKind:"computed",debugObjectName:o.name_,type:ta,object:o,newValue:d,oldValue:h}),La(p)}c=!1,h=d})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return LO(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},mo(e,[{key:"isComputing",get:function(){return qn(this.flags_,e.isComputingMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isComputingMask_,a)}},{key:"isRunningSetter",get:function(){return qn(this.flags_,e.isRunningSetterMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isRunningSetterMask_,a)}},{key:"isBeingObserved",get:function(){return qn(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return qn(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return qn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Vn(this.flags_,e.diffValueMask_,a===1)}}])}();kr.isComputingMask_=1;kr.isRunningSetterMask_=2;kr.isBeingObservedMask_=4;kr.isPendingUnobservationMask_=8;kr.diffValueMask_=16;var qd=Is("ComputedValue",kr),ot;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ot||(ot={}));var vd;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(vd||(vd={}));var yd=function(t){this.cause=void 0,this.cause=t};function Jf(e){return e instanceof yd}function hv(e){switch(e.dependenciesState_){case ot.UP_TO_DATE_:return!1;case ot.NOT_TRACKING_:case ot.STALE_:return!0;case ot.POSSIBLY_STALE_:{for(var t=Ey(!0),n=zs(),a=e.observing_,s=a.length,o=0;o<s;o++){var c=a[o];if(qd(c)){if(de.disableErrorBoundaries)c.get();else try{c.get()}catch{return La(n),Du(t),!0}if(e.dependenciesState_===ot.STALE_)return La(n),Du(t),!0}}return XO(e),La(n),Du(t),!1}}}function KO(e,t,n){var a=Ey(!0);XO(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++de.runId;var s=de.trackingDerivation;de.trackingDerivation=e,de.inBatch++;var o;if(de.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(c){o=new yd(c)}return de.inBatch--,de.trackingDerivation=s,hk(e),Du(a),o}function hk(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,a=ot.UP_TO_DATE_,s=0,o=e.unboundDepsCount_,c=0;c<o;c++){var h=n[c];h.diffValue===0&&(h.diffValue=1,s!==c&&(n[s]=h),s++),h.dependenciesState_>a&&(a=h.dependenciesState_)}for(n.length=s,e.newObserving_=null,o=t.length;o--;){var d=t[o];d.diffValue===0&&JO(d,e),d.diffValue=0}for(;s--;){var p=n[s];p.diffValue===1&&(p.diffValue=0,mk(p,e))}a!==ot.UP_TO_DATE_&&(e.dependenciesState_=a,e.onBecomeStale_())}function pv(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)JO(t[n],e);e.dependenciesState_=ot.NOT_TRACKING_}function QO(e){var t=zs();try{return e()}finally{La(t)}}function zs(){var e=de.trackingDerivation;return de.trackingDerivation=null,e}function La(e){de.trackingDerivation=e}function Ey(e){var t=de.allowStateReads;return de.allowStateReads=e,t}function Du(e){de.allowStateReads=e}function XO(e){if(e.dependenciesState_!==ot.UP_TO_DATE_){e.dependenciesState_=ot.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ot.UP_TO_DATE_}}var Wf=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ed=!0,ZO=!1,de=function(){var e=$d();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ed=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Wf().version&&(ed=!1),ed?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Wf):(setTimeout(function(){ZO||rt(35)},1),new Wf)}();function pk(){if((de.pendingReactions.length||de.inBatch||de.isRunningReactions)&&rt(36),ZO=!0,ed){var e=$d();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),de=new Wf}}function mk(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function JO(e,t){e.observers_.delete(t),e.observers_.size===0&&WO(e)}function WO(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,de.pendingUnobservations.push(e))}function hr(){de.inBatch++}function pr(){if(--de.inBatch===0){nT();for(var e=de.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof kr&&n.suspend_())}de.pendingUnobservations=[]}}function eT(e){var t=de.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&de.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&de.inBatch>0&&WO(e),!1)}function tT(e){e.lowestObserverState_!==ot.STALE_&&(e.lowestObserverState_=ot.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ot.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ot.STALE_}))}function vk(e){e.lowestObserverState_!==ot.STALE_&&(e.lowestObserverState_=ot.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ot.POSSIBLY_STALE_?t.dependenciesState_=ot.STALE_:t.dependenciesState_===ot.UP_TO_DATE_&&(e.lowestObserverState_=ot.UP_TO_DATE_)}))}function yk(e){e.lowestObserverState_===ot.UP_TO_DATE_&&(e.lowestObserverState_=ot.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ot.UP_TO_DATE_&&(t.dependenciesState_=ot.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Ia=function(){function e(n,a,s,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ot.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=vd.NONE,this.name_=n,this.onInvalidate_=a,this.errorHandler_=s,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,de.pendingReactions.push(this),nT())},t.runReaction_=function(){if(!this.isDisposed){hr(),this.isScheduled=!1;var a=de.trackingContext;if(de.trackingContext=this,hv(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(s){this.reportExceptionInDerivation_(s)}}de.trackingContext=a,pr()}},t.track=function(a){if(!this.isDisposed){hr(),this.isRunning=!0;var s=de.trackingContext;de.trackingContext=this;var o=KO(this,a,void 0);de.trackingContext=s,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&pv(this),Jf(o)&&this.reportExceptionInDerivation_(o.cause),pr()}},t.reportExceptionInDerivation_=function(a){var s=this;if(this.errorHandler_){this.errorHandler_(a,this);return}if(de.disableErrorBoundaries)throw a;var o="[mobx] uncaught error in '"+this+"'";de.suppressReactionErrors||console.error(o,a),de.globalReactionErrorHandlers.forEach(function(c){return c(a,s)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(hr(),pv(this),pr()))},t.getDisposer_=function(a){var s=this,o=function c(){s.dispose(),a==null||a.removeEventListener==null||a.removeEventListener("abort",c)};return a==null||a.addEventListener==null||a.addEventListener("abort",o),o[Fe]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(a){},mo(e,[{key:"isDisposed",get:function(){return qn(this.flags_,e.isDisposedMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isDisposedMask_,a)}},{key:"isScheduled",get:function(){return qn(this.flags_,e.isScheduledMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isScheduledMask_,a)}},{key:"isTrackPending",get:function(){return qn(this.flags_,e.isTrackPendingMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isTrackPendingMask_,a)}},{key:"isRunning",get:function(){return qn(this.flags_,e.isRunningMask_)},set:function(a){this.flags_=Vn(this.flags_,e.isRunningMask_,a)}},{key:"diffValue",get:function(){return qn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Vn(this.flags_,e.diffValueMask_,a===1)}}])}();Ia.isDisposedMask_=1;Ia.isScheduledMask_=2;Ia.isTrackPendingMask_=4;Ia.isRunningMask_=8;Ia.diffValueMask_=16;var gk=100,mv=function(t){return t()};function nT(){de.inBatch>0||de.isRunningReactions||mv(bk)}function bk(){de.isRunningReactions=!0;for(var e=de.pendingReactions,t=0;e.length>0;){++t===gk&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),a=0,s=n.length;a<s;a++)n[a].runReaction_()}de.isRunningReactions=!1}var gd=Is("Reaction",Ia);function Sk(e){var t=mv;mv=function(a){return e(function(){return t(a)})}}function ju(){return!1}function Ek(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var rT="action",_k="action.bound",aT="autoAction",xk="autoAction.bound",Ok="<unnamed action>",vv=lc(rT),Tk=lc(_k,{bound:!0}),yv=lc(aT,{autoAction:!0}),wk=lc(xk,{autoAction:!0,bound:!0});function iT(e){var t=function(a,s){if(jr(a))return Ms(a.name||Ok,a,e);if(jr(s))return Ms(a,s,e);if(sc(s))return(e?yv:vv).decorate_20223_(a,s);if(Ds(s))return ic(a,s,e?yv:vv);if(Ds(a))return ea(lc(e?aT:rT,{name:a,autoAction:e}))};return t}var Hl=iT(!1);Object.assign(Hl,vv);var qu=iT(!0);Object.assign(qu,yv);Hl.bound=ea(Tk);qu.bound=ea(wk);function Vu(e){return jr(e)&&e.isMobxAction===!0}function Ak(e,t){var n,a,s,o;t===void 0&&(t=DO);var c=(n=(a=t)==null?void 0:a.name)!=null?n:"Autorun",h=!t.scheduler&&!t.delay,d;if(h)d=new Ia(c,function(){this.track(b)},t.onError,t.requiresObservable);else{var p=Ck(t),v=!1;d=new Ia(c,function(){v||(v=!0,p(function(){v=!1,d.isDisposed||d.track(b)}))},t.onError,t.requiresObservable)}function b(){e(d)}return(s=t)!=null&&(s=s.signal)!=null&&s.aborted||d.schedule_(),d.getDisposer_((o=t)==null?void 0:o.signal)}var Nk=function(t){return t()};function Ck(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Nk}var Rk="onBO",Dk="onBUO";function jk(e,t,n){return lT(Rk,e,t,n)}function sT(e,t,n){return lT(Dk,e,t,n)}function lT(e,t,n,a){var s=Ed(t),o=jr(a)?a:n,c=e+"L";return s[c]?s[c].add(o):s[c]=new Set([o]),function(){var h=s[c];h&&(h.delete(o),h.size===0&&delete s[c])}}var kk="never",Bf="always",Mk="observed";function Uk(e){e.isolateGlobalState===!0&&pk();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(de.useProxies=t===Bf?!0:t===kk?!1:typeof Proxy<"u"),t==="ifavailable"&&(de.verifyProxies=!0),n!==void 0){var a=n===Bf?Bf:n===Mk;de.enforceActions=a,de.allowStateChanges=!(a===!0||a===Bf)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(s){s in e&&(de[s]=!!e[s])}),de.allowStateReads=!de.observableRequiresReaction,e.reactionScheduler&&Sk(e.reactionScheduler)}function oT(e,t,n,a){var s=yj(t);return zi(function(){var o=Vs(e,a)[Fe];io(s).forEach(function(c){o.extend_(c,s[c],n&&c in n?n[c]:!0)})}),e}function $k(e,t){return uT(Ed(e,t))}function uT(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Lk(e.observing_).map(uT)),t}function Lk(e){return Array.from(new Set(e))}var Bk=0;function cT(){this.message="FLOW_CANCELLED"}cT.prototype=Object.create(Error.prototype);var Om=zO("flow"),Fk=zO("flow.bound",{bound:!0}),so=Object.assign(function(t,n){if(sc(n))return Om.decorate_20223_(t,n);if(Ds(n))return ic(t,n,Om);var a=t,s=a.name||"<unnamed flow>",o=function(){var h=this,d=arguments,p=++Bk,v=Hl(s+" - runid: "+p+" - init",a).apply(h,d),b,y=void 0,_=new Promise(function(x,A){var N=0;b=A;function O(U){y=void 0;var C;try{C=Hl(s+" - runid: "+p+" - yield "+N++,v.next).call(v,U)}catch(w){return A(w)}D(C)}function R(U){y=void 0;var C;try{C=Hl(s+" - runid: "+p+" - yield "+N++,v.throw).call(v,U)}catch(w){return A(w)}D(C)}function D(U){if(jr(U==null?void 0:U.then)){U.then(D,A);return}return U.done?x(U.value):(y=Promise.resolve(U.value),y.then(O,R))}O(void 0)});return _.cancel=Hl(s+" - runid: "+p+" - cancel",function(){try{y&&FE(y);var x=v.return(void 0),A=Promise.resolve(x.value);A.then(ql,ql),FE(A),b(new cT)}catch(N){b(N)}}),_};return o.isMobXFlow=!0,o},Om);so.bound=ea(Fk);function FE(e){jr(e.cancel)&&e.cancel()}function Hu(e){return(e==null?void 0:e.isMobXFlow)===!0}function Ik(e,t){return e?Hd(e)||!!e[Fe]||yy(e)||gd(e)||qd(e):!1}function fT(e){return Ik(e)}function ja(e,t){t===void 0&&(t=void 0),hr();try{return e.apply(t)}finally{pr()}}function Ml(e){return e[Fe]}var zk={has:function(t,n){return Ml(t).has_(n)},get:function(t,n){return Ml(t).get_(n)},set:function(t,n,a){var s;return Ds(n)?(s=Ml(t).set_(n,a,!0))!=null?s:!0:!1},deleteProperty:function(t,n){var a;return Ds(n)?(a=Ml(t).delete_(n,!0))!=null?a:!0:!1},defineProperty:function(t,n,a){var s;return(s=Ml(t).defineProperty_(n,a))!=null?s:!0},ownKeys:function(t){return Ml(t).ownKeys_()},preventExtensions:function(t){rt(13)}};function qk(e,t){var n,a;return jO(),e=Vs(e,t),(a=(n=e[Fe]).proxy_)!=null?a:n.proxy_=new Proxy(e,zk)}function cr(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function oc(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),kO(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function fr(e,t){var n=zs();try{for(var a=[].concat(e.interceptors_||[]),s=0,o=a.length;s<o&&(t=a[s](t),t&&!t.type&&rt(14),!!t);s++);return t}finally{La(n)}}function Rr(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function uc(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),kO(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function Dr(e,t){var n=zs(),a=e.changeListeners_;if(a){a=a.slice();for(var s=0,o=a.length;s<o;s++)a[s](t);La(n)}}function Vk(e,t,n){return zi(function(){var a,s=Vs(e,n)[Fe];(a=t)!=null||(t=_j(e)),io(t).forEach(function(o){return s.make_(o,t[o])})}),e}var Tm=Symbol("mobx-keys");function Hk(e,t,n){return Fa(e)?oT(e,e,t,n):(zi(function(){var a=Vs(e,n)[Fe];if(!e[Tm]){var s=Object.getPrototypeOf(e),o=new Set([].concat(io(e),io(s)));o.delete("constructor"),o.delete(Fe),ac(s,Tm,o)}e[Tm].forEach(function(c){return a.make_(c,t&&c in t?t[c]:!0)})}),e)}var IE="splice",ta="update",Pk=1e4,Gk={get:function(t,n){var a=t[Fe];return n===Fe?a:n==="length"?a.getArrayLength_():typeof n=="string"&&!isNaN(n)?a.get_(parseInt(n)):$a(bd,n)?bd[n]:t[n]},set:function(t,n,a){var s=t[Fe];return n==="length"&&s.setArrayLength_(a),typeof n=="symbol"||isNaN(n)?t[n]=a:s.set_(parseInt(n),a),!0},preventExtensions:function(){rt(15)}},_y=function(){function e(n,a,s,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=s,this.legacyMode_=o,this.atom_=new Ii(n),this.enhancer_=function(c,h){return a(c,h,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.dehanceValues_=function(a){return this.dehancer!==void 0&&a.length>0?a.map(this.dehancer):a},t.intercept_=function(a){return oc(this,a)},t.observe_=function(a,s){return s===void 0&&(s=!1),s&&a({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),uc(this,a)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(a){(typeof a!="number"||isNaN(a)||a<0)&&rt("Out of range: "+a);var s=this.values_.length;if(a!==s)if(a>s){for(var o=new Array(a-s),c=0;c<a-s;c++)o[c]=void 0;this.spliceWithArray_(s,0,o)}else this.spliceWithArray_(a,s-a)},t.updateArrayLength_=function(a,s){a!==this.lastKnownLength_&&rt(16),this.lastKnownLength_+=s,this.legacyMode_&&s>0&&gT(a+s+1)},t.spliceWithArray_=function(a,s,o){var c=this;this.atom_;var h=this.values_.length;if(a===void 0?a=0:a>h?a=h:a<0&&(a=Math.max(0,h+a)),arguments.length===1?s=h-a:s==null?s=0:s=Math.max(0,Math.min(s,h-a)),o===void 0&&(o=uv),cr(this)){var d=fr(this,{object:this.proxy_,type:IE,index:a,removedCount:s,added:o});if(!d)return uv;s=d.removedCount,o=d.added}if(o=o.length===0?o:o.map(function(b){return c.enhancer_(b,void 0)}),this.legacyMode_){var p=o.length-s;this.updateArrayLength_(h,p)}var v=this.spliceItemsIntoValues_(a,s,o);return(s!==0||o.length!==0)&&this.notifyArraySplice_(a,o,v),this.dehanceValues_(v)},t.spliceItemsIntoValues_=function(a,s,o){if(o.length<Pk){var c;return(c=this.values_).splice.apply(c,[a,s].concat(o))}else{var h=this.values_.slice(a,a+s),d=this.values_.slice(a+s);this.values_.length+=o.length-s;for(var p=0;p<o.length;p++)this.values_[a+p]=o[p];for(var v=0;v<d.length;v++)this.values_[a+o.length+v]=d[v];return h}},t.notifyArrayChildUpdate_=function(a,s,o){var c=!this.owned_&&ju(),h=Rr(this),d=h||c?{observableKind:"array",object:this.proxy_,type:ta,debugObjectName:this.atom_.name_,index:a,newValue:s,oldValue:o}:null;this.atom_.reportChanged(),h&&Dr(this,d)},t.notifyArraySplice_=function(a,s,o){var c=!this.owned_&&ju(),h=Rr(this),d=h||c?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:IE,index:a,removed:o,added:s,removedCount:o.length,addedCount:s.length}:null;this.atom_.reportChanged(),h&&Dr(this,d)},t.get_=function(a){if(this.legacyMode_&&a>=this.values_.length){console.warn("[mobx] Out of bounds read: "+a);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[a])},t.set_=function(a,s){var o=this.values_;if(this.legacyMode_&&a>o.length&&rt(17,a,o.length),a<o.length){this.atom_;var c=o[a];if(cr(this)){var h=fr(this,{type:ta,object:this.proxy_,index:a,newValue:s});if(!h)return;s=h.newValue}s=this.enhancer_(s,c);var d=s!==c;d&&(o[a]=s,this.notifyArrayChildUpdate_(a,s,c))}else{for(var p=new Array(a+1-o.length),v=0;v<p.length-1;v++)p[v]=void 0;p[p.length-1]=s,this.spliceWithArray_(o.length,0,p)}},e}();function Yk(e,t,n,a){return n===void 0&&(n="ObservableArray"),a===void 0&&(a=!1),jO(),zi(function(){var s=new _y(n,t,a,!1);UO(s.values_,Fe,s);var o=new Proxy(s.values_,Gk);return s.proxy_=o,e&&e.length&&s.spliceWithArray_(0,0,e),o})}var bd={clear:function(){return this.splice(0)},replace:function(t){var n=this[Fe];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var a=arguments.length,s=new Array(a>2?a-2:0),o=2;o<a;o++)s[o-2]=arguments[o];var c=this[Fe];switch(arguments.length){case 0:return[];case 1:return c.spliceWithArray_(t);case 2:return c.spliceWithArray_(t,n)}return c.spliceWithArray_(t,n,s)},spliceWithArray:function(t,n,a){return this[Fe].spliceWithArray_(t,n,a)},push:function(){for(var t=this[Fe],n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.spliceWithArray_(t.values_.length,0,a),t.values_.length},pop:function(){return this.splice(Math.max(this[Fe].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Fe],n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.spliceWithArray_(0,0,a),t.values_.length},reverse:function(){return de.trackingDerivation&&rt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){de.trackingDerivation&&rt(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[Fe],a=n.dehanceValues_(n.values_).indexOf(t);return a>-1?(this.splice(a,1),!0):!1}};xt("at",Kn);xt("concat",Kn);xt("flat",Kn);xt("includes",Kn);xt("indexOf",Kn);xt("join",Kn);xt("lastIndexOf",Kn);xt("slice",Kn);xt("toString",Kn);xt("toLocaleString",Kn);xt("toSorted",Kn);xt("toSpliced",Kn);xt("with",Kn);xt("every",$r);xt("filter",$r);xt("find",$r);xt("findIndex",$r);xt("findLast",$r);xt("findLastIndex",$r);xt("flatMap",$r);xt("forEach",$r);xt("map",$r);xt("some",$r);xt("toReversed",$r);xt("reduce",dT);xt("reduceRight",dT);function xt(e,t){typeof Array.prototype[e]=="function"&&(bd[e]=t(e))}function Kn(e){return function(){var t=this[Fe];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function $r(e){return function(t,n){var a=this,s=this[Fe];s.atom_.reportObserved();var o=s.dehanceValues_(s.values_);return o[e](function(c,h){return t.call(n,c,h,a)})}}function dT(e){return function(){var t=this,n=this[Fe];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_),s=arguments[0];return arguments[0]=function(o,c,h){return s(o,c,h,t)},a[e].apply(a,arguments)}}var Kk=Is("ObservableArrayAdministration",_y);function Vd(e){return Bd(e)&&Kk(e[Fe])}var Qk={},Ci="add",Sd="delete",hT=function(){function e(n,a,s){var o=this;a===void 0&&(a=ks),s===void 0&&(s="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Fe]=Qk,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=a,this.name_=s,jr(Map)||rt(18),zi(function(){o.keysAtom_=FO("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(a){return this.data_.has(a)},t.has=function(a){var s=this;if(!de.trackingDerivation)return this.has_(a);var o=this.hasMap_.get(a);if(!o){var c=o=new As(this.has_(a),Fd,"ObservableMap.key?",!1);this.hasMap_.set(a,c),sT(c,function(){return s.hasMap_.delete(a)})}return o.get()},t.set=function(a,s){var o=this.has_(a);if(cr(this)){var c=fr(this,{type:o?ta:Ci,object:this,newValue:s,name:a});if(!c)return this;s=c.newValue}return o?this.updateValue_(a,s):this.addValue_(a,s),this},t.delete=function(a){var s=this;if(this.keysAtom_,cr(this)){var o=fr(this,{type:Sd,object:this,name:a});if(!o)return!1}if(this.has_(a)){var c=ju(),h=Rr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:Sd,object:this,oldValue:this.data_.get(a).value_,name:a}:null;return ja(function(){var p;s.keysAtom_.reportChanged(),(p=s.hasMap_.get(a))==null||p.setNewValue_(!1);var v=s.data_.get(a);v.setNewValue_(void 0),s.data_.delete(a)}),h&&Dr(this,d),!0}return!1},t.updateValue_=function(a,s){var o=this.data_.get(a);if(s=o.prepareNewValue_(s),s!==de.UNCHANGED){var c=ju(),h=Rr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:ta,object:this,oldValue:o.value_,name:a,newValue:s}:null;o.setNewValue_(s),h&&Dr(this,d)}},t.addValue_=function(a,s){var o=this;this.keysAtom_,ja(function(){var p,v=new As(s,o.enhancer_,"ObservableMap.key",!1);o.data_.set(a,v),s=v.value_,(p=o.hasMap_.get(a))==null||p.setNewValue_(!0),o.keysAtom_.reportChanged()});var c=ju(),h=Rr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:Ci,object:this,name:a,newValue:s}:null;h&&Dr(this,d)},t.get=function(a){return this.has(a)?this.dehanceValue_(this.data_.get(a).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var a=this,s=this.keys();return zE({next:function(){var c=s.next(),h=c.done,d=c.value;return{done:h,value:h?void 0:a.get(d)}}})},t.entries=function(){var a=this,s=this.keys();return zE({next:function(){var c=s.next(),h=c.done,d=c.value;return{done:h,value:h?void 0:[d,a.get(d)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(a,s){for(var o=Vl(this),c;!(c=o()).done;){var h=c.value,d=h[0],p=h[1];a.call(s,p,d,this)}},t.merge=function(a){var s=this;return qs(a)&&(a=new Map(a)),ja(function(){Fa(a)?vj(a).forEach(function(o){return s.set(o,a[o])}):Array.isArray(a)?a.forEach(function(o){var c=o[0],h=o[1];return s.set(c,h)}):po(a)?(mj(a)||rt(19,a),a.forEach(function(o,c){return s.set(c,o)})):a!=null&&rt(20,a)}),this},t.clear=function(){var a=this;ja(function(){QO(function(){for(var s=Vl(a.keys()),o;!(o=s()).done;){var c=o.value;a.delete(c)}})})},t.replace=function(a){var s=this;return ja(function(){for(var o=Xk(a),c=new Map,h=!1,d=Vl(s.data_.keys()),p;!(p=d()).done;){var v=p.value;if(!o.has(v)){var b=s.delete(v);if(b)h=!0;else{var y=s.data_.get(v);c.set(v,y)}}}for(var _=Vl(o.entries()),x;!(x=_()).done;){var A=x.value,N=A[0],O=A[1],R=s.data_.has(N);if(s.set(N,O),s.data_.has(N)){var D=s.data_.get(N);c.set(N,D),R||(h=!0)}}if(!h)if(s.data_.size!==c.size)s.keysAtom_.reportChanged();else for(var U=s.data_.keys(),C=c.keys(),w=U.next(),q=C.next();!w.done;){if(w.value!==q.value){s.keysAtom_.reportChanged();break}w=U.next(),q=C.next()}s.data_=c}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(a,s){return uc(this,a)},t.intercept_=function(a){return oc(this,a)},mo(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),qs=Is("ObservableMap",hT);function zE(e){return e[Symbol.toStringTag]="MapIterator",Oy(e)}function Xk(e){if(po(e)||qs(e))return e;if(Array.isArray(e))return new Map(e);if(Fa(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return rt(21,e)}var Zk={},pT=function(){function e(n,a,s){var o=this;a===void 0&&(a=ks),s===void 0&&(s="ObservableSet"),this.name_=void 0,this[Fe]=Zk,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=s,jr(Set)||rt(22),this.enhancer_=function(c,h){return a(c,h,s)},zi(function(){o.atom_=FO(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.clear=function(){var a=this;ja(function(){QO(function(){for(var s=Vl(a.data_.values()),o;!(o=s()).done;){var c=o.value;a.delete(c)}})})},t.forEach=function(a,s){for(var o=Vl(this),c;!(c=o()).done;){var h=c.value;a.call(s,h,h,this)}},t.add=function(a){var s=this;if(this.atom_,cr(this)){var o=fr(this,{type:Ci,object:this,newValue:a});if(!o)return this;a=o.newValue}if(!this.has(a)){ja(function(){s.data_.add(s.enhancer_(a,void 0)),s.atom_.reportChanged()});var c=!1,h=Rr(this),d=h||c?{observableKind:"set",debugObjectName:this.name_,type:Ci,object:this,newValue:a}:null;h&&Dr(this,d)}return this},t.delete=function(a){var s=this;if(cr(this)){var o=fr(this,{type:Sd,object:this,oldValue:a});if(!o)return!1}if(this.has(a)){var c=!1,h=Rr(this),d=h||c?{observableKind:"set",debugObjectName:this.name_,type:Sd,object:this,oldValue:a}:null;return ja(function(){s.atom_.reportChanged(),s.data_.delete(a)}),h&&Dr(this,d),!0}return!1},t.has=function(a){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(a))},t.entries=function(){var a=this.values();return qE({next:function(){var o=a.next(),c=o.value,h=o.done;return h?{value:void 0,done:h}:{value:[c,c],done:h}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var a=this,s=this.data_.values();return qE({next:function(){var c=s.next(),h=c.value,d=c.done;return d?{value:void 0,done:d}:{value:a.dehanceValue_(h),done:d}}})},t.intersection=function(a){if(Da(a)&&!Xr(a))return a.intersection(this);var s=new Set(this);return s.intersection(a)},t.union=function(a){if(Da(a)&&!Xr(a))return a.union(this);var s=new Set(this);return s.union(a)},t.difference=function(a){return new Set(this).difference(a)},t.symmetricDifference=function(a){if(Da(a)&&!Xr(a))return a.symmetricDifference(this);var s=new Set(this);return s.symmetricDifference(a)},t.isSubsetOf=function(a){return new Set(this).isSubsetOf(a)},t.isSupersetOf=function(a){return new Set(this).isSupersetOf(a)},t.isDisjointFrom=function(a){if(Da(a)&&!Xr(a))return a.isDisjointFrom(this);var s=new Set(this);return s.isDisjointFrom(a)},t.replace=function(a){var s=this;return Xr(a)&&(a=new Set(a)),ja(function(){Array.isArray(a)?(s.clear(),a.forEach(function(o){return s.add(o)})):Da(a)?(s.clear(),a.forEach(function(o){return s.add(o)})):a!=null&&rt("Cannot initialize set from "+a)}),this},t.observe_=function(a,s){return uc(this,a)},t.intercept_=function(a){return oc(this,a)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},mo(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Xr=Is("ObservableSet",pT);function qE(e){return e[Symbol.toStringTag]="SetIterator",Oy(e)}var VE=Object.create(null),HE="remove",mT=function(){function e(n,a,s,o){a===void 0&&(a=new Map),o===void 0&&(o=Gj),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=a,this.name_=s,this.defaultAnnotation_=o,this.keysAtom_=new Ii("ObservableObject.keys"),this.isPlainObject_=Fa(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(a){return this.values_.get(a).get()},t.setObservablePropValue_=function(a,s){var o=this.values_.get(a);if(o instanceof kr)return o.set(s),!0;if(cr(this)){var c=fr(this,{type:ta,object:this.proxy_||this.target_,name:a,newValue:s});if(!c)return null;s=c.newValue}if(s=o.prepareNewValue_(s),s!==de.UNCHANGED){var h=Rr(this),d=!1,p=h||d?{type:ta,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:a,newValue:s}:null;o.setNewValue_(s),h&&Dr(this,p)}return!0},t.get_=function(a){return de.trackingDerivation&&!$a(this.target_,a)&&this.has_(a),this.target_[a]},t.set_=function(a,s,o){return o===void 0&&(o=!1),$a(this.target_,a)?this.values_.has(a)?this.setObservablePropValue_(a,s):o?Reflect.set(this.target_,a,s):(this.target_[a]=s,!0):this.extend_(a,{value:s,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(a){if(!de.trackingDerivation)return a in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var s=this.pendingKeys_.get(a);return s||(s=new As(a in this.target_,Fd,"ObservableObject.key?",!1),this.pendingKeys_.set(a,s)),s.get()},t.make_=function(a,s){if(s===!0&&(s=this.defaultAnnotation_),s!==!1){if(!(a in this.target_)){var o;if((o=this.target_[Zr])!=null&&o[a])return;rt(1,s.annotationType_,this.name_+"."+a.toString())}for(var c=this.target_;c&&c!==Ld;){var h=hd(c,a);if(h){var d=s.make_(this,a,h,c);if(d===0)return;if(d===1)break}c=Object.getPrototypeOf(c)}GE(this,s,a)}},t.extend_=function(a,s,o,c){if(c===void 0&&(c=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(a,s,c);var h=o.extend_(this,a,s,c);return h&&GE(this,o,a),h},t.defineProperty_=function(a,s,o){o===void 0&&(o=!1),this.keysAtom_;try{hr();var c=this.delete_(a);if(!c)return c;if(cr(this)){var h=fr(this,{object:this.proxy_||this.target_,name:a,type:Ci,newValue:s.value});if(!h)return null;var d=h.newValue;s.value!==d&&(s=js({},s,{value:d}))}if(o){if(!Reflect.defineProperty(this.target_,a,s))return!1}else Wr(this.target_,a,s);this.notifyPropertyAddition_(a,s.value)}finally{pr()}return!0},t.defineObservableProperty_=function(a,s,o,c){c===void 0&&(c=!1),this.keysAtom_;try{hr();var h=this.delete_(a);if(!h)return h;if(cr(this)){var d=fr(this,{object:this.proxy_||this.target_,name:a,type:Ci,newValue:s});if(!d)return null;s=d.newValue}var p=PE(a),v={configurable:de.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:p.get,set:p.set};if(c){if(!Reflect.defineProperty(this.target_,a,v))return!1}else Wr(this.target_,a,v);var b=new As(s,o,"ObservableObject.key",!1);this.values_.set(a,b),this.notifyPropertyAddition_(a,b.value_)}finally{pr()}return!0},t.defineComputedProperty_=function(a,s,o){o===void 0&&(o=!1),this.keysAtom_;try{hr();var c=this.delete_(a);if(!c)return c;if(cr(this)){var h=fr(this,{object:this.proxy_||this.target_,name:a,type:Ci,newValue:void 0});if(!h)return null}s.name||(s.name="ObservableObject.key"),s.context=this.proxy_||this.target_;var d=PE(a),p={configurable:de.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:d.get,set:d.set};if(o){if(!Reflect.defineProperty(this.target_,a,p))return!1}else Wr(this.target_,a,p);this.values_.set(a,new kr(s)),this.notifyPropertyAddition_(a,void 0)}finally{pr()}return!0},t.delete_=function(a,s){if(s===void 0&&(s=!1),this.keysAtom_,!$a(this.target_,a))return!0;if(cr(this)){var o=fr(this,{object:this.proxy_||this.target_,name:a,type:HE});if(!o)return null}try{var c;hr();var h=Rr(this),d=!1,p=this.values_.get(a),v=void 0;if(!p&&(h||d)){var b;v=(b=hd(this.target_,a))==null?void 0:b.value}if(s){if(!Reflect.deleteProperty(this.target_,a))return!1}else delete this.target_[a];if(p&&(this.values_.delete(a),p instanceof As&&(v=p.value_),tT(p)),this.keysAtom_.reportChanged(),(c=this.pendingKeys_)==null||(c=c.get(a))==null||c.set(a in this.target_),h||d){var y={type:HE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:v,name:a};h&&Dr(this,y)}}finally{pr()}return!0},t.observe_=function(a,s){return uc(this,a)},t.intercept_=function(a){return oc(this,a)},t.notifyPropertyAddition_=function(a,s){var o,c=Rr(this),h=!1;if(c||h){var d=c||h?{type:Ci,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:a,newValue:s}:null;c&&Dr(this,d)}(o=this.pendingKeys_)==null||(o=o.get(a))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),io(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Vs(e,t){var n;if($a(e,Fe))return e;var a=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",s=new mT(e,new Map,String(a),rk(t));return ac(e,Fe,s),e}var Jk=Is("ObservableObjectAdministration",mT);function PE(e){return VE[e]||(VE[e]={get:function(){return this[Fe].getObservablePropValue_(e)},set:function(n){return this[Fe].setObservablePropValue_(e,n)}})}function Hd(e){return Bd(e)?Jk(e[Fe]):!1}function GE(e,t,n){var a;(a=e.target_[Zr])==null||delete a[n]}var Wk=yT(0),e2=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),wm=0,vT=function(){};function t2(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}t2(vT,Array.prototype);var xy=function(e){function t(a,s,o,c){var h;return o===void 0&&(o="ObservableArray"),c===void 0&&(c=!1),h=e.call(this)||this,zi(function(){var d=new _y(o,s,c,!0);d.proxy_=h,UO(h,Fe,d),a&&a.length&&h.spliceWithArray(0,0,a),e2&&Object.defineProperty(h,"0",Wk)}),h}BO(t,e);var n=t.prototype;return n.concat=function(){this[Fe].atom_.reportObserved();for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];return Array.prototype.concat.apply(this.slice(),o.map(function(h){return Vd(h)?h.slice():h}))},n[Symbol.iterator]=function(){var a=this,s=0;return Oy({next:function(){return s<a.length?{value:a[s++],done:!1}:{done:!0,value:void 0}}})},mo(t,[{key:"length",get:function(){return this[Fe].getArrayLength_()},set:function(s){this[Fe].setArrayLength_(s)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(vT);Object.entries(bd).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&ac(xy.prototype,t,n)});function yT(e){return{enumerable:!1,configurable:!0,get:function(){return this[Fe].get_(e)},set:function(n){this[Fe].set_(e,n)}}}function n2(e){Wr(xy.prototype,""+e,yT(e))}function gT(e){if(e>wm){for(var t=wm;t<e+100;t++)n2(t);wm=e}}gT(1e3);function r2(e,t,n){return new xy(e,t,n)}function Ed(e,t){if(typeof e=="object"&&e!==null){if(Vd(e))return t!==void 0&&rt(23),e[Fe].atom_;if(Xr(e))return e.atom_;if(qs(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||rt(25,t,gv(e)),n}if(Hd(e)){if(!t)return rt(26);var a=e[Fe].values_.get(t);return a||rt(27,t,gv(e)),a}if(yy(e)||qd(e)||gd(e))return e}else if(jr(e)&&gd(e[Fe]))return e[Fe];rt(28)}function a2(e,t){if(e||rt(29),yy(e)||qd(e)||gd(e)||qs(e)||Xr(e))return e;if(e[Fe])return e[Fe];rt(24,e)}function gv(e,t){var n;if(t!==void 0)n=Ed(e,t);else{if(Vu(e))return e.name;Hd(e)||qs(e)||Xr(e)?n=a2(e):n=Ed(e)}return n.name_}function zi(e){var t=zs(),n=by(!0);hr();try{return e()}finally{pr(),Sy(n),La(t)}}var YE=Ld.toString;function bT(e,t,n){return n===void 0&&(n=-1),bv(e,t,n)}function bv(e,t,n,a,s){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var c=YE.call(e);if(c!==YE.call(t))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=KE(e),t=KE(t);var h=c==="[object Array]";if(!h){if(typeof e!="object"||typeof t!="object")return!1;var d=e.constructor,p=t.constructor;if(d!==p&&!(jr(d)&&d instanceof d&&jr(p)&&p instanceof p)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),a=a||[],s=s||[];for(var v=a.length;v--;)if(a[v]===e)return s[v]===t;if(a.push(e),s.push(t),h){if(v=e.length,v!==t.length)return!1;for(;v--;)if(!bv(e[v],t[v],n-1,a,s))return!1}else{var b=Object.keys(e),y=b.length;if(Object.keys(t).length!==y)return!1;for(var _=0;_<y;_++){var x=b[_];if(!($a(t,x)&&bv(e[x],t[x],n-1,a,s)))return!1}}return a.pop(),s.pop(),!0}function KE(e){return Vd(e)?e.slice():po(e)||qs(e)||Da(e)||Xr(e)?Array.from(e.entries()):e}var QE,i2=((QE=$d().Iterator)==null?void 0:QE.prototype)||{};function Oy(e){return e[Symbol.iterator]=s2,Object.assign(Object.create(i2),e)}function s2(){return this}["Symbol","Map","Set"].forEach(function(e){var t=$d();typeof t[e]>"u"&&rt("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ek,extras:{getDebugName:gv},$mobx:Fe});if(!S.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Vk)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function l2(e){e()}function o2(e){e||(e=l2),Uk({reactionScheduler:e})}function u2(e){return $k(e)}var c2=1e4,f2=1e4,d2=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(a){a===void 0&&(a=c2),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var s=Date.now();n.registrations.forEach(function(o,c){s-o.registeredAt>=a&&(n.finalize(o.value),n.registrations.delete(c))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,a){this.registrations.set(a,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,f2))}}),e}(),h2=typeof FinalizationRegistry<"u"?FinalizationRegistry:d2,Sv=new h2(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Am={exports:{}},Nm={};/**
|
|
73
73
|
* @license React
|
|
74
74
|
* use-sync-external-store-shim.production.js
|
|
75
75
|
*
|
|
@@ -77,17 +77,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the MIT license found in the
|
|
79
79
|
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/var XE;function
|
|
80
|
+
*/var XE;function p2(){if(XE)return Nm;XE=1;var e=Rd();function t(b,y){return b===y&&(b!==0||1/b===1/y)||b!==b&&y!==y}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function h(b,y){var _=y(),x=a({inst:{value:_,getSnapshot:y}}),A=x[0].inst,N=x[1];return o(function(){A.value=_,A.getSnapshot=y,d(A)&&N({inst:A})},[b,_,y]),s(function(){return d(A)&&N({inst:A}),b(function(){d(A)&&N({inst:A})})},[b]),c(_),_}function d(b){var y=b.getSnapshot;b=b.value;try{var _=y();return!n(b,_)}catch{return!0}}function p(b,y){return y()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return Nm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,Nm}var ZE;function m2(){return ZE||(ZE=1,Am.exports=p2()),Am.exports}var v2=m2();function JE(e){e.reaction=new Ia("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function y2(e,t){t===void 0&&(t="observed");var n=mt.useRef(null);if(!n.current){var a={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(h){return Sv.unregister(a),a.onStoreChange=h,a.reaction||(JE(a),a.stateVersion=Symbol()),function(){var d;a.onStoreChange=null,(d=a.reaction)===null||d===void 0||d.dispose(),a.reaction=null}},getSnapshot:function(){return a.stateVersion}};n.current=a}var s=n.current;s.reaction||(JE(s),Sv.register(n,s,s)),mt.useDebugValue(s.reaction,u2),v2.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot);var o,c;if(s.reaction.track(function(){try{o=e()}catch(h){c=h}}),c)throw c;return o}var Cm,Rm,ST=typeof Symbol=="function"&&Symbol.for,g2=(Rm=(Cm=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Cm===void 0?void 0:Cm.configurable)!==null&&Rm!==void 0?Rm:!1,WE=ST?Symbol.for("react.forward_ref"):typeof S.forwardRef=="function"&&S.forwardRef(function(e){return null}).$$typeof,e_=ST?Symbol.for("react.memo"):typeof S.memo=="function"&&S.memo(function(e){return null}).$$typeof;function Gt(e,t){var n;if(e_&&e.$$typeof===e_)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var a=(n=void 0)!==null&&n!==void 0?n:!1,s=e,o=e.displayName||e.name;if(WE&&e.$$typeof===WE&&(a=!0,s=e.render,typeof s!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(h,d){return y2(function(){return s(h,d)},o)};return c.displayName=e.displayName,g2&&Object.defineProperty(c,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(c.contextTypes=e.contextTypes),a&&(c=S.forwardRef(c)),c=S.memo(c),S2(e,c),c}var b2={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function S2(e,t){Object.keys(e).forEach(function(n){b2[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var Dm;o2(py.unstable_batchedUpdates);Dm=Sv.finalizeAllImmediately;class Kl extends Error{constructor(n,a){const s=`${Kl.extractMessage(n)}: ${JSON.stringify({response:n,request:a})}`;super(s);Ta(this,"response");Ta(this,"request");Object.setPrototypeOf(this,Kl.prototype),this.response=n,this.request=a,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Kl)}static extractMessage(n){var a,s;return((s=(a=n.errors)==null?void 0:a[0])==null?void 0:s.message)??`GraphQL Error (Code: ${String(n.status)})`}}const t_=e=>e.toUpperCase(),jm=e=>typeof e=="function"?e():e,ET=(e,t)=>e.map((n,a)=>[n,t[a]]),Ul=e=>{let t={};return e instanceof Headers?t=E2(e):Array.isArray(e)?e.forEach(([n,a])=>{n&&a!==void 0&&(t[n]=a)}):e&&(t=e),t},E2=e=>{const t={};return e.forEach((n,a)=>{t[a]=n}),t},_2=e=>{try{const t=e();return x2(t)?t.catch(n=>n_(n)):t}catch(t){return n_(t)}},n_=e=>e instanceof Error?e:new Error(String(e)),x2=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",Ty=e=>{throw new Error(`Unhandled case: ${String(e)}`)},td=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),O2=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},T2=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0};function nd(e,t){if(!!!e)throw new Error(t)}function w2(e){return typeof e=="object"&&e!==null}function A2(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const N2=/\r\n|[\n\r]/g;function Ev(e,t){let n=0,a=1;for(const s of e.body.matchAll(N2)){if(typeof s.index=="number"||A2(!1),s.index>=t)break;n=s.index+s[0].length,a+=1}return{line:a,column:t+1-n}}function C2(e){return _T(e.source,Ev(e.source,e.start))}function _T(e,t){const n=e.locationOffset.column-1,a="".padStart(n)+e.body,s=t.line-1,o=e.locationOffset.line-1,c=t.line+o,h=t.line===1?n:0,d=t.column+h,p=`${e.name}:${c}:${d}
|
|
81
81
|
`,v=a.split(/\r\n|[\n\r]/g),b=v[s];if(b.length>120){const y=Math.floor(d/80),_=d%80,x=[];for(let A=0;A<b.length;A+=80)x.push(b.slice(A,A+80));return p+r_([[`${c} |`,x[0]],...x.slice(1,y+1).map(A=>["|",A]),["|","^".padStart(_)],["|",x[y+1]]])}return p+r_([[`${c-1} |`,v[s-1]],[`${c} |`,b],["|","^".padStart(d)],[`${c+1} |`,v[s+1]]])}function r_(e){const t=e.filter(([a,s])=>s!==void 0),n=Math.max(...t.map(([a])=>a.length));return t.map(([a,s])=>a.padStart(n)+(s?" "+s:"")).join(`
|
|
82
|
-
`)}function
|
|
82
|
+
`)}function R2(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}let D2=class xT extends Error{constructor(t,...n){var a,s,o;const{nodes:c,source:h,positions:d,path:p,originalError:v,extensions:b}=R2(n);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=v??void 0,this.nodes=a_(Array.isArray(c)?c:c?[c]:void 0);const y=a_((a=this.nodes)===null||a===void 0?void 0:a.map(x=>x.loc).filter(x=>x!=null));this.source=h??(y==null||(s=y[0])===null||s===void 0?void 0:s.source),this.positions=d??(y==null?void 0:y.map(x=>x.start)),this.locations=d&&h?d.map(x=>Ev(h,x)):y==null?void 0:y.map(x=>Ev(x.source,x.start));const _=w2(v==null?void 0:v.extensions)?v==null?void 0:v.extensions:void 0;this.extensions=(o=b??_)!==null&&o!==void 0?o: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}}),v!=null&&v.stack?Object.defineProperty(this,"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,xT):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
|
|
83
83
|
|
|
84
|
-
`+
|
|
84
|
+
`+C2(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
|
|
85
85
|
|
|
86
|
-
`+_T(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function a_(e){return e===void 0||e.length===0?void 0:e}function Zt(e,t,n){return new
|
|
86
|
+
`+_T(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function a_(e){return e===void 0||e.length===0?void 0:e}function Zt(e,t,n){return new D2(`Syntax Error: ${n}`,{source:e,positions:[t]})}class j2{constructor(t,n,a){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=a}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class OT{constructor(t,n,a,s,o,c){this.kind=t,this.start=n,this.end=a,this.line=s,this.column=o,this.value=c,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 TT={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["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:["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"]},k2=new Set(Object.keys(TT));function i_(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&k2.has(t)}var Ss;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Ss||(Ss={}));var _v;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(_v||(_v={}));var $e;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})($e||($e={}));function xv(e){return e===9||e===32}function Pu(e){return e>=48&&e<=57}function wT(e){return e>=97&&e<=122||e>=65&&e<=90}function AT(e){return wT(e)||e===95}function M2(e){return wT(e)||Pu(e)||e===95}function U2(e){var t;let n=Number.MAX_SAFE_INTEGER,a=null,s=-1;for(let c=0;c<e.length;++c){var o;const h=e[c],d=$2(h);d!==h.length&&(a=(o=a)!==null&&o!==void 0?o:c,s=c,c!==0&&d<n&&(n=d))}return e.map((c,h)=>h===0?c:c.slice(n)).slice((t=a)!==null&&t!==void 0?t:0,s+1)}function $2(e){let t=0;for(;t<e.length&&xv(e.charCodeAt(t));)++t;return t}function L2(e,t){const n=e.replace(/"""/g,'\\"""'),a=n.split(/\r\n|[\n\r]/g),s=a.length===1,o=a.length>1&&a.slice(1).every(_=>_.length===0||xv(_.charCodeAt(0))),c=n.endsWith('\\"""'),h=e.endsWith('"')&&!c,d=e.endsWith("\\"),p=h||d,v=!s||e.length>70||p||o||c;let b="";const y=s&&xv(e.charCodeAt(0));return(v&&!y||o)&&(b+=`
|
|
87
87
|
`),b+=n,(v||p)&&(b+=`
|
|
88
|
-
`),'"""'+b+'"""'}var W;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(W||(W={}));class
|
|
89
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Zt(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function
|
|
90
|
-
`));return e.line+=d.length-1,e.lineStart=s,v}if(p===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){h+=n.slice(c,o),c=o+1,o+=4;continue}if(p===10||p===13){h+=n.slice(c,o),d.push(h),p===13&&n.charCodeAt(o+1)===10?o+=2:++o,h="",c=o,s=o;continue}if(vo(p))++o;else if(Pd(n,o))o+=2;else throw Zt(e.source,o,`Invalid character within String: ${Us(e,o)}.`)}throw Zt(e.source,o,"Unterminated string.")}function
|
|
88
|
+
`),'"""'+b+'"""'}var W;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(W||(W={}));class B2{constructor(t){const n=new OT(W.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==W.EOF)do if(t.next)t=t.next;else{const n=I2(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===W.COMMENT);return t}}function F2(e){return e===W.BANG||e===W.DOLLAR||e===W.AMP||e===W.PAREN_L||e===W.PAREN_R||e===W.SPREAD||e===W.COLON||e===W.EQUALS||e===W.AT||e===W.BRACKET_L||e===W.BRACKET_R||e===W.BRACE_L||e===W.PIPE||e===W.BRACE_R}function vo(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Pd(e,t){return NT(e.charCodeAt(t))&&CT(e.charCodeAt(t+1))}function NT(e){return e>=55296&&e<=56319}function CT(e){return e>=56320&&e<=57343}function Us(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return W.EOF;if(n>=32&&n<=126){const a=String.fromCodePoint(n);return a==='"'?`'"'`:`"${a}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function zt(e,t,n,a,s){const o=e.line,c=1+n-e.lineStart;return new OT(t,n,a,o,c,s)}function I2(e,t){const n=e.source.body,a=n.length;let s=t;for(;s<a;){const o=n.charCodeAt(s);switch(o){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:n.charCodeAt(s+1)===10?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return z2(e,s);case 33:return zt(e,W.BANG,s,s+1);case 36:return zt(e,W.DOLLAR,s,s+1);case 38:return zt(e,W.AMP,s,s+1);case 40:return zt(e,W.PAREN_L,s,s+1);case 41:return zt(e,W.PAREN_R,s,s+1);case 46:if(n.charCodeAt(s+1)===46&&n.charCodeAt(s+2)===46)return zt(e,W.SPREAD,s,s+3);break;case 58:return zt(e,W.COLON,s,s+1);case 61:return zt(e,W.EQUALS,s,s+1);case 64:return zt(e,W.AT,s,s+1);case 91:return zt(e,W.BRACKET_L,s,s+1);case 93:return zt(e,W.BRACKET_R,s,s+1);case 123:return zt(e,W.BRACE_L,s,s+1);case 124:return zt(e,W.PIPE,s,s+1);case 125:return zt(e,W.BRACE_R,s,s+1);case 34:return n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34?Y2(e,s):V2(e,s)}if(Pu(o)||o===45)return q2(e,s,o);if(AT(o))return K2(e,s);throw Zt(e.source,s,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:vo(o)||Pd(n,s)?`Unexpected character: ${Us(e,s)}.`:`Invalid character: ${Us(e,s)}.`)}return zt(e,W.EOF,a,a)}function z2(e,t){const n=e.source.body,a=n.length;let s=t+1;for(;s<a;){const o=n.charCodeAt(s);if(o===10||o===13)break;if(vo(o))++s;else if(Pd(n,s))s+=2;else break}return zt(e,W.COMMENT,t,s,n.slice(t+1,s))}function q2(e,t,n){const a=e.source.body;let s=t,o=n,c=!1;if(o===45&&(o=a.charCodeAt(++s)),o===48){if(o=a.charCodeAt(++s),Pu(o))throw Zt(e.source,s,`Invalid number, unexpected digit after 0: ${Us(e,s)}.`)}else s=km(e,s,o),o=a.charCodeAt(s);if(o===46&&(c=!0,o=a.charCodeAt(++s),s=km(e,s,o),o=a.charCodeAt(s)),(o===69||o===101)&&(c=!0,o=a.charCodeAt(++s),(o===43||o===45)&&(o=a.charCodeAt(++s)),s=km(e,s,o),o=a.charCodeAt(s)),o===46||AT(o))throw Zt(e.source,s,`Invalid number, expected digit but got: ${Us(e,s)}.`);return zt(e,c?W.FLOAT:W.INT,t,s,a.slice(t,s))}function km(e,t,n){if(!Pu(n))throw Zt(e.source,t,`Invalid number, expected digit but got: ${Us(e,t)}.`);const a=e.source.body;let s=t+1;for(;Pu(a.charCodeAt(s));)++s;return s}function V2(e,t){const n=e.source.body,a=n.length;let s=t+1,o=s,c="";for(;s<a;){const h=n.charCodeAt(s);if(h===34)return c+=n.slice(o,s),zt(e,W.STRING,t,s+1,c);if(h===92){c+=n.slice(o,s);const d=n.charCodeAt(s+1)===117?n.charCodeAt(s+2)===123?H2(e,s):P2(e,s):G2(e,s);c+=d.value,s+=d.size,o=s;continue}if(h===10||h===13)break;if(vo(h))++s;else if(Pd(n,s))s+=2;else throw Zt(e.source,s,`Invalid character within String: ${Us(e,s)}.`)}throw Zt(e.source,s,"Unterminated string.")}function H2(e,t){const n=e.source.body;let a=0,s=3;for(;s<12;){const o=n.charCodeAt(t+s++);if(o===125){if(s<5||!vo(a))break;return{value:String.fromCodePoint(a),size:s}}if(a=a<<4|Cu(o),a<0)break}throw Zt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function P2(e,t){const n=e.source.body,a=s_(n,t+2);if(vo(a))return{value:String.fromCodePoint(a),size:6};if(NT(a)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const s=s_(n,t+8);if(CT(s))return{value:String.fromCodePoint(a,s),size:12}}throw Zt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function s_(e,t){return Cu(e.charCodeAt(t))<<12|Cu(e.charCodeAt(t+1))<<8|Cu(e.charCodeAt(t+2))<<4|Cu(e.charCodeAt(t+3))}function Cu(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function G2(e,t){const n=e.source.body;switch(n.charCodeAt(t+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:`
|
|
89
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Zt(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Y2(e,t){const n=e.source.body,a=n.length;let s=e.lineStart,o=t+3,c=o,h="";const d=[];for(;o<a;){const p=n.charCodeAt(o);if(p===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){h+=n.slice(c,o),d.push(h);const v=zt(e,W.BLOCK_STRING,t,o+3,U2(d).join(`
|
|
90
|
+
`));return e.line+=d.length-1,e.lineStart=s,v}if(p===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){h+=n.slice(c,o),c=o+1,o+=4;continue}if(p===10||p===13){h+=n.slice(c,o),d.push(h),p===13&&n.charCodeAt(o+1)===10?o+=2:++o,h="",c=o,s=o;continue}if(vo(p))++o;else if(Pd(n,o))o+=2;else throw Zt(e.source,o,`Invalid character within String: ${Us(e,o)}.`)}throw Zt(e.source,o,"Unterminated string.")}function K2(e,t){const n=e.source.body,a=n.length;let s=t+1;for(;s<a;){const o=n.charCodeAt(s);if(M2(o))++s;else break}return zt(e,W.NAME,t,s,n.slice(t,s))}const Q2=10,RT=2;function wy(e){return Gd(e,[])}function Gd(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return X2(e,t);default:return String(e)}}function X2(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(Z2(e)){const a=e.toJSON();if(a!==e)return typeof a=="string"?a:Gd(a,n)}else if(Array.isArray(e))return W2(e,n);return J2(e,n)}function Z2(e){return typeof e.toJSON=="function"}function J2(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>RT?"["+eM(e)+"]":"{ "+n.map(([s,o])=>s+": "+Gd(o,t)).join(", ")+" }"}function W2(e,t){if(e.length===0)return"[]";if(t.length>RT)return"[Array]";const n=Math.min(Q2,e.length),a=e.length-n,s=[];for(let o=0;o<n;++o)s.push(Gd(e[o],t));return a===1?s.push("... 1 more item"):a>1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}function eM(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const tM=globalThis.process&&!0,nM=tM?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var a;const s=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(a=t.constructor)===null||a===void 0?void 0:a.name;if(s===o){const c=wy(t);throw new Error(`Cannot use ${s} "${c}" from another module or realm.
|
|
91
91
|
|
|
92
92
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
93
93
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -98,36 +98,36 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
98
98
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
99
99
|
versions may have different capabilities and behavior. The data from one
|
|
100
100
|
version used in the function from another could produce confusing and
|
|
101
|
-
spurious results.`)}}return!1};class DT{constructor(t,n="GraphQL request",a={line:1,column:1}){typeof t=="string"||nd(!1,`Body must be a string. Received: ${wy(t)}.`),this.body=t,this.name=n,this.locationOffset=a,this.locationOffset.line>0||nd(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||nd(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Z2(e){return X2(e,DT)}function J2(e,t){const n=new W2(e,t),a=n.parseDocument();return Object.defineProperty(a,"tokenCount",{enumerable:!1,value:n.tokenCount}),a}class W2{constructor(t,n={}){const a=Z2(t)?t:new DT(t);this._lexer=new j2(a),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(W.NAME);return this.node(t,{kind:$e.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:$e.DOCUMENT,definitions:this.many(W.SOF,this.parseDefinition,W.EOF)})}parseDefinition(){if(this.peek(W.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===W.NAME){switch(n.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()}if(t)throw Zt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(W.BRACE_L))return this.node(t,{kind:$e.OPERATION_DEFINITION,operation:Ss.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let a;return this.peek(W.NAME)&&(a=this.parseName()),this.node(t,{kind:$e.OPERATION_DEFINITION,operation:n,name:a,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(W.NAME);switch(t.value){case"query":return Ss.QUERY;case"mutation":return Ss.MUTATION;case"subscription":return Ss.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(W.PAREN_L,this.parseVariableDefinition,W.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:$e.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(W.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(W.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(W.DOLLAR),this.node(t,{kind:$e.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:$e.SELECTION_SET,selections:this.many(W.BRACE_L,this.parseSelection,W.BRACE_R)})}parseSelection(){return this.peek(W.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let a,s;return this.expectOptionalToken(W.COLON)?(a=n,s=this.parseName()):s=n,this.node(t,{kind:$e.FIELD,alias:a,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(W.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(W.PAREN_L,n,W.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,a=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:$e.ARGUMENT,name:a,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(W.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(W.NAME)?this.node(t,{kind:$e.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:$e.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:$e.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:$e.FRAGMENT_DEFINITION,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(t){const n=this._lexer.token;switch(n.kind){case W.BRACKET_L:return this.parseList(t);case W.BRACE_L:return this.parseObject(t);case W.INT:return this.advanceLexer(),this.node(n,{kind:$e.INT,value:n.value});case W.FLOAT:return this.advanceLexer(),this.node(n,{kind:$e.FLOAT,value:n.value});case W.STRING:case W.BLOCK_STRING:return this.parseStringLiteral();case W.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:$e.BOOLEAN,value:!0});case"false":return this.node(n,{kind:$e.BOOLEAN,value:!1});case"null":return this.node(n,{kind:$e.NULL});default:return this.node(n,{kind:$e.ENUM,value:n.value})}case W.DOLLAR:if(t)if(this.expectToken(W.DOLLAR),this._lexer.token.kind===W.NAME){const a=this._lexer.token.value;throw Zt(this._lexer.source,n.start,`Unexpected variable "$${a}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:$e.STRING,value:t.value,block:t.kind===W.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:$e.LIST,values:this.any(W.BRACKET_L,n,W.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:$e.OBJECT,fields:this.any(W.BRACE_L,n,W.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,a=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:$e.OBJECT_FIELD,name:a,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(W.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(W.AT),this.node(n,{kind:$e.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(W.BRACKET_L)){const a=this.parseTypeReference();this.expectToken(W.BRACKET_R),n=this.node(t,{kind:$e.LIST_TYPE,type:a})}else n=this.parseNamedType();return this.expectOptionalToken(W.BANG)?this.node(t,{kind:$e.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:$e.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(W.STRING)||this.peek(W.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const a=this.parseConstDirectives(),s=this.many(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);return this.node(t,{kind:$e.SCHEMA_DEFINITION,description:n,directives:a,operationTypes:s})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(W.COLON);const a=this.parseNamedType();return this.node(t,{kind:$e.OPERATION_TYPE_DEFINITION,operation:n,type:a})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const a=this.parseName(),s=this.parseConstDirectives();return this.node(t,{kind:$e.SCALAR_TYPE_DEFINITION,description:n,name:a,directives:s})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:$e.OBJECT_TYPE_DEFINITION,description:n,name:a,interfaces:s,directives:o,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(W.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseFieldDefinition,W.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseName(),s=this.parseArgumentDefs();this.expectToken(W.COLON);const o=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:$e.FIELD_DEFINITION,description:n,name:a,arguments:s,type:o,directives:c})}parseArgumentDefs(){return this.optionalMany(W.PAREN_L,this.parseInputValueDef,W.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseName();this.expectToken(W.COLON);const s=this.parseTypeReference();let o;this.expectOptionalToken(W.EQUALS)&&(o=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:$e.INPUT_VALUE_DEFINITION,description:n,name:a,type:s,defaultValue:o,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:$e.INTERFACE_TYPE_DEFINITION,description:n,name:a,interfaces:s,directives:o,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const a=this.parseName(),s=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:$e.UNION_TYPE_DEFINITION,description:n,name:a,directives:s,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(W.EQUALS)?this.delimitedMany(W.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const a=this.parseName(),s=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:$e.ENUM_TYPE_DEFINITION,description:n,name:a,directives:s,values:o})}parseEnumValuesDefinition(){return this.optionalMany(W.BRACE_L,this.parseEnumValueDefinition,W.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseEnumValueName(),s=this.parseConstDirectives();return this.node(t,{kind:$e.ENUM_VALUE_DEFINITION,description:n,name:a,directives:s})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Zt(this._lexer.source,this._lexer.token.start,`${Ff(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const a=this.parseName(),s=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:$e.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:a,directives:s,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseInputValueDef,W.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===W.NAME)switch(t.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(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),a=this.optionalMany(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);if(n.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:$e.SCHEMA_EXTENSION,directives:n,operationTypes:a})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),a=this.parseConstDirectives();if(a.length===0)throw this.unexpected();return this.node(t,{kind:$e.SCALAR_TYPE_EXTENSION,name:n,directives:a})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(a.length===0&&s.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:$e.OBJECT_TYPE_EXTENSION,name:n,interfaces:a,directives:s,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(a.length===0&&s.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:$e.INTERFACE_TYPE_EXTENSION,name:n,interfaces:a,directives:s,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),a=this.parseConstDirectives(),s=this.parseUnionMemberTypes();if(a.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$e.UNION_TYPE_EXTENSION,name:n,directives:a,types:s})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),a=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();if(a.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$e.ENUM_TYPE_EXTENSION,name:n,directives:a,values:s})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),a=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();if(a.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$e.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:a,fields:s})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(W.AT);const a=this.parseName(),s=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const c=this.parseDirectiveLocations();return this.node(t,{kind:$e.DIRECTIVE_DEFINITION,description:n,name:a,arguments:s,repeatable:o,locations:c})}parseDirectiveLocations(){return this.delimitedMany(W.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(_v,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new w2(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Zt(this._lexer.source,n.start,`Expected ${jT(t)}, found ${Ff(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===W.NAME&&n.value===t)this.advanceLexer();else throw Zt(this._lexer.source,n.start,`Expected "${t}", found ${Ff(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===W.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Zt(this._lexer.source,n.start,`Unexpected ${Ff(n)}.`)}any(t,n,a){this.expectToken(t);const s=[];for(;!this.expectOptionalToken(a);)s.push(n.call(this));return s}optionalMany(t,n,a){if(this.expectOptionalToken(t)){const s=[];do s.push(n.call(this));while(!this.expectOptionalToken(a));return s}return[]}many(t,n,a){this.expectToken(t);const s=[];do s.push(n.call(this));while(!this.expectOptionalToken(a));return s}delimitedMany(t,n){this.expectOptionalToken(t);const a=[];do a.push(n.call(this));while(this.expectOptionalToken(t));return a}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==W.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Zt(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Ff(e){const t=e.value;return jT(e.kind)+(t!=null?` "${t}"`:"")}function jT(e){return k2(e)?`"${e}"`:e}function eM(e){return`"${e.replace(tM,nM)}"`}const tM=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function nM(e){return rM[e.charCodeAt(0)]}const rM=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],aM=Object.freeze({});function iM(e,t,n=TT){const a=new Map;for(const O of Object.values($e))a.set(O,sM(t,O));let s,o=Array.isArray(e),c=[e],h=-1,d=[],p=e,v,b;const y=[],_=[];do{h++;const O=h===c.length,R=O&&d.length!==0;if(O){if(v=_.length===0?void 0:y[y.length-1],p=b,b=_.pop(),R)if(o){p=p.slice();let U=0;for(const[C,w]of d){const q=C-U;w===null?(p.splice(q,1),U++):p[q]=w}}else{p={...p};for(const[U,C]of d)p[U]=C}h=s.index,c=s.keys,d=s.edits,o=s.inArray,s=s.prev}else if(b){if(v=o?h:c[h],p=b[v],p==null)continue;y.push(v)}let D;if(!Array.isArray(p)){var x,A;i_(p)||nd(!1,`Invalid AST Node: ${wy(p)}.`);const U=O?(x=a.get(p.kind))===null||x===void 0?void 0:x.leave:(A=a.get(p.kind))===null||A===void 0?void 0:A.enter;if(D=U==null?void 0:U.call(t,p,v,b,y,_),D===aM)break;if(D===!1){if(!O){y.pop();continue}}else if(D!==void 0&&(d.push([v,D]),!O))if(i_(D))p=D;else{y.pop();continue}}if(D===void 0&&R&&d.push([v,p]),O)y.pop();else{var N;s={inArray:o,index:h,keys:c,edits:d,prev:s},o=Array.isArray(p),c=o?p:(N=n[p.kind])!==null&&N!==void 0?N:[],h=-1,d=[],b&&_.push(b),b=p}}while(s!==void 0);return d.length!==0?d[d.length-1][1]:e}function sM(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function lM(e){return iM(e,uM)}const oM=80,uM={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>_e(e.definitions,`
|
|
101
|
+
spurious results.`)}}return!1};class DT{constructor(t,n="GraphQL request",a={line:1,column:1}){typeof t=="string"||nd(!1,`Body must be a string. Received: ${wy(t)}.`),this.body=t,this.name=n,this.locationOffset=a,this.locationOffset.line>0||nd(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||nd(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function rM(e){return nM(e,DT)}function aM(e,t){const n=new iM(e,t),a=n.parseDocument();return Object.defineProperty(a,"tokenCount",{enumerable:!1,value:n.tokenCount}),a}class iM{constructor(t,n={}){const a=rM(t)?t:new DT(t);this._lexer=new B2(a),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(W.NAME);return this.node(t,{kind:$e.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:$e.DOCUMENT,definitions:this.many(W.SOF,this.parseDefinition,W.EOF)})}parseDefinition(){if(this.peek(W.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===W.NAME){switch(n.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()}if(t)throw Zt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(W.BRACE_L))return this.node(t,{kind:$e.OPERATION_DEFINITION,operation:Ss.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let a;return this.peek(W.NAME)&&(a=this.parseName()),this.node(t,{kind:$e.OPERATION_DEFINITION,operation:n,name:a,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(W.NAME);switch(t.value){case"query":return Ss.QUERY;case"mutation":return Ss.MUTATION;case"subscription":return Ss.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(W.PAREN_L,this.parseVariableDefinition,W.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:$e.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(W.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(W.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(W.DOLLAR),this.node(t,{kind:$e.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:$e.SELECTION_SET,selections:this.many(W.BRACE_L,this.parseSelection,W.BRACE_R)})}parseSelection(){return this.peek(W.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let a,s;return this.expectOptionalToken(W.COLON)?(a=n,s=this.parseName()):s=n,this.node(t,{kind:$e.FIELD,alias:a,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(W.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(W.PAREN_L,n,W.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,a=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:$e.ARGUMENT,name:a,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(W.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(W.NAME)?this.node(t,{kind:$e.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:$e.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:$e.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:$e.FRAGMENT_DEFINITION,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(t){const n=this._lexer.token;switch(n.kind){case W.BRACKET_L:return this.parseList(t);case W.BRACE_L:return this.parseObject(t);case W.INT:return this.advanceLexer(),this.node(n,{kind:$e.INT,value:n.value});case W.FLOAT:return this.advanceLexer(),this.node(n,{kind:$e.FLOAT,value:n.value});case W.STRING:case W.BLOCK_STRING:return this.parseStringLiteral();case W.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:$e.BOOLEAN,value:!0});case"false":return this.node(n,{kind:$e.BOOLEAN,value:!1});case"null":return this.node(n,{kind:$e.NULL});default:return this.node(n,{kind:$e.ENUM,value:n.value})}case W.DOLLAR:if(t)if(this.expectToken(W.DOLLAR),this._lexer.token.kind===W.NAME){const a=this._lexer.token.value;throw Zt(this._lexer.source,n.start,`Unexpected variable "$${a}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:$e.STRING,value:t.value,block:t.kind===W.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:$e.LIST,values:this.any(W.BRACKET_L,n,W.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:$e.OBJECT,fields:this.any(W.BRACE_L,n,W.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,a=this.parseName();return this.expectToken(W.COLON),this.node(n,{kind:$e.OBJECT_FIELD,name:a,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(W.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(W.AT),this.node(n,{kind:$e.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(W.BRACKET_L)){const a=this.parseTypeReference();this.expectToken(W.BRACKET_R),n=this.node(t,{kind:$e.LIST_TYPE,type:a})}else n=this.parseNamedType();return this.expectOptionalToken(W.BANG)?this.node(t,{kind:$e.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:$e.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(W.STRING)||this.peek(W.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const a=this.parseConstDirectives(),s=this.many(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);return this.node(t,{kind:$e.SCHEMA_DEFINITION,description:n,directives:a,operationTypes:s})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(W.COLON);const a=this.parseNamedType();return this.node(t,{kind:$e.OPERATION_TYPE_DEFINITION,operation:n,type:a})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const a=this.parseName(),s=this.parseConstDirectives();return this.node(t,{kind:$e.SCALAR_TYPE_DEFINITION,description:n,name:a,directives:s})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:$e.OBJECT_TYPE_DEFINITION,description:n,name:a,interfaces:s,directives:o,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(W.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseFieldDefinition,W.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseName(),s=this.parseArgumentDefs();this.expectToken(W.COLON);const o=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:$e.FIELD_DEFINITION,description:n,name:a,arguments:s,type:o,directives:c})}parseArgumentDefs(){return this.optionalMany(W.PAREN_L,this.parseInputValueDef,W.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseName();this.expectToken(W.COLON);const s=this.parseTypeReference();let o;this.expectOptionalToken(W.EQUALS)&&(o=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:$e.INPUT_VALUE_DEFINITION,description:n,name:a,type:s,defaultValue:o,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:$e.INTERFACE_TYPE_DEFINITION,description:n,name:a,interfaces:s,directives:o,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const a=this.parseName(),s=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:$e.UNION_TYPE_DEFINITION,description:n,name:a,directives:s,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(W.EQUALS)?this.delimitedMany(W.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const a=this.parseName(),s=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:$e.ENUM_TYPE_DEFINITION,description:n,name:a,directives:s,values:o})}parseEnumValuesDefinition(){return this.optionalMany(W.BRACE_L,this.parseEnumValueDefinition,W.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseEnumValueName(),s=this.parseConstDirectives();return this.node(t,{kind:$e.ENUM_VALUE_DEFINITION,description:n,name:a,directives:s})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Zt(this._lexer.source,this._lexer.token.start,`${Ff(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const a=this.parseName(),s=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:$e.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:a,directives:s,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(W.BRACE_L,this.parseInputValueDef,W.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===W.NAME)switch(t.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(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),a=this.optionalMany(W.BRACE_L,this.parseOperationTypeDefinition,W.BRACE_R);if(n.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:$e.SCHEMA_EXTENSION,directives:n,operationTypes:a})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),a=this.parseConstDirectives();if(a.length===0)throw this.unexpected();return this.node(t,{kind:$e.SCALAR_TYPE_EXTENSION,name:n,directives:a})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(a.length===0&&s.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:$e.OBJECT_TYPE_EXTENSION,name:n,interfaces:a,directives:s,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(a.length===0&&s.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:$e.INTERFACE_TYPE_EXTENSION,name:n,interfaces:a,directives:s,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),a=this.parseConstDirectives(),s=this.parseUnionMemberTypes();if(a.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$e.UNION_TYPE_EXTENSION,name:n,directives:a,types:s})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),a=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();if(a.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$e.ENUM_TYPE_EXTENSION,name:n,directives:a,values:s})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),a=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();if(a.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:$e.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:a,fields:s})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(W.AT);const a=this.parseName(),s=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const c=this.parseDirectiveLocations();return this.node(t,{kind:$e.DIRECTIVE_DEFINITION,description:n,name:a,arguments:s,repeatable:o,locations:c})}parseDirectiveLocations(){return this.delimitedMany(W.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(_v,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new j2(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Zt(this._lexer.source,n.start,`Expected ${jT(t)}, found ${Ff(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===W.NAME&&n.value===t)this.advanceLexer();else throw Zt(this._lexer.source,n.start,`Expected "${t}", found ${Ff(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===W.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Zt(this._lexer.source,n.start,`Unexpected ${Ff(n)}.`)}any(t,n,a){this.expectToken(t);const s=[];for(;!this.expectOptionalToken(a);)s.push(n.call(this));return s}optionalMany(t,n,a){if(this.expectOptionalToken(t)){const s=[];do s.push(n.call(this));while(!this.expectOptionalToken(a));return s}return[]}many(t,n,a){this.expectToken(t);const s=[];do s.push(n.call(this));while(!this.expectOptionalToken(a));return s}delimitedMany(t,n){this.expectOptionalToken(t);const a=[];do a.push(n.call(this));while(this.expectOptionalToken(t));return a}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==W.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Zt(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Ff(e){const t=e.value;return jT(e.kind)+(t!=null?` "${t}"`:"")}function jT(e){return F2(e)?`"${e}"`:e}function sM(e){return`"${e.replace(lM,oM)}"`}const lM=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function oM(e){return uM[e.charCodeAt(0)]}const uM=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],cM=Object.freeze({});function fM(e,t,n=TT){const a=new Map;for(const O of Object.values($e))a.set(O,dM(t,O));let s,o=Array.isArray(e),c=[e],h=-1,d=[],p=e,v,b;const y=[],_=[];do{h++;const O=h===c.length,R=O&&d.length!==0;if(O){if(v=_.length===0?void 0:y[y.length-1],p=b,b=_.pop(),R)if(o){p=p.slice();let U=0;for(const[C,w]of d){const q=C-U;w===null?(p.splice(q,1),U++):p[q]=w}}else{p={...p};for(const[U,C]of d)p[U]=C}h=s.index,c=s.keys,d=s.edits,o=s.inArray,s=s.prev}else if(b){if(v=o?h:c[h],p=b[v],p==null)continue;y.push(v)}let D;if(!Array.isArray(p)){var x,A;i_(p)||nd(!1,`Invalid AST Node: ${wy(p)}.`);const U=O?(x=a.get(p.kind))===null||x===void 0?void 0:x.leave:(A=a.get(p.kind))===null||A===void 0?void 0:A.enter;if(D=U==null?void 0:U.call(t,p,v,b,y,_),D===cM)break;if(D===!1){if(!O){y.pop();continue}}else if(D!==void 0&&(d.push([v,D]),!O))if(i_(D))p=D;else{y.pop();continue}}if(D===void 0&&R&&d.push([v,p]),O)y.pop();else{var N;s={inArray:o,index:h,keys:c,edits:d,prev:s},o=Array.isArray(p),c=o?p:(N=n[p.kind])!==null&&N!==void 0?N:[],h=-1,d=[],b&&_.push(b),b=p}}while(s!==void 0);return d.length!==0?d[d.length-1][1]:e}function dM(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function hM(e){return fM(e,mM)}const pM=80,mM={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ee(e.definitions,`
|
|
102
102
|
|
|
103
|
-
`)},OperationDefinition:{leave(e){const t=Je("(",
|
|
104
|
-
`,rd(
|
|
103
|
+
`)},OperationDefinition:{leave(e){const t=Je("(",Ee(e.variableDefinitions,", "),")"),n=Ee([e.operation,Ee([e.name,t]),Ee(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:a})=>e+": "+t+Je(" = ",n)+Je(" ",Ee(a," "))},SelectionSet:{leave:({selections:e})=>Or(e)},Field:{leave({alias:e,name:t,arguments:n,directives:a,selectionSet:s}){const o=Je("",e,": ")+t;let c=o+Je("(",Ee(n,", "),")");return c.length>pM&&(c=o+Je(`(
|
|
104
|
+
`,rd(Ee(n,`
|
|
105
105
|
`)),`
|
|
106
|
-
)`)),
|
|
107
|
-
`)+
|
|
108
|
-
`)+
|
|
109
|
-
`)+
|
|
106
|
+
)`)),Ee([c,Ee(a," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Je(" ",Ee(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ee(["...",Je("on ",e),Ee(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:a,selectionSet:s})=>`fragment ${e}${Je("(",Ee(n,", "),")")} on ${t} ${Je("",Ee(a," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?L2(e):sM(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ee(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ee(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Je("(",Ee(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Je("",e,`
|
|
107
|
+
`)+Ee(["schema",Ee(t," "),Or(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Je("",e,`
|
|
108
|
+
`)+Ee(["scalar",t,Ee(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:a,fields:s})=>Je("",e,`
|
|
109
|
+
`)+Ee(["type",t,Je("implements ",Ee(n," & ")),Ee(a," "),Or(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:a,directives:s})=>Je("",e,`
|
|
110
110
|
`)+t+(l_(n)?Je(`(
|
|
111
|
-
`,rd(
|
|
111
|
+
`,rd(Ee(n,`
|
|
112
112
|
`)),`
|
|
113
|
-
)`):Je("(",
|
|
114
|
-
`)+
|
|
115
|
-
`)+
|
|
116
|
-
`)+
|
|
117
|
-
`)+
|
|
118
|
-
`)+
|
|
119
|
-
`)+
|
|
113
|
+
)`):Je("(",Ee(n,", "),")"))+": "+a+Je(" ",Ee(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:a,directives:s})=>Je("",e,`
|
|
114
|
+
`)+Ee([t+": "+n,Je("= ",a),Ee(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:a,fields:s})=>Je("",e,`
|
|
115
|
+
`)+Ee(["interface",t,Je("implements ",Ee(n," & ")),Ee(a," "),Or(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:a})=>Je("",e,`
|
|
116
|
+
`)+Ee(["union",t,Ee(n," "),Je("= ",Ee(a," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:a})=>Je("",e,`
|
|
117
|
+
`)+Ee(["enum",t,Ee(n," "),Or(a)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Je("",e,`
|
|
118
|
+
`)+Ee([t,Ee(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:a})=>Je("",e,`
|
|
119
|
+
`)+Ee(["input",t,Ee(n," "),Or(a)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:a,locations:s})=>Je("",e,`
|
|
120
120
|
`)+"directive @"+t+(l_(n)?Je(`(
|
|
121
|
-
`,rd(
|
|
121
|
+
`,rd(Ee(n,`
|
|
122
122
|
`)),`
|
|
123
|
-
)`):Je("(",
|
|
124
|
-
`,rd(
|
|
123
|
+
)`):Je("(",Ee(n,", "),")"))+(a?" repeatable":"")+" on "+Ee(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ee(["extend schema",Ee(e," "),Or(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ee(["extend scalar",e,Ee(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:a})=>Ee(["extend type",e,Je("implements ",Ee(t," & ")),Ee(n," "),Or(a)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:a})=>Ee(["extend interface",e,Je("implements ",Ee(t," & ")),Ee(n," "),Or(a)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ee(["extend union",e,Ee(t," "),Je("= ",Ee(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ee(["extend enum",e,Ee(t," "),Or(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ee(["extend input",e,Ee(t," "),Or(n)]," ")}};function Ee(e,t=""){var n;return(n=e==null?void 0:e.filter(a=>a).join(t))!==null&&n!==void 0?n:""}function Or(e){return Je(`{
|
|
124
|
+
`,rd(Ee(e,`
|
|
125
125
|
`)),`
|
|
126
126
|
}`)}function Je(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function rd(e){return Je(" ",e.replace(/\n/g,`
|
|
127
127
|
`))}function l_(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
|
|
128
|
-
`)))!==null&&t!==void 0?t:!1}const o_="Accept",Ov="Content-Type",Tv="application/json",kT="application/graphql-response+json",u_=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),
|
|
128
|
+
`)))!==null&&t!==void 0?t:!1}const o_="Accept",Ov="Content-Type",Tv="application/json",kT="application/graphql-response+json",u_=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),vM=e=>{const t=e.toLowerCase();return t.includes(kT)||t.includes(Tv)},c_=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(f_)};if(td(e))return{_tag:"Single",executionResult:f_(e)};throw new Error(`Invalid execution result: result is not object or array.
|
|
129
129
|
Got:
|
|
130
|
-
${String(e)}`)}catch(t){return t}},f_=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,a;if("errors"in e){if(!td(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!td(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!td(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");a=e.extensions}return{data:n,errors:t,extensions:a}},fM=e=>e._tag==="Batch"?e.executionResults.some(d_):d_(e.executionResult),d_=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,MT=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===$e.OPERATION_DEFINITION,dM=e=>{var a;let t;const n=e.definitions.filter(MT);return n.length===1&&(t=(a=n[0].name)==null?void 0:a.value),t},hM=e=>{let t=!1;const n=e.definitions.filter(MT);return n.length===1&&(t=n[0].operation===Ss.MUTATION),t},Mm=(e,t)=>{const n=typeof e=="string"?e:lM(e);let a=!1,s;if(t)return{expression:n,isMutation:a,operationName:s};const o=v2(()=>typeof e=="string"?J2(e):e);return o instanceof Error?{expression:n,isMutation:a,operationName:s}:(s=dM(o),a=hM(o),{expression:n,operationName:s,isMutation:a})},Ay=JSON,Um=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":t_(e.method??"post"):e.request.hasMutations?"POST":t_(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},a=await mM(t.method)(t);if(!a.ok)return new Kl({status:a.status,headers:a.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const s=await pM(a,e.fetchOptions.jsonSerializer??Ay);if(s instanceof Error)throw s;const o={status:a.status,headers:a.headers};if(fM(s)&&t.fetchOptions.errorPolicy==="none"){const c=s._tag==="Batch"?{...s.executionResults,...o}:{...s.executionResult,...o};return new Kl(c,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(s._tag){case"Single":return{...o,...h_(t)(s.executionResult)};case"Batch":return{...o,data:s.executionResults.map(h_(t))};default:Ty(s)}},h_=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),pM=async(e,t)=>{const n=e.headers.get(Ov),a=await e.text();return n&&cM(n)?c_(t.parse(a)):c_(a)},mM=e=>async t=>{const n=new Headers(t.headers);let a=null,s;n.has(o_)||n.set(o_,[kT,Tv].join(", ")),e==="POST"?(s=(t.fetchOptions.jsonSerializer??Ay).stringify(vM(t)),typeof s=="string"&&!n.has(Ov)&&n.set(Ov,Tv)):a=yM(t);const o={method:e,headers:n,body:s,...t.fetchOptions};let c=new URL(t.url),h=o;if(t.middleware){const p=await Promise.resolve(t.middleware({...o,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:v,...b}=p;c=new URL(v),h=b}return a&&a.forEach((p,v)=>{c.searchParams.append(v,p)}),await(t.fetch??fetch)(c,h)},vM=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return ET(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw Ty(e.request)}},yM=e=>{var a;const t=e.fetchOptions.jsonSerializer??Ay,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",u_(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const s=((a=e.request.variables)==null?void 0:a.map(h=>t.stringify(h)))??[],o=e.request.query.map(u_),c=ET(o,s).map(([h,d])=>({query:h,variables:d}));return n.append("query",t.stringify(c)),n}default:throw Ty(e.request)}};class gM{constructor(t,n={}){Ta(this,"url");Ta(this,"requestConfig");Ta(this,"rawRequest",async(...t)=>{const[n,a,s]=t,o=b2(n,a,s),{headers:c,fetch:h=globalThis.fetch,method:d="POST",requestMiddleware:p,responseMiddleware:v,excludeOperationName:b,...y}=this.requestConfig,{url:_}=this;o.signal!==void 0&&(y.signal=o.signal);const x=Mm(o.query,b),A=await Um({url:_,request:{_tag:"Single",document:x,variables:o.variables},headers:{...Ul(jm(c)),...Ul(o.requestHeaders)},fetch:h,method:d,fetchOptions:y,middleware:p});if(v&&await v(A,{operationName:x.operationName,variables:a,url:this.url}),A instanceof Error)throw A;return A});this.url=t,this.requestConfig=n}async request(t,...n){const[a,s]=n,o=bM(t,a,s),{headers:c,fetch:h=globalThis.fetch,method:d="POST",requestMiddleware:p,responseMiddleware:v,excludeOperationName:b,...y}=this.requestConfig,{url:_}=this;o.signal!==void 0&&(y.signal=o.signal);const x=Mm(o.document,b),A=await Um({url:_,request:{_tag:"Single",document:x,variables:o.variables},headers:{...Ul(jm(c)),...Ul(o.requestHeaders)},fetch:h,method:d,fetchOptions:y,middleware:p});if(v&&await v(A,{operationName:x.operationName,variables:o.variables,url:this.url}),A instanceof Error)throw A;return A.data}async batchRequests(t,n){const a=g2(t,n),{headers:s,excludeOperationName:o,...c}=this.requestConfig;a.signal!==void 0&&(c.signal=a.signal);const h=a.documents.map(({document:y})=>Mm(y,o)),d=h.map(({expression:y})=>y),p=h.some(({isMutation:y})=>y),v=a.documents.map(({variables:y})=>y),b=await Um({url:this.url,request:{_tag:"Batch",operationName:void 0,query:d,hasMutations:p,variables:v},headers:{...Ul(jm(s)),...Ul(a.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:c,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(b,{operationName:void 0,variables:v,url:this.url}),b instanceof Error)throw b;return b.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:a}=this.requestConfig;return a?a[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const bM=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},wv=window.location.origin+"/graphql",UT=(e,t)=>{const[n,a]=S.useState(!1),[s,o]=S.useState(!1),[c,h]=S.useState(null),[d,p]=S.useState(null),v=S.useRef(null);return S.useEffect(()=>{v.current=({variables:y})=>{if(n)return Promise.reject(new Error("Mutation already in progress"));o(!0),a(!0),h(null);const _=new AbortController,x={...t,variables:y,signal:_.signal};return lo(e,x).then(A=>(p(A),h(null),t.onSuccess&&t.onSuccess(A),A)).catch(A=>{throw p(null),h(A),A}).finally(()=>{a(!1),_.abort()})}},[e,n,t]),[S.useCallback(({variables:y})=>v.current?v.current({variables:y}):Promise.reject(new Error("Mutation function not initialized")),[]),{data:d,loading:n,error:c,called:s}]},Hs=(e,t,n)=>{const[a,s]=S.useState(!0),[o,c]=S.useState(!1),[h,d]=S.useState(null),[p,v]=S.useState(null),b=S.useRef(null),y=S.useMemo(()=>t,[t.document,t.variables&&JSON.stringify(t.variables),t.skip]),_=S.useRef(t.onCompleted);S.useEffect(()=>{_.current=t.onCompleted});const x=S.useCallback(R=>{var D;(D=_.current)==null||D.call(_,R)},[]),A=S.useCallback(()=>{console.log("[useQuery2] load",{options:y}),b.current&&b.current.abort();const R=new AbortController;b.current=R;const D=lo(e,{...y,signal:R.signal},n);return D.then(U=>{console.log("[useQuery2] result",U),v(U),d(null),x(U)}).catch(U=>{U.name==="AbortError"?console.log("[useQuery2] Request was aborted"):(console.error("[useQuery2] error",U),v(null),d(U))}).finally(()=>{b.current===R&&(b.current=null)}),D},[e,n,x,y]);S.useEffect(()=>{if(!t.skip)return s(!0),A().finally(()=>{s(!1)}),()=>{b.current&&b.current.abort()}},[A,t.skip]);const N=S.useCallback(R=>(R!=null&&R.background||c(!0),A().finally(()=>{R!=null&&R.background||c(!1)})),[A]),O=S.useCallback(async({variables:R,updateQuery:D})=>{c(!0);const U=new AbortController;try{const C={...y,variables:R??y.variables,signal:U.signal},w=await lo(e,C,n);v(D?q=>D(q,w):w),d(null),x(w)}catch(C){throw C instanceof Error&&C.name==="AbortError"?console.log("[useQuery2] fetchMore request was aborted"):C instanceof Error?d(C):d(new Error("Unknown error"+C)),C}finally{c(!1),U.abort()}},[e,n,x,y]);return{data:p,setData:v,loading:a,error:h,reload:N,reloading:o,fetchMore:O}};async function lo(e,t,n){var c;const a={},s=(n==null?void 0:n.apiKey)??((c=e.loggedIn)==null?void 0:c.apiKey);return s&&(a.Authorization=`apikey:${s}`),new gM(wv,{headers:a}).request(t)}const SM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LoginRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubApiKeyByKey"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"allHubCasinos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]}}]},EM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoBankrolls"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubBankrollsByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"expectedValue"}},{kind:"Field",name:{kind:"Name",value:"bets"}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"casinoId"}}]}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"wagered"}}]}}]}}]}}]}}]},_M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoCurrencies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]},xM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoDeposits"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubDepositsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"key"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]}}]}}]},OM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoExperiences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubExperiencesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]},TM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoJwks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubJwkSetSnapshotsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwks"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hubJwkSetByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"jwks"}}]}}]}}]}}]},wM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCasinoUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubUsersByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}},{kind:"Field",name:{kind:"Name",value:"mpUserId"}}]}}]}}]}}]}}]}}]},AM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoWithdrawals"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubWithdrawalsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"statusAt"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}}]}}]}}]}}]}}]}}]}}]},NM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HubAddCasinoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubAddCasino"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"casino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}}]}}]}}]}}]},CM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBankroll"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubBankrollByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubBankrollById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubBankroll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}}]}}]}}]}}]},RM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubCasinoByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},DM={"\n query LoginRequest($key: UUID!) {\n hubApiKeyByKey(key: $key) {\n id\n }\n allHubCasinos {\n nodes {\n id\n name\n graphqlUrl\n baseUrl\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n }\n":SM,"\n query GetCasinoBankrolls($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubBankrollsByCasinoId {\n nodes {\n id\n amount\n expectedValue\n bets\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n casinoId\n }\n currencyKey\n wagered\n }\n }\n }\n }\n":EM,"\n query GetCasinoCurrencies($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n":_M,"\n query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n amount\n userId\n currencyKey\n hubUserByUserId {\n id\n uname\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n displayUnitName\n displayUnitScale\n key\n }\n hubExperienceByExperienceId {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n }\n }\n":xM,"\n query GetCasinoExperiences($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubExperiencesByCasinoId {\n nodes {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n":OM,"\n query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {\n hubCasinoById(id: $casinoId) {\n hubJwkSetSnapshotsByCasinoId(\n orderBy: ID_DESC\n after: $after\n first: $first\n ) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n jwks\n id\n }\n }\n }\n hubJwkSetByCasinoId {\n updatedAt\n jwks\n }\n }\n }\n":TM,"\n query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n id\n hubUsersByCasinoId(after: $after, first: 10) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n uname\n mpUserId\n }\n }\n }\n }\n }\n":wM,"\n query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n status\n statusAt\n amount\n hubUserByUserId {\n id\n uname\n }\n hubExperienceByExperienceId {\n id\n name\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n }\n }\n }\n }\n }\n }\n":AM,"\n mutation AddCasino($input: HubAddCasinoInput!) {\n hubAddCasino(input: $input) {\n casino {\n id\n name\n baseUrl\n graphqlUrl\n }\n }\n }\n":NM,"\n mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {\n updateHubBankrollById(input: $input) {\n hubBankroll {\n id\n amount\n currencyKey\n }\n }\n }\n":CM,"\n mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {\n updateHubCasinoById(input: $input) {\n hubCasino {\n id\n }\n }\n }\n":RM};function Lr(e){return DM[e]??{}}function Ps(e){const t=e.replace("-","").substring(0,12),n=BigInt("0x"+t);return n===0n?new Date:new Date(Number(n))}const p_={isGraphQLError(e){return e instanceof Error&&"request"in e&&"response"in e},getErrorMessage(e){var t;return((t=e.response.errors[0])==null?void 0:t.message)??e.message},getErrorCode(e){var t,n;return(n=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:n.code},getPgExceptionCode(e){var t,n,a;return(a=(n=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:n.exception)==null?void 0:a.code}};function Kn(e){return e?p_.isGraphQLError(e)?p_.getErrorMessage(e):e instanceof Error?e.message:String(e):"Unknown error"}function Ny(e,t,n={excludeUnit:!1,locale:navigator.language}){const a=e/(t.displayUnitScale||1),s=t.displayUnitScale===0?0:t.displayUnitScale<100?1:2,o=new Intl.NumberFormat(n.locale,{minimumFractionDigits:s,maximumFractionDigits:s,useGrouping:!0});return n.excludeUnit?o.format(a):`${o.format(a)} ${t.displayUnitName}`}function jM(e){return e.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}const m_=Lr(`
|
|
130
|
+
${String(e)}`)}catch(t){return t}},f_=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,a;if("errors"in e){if(!td(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!td(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!td(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");a=e.extensions}return{data:n,errors:t,extensions:a}},yM=e=>e._tag==="Batch"?e.executionResults.some(d_):d_(e.executionResult),d_=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,MT=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===$e.OPERATION_DEFINITION,gM=e=>{var a;let t;const n=e.definitions.filter(MT);return n.length===1&&(t=(a=n[0].name)==null?void 0:a.value),t},bM=e=>{let t=!1;const n=e.definitions.filter(MT);return n.length===1&&(t=n[0].operation===Ss.MUTATION),t},Mm=(e,t)=>{const n=typeof e=="string"?e:hM(e);let a=!1,s;if(t)return{expression:n,isMutation:a,operationName:s};const o=_2(()=>typeof e=="string"?aM(e):e);return o instanceof Error?{expression:n,isMutation:a,operationName:s}:(s=gM(o),a=bM(o),{expression:n,operationName:s,isMutation:a})},Ay=JSON,Um=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":t_(e.method??"post"):e.request.hasMutations?"POST":t_(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},a=await EM(t.method)(t);if(!a.ok)return new Kl({status:a.status,headers:a.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const s=await SM(a,e.fetchOptions.jsonSerializer??Ay);if(s instanceof Error)throw s;const o={status:a.status,headers:a.headers};if(yM(s)&&t.fetchOptions.errorPolicy==="none"){const c=s._tag==="Batch"?{...s.executionResults,...o}:{...s.executionResult,...o};return new Kl(c,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(s._tag){case"Single":return{...o,...h_(t)(s.executionResult)};case"Batch":return{...o,data:s.executionResults.map(h_(t))};default:Ty(s)}},h_=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),SM=async(e,t)=>{const n=e.headers.get(Ov),a=await e.text();return n&&vM(n)?c_(t.parse(a)):c_(a)},EM=e=>async t=>{const n=new Headers(t.headers);let a=null,s;n.has(o_)||n.set(o_,[kT,Tv].join(", ")),e==="POST"?(s=(t.fetchOptions.jsonSerializer??Ay).stringify(_M(t)),typeof s=="string"&&!n.has(Ov)&&n.set(Ov,Tv)):a=xM(t);const o={method:e,headers:n,body:s,...t.fetchOptions};let c=new URL(t.url),h=o;if(t.middleware){const p=await Promise.resolve(t.middleware({...o,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:v,...b}=p;c=new URL(v),h=b}return a&&a.forEach((p,v)=>{c.searchParams.append(v,p)}),await(t.fetch??fetch)(c,h)},_M=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return ET(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw Ty(e.request)}},xM=e=>{var a;const t=e.fetchOptions.jsonSerializer??Ay,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",u_(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const s=((a=e.request.variables)==null?void 0:a.map(h=>t.stringify(h)))??[],o=e.request.query.map(u_),c=ET(o,s).map(([h,d])=>({query:h,variables:d}));return n.append("query",t.stringify(c)),n}default:throw Ty(e.request)}};class OM{constructor(t,n={}){Ta(this,"url");Ta(this,"requestConfig");Ta(this,"rawRequest",async(...t)=>{const[n,a,s]=t,o=T2(n,a,s),{headers:c,fetch:h=globalThis.fetch,method:d="POST",requestMiddleware:p,responseMiddleware:v,excludeOperationName:b,...y}=this.requestConfig,{url:_}=this;o.signal!==void 0&&(y.signal=o.signal);const x=Mm(o.query,b),A=await Um({url:_,request:{_tag:"Single",document:x,variables:o.variables},headers:{...Ul(jm(c)),...Ul(o.requestHeaders)},fetch:h,method:d,fetchOptions:y,middleware:p});if(v&&await v(A,{operationName:x.operationName,variables:a,url:this.url}),A instanceof Error)throw A;return A});this.url=t,this.requestConfig=n}async request(t,...n){const[a,s]=n,o=TM(t,a,s),{headers:c,fetch:h=globalThis.fetch,method:d="POST",requestMiddleware:p,responseMiddleware:v,excludeOperationName:b,...y}=this.requestConfig,{url:_}=this;o.signal!==void 0&&(y.signal=o.signal);const x=Mm(o.document,b),A=await Um({url:_,request:{_tag:"Single",document:x,variables:o.variables},headers:{...Ul(jm(c)),...Ul(o.requestHeaders)},fetch:h,method:d,fetchOptions:y,middleware:p});if(v&&await v(A,{operationName:x.operationName,variables:o.variables,url:this.url}),A instanceof Error)throw A;return A.data}async batchRequests(t,n){const a=O2(t,n),{headers:s,excludeOperationName:o,...c}=this.requestConfig;a.signal!==void 0&&(c.signal=a.signal);const h=a.documents.map(({document:y})=>Mm(y,o)),d=h.map(({expression:y})=>y),p=h.some(({isMutation:y})=>y),v=a.documents.map(({variables:y})=>y),b=await Um({url:this.url,request:{_tag:"Batch",operationName:void 0,query:d,hasMutations:p,variables:v},headers:{...Ul(jm(s)),...Ul(a.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:c,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(b,{operationName:void 0,variables:v,url:this.url}),b instanceof Error)throw b;return b.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:a}=this.requestConfig;return a?a[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const TM=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},wv=window.location.origin+"/graphql",UT=(e,t)=>{const[n,a]=S.useState(!1),[s,o]=S.useState(!1),[c,h]=S.useState(null),[d,p]=S.useState(null),v=S.useRef(null);return S.useEffect(()=>{v.current=({variables:y})=>{if(n)return Promise.reject(new Error("Mutation already in progress"));o(!0),a(!0),h(null);const _=new AbortController,x={...t,variables:y,signal:_.signal};return lo(e,x).then(A=>(p(A),h(null),t.onSuccess&&t.onSuccess(A),A)).catch(A=>{throw p(null),h(A),A}).finally(()=>{a(!1),_.abort()})}},[e,n,t]),[S.useCallback(({variables:y})=>v.current?v.current({variables:y}):Promise.reject(new Error("Mutation function not initialized")),[]),{data:d,loading:n,error:c,called:s}]},Hs=(e,t,n)=>{const[a,s]=S.useState(!0),[o,c]=S.useState(!1),[h,d]=S.useState(null),[p,v]=S.useState(null),b=S.useRef(null),y=S.useMemo(()=>t,[t.document,t.variables&&JSON.stringify(t.variables),t.skip]),_=S.useRef(t.onCompleted);S.useEffect(()=>{_.current=t.onCompleted});const x=S.useCallback(R=>{var D;(D=_.current)==null||D.call(_,R)},[]),A=S.useCallback(()=>{console.log("[useQuery2] load",{options:y}),b.current&&b.current.abort();const R=new AbortController;b.current=R;const D=lo(e,{...y,signal:R.signal},n);return D.then(U=>{console.log("[useQuery2] result",U),v(U),d(null),x(U)}).catch(U=>{U.name==="AbortError"?console.log("[useQuery2] Request was aborted"):(console.error("[useQuery2] error",U),v(null),d(U))}).finally(()=>{b.current===R&&(b.current=null)}),D},[e,n,x,y]);S.useEffect(()=>{if(!t.skip)return s(!0),A().finally(()=>{s(!1)}),()=>{b.current&&b.current.abort()}},[A,t.skip]);const N=S.useCallback(R=>(R!=null&&R.background||c(!0),A().finally(()=>{R!=null&&R.background||c(!1)})),[A]),O=S.useCallback(async({variables:R,updateQuery:D})=>{c(!0);const U=new AbortController;try{const C={...y,variables:R??y.variables,signal:U.signal},w=await lo(e,C,n);v(D?q=>D(q,w):w),d(null),x(w)}catch(C){throw C instanceof Error&&C.name==="AbortError"?console.log("[useQuery2] fetchMore request was aborted"):C instanceof Error?d(C):d(new Error("Unknown error"+C)),C}finally{c(!1),U.abort()}},[e,n,x,y]);return{data:p,setData:v,loading:a,error:h,reload:N,reloading:o,fetchMore:O}};async function lo(e,t,n){var c;const a={},s=(n==null?void 0:n.apiKey)??((c=e.loggedIn)==null?void 0:c.apiKey);return s&&(a.Authorization=`apikey:${s}`),new OM(wv,{headers:a}).request(t)}const wM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LoginRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubApiKeyByKey"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"allHubCasinos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]}}]},AM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoBankrolls"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubBankrollsByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"expectedValue"}},{kind:"Field",name:{kind:"Name",value:"bets"}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"casinoId"}}]}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"wagered"}}]}}]}}]}}]}}]},NM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoCurrencies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]},CM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoDeposits"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubDepositsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"key"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]}}]}}]},RM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoExperiences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubExperiencesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]},DM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoJwks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubJwkSetSnapshotsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwks"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hubJwkSetByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"jwks"}}]}}]}}]}}]},jM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCasinoUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubUsersByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}},{kind:"Field",name:{kind:"Name",value:"mpUserId"}}]}}]}}]}}]}}]}}]},kM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoWithdrawals"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubWithdrawalsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"statusAt"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}}]}}]}}]}}]}}]}}]}}]},MM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HubAddCasinoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubAddCasino"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"casino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}}]}}]}}]}}]},UM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBankroll"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubBankrollByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubBankrollById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubBankroll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}}]}}]}}]}}]},$M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubCasinoByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},LM={"\n query LoginRequest($key: UUID!) {\n hubApiKeyByKey(key: $key) {\n id\n }\n allHubCasinos {\n nodes {\n id\n name\n graphqlUrl\n baseUrl\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n }\n":wM,"\n query GetCasinoBankrolls($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubBankrollsByCasinoId {\n nodes {\n id\n amount\n expectedValue\n bets\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n casinoId\n }\n currencyKey\n wagered\n }\n }\n }\n }\n":AM,"\n query GetCasinoCurrencies($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n":NM,"\n query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n amount\n userId\n currencyKey\n hubUserByUserId {\n id\n uname\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n displayUnitName\n displayUnitScale\n key\n }\n hubExperienceByExperienceId {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n }\n }\n":CM,"\n query GetCasinoExperiences($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubExperiencesByCasinoId {\n nodes {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n":RM,"\n query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {\n hubCasinoById(id: $casinoId) {\n hubJwkSetSnapshotsByCasinoId(\n orderBy: ID_DESC\n after: $after\n first: $first\n ) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n jwks\n id\n }\n }\n }\n hubJwkSetByCasinoId {\n updatedAt\n jwks\n }\n }\n }\n":DM,"\n query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n id\n hubUsersByCasinoId(after: $after, first: 10) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n uname\n mpUserId\n }\n }\n }\n }\n }\n":jM,"\n query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n status\n statusAt\n amount\n hubUserByUserId {\n id\n uname\n }\n hubExperienceByExperienceId {\n id\n name\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n }\n }\n }\n }\n }\n }\n":kM,"\n mutation AddCasino($input: HubAddCasinoInput!) {\n hubAddCasino(input: $input) {\n casino {\n id\n name\n baseUrl\n graphqlUrl\n }\n }\n }\n":MM,"\n mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {\n updateHubBankrollById(input: $input) {\n hubBankroll {\n id\n amount\n currencyKey\n }\n }\n }\n":UM,"\n mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {\n updateHubCasinoById(input: $input) {\n hubCasino {\n id\n }\n }\n }\n":$M};function Lr(e){return LM[e]??{}}function Ps(e){const t=e.replace("-","").substring(0,12),n=BigInt("0x"+t);return n===0n?new Date:new Date(Number(n))}const p_={isGraphQLError(e){return e instanceof Error&&"request"in e&&"response"in e},getErrorMessage(e){var t;return((t=e.response.errors[0])==null?void 0:t.message)??e.message},getErrorCode(e){var t,n;return(n=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:n.code},getPgExceptionCode(e){var t,n,a;return(a=(n=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:n.exception)==null?void 0:a.code}};function Qn(e){return e?p_.isGraphQLError(e)?p_.getErrorMessage(e):e instanceof Error?e.message:String(e):"Unknown error"}function Ny(e,t,n={excludeUnit:!1,locale:navigator.language}){const a=e/(t.displayUnitScale||1),s=t.displayUnitScale===0?0:t.displayUnitScale<100?1:2,o=new Intl.NumberFormat(n.locale,{minimumFractionDigits:s,maximumFractionDigits:s,useGrouping:!0});return n.excludeUnit?o.format(a):`${o.format(a)} ${t.displayUnitName}`}function BM(e){return e.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}const m_=Lr(`
|
|
131
131
|
query LoginRequest($key: UUID!) {
|
|
132
132
|
hubApiKeyByKey(key: $key) {
|
|
133
133
|
id
|
|
@@ -148,24 +148,24 @@ ${String(e)}`)}catch(t){return t}},f_=e=>{if(typeof e!="object"||e===null)throw
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
`);class
|
|
151
|
+
`);class FM{constructor(){Ta(this,"loginError",null);Ta(this,"loggingIn",!1);Ta(this,"loggedIn",null);Hk(this)}setLoggingIn(t){this.loggingIn=t}setLoginError(t){this.loginError=t}setLoggedIn(t){this.loggedIn=t}setCasinos(t){this.loggedIn&&(this.loggedIn.casinos=t)}async refetchCasinos(){if(!this.loggedIn)throw new Error("Not logged in");const t=await lo(this,{document:m_,variables:{key:this.loggedIn.apiKey}}),n=v_(t.allHubCasinos);this.setCasinos(n)}logout(){localStorage.removeItem("api_key"),this.setLoggedIn(null)}async login(t){var n;if(this.loggedIn)throw new Error("Already logged in");this.setLoggingIn(!0);try{const a=await lo(this,{document:m_,variables:{key:t}},{apiKey:t});if(console.log("[useAuth] LoadedinitResult",a),!((n=a.hubApiKeyByKey)!=null&&n.id))return;localStorage.setItem("api_key",t);const s=v_(a.allHubCasinos),o={apiKey:t,casinos:s};return this.setLoggedIn(o),o}catch(a){throw console.log("[useAuth] Error logging in",a),this.setLoginError(Qn(a)),this.setLoggedIn(null),a}finally{this.setLoggingIn(!1)}}}function v_(e){return(e==null?void 0:e.nodes.flatMap(n=>{var a;return n?{...n,hubCurrenciesByCasinoId:{nodes:((a=n.hubCurrenciesByCasinoId)==null?void 0:a.nodes.flatMap(s=>s||[]))||[]}}:[]}))||[]}const $T=S.createContext(void 0),IM=Gt(({store:e,children:t})=>g.jsx($T.Provider,{value:e,children:t})),sn=()=>{const e=S.useContext($T);if(!e)throw new Error("useStore must be used within a StoreProvider");return e};var $m={exports:{}};/*!
|
|
152
152
|
Copyright (c) 2018 Jed Watson.
|
|
153
153
|
Licensed under the MIT License (MIT), see
|
|
154
154
|
http://jedwatson.github.io/classnames
|
|
155
|
-
*/var y_;function UM(){return y_||(y_=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",c=0;c<arguments.length;c++){var h=arguments[c];h&&(o=s(o,a(h)))}return o}function a(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var h in o)t.call(o,h)&&o[h]&&(c=s(c,h));return c}function s(o,c){return c?o?o+" "+c:o+c:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}($m)),$m.exports}var $M=UM();const Se=Bs($M);function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Av.apply(null,arguments)}function LT(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function g_(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function LM(e){var t=BM(e,"string");return typeof t=="symbol"?t:String(t)}function BM(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BT(e,t,n){var a=S.useRef(e!==void 0),s=S.useState(t),o=s[0],c=s[1],h=e!==void 0,d=a.current;return a.current=h,!h&&d&&o!==t&&c(t),[h?e:o,S.useCallback(function(p){for(var v=arguments.length,b=new Array(v>1?v-1:0),y=1;y<v;y++)b[y-1]=arguments[y];n&&n.apply(void 0,[p].concat(b)),c(p)},[n])]}function Cy(e,t){return Object.keys(t).reduce(function(n,a){var s,o=n,c=o[g_(a)],h=o[a],d=LT(o,[g_(a),a].map(LM)),p=t[a],v=BT(h,c,e[p]),b=v[0],y=v[1];return Av({},d,(s={},s[a]=b,s[p]=y,s))},e)}function Nv(e,t){return Nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nv(e,t)}function FM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nv(e,t)}const FT=["xxl","xl","lg","md","sm","xs"],IT="xs",cc=S.createContext({prefixes:{},breakpoints:FT,minBreakpoint:IT}),{Consumer:N6,Provider:C6}=cc;function Re(e,t){const{prefixes:n}=S.useContext(cc);return e||n[t]||t}function Ry(){const{breakpoints:e}=S.useContext(cc);return e}function Dy(){const{minBreakpoint:e}=S.useContext(cc);return e}function jy(){const{dir:e}=S.useContext(cc);return e==="rtl"}function yo(e){return e&&e.ownerDocument||document}function IM(e){var t=yo(e);return t&&t.defaultView||window}function zM(e,t){return IM(e).getComputedStyle(e,t)}var qM=/([A-Z])/g;function VM(e){return e.replace(qM,"-$1").toLowerCase()}var HM=/^ms-/;function If(e){return VM(e).replace(HM,"-ms-")}var PM=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function GM(e){return!!(e&&PM.test(e))}function Ba(e,t){var n="",a="";if(typeof t=="string")return e.style.getPropertyValue(If(t))||zM(e).getPropertyValue(If(t));Object.keys(t).forEach(function(s){var o=t[s];!o&&o!==0?e.style.removeProperty(If(s)):GM(s)?a+=s+"("+o+") ":n+=If(s)+": "+o+";"}),a&&(n+="transform: "+a+";"),e.style.cssText+=";"+n}var Lm={exports:{}},Bm,b_;function YM(){if(b_)return Bm;b_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bm=e,Bm}var Fm,S_;function KM(){if(S_)return Fm;S_=1;var e=YM();function t(){}function n(){}return n.resetWarningCache=t,Fm=function(){function a(c,h,d,p,v,b){if(b!==e){var y=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 y.name="Invariant Violation",y}}a.isRequired=a;function s(){return a}var o={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Fm}var E_;function QM(){return E_||(E_=1,Lm.exports=KM()()),Lm.exports}var XM=QM();const Pe=Bs(XM),__={disabled:!1},zT=mt.createContext(null);var ZM=function(t){return t.scrollTop},Ru="unmounted",_i="exited",Cr="entering",ka="entered",Gu="exiting",Pa=function(e){FM(t,e);function t(a,s){var o;o=e.call(this,a,s)||this;var c=s,h=c&&!c.isMounting?a.enter:a.appear,d;return o.appearStatus=null,a.in?h?(d=_i,o.appearStatus=Cr):d=ka:a.unmountOnExit||a.mountOnEnter?d=Ru:d=_i,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var c=s.in;return c&&o.status===Ru?{status:_i}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var o=null;if(s!==this.props){var c=this.state.status;this.props.in?c!==Cr&&c!==ka&&(o=Cr):(c===Cr||c===ka)&&(o=Gu)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,o,c,h;return o=c=h=s,s!=null&&typeof s!="number"&&(o=s.exit,c=s.enter,h=s.appear!==void 0?s.appear:c),{exit:o,enter:c,appear:h}},n.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===Cr){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this);c&&ZM(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_i&&this.setState({status:Ru})},n.performEnter=function(s){var o=this,c=this.props.enter,h=this.context?this.context.isMounting:s,d=this.props.nodeRef?[h]:[bs.findDOMNode(this),h],p=d[0],v=d[1],b=this.getTimeouts(),y=h?b.appear:b.enter;if(!s&&!c||__.disabled){this.safeSetState({status:ka},function(){o.props.onEntered(p)});return}this.props.onEnter(p,v),this.safeSetState({status:Cr},function(){o.props.onEntering(p,v),o.onTransitionEnd(y,function(){o.safeSetState({status:ka},function(){o.props.onEntered(p,v)})})})},n.performExit=function(){var s=this,o=this.props.exit,c=this.getTimeouts(),h=this.props.nodeRef?void 0:bs.findDOMNode(this);if(!o||__.disabled){this.safeSetState({status:_i},function(){s.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:Gu},function(){s.props.onExiting(h),s.onTransitionEnd(c.exit,function(){s.safeSetState({status:_i},function(){s.props.onExited(h)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},n.setNextCallback=function(s){var o=this,c=!0;return this.nextCallback=function(h){c&&(c=!1,o.nextCallback=null,s(h))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(s,o){this.setNextCallback(o);var c=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this),h=s==null&&!this.props.addEndListener;if(!c||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=d[0],v=d[1];this.props.addEndListener(p,v)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===Ru)return null;var o=this.props,c=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var h=LT(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return mt.createElement(zT.Provider,{value:null},typeof c=="function"?c(s,h):mt.cloneElement(mt.Children.only(c),h))},t}(mt.Component);Pa.contextType=zT;Pa.propTypes={};function $l(){}Pa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$l,onEntering:$l,onEntered:$l,onExit:$l,onExiting:$l,onExited:$l};Pa.UNMOUNTED=Ru;Pa.EXITED=_i;Pa.ENTERING=Cr;Pa.ENTERED=ka;Pa.EXITING=Gu;function qT(e){return e.code==="Escape"||e.keyCode===27}function JM(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Gs(e){if(!e||typeof e=="function")return null;const{major:t}=JM();return t>=19?e.props.ref:e.ref}const go=!!(typeof window<"u"&&window.document&&window.document.createElement);var Cv=!1,Rv=!1;try{var Im={get passive(){return Cv=!0},get once(){return Rv=Cv=!0}};go&&(window.addEventListener("test",Im,Im),window.removeEventListener("test",Im,!0))}catch{}function VT(e,t,n,a){if(a&&typeof a!="boolean"&&!Rv){var s=a.once,o=a.capture,c=n;!Rv&&s&&(c=n.__once||function h(d){this.removeEventListener(t,h,o),n.call(this,d)},n.__once=c),e.addEventListener(t,c,Cv?a:o)}e.addEventListener(t,n,a)}function Dv(e,t,n,a){var s=a&&typeof a!="boolean"?a.capture:a;e.removeEventListener(t,n,s),n.__once&&e.removeEventListener(t,n.__once,s)}function Ma(e,t,n,a){return VT(e,t,n,a),function(){Dv(e,t,n,a)}}function WM(e,t,n,a){if(a===void 0&&(a=!0),e){var s=document.createEvent("HTMLEvents");s.initEvent(t,n,a),e.dispatchEvent(s)}}function eU(e){var t=Ba(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function tU(e,t,n){n===void 0&&(n=5);var a=!1,s=setTimeout(function(){a||WM(e,"transitionend",!0)},t+n),o=Ma(e,"transitionend",function(){a=!0},{once:!0});return function(){clearTimeout(s),o()}}function HT(e,t,n,a){n==null&&(n=eU(e)||0);var s=tU(e,n,a),o=Ma(e,"transitionend",t);return function(){s(),o()}}function x_(e,t){const n=Ba(e,t)||"",a=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*a}function ky(e,t){const n=x_(e,"transitionDuration"),a=x_(e,"transitionDelay"),s=HT(e,o=>{o.target===e&&(s(),t(o))},n+a)}function xu(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...s){t.apply(this,s),n.apply(this,s)}},null)}function PT(e){e.offsetHeight}const O_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function nU(e,t){const n=O_(e),a=O_(t);return s=>{n&&n(s),a&&a(s)}}function Yd(e,t){return S.useMemo(()=>nU(e,t),[e,t])}function _d(e){return e&&"setState"in e?bs.findDOMNode(e):e??null}const My=mt.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:a,onExiting:s,onExited:o,addEndListener:c,children:h,childRef:d,...p},v)=>{const b=S.useRef(null),y=Yd(b,d),_=w=>{y(_d(w))},x=w=>q=>{w&&b.current&&w(b.current,q)},A=S.useCallback(x(e),[e]),N=S.useCallback(x(t),[t]),O=S.useCallback(x(n),[n]),R=S.useCallback(x(a),[a]),D=S.useCallback(x(s),[s]),U=S.useCallback(x(o),[o]),C=S.useCallback(x(c),[c]);return g.jsx(Pa,{ref:v,...p,onEnter:A,onEntered:O,onEntering:N,onExit:R,onExited:U,onExiting:D,addEndListener:C,nodeRef:b,children:typeof h=="function"?(w,q)=>h(w,{...q,ref:_}):mt.cloneElement(h,{ref:_})})}),rU={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function aU(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,a=t[n],s=rU[e];return a+parseInt(Ba(t,s[0]),10)+parseInt(Ba(t,s[1]),10)}const iU={[_i]:"collapse",[Gu]:"collapsing",[Cr]:"collapsing",[ka]:"collapse show"},sU=mt.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:a,onExiting:s,className:o,children:c,dimension:h="height",in:d=!1,timeout:p=300,mountOnEnter:v=!1,unmountOnExit:b=!1,appear:y=!1,getDimensionValue:_=aU,...x},A)=>{const N=typeof h=="function"?h():h,O=S.useMemo(()=>xu(w=>{w.style[N]="0"},e),[N,e]),R=S.useMemo(()=>xu(w=>{const q=`scroll${N[0].toUpperCase()}${N.slice(1)}`;w.style[N]=`${w[q]}px`},t),[N,t]),D=S.useMemo(()=>xu(w=>{w.style[N]=null},n),[N,n]),U=S.useMemo(()=>xu(w=>{w.style[N]=`${_(N,w)}px`,PT(w)},a),[a,_,N]),C=S.useMemo(()=>xu(w=>{w.style[N]=null},s),[N,s]);return g.jsx(My,{ref:A,addEndListener:ky,...x,"aria-expanded":x.role?d:null,onEnter:O,onEntering:R,onEntered:D,onExit:U,onExiting:C,childRef:Gs(c),in:d,timeout:p,mountOnEnter:v,unmountOnExit:b,appear:y,children:(w,q)=>mt.cloneElement(c,{...q,className:Se(o,c.props.className,iU[w],N==="width"&&"collapse-horizontal")})})});function lU(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function ki(e){const t=lU(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fc=e=>S.forwardRef((t,n)=>g.jsx("div",{...t,ref:n,className:Se(t.className,e)})),GT=fc("h4");GT.displayName="DivStyledAsH4";const YT=S.forwardRef(({className:e,bsPrefix:t,as:n=GT,...a},s)=>(t=Re(t,"alert-heading"),g.jsx(n,{ref:s,className:Se(e,t),...a})));YT.displayName="AlertHeading";function T_(){return S.useState(null)}function oU(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function dr(e){const t=oU(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function KT(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function uU(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const cU=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",fU=typeof document<"u",w_=fU||cU?S.useLayoutEffect:S.useEffect,dU=["as","disabled"];function hU(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function pU(e){return!e||e.trim()==="#"}function Uy({tagName:e,disabled:t,href:n,target:a,rel:s,role:o,onClick:c,tabIndex:h=0,type:d}){e||(n!=null||a!=null||s!=null?e="a":e="button");const p={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},p];const v=y=>{if((t||e==="a"&&pU(n))&&y.preventDefault(),t){y.stopPropagation();return}c==null||c(y)},b=y=>{y.key===" "&&(y.preventDefault(),v(y))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:h,href:n,target:e==="a"?a:void 0,"aria-disabled":t||void 0,rel:e==="a"?s:void 0,onClick:v,onKeyDown:b},p]}const QT=S.forwardRef((e,t)=>{let{as:n,disabled:a}=e,s=hU(e,dU);const[o,{tagName:c}]=Uy(Object.assign({tagName:n,disabled:a},s));return g.jsx(c,Object.assign({},s,o,{ref:t}))});QT.displayName="Button";const mU=["onKeyDown"];function vU(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function yU(e){return!e||e.trim()==="#"}const Kd=S.forwardRef((e,t)=>{let{onKeyDown:n}=e,a=vU(e,mU);const[s]=Uy(Object.assign({tagName:"a"},a)),o=dr(c=>{s.onKeyDown(c),n==null||n(c)});return yU(a.href)||a.role==="button"?g.jsx("a",Object.assign({ref:t},a,s,{onKeyDown:o})):g.jsx("a",Object.assign({ref:t},a,{onKeyDown:n}))});Kd.displayName="Anchor";const XT=S.forwardRef(({className:e,bsPrefix:t,as:n=Kd,...a},s)=>(t=Re(t,"alert-link"),g.jsx(n,{ref:s,className:Se(e,t),...a})));XT.displayName="AlertLink";const gU={[Cr]:"show",[ka]:"show"},Mi=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:a,...s},o)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...s},h=S.useCallback((d,p)=>{PT(d),a==null||a(d,p)},[a]);return g.jsx(My,{ref:o,addEndListener:ky,...c,onEnter:h,childRef:Gs(t),children:(d,p)=>S.cloneElement(t,{...p,className:Se("fade",e,t.props.className,gU[d],n[d])})})});Mi.displayName="Fade";const bU={"aria-label":Pe.string,onClick:Pe.func,variant:Pe.oneOf(["white"])},Qd=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...a},s)=>g.jsx("button",{ref:s,type:"button",className:Se("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...a}));Qd.displayName="CloseButton";Qd.propTypes=bU;const ZT=S.forwardRef((e,t)=>{const{bsPrefix:n,show:a=!0,closeLabel:s="Close alert",closeVariant:o,className:c,children:h,variant:d="primary",onClose:p,dismissible:v,transition:b=Mi,...y}=Cy(e,{show:"onClose"}),_=Re(n,"alert"),x=ki(O=>{p&&p(!1,O)}),A=b===!0?Mi:b,N=g.jsxs("div",{role:"alert",...A?void 0:y,ref:t,className:Se(c,_,d&&`${_}-${d}`,v&&`${_}-dismissible`),children:[v&&g.jsx(Qd,{onClick:x,"aria-label":s,variant:o}),h]});return A?g.jsx(A,{unmountOnExit:!0,...y,ref:void 0,in:a,children:N}):a?N:null});ZT.displayName="Alert";const vr=Object.assign(ZT,{Link:XT,Heading:YT}),JT=S.forwardRef(({bsPrefix:e,active:t=!1,children:n,className:a,as:s="li",linkAs:o=Kd,linkProps:c={},href:h,title:d,target:p,...v},b)=>{const y=Re(e,"breadcrumb-item");return g.jsx(s,{ref:b,...v,className:Se(y,a,{active:t}),"aria-current":t?"page":void 0,children:t?n:g.jsx(o,{...c,href:h,title:d,target:p,children:n})})});JT.displayName="BreadcrumbItem";const WT=S.forwardRef(({bsPrefix:e,className:t,listProps:n={},children:a,label:s="breadcrumb",as:o="nav",...c},h)=>{const d=Re(e,"breadcrumb");return g.jsx(o,{"aria-label":s,className:t,ref:h,...c,children:g.jsx("ol",{...n,className:Se(d,n==null?void 0:n.className),children:a})})});WT.displayName="Breadcrumb";const zm=Object.assign(WT,{Item:JT}),Jt=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:a,active:s=!1,disabled:o=!1,className:c,...h},d)=>{const p=Re(t,"btn"),[v,{tagName:b}]=Uy({tagName:e,disabled:o,...h}),y=b;return g.jsx(y,{...v,...h,ref:d,disabled:o,className:Se(c,p,s&&"active",n&&`${p}-${n}`,a&&`${p}-${a}`,h.href&&o&&"disabled")})});Jt.displayName="Button";const $y=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"card-body"),g.jsx(n,{ref:s,className:Se(e,t),...a})));$y.displayName="CardBody";const ew=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"card-footer"),g.jsx(n,{ref:s,className:Se(e,t),...a})));ew.displayName="CardFooter";const Ly=S.createContext(null);Ly.displayName="CardHeaderContext";const tw=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...a},s)=>{const o=Re(e,"card-header"),c=S.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return g.jsx(Ly.Provider,{value:c,children:g.jsx(n,{ref:s,...a,className:Se(t,o)})})});tw.displayName="CardHeader";const nw=S.forwardRef(({bsPrefix:e,className:t,variant:n,as:a="img",...s},o)=>{const c=Re(e,"card-img");return g.jsx(a,{ref:o,className:Se(n?`${c}-${n}`:c,t),...s})});nw.displayName="CardImg";const rw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"card-img-overlay"),g.jsx(n,{ref:s,className:Se(e,t),...a})));rw.displayName="CardImgOverlay";const aw=S.forwardRef(({className:e,bsPrefix:t,as:n="a",...a},s)=>(t=Re(t,"card-link"),g.jsx(n,{ref:s,className:Se(e,t),...a})));aw.displayName="CardLink";const SU=fc("h6"),iw=S.forwardRef(({className:e,bsPrefix:t,as:n=SU,...a},s)=>(t=Re(t,"card-subtitle"),g.jsx(n,{ref:s,className:Se(e,t),...a})));iw.displayName="CardSubtitle";const sw=S.forwardRef(({className:e,bsPrefix:t,as:n="p",...a},s)=>(t=Re(t,"card-text"),g.jsx(n,{ref:s,className:Se(e,t),...a})));sw.displayName="CardText";const EU=fc("h5"),lw=S.forwardRef(({className:e,bsPrefix:t,as:n=EU,...a},s)=>(t=Re(t,"card-title"),g.jsx(n,{ref:s,className:Se(e,t),...a})));lw.displayName="CardTitle";const ow=S.forwardRef(({bsPrefix:e,className:t,bg:n,text:a,border:s,body:o=!1,children:c,as:h="div",...d},p)=>{const v=Re(e,"card");return g.jsx(h,{ref:p,...d,className:Se(t,v,n&&`bg-${n}`,a&&`text-${a}`,s&&`border-${s}`),children:o?g.jsx($y,{children:c}):c})});ow.displayName="Card";const Ql=Object.assign(ow,{Img:nw,Title:lw,Subtitle:iw,Body:$y,Link:aw,Text:sw,Header:tw,Footer:ew,ImgOverlay:rw});function _U(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function xU(e){const t=S.useRef(e);return t.current=e,t}function uw(e){const t=xU(e);S.useEffect(()=>()=>t.current(),[])}const jv=2**31-1;function cw(e,t,n){const a=n-Date.now();e.current=a<=jv?setTimeout(t,a):setTimeout(()=>cw(e,t,n),jv)}function OU(){const e=_U(),t=S.useRef();return uw(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function a(s,o=0){e()&&(n(),o<=jv?t.current=setTimeout(s,o):cw(t,s,Date.now()+o))}return{set:a,clear:n,handleRef:t}},[])}function TU(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function wU({as:e,bsPrefix:t,className:n,...a}){t=Re(t,"col");const s=Ry(),o=Dy(),c=[],h=[];return s.forEach(d=>{const p=a[d];delete a[d];let v,b,y;typeof p=="object"&&p!=null?{span:v,offset:b,order:y}=p:v=p;const _=d!==o?`-${d}`:"";v&&c.push(v===!0?`${t}${_}`:`${t}${_}-${v}`),y!=null&&h.push(`order${_}-${y}`),b!=null&&h.push(`offset${_}-${b}`)}),[{...a,className:Se(n,...c,...h)},{as:e,bsPrefix:t,spans:c}]}const Xd=S.forwardRef((e,t)=>{const[{className:n,...a},{as:s="div",bsPrefix:o,spans:c}]=wU(e);return g.jsx(s,{...a,ref:t,className:Se(n,!c.length&&o)})});Xd.displayName="Col";const dc=S.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:a,...s},o)=>{const c=Re(e,"container"),h=typeof t=="string"?`-${t}`:"-fluid";return g.jsx(n,{ref:o,...s,className:Se(a,t?`${c}${h}`:c)})});dc.displayName="Container";var AU=Function.prototype.bind.call(Function.prototype.call,[].slice);function ms(e,t){return AU(e.querySelectorAll(t))}function NU(){const[,e]=S.useReducer(t=>t+1,0);return e}var A_=Object.prototype.hasOwnProperty;function N_(e,t,n){for(n of e.keys())if(ku(n,t))return n}function ku(e,t){var n,a,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)for(;a--&&ku(e[a],t[a]););return a===-1}if(n===Set){if(e.size!==t.size)return!1;for(a of e)if(s=a,s&&typeof s=="object"&&(s=N_(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(a of e)if(s=a[0],s&&typeof s=="object"&&(s=N_(t,s),!s)||!ku(a[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((a=e.byteLength)===t.byteLength)for(;a--&&e.getInt8(a)===t.getInt8(a););return a===-1}if(ArrayBuffer.isView(e)){if((a=e.byteLength)===t.byteLength)for(;a--&&e[a]===t[a];);return a===-1}if(!n||typeof e=="object"){a=0;for(n in e)if(A_.call(e,n)&&++a&&!A_.call(t,n)||!(n in t)||!ku(e[n],t[n]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}function CU(e){const t=KT();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Nn="top",yr="bottom",gr="right",Cn="left",By="auto",hc=[Nn,yr,gr,Cn],oo="start",Yu="end",RU="clippingParents",fw="viewport",Ou="popper",DU="reference",C_=hc.reduce(function(e,t){return e.concat([t+"-"+oo,t+"-"+Yu])},[]),dw=[].concat(hc,[By]).reduce(function(e,t){return e.concat([t,t+"-"+oo,t+"-"+Yu])},[]),jU="beforeRead",kU="read",MU="afterRead",UU="beforeMain",$U="main",LU="afterMain",BU="beforeWrite",FU="write",IU="afterWrite",zU=[jU,kU,MU,UU,$U,LU,BU,FU,IU];function na(e){return e.split("-")[0]}function Gn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $s(e){var t=Gn(e).Element;return e instanceof t||e instanceof Element}function ra(e){var t=Gn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fy(e){if(typeof ShadowRoot>"u")return!1;var t=Gn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ns=Math.max,xd=Math.min,uo=Math.round;function kv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function hw(){return!/^((?!chrome|android).)*safari/i.test(kv())}function co(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),s=1,o=1;t&&ra(e)&&(s=e.offsetWidth>0&&uo(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uo(a.height)/e.offsetHeight||1);var c=$s(e)?Gn(e):window,h=c.visualViewport,d=!hw()&&n,p=(a.left+(d&&h?h.offsetLeft:0))/s,v=(a.top+(d&&h?h.offsetTop:0))/o,b=a.width/s,y=a.height/o;return{width:b,height:y,top:v,right:p+b,bottom:v+y,left:p,x:p,y:v}}function Iy(e){var t=co(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function pw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fy(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ui(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){return Gn(e).getComputedStyle(e)}function qU(e){return["table","td","th"].indexOf(Ui(e))>=0}function qi(e){return(($s(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return Ui(e)==="html"?e:e.assignedSlot||e.parentNode||(Fy(e)?e.host:null)||qi(e)}function R_(e){return!ra(e)||za(e).position==="fixed"?null:e.offsetParent}function VU(e){var t=/firefox/i.test(kv()),n=/Trident/i.test(kv());if(n&&ra(e)){var a=za(e);if(a.position==="fixed")return null}var s=Zd(e);for(Fy(s)&&(s=s.host);ra(s)&&["html","body"].indexOf(Ui(s))<0;){var o=za(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function pc(e){for(var t=Gn(e),n=R_(e);n&&qU(n)&&za(n).position==="static";)n=R_(n);return n&&(Ui(n)==="html"||Ui(n)==="body"&&za(n).position==="static")?t:n||VU(e)||t}function zy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mu(e,t,n){return Ns(e,xd(t,n))}function HU(e,t,n){var a=Mu(e,t,n);return a>n?n:a}function mw(){return{top:0,right:0,bottom:0,left:0}}function vw(e){return Object.assign({},mw(),e)}function yw(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var PU=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,vw(typeof t!="number"?t:yw(t,hc))};function GU(e){var t,n=e.state,a=e.name,s=e.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,h=na(n.placement),d=zy(h),p=[Cn,gr].indexOf(h)>=0,v=p?"height":"width";if(!(!o||!c)){var b=PU(s.padding,n),y=Iy(o),_=d==="y"?Nn:Cn,x=d==="y"?yr:gr,A=n.rects.reference[v]+n.rects.reference[d]-c[d]-n.rects.popper[v],N=c[d]-n.rects.reference[d],O=pc(o),R=O?d==="y"?O.clientHeight||0:O.clientWidth||0:0,D=A/2-N/2,U=b[_],C=R-y[v]-b[x],w=R/2-y[v]/2+D,q=Mu(U,w,C),re=d;n.modifiersData[a]=(t={},t[re]=q,t.centerOffset=q-w,t)}}function YU(e){var t=e.state,n=e.options,a=n.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||pw(t.elements.popper,s)&&(t.elements.arrow=s))}const KU={name:"arrow",enabled:!0,phase:"main",fn:GU,effect:YU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fo(e){return e.split("-")[1]}var QU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function XU(e,t){var n=e.x,a=e.y,s=t.devicePixelRatio||1;return{x:uo(n*s)/s||0,y:uo(a*s)/s||0}}function D_(e){var t,n=e.popper,a=e.popperRect,s=e.placement,o=e.variation,c=e.offsets,h=e.position,d=e.gpuAcceleration,p=e.adaptive,v=e.roundOffsets,b=e.isFixed,y=c.x,_=y===void 0?0:y,x=c.y,A=x===void 0?0:x,N=typeof v=="function"?v({x:_,y:A}):{x:_,y:A};_=N.x,A=N.y;var O=c.hasOwnProperty("x"),R=c.hasOwnProperty("y"),D=Cn,U=Nn,C=window;if(p){var w=pc(n),q="clientHeight",re="clientWidth";if(w===Gn(n)&&(w=qi(n),za(w).position!=="static"&&h==="absolute"&&(q="scrollHeight",re="scrollWidth")),w=w,s===Nn||(s===Cn||s===gr)&&o===Yu){U=yr;var Q=b&&w===C&&C.visualViewport?C.visualViewport.height:w[q];A-=Q-a.height,A*=d?1:-1}if(s===Cn||(s===Nn||s===yr)&&o===Yu){D=gr;var he=b&&w===C&&C.visualViewport?C.visualViewport.width:w[re];_-=he-a.width,_*=d?1:-1}}var ie=Object.assign({position:h},p&&QU),xe=v===!0?XU({x:_,y:A},Gn(n)):{x:_,y:A};if(_=xe.x,A=xe.y,d){var fe;return Object.assign({},ie,(fe={},fe[U]=R?"0":"",fe[D]=O?"0":"",fe.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+A+"px)":"translate3d("+_+"px, "+A+"px, 0)",fe))}return Object.assign({},ie,(t={},t[U]=R?A+"px":"",t[D]=O?_+"px":"",t.transform="",t))}function ZU(e){var t=e.state,n=e.options,a=n.gpuAcceleration,s=a===void 0?!0:a,o=n.adaptive,c=o===void 0?!0:o,h=n.roundOffsets,d=h===void 0?!0:h,p={placement:na(t.placement),variation:fo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D_(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D_(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZU,data:{}};var zf={passive:!0};function WU(e){var t=e.state,n=e.instance,a=e.options,s=a.scroll,o=s===void 0?!0:s,c=a.resize,h=c===void 0?!0:c,d=Gn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&p.forEach(function(v){v.addEventListener("scroll",n.update,zf)}),h&&d.addEventListener("resize",n.update,zf),function(){o&&p.forEach(function(v){v.removeEventListener("scroll",n.update,zf)}),h&&d.removeEventListener("resize",n.update,zf)}}const e$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WU,data:{}};var t$={left:"right",right:"left",bottom:"top",top:"bottom"};function ad(e){return e.replace(/left|right|bottom|top/g,function(t){return t$[t]})}var n$={start:"end",end:"start"};function j_(e){return e.replace(/start|end/g,function(t){return n$[t]})}function qy(e){var t=Gn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Vy(e){return co(qi(e)).left+qy(e).scrollLeft}function r$(e,t){var n=Gn(e),a=qi(e),s=n.visualViewport,o=a.clientWidth,c=a.clientHeight,h=0,d=0;if(s){o=s.width,c=s.height;var p=hw();(p||!p&&t==="fixed")&&(h=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:h+Vy(e),y:d}}function a$(e){var t,n=qi(e),a=qy(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Ns(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Ns(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),h=-a.scrollLeft+Vy(e),d=-a.scrollTop;return za(s||n).direction==="rtl"&&(h+=Ns(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:h,y:d}}function Hy(e){var t=za(e),n=t.overflow,a=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+a)}function gw(e){return["html","body","#document"].indexOf(Ui(e))>=0?e.ownerDocument.body:ra(e)&&Hy(e)?e:gw(Zd(e))}function Uu(e,t){var n;t===void 0&&(t=[]);var a=gw(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),o=Gn(a),c=s?[o].concat(o.visualViewport||[],Hy(a)?a:[]):a,h=t.concat(c);return s?h:h.concat(Uu(Zd(c)))}function Mv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function i$(e,t){var n=co(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function k_(e,t,n){return t===fw?Mv(r$(e,n)):$s(t)?i$(t,n):Mv(a$(qi(e)))}function s$(e){var t=Uu(Zd(e)),n=["absolute","fixed"].indexOf(za(e).position)>=0,a=n&&ra(e)?pc(e):e;return $s(a)?t.filter(function(s){return $s(s)&&pw(s,a)&&Ui(s)!=="body"}):[]}function l$(e,t,n,a){var s=t==="clippingParents"?s$(e):[].concat(t),o=[].concat(s,[n]),c=o[0],h=o.reduce(function(d,p){var v=k_(e,p,a);return d.top=Ns(v.top,d.top),d.right=xd(v.right,d.right),d.bottom=xd(v.bottom,d.bottom),d.left=Ns(v.left,d.left),d},k_(e,c,a));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function bw(e){var t=e.reference,n=e.element,a=e.placement,s=a?na(a):null,o=a?fo(a):null,c=t.x+t.width/2-n.width/2,h=t.y+t.height/2-n.height/2,d;switch(s){case Nn:d={x:c,y:t.y-n.height};break;case yr:d={x:c,y:t.y+t.height};break;case gr:d={x:t.x+t.width,y:h};break;case Cn:d={x:t.x-n.width,y:h};break;default:d={x:t.x,y:t.y}}var p=s?zy(s):null;if(p!=null){var v=p==="y"?"height":"width";switch(o){case oo:d[p]=d[p]-(t[v]/2-n[v]/2);break;case Yu:d[p]=d[p]+(t[v]/2-n[v]/2);break}}return d}function Ku(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=a===void 0?e.placement:a,o=n.strategy,c=o===void 0?e.strategy:o,h=n.boundary,d=h===void 0?RU:h,p=n.rootBoundary,v=p===void 0?fw:p,b=n.elementContext,y=b===void 0?Ou:b,_=n.altBoundary,x=_===void 0?!1:_,A=n.padding,N=A===void 0?0:A,O=vw(typeof N!="number"?N:yw(N,hc)),R=y===Ou?DU:Ou,D=e.rects.popper,U=e.elements[x?R:y],C=l$($s(U)?U:U.contextElement||qi(e.elements.popper),d,v,c),w=co(e.elements.reference),q=bw({reference:w,element:D,placement:s}),re=Mv(Object.assign({},D,q)),Q=y===Ou?re:w,he={top:C.top-Q.top+O.top,bottom:Q.bottom-C.bottom+O.bottom,left:C.left-Q.left+O.left,right:Q.right-C.right+O.right},ie=e.modifiersData.offset;if(y===Ou&&ie){var xe=ie[s];Object.keys(he).forEach(function(fe){var me=[gr,yr].indexOf(fe)>=0?1:-1,we=[Nn,yr].indexOf(fe)>=0?"y":"x";he[fe]+=xe[we]*me})}return he}function o$(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,h=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?dw:d,v=fo(a),b=v?h?C_:C_.filter(function(x){return fo(x)===v}):hc,y=b.filter(function(x){return p.indexOf(x)>=0});y.length===0&&(y=b);var _=y.reduce(function(x,A){return x[A]=Ku(e,{placement:A,boundary:s,rootBoundary:o,padding:c})[na(A)],x},{});return Object.keys(_).sort(function(x,A){return _[x]-_[A]})}function u$(e){if(na(e)===By)return[];var t=ad(e);return[j_(e),t,j_(t)]}function c$(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,h=c===void 0?!0:c,d=n.fallbackPlacements,p=n.padding,v=n.boundary,b=n.rootBoundary,y=n.altBoundary,_=n.flipVariations,x=_===void 0?!0:_,A=n.allowedAutoPlacements,N=t.options.placement,O=na(N),R=O===N,D=d||(R||!x?[ad(N)]:u$(N)),U=[N].concat(D).reduce(function(se,Ee){return se.concat(na(Ee)===By?o$(t,{placement:Ee,boundary:v,rootBoundary:b,padding:p,flipVariations:x,allowedAutoPlacements:A}):Ee)},[]),C=t.rects.reference,w=t.rects.popper,q=new Map,re=!0,Q=U[0],he=0;he<U.length;he++){var ie=U[he],xe=na(ie),fe=fo(ie)===oo,me=[Nn,yr].indexOf(xe)>=0,we=me?"width":"height",L=Ku(t,{placement:ie,boundary:v,rootBoundary:b,altBoundary:y,padding:p}),te=me?fe?gr:Cn:fe?yr:Nn;C[we]>w[we]&&(te=ad(te));var le=ad(te),Ae=[];if(o&&Ae.push(L[xe]<=0),h&&Ae.push(L[te]<=0,L[le]<=0),Ae.every(function(se){return se})){Q=ie,re=!1;break}q.set(ie,Ae)}if(re)for(var k=x?3:1,Y=function(Ee){var ve=U.find(function(dt){var qe=q.get(dt);if(qe)return qe.slice(0,Ee).every(function(Rt){return Rt})});if(ve)return Q=ve,"break"},ae=k;ae>0;ae--){var ne=Y(ae);if(ne==="break")break}t.placement!==Q&&(t.modifiersData[a]._skip=!0,t.placement=Q,t.reset=!0)}}const f$={name:"flip",enabled:!0,phase:"main",fn:c$,requiresIfExists:["offset"],data:{_skip:!1}};function M_(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function U_(e){return[Nn,gr,yr,Cn].some(function(t){return e[t]>=0})}function d$(e){var t=e.state,n=e.name,a=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,c=Ku(t,{elementContext:"reference"}),h=Ku(t,{altBoundary:!0}),d=M_(c,a),p=M_(h,s,o),v=U_(d),b=U_(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:v,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":b})}const h$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:d$};function p$(e,t,n){var a=na(e),s=[Cn,Nn].indexOf(a)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=o[0],h=o[1];return c=c||0,h=(h||0)*s,[Cn,gr].indexOf(a)>=0?{x:h,y:c}:{x:c,y:h}}function m$(e){var t=e.state,n=e.options,a=e.name,s=n.offset,o=s===void 0?[0,0]:s,c=dw.reduce(function(v,b){return v[b]=p$(b,t.rects,o),v},{}),h=c[t.placement],d=h.x,p=h.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=c}const v$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m$};function y$(e){var t=e.state,n=e.name;t.modifiersData[n]=bw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const g$={name:"popperOffsets",enabled:!0,phase:"read",fn:y$,data:{}};function b$(e){return e==="x"?"y":"x"}function S$(e){var t=e.state,n=e.options,a=e.name,s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,h=c===void 0?!1:c,d=n.boundary,p=n.rootBoundary,v=n.altBoundary,b=n.padding,y=n.tether,_=y===void 0?!0:y,x=n.tetherOffset,A=x===void 0?0:x,N=Ku(t,{boundary:d,rootBoundary:p,padding:b,altBoundary:v}),O=na(t.placement),R=fo(t.placement),D=!R,U=zy(O),C=b$(U),w=t.modifiersData.popperOffsets,q=t.rects.reference,re=t.rects.popper,Q=typeof A=="function"?A(Object.assign({},t.rects,{placement:t.placement})):A,he=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),ie=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,xe={x:0,y:0};if(w){if(o){var fe,me=U==="y"?Nn:Cn,we=U==="y"?yr:gr,L=U==="y"?"height":"width",te=w[U],le=te+N[me],Ae=te-N[we],k=_?-re[L]/2:0,Y=R===oo?q[L]:re[L],ae=R===oo?-re[L]:-q[L],ne=t.elements.arrow,se=_&&ne?Iy(ne):{width:0,height:0},Ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mw(),ve=Ee[me],dt=Ee[we],qe=Mu(0,q[L],se[L]),Rt=D?q[L]/2-k-qe-ve-he.mainAxis:Y-qe-ve-he.mainAxis,ut=D?-q[L]/2+k+qe+dt+he.mainAxis:ae+qe+dt+he.mainAxis,wt=t.elements.arrow&&pc(t.elements.arrow),Wt=wt?U==="y"?wt.clientTop||0:wt.clientLeft||0:0,en=(fe=ie==null?void 0:ie[U])!=null?fe:0,kt=te+Rt-en-Wt,at=te+ut-en,Rn=Mu(_?xd(le,kt):le,te,_?Ns(Ae,at):Ae);w[U]=Rn,xe[U]=Rn-te}if(h){var At,la=U==="x"?Nn:Cn,Qn=U==="x"?yr:gr,ln=w[C],hn=C==="y"?"height":"width",V=ln+N[la],ce=ln-N[Qn],pe=[Nn,Cn].indexOf(O)!==-1,Oe=(At=ie==null?void 0:ie[C])!=null?At:0,ue=pe?V:ln-q[hn]-re[hn]-Oe+he.altAxis,ge=pe?ln+q[hn]+re[hn]-Oe-he.altAxis:ce,tt=_&&pe?HU(ue,ln,ge):Mu(_?ue:V,ln,_?ge:ce);w[C]=tt,xe[C]=tt-ln}t.modifiersData[a]=xe}}const E$={name:"preventOverflow",enabled:!0,phase:"main",fn:S$,requiresIfExists:["offset"]};function _$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function x$(e){return e===Gn(e)||!ra(e)?qy(e):_$(e)}function O$(e){var t=e.getBoundingClientRect(),n=uo(t.width)/e.offsetWidth||1,a=uo(t.height)/e.offsetHeight||1;return n!==1||a!==1}function T$(e,t,n){n===void 0&&(n=!1);var a=ra(t),s=ra(t)&&O$(t),o=qi(t),c=co(e,s,n),h={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!n)&&((Ui(t)!=="body"||Hy(o))&&(h=x$(t)),ra(t)?(d=co(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=Vy(o))),{x:c.left+h.scrollLeft-d.x,y:c.top+h.scrollTop-d.y,width:c.width,height:c.height}}function w$(e){var t=new Map,n=new Set,a=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(h){if(!n.has(h)){var d=t.get(h);d&&s(d)}}),a.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),a}function A$(e){var t=w$(e);return zU.reduce(function(n,a){return n.concat(t.filter(function(s){return s.phase===a}))},[])}function N$(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function C$(e){var t=e.reduce(function(n,a){var s=n[a.name];return n[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var $_={placement:"bottom",modifiers:[],strategy:"absolute"};function L_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function R$(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?$_:s;return function(h,d,p){p===void 0&&(p=o);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},$_,o),modifiersData:{},elements:{reference:h,popper:d},attributes:{},styles:{}},b=[],y=!1,_={state:v,setOptions:function(O){var R=typeof O=="function"?O(v.options):O;A(),v.options=Object.assign({},o,v.options,R),v.scrollParents={reference:$s(h)?Uu(h):h.contextElement?Uu(h.contextElement):[],popper:Uu(d)};var D=A$(C$([].concat(a,v.options.modifiers)));return v.orderedModifiers=D.filter(function(U){return U.enabled}),x(),_.update()},forceUpdate:function(){if(!y){var O=v.elements,R=O.reference,D=O.popper;if(L_(R,D)){v.rects={reference:T$(R,pc(D),v.options.strategy==="fixed"),popper:Iy(D)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(he){return v.modifiersData[he.name]=Object.assign({},he.data)});for(var U=0;U<v.orderedModifiers.length;U++){if(v.reset===!0){v.reset=!1,U=-1;continue}var C=v.orderedModifiers[U],w=C.fn,q=C.options,re=q===void 0?{}:q,Q=C.name;typeof w=="function"&&(v=w({state:v,options:re,name:Q,instance:_})||v)}}}},update:N$(function(){return new Promise(function(N){_.forceUpdate(),N(v)})}),destroy:function(){A(),y=!0}};if(!L_(h,d))return _;_.setOptions(p).then(function(N){!y&&p.onFirstUpdate&&p.onFirstUpdate(N)});function x(){v.orderedModifiers.forEach(function(N){var O=N.name,R=N.options,D=R===void 0?{}:R,U=N.effect;if(typeof U=="function"){var C=U({state:v,name:O,instance:_,options:D}),w=function(){};b.push(C||w)}})}function A(){b.forEach(function(N){return N()}),b=[]}return _}}const D$=R$({defaultModifiers:[h$,g$,JU,e$,v$,f$,E$,KU]}),j$=["enabled","placement","strategy","modifiers"];function k$(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}const M$={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},U$={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const a=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);a.length?t.setAttribute("aria-describedby",a.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:a}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in a){const o=a.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;a.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},$$=[];function L$(e,t,n={}){let{enabled:a=!0,placement:s="bottom",strategy:o="absolute",modifiers:c=$$}=n,h=k$(n,j$);const d=S.useRef(c),p=S.useRef(),v=S.useCallback(()=>{var N;(N=p.current)==null||N.update()},[]),b=S.useCallback(()=>{var N;(N=p.current)==null||N.forceUpdate()},[]),[y,_]=CU(S.useState({placement:s,update:v,forceUpdate:b,attributes:{},styles:{popper:{},arrow:{}}})),x=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:N})=>{const O={},R={};Object.keys(N.elements).forEach(D=>{O[D]=N.styles[D],R[D]=N.attributes[D]}),_({state:N,styles:O,attributes:R,update:v,forceUpdate:b,placement:N.placement})}}),[v,b,_]),A=S.useMemo(()=>(ku(d.current,c)||(d.current=c),d.current),[c]);return S.useEffect(()=>{!p.current||!a||p.current.setOptions({placement:s,strategy:o,modifiers:[...A,x,M$]})},[o,s,x,a,A]),S.useEffect(()=>{if(!(!a||e==null||t==null))return p.current=D$(e,t,Object.assign({},h,{placement:s,strategy:o,modifiers:[...A,U$,x]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,_(N=>Object.assign({},N,{attributes:{},styles:{popper:{}}})))}},[a,e,t]),y}function Qu(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var qm,B_;function B$(){if(B_)return qm;B_=1;var e=function(){};return qm=e,qm}var F$=B$();const I$=Bs(F$),F_=()=>{};function z$(e){return e.button===0}function q$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const id=e=>e&&("current"in e?e.current:e),I_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function V$(e,t=F_,{disabled:n,clickTrigger:a="click"}={}){const s=S.useRef(!1),o=S.useRef(!1),c=S.useCallback(p=>{const v=id(e);I$(!!v,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!v||q$(p)||!z$(p)||!!Qu(v,p.target)||o.current,o.current=!1},[e]),h=dr(p=>{const v=id(e);v&&Qu(v,p.target)?o.current=!0:o.current=!1}),d=dr(p=>{s.current||t(p)});S.useEffect(()=>{var p,v;if(n||e==null)return;const b=yo(id(e)),y=b.defaultView||window;let _=(p=y.event)!=null?p:(v=y.parent)==null?void 0:v.event,x=null;I_[a]&&(x=Ma(b,I_[a],h,!0));const A=Ma(b,a,c,!0),N=Ma(b,a,R=>{if(R===_){_=void 0;return}d(R)});let O=[];return"ontouchstart"in b.documentElement&&(O=[].slice.call(b.body.children).map(R=>Ma(R,"mousemove",F_))),()=>{x==null||x(),A(),N(),O.forEach(R=>R())}},[e,n,a,c,h,d])}function H$(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function P$(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function G$({enabled:e,enableEvents:t,placement:n,flip:a,offset:s,fixed:o,containerPadding:c,arrowElement:h,popperConfig:d={}}){var p,v,b,y;const _=H$(d.modifiers);return Object.assign({},d,{placement:n,enabled:e,strategy:o?"fixed":d.strategy,modifiers:P$(Object.assign({},_,{eventListeners:{enabled:t,options:(p=_.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},_.preventOverflow,{options:Object.assign({padding:c},(v=_.preventOverflow)==null?void 0:v.options)}),offset:{options:Object.assign({offset:s},(b=_.offset)==null?void 0:b.options)},arrow:Object.assign({},_.arrow,{enabled:!!h,options:Object.assign({},(y=_.arrow)==null?void 0:y.options,{element:h})}),flip:Object.assign({enabled:!!a},_.flip)}))})}const Od=S.createContext(null),Py=(e,t=null)=>e!=null?String(e):t||null,Gy=S.createContext(null);Gy.displayName="NavContext";const Y$="data-rr-ui-",K$="rrUi";function Jd(e){return`${Y$}${e}`}function Q$(e){return`${K$}${e}`}const Sw=S.createContext(go?window:void 0);Sw.Provider;function Yy(){return S.useContext(Sw)}const X$=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Z$=typeof document<"u",Ew=Z$||X$?S.useLayoutEffect:S.useEffect,bo=S.createContext(null);bo.displayName="NavbarContext";const J$={type:Pe.string,tooltip:Pe.bool,as:Pe.elementType},Wd=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:a=!1,...s},o)=>g.jsx(e,{...s,ref:o,className:Se(t,`${n}-${a?"tooltip":"feedback"}`)}));Wd.displayName="Feedback";Wd.propTypes=J$;const qa=S.createContext({}),Ky=S.forwardRef(({id:e,bsPrefix:t,className:n,type:a="checkbox",isValid:s=!1,isInvalid:o=!1,as:c="input",...h},d)=>{const{controlId:p}=S.useContext(qa);return t=Re(t,"form-check-input"),g.jsx(c,{...h,ref:d,type:a,id:e||p,className:Se(n,t,s&&"is-valid",o&&"is-invalid")})});Ky.displayName="FormCheckInput";const Td=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...a},s)=>{const{controlId:o}=S.useContext(qa);return e=Re(e,"form-check-label"),g.jsx("label",{...a,ref:s,htmlFor:n||o,className:Se(t,e)})});Td.displayName="FormCheckLabel";const _w=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:a=!1,reverse:s=!1,disabled:o=!1,isValid:c=!1,isInvalid:h=!1,feedbackTooltip:d=!1,feedback:p,feedbackType:v,className:b,style:y,title:_="",type:x="checkbox",label:A,children:N,as:O="input",...R},D)=>{t=Re(t,"form-check"),n=Re(n,"form-switch");const{controlId:U}=S.useContext(qa),C=S.useMemo(()=>({controlId:e||U}),[U,e]),w=!N&&A!=null&&A!==!1||TU(N,Td),q=g.jsx(Ky,{...R,type:x==="switch"?"checkbox":x,ref:D,isValid:c,isInvalid:h,disabled:o,as:O});return g.jsx(qa.Provider,{value:C,children:g.jsx("div",{style:y,className:Se(b,w&&t,a&&`${t}-inline`,s&&`${t}-reverse`,x==="switch"&&n),children:N||g.jsxs(g.Fragment,{children:[q,w&&g.jsx(Td,{title:_,children:A}),p&&g.jsx(Wd,{type:v,tooltip:d,children:p})]})})})});_w.displayName="FormCheck";const wd=Object.assign(_w,{Input:Ky,Label:Td}),xw=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:a,id:s,className:o,isValid:c=!1,isInvalid:h=!1,plaintext:d,readOnly:p,as:v="input",...b},y)=>{const{controlId:_}=S.useContext(qa);return e=Re(e,"form-control"),g.jsx(v,{...b,type:t,size:a,ref:y,readOnly:p,id:s||_,className:Se(o,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,c&&"is-valid",h&&"is-invalid")})});xw.displayName="FormControl";const W$=Object.assign(xw,{Feedback:Wd}),Ow=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"form-floating"),g.jsx(n,{ref:s,className:Se(e,t),...a})));Ow.displayName="FormFloating";const Qy=S.forwardRef(({controlId:e,as:t="div",...n},a)=>{const s=S.useMemo(()=>({controlId:e}),[e]);return g.jsx(qa.Provider,{value:s,children:g.jsx(t,{...n,ref:a})})});Qy.displayName="FormGroup";const Tw=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:a=!1,className:s,htmlFor:o,...c},h)=>{const{controlId:d}=S.useContext(qa);t=Re(t,"form-label");let p="col-form-label";typeof n=="string"&&(p=`${p} ${p}-${n}`);const v=Se(s,t,a&&"visually-hidden",n&&p);return o=o||d,n?g.jsx(Xd,{ref:h,as:"label",className:v,htmlFor:o,...c}):g.jsx(e,{ref:h,className:v,htmlFor:o,...c})});Tw.displayName="FormLabel";const ww=S.forwardRef(({bsPrefix:e,className:t,id:n,...a},s)=>{const{controlId:o}=S.useContext(qa);return e=Re(e,"form-range"),g.jsx("input",{...a,type:"range",ref:s,className:Se(t,e),id:n||o})});ww.displayName="FormRange";const Aw=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:a,isValid:s=!1,isInvalid:o=!1,id:c,...h},d)=>{const{controlId:p}=S.useContext(qa);return e=Re(e,"form-select"),g.jsx("select",{...h,size:n,ref:d,className:Se(a,e,t&&`${e}-${t}`,s&&"is-valid",o&&"is-invalid"),id:c||p})});Aw.displayName="FormSelect";const Nw=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:a,...s},o)=>(e=Re(e,"form-text"),g.jsx(n,{...s,ref:o,className:Se(t,e,a&&"text-muted")})));Nw.displayName="FormText";const Cw=S.forwardRef((e,t)=>g.jsx(wd,{...e,ref:t,type:"switch"}));Cw.displayName="Switch";const eL=Object.assign(Cw,{Input:wd.Input,Label:wd.Label}),Rw=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:a,label:s,...o},c)=>(e=Re(e,"form-floating"),g.jsxs(Qy,{ref:c,className:Se(t,e),controlId:a,...o,children:[n,g.jsx("label",{htmlFor:a,children:s})]})));Rw.displayName="FloatingLabel";const tL={_ref:Pe.any,validated:Pe.bool,as:Pe.elementType},Xy=S.forwardRef(({className:e,validated:t,as:n="form",...a},s)=>g.jsx(n,{...a,ref:s,className:Se(e,t&&"was-validated")}));Xy.displayName="Form";Xy.propTypes=tL;const He=Object.assign(Xy,{Group:Qy,Control:W$,Floating:Ow,Check:wd,Switch:eL,Label:Tw,Text:Nw,Range:ww,Select:Aw,FloatingLabel:Rw}),z_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function nL(e,t){const n=z_(e),a=z_(t);return s=>{n&&n(s),a&&a(s)}}function mc(e,t){return S.useMemo(()=>nL(e,t),[e,t])}const Dw=S.createContext(null),rL=["as","active","eventKey"];function aL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function jw({key:e,onClick:t,active:n,id:a,role:s,disabled:o}){const c=S.useContext(Od),h=S.useContext(Gy),d=S.useContext(Dw);let p=n;const v={role:s};if(h){!s&&h.role==="tablist"&&(v.role="tab");const b=h.getControllerId(e??null),y=h.getControlledId(e??null);v[Jd("event-key")]=e,v.id=b||a,p=n==null&&e!=null?h.activeKey===e:n,(p||!(d!=null&&d.unmountOnExit)&&!(d!=null&&d.mountOnEnter))&&(v["aria-controls"]=y)}return v.role==="tab"&&(v["aria-selected"]=p,p||(v.tabIndex=-1),o&&(v.tabIndex=-1,v["aria-disabled"]=!0)),v.onClick=dr(b=>{o||(t==null||t(b),e!=null&&c&&!b.isPropagationStopped()&&c(e,b))}),[v,{isActive:p}]}const kw=S.forwardRef((e,t)=>{let{as:n=QT,active:a,eventKey:s}=e,o=aL(e,rL);const[c,h]=jw(Object.assign({key:Py(s,o.href),active:a},o));return c[Jd("active")]=h.isActive,g.jsx(n,Object.assign({},o,c,{ref:t}))});kw.displayName="NavItem";const iL=["as","onSelect","activeKey","role","onKeyDown"];function sL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}const q_=()=>{},V_=Jd("event-key"),Mw=S.forwardRef((e,t)=>{let{as:n="div",onSelect:a,activeKey:s,role:o,onKeyDown:c}=e,h=sL(e,iL);const d=NU(),p=S.useRef(!1),v=S.useContext(Od),b=S.useContext(Dw);let y,_;b&&(o=o||"tablist",s=b.activeKey,y=b.getControlledId,_=b.getControllerId);const x=S.useRef(null),A=D=>{const U=x.current;if(!U)return null;const C=ms(U,`[${V_}]:not([aria-disabled=true])`),w=U.querySelector("[aria-selected=true]");if(!w||w!==document.activeElement)return null;const q=C.indexOf(w);if(q===-1)return null;let re=q+D;return re>=C.length&&(re=0),re<0&&(re=C.length-1),C[re]},N=(D,U)=>{D!=null&&(a==null||a(D,U),v==null||v(D,U))},O=D=>{if(c==null||c(D),!b)return;let U;switch(D.key){case"ArrowLeft":case"ArrowUp":U=A(-1);break;case"ArrowRight":case"ArrowDown":U=A(1);break;default:return}U&&(D.preventDefault(),N(U.dataset[Q$("EventKey")]||null,D),p.current=!0,d())};S.useEffect(()=>{if(x.current&&p.current){const D=x.current.querySelector(`[${V_}][aria-selected=true]`);D==null||D.focus()}p.current=!1});const R=mc(t,x);return g.jsx(Od.Provider,{value:N,children:g.jsx(Gy.Provider,{value:{role:o,activeKey:Py(s),getControlledId:y||q_,getControllerId:_||q_},children:g.jsx(n,Object.assign({},h,{onKeyDown:O,ref:R,role:o}))})})});Mw.displayName="Nav";const lL=Object.assign(Mw,{Item:kw});var qf;function H_(e){if((!qf&&qf!==0||e)&&go){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),qf=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return qf}function oL(){return S.useState(null)}function Vm(e){e===void 0&&(e=yo());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function uL(e){const t=S.useRef(e);return t.current=e,t}function cL(e){const t=uL(e);S.useEffect(()=>()=>t.current(),[])}function fL(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const P_=Jd("modal-open");class Zy{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:a=!1}={}){this.handleContainerOverflow=n,this.isRTL=a,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return fL(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},a=this.isRTL?"paddingLeft":"paddingRight",s=this.getElement();t.style={overflow:s.style.overflow,[a]:s.style[a]},t.scrollBarWidth&&(n[a]=`${parseInt(Ba(s,a)||"0",10)+t.scrollBarWidth}px`),s.setAttribute(P_,""),Ba(s,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(P_),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Hm=(e,t)=>go?e==null?(t||yo()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Uv(e,t){const n=Yy(),[a,s]=S.useState(()=>Hm(e,n==null?void 0:n.document));if(!a){const o=Hm(e);o&&s(o)}return S.useEffect(()=>{},[t,a]),S.useEffect(()=>{const o=Hm(e);o!==a&&s(o)},[e,a]),a}function dL({children:e,in:t,onExited:n,mountOnEnter:a,unmountOnExit:s}){const o=S.useRef(null),c=S.useRef(t),h=dr(n);S.useEffect(()=>{t?c.current=!0:h(o.current)},[t,h]);const d=mc(o,Gs(e)),p=S.cloneElement(e,{ref:d});return t?p:s||!c.current&&a?null:p}const hL=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function pL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function mL(e){let{onEnter:t,onEntering:n,onEntered:a,onExit:s,onExiting:o,onExited:c,addEndListener:h,children:d}=e,p=pL(e,hL);const v=S.useRef(null),b=mc(v,Gs(d)),y=U=>C=>{U&&v.current&&U(v.current,C)},_=S.useCallback(y(t),[t]),x=S.useCallback(y(n),[n]),A=S.useCallback(y(a),[a]),N=S.useCallback(y(s),[s]),O=S.useCallback(y(o),[o]),R=S.useCallback(y(c),[c]),D=S.useCallback(y(h),[h]);return Object.assign({},p,{nodeRef:v},t&&{onEnter:_},n&&{onEntering:x},a&&{onEntered:A},s&&{onExit:N},o&&{onExiting:O},c&&{onExited:R},h&&{addEndListener:D},{children:typeof d=="function"?(U,C)=>d(U,Object.assign({},C,{ref:b})):S.cloneElement(d,{ref:b})})}const vL=["component"];function yL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}const gL=S.forwardRef((e,t)=>{let{component:n}=e,a=yL(e,vL);const s=mL(a);return g.jsx(n,Object.assign({ref:t},s))});function bL({in:e,onTransition:t}){const n=S.useRef(null),a=S.useRef(!0),s=dr(t);return w_(()=>{if(!n.current)return;let o=!1;return s({in:e,element:n.current,initial:a.current,isStale:()=>o}),()=>{o=!0}},[e,s]),w_(()=>(a.current=!1,()=>{a.current=!0}),[]),n}function SL({children:e,in:t,onExited:n,onEntered:a,transition:s}){const[o,c]=S.useState(!t);t&&o&&c(!1);const h=bL({in:!!t,onTransition:p=>{const v=()=>{p.isStale()||(p.in?a==null||a(p.element,p.initial):(c(!0),n==null||n(p.element)))};Promise.resolve(s(p)).then(v,b=>{throw p.in||c(!0),b})}}),d=mc(h,Gs(e));return o&&!t?null:S.cloneElement(e,{ref:d})}function $v(e,t,n){return e?g.jsx(gL,Object.assign({},n,{component:e})):t?g.jsx(SL,Object.assign({},n,{transition:t})):g.jsx(dL,Object.assign({},n))}const EL=["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 _L(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}let Pm;function xL(e){return Pm||(Pm=new Zy({ownerDocument:e==null?void 0:e.document})),Pm}function OL(e){const t=Yy(),n=e||xL(t),a=S.useRef({dialog:null,backdrop:null});return Object.assign(a.current,{add:()=>n.add(a.current),remove:()=>n.remove(a.current),isTopModal:()=>n.isTopModal(a.current),setDialogRef:S.useCallback(s=>{a.current.dialog=s},[]),setBackdropRef:S.useCallback(s=>{a.current.backdrop=s},[])})}const Uw=S.forwardRef((e,t)=>{let{show:n=!1,role:a="dialog",className:s,style:o,children:c,backdrop:h=!0,keyboard:d=!0,onBackdropClick:p,onEscapeKeyDown:v,transition:b,runTransition:y,backdropTransition:_,runBackdropTransition:x,autoFocus:A=!0,enforceFocus:N=!0,restoreFocus:O=!0,restoreFocusOptions:R,renderDialog:D,renderBackdrop:U=at=>g.jsx("div",Object.assign({},at)),manager:C,container:w,onShow:q,onHide:re=()=>{},onExit:Q,onExited:he,onExiting:ie,onEnter:xe,onEntering:fe,onEntered:me}=e,we=_L(e,EL);const L=Yy(),te=Uv(w),le=OL(C),Ae=KT(),k=uU(n),[Y,ae]=S.useState(!n),ne=S.useRef(null);S.useImperativeHandle(t,()=>le,[le]),go&&!k&&n&&(ne.current=Vm(L==null?void 0:L.document)),n&&Y&&ae(!1);const se=dr(()=>{if(le.add(),ut.current=Ma(document,"keydown",qe),Rt.current=Ma(document,"focus",()=>setTimeout(ve),!0),q&&q(),A){var at,Rn;const At=Vm((at=(Rn=le.dialog)==null?void 0:Rn.ownerDocument)!=null?at:L==null?void 0:L.document);le.dialog&&At&&!Qu(le.dialog,At)&&(ne.current=At,le.dialog.focus())}}),Ee=dr(()=>{if(le.remove(),ut.current==null||ut.current(),Rt.current==null||Rt.current(),O){var at;(at=ne.current)==null||at.focus==null||at.focus(R),ne.current=null}});S.useEffect(()=>{!n||!te||se()},[n,te,se]),S.useEffect(()=>{Y&&Ee()},[Y,Ee]),cL(()=>{Ee()});const ve=dr(()=>{if(!N||!Ae()||!le.isTopModal())return;const at=Vm(L==null?void 0:L.document);le.dialog&&at&&!Qu(le.dialog,at)&&le.dialog.focus()}),dt=dr(at=>{at.target===at.currentTarget&&(p==null||p(at),h===!0&&re())}),qe=dr(at=>{d&&qT(at)&&le.isTopModal()&&(v==null||v(at),at.defaultPrevented||re())}),Rt=S.useRef(),ut=S.useRef(),wt=(...at)=>{ae(!0),he==null||he(...at)};if(!te)return null;const Wt=Object.assign({role:a,ref:le.setDialogRef,"aria-modal":a==="dialog"?!0:void 0},we,{style:o,className:s,tabIndex:-1});let en=D?D(Wt):g.jsx("div",Object.assign({},Wt,{children:S.cloneElement(c,{role:"document"})}));en=$v(b,y,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:Q,onExiting:ie,onExited:wt,onEnter:xe,onEntering:fe,onEntered:me,children:en});let kt=null;return h&&(kt=U({ref:le.setBackdropRef,onClick:dt}),kt=$v(_,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:kt})),g.jsx(g.Fragment,{children:bs.createPortal(g.jsxs(g.Fragment,{children:[kt,en]}),te)})});Uw.displayName="Modal";const $w=Object.assign(Uw,{Manager:Zy});function Lv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function TL(e,t){e.classList?e.classList.add(t):Lv(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function G_(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function wL(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=G_(e.className,t):e.setAttribute("class",G_(e.className&&e.className.baseVal||"",t))}const Ll={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Lw extends Zy{adjustAndStore(t,n,a){const s=n.style[t];n.dataset[t]=s,Ba(n,{[t]:`${parseFloat(Ba(n,t))+a}px`})}restore(t,n){const a=n.dataset[t];a!==void 0&&(delete n.dataset[t],Ba(n,{[t]:a}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(TL(n,"modal-open"),!t.scrollBarWidth)return;const a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";ms(n,Ll.FIXED_CONTENT).forEach(o=>this.adjustAndStore(a,o,t.scrollBarWidth)),ms(n,Ll.STICKY_CONTENT).forEach(o=>this.adjustAndStore(s,o,-t.scrollBarWidth)),ms(n,Ll.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(s,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();wL(n,"modal-open");const a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";ms(n,Ll.FIXED_CONTENT).forEach(o=>this.restore(a,o)),ms(n,Ll.STICKY_CONTENT).forEach(o=>this.restore(s,o)),ms(n,Ll.NAVBAR_TOGGLER).forEach(o=>this.restore(s,o))}}let Gm;function Bw(e){return Gm||(Gm=new Lw(e)),Gm}const Fw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"modal-body"),g.jsx(n,{ref:s,className:Se(e,t),...a})));Fw.displayName="ModalBody";const Jy=S.createContext({onHide(){}}),Wy=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:a,size:s,fullscreen:o,children:c,scrollable:h,...d},p)=>{e=Re(e,"modal");const v=`${e}-dialog`,b=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return g.jsx("div",{...d,ref:p,className:Se(v,t,s&&`${e}-${s}`,a&&`${v}-centered`,h&&`${v}-scrollable`,o&&b),children:g.jsx("div",{className:Se(`${e}-content`,n),children:c})})});Wy.displayName="ModalDialog";const Iw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"modal-footer"),g.jsx(n,{ref:s,className:Se(e,t),...a})));Iw.displayName="ModalFooter";const zw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:a,children:s,...o},c)=>{const h=S.useContext(Jy),d=ki(()=>{h==null||h.onHide(),a==null||a()});return g.jsxs("div",{ref:c,...o,children:[s,n&&g.jsx(Qd,{"aria-label":e,variant:t,onClick:d})]})}),qw=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:a=!1,...s},o)=>(e=Re(e,"modal-header"),g.jsx(zw,{ref:o,...s,className:Se(t,e),closeLabel:n,closeButton:a})));qw.displayName="ModalHeader";const AL=fc("h4"),Vw=S.forwardRef(({className:e,bsPrefix:t,as:n=AL,...a},s)=>(t=Re(t,"modal-title"),g.jsx(n,{ref:s,className:Se(e,t),...a})));Vw.displayName="ModalTitle";function NL(e){return g.jsx(Mi,{...e,timeout:null})}function CL(e){return g.jsx(Mi,{...e,timeout:null})}const Hw=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:a,contentClassName:s,children:o,dialogAs:c=Wy,"data-bs-theme":h,"aria-labelledby":d,"aria-describedby":p,"aria-label":v,show:b=!1,animation:y=!0,backdrop:_=!0,keyboard:x=!0,onEscapeKeyDown:A,onShow:N,onHide:O,container:R,autoFocus:D=!0,enforceFocus:U=!0,restoreFocus:C=!0,restoreFocusOptions:w,onEntered:q,onExit:re,onExiting:Q,onEnter:he,onEntering:ie,onExited:xe,backdropClassName:fe,manager:me,...we},L)=>{const[te,le]=S.useState({}),[Ae,k]=S.useState(!1),Y=S.useRef(!1),ae=S.useRef(!1),ne=S.useRef(null),[se,Ee]=oL(),ve=Yd(L,Ee),dt=ki(O),qe=jy();e=Re(e,"modal");const Rt=S.useMemo(()=>({onHide:dt}),[dt]);function ut(){return me||Bw({isRTL:qe})}function wt(ue){if(!go)return;const ge=ut().getScrollbarWidth()>0,tt=ue.scrollHeight>yo(ue).documentElement.clientHeight;le({paddingRight:ge&&!tt?H_():void 0,paddingLeft:!ge&&tt?H_():void 0})}const Wt=ki(()=>{se&&wt(se.dialog)});uw(()=>{Dv(window,"resize",Wt),ne.current==null||ne.current()});const en=()=>{Y.current=!0},kt=ue=>{Y.current&&se&&ue.target===se.dialog&&(ae.current=!0),Y.current=!1},at=()=>{k(!0),ne.current=HT(se.dialog,()=>{k(!1)})},Rn=ue=>{ue.target===ue.currentTarget&&at()},At=ue=>{if(_==="static"){Rn(ue);return}if(ae.current||ue.target!==ue.currentTarget){ae.current=!1;return}O==null||O()},la=ue=>{x?A==null||A(ue):(ue.preventDefault(),_==="static"&&at())},Qn=(ue,ge)=>{ue&&wt(ue),he==null||he(ue,ge)},ln=ue=>{ne.current==null||ne.current(),re==null||re(ue)},hn=(ue,ge)=>{ie==null||ie(ue,ge),VT(window,"resize",Wt)},V=ue=>{ue&&(ue.style.display=""),xe==null||xe(ue),Dv(window,"resize",Wt)},ce=S.useCallback(ue=>g.jsx("div",{...ue,className:Se(`${e}-backdrop`,fe,!y&&"show")}),[y,fe,e]),pe={...n,...te};pe.display="block";const Oe=ue=>g.jsx("div",{role:"dialog",...ue,style:pe,className:Se(t,e,Ae&&`${e}-static`,!y&&"show"),onClick:_?At:void 0,onMouseUp:kt,"data-bs-theme":h,"aria-label":v,"aria-labelledby":d,"aria-describedby":p,children:g.jsx(c,{...we,onMouseDown:en,className:a,contentClassName:s,children:o})});return g.jsx(Jy.Provider,{value:Rt,children:g.jsx($w,{show:b,ref:ve,backdrop:_,container:R,keyboard:!0,autoFocus:D,enforceFocus:U,restoreFocus:C,restoreFocusOptions:w,onEscapeKeyDown:la,onShow:N,onHide:O,onEnter:Qn,onEntering:hn,onEntered:q,onExit:ln,onExiting:Q,onExited:V,manager:ut(),transition:y?NL:void 0,backdropTransition:y?CL:void 0,renderBackdrop:ce,renderDialog:Oe})})});Hw.displayName="Modal";const Pt=Object.assign(Hw,{Body:Fw,Header:qw,Title:Vw,Footer:Iw,Dialog:Wy,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Pw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"nav-item"),g.jsx(n,{ref:s,className:Se(e,t),...a})));Pw.displayName="NavItem";const Gw=S.forwardRef(({bsPrefix:e,className:t,as:n=Kd,active:a,eventKey:s,disabled:o=!1,...c},h)=>{e=Re(e,"nav-link");const[d,p]=jw({key:Py(s,c.href),active:a,disabled:o,...c});return g.jsx(n,{...c,...d,ref:h,disabled:o,className:Se(t,e,o&&"disabled",p.isActive&&"active")})});Gw.displayName="NavLink";const Yw=S.forwardRef((e,t)=>{const{as:n="div",bsPrefix:a,variant:s,fill:o=!1,justify:c=!1,navbar:h,navbarScroll:d,className:p,activeKey:v,...b}=Cy(e,{activeKey:"onSelect"}),y=Re(a,"nav");let _,x,A=!1;const N=S.useContext(bo),O=S.useContext(Ly);return N?(_=N.bsPrefix,A=h??!0):O&&({cardHeaderBsPrefix:x}=O),g.jsx(lL,{as:n,ref:t,activeKey:v,className:Se(p,{[y]:!A,[`${_}-nav`]:A,[`${_}-nav-scroll`]:A&&d,[`${x}-${s}`]:!!x,[`${y}-${s}`]:!!s,[`${y}-fill`]:o,[`${y}-justified`]:c}),...b})});Yw.displayName="Nav";const Tu=Object.assign(Yw,{Item:Pw,Link:Gw}),Kw=S.forwardRef(({bsPrefix:e,className:t,as:n,...a},s)=>{e=Re(e,"navbar-brand");const o=n||(a.href?"a":"span");return g.jsx(o,{...a,ref:s,className:Se(t,e)})});Kw.displayName="NavbarBrand";const Qw=S.forwardRef(({children:e,bsPrefix:t,...n},a)=>{t=Re(t,"navbar-collapse");const s=S.useContext(bo);return g.jsx(sU,{in:!!(s&&s.expanded),...n,children:g.jsx("div",{ref:a,className:t,children:e})})});Qw.displayName="NavbarCollapse";const Xw=S.forwardRef(({bsPrefix:e,className:t,children:n,label:a="Toggle navigation",as:s="button",onClick:o,...c},h)=>{e=Re(e,"navbar-toggler");const{onToggle:d,expanded:p}=S.useContext(bo)||{},v=ki(b=>{o&&o(b),d&&d()});return s==="button"&&(c.type="button"),g.jsx(s,{...c,ref:h,onClick:v,"aria-label":a,className:Se(t,e,!p&&"collapsed"),children:n||g.jsx("span",{className:`${e}-icon`})})});Xw.displayName="NavbarToggle";const Bv=new WeakMap,Y_=(e,t)=>{if(!e||!t)return;const n=Bv.get(t)||new Map;Bv.set(t,n);let a=n.get(e);return a||(a=t.matchMedia(e),a.refCount=0,n.set(a.media,a)),a};function RL(e,t=typeof window>"u"?void 0:window){const n=Y_(e,t),[a,s]=S.useState(()=>n?n.matches:!1);return Ew(()=>{let o=Y_(e,t);if(!o)return s(!1);let c=Bv.get(t);const h=()=>{s(o.matches)};return o.refCount++,o.addListener(h),h(),()=>{o.removeListener(h),o.refCount--,o.refCount<=0&&(c==null||c.delete(o.media)),o=void 0}},[e]),a}function DL(e){const t=Object.keys(e);function n(h,d){return h===d?d:h?`${h} and ${d}`:d}function a(h){return t[Math.min(t.indexOf(h)+1,t.length-1)]}function s(h){const d=a(h);let p=e[d];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function o(h){let d=e[h];return typeof d=="number"&&(d=`${d}px`),`(min-width: ${d})`}function c(h,d,p){let v;typeof h=="object"?(v=h,p=d,d=!0):(d=d||!0,v={[h]:d});let b=S.useMemo(()=>Object.entries(v).reduce((y,[_,x])=>((x==="up"||x===!0)&&(y=n(y,o(_))),(x==="down"||x===!0)&&(y=n(y,s(_))),y),""),[JSON.stringify(v)]);return RL(b,p)}return c}const jL=DL({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Zw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"offcanvas-body"),g.jsx(n,{ref:s,className:Se(e,t),...a})));Zw.displayName="OffcanvasBody";const kL={[Cr]:"show",[ka]:"show"},Jw=S.forwardRef(({bsPrefix:e,className:t,children:n,in:a=!1,mountOnEnter:s=!1,unmountOnExit:o=!1,appear:c=!1,...h},d)=>(e=Re(e,"offcanvas"),g.jsx(My,{ref:d,addEndListener:ky,in:a,mountOnEnter:s,unmountOnExit:o,appear:c,...h,childRef:Gs(n),children:(p,v)=>S.cloneElement(n,{...v,className:Se(t,n.props.className,(p===Cr||p===Gu)&&`${e}-toggling`,kL[p])})})));Jw.displayName="OffcanvasToggling";const Ww=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:a=!1,...s},o)=>(e=Re(e,"offcanvas-header"),g.jsx(zw,{ref:o,...s,className:Se(t,e),closeLabel:n,closeButton:a})));Ww.displayName="OffcanvasHeader";const ML=fc("h5"),e1=S.forwardRef(({className:e,bsPrefix:t,as:n=ML,...a},s)=>(t=Re(t,"offcanvas-title"),g.jsx(n,{ref:s,className:Se(e,t),...a})));e1.displayName="OffcanvasTitle";function UL(e){return g.jsx(Jw,{...e})}function $L(e){return g.jsx(Mi,{...e})}const t1=S.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":a,placement:s="start",responsive:o,show:c=!1,backdrop:h=!0,keyboard:d=!0,scroll:p=!1,onEscapeKeyDown:v,onShow:b,onHide:y,container:_,autoFocus:x=!0,enforceFocus:A=!0,restoreFocus:N=!0,restoreFocusOptions:O,onEntered:R,onExit:D,onExiting:U,onEnter:C,onEntering:w,onExited:q,backdropClassName:re,manager:Q,renderStaticNode:he=!1,...ie},xe)=>{const fe=S.useRef();e=Re(e,"offcanvas");const[me,we]=S.useState(!1),L=ki(y),te=jL(o||"xs","up");S.useEffect(()=>{we(o?c&&!te:c)},[c,o,te]);const le=S.useMemo(()=>({onHide:L}),[L]);function Ae(){return Q||(p?(fe.current||(fe.current=new Lw({handleContainerOverflow:!1})),fe.current):Bw())}const k=(se,...Ee)=>{se&&(se.style.visibility="visible"),C==null||C(se,...Ee)},Y=(se,...Ee)=>{se&&(se.style.visibility=""),q==null||q(...Ee)},ae=S.useCallback(se=>g.jsx("div",{...se,className:Se(`${e}-backdrop`,re)}),[re,e]),ne=se=>g.jsx("div",{...se,...ie,className:Se(t,o?`${e}-${o}`:e,`${e}-${s}`),"aria-labelledby":a,children:n});return g.jsxs(g.Fragment,{children:[!me&&(o||he)&&ne({}),g.jsx(Jy.Provider,{value:le,children:g.jsx($w,{show:me,ref:xe,backdrop:h,container:_,keyboard:d,autoFocus:x,enforceFocus:A&&!p,restoreFocus:N,restoreFocusOptions:O,onEscapeKeyDown:v,onShow:b,onHide:L,onEnter:k,onEntering:w,onEntered:R,onExit:D,onExiting:U,onExited:Y,manager:Ae(),transition:UL,backdropTransition:$L,renderBackdrop:ae,renderDialog:ne})})]})});t1.displayName="Offcanvas";const LL=Object.assign(t1,{Body:Zw,Header:Ww,Title:e1}),n1=S.forwardRef(({onHide:e,...t},n)=>{const a=S.useContext(bo),s=ki(()=>{a==null||a.onToggle==null||a.onToggle(),e==null||e()});return g.jsx(LL,{ref:n,show:!!(a!=null&&a.expanded),...t,renderStaticNode:!0,onHide:s})});n1.displayName="NavbarOffcanvas";const eg=S.forwardRef(({className:e,bsPrefix:t,as:n="span",...a},s)=>(t=Re(t,"navbar-text"),g.jsx(n,{ref:s,className:Se(e,t),...a})));eg.displayName="NavbarText";const r1=S.forwardRef((e,t)=>{const{bsPrefix:n,expand:a=!0,variant:s="light",bg:o,fixed:c,sticky:h,className:d,as:p="nav",expanded:v,onToggle:b,onSelect:y,collapseOnSelect:_=!1,...x}=Cy(e,{expanded:"onToggle"}),A=Re(n,"navbar"),N=S.useCallback((...D)=>{y==null||y(...D),_&&v&&(b==null||b(!1))},[y,_,v,b]);x.role===void 0&&p!=="nav"&&(x.role="navigation");let O=`${A}-expand`;typeof a=="string"&&(O=`${O}-${a}`);const R=S.useMemo(()=>({onToggle:()=>b==null?void 0:b(!v),bsPrefix:A,expanded:!!v,expand:a}),[A,v,a,b]);return g.jsx(bo.Provider,{value:R,children:g.jsx(Od.Provider,{value:N,children:g.jsx(p,{ref:t,...x,className:Se(d,A,a&&O,s&&`${A}-${s}`,o&&`bg-${o}`,h&&`sticky-${h}`,c&&`fixed-${c}`)})})})});r1.displayName="Navbar";const Bl=Object.assign(r1,{Brand:Kw,Collapse:Qw,Offcanvas:n1,Text:eg,Toggle:Xw}),BL=()=>{};function FL(e,t,{disabled:n,clickTrigger:a}={}){const s=t||BL;V$(e,s,{disabled:n,clickTrigger:a});const o=dr(c=>{qT(c)&&s(c)});S.useEffect(()=>{if(n||e==null)return;const c=yo(id(e));let h=(c.defaultView||window).event;const d=Ma(c,"keyup",p=>{if(p===h){h=void 0;return}o(p)});return()=>{d()}},[e,n,o])}const a1=S.forwardRef((e,t)=>{const{flip:n,offset:a,placement:s,containerPadding:o,popperConfig:c={},transition:h,runTransition:d}=e,[p,v]=T_(),[b,y]=T_(),_=mc(v,t),x=Uv(e.container),A=Uv(e.target),[N,O]=S.useState(!e.show),R=L$(A,p,G$({placement:s,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:a,arrowElement:b,popperConfig:c}));e.show&&N&&O(!1);const D=(...ie)=>{O(!0),e.onExited&&e.onExited(...ie)},U=e.show||!N;if(FL(p,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!U)return null;const{onExit:C,onExiting:w,onEnter:q,onEntering:re,onEntered:Q}=e;let he=e.children(Object.assign({},R.attributes.popper,{style:R.styles.popper,ref:_}),{popper:R,placement:s,show:!!e.show,arrowProps:Object.assign({},R.attributes.arrow,{style:R.styles.arrow,ref:y})});return he=$v(h,d,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:he,onExit:C,onExiting:w,onExited:D,onEnter:q,onEntering:re,onEntered:Q}),x?bs.createPortal(he,x):null});a1.displayName="Overlay";const i1=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"popover-header"),g.jsx(n,{ref:s,className:Se(e,t),...a})));i1.displayName="PopoverHeader";const tg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Re(t,"popover-body"),g.jsx(n,{ref:s,className:Se(e,t),...a})));tg.displayName="PopoverBody";function s1(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function l1(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const IL=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:a,children:s,body:o,arrowProps:c,hasDoneInitialMeasure:h,popper:d,show:p,...v},b)=>{const y=Re(e,"popover"),_=jy(),[x]=(t==null?void 0:t.split("-"))||[],A=s1(x,_);let N=a;return p&&!h&&(N={...a,...l1(d==null?void 0:d.strategy)}),g.jsxs("div",{ref:b,role:"tooltip",style:N,"x-placement":x,className:Se(n,y,x&&`bs-popover-${A}`),...v,children:[g.jsx("div",{className:"popover-arrow",...c}),o?g.jsx(tg,{children:s}):s]})}),Fv=Object.assign(IL,{Header:i1,Body:tg,POPPER_OFFSET:[0,8]}),o1=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:a,children:s,arrowProps:o,hasDoneInitialMeasure:c,popper:h,show:d,...p},v)=>{e=Re(e,"tooltip");const b=jy(),[y]=(t==null?void 0:t.split("-"))||[],_=s1(y,b);let x=a;return d&&!c&&(x={...a,...l1(h==null?void 0:h.strategy)}),g.jsxs("div",{ref:v,style:x,role:"tooltip","x-placement":y,className:Se(n,e,`bs-tooltip-${_}`),...p,children:[g.jsx("div",{className:"tooltip-arrow",...o}),g.jsx("div",{className:`${e}-inner`,children:s})]})});o1.displayName="Tooltip";const ng=Object.assign(o1,{TOOLTIP_OFFSET:[0,6]});function zL(e){const t=S.useRef(null),n=Re(void 0,"popover"),a=Re(void 0,"tooltip"),s=S.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Lv(t.current,n))return Fv.POPPER_OFFSET;if(Lv(t.current,a))return ng.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,a]);return[t,[s]]}function qL(e,t){const{ref:n}=e,{ref:a}=t;e.ref=n.__wrapped||(n.__wrapped=s=>n(_d(s))),t.ref=a.__wrapped||(a.__wrapped=s=>a(_d(s)))}const rg=S.forwardRef(({children:e,transition:t=Mi,popperConfig:n={},rootClose:a=!1,placement:s="top",show:o=!1,...c},h)=>{const d=S.useRef({}),[p,v]=S.useState(null),[b,y]=zL(c.offset),_=Yd(h,b),x=t===!0?Mi:t||void 0,A=ki(N=>{v(N),n==null||n.onFirstUpdate==null||n.onFirstUpdate(N)});return Ew(()=>{p&&c.target&&(d.current.scheduleUpdate==null||d.current.scheduleUpdate())},[p,c.target]),S.useEffect(()=>{o||v(null)},[o]),g.jsx(a1,{...c,ref:_,popperConfig:{...n,modifiers:y.concat(n.modifiers||[]),onFirstUpdate:A},transition:x,rootClose:a,placement:s,show:o,children:(N,{arrowProps:O,popper:R,show:D})=>{var U;qL(N,O);const C=R==null?void 0:R.placement,w=Object.assign(d.current,{state:R==null?void 0:R.state,scheduleUpdate:R==null?void 0:R.update,placement:C,outOfBoundaries:(R==null||(U=R.state)==null||(U=U.modifiersData.hide)==null?void 0:U.isReferenceHidden)||!1,strategy:n.strategy}),q=!!p;return typeof e=="function"?e({...N,placement:C,show:D,...!t&&D&&{className:"show"},popper:w,arrowProps:O,hasDoneInitialMeasure:q}):S.cloneElement(e,{...N,placement:C,arrowProps:O,popper:w,hasDoneInitialMeasure:q,className:Se(e.props.className,!t&&D&&"show"),style:{...e.props.style,...N.style}})}})});rg.displayName="Overlay";function VL(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function K_(e,t,n){const[a]=t,s=a.currentTarget,o=a.relatedTarget||a.nativeEvent[n];(!o||o!==s)&&!Qu(s,o)&&e(...t)}Pe.oneOf(["click","hover","focus"]);const u1=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:a={},show:s,defaultShow:o=!1,onToggle:c,delay:h,placement:d,flip:p=d&&d.indexOf("auto")!==-1,...v})=>{const b=S.useRef(null),y=Yd(b,Gs(n)),_=OU(),x=S.useRef(""),[A,N]=BT(s,o,c),O=VL(h),{onFocus:R,onBlur:D,onClick:U}=typeof n!="function"?S.Children.only(n).props:{},C=we=>{y(_d(we))},w=S.useCallback(()=>{if(_.clear(),x.current="show",!O.show){N(!0);return}_.set(()=>{x.current==="show"&&N(!0)},O.show)},[O.show,N,_]),q=S.useCallback(()=>{if(_.clear(),x.current="hide",!O.hide){N(!1);return}_.set(()=>{x.current==="hide"&&N(!1)},O.hide)},[O.hide,N,_]),re=S.useCallback((...we)=>{w(),R==null||R(...we)},[w,R]),Q=S.useCallback((...we)=>{q(),D==null||D(...we)},[q,D]),he=S.useCallback((...we)=>{N(!A),U==null||U(...we)},[U,N,A]),ie=S.useCallback((...we)=>{K_(w,we,"fromElement")},[w]),xe=S.useCallback((...we)=>{K_(q,we,"toElement")},[q]),fe=e==null?[]:[].concat(e),me={ref:C};return fe.indexOf("click")!==-1&&(me.onClick=he),fe.indexOf("focus")!==-1&&(me.onFocus=re,me.onBlur=Q),fe.indexOf("hover")!==-1&&(me.onMouseOver=ie,me.onMouseOut=xe),g.jsxs(g.Fragment,{children:[typeof n=="function"?n(me):S.cloneElement(n,me),g.jsx(rg,{...v,show:A,onHide:q,flip:p,placement:d,popperConfig:a,target:b.current,children:t})]})},ag=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...a},s)=>{const o=Re(e,"row"),c=Ry(),h=Dy(),d=`${o}-cols`,p=[];return c.forEach(v=>{const b=a[v];delete a[v];let y;b!=null&&typeof b=="object"?{cols:y}=b:y=b;const _=v!==h?`-${v}`:"";y!=null&&p.push(`${d}${_}-${y}`)}),g.jsx(n,{ref:s,...a,className:Se(t,o,...p)})});ag.displayName="Row";function HL(e,t=FT,n=IT){const a=[];return Object.entries(e).forEach(([s,o])=>{o!=null&&(typeof o=="object"?t.forEach(c=>{const h=o[c];if(h!=null){const d=c!==n?`-${c}`:"";a.push(`${s}${d}-${h}`)}}):a.push(`${s}-${o}`))}),a}const c1=S.forwardRef(({as:e="div",bsPrefix:t,className:n,direction:a,gap:s,...o},c)=>{t=Re(t,a==="horizontal"?"hstack":"vstack");const h=Ry(),d=Dy();return g.jsx(e,{...o,ref:c,className:Se(n,t,...HL({gap:s},h,d))})});c1.displayName="Stack";const Vi=S.forwardRef(({bsPrefix:e,className:t,striped:n,bordered:a,borderless:s,hover:o,size:c,variant:h,responsive:d,...p},v)=>{const b=Re(e,"table"),y=Se(t,b,h&&`${b}-${h}`,c&&`${b}-${c}`,n&&`${b}-${typeof n=="string"?`striped-${n}`:"striped"}`,a&&`${b}-bordered`,s&&`${b}-borderless`,o&&`${b}-hover`),_=g.jsx("table",{...p,className:y,ref:v});if(d){let x=`${b}-responsive`;return typeof d=="string"&&(x=`${x}-${d}`),g.jsx("div",{className:x,children:_})}return _}),PL=Gt(()=>{const e=sn(),t=jd(),n=()=>{t("/"),e.logout()};return g.jsx(Bl,{style:{borderBottom:"1px solid #C7C8C9"},expand:"lg",className:"mb-4",children:g.jsxs(dc,{fluid:!0,children:[g.jsx(Bl.Brand,{children:g.jsx(Pn,{to:"/",style:{color:"inherit",textDecoration:"none"},children:"Dashboard"})}),g.jsx(Bl.Toggle,{"aria-controls":"basic-navbar-nav"}),g.jsxs(Bl.Collapse,{id:"basic-navbar-nav",children:[g.jsx(Tu,{className:"me-auto",children:g.jsxs(eg,{children:["Connected to:"," ",g.jsx("a",{href:wv,target:"_blank",rel:"noreferrer",children:wv})]})}),e.loggedIn?g.jsx(Tu,{children:g.jsx(Bl.Text,{className:"me-2",children:g.jsx(Jt,{variant:"link nav-link",onClick:n,children:"Log out"})})}):g.jsxs(Tu,{children:[g.jsx(Tu.Link,{as:Pn,to:"/login",children:"Log in"}),g.jsx(Bl.Text,{children:"or"}),g.jsx(Tu.Link,{as:Pn,to:"/register",children:"Register"})]})]})]})})}),Q_=[{path:"/casinos",title:"Casinos"}];function GL(e,t){return e.sort((n,a)=>a.length-n.length).find(n=>t.startsWith(n))}const YL=Gt(()=>{const e=Ha();if(!sn().loggedIn)return g.jsx("div",{children:"You must be logged in"});const n=GL(Q_.map(a=>a.path),e.pathname);return g.jsxs("div",{children:[g.jsx("ul",{className:"nav nav-tabs mb-4 ",children:Q_.map(a=>g.jsx("li",{className:"nav-item",children:g.jsx(Pn,{to:a.path,className:`nav-link ${n===a.path?"active":""}`,children:a.title})},a.path))}),g.jsx(yO,{})]})});var KL=function(t){return QL(t)&&!XL(t)};function QL(e){return!!e&&typeof e=="object"}function XL(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||WL(e)}var ZL=typeof Symbol=="function"&&Symbol.for,JL=ZL?Symbol.for("react.element"):60103;function WL(e){return e.$$typeof===JL}function eB(e){return Array.isArray(e)?[]:{}}function Ad(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xu(eB(e),e,t):e}function tB(e,t,n){return e.concat(t).map(function(a){return Ad(a,n)})}function nB(e,t,n){var a={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(s){a[s]=Ad(e[s],n)}),Object.keys(t).forEach(function(s){!n.isMergeableObject(t[s])||!e[s]?a[s]=Ad(t[s],n):a[s]=Xu(e[s],t[s],n)}),a}function Xu(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||tB,n.isMergeableObject=n.isMergeableObject||KL;var a=Array.isArray(t),s=Array.isArray(e),o=a===s;return o?a?n.arrayMerge(e,t,n):nB(e,t,n):Ad(t,n)}Xu.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,s){return Xu(a,s,n)},{})};var Iv=Xu,f1=typeof global=="object"&&global&&global.Object===Object&&global,rB=typeof self=="object"&&self&&self.Object===Object&&self,sa=f1||rB||Function("return this")(),$i=sa.Symbol,d1=Object.prototype,aB=d1.hasOwnProperty,iB=d1.toString,wu=$i?$i.toStringTag:void 0;function sB(e){var t=aB.call(e,wu),n=e[wu];try{e[wu]=void 0;var a=!0}catch{}var s=iB.call(e);return a&&(t?e[wu]=n:delete e[wu]),s}var lB=Object.prototype,oB=lB.toString;function uB(e){return oB.call(e)}var cB="[object Null]",fB="[object Undefined]",X_=$i?$i.toStringTag:void 0;function Ys(e){return e==null?e===void 0?fB:cB:X_&&X_ in Object(e)?sB(e):uB(e)}function h1(e,t){return function(n){return e(t(n))}}var ig=h1(Object.getPrototypeOf,Object);function Ks(e){return e!=null&&typeof e=="object"}var dB="[object Object]",hB=Function.prototype,pB=Object.prototype,p1=hB.toString,mB=pB.hasOwnProperty,vB=p1.call(Object);function Z_(e){if(!Ks(e)||Ys(e)!=dB)return!1;var t=ig(e);if(t===null)return!0;var n=mB.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&p1.call(n)==vB}function yB(){this.__data__=[],this.size=0}function m1(e,t){return e===t||e!==e&&t!==t}function eh(e,t){for(var n=e.length;n--;)if(m1(e[n][0],t))return n;return-1}var gB=Array.prototype,bB=gB.splice;function SB(e){var t=this.__data__,n=eh(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():bB.call(t,n,1),--this.size,!0}function EB(e){var t=this.__data__,n=eh(t,e);return n<0?void 0:t[n][1]}function _B(e){return eh(this.__data__,e)>-1}function xB(e,t){var n=this.__data__,a=eh(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Ga(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Ga.prototype.clear=yB;Ga.prototype.delete=SB;Ga.prototype.get=EB;Ga.prototype.has=_B;Ga.prototype.set=xB;function OB(){this.__data__=new Ga,this.size=0}function TB(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function wB(e){return this.__data__.get(e)}function AB(e){return this.__data__.has(e)}function vc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NB="[object AsyncFunction]",CB="[object Function]",RB="[object GeneratorFunction]",DB="[object Proxy]";function v1(e){if(!vc(e))return!1;var t=Ys(e);return t==CB||t==RB||t==NB||t==DB}var Ym=sa["__core-js_shared__"],J_=function(){var e=/[^.]+$/.exec(Ym&&Ym.keys&&Ym.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jB(e){return!!J_&&J_ in e}var kB=Function.prototype,MB=kB.toString;function Qs(e){if(e!=null){try{return MB.call(e)}catch{}try{return e+""}catch{}}return""}var UB=/[\\^$.*+?()[\]{}|]/g,$B=/^\[object .+?Constructor\]$/,LB=Function.prototype,BB=Object.prototype,FB=LB.toString,IB=BB.hasOwnProperty,zB=RegExp("^"+FB.call(IB).replace(UB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qB(e){if(!vc(e)||jB(e))return!1;var t=v1(e)?zB:$B;return t.test(Qs(e))}function VB(e,t){return e==null?void 0:e[t]}function Xs(e,t){var n=VB(e,t);return qB(n)?n:void 0}var Zu=Xs(sa,"Map"),Ju=Xs(Object,"create");function HB(){this.__data__=Ju?Ju(null):{},this.size=0}function PB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GB="__lodash_hash_undefined__",YB=Object.prototype,KB=YB.hasOwnProperty;function QB(e){var t=this.__data__;if(Ju){var n=t[e];return n===GB?void 0:n}return KB.call(t,e)?t[e]:void 0}var XB=Object.prototype,ZB=XB.hasOwnProperty;function JB(e){var t=this.__data__;return Ju?t[e]!==void 0:ZB.call(t,e)}var WB="__lodash_hash_undefined__";function eF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ju&&t===void 0?WB:t,this}function Ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Ls.prototype.clear=HB;Ls.prototype.delete=PB;Ls.prototype.get=QB;Ls.prototype.has=JB;Ls.prototype.set=eF;function tF(){this.size=0,this.__data__={hash:new Ls,map:new(Zu||Ga),string:new Ls}}function nF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function th(e,t){var n=e.__data__;return nF(t)?n[typeof t=="string"?"string":"hash"]:n.map}function rF(e){var t=th(this,e).delete(e);return this.size-=t?1:0,t}function aF(e){return th(this,e).get(e)}function iF(e){return th(this,e).has(e)}function sF(e,t){var n=th(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}function Hi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Hi.prototype.clear=tF;Hi.prototype.delete=rF;Hi.prototype.get=aF;Hi.prototype.has=iF;Hi.prototype.set=sF;var lF=200;function oF(e,t){var n=this.__data__;if(n instanceof Ga){var a=n.__data__;if(!Zu||a.length<lF-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hi(a)}return n.set(e,t),this.size=n.size,this}function So(e){var t=this.__data__=new Ga(e);this.size=t.size}So.prototype.clear=OB;So.prototype.delete=TB;So.prototype.get=wB;So.prototype.has=AB;So.prototype.set=oF;function uF(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var W_=function(){try{var e=Xs(Object,"defineProperty");return e({},"",{}),e}catch{}}();function y1(e,t,n){t=="__proto__"&&W_?W_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var cF=Object.prototype,fF=cF.hasOwnProperty;function g1(e,t,n){var a=e[t];(!(fF.call(e,t)&&m1(a,n))||n===void 0&&!(t in e))&&y1(e,t,n)}function nh(e,t,n,a){var s=!n;n||(n={});for(var o=-1,c=t.length;++o<c;){var h=t[o],d=void 0;d===void 0&&(d=e[h]),s?y1(n,h,d):g1(n,h,d)}return n}function dF(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var hF="[object Arguments]";function ex(e){return Ks(e)&&Ys(e)==hF}var b1=Object.prototype,pF=b1.hasOwnProperty,mF=b1.propertyIsEnumerable,vF=ex(function(){return arguments}())?ex:function(e){return Ks(e)&&pF.call(e,"callee")&&!mF.call(e,"callee")},yc=Array.isArray;function yF(){return!1}var S1=typeof Vn=="object"&&Vn&&!Vn.nodeType&&Vn,tx=S1&&typeof Hn=="object"&&Hn&&!Hn.nodeType&&Hn,gF=tx&&tx.exports===S1,nx=gF?sa.Buffer:void 0,bF=nx?nx.isBuffer:void 0,E1=bF||yF,SF=9007199254740991,EF=/^(?:0|[1-9]\d*)$/;function _F(e,t){var n=typeof e;return t=t??SF,!!t&&(n=="number"||n!="symbol"&&EF.test(e))&&e>-1&&e%1==0&&e<t}var xF=9007199254740991;function _1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xF}var OF="[object Arguments]",TF="[object Array]",wF="[object Boolean]",AF="[object Date]",NF="[object Error]",CF="[object Function]",RF="[object Map]",DF="[object Number]",jF="[object Object]",kF="[object RegExp]",MF="[object Set]",UF="[object String]",$F="[object WeakMap]",LF="[object ArrayBuffer]",BF="[object DataView]",FF="[object Float32Array]",IF="[object Float64Array]",zF="[object Int8Array]",qF="[object Int16Array]",VF="[object Int32Array]",HF="[object Uint8Array]",PF="[object Uint8ClampedArray]",GF="[object Uint16Array]",YF="[object Uint32Array]",Tt={};Tt[FF]=Tt[IF]=Tt[zF]=Tt[qF]=Tt[VF]=Tt[HF]=Tt[PF]=Tt[GF]=Tt[YF]=!0;Tt[OF]=Tt[TF]=Tt[LF]=Tt[wF]=Tt[BF]=Tt[AF]=Tt[NF]=Tt[CF]=Tt[RF]=Tt[DF]=Tt[jF]=Tt[kF]=Tt[MF]=Tt[UF]=Tt[$F]=!1;function KF(e){return Ks(e)&&_1(e.length)&&!!Tt[Ys(e)]}function sg(e){return function(t){return e(t)}}var x1=typeof Vn=="object"&&Vn&&!Vn.nodeType&&Vn,$u=x1&&typeof Hn=="object"&&Hn&&!Hn.nodeType&&Hn,QF=$u&&$u.exports===x1,Km=QF&&f1.process,ho=function(){try{var e=$u&&$u.require&&$u.require("util").types;return e||Km&&Km.binding&&Km.binding("util")}catch{}}(),rx=ho&&ho.isTypedArray,XF=rx?sg(rx):KF,ZF=Object.prototype,JF=ZF.hasOwnProperty;function O1(e,t){var n=yc(e),a=!n&&vF(e),s=!n&&!a&&E1(e),o=!n&&!a&&!s&&XF(e),c=n||a||s||o,h=c?dF(e.length,String):[],d=h.length;for(var p in e)(t||JF.call(e,p))&&!(c&&(p=="length"||s&&(p=="offset"||p=="parent")||o&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||_F(p,d)))&&h.push(p);return h}var WF=Object.prototype;function lg(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||WF;return e===n}var eI=h1(Object.keys,Object),tI=Object.prototype,nI=tI.hasOwnProperty;function rI(e){if(!lg(e))return eI(e);var t=[];for(var n in Object(e))nI.call(e,n)&&n!="constructor"&&t.push(n);return t}function T1(e){return e!=null&&_1(e.length)&&!v1(e)}function og(e){return T1(e)?O1(e):rI(e)}function aI(e,t){return e&&nh(t,og(t),e)}function iI(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var sI=Object.prototype,lI=sI.hasOwnProperty;function oI(e){if(!vc(e))return iI(e);var t=lg(e),n=[];for(var a in e)a=="constructor"&&(t||!lI.call(e,a))||n.push(a);return n}function ug(e){return T1(e)?O1(e,!0):oI(e)}function uI(e,t){return e&&nh(t,ug(t),e)}var w1=typeof Vn=="object"&&Vn&&!Vn.nodeType&&Vn,ax=w1&&typeof Hn=="object"&&Hn&&!Hn.nodeType&&Hn,cI=ax&&ax.exports===w1,ix=cI?sa.Buffer:void 0,sx=ix?ix.allocUnsafe:void 0;function fI(e,t){if(t)return e.slice();var n=e.length,a=sx?sx(n):new e.constructor(n);return e.copy(a),a}function A1(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}function dI(e,t){for(var n=-1,a=e==null?0:e.length,s=0,o=[];++n<a;){var c=e[n];t(c,n,e)&&(o[s++]=c)}return o}function N1(){return[]}var hI=Object.prototype,pI=hI.propertyIsEnumerable,lx=Object.getOwnPropertySymbols,cg=lx?function(e){return e==null?[]:(e=Object(e),dI(lx(e),function(t){return pI.call(e,t)}))}:N1;function mI(e,t){return nh(e,cg(e),t)}function C1(e,t){for(var n=-1,a=t.length,s=e.length;++n<a;)e[s+n]=t[n];return e}var vI=Object.getOwnPropertySymbols,R1=vI?function(e){for(var t=[];e;)C1(t,cg(e)),e=ig(e);return t}:N1;function yI(e,t){return nh(e,R1(e),t)}function D1(e,t,n){var a=t(e);return yc(e)?a:C1(a,n(e))}function gI(e){return D1(e,og,cg)}function bI(e){return D1(e,ug,R1)}var zv=Xs(sa,"DataView"),qv=Xs(sa,"Promise"),Vv=Xs(sa,"Set"),Hv=Xs(sa,"WeakMap"),ox="[object Map]",SI="[object Object]",ux="[object Promise]",cx="[object Set]",fx="[object WeakMap]",dx="[object DataView]",EI=Qs(zv),_I=Qs(Zu),xI=Qs(qv),OI=Qs(Vv),TI=Qs(Hv),Ca=Ys;(zv&&Ca(new zv(new ArrayBuffer(1)))!=dx||Zu&&Ca(new Zu)!=ox||qv&&Ca(qv.resolve())!=ux||Vv&&Ca(new Vv)!=cx||Hv&&Ca(new Hv)!=fx)&&(Ca=function(e){var t=Ys(e),n=t==SI?e.constructor:void 0,a=n?Qs(n):"";if(a)switch(a){case EI:return dx;case _I:return ox;case xI:return ux;case OI:return cx;case TI:return fx}return t});var wI=Object.prototype,AI=wI.hasOwnProperty;function NI(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&AI.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var hx=sa.Uint8Array;function fg(e){var t=new e.constructor(e.byteLength);return new hx(t).set(new hx(e)),t}function CI(e,t){var n=t?fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var RI=/\w*$/;function DI(e){var t=new e.constructor(e.source,RI.exec(e));return t.lastIndex=e.lastIndex,t}var px=$i?$i.prototype:void 0,mx=px?px.valueOf:void 0;function jI(e){return mx?Object(mx.call(e)):{}}function kI(e,t){var n=t?fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var MI="[object Boolean]",UI="[object Date]",$I="[object Map]",LI="[object Number]",BI="[object RegExp]",FI="[object Set]",II="[object String]",zI="[object Symbol]",qI="[object ArrayBuffer]",VI="[object DataView]",HI="[object Float32Array]",PI="[object Float64Array]",GI="[object Int8Array]",YI="[object Int16Array]",KI="[object Int32Array]",QI="[object Uint8Array]",XI="[object Uint8ClampedArray]",ZI="[object Uint16Array]",JI="[object Uint32Array]";function WI(e,t,n){var a=e.constructor;switch(t){case qI:return fg(e);case MI:case UI:return new a(+e);case VI:return CI(e,n);case HI:case PI:case GI:case YI:case KI:case QI:case XI:case ZI:case JI:return kI(e,n);case $I:return new a;case LI:case II:return new a(e);case BI:return DI(e);case FI:return new a;case zI:return jI(e)}}var vx=Object.create,e3=function(){function e(){}return function(t){if(!vc(t))return{};if(vx)return vx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function t3(e){return typeof e.constructor=="function"&&!lg(e)?e3(ig(e)):{}}var n3="[object Map]";function r3(e){return Ks(e)&&Ca(e)==n3}var yx=ho&&ho.isMap,a3=yx?sg(yx):r3,i3="[object Set]";function s3(e){return Ks(e)&&Ca(e)==i3}var gx=ho&&ho.isSet,l3=gx?sg(gx):s3,o3=1,u3=2,c3=4,j1="[object Arguments]",f3="[object Array]",d3="[object Boolean]",h3="[object Date]",p3="[object Error]",k1="[object Function]",m3="[object GeneratorFunction]",v3="[object Map]",y3="[object Number]",M1="[object Object]",g3="[object RegExp]",b3="[object Set]",S3="[object String]",E3="[object Symbol]",_3="[object WeakMap]",x3="[object ArrayBuffer]",O3="[object DataView]",T3="[object Float32Array]",w3="[object Float64Array]",A3="[object Int8Array]",N3="[object Int16Array]",C3="[object Int32Array]",R3="[object Uint8Array]",D3="[object Uint8ClampedArray]",j3="[object Uint16Array]",k3="[object Uint32Array]",_t={};_t[j1]=_t[f3]=_t[x3]=_t[O3]=_t[d3]=_t[h3]=_t[T3]=_t[w3]=_t[A3]=_t[N3]=_t[C3]=_t[v3]=_t[y3]=_t[M1]=_t[g3]=_t[b3]=_t[S3]=_t[E3]=_t[R3]=_t[D3]=_t[j3]=_t[k3]=!0;_t[p3]=_t[k1]=_t[_3]=!1;function Lu(e,t,n,a,s,o){var c,h=t&o3,d=t&u3,p=t&c3;if(c!==void 0)return c;if(!vc(e))return e;var v=yc(e);if(v){if(c=NI(e),!h)return A1(e,c)}else{var b=Ca(e),y=b==k1||b==m3;if(E1(e))return fI(e,h);if(b==M1||b==j1||y&&!s){if(c=d||y?{}:t3(e),!h)return d?yI(e,uI(c,e)):mI(e,aI(c,e))}else{if(!_t[b])return s?e:{};c=WI(e,b,h)}}o||(o=new So);var _=o.get(e);if(_)return _;o.set(e,c),l3(e)?e.forEach(function(N){c.add(Lu(N,t,n,N,e,o))}):a3(e)&&e.forEach(function(N,O){c.set(O,Lu(N,t,n,O,e,o))});var x=p?d?bI:gI:d?ug:og,A=v?void 0:x(e);return uF(A||e,function(N,O){A&&(O=N,N=e[O]),g1(c,O,Lu(N,t,n,O,e,o))}),c}var M3=1,U3=4;function Vf(e){return Lu(e,M3|U3)}var Qm,bx;function $3(){if(bx)return Qm;bx=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,a=typeof Element<"u";function s(o,c){if(o===c)return!0;if(o&&c&&typeof o=="object"&&typeof c=="object"){var h=e(o),d=e(c),p,v,b;if(h&&d){if(v=o.length,v!=c.length)return!1;for(p=v;p--!==0;)if(!s(o[p],c[p]))return!1;return!0}if(h!=d)return!1;var y=o instanceof Date,_=c instanceof Date;if(y!=_)return!1;if(y&&_)return o.getTime()==c.getTime();var x=o instanceof RegExp,A=c instanceof RegExp;if(x!=A)return!1;if(x&&A)return o.toString()==c.toString();var N=t(o);if(v=N.length,v!==t(c).length)return!1;for(p=v;p--!==0;)if(!n.call(c,N[p]))return!1;if(a&&o instanceof Element&&c instanceof Element)return o===c;for(p=v;p--!==0;)if(b=N[p],!(b==="_owner"&&o.$$typeof)&&!s(o[b],c[b]))return!1;return!0}return o!==o&&c!==c}return Qm=function(c,h){try{return s(c,h)}catch(d){if(d.message&&d.message.match(/stack|recursion/i)||d.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",d.name,d.message),!1;throw d}},Qm}var L3=$3();const vs=Bs(L3);var B3=4;function Sx(e){return Lu(e,B3)}function U1(e,t){for(var n=-1,a=e==null?0:e.length,s=Array(a);++n<a;)s[n]=t(e[n],n,e);return s}var F3="[object Symbol]";function dg(e){return typeof e=="symbol"||Ks(e)&&Ys(e)==F3}var I3="Expected a function";function hg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(I3);var n=function(){var a=arguments,s=t?t.apply(this,a):a[0],o=n.cache;if(o.has(s))return o.get(s);var c=e.apply(this,a);return n.cache=o.set(s,c)||o,c};return n.cache=new(hg.Cache||Hi),n}hg.Cache=Hi;var z3=500;function q3(e){var t=hg(e,function(a){return n.size===z3&&n.clear(),a}),n=t.cache;return t}var V3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H3=/\\(\\)?/g,P3=q3(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(V3,function(n,a,s,o){t.push(s?o.replace(H3,"$1"):a||n)}),t});function G3(e){if(typeof e=="string"||dg(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ex=$i?$i.prototype:void 0,_x=Ex?Ex.toString:void 0;function $1(e){if(typeof e=="string")return e;if(yc(e))return U1(e,$1)+"";if(dg(e))return _x?_x.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Y3(e){return e==null?"":$1(e)}function L1(e){return yc(e)?U1(e,G3):dg(e)?[e]:A1(P3(Y3(e)))}var Xm={exports:{}},ft={};/** @license React v16.13.1
|
|
155
|
+
*/var y_;function zM(){return y_||(y_=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",c=0;c<arguments.length;c++){var h=arguments[c];h&&(o=s(o,a(h)))}return o}function a(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var h in o)t.call(o,h)&&o[h]&&(c=s(c,h));return c}function s(o,c){return c?o?o+" "+c:o+c:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}($m)),$m.exports}var qM=zM();const be=Bs(qM);function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Av.apply(null,arguments)}function LT(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function g_(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function VM(e){var t=HM(e,"string");return typeof t=="symbol"?t:String(t)}function HM(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BT(e,t,n){var a=S.useRef(e!==void 0),s=S.useState(t),o=s[0],c=s[1],h=e!==void 0,d=a.current;return a.current=h,!h&&d&&o!==t&&c(t),[h?e:o,S.useCallback(function(p){for(var v=arguments.length,b=new Array(v>1?v-1:0),y=1;y<v;y++)b[y-1]=arguments[y];n&&n.apply(void 0,[p].concat(b)),c(p)},[n])]}function Cy(e,t){return Object.keys(t).reduce(function(n,a){var s,o=n,c=o[g_(a)],h=o[a],d=LT(o,[g_(a),a].map(VM)),p=t[a],v=BT(h,c,e[p]),b=v[0],y=v[1];return Av({},d,(s={},s[a]=b,s[p]=y,s))},e)}function Nv(e,t){return Nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nv(e,t)}function PM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nv(e,t)}const FT=["xxl","xl","lg","md","sm","xs"],IT="xs",cc=S.createContext({prefixes:{},breakpoints:FT,minBreakpoint:IT}),{Consumer:B6,Provider:F6}=cc;function Ce(e,t){const{prefixes:n}=S.useContext(cc);return e||n[t]||t}function Ry(){const{breakpoints:e}=S.useContext(cc);return e}function Dy(){const{minBreakpoint:e}=S.useContext(cc);return e}function jy(){const{dir:e}=S.useContext(cc);return e==="rtl"}function yo(e){return e&&e.ownerDocument||document}function GM(e){var t=yo(e);return t&&t.defaultView||window}function YM(e,t){return GM(e).getComputedStyle(e,t)}var KM=/([A-Z])/g;function QM(e){return e.replace(KM,"-$1").toLowerCase()}var XM=/^ms-/;function If(e){return QM(e).replace(XM,"-ms-")}var ZM=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function JM(e){return!!(e&&ZM.test(e))}function Ba(e,t){var n="",a="";if(typeof t=="string")return e.style.getPropertyValue(If(t))||YM(e).getPropertyValue(If(t));Object.keys(t).forEach(function(s){var o=t[s];!o&&o!==0?e.style.removeProperty(If(s)):JM(s)?a+=s+"("+o+") ":n+=If(s)+": "+o+";"}),a&&(n+="transform: "+a+";"),e.style.cssText+=";"+n}var Lm={exports:{}},Bm,b_;function WM(){if(b_)return Bm;b_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bm=e,Bm}var Fm,S_;function eU(){if(S_)return Fm;S_=1;var e=WM();function t(){}function n(){}return n.resetWarningCache=t,Fm=function(){function a(c,h,d,p,v,b){if(b!==e){var y=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 y.name="Invariant Violation",y}}a.isRequired=a;function s(){return a}var o={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Fm}var E_;function tU(){return E_||(E_=1,Lm.exports=eU()()),Lm.exports}var nU=tU();const Pe=Bs(nU),__={disabled:!1},zT=mt.createContext(null);var rU=function(t){return t.scrollTop},Ru="unmounted",_i="exited",Cr="entering",ka="entered",Gu="exiting",Pa=function(e){PM(t,e);function t(a,s){var o;o=e.call(this,a,s)||this;var c=s,h=c&&!c.isMounting?a.enter:a.appear,d;return o.appearStatus=null,a.in?h?(d=_i,o.appearStatus=Cr):d=ka:a.unmountOnExit||a.mountOnEnter?d=Ru:d=_i,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var c=s.in;return c&&o.status===Ru?{status:_i}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var o=null;if(s!==this.props){var c=this.state.status;this.props.in?c!==Cr&&c!==ka&&(o=Cr):(c===Cr||c===ka)&&(o=Gu)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,o,c,h;return o=c=h=s,s!=null&&typeof s!="number"&&(o=s.exit,c=s.enter,h=s.appear!==void 0?s.appear:c),{exit:o,enter:c,appear:h}},n.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===Cr){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this);c&&rU(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_i&&this.setState({status:Ru})},n.performEnter=function(s){var o=this,c=this.props.enter,h=this.context?this.context.isMounting:s,d=this.props.nodeRef?[h]:[bs.findDOMNode(this),h],p=d[0],v=d[1],b=this.getTimeouts(),y=h?b.appear:b.enter;if(!s&&!c||__.disabled){this.safeSetState({status:ka},function(){o.props.onEntered(p)});return}this.props.onEnter(p,v),this.safeSetState({status:Cr},function(){o.props.onEntering(p,v),o.onTransitionEnd(y,function(){o.safeSetState({status:ka},function(){o.props.onEntered(p,v)})})})},n.performExit=function(){var s=this,o=this.props.exit,c=this.getTimeouts(),h=this.props.nodeRef?void 0:bs.findDOMNode(this);if(!o||__.disabled){this.safeSetState({status:_i},function(){s.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:Gu},function(){s.props.onExiting(h),s.onTransitionEnd(c.exit,function(){s.safeSetState({status:_i},function(){s.props.onExited(h)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},n.setNextCallback=function(s){var o=this,c=!0;return this.nextCallback=function(h){c&&(c=!1,o.nextCallback=null,s(h))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(s,o){this.setNextCallback(o);var c=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this),h=s==null&&!this.props.addEndListener;if(!c||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=d[0],v=d[1];this.props.addEndListener(p,v)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===Ru)return null;var o=this.props,c=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var h=LT(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return mt.createElement(zT.Provider,{value:null},typeof c=="function"?c(s,h):mt.cloneElement(mt.Children.only(c),h))},t}(mt.Component);Pa.contextType=zT;Pa.propTypes={};function $l(){}Pa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$l,onEntering:$l,onEntered:$l,onExit:$l,onExiting:$l,onExited:$l};Pa.UNMOUNTED=Ru;Pa.EXITED=_i;Pa.ENTERING=Cr;Pa.ENTERED=ka;Pa.EXITING=Gu;function qT(e){return e.code==="Escape"||e.keyCode===27}function aU(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Gs(e){if(!e||typeof e=="function")return null;const{major:t}=aU();return t>=19?e.props.ref:e.ref}const go=!!(typeof window<"u"&&window.document&&window.document.createElement);var Cv=!1,Rv=!1;try{var Im={get passive(){return Cv=!0},get once(){return Rv=Cv=!0}};go&&(window.addEventListener("test",Im,Im),window.removeEventListener("test",Im,!0))}catch{}function VT(e,t,n,a){if(a&&typeof a!="boolean"&&!Rv){var s=a.once,o=a.capture,c=n;!Rv&&s&&(c=n.__once||function h(d){this.removeEventListener(t,h,o),n.call(this,d)},n.__once=c),e.addEventListener(t,c,Cv?a:o)}e.addEventListener(t,n,a)}function Dv(e,t,n,a){var s=a&&typeof a!="boolean"?a.capture:a;e.removeEventListener(t,n,s),n.__once&&e.removeEventListener(t,n.__once,s)}function Ma(e,t,n,a){return VT(e,t,n,a),function(){Dv(e,t,n,a)}}function iU(e,t,n,a){if(a===void 0&&(a=!0),e){var s=document.createEvent("HTMLEvents");s.initEvent(t,n,a),e.dispatchEvent(s)}}function sU(e){var t=Ba(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function lU(e,t,n){n===void 0&&(n=5);var a=!1,s=setTimeout(function(){a||iU(e,"transitionend",!0)},t+n),o=Ma(e,"transitionend",function(){a=!0},{once:!0});return function(){clearTimeout(s),o()}}function HT(e,t,n,a){n==null&&(n=sU(e)||0);var s=lU(e,n,a),o=Ma(e,"transitionend",t);return function(){s(),o()}}function x_(e,t){const n=Ba(e,t)||"",a=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*a}function ky(e,t){const n=x_(e,"transitionDuration"),a=x_(e,"transitionDelay"),s=HT(e,o=>{o.target===e&&(s(),t(o))},n+a)}function xu(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...s){t.apply(this,s),n.apply(this,s)}},null)}function PT(e){e.offsetHeight}const O_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function oU(e,t){const n=O_(e),a=O_(t);return s=>{n&&n(s),a&&a(s)}}function Yd(e,t){return S.useMemo(()=>oU(e,t),[e,t])}function _d(e){return e&&"setState"in e?bs.findDOMNode(e):e??null}const My=mt.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:a,onExiting:s,onExited:o,addEndListener:c,children:h,childRef:d,...p},v)=>{const b=S.useRef(null),y=Yd(b,d),_=w=>{y(_d(w))},x=w=>q=>{w&&b.current&&w(b.current,q)},A=S.useCallback(x(e),[e]),N=S.useCallback(x(t),[t]),O=S.useCallback(x(n),[n]),R=S.useCallback(x(a),[a]),D=S.useCallback(x(s),[s]),U=S.useCallback(x(o),[o]),C=S.useCallback(x(c),[c]);return g.jsx(Pa,{ref:v,...p,onEnter:A,onEntered:O,onEntering:N,onExit:R,onExited:U,onExiting:D,addEndListener:C,nodeRef:b,children:typeof h=="function"?(w,q)=>h(w,{...q,ref:_}):mt.cloneElement(h,{ref:_})})}),uU={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function cU(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,a=t[n],s=uU[e];return a+parseInt(Ba(t,s[0]),10)+parseInt(Ba(t,s[1]),10)}const fU={[_i]:"collapse",[Gu]:"collapsing",[Cr]:"collapsing",[ka]:"collapse show"},dU=mt.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:a,onExiting:s,className:o,children:c,dimension:h="height",in:d=!1,timeout:p=300,mountOnEnter:v=!1,unmountOnExit:b=!1,appear:y=!1,getDimensionValue:_=cU,...x},A)=>{const N=typeof h=="function"?h():h,O=S.useMemo(()=>xu(w=>{w.style[N]="0"},e),[N,e]),R=S.useMemo(()=>xu(w=>{const q=`scroll${N[0].toUpperCase()}${N.slice(1)}`;w.style[N]=`${w[q]}px`},t),[N,t]),D=S.useMemo(()=>xu(w=>{w.style[N]=null},n),[N,n]),U=S.useMemo(()=>xu(w=>{w.style[N]=`${_(N,w)}px`,PT(w)},a),[a,_,N]),C=S.useMemo(()=>xu(w=>{w.style[N]=null},s),[N,s]);return g.jsx(My,{ref:A,addEndListener:ky,...x,"aria-expanded":x.role?d:null,onEnter:O,onEntering:R,onEntered:D,onExit:U,onExiting:C,childRef:Gs(c),in:d,timeout:p,mountOnEnter:v,unmountOnExit:b,appear:y,children:(w,q)=>mt.cloneElement(c,{...q,className:be(o,c.props.className,fU[w],N==="width"&&"collapse-horizontal")})})});function hU(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function ki(e){const t=hU(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fc=e=>S.forwardRef((t,n)=>g.jsx("div",{...t,ref:n,className:be(t.className,e)})),GT=fc("h4");GT.displayName="DivStyledAsH4";const YT=S.forwardRef(({className:e,bsPrefix:t,as:n=GT,...a},s)=>(t=Ce(t,"alert-heading"),g.jsx(n,{ref:s,className:be(e,t),...a})));YT.displayName="AlertHeading";function T_(){return S.useState(null)}function pU(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function dr(e){const t=pU(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function KT(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function mU(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const vU=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",yU=typeof document<"u",w_=yU||vU?S.useLayoutEffect:S.useEffect,gU=["as","disabled"];function bU(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function SU(e){return!e||e.trim()==="#"}function Uy({tagName:e,disabled:t,href:n,target:a,rel:s,role:o,onClick:c,tabIndex:h=0,type:d}){e||(n!=null||a!=null||s!=null?e="a":e="button");const p={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},p];const v=y=>{if((t||e==="a"&&SU(n))&&y.preventDefault(),t){y.stopPropagation();return}c==null||c(y)},b=y=>{y.key===" "&&(y.preventDefault(),v(y))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:h,href:n,target:e==="a"?a:void 0,"aria-disabled":t||void 0,rel:e==="a"?s:void 0,onClick:v,onKeyDown:b},p]}const QT=S.forwardRef((e,t)=>{let{as:n,disabled:a}=e,s=bU(e,gU);const[o,{tagName:c}]=Uy(Object.assign({tagName:n,disabled:a},s));return g.jsx(c,Object.assign({},s,o,{ref:t}))});QT.displayName="Button";const EU=["onKeyDown"];function _U(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function xU(e){return!e||e.trim()==="#"}const Kd=S.forwardRef((e,t)=>{let{onKeyDown:n}=e,a=_U(e,EU);const[s]=Uy(Object.assign({tagName:"a"},a)),o=dr(c=>{s.onKeyDown(c),n==null||n(c)});return xU(a.href)||a.role==="button"?g.jsx("a",Object.assign({ref:t},a,s,{onKeyDown:o})):g.jsx("a",Object.assign({ref:t},a,{onKeyDown:n}))});Kd.displayName="Anchor";const XT=S.forwardRef(({className:e,bsPrefix:t,as:n=Kd,...a},s)=>(t=Ce(t,"alert-link"),g.jsx(n,{ref:s,className:be(e,t),...a})));XT.displayName="AlertLink";const OU={[Cr]:"show",[ka]:"show"},Mi=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:a,...s},o)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...s},h=S.useCallback((d,p)=>{PT(d),a==null||a(d,p)},[a]);return g.jsx(My,{ref:o,addEndListener:ky,...c,onEnter:h,childRef:Gs(t),children:(d,p)=>S.cloneElement(t,{...p,className:be("fade",e,t.props.className,OU[d],n[d])})})});Mi.displayName="Fade";const TU={"aria-label":Pe.string,onClick:Pe.func,variant:Pe.oneOf(["white"])},Qd=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...a},s)=>g.jsx("button",{ref:s,type:"button",className:be("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...a}));Qd.displayName="CloseButton";Qd.propTypes=TU;const ZT=S.forwardRef((e,t)=>{const{bsPrefix:n,show:a=!0,closeLabel:s="Close alert",closeVariant:o,className:c,children:h,variant:d="primary",onClose:p,dismissible:v,transition:b=Mi,...y}=Cy(e,{show:"onClose"}),_=Ce(n,"alert"),x=ki(O=>{p&&p(!1,O)}),A=b===!0?Mi:b,N=g.jsxs("div",{role:"alert",...A?void 0:y,ref:t,className:be(c,_,d&&`${_}-${d}`,v&&`${_}-dismissible`),children:[v&&g.jsx(Qd,{onClick:x,"aria-label":s,variant:o}),h]});return A?g.jsx(A,{unmountOnExit:!0,...y,ref:void 0,in:a,children:N}):a?N:null});ZT.displayName="Alert";const vr=Object.assign(ZT,{Link:XT,Heading:YT}),JT=S.forwardRef(({bsPrefix:e,active:t=!1,children:n,className:a,as:s="li",linkAs:o=Kd,linkProps:c={},href:h,title:d,target:p,...v},b)=>{const y=Ce(e,"breadcrumb-item");return g.jsx(s,{ref:b,...v,className:be(y,a,{active:t}),"aria-current":t?"page":void 0,children:t?n:g.jsx(o,{...c,href:h,title:d,target:p,children:n})})});JT.displayName="BreadcrumbItem";const WT=S.forwardRef(({bsPrefix:e,className:t,listProps:n={},children:a,label:s="breadcrumb",as:o="nav",...c},h)=>{const d=Ce(e,"breadcrumb");return g.jsx(o,{"aria-label":s,className:t,ref:h,...c,children:g.jsx("ol",{...n,className:be(d,n==null?void 0:n.className),children:a})})});WT.displayName="Breadcrumb";const zm=Object.assign(WT,{Item:JT}),Jt=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:a,active:s=!1,disabled:o=!1,className:c,...h},d)=>{const p=Ce(t,"btn"),[v,{tagName:b}]=Uy({tagName:e,disabled:o,...h}),y=b;return g.jsx(y,{...v,...h,ref:d,disabled:o,className:be(c,p,s&&"active",n&&`${p}-${n}`,a&&`${p}-${a}`,h.href&&o&&"disabled")})});Jt.displayName="Button";const $y=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"card-body"),g.jsx(n,{ref:s,className:be(e,t),...a})));$y.displayName="CardBody";const ew=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"card-footer"),g.jsx(n,{ref:s,className:be(e,t),...a})));ew.displayName="CardFooter";const Ly=S.createContext(null);Ly.displayName="CardHeaderContext";const tw=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...a},s)=>{const o=Ce(e,"card-header"),c=S.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return g.jsx(Ly.Provider,{value:c,children:g.jsx(n,{ref:s,...a,className:be(t,o)})})});tw.displayName="CardHeader";const nw=S.forwardRef(({bsPrefix:e,className:t,variant:n,as:a="img",...s},o)=>{const c=Ce(e,"card-img");return g.jsx(a,{ref:o,className:be(n?`${c}-${n}`:c,t),...s})});nw.displayName="CardImg";const rw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"card-img-overlay"),g.jsx(n,{ref:s,className:be(e,t),...a})));rw.displayName="CardImgOverlay";const aw=S.forwardRef(({className:e,bsPrefix:t,as:n="a",...a},s)=>(t=Ce(t,"card-link"),g.jsx(n,{ref:s,className:be(e,t),...a})));aw.displayName="CardLink";const wU=fc("h6"),iw=S.forwardRef(({className:e,bsPrefix:t,as:n=wU,...a},s)=>(t=Ce(t,"card-subtitle"),g.jsx(n,{ref:s,className:be(e,t),...a})));iw.displayName="CardSubtitle";const sw=S.forwardRef(({className:e,bsPrefix:t,as:n="p",...a},s)=>(t=Ce(t,"card-text"),g.jsx(n,{ref:s,className:be(e,t),...a})));sw.displayName="CardText";const AU=fc("h5"),lw=S.forwardRef(({className:e,bsPrefix:t,as:n=AU,...a},s)=>(t=Ce(t,"card-title"),g.jsx(n,{ref:s,className:be(e,t),...a})));lw.displayName="CardTitle";const ow=S.forwardRef(({bsPrefix:e,className:t,bg:n,text:a,border:s,body:o=!1,children:c,as:h="div",...d},p)=>{const v=Ce(e,"card");return g.jsx(h,{ref:p,...d,className:be(t,v,n&&`bg-${n}`,a&&`text-${a}`,s&&`border-${s}`),children:o?g.jsx($y,{children:c}):c})});ow.displayName="Card";const Ql=Object.assign(ow,{Img:nw,Title:lw,Subtitle:iw,Body:$y,Link:aw,Text:sw,Header:tw,Footer:ew,ImgOverlay:rw});function NU(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function CU(e){const t=S.useRef(e);return t.current=e,t}function uw(e){const t=CU(e);S.useEffect(()=>()=>t.current(),[])}const jv=2**31-1;function cw(e,t,n){const a=n-Date.now();e.current=a<=jv?setTimeout(t,a):setTimeout(()=>cw(e,t,n),jv)}function RU(){const e=NU(),t=S.useRef();return uw(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function a(s,o=0){e()&&(n(),o<=jv?t.current=setTimeout(s,o):cw(t,s,Date.now()+o))}return{set:a,clear:n,handleRef:t}},[])}function DU(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function jU({as:e,bsPrefix:t,className:n,...a}){t=Ce(t,"col");const s=Ry(),o=Dy(),c=[],h=[];return s.forEach(d=>{const p=a[d];delete a[d];let v,b,y;typeof p=="object"&&p!=null?{span:v,offset:b,order:y}=p:v=p;const _=d!==o?`-${d}`:"";v&&c.push(v===!0?`${t}${_}`:`${t}${_}-${v}`),y!=null&&h.push(`order${_}-${y}`),b!=null&&h.push(`offset${_}-${b}`)}),[{...a,className:be(n,...c,...h)},{as:e,bsPrefix:t,spans:c}]}const Xd=S.forwardRef((e,t)=>{const[{className:n,...a},{as:s="div",bsPrefix:o,spans:c}]=jU(e);return g.jsx(s,{...a,ref:t,className:be(n,!c.length&&o)})});Xd.displayName="Col";const dc=S.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:a,...s},o)=>{const c=Ce(e,"container"),h=typeof t=="string"?`-${t}`:"-fluid";return g.jsx(n,{ref:o,...s,className:be(a,t?`${c}${h}`:c)})});dc.displayName="Container";var kU=Function.prototype.bind.call(Function.prototype.call,[].slice);function ms(e,t){return kU(e.querySelectorAll(t))}function MU(){const[,e]=S.useReducer(t=>t+1,0);return e}var A_=Object.prototype.hasOwnProperty;function N_(e,t,n){for(n of e.keys())if(ku(n,t))return n}function ku(e,t){var n,a,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)for(;a--&&ku(e[a],t[a]););return a===-1}if(n===Set){if(e.size!==t.size)return!1;for(a of e)if(s=a,s&&typeof s=="object"&&(s=N_(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(a of e)if(s=a[0],s&&typeof s=="object"&&(s=N_(t,s),!s)||!ku(a[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((a=e.byteLength)===t.byteLength)for(;a--&&e.getInt8(a)===t.getInt8(a););return a===-1}if(ArrayBuffer.isView(e)){if((a=e.byteLength)===t.byteLength)for(;a--&&e[a]===t[a];);return a===-1}if(!n||typeof e=="object"){a=0;for(n in e)if(A_.call(e,n)&&++a&&!A_.call(t,n)||!(n in t)||!ku(e[n],t[n]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}function UU(e){const t=KT();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Nn="top",yr="bottom",gr="right",Cn="left",By="auto",hc=[Nn,yr,gr,Cn],oo="start",Yu="end",$U="clippingParents",fw="viewport",Ou="popper",LU="reference",C_=hc.reduce(function(e,t){return e.concat([t+"-"+oo,t+"-"+Yu])},[]),dw=[].concat(hc,[By]).reduce(function(e,t){return e.concat([t,t+"-"+oo,t+"-"+Yu])},[]),BU="beforeRead",FU="read",IU="afterRead",zU="beforeMain",qU="main",VU="afterMain",HU="beforeWrite",PU="write",GU="afterWrite",YU=[BU,FU,IU,zU,qU,VU,HU,PU,GU];function na(e){return e.split("-")[0]}function Yn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $s(e){var t=Yn(e).Element;return e instanceof t||e instanceof Element}function ra(e){var t=Yn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fy(e){if(typeof ShadowRoot>"u")return!1;var t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ns=Math.max,xd=Math.min,uo=Math.round;function kv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function hw(){return!/^((?!chrome|android).)*safari/i.test(kv())}function co(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),s=1,o=1;t&&ra(e)&&(s=e.offsetWidth>0&&uo(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uo(a.height)/e.offsetHeight||1);var c=$s(e)?Yn(e):window,h=c.visualViewport,d=!hw()&&n,p=(a.left+(d&&h?h.offsetLeft:0))/s,v=(a.top+(d&&h?h.offsetTop:0))/o,b=a.width/s,y=a.height/o;return{width:b,height:y,top:v,right:p+b,bottom:v+y,left:p,x:p,y:v}}function Iy(e){var t=co(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function pw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fy(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ui(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){return Yn(e).getComputedStyle(e)}function KU(e){return["table","td","th"].indexOf(Ui(e))>=0}function qi(e){return(($s(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return Ui(e)==="html"?e:e.assignedSlot||e.parentNode||(Fy(e)?e.host:null)||qi(e)}function R_(e){return!ra(e)||za(e).position==="fixed"?null:e.offsetParent}function QU(e){var t=/firefox/i.test(kv()),n=/Trident/i.test(kv());if(n&&ra(e)){var a=za(e);if(a.position==="fixed")return null}var s=Zd(e);for(Fy(s)&&(s=s.host);ra(s)&&["html","body"].indexOf(Ui(s))<0;){var o=za(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function pc(e){for(var t=Yn(e),n=R_(e);n&&KU(n)&&za(n).position==="static";)n=R_(n);return n&&(Ui(n)==="html"||Ui(n)==="body"&&za(n).position==="static")?t:n||QU(e)||t}function zy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mu(e,t,n){return Ns(e,xd(t,n))}function XU(e,t,n){var a=Mu(e,t,n);return a>n?n:a}function mw(){return{top:0,right:0,bottom:0,left:0}}function vw(e){return Object.assign({},mw(),e)}function yw(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var ZU=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,vw(typeof t!="number"?t:yw(t,hc))};function JU(e){var t,n=e.state,a=e.name,s=e.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,h=na(n.placement),d=zy(h),p=[Cn,gr].indexOf(h)>=0,v=p?"height":"width";if(!(!o||!c)){var b=ZU(s.padding,n),y=Iy(o),_=d==="y"?Nn:Cn,x=d==="y"?yr:gr,A=n.rects.reference[v]+n.rects.reference[d]-c[d]-n.rects.popper[v],N=c[d]-n.rects.reference[d],O=pc(o),R=O?d==="y"?O.clientHeight||0:O.clientWidth||0:0,D=A/2-N/2,U=b[_],C=R-y[v]-b[x],w=R/2-y[v]/2+D,q=Mu(U,w,C),re=d;n.modifiersData[a]=(t={},t[re]=q,t.centerOffset=q-w,t)}}function WU(e){var t=e.state,n=e.options,a=n.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||pw(t.elements.popper,s)&&(t.elements.arrow=s))}const e$={name:"arrow",enabled:!0,phase:"main",fn:JU,effect:WU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fo(e){return e.split("-")[1]}var t$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function n$(e,t){var n=e.x,a=e.y,s=t.devicePixelRatio||1;return{x:uo(n*s)/s||0,y:uo(a*s)/s||0}}function D_(e){var t,n=e.popper,a=e.popperRect,s=e.placement,o=e.variation,c=e.offsets,h=e.position,d=e.gpuAcceleration,p=e.adaptive,v=e.roundOffsets,b=e.isFixed,y=c.x,_=y===void 0?0:y,x=c.y,A=x===void 0?0:x,N=typeof v=="function"?v({x:_,y:A}):{x:_,y:A};_=N.x,A=N.y;var O=c.hasOwnProperty("x"),R=c.hasOwnProperty("y"),D=Cn,U=Nn,C=window;if(p){var w=pc(n),q="clientHeight",re="clientWidth";if(w===Yn(n)&&(w=qi(n),za(w).position!=="static"&&h==="absolute"&&(q="scrollHeight",re="scrollWidth")),w=w,s===Nn||(s===Cn||s===gr)&&o===Yu){U=yr;var Q=b&&w===C&&C.visualViewport?C.visualViewport.height:w[q];A-=Q-a.height,A*=d?1:-1}if(s===Cn||(s===Nn||s===yr)&&o===Yu){D=gr;var he=b&&w===C&&C.visualViewport?C.visualViewport.width:w[re];_-=he-a.width,_*=d?1:-1}}var ie=Object.assign({position:h},p&&t$),Re=v===!0?n$({x:_,y:A},Yn(n)):{x:_,y:A};if(_=Re.x,A=Re.y,d){var fe;return Object.assign({},ie,(fe={},fe[U]=R?"0":"",fe[D]=O?"0":"",fe.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+A+"px)":"translate3d("+_+"px, "+A+"px, 0)",fe))}return Object.assign({},ie,(t={},t[U]=R?A+"px":"",t[D]=O?_+"px":"",t.transform="",t))}function r$(e){var t=e.state,n=e.options,a=n.gpuAcceleration,s=a===void 0?!0:a,o=n.adaptive,c=o===void 0?!0:o,h=n.roundOffsets,d=h===void 0?!0:h,p={placement:na(t.placement),variation:fo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D_(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D_(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const a$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r$,data:{}};var zf={passive:!0};function i$(e){var t=e.state,n=e.instance,a=e.options,s=a.scroll,o=s===void 0?!0:s,c=a.resize,h=c===void 0?!0:c,d=Yn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&p.forEach(function(v){v.addEventListener("scroll",n.update,zf)}),h&&d.addEventListener("resize",n.update,zf),function(){o&&p.forEach(function(v){v.removeEventListener("scroll",n.update,zf)}),h&&d.removeEventListener("resize",n.update,zf)}}const s$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:i$,data:{}};var l$={left:"right",right:"left",bottom:"top",top:"bottom"};function ad(e){return e.replace(/left|right|bottom|top/g,function(t){return l$[t]})}var o$={start:"end",end:"start"};function j_(e){return e.replace(/start|end/g,function(t){return o$[t]})}function qy(e){var t=Yn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Vy(e){return co(qi(e)).left+qy(e).scrollLeft}function u$(e,t){var n=Yn(e),a=qi(e),s=n.visualViewport,o=a.clientWidth,c=a.clientHeight,h=0,d=0;if(s){o=s.width,c=s.height;var p=hw();(p||!p&&t==="fixed")&&(h=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:h+Vy(e),y:d}}function c$(e){var t,n=qi(e),a=qy(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Ns(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Ns(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),h=-a.scrollLeft+Vy(e),d=-a.scrollTop;return za(s||n).direction==="rtl"&&(h+=Ns(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:h,y:d}}function Hy(e){var t=za(e),n=t.overflow,a=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+a)}function gw(e){return["html","body","#document"].indexOf(Ui(e))>=0?e.ownerDocument.body:ra(e)&&Hy(e)?e:gw(Zd(e))}function Uu(e,t){var n;t===void 0&&(t=[]);var a=gw(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),o=Yn(a),c=s?[o].concat(o.visualViewport||[],Hy(a)?a:[]):a,h=t.concat(c);return s?h:h.concat(Uu(Zd(c)))}function Mv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f$(e,t){var n=co(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function k_(e,t,n){return t===fw?Mv(u$(e,n)):$s(t)?f$(t,n):Mv(c$(qi(e)))}function d$(e){var t=Uu(Zd(e)),n=["absolute","fixed"].indexOf(za(e).position)>=0,a=n&&ra(e)?pc(e):e;return $s(a)?t.filter(function(s){return $s(s)&&pw(s,a)&&Ui(s)!=="body"}):[]}function h$(e,t,n,a){var s=t==="clippingParents"?d$(e):[].concat(t),o=[].concat(s,[n]),c=o[0],h=o.reduce(function(d,p){var v=k_(e,p,a);return d.top=Ns(v.top,d.top),d.right=xd(v.right,d.right),d.bottom=xd(v.bottom,d.bottom),d.left=Ns(v.left,d.left),d},k_(e,c,a));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function bw(e){var t=e.reference,n=e.element,a=e.placement,s=a?na(a):null,o=a?fo(a):null,c=t.x+t.width/2-n.width/2,h=t.y+t.height/2-n.height/2,d;switch(s){case Nn:d={x:c,y:t.y-n.height};break;case yr:d={x:c,y:t.y+t.height};break;case gr:d={x:t.x+t.width,y:h};break;case Cn:d={x:t.x-n.width,y:h};break;default:d={x:t.x,y:t.y}}var p=s?zy(s):null;if(p!=null){var v=p==="y"?"height":"width";switch(o){case oo:d[p]=d[p]-(t[v]/2-n[v]/2);break;case Yu:d[p]=d[p]+(t[v]/2-n[v]/2);break}}return d}function Ku(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=a===void 0?e.placement:a,o=n.strategy,c=o===void 0?e.strategy:o,h=n.boundary,d=h===void 0?$U:h,p=n.rootBoundary,v=p===void 0?fw:p,b=n.elementContext,y=b===void 0?Ou:b,_=n.altBoundary,x=_===void 0?!1:_,A=n.padding,N=A===void 0?0:A,O=vw(typeof N!="number"?N:yw(N,hc)),R=y===Ou?LU:Ou,D=e.rects.popper,U=e.elements[x?R:y],C=h$($s(U)?U:U.contextElement||qi(e.elements.popper),d,v,c),w=co(e.elements.reference),q=bw({reference:w,element:D,placement:s}),re=Mv(Object.assign({},D,q)),Q=y===Ou?re:w,he={top:C.top-Q.top+O.top,bottom:Q.bottom-C.bottom+O.bottom,left:C.left-Q.left+O.left,right:Q.right-C.right+O.right},ie=e.modifiersData.offset;if(y===Ou&&ie){var Re=ie[s];Object.keys(he).forEach(function(fe){var xe=[gr,yr].indexOf(fe)>=0?1:-1,Te=[Nn,yr].indexOf(fe)>=0?"y":"x";he[fe]+=Re[Te]*xe})}return he}function p$(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,h=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?dw:d,v=fo(a),b=v?h?C_:C_.filter(function(x){return fo(x)===v}):hc,y=b.filter(function(x){return p.indexOf(x)>=0});y.length===0&&(y=b);var _=y.reduce(function(x,A){return x[A]=Ku(e,{placement:A,boundary:s,rootBoundary:o,padding:c})[na(A)],x},{});return Object.keys(_).sort(function(x,A){return _[x]-_[A]})}function m$(e){if(na(e)===By)return[];var t=ad(e);return[j_(e),t,j_(t)]}function v$(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,h=c===void 0?!0:c,d=n.fallbackPlacements,p=n.padding,v=n.boundary,b=n.rootBoundary,y=n.altBoundary,_=n.flipVariations,x=_===void 0?!0:_,A=n.allowedAutoPlacements,N=t.options.placement,O=na(N),R=O===N,D=d||(R||!x?[ad(N)]:m$(N)),U=[N].concat(D).reduce(function(se,Se){return se.concat(na(Se)===By?p$(t,{placement:Se,boundary:v,rootBoundary:b,padding:p,flipVariations:x,allowedAutoPlacements:A}):Se)},[]),C=t.rects.reference,w=t.rects.popper,q=new Map,re=!0,Q=U[0],he=0;he<U.length;he++){var ie=U[he],Re=na(ie),fe=fo(ie)===oo,xe=[Nn,yr].indexOf(Re)>=0,Te=xe?"width":"height",L=Ku(t,{placement:ie,boundary:v,rootBoundary:b,altBoundary:y,padding:p}),te=xe?fe?gr:Cn:fe?yr:Nn;C[Te]>w[Te]&&(te=ad(te));var le=ad(te),we=[];if(o&&we.push(L[Re]<=0),h&&we.push(L[te]<=0,L[le]<=0),we.every(function(se){return se})){Q=ie,re=!1;break}q.set(ie,we)}if(re)for(var k=x?3:1,Y=function(Se){var me=U.find(function(dt){var qe=q.get(dt);if(qe)return qe.slice(0,Se).every(function(Rt){return Rt})});if(me)return Q=me,"break"},ae=k;ae>0;ae--){var ne=Y(ae);if(ne==="break")break}t.placement!==Q&&(t.modifiersData[a]._skip=!0,t.placement=Q,t.reset=!0)}}const y$={name:"flip",enabled:!0,phase:"main",fn:v$,requiresIfExists:["offset"],data:{_skip:!1}};function M_(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function U_(e){return[Nn,gr,yr,Cn].some(function(t){return e[t]>=0})}function g$(e){var t=e.state,n=e.name,a=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,c=Ku(t,{elementContext:"reference"}),h=Ku(t,{altBoundary:!0}),d=M_(c,a),p=M_(h,s,o),v=U_(d),b=U_(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:v,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":b})}const b$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:g$};function S$(e,t,n){var a=na(e),s=[Cn,Nn].indexOf(a)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=o[0],h=o[1];return c=c||0,h=(h||0)*s,[Cn,gr].indexOf(a)>=0?{x:h,y:c}:{x:c,y:h}}function E$(e){var t=e.state,n=e.options,a=e.name,s=n.offset,o=s===void 0?[0,0]:s,c=dw.reduce(function(v,b){return v[b]=S$(b,t.rects,o),v},{}),h=c[t.placement],d=h.x,p=h.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=c}const _$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:E$};function x$(e){var t=e.state,n=e.name;t.modifiersData[n]=bw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const O$={name:"popperOffsets",enabled:!0,phase:"read",fn:x$,data:{}};function T$(e){return e==="x"?"y":"x"}function w$(e){var t=e.state,n=e.options,a=e.name,s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,h=c===void 0?!1:c,d=n.boundary,p=n.rootBoundary,v=n.altBoundary,b=n.padding,y=n.tether,_=y===void 0?!0:y,x=n.tetherOffset,A=x===void 0?0:x,N=Ku(t,{boundary:d,rootBoundary:p,padding:b,altBoundary:v}),O=na(t.placement),R=fo(t.placement),D=!R,U=zy(O),C=T$(U),w=t.modifiersData.popperOffsets,q=t.rects.reference,re=t.rects.popper,Q=typeof A=="function"?A(Object.assign({},t.rects,{placement:t.placement})):A,he=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),ie=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Re={x:0,y:0};if(w){if(o){var fe,xe=U==="y"?Nn:Cn,Te=U==="y"?yr:gr,L=U==="y"?"height":"width",te=w[U],le=te+N[xe],we=te-N[Te],k=_?-re[L]/2:0,Y=R===oo?q[L]:re[L],ae=R===oo?-re[L]:-q[L],ne=t.elements.arrow,se=_&&ne?Iy(ne):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mw(),me=Se[xe],dt=Se[Te],qe=Mu(0,q[L],se[L]),Rt=D?q[L]/2-k-qe-me-he.mainAxis:Y-qe-me-he.mainAxis,ut=D?-q[L]/2+k+qe+dt+he.mainAxis:ae+qe+dt+he.mainAxis,wt=t.elements.arrow&&pc(t.elements.arrow),Wt=wt?U==="y"?wt.clientTop||0:wt.clientLeft||0:0,en=(fe=ie==null?void 0:ie[U])!=null?fe:0,kt=te+Rt-en-Wt,at=te+ut-en,Rn=Mu(_?xd(le,kt):le,te,_?Ns(we,at):we);w[U]=Rn,Re[U]=Rn-te}if(h){var At,la=U==="x"?Nn:Cn,Xn=U==="x"?yr:gr,ln=w[C],hn=C==="y"?"height":"width",V=ln+N[la],ce=ln-N[Xn],pe=[Nn,Cn].indexOf(O)!==-1,_e=(At=ie==null?void 0:ie[C])!=null?At:0,ue=pe?V:ln-q[hn]-re[hn]-_e+he.altAxis,ye=pe?ln+q[hn]+re[hn]-_e-he.altAxis:ce,tt=_&&pe?XU(ue,ln,ye):Mu(_?ue:V,ln,_?ye:ce);w[C]=tt,Re[C]=tt-ln}t.modifiersData[a]=Re}}const A$={name:"preventOverflow",enabled:!0,phase:"main",fn:w$,requiresIfExists:["offset"]};function N$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function C$(e){return e===Yn(e)||!ra(e)?qy(e):N$(e)}function R$(e){var t=e.getBoundingClientRect(),n=uo(t.width)/e.offsetWidth||1,a=uo(t.height)/e.offsetHeight||1;return n!==1||a!==1}function D$(e,t,n){n===void 0&&(n=!1);var a=ra(t),s=ra(t)&&R$(t),o=qi(t),c=co(e,s,n),h={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!n)&&((Ui(t)!=="body"||Hy(o))&&(h=C$(t)),ra(t)?(d=co(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=Vy(o))),{x:c.left+h.scrollLeft-d.x,y:c.top+h.scrollTop-d.y,width:c.width,height:c.height}}function j$(e){var t=new Map,n=new Set,a=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(h){if(!n.has(h)){var d=t.get(h);d&&s(d)}}),a.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),a}function k$(e){var t=j$(e);return YU.reduce(function(n,a){return n.concat(t.filter(function(s){return s.phase===a}))},[])}function M$(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function U$(e){var t=e.reduce(function(n,a){var s=n[a.name];return n[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var $_={placement:"bottom",modifiers:[],strategy:"absolute"};function L_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function $$(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?$_:s;return function(h,d,p){p===void 0&&(p=o);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},$_,o),modifiersData:{},elements:{reference:h,popper:d},attributes:{},styles:{}},b=[],y=!1,_={state:v,setOptions:function(O){var R=typeof O=="function"?O(v.options):O;A(),v.options=Object.assign({},o,v.options,R),v.scrollParents={reference:$s(h)?Uu(h):h.contextElement?Uu(h.contextElement):[],popper:Uu(d)};var D=k$(U$([].concat(a,v.options.modifiers)));return v.orderedModifiers=D.filter(function(U){return U.enabled}),x(),_.update()},forceUpdate:function(){if(!y){var O=v.elements,R=O.reference,D=O.popper;if(L_(R,D)){v.rects={reference:D$(R,pc(D),v.options.strategy==="fixed"),popper:Iy(D)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(he){return v.modifiersData[he.name]=Object.assign({},he.data)});for(var U=0;U<v.orderedModifiers.length;U++){if(v.reset===!0){v.reset=!1,U=-1;continue}var C=v.orderedModifiers[U],w=C.fn,q=C.options,re=q===void 0?{}:q,Q=C.name;typeof w=="function"&&(v=w({state:v,options:re,name:Q,instance:_})||v)}}}},update:M$(function(){return new Promise(function(N){_.forceUpdate(),N(v)})}),destroy:function(){A(),y=!0}};if(!L_(h,d))return _;_.setOptions(p).then(function(N){!y&&p.onFirstUpdate&&p.onFirstUpdate(N)});function x(){v.orderedModifiers.forEach(function(N){var O=N.name,R=N.options,D=R===void 0?{}:R,U=N.effect;if(typeof U=="function"){var C=U({state:v,name:O,instance:_,options:D}),w=function(){};b.push(C||w)}})}function A(){b.forEach(function(N){return N()}),b=[]}return _}}const L$=$$({defaultModifiers:[b$,O$,a$,s$,_$,y$,A$,e$]}),B$=["enabled","placement","strategy","modifiers"];function F$(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}const I$={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},z$={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const a=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);a.length?t.setAttribute("aria-describedby",a.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:a}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in a){const o=a.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;a.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},q$=[];function V$(e,t,n={}){let{enabled:a=!0,placement:s="bottom",strategy:o="absolute",modifiers:c=q$}=n,h=F$(n,B$);const d=S.useRef(c),p=S.useRef(),v=S.useCallback(()=>{var N;(N=p.current)==null||N.update()},[]),b=S.useCallback(()=>{var N;(N=p.current)==null||N.forceUpdate()},[]),[y,_]=UU(S.useState({placement:s,update:v,forceUpdate:b,attributes:{},styles:{popper:{},arrow:{}}})),x=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:N})=>{const O={},R={};Object.keys(N.elements).forEach(D=>{O[D]=N.styles[D],R[D]=N.attributes[D]}),_({state:N,styles:O,attributes:R,update:v,forceUpdate:b,placement:N.placement})}}),[v,b,_]),A=S.useMemo(()=>(ku(d.current,c)||(d.current=c),d.current),[c]);return S.useEffect(()=>{!p.current||!a||p.current.setOptions({placement:s,strategy:o,modifiers:[...A,x,I$]})},[o,s,x,a,A]),S.useEffect(()=>{if(!(!a||e==null||t==null))return p.current=L$(e,t,Object.assign({},h,{placement:s,strategy:o,modifiers:[...A,z$,x]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,_(N=>Object.assign({},N,{attributes:{},styles:{popper:{}}})))}},[a,e,t]),y}function Qu(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var qm,B_;function H$(){if(B_)return qm;B_=1;var e=function(){};return qm=e,qm}var P$=H$();const G$=Bs(P$),F_=()=>{};function Y$(e){return e.button===0}function K$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const id=e=>e&&("current"in e?e.current:e),I_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Q$(e,t=F_,{disabled:n,clickTrigger:a="click"}={}){const s=S.useRef(!1),o=S.useRef(!1),c=S.useCallback(p=>{const v=id(e);G$(!!v,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!v||K$(p)||!Y$(p)||!!Qu(v,p.target)||o.current,o.current=!1},[e]),h=dr(p=>{const v=id(e);v&&Qu(v,p.target)?o.current=!0:o.current=!1}),d=dr(p=>{s.current||t(p)});S.useEffect(()=>{var p,v;if(n||e==null)return;const b=yo(id(e)),y=b.defaultView||window;let _=(p=y.event)!=null?p:(v=y.parent)==null?void 0:v.event,x=null;I_[a]&&(x=Ma(b,I_[a],h,!0));const A=Ma(b,a,c,!0),N=Ma(b,a,R=>{if(R===_){_=void 0;return}d(R)});let O=[];return"ontouchstart"in b.documentElement&&(O=[].slice.call(b.body.children).map(R=>Ma(R,"mousemove",F_))),()=>{x==null||x(),A(),N(),O.forEach(R=>R())}},[e,n,a,c,h,d])}function X$(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Z$(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function J$({enabled:e,enableEvents:t,placement:n,flip:a,offset:s,fixed:o,containerPadding:c,arrowElement:h,popperConfig:d={}}){var p,v,b,y;const _=X$(d.modifiers);return Object.assign({},d,{placement:n,enabled:e,strategy:o?"fixed":d.strategy,modifiers:Z$(Object.assign({},_,{eventListeners:{enabled:t,options:(p=_.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},_.preventOverflow,{options:Object.assign({padding:c},(v=_.preventOverflow)==null?void 0:v.options)}),offset:{options:Object.assign({offset:s},(b=_.offset)==null?void 0:b.options)},arrow:Object.assign({},_.arrow,{enabled:!!h,options:Object.assign({},(y=_.arrow)==null?void 0:y.options,{element:h})}),flip:Object.assign({enabled:!!a},_.flip)}))})}const Od=S.createContext(null),Py=(e,t=null)=>e!=null?String(e):t||null,Gy=S.createContext(null);Gy.displayName="NavContext";const W$="data-rr-ui-",eL="rrUi";function Jd(e){return`${W$}${e}`}function tL(e){return`${eL}${e}`}const Sw=S.createContext(go?window:void 0);Sw.Provider;function Yy(){return S.useContext(Sw)}const nL=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",rL=typeof document<"u",Ew=rL||nL?S.useLayoutEffect:S.useEffect,bo=S.createContext(null);bo.displayName="NavbarContext";const aL={type:Pe.string,tooltip:Pe.bool,as:Pe.elementType},Wd=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:a=!1,...s},o)=>g.jsx(e,{...s,ref:o,className:be(t,`${n}-${a?"tooltip":"feedback"}`)}));Wd.displayName="Feedback";Wd.propTypes=aL;const qa=S.createContext({}),Ky=S.forwardRef(({id:e,bsPrefix:t,className:n,type:a="checkbox",isValid:s=!1,isInvalid:o=!1,as:c="input",...h},d)=>{const{controlId:p}=S.useContext(qa);return t=Ce(t,"form-check-input"),g.jsx(c,{...h,ref:d,type:a,id:e||p,className:be(n,t,s&&"is-valid",o&&"is-invalid")})});Ky.displayName="FormCheckInput";const Td=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...a},s)=>{const{controlId:o}=S.useContext(qa);return e=Ce(e,"form-check-label"),g.jsx("label",{...a,ref:s,htmlFor:n||o,className:be(t,e)})});Td.displayName="FormCheckLabel";const _w=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:a=!1,reverse:s=!1,disabled:o=!1,isValid:c=!1,isInvalid:h=!1,feedbackTooltip:d=!1,feedback:p,feedbackType:v,className:b,style:y,title:_="",type:x="checkbox",label:A,children:N,as:O="input",...R},D)=>{t=Ce(t,"form-check"),n=Ce(n,"form-switch");const{controlId:U}=S.useContext(qa),C=S.useMemo(()=>({controlId:e||U}),[U,e]),w=!N&&A!=null&&A!==!1||DU(N,Td),q=g.jsx(Ky,{...R,type:x==="switch"?"checkbox":x,ref:D,isValid:c,isInvalid:h,disabled:o,as:O});return g.jsx(qa.Provider,{value:C,children:g.jsx("div",{style:y,className:be(b,w&&t,a&&`${t}-inline`,s&&`${t}-reverse`,x==="switch"&&n),children:N||g.jsxs(g.Fragment,{children:[q,w&&g.jsx(Td,{title:_,children:A}),p&&g.jsx(Wd,{type:v,tooltip:d,children:p})]})})})});_w.displayName="FormCheck";const wd=Object.assign(_w,{Input:Ky,Label:Td}),xw=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:a,id:s,className:o,isValid:c=!1,isInvalid:h=!1,plaintext:d,readOnly:p,as:v="input",...b},y)=>{const{controlId:_}=S.useContext(qa);return e=Ce(e,"form-control"),g.jsx(v,{...b,type:t,size:a,ref:y,readOnly:p,id:s||_,className:be(o,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,c&&"is-valid",h&&"is-invalid")})});xw.displayName="FormControl";const iL=Object.assign(xw,{Feedback:Wd}),Ow=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"form-floating"),g.jsx(n,{ref:s,className:be(e,t),...a})));Ow.displayName="FormFloating";const Qy=S.forwardRef(({controlId:e,as:t="div",...n},a)=>{const s=S.useMemo(()=>({controlId:e}),[e]);return g.jsx(qa.Provider,{value:s,children:g.jsx(t,{...n,ref:a})})});Qy.displayName="FormGroup";const Tw=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:a=!1,className:s,htmlFor:o,...c},h)=>{const{controlId:d}=S.useContext(qa);t=Ce(t,"form-label");let p="col-form-label";typeof n=="string"&&(p=`${p} ${p}-${n}`);const v=be(s,t,a&&"visually-hidden",n&&p);return o=o||d,n?g.jsx(Xd,{ref:h,as:"label",className:v,htmlFor:o,...c}):g.jsx(e,{ref:h,className:v,htmlFor:o,...c})});Tw.displayName="FormLabel";const ww=S.forwardRef(({bsPrefix:e,className:t,id:n,...a},s)=>{const{controlId:o}=S.useContext(qa);return e=Ce(e,"form-range"),g.jsx("input",{...a,type:"range",ref:s,className:be(t,e),id:n||o})});ww.displayName="FormRange";const Aw=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:a,isValid:s=!1,isInvalid:o=!1,id:c,...h},d)=>{const{controlId:p}=S.useContext(qa);return e=Ce(e,"form-select"),g.jsx("select",{...h,size:n,ref:d,className:be(a,e,t&&`${e}-${t}`,s&&"is-valid",o&&"is-invalid"),id:c||p})});Aw.displayName="FormSelect";const Nw=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:a,...s},o)=>(e=Ce(e,"form-text"),g.jsx(n,{...s,ref:o,className:be(t,e,a&&"text-muted")})));Nw.displayName="FormText";const Cw=S.forwardRef((e,t)=>g.jsx(wd,{...e,ref:t,type:"switch"}));Cw.displayName="Switch";const sL=Object.assign(Cw,{Input:wd.Input,Label:wd.Label}),Rw=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:a,label:s,...o},c)=>(e=Ce(e,"form-floating"),g.jsxs(Qy,{ref:c,className:be(t,e),controlId:a,...o,children:[n,g.jsx("label",{htmlFor:a,children:s})]})));Rw.displayName="FloatingLabel";const lL={_ref:Pe.any,validated:Pe.bool,as:Pe.elementType},Xy=S.forwardRef(({className:e,validated:t,as:n="form",...a},s)=>g.jsx(n,{...a,ref:s,className:be(e,t&&"was-validated")}));Xy.displayName="Form";Xy.propTypes=lL;const He=Object.assign(Xy,{Group:Qy,Control:iL,Floating:Ow,Check:wd,Switch:sL,Label:Tw,Text:Nw,Range:ww,Select:Aw,FloatingLabel:Rw}),z_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function oL(e,t){const n=z_(e),a=z_(t);return s=>{n&&n(s),a&&a(s)}}function mc(e,t){return S.useMemo(()=>oL(e,t),[e,t])}const Dw=S.createContext(null),uL=["as","active","eventKey"];function cL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function jw({key:e,onClick:t,active:n,id:a,role:s,disabled:o}){const c=S.useContext(Od),h=S.useContext(Gy),d=S.useContext(Dw);let p=n;const v={role:s};if(h){!s&&h.role==="tablist"&&(v.role="tab");const b=h.getControllerId(e??null),y=h.getControlledId(e??null);v[Jd("event-key")]=e,v.id=b||a,p=n==null&&e!=null?h.activeKey===e:n,(p||!(d!=null&&d.unmountOnExit)&&!(d!=null&&d.mountOnEnter))&&(v["aria-controls"]=y)}return v.role==="tab"&&(v["aria-selected"]=p,p||(v.tabIndex=-1),o&&(v.tabIndex=-1,v["aria-disabled"]=!0)),v.onClick=dr(b=>{o||(t==null||t(b),e!=null&&c&&!b.isPropagationStopped()&&c(e,b))}),[v,{isActive:p}]}const kw=S.forwardRef((e,t)=>{let{as:n=QT,active:a,eventKey:s}=e,o=cL(e,uL);const[c,h]=jw(Object.assign({key:Py(s,o.href),active:a},o));return c[Jd("active")]=h.isActive,g.jsx(n,Object.assign({},o,c,{ref:t}))});kw.displayName="NavItem";const fL=["as","onSelect","activeKey","role","onKeyDown"];function dL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}const q_=()=>{},V_=Jd("event-key"),Mw=S.forwardRef((e,t)=>{let{as:n="div",onSelect:a,activeKey:s,role:o,onKeyDown:c}=e,h=dL(e,fL);const d=MU(),p=S.useRef(!1),v=S.useContext(Od),b=S.useContext(Dw);let y,_;b&&(o=o||"tablist",s=b.activeKey,y=b.getControlledId,_=b.getControllerId);const x=S.useRef(null),A=D=>{const U=x.current;if(!U)return null;const C=ms(U,`[${V_}]:not([aria-disabled=true])`),w=U.querySelector("[aria-selected=true]");if(!w||w!==document.activeElement)return null;const q=C.indexOf(w);if(q===-1)return null;let re=q+D;return re>=C.length&&(re=0),re<0&&(re=C.length-1),C[re]},N=(D,U)=>{D!=null&&(a==null||a(D,U),v==null||v(D,U))},O=D=>{if(c==null||c(D),!b)return;let U;switch(D.key){case"ArrowLeft":case"ArrowUp":U=A(-1);break;case"ArrowRight":case"ArrowDown":U=A(1);break;default:return}U&&(D.preventDefault(),N(U.dataset[tL("EventKey")]||null,D),p.current=!0,d())};S.useEffect(()=>{if(x.current&&p.current){const D=x.current.querySelector(`[${V_}][aria-selected=true]`);D==null||D.focus()}p.current=!1});const R=mc(t,x);return g.jsx(Od.Provider,{value:N,children:g.jsx(Gy.Provider,{value:{role:o,activeKey:Py(s),getControlledId:y||q_,getControllerId:_||q_},children:g.jsx(n,Object.assign({},h,{onKeyDown:O,ref:R,role:o}))})})});Mw.displayName="Nav";const hL=Object.assign(Mw,{Item:kw});var qf;function H_(e){if((!qf&&qf!==0||e)&&go){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),qf=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return qf}function pL(){return S.useState(null)}function Vm(e){e===void 0&&(e=yo());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function mL(e){const t=S.useRef(e);return t.current=e,t}function vL(e){const t=mL(e);S.useEffect(()=>()=>t.current(),[])}function yL(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const P_=Jd("modal-open");class Zy{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:a=!1}={}){this.handleContainerOverflow=n,this.isRTL=a,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return yL(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},a=this.isRTL?"paddingLeft":"paddingRight",s=this.getElement();t.style={overflow:s.style.overflow,[a]:s.style[a]},t.scrollBarWidth&&(n[a]=`${parseInt(Ba(s,a)||"0",10)+t.scrollBarWidth}px`),s.setAttribute(P_,""),Ba(s,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(P_),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Hm=(e,t)=>go?e==null?(t||yo()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Uv(e,t){const n=Yy(),[a,s]=S.useState(()=>Hm(e,n==null?void 0:n.document));if(!a){const o=Hm(e);o&&s(o)}return S.useEffect(()=>{},[t,a]),S.useEffect(()=>{const o=Hm(e);o!==a&&s(o)},[e,a]),a}function gL({children:e,in:t,onExited:n,mountOnEnter:a,unmountOnExit:s}){const o=S.useRef(null),c=S.useRef(t),h=dr(n);S.useEffect(()=>{t?c.current=!0:h(o.current)},[t,h]);const d=mc(o,Gs(e)),p=S.cloneElement(e,{ref:d});return t?p:s||!c.current&&a?null:p}const bL=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function SL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function EL(e){let{onEnter:t,onEntering:n,onEntered:a,onExit:s,onExiting:o,onExited:c,addEndListener:h,children:d}=e,p=SL(e,bL);const v=S.useRef(null),b=mc(v,Gs(d)),y=U=>C=>{U&&v.current&&U(v.current,C)},_=S.useCallback(y(t),[t]),x=S.useCallback(y(n),[n]),A=S.useCallback(y(a),[a]),N=S.useCallback(y(s),[s]),O=S.useCallback(y(o),[o]),R=S.useCallback(y(c),[c]),D=S.useCallback(y(h),[h]);return Object.assign({},p,{nodeRef:v},t&&{onEnter:_},n&&{onEntering:x},a&&{onEntered:A},s&&{onExit:N},o&&{onExiting:O},c&&{onExited:R},h&&{addEndListener:D},{children:typeof d=="function"?(U,C)=>d(U,Object.assign({},C,{ref:b})):S.cloneElement(d,{ref:b})})}const _L=["component"];function xL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}const OL=S.forwardRef((e,t)=>{let{component:n}=e,a=xL(e,_L);const s=EL(a);return g.jsx(n,Object.assign({ref:t},s))});function TL({in:e,onTransition:t}){const n=S.useRef(null),a=S.useRef(!0),s=dr(t);return w_(()=>{if(!n.current)return;let o=!1;return s({in:e,element:n.current,initial:a.current,isStale:()=>o}),()=>{o=!0}},[e,s]),w_(()=>(a.current=!1,()=>{a.current=!0}),[]),n}function wL({children:e,in:t,onExited:n,onEntered:a,transition:s}){const[o,c]=S.useState(!t);t&&o&&c(!1);const h=TL({in:!!t,onTransition:p=>{const v=()=>{p.isStale()||(p.in?a==null||a(p.element,p.initial):(c(!0),n==null||n(p.element)))};Promise.resolve(s(p)).then(v,b=>{throw p.in||c(!0),b})}}),d=mc(h,Gs(e));return o&&!t?null:S.cloneElement(e,{ref:d})}function $v(e,t,n){return e?g.jsx(OL,Object.assign({},n,{component:e})):t?g.jsx(wL,Object.assign({},n,{transition:t})):g.jsx(gL,Object.assign({},n))}const AL=["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 NL(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}let Pm;function CL(e){return Pm||(Pm=new Zy({ownerDocument:e==null?void 0:e.document})),Pm}function RL(e){const t=Yy(),n=e||CL(t),a=S.useRef({dialog:null,backdrop:null});return Object.assign(a.current,{add:()=>n.add(a.current),remove:()=>n.remove(a.current),isTopModal:()=>n.isTopModal(a.current),setDialogRef:S.useCallback(s=>{a.current.dialog=s},[]),setBackdropRef:S.useCallback(s=>{a.current.backdrop=s},[])})}const Uw=S.forwardRef((e,t)=>{let{show:n=!1,role:a="dialog",className:s,style:o,children:c,backdrop:h=!0,keyboard:d=!0,onBackdropClick:p,onEscapeKeyDown:v,transition:b,runTransition:y,backdropTransition:_,runBackdropTransition:x,autoFocus:A=!0,enforceFocus:N=!0,restoreFocus:O=!0,restoreFocusOptions:R,renderDialog:D,renderBackdrop:U=at=>g.jsx("div",Object.assign({},at)),manager:C,container:w,onShow:q,onHide:re=()=>{},onExit:Q,onExited:he,onExiting:ie,onEnter:Re,onEntering:fe,onEntered:xe}=e,Te=NL(e,AL);const L=Yy(),te=Uv(w),le=RL(C),we=KT(),k=mU(n),[Y,ae]=S.useState(!n),ne=S.useRef(null);S.useImperativeHandle(t,()=>le,[le]),go&&!k&&n&&(ne.current=Vm(L==null?void 0:L.document)),n&&Y&&ae(!1);const se=dr(()=>{if(le.add(),ut.current=Ma(document,"keydown",qe),Rt.current=Ma(document,"focus",()=>setTimeout(me),!0),q&&q(),A){var at,Rn;const At=Vm((at=(Rn=le.dialog)==null?void 0:Rn.ownerDocument)!=null?at:L==null?void 0:L.document);le.dialog&&At&&!Qu(le.dialog,At)&&(ne.current=At,le.dialog.focus())}}),Se=dr(()=>{if(le.remove(),ut.current==null||ut.current(),Rt.current==null||Rt.current(),O){var at;(at=ne.current)==null||at.focus==null||at.focus(R),ne.current=null}});S.useEffect(()=>{!n||!te||se()},[n,te,se]),S.useEffect(()=>{Y&&Se()},[Y,Se]),vL(()=>{Se()});const me=dr(()=>{if(!N||!we()||!le.isTopModal())return;const at=Vm(L==null?void 0:L.document);le.dialog&&at&&!Qu(le.dialog,at)&&le.dialog.focus()}),dt=dr(at=>{at.target===at.currentTarget&&(p==null||p(at),h===!0&&re())}),qe=dr(at=>{d&&qT(at)&&le.isTopModal()&&(v==null||v(at),at.defaultPrevented||re())}),Rt=S.useRef(),ut=S.useRef(),wt=(...at)=>{ae(!0),he==null||he(...at)};if(!te)return null;const Wt=Object.assign({role:a,ref:le.setDialogRef,"aria-modal":a==="dialog"?!0:void 0},Te,{style:o,className:s,tabIndex:-1});let en=D?D(Wt):g.jsx("div",Object.assign({},Wt,{children:S.cloneElement(c,{role:"document"})}));en=$v(b,y,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:Q,onExiting:ie,onExited:wt,onEnter:Re,onEntering:fe,onEntered:xe,children:en});let kt=null;return h&&(kt=U({ref:le.setBackdropRef,onClick:dt}),kt=$v(_,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:kt})),g.jsx(g.Fragment,{children:bs.createPortal(g.jsxs(g.Fragment,{children:[kt,en]}),te)})});Uw.displayName="Modal";const $w=Object.assign(Uw,{Manager:Zy});function Lv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function DL(e,t){e.classList?e.classList.add(t):Lv(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function G_(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function jL(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=G_(e.className,t):e.setAttribute("class",G_(e.className&&e.className.baseVal||"",t))}const Ll={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Lw extends Zy{adjustAndStore(t,n,a){const s=n.style[t];n.dataset[t]=s,Ba(n,{[t]:`${parseFloat(Ba(n,t))+a}px`})}restore(t,n){const a=n.dataset[t];a!==void 0&&(delete n.dataset[t],Ba(n,{[t]:a}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(DL(n,"modal-open"),!t.scrollBarWidth)return;const a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";ms(n,Ll.FIXED_CONTENT).forEach(o=>this.adjustAndStore(a,o,t.scrollBarWidth)),ms(n,Ll.STICKY_CONTENT).forEach(o=>this.adjustAndStore(s,o,-t.scrollBarWidth)),ms(n,Ll.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(s,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();jL(n,"modal-open");const a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";ms(n,Ll.FIXED_CONTENT).forEach(o=>this.restore(a,o)),ms(n,Ll.STICKY_CONTENT).forEach(o=>this.restore(s,o)),ms(n,Ll.NAVBAR_TOGGLER).forEach(o=>this.restore(s,o))}}let Gm;function Bw(e){return Gm||(Gm=new Lw(e)),Gm}const Fw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"modal-body"),g.jsx(n,{ref:s,className:be(e,t),...a})));Fw.displayName="ModalBody";const Jy=S.createContext({onHide(){}}),Wy=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:a,size:s,fullscreen:o,children:c,scrollable:h,...d},p)=>{e=Ce(e,"modal");const v=`${e}-dialog`,b=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return g.jsx("div",{...d,ref:p,className:be(v,t,s&&`${e}-${s}`,a&&`${v}-centered`,h&&`${v}-scrollable`,o&&b),children:g.jsx("div",{className:be(`${e}-content`,n),children:c})})});Wy.displayName="ModalDialog";const Iw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"modal-footer"),g.jsx(n,{ref:s,className:be(e,t),...a})));Iw.displayName="ModalFooter";const zw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:a,children:s,...o},c)=>{const h=S.useContext(Jy),d=ki(()=>{h==null||h.onHide(),a==null||a()});return g.jsxs("div",{ref:c,...o,children:[s,n&&g.jsx(Qd,{"aria-label":e,variant:t,onClick:d})]})}),qw=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:a=!1,...s},o)=>(e=Ce(e,"modal-header"),g.jsx(zw,{ref:o,...s,className:be(t,e),closeLabel:n,closeButton:a})));qw.displayName="ModalHeader";const kL=fc("h4"),Vw=S.forwardRef(({className:e,bsPrefix:t,as:n=kL,...a},s)=>(t=Ce(t,"modal-title"),g.jsx(n,{ref:s,className:be(e,t),...a})));Vw.displayName="ModalTitle";function ML(e){return g.jsx(Mi,{...e,timeout:null})}function UL(e){return g.jsx(Mi,{...e,timeout:null})}const Hw=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:a,contentClassName:s,children:o,dialogAs:c=Wy,"data-bs-theme":h,"aria-labelledby":d,"aria-describedby":p,"aria-label":v,show:b=!1,animation:y=!0,backdrop:_=!0,keyboard:x=!0,onEscapeKeyDown:A,onShow:N,onHide:O,container:R,autoFocus:D=!0,enforceFocus:U=!0,restoreFocus:C=!0,restoreFocusOptions:w,onEntered:q,onExit:re,onExiting:Q,onEnter:he,onEntering:ie,onExited:Re,backdropClassName:fe,manager:xe,...Te},L)=>{const[te,le]=S.useState({}),[we,k]=S.useState(!1),Y=S.useRef(!1),ae=S.useRef(!1),ne=S.useRef(null),[se,Se]=pL(),me=Yd(L,Se),dt=ki(O),qe=jy();e=Ce(e,"modal");const Rt=S.useMemo(()=>({onHide:dt}),[dt]);function ut(){return xe||Bw({isRTL:qe})}function wt(ue){if(!go)return;const ye=ut().getScrollbarWidth()>0,tt=ue.scrollHeight>yo(ue).documentElement.clientHeight;le({paddingRight:ye&&!tt?H_():void 0,paddingLeft:!ye&&tt?H_():void 0})}const Wt=ki(()=>{se&&wt(se.dialog)});uw(()=>{Dv(window,"resize",Wt),ne.current==null||ne.current()});const en=()=>{Y.current=!0},kt=ue=>{Y.current&&se&&ue.target===se.dialog&&(ae.current=!0),Y.current=!1},at=()=>{k(!0),ne.current=HT(se.dialog,()=>{k(!1)})},Rn=ue=>{ue.target===ue.currentTarget&&at()},At=ue=>{if(_==="static"){Rn(ue);return}if(ae.current||ue.target!==ue.currentTarget){ae.current=!1;return}O==null||O()},la=ue=>{x?A==null||A(ue):(ue.preventDefault(),_==="static"&&at())},Xn=(ue,ye)=>{ue&&wt(ue),he==null||he(ue,ye)},ln=ue=>{ne.current==null||ne.current(),re==null||re(ue)},hn=(ue,ye)=>{ie==null||ie(ue,ye),VT(window,"resize",Wt)},V=ue=>{ue&&(ue.style.display=""),Re==null||Re(ue),Dv(window,"resize",Wt)},ce=S.useCallback(ue=>g.jsx("div",{...ue,className:be(`${e}-backdrop`,fe,!y&&"show")}),[y,fe,e]),pe={...n,...te};pe.display="block";const _e=ue=>g.jsx("div",{role:"dialog",...ue,style:pe,className:be(t,e,we&&`${e}-static`,!y&&"show"),onClick:_?At:void 0,onMouseUp:kt,"data-bs-theme":h,"aria-label":v,"aria-labelledby":d,"aria-describedby":p,children:g.jsx(c,{...Te,onMouseDown:en,className:a,contentClassName:s,children:o})});return g.jsx(Jy.Provider,{value:Rt,children:g.jsx($w,{show:b,ref:me,backdrop:_,container:R,keyboard:!0,autoFocus:D,enforceFocus:U,restoreFocus:C,restoreFocusOptions:w,onEscapeKeyDown:la,onShow:N,onHide:O,onEnter:Xn,onEntering:hn,onEntered:q,onExit:ln,onExiting:Q,onExited:V,manager:ut(),transition:y?ML:void 0,backdropTransition:y?UL:void 0,renderBackdrop:ce,renderDialog:_e})})});Hw.displayName="Modal";const Pt=Object.assign(Hw,{Body:Fw,Header:qw,Title:Vw,Footer:Iw,Dialog:Wy,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Pw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"nav-item"),g.jsx(n,{ref:s,className:be(e,t),...a})));Pw.displayName="NavItem";const Gw=S.forwardRef(({bsPrefix:e,className:t,as:n=Kd,active:a,eventKey:s,disabled:o=!1,...c},h)=>{e=Ce(e,"nav-link");const[d,p]=jw({key:Py(s,c.href),active:a,disabled:o,...c});return g.jsx(n,{...c,...d,ref:h,disabled:o,className:be(t,e,o&&"disabled",p.isActive&&"active")})});Gw.displayName="NavLink";const Yw=S.forwardRef((e,t)=>{const{as:n="div",bsPrefix:a,variant:s,fill:o=!1,justify:c=!1,navbar:h,navbarScroll:d,className:p,activeKey:v,...b}=Cy(e,{activeKey:"onSelect"}),y=Ce(a,"nav");let _,x,A=!1;const N=S.useContext(bo),O=S.useContext(Ly);return N?(_=N.bsPrefix,A=h??!0):O&&({cardHeaderBsPrefix:x}=O),g.jsx(hL,{as:n,ref:t,activeKey:v,className:be(p,{[y]:!A,[`${_}-nav`]:A,[`${_}-nav-scroll`]:A&&d,[`${x}-${s}`]:!!x,[`${y}-${s}`]:!!s,[`${y}-fill`]:o,[`${y}-justified`]:c}),...b})});Yw.displayName="Nav";const Tu=Object.assign(Yw,{Item:Pw,Link:Gw}),Kw=S.forwardRef(({bsPrefix:e,className:t,as:n,...a},s)=>{e=Ce(e,"navbar-brand");const o=n||(a.href?"a":"span");return g.jsx(o,{...a,ref:s,className:be(t,e)})});Kw.displayName="NavbarBrand";const Qw=S.forwardRef(({children:e,bsPrefix:t,...n},a)=>{t=Ce(t,"navbar-collapse");const s=S.useContext(bo);return g.jsx(dU,{in:!!(s&&s.expanded),...n,children:g.jsx("div",{ref:a,className:t,children:e})})});Qw.displayName="NavbarCollapse";const Xw=S.forwardRef(({bsPrefix:e,className:t,children:n,label:a="Toggle navigation",as:s="button",onClick:o,...c},h)=>{e=Ce(e,"navbar-toggler");const{onToggle:d,expanded:p}=S.useContext(bo)||{},v=ki(b=>{o&&o(b),d&&d()});return s==="button"&&(c.type="button"),g.jsx(s,{...c,ref:h,onClick:v,"aria-label":a,className:be(t,e,!p&&"collapsed"),children:n||g.jsx("span",{className:`${e}-icon`})})});Xw.displayName="NavbarToggle";const Bv=new WeakMap,Y_=(e,t)=>{if(!e||!t)return;const n=Bv.get(t)||new Map;Bv.set(t,n);let a=n.get(e);return a||(a=t.matchMedia(e),a.refCount=0,n.set(a.media,a)),a};function $L(e,t=typeof window>"u"?void 0:window){const n=Y_(e,t),[a,s]=S.useState(()=>n?n.matches:!1);return Ew(()=>{let o=Y_(e,t);if(!o)return s(!1);let c=Bv.get(t);const h=()=>{s(o.matches)};return o.refCount++,o.addListener(h),h(),()=>{o.removeListener(h),o.refCount--,o.refCount<=0&&(c==null||c.delete(o.media)),o=void 0}},[e]),a}function LL(e){const t=Object.keys(e);function n(h,d){return h===d?d:h?`${h} and ${d}`:d}function a(h){return t[Math.min(t.indexOf(h)+1,t.length-1)]}function s(h){const d=a(h);let p=e[d];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function o(h){let d=e[h];return typeof d=="number"&&(d=`${d}px`),`(min-width: ${d})`}function c(h,d,p){let v;typeof h=="object"?(v=h,p=d,d=!0):(d=d||!0,v={[h]:d});let b=S.useMemo(()=>Object.entries(v).reduce((y,[_,x])=>((x==="up"||x===!0)&&(y=n(y,o(_))),(x==="down"||x===!0)&&(y=n(y,s(_))),y),""),[JSON.stringify(v)]);return $L(b,p)}return c}const BL=LL({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Zw=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"offcanvas-body"),g.jsx(n,{ref:s,className:be(e,t),...a})));Zw.displayName="OffcanvasBody";const FL={[Cr]:"show",[ka]:"show"},Jw=S.forwardRef(({bsPrefix:e,className:t,children:n,in:a=!1,mountOnEnter:s=!1,unmountOnExit:o=!1,appear:c=!1,...h},d)=>(e=Ce(e,"offcanvas"),g.jsx(My,{ref:d,addEndListener:ky,in:a,mountOnEnter:s,unmountOnExit:o,appear:c,...h,childRef:Gs(n),children:(p,v)=>S.cloneElement(n,{...v,className:be(t,n.props.className,(p===Cr||p===Gu)&&`${e}-toggling`,FL[p])})})));Jw.displayName="OffcanvasToggling";const Ww=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:a=!1,...s},o)=>(e=Ce(e,"offcanvas-header"),g.jsx(zw,{ref:o,...s,className:be(t,e),closeLabel:n,closeButton:a})));Ww.displayName="OffcanvasHeader";const IL=fc("h5"),e1=S.forwardRef(({className:e,bsPrefix:t,as:n=IL,...a},s)=>(t=Ce(t,"offcanvas-title"),g.jsx(n,{ref:s,className:be(e,t),...a})));e1.displayName="OffcanvasTitle";function zL(e){return g.jsx(Jw,{...e})}function qL(e){return g.jsx(Mi,{...e})}const t1=S.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":a,placement:s="start",responsive:o,show:c=!1,backdrop:h=!0,keyboard:d=!0,scroll:p=!1,onEscapeKeyDown:v,onShow:b,onHide:y,container:_,autoFocus:x=!0,enforceFocus:A=!0,restoreFocus:N=!0,restoreFocusOptions:O,onEntered:R,onExit:D,onExiting:U,onEnter:C,onEntering:w,onExited:q,backdropClassName:re,manager:Q,renderStaticNode:he=!1,...ie},Re)=>{const fe=S.useRef();e=Ce(e,"offcanvas");const[xe,Te]=S.useState(!1),L=ki(y),te=BL(o||"xs","up");S.useEffect(()=>{Te(o?c&&!te:c)},[c,o,te]);const le=S.useMemo(()=>({onHide:L}),[L]);function we(){return Q||(p?(fe.current||(fe.current=new Lw({handleContainerOverflow:!1})),fe.current):Bw())}const k=(se,...Se)=>{se&&(se.style.visibility="visible"),C==null||C(se,...Se)},Y=(se,...Se)=>{se&&(se.style.visibility=""),q==null||q(...Se)},ae=S.useCallback(se=>g.jsx("div",{...se,className:be(`${e}-backdrop`,re)}),[re,e]),ne=se=>g.jsx("div",{...se,...ie,className:be(t,o?`${e}-${o}`:e,`${e}-${s}`),"aria-labelledby":a,children:n});return g.jsxs(g.Fragment,{children:[!xe&&(o||he)&&ne({}),g.jsx(Jy.Provider,{value:le,children:g.jsx($w,{show:xe,ref:Re,backdrop:h,container:_,keyboard:d,autoFocus:x,enforceFocus:A&&!p,restoreFocus:N,restoreFocusOptions:O,onEscapeKeyDown:v,onShow:b,onHide:L,onEnter:k,onEntering:w,onEntered:R,onExit:D,onExiting:U,onExited:Y,manager:we(),transition:zL,backdropTransition:qL,renderBackdrop:ae,renderDialog:ne})})]})});t1.displayName="Offcanvas";const VL=Object.assign(t1,{Body:Zw,Header:Ww,Title:e1}),n1=S.forwardRef(({onHide:e,...t},n)=>{const a=S.useContext(bo),s=ki(()=>{a==null||a.onToggle==null||a.onToggle(),e==null||e()});return g.jsx(VL,{ref:n,show:!!(a!=null&&a.expanded),...t,renderStaticNode:!0,onHide:s})});n1.displayName="NavbarOffcanvas";const eg=S.forwardRef(({className:e,bsPrefix:t,as:n="span",...a},s)=>(t=Ce(t,"navbar-text"),g.jsx(n,{ref:s,className:be(e,t),...a})));eg.displayName="NavbarText";const r1=S.forwardRef((e,t)=>{const{bsPrefix:n,expand:a=!0,variant:s="light",bg:o,fixed:c,sticky:h,className:d,as:p="nav",expanded:v,onToggle:b,onSelect:y,collapseOnSelect:_=!1,...x}=Cy(e,{expanded:"onToggle"}),A=Ce(n,"navbar"),N=S.useCallback((...D)=>{y==null||y(...D),_&&v&&(b==null||b(!1))},[y,_,v,b]);x.role===void 0&&p!=="nav"&&(x.role="navigation");let O=`${A}-expand`;typeof a=="string"&&(O=`${O}-${a}`);const R=S.useMemo(()=>({onToggle:()=>b==null?void 0:b(!v),bsPrefix:A,expanded:!!v,expand:a}),[A,v,a,b]);return g.jsx(bo.Provider,{value:R,children:g.jsx(Od.Provider,{value:N,children:g.jsx(p,{ref:t,...x,className:be(d,A,a&&O,s&&`${A}-${s}`,o&&`bg-${o}`,h&&`sticky-${h}`,c&&`fixed-${c}`)})})})});r1.displayName="Navbar";const Bl=Object.assign(r1,{Brand:Kw,Collapse:Qw,Offcanvas:n1,Text:eg,Toggle:Xw}),HL=()=>{};function PL(e,t,{disabled:n,clickTrigger:a}={}){const s=t||HL;Q$(e,s,{disabled:n,clickTrigger:a});const o=dr(c=>{qT(c)&&s(c)});S.useEffect(()=>{if(n||e==null)return;const c=yo(id(e));let h=(c.defaultView||window).event;const d=Ma(c,"keyup",p=>{if(p===h){h=void 0;return}o(p)});return()=>{d()}},[e,n,o])}const a1=S.forwardRef((e,t)=>{const{flip:n,offset:a,placement:s,containerPadding:o,popperConfig:c={},transition:h,runTransition:d}=e,[p,v]=T_(),[b,y]=T_(),_=mc(v,t),x=Uv(e.container),A=Uv(e.target),[N,O]=S.useState(!e.show),R=V$(A,p,J$({placement:s,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:a,arrowElement:b,popperConfig:c}));e.show&&N&&O(!1);const D=(...ie)=>{O(!0),e.onExited&&e.onExited(...ie)},U=e.show||!N;if(PL(p,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!U)return null;const{onExit:C,onExiting:w,onEnter:q,onEntering:re,onEntered:Q}=e;let he=e.children(Object.assign({},R.attributes.popper,{style:R.styles.popper,ref:_}),{popper:R,placement:s,show:!!e.show,arrowProps:Object.assign({},R.attributes.arrow,{style:R.styles.arrow,ref:y})});return he=$v(h,d,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:he,onExit:C,onExiting:w,onExited:D,onEnter:q,onEntering:re,onEntered:Q}),x?bs.createPortal(he,x):null});a1.displayName="Overlay";const i1=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"popover-header"),g.jsx(n,{ref:s,className:be(e,t),...a})));i1.displayName="PopoverHeader";const tg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"popover-body"),g.jsx(n,{ref:s,className:be(e,t),...a})));tg.displayName="PopoverBody";function s1(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function l1(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const GL=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:a,children:s,body:o,arrowProps:c,hasDoneInitialMeasure:h,popper:d,show:p,...v},b)=>{const y=Ce(e,"popover"),_=jy(),[x]=(t==null?void 0:t.split("-"))||[],A=s1(x,_);let N=a;return p&&!h&&(N={...a,...l1(d==null?void 0:d.strategy)}),g.jsxs("div",{ref:b,role:"tooltip",style:N,"x-placement":x,className:be(n,y,x&&`bs-popover-${A}`),...v,children:[g.jsx("div",{className:"popover-arrow",...c}),o?g.jsx(tg,{children:s}):s]})}),Fv=Object.assign(GL,{Header:i1,Body:tg,POPPER_OFFSET:[0,8]}),o1=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:a,children:s,arrowProps:o,hasDoneInitialMeasure:c,popper:h,show:d,...p},v)=>{e=Ce(e,"tooltip");const b=jy(),[y]=(t==null?void 0:t.split("-"))||[],_=s1(y,b);let x=a;return d&&!c&&(x={...a,...l1(h==null?void 0:h.strategy)}),g.jsxs("div",{ref:v,style:x,role:"tooltip","x-placement":y,className:be(n,e,`bs-tooltip-${_}`),...p,children:[g.jsx("div",{className:"tooltip-arrow",...o}),g.jsx("div",{className:`${e}-inner`,children:s})]})});o1.displayName="Tooltip";const ng=Object.assign(o1,{TOOLTIP_OFFSET:[0,6]});function YL(e){const t=S.useRef(null),n=Ce(void 0,"popover"),a=Ce(void 0,"tooltip"),s=S.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Lv(t.current,n))return Fv.POPPER_OFFSET;if(Lv(t.current,a))return ng.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,a]);return[t,[s]]}function KL(e,t){const{ref:n}=e,{ref:a}=t;e.ref=n.__wrapped||(n.__wrapped=s=>n(_d(s))),t.ref=a.__wrapped||(a.__wrapped=s=>a(_d(s)))}const rg=S.forwardRef(({children:e,transition:t=Mi,popperConfig:n={},rootClose:a=!1,placement:s="top",show:o=!1,...c},h)=>{const d=S.useRef({}),[p,v]=S.useState(null),[b,y]=YL(c.offset),_=Yd(h,b),x=t===!0?Mi:t||void 0,A=ki(N=>{v(N),n==null||n.onFirstUpdate==null||n.onFirstUpdate(N)});return Ew(()=>{p&&c.target&&(d.current.scheduleUpdate==null||d.current.scheduleUpdate())},[p,c.target]),S.useEffect(()=>{o||v(null)},[o]),g.jsx(a1,{...c,ref:_,popperConfig:{...n,modifiers:y.concat(n.modifiers||[]),onFirstUpdate:A},transition:x,rootClose:a,placement:s,show:o,children:(N,{arrowProps:O,popper:R,show:D})=>{var U;KL(N,O);const C=R==null?void 0:R.placement,w=Object.assign(d.current,{state:R==null?void 0:R.state,scheduleUpdate:R==null?void 0:R.update,placement:C,outOfBoundaries:(R==null||(U=R.state)==null||(U=U.modifiersData.hide)==null?void 0:U.isReferenceHidden)||!1,strategy:n.strategy}),q=!!p;return typeof e=="function"?e({...N,placement:C,show:D,...!t&&D&&{className:"show"},popper:w,arrowProps:O,hasDoneInitialMeasure:q}):S.cloneElement(e,{...N,placement:C,arrowProps:O,popper:w,hasDoneInitialMeasure:q,className:be(e.props.className,!t&&D&&"show"),style:{...e.props.style,...N.style}})}})});rg.displayName="Overlay";function QL(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function K_(e,t,n){const[a]=t,s=a.currentTarget,o=a.relatedTarget||a.nativeEvent[n];(!o||o!==s)&&!Qu(s,o)&&e(...t)}Pe.oneOf(["click","hover","focus"]);const u1=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:a={},show:s,defaultShow:o=!1,onToggle:c,delay:h,placement:d,flip:p=d&&d.indexOf("auto")!==-1,...v})=>{const b=S.useRef(null),y=Yd(b,Gs(n)),_=RU(),x=S.useRef(""),[A,N]=BT(s,o,c),O=QL(h),{onFocus:R,onBlur:D,onClick:U}=typeof n!="function"?S.Children.only(n).props:{},C=Te=>{y(_d(Te))},w=S.useCallback(()=>{if(_.clear(),x.current="show",!O.show){N(!0);return}_.set(()=>{x.current==="show"&&N(!0)},O.show)},[O.show,N,_]),q=S.useCallback(()=>{if(_.clear(),x.current="hide",!O.hide){N(!1);return}_.set(()=>{x.current==="hide"&&N(!1)},O.hide)},[O.hide,N,_]),re=S.useCallback((...Te)=>{w(),R==null||R(...Te)},[w,R]),Q=S.useCallback((...Te)=>{q(),D==null||D(...Te)},[q,D]),he=S.useCallback((...Te)=>{N(!A),U==null||U(...Te)},[U,N,A]),ie=S.useCallback((...Te)=>{K_(w,Te,"fromElement")},[w]),Re=S.useCallback((...Te)=>{K_(q,Te,"toElement")},[q]),fe=e==null?[]:[].concat(e),xe={ref:C};return fe.indexOf("click")!==-1&&(xe.onClick=he),fe.indexOf("focus")!==-1&&(xe.onFocus=re,xe.onBlur=Q),fe.indexOf("hover")!==-1&&(xe.onMouseOver=ie,xe.onMouseOut=Re),g.jsxs(g.Fragment,{children:[typeof n=="function"?n(xe):S.cloneElement(n,xe),g.jsx(rg,{...v,show:A,onHide:q,flip:p,placement:d,popperConfig:a,target:b.current,children:t})]})},ag=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...a},s)=>{const o=Ce(e,"row"),c=Ry(),h=Dy(),d=`${o}-cols`,p=[];return c.forEach(v=>{const b=a[v];delete a[v];let y;b!=null&&typeof b=="object"?{cols:y}=b:y=b;const _=v!==h?`-${v}`:"";y!=null&&p.push(`${d}${_}-${y}`)}),g.jsx(n,{ref:s,...a,className:be(t,o,...p)})});ag.displayName="Row";function XL(e,t=FT,n=IT){const a=[];return Object.entries(e).forEach(([s,o])=>{o!=null&&(typeof o=="object"?t.forEach(c=>{const h=o[c];if(h!=null){const d=c!==n?`-${c}`:"";a.push(`${s}${d}-${h}`)}}):a.push(`${s}-${o}`))}),a}const c1=S.forwardRef(({as:e="div",bsPrefix:t,className:n,direction:a,gap:s,...o},c)=>{t=Ce(t,a==="horizontal"?"hstack":"vstack");const h=Ry(),d=Dy();return g.jsx(e,{...o,ref:c,className:be(n,t,...XL({gap:s},h,d))})});c1.displayName="Stack";const Vi=S.forwardRef(({bsPrefix:e,className:t,striped:n,bordered:a,borderless:s,hover:o,size:c,variant:h,responsive:d,...p},v)=>{const b=Ce(e,"table"),y=be(t,b,h&&`${b}-${h}`,c&&`${b}-${c}`,n&&`${b}-${typeof n=="string"?`striped-${n}`:"striped"}`,a&&`${b}-bordered`,s&&`${b}-borderless`,o&&`${b}-hover`),_=g.jsx("table",{...p,className:y,ref:v});if(d){let x=`${b}-responsive`;return typeof d=="string"&&(x=`${x}-${d}`),g.jsx("div",{className:x,children:_})}return _}),ZL=Gt(()=>{const e=sn(),t=jd(),n=()=>{t("/"),e.logout()};return g.jsx(Bl,{style:{borderBottom:"1px solid #C7C8C9"},expand:"lg",className:"mb-4",children:g.jsxs(dc,{fluid:!0,children:[g.jsx(Bl.Brand,{children:g.jsx(Gn,{to:"/",style:{color:"inherit",textDecoration:"none"},children:"Dashboard"})}),g.jsx(Bl.Toggle,{"aria-controls":"basic-navbar-nav"}),g.jsxs(Bl.Collapse,{id:"basic-navbar-nav",children:[g.jsx(Tu,{className:"me-auto",children:g.jsxs(eg,{children:["Connected to:"," ",g.jsx("a",{href:wv,target:"_blank",rel:"noreferrer",children:wv})]})}),e.loggedIn?g.jsx(Tu,{children:g.jsx(Bl.Text,{className:"me-2",children:g.jsx(Jt,{variant:"link nav-link",onClick:n,children:"Log out"})})}):g.jsxs(Tu,{children:[g.jsx(Tu.Link,{as:Gn,to:"/login",children:"Log in"}),g.jsx(Bl.Text,{children:"or"}),g.jsx(Tu.Link,{as:Gn,to:"/register",children:"Register"})]})]})]})})}),Q_=[{path:"/casinos",title:"Casinos"}];function JL(e,t){return e.sort((n,a)=>a.length-n.length).find(n=>t.startsWith(n))}const WL=Gt(()=>{const e=Ha();if(!sn().loggedIn)return g.jsx("div",{children:"You must be logged in"});const n=JL(Q_.map(a=>a.path),e.pathname);return g.jsxs("div",{children:[g.jsx("ul",{className:"nav nav-tabs mb-4 ",children:Q_.map(a=>g.jsx("li",{className:"nav-item",children:g.jsx(Gn,{to:a.path,className:`nav-link ${n===a.path?"active":""}`,children:a.title})},a.path))}),g.jsx(yO,{})]})});var eB=function(t){return tB(t)&&!nB(t)};function tB(e){return!!e&&typeof e=="object"}function nB(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||iB(e)}var rB=typeof Symbol=="function"&&Symbol.for,aB=rB?Symbol.for("react.element"):60103;function iB(e){return e.$$typeof===aB}function sB(e){return Array.isArray(e)?[]:{}}function Ad(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xu(sB(e),e,t):e}function lB(e,t,n){return e.concat(t).map(function(a){return Ad(a,n)})}function oB(e,t,n){var a={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(s){a[s]=Ad(e[s],n)}),Object.keys(t).forEach(function(s){!n.isMergeableObject(t[s])||!e[s]?a[s]=Ad(t[s],n):a[s]=Xu(e[s],t[s],n)}),a}function Xu(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||lB,n.isMergeableObject=n.isMergeableObject||eB;var a=Array.isArray(t),s=Array.isArray(e),o=a===s;return o?a?n.arrayMerge(e,t,n):oB(e,t,n):Ad(t,n)}Xu.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,s){return Xu(a,s,n)},{})};var Iv=Xu,f1=typeof global=="object"&&global&&global.Object===Object&&global,uB=typeof self=="object"&&self&&self.Object===Object&&self,sa=f1||uB||Function("return this")(),$i=sa.Symbol,d1=Object.prototype,cB=d1.hasOwnProperty,fB=d1.toString,wu=$i?$i.toStringTag:void 0;function dB(e){var t=cB.call(e,wu),n=e[wu];try{e[wu]=void 0;var a=!0}catch{}var s=fB.call(e);return a&&(t?e[wu]=n:delete e[wu]),s}var hB=Object.prototype,pB=hB.toString;function mB(e){return pB.call(e)}var vB="[object Null]",yB="[object Undefined]",X_=$i?$i.toStringTag:void 0;function Ys(e){return e==null?e===void 0?yB:vB:X_&&X_ in Object(e)?dB(e):mB(e)}function h1(e,t){return function(n){return e(t(n))}}var ig=h1(Object.getPrototypeOf,Object);function Ks(e){return e!=null&&typeof e=="object"}var gB="[object Object]",bB=Function.prototype,SB=Object.prototype,p1=bB.toString,EB=SB.hasOwnProperty,_B=p1.call(Object);function Z_(e){if(!Ks(e)||Ys(e)!=gB)return!1;var t=ig(e);if(t===null)return!0;var n=EB.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&p1.call(n)==_B}function xB(){this.__data__=[],this.size=0}function m1(e,t){return e===t||e!==e&&t!==t}function eh(e,t){for(var n=e.length;n--;)if(m1(e[n][0],t))return n;return-1}var OB=Array.prototype,TB=OB.splice;function wB(e){var t=this.__data__,n=eh(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():TB.call(t,n,1),--this.size,!0}function AB(e){var t=this.__data__,n=eh(t,e);return n<0?void 0:t[n][1]}function NB(e){return eh(this.__data__,e)>-1}function CB(e,t){var n=this.__data__,a=eh(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Ga(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Ga.prototype.clear=xB;Ga.prototype.delete=wB;Ga.prototype.get=AB;Ga.prototype.has=NB;Ga.prototype.set=CB;function RB(){this.__data__=new Ga,this.size=0}function DB(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function jB(e){return this.__data__.get(e)}function kB(e){return this.__data__.has(e)}function vc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var MB="[object AsyncFunction]",UB="[object Function]",$B="[object GeneratorFunction]",LB="[object Proxy]";function v1(e){if(!vc(e))return!1;var t=Ys(e);return t==UB||t==$B||t==MB||t==LB}var Ym=sa["__core-js_shared__"],J_=function(){var e=/[^.]+$/.exec(Ym&&Ym.keys&&Ym.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BB(e){return!!J_&&J_ in e}var FB=Function.prototype,IB=FB.toString;function Qs(e){if(e!=null){try{return IB.call(e)}catch{}try{return e+""}catch{}}return""}var zB=/[\\^$.*+?()[\]{}|]/g,qB=/^\[object .+?Constructor\]$/,VB=Function.prototype,HB=Object.prototype,PB=VB.toString,GB=HB.hasOwnProperty,YB=RegExp("^"+PB.call(GB).replace(zB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KB(e){if(!vc(e)||BB(e))return!1;var t=v1(e)?YB:qB;return t.test(Qs(e))}function QB(e,t){return e==null?void 0:e[t]}function Xs(e,t){var n=QB(e,t);return KB(n)?n:void 0}var Zu=Xs(sa,"Map"),Ju=Xs(Object,"create");function XB(){this.__data__=Ju?Ju(null):{},this.size=0}function ZB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var JB="__lodash_hash_undefined__",WB=Object.prototype,eF=WB.hasOwnProperty;function tF(e){var t=this.__data__;if(Ju){var n=t[e];return n===JB?void 0:n}return eF.call(t,e)?t[e]:void 0}var nF=Object.prototype,rF=nF.hasOwnProperty;function aF(e){var t=this.__data__;return Ju?t[e]!==void 0:rF.call(t,e)}var iF="__lodash_hash_undefined__";function sF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ju&&t===void 0?iF:t,this}function Ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Ls.prototype.clear=XB;Ls.prototype.delete=ZB;Ls.prototype.get=tF;Ls.prototype.has=aF;Ls.prototype.set=sF;function lF(){this.size=0,this.__data__={hash:new Ls,map:new(Zu||Ga),string:new Ls}}function oF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function th(e,t){var n=e.__data__;return oF(t)?n[typeof t=="string"?"string":"hash"]:n.map}function uF(e){var t=th(this,e).delete(e);return this.size-=t?1:0,t}function cF(e){return th(this,e).get(e)}function fF(e){return th(this,e).has(e)}function dF(e,t){var n=th(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}function Hi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Hi.prototype.clear=lF;Hi.prototype.delete=uF;Hi.prototype.get=cF;Hi.prototype.has=fF;Hi.prototype.set=dF;var hF=200;function pF(e,t){var n=this.__data__;if(n instanceof Ga){var a=n.__data__;if(!Zu||a.length<hF-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hi(a)}return n.set(e,t),this.size=n.size,this}function So(e){var t=this.__data__=new Ga(e);this.size=t.size}So.prototype.clear=RB;So.prototype.delete=DB;So.prototype.get=jB;So.prototype.has=kB;So.prototype.set=pF;function mF(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var W_=function(){try{var e=Xs(Object,"defineProperty");return e({},"",{}),e}catch{}}();function y1(e,t,n){t=="__proto__"&&W_?W_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var vF=Object.prototype,yF=vF.hasOwnProperty;function g1(e,t,n){var a=e[t];(!(yF.call(e,t)&&m1(a,n))||n===void 0&&!(t in e))&&y1(e,t,n)}function nh(e,t,n,a){var s=!n;n||(n={});for(var o=-1,c=t.length;++o<c;){var h=t[o],d=void 0;d===void 0&&(d=e[h]),s?y1(n,h,d):g1(n,h,d)}return n}function gF(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var bF="[object Arguments]";function ex(e){return Ks(e)&&Ys(e)==bF}var b1=Object.prototype,SF=b1.hasOwnProperty,EF=b1.propertyIsEnumerable,_F=ex(function(){return arguments}())?ex:function(e){return Ks(e)&&SF.call(e,"callee")&&!EF.call(e,"callee")},yc=Array.isArray;function xF(){return!1}var S1=typeof Hn=="object"&&Hn&&!Hn.nodeType&&Hn,tx=S1&&typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,OF=tx&&tx.exports===S1,nx=OF?sa.Buffer:void 0,TF=nx?nx.isBuffer:void 0,E1=TF||xF,wF=9007199254740991,AF=/^(?:0|[1-9]\d*)$/;function NF(e,t){var n=typeof e;return t=t??wF,!!t&&(n=="number"||n!="symbol"&&AF.test(e))&&e>-1&&e%1==0&&e<t}var CF=9007199254740991;function _1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CF}var RF="[object Arguments]",DF="[object Array]",jF="[object Boolean]",kF="[object Date]",MF="[object Error]",UF="[object Function]",$F="[object Map]",LF="[object Number]",BF="[object Object]",FF="[object RegExp]",IF="[object Set]",zF="[object String]",qF="[object WeakMap]",VF="[object ArrayBuffer]",HF="[object DataView]",PF="[object Float32Array]",GF="[object Float64Array]",YF="[object Int8Array]",KF="[object Int16Array]",QF="[object Int32Array]",XF="[object Uint8Array]",ZF="[object Uint8ClampedArray]",JF="[object Uint16Array]",WF="[object Uint32Array]",Tt={};Tt[PF]=Tt[GF]=Tt[YF]=Tt[KF]=Tt[QF]=Tt[XF]=Tt[ZF]=Tt[JF]=Tt[WF]=!0;Tt[RF]=Tt[DF]=Tt[VF]=Tt[jF]=Tt[HF]=Tt[kF]=Tt[MF]=Tt[UF]=Tt[$F]=Tt[LF]=Tt[BF]=Tt[FF]=Tt[IF]=Tt[zF]=Tt[qF]=!1;function eI(e){return Ks(e)&&_1(e.length)&&!!Tt[Ys(e)]}function sg(e){return function(t){return e(t)}}var x1=typeof Hn=="object"&&Hn&&!Hn.nodeType&&Hn,$u=x1&&typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,tI=$u&&$u.exports===x1,Km=tI&&f1.process,ho=function(){try{var e=$u&&$u.require&&$u.require("util").types;return e||Km&&Km.binding&&Km.binding("util")}catch{}}(),rx=ho&&ho.isTypedArray,nI=rx?sg(rx):eI,rI=Object.prototype,aI=rI.hasOwnProperty;function O1(e,t){var n=yc(e),a=!n&&_F(e),s=!n&&!a&&E1(e),o=!n&&!a&&!s&&nI(e),c=n||a||s||o,h=c?gF(e.length,String):[],d=h.length;for(var p in e)(t||aI.call(e,p))&&!(c&&(p=="length"||s&&(p=="offset"||p=="parent")||o&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||NF(p,d)))&&h.push(p);return h}var iI=Object.prototype;function lg(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||iI;return e===n}var sI=h1(Object.keys,Object),lI=Object.prototype,oI=lI.hasOwnProperty;function uI(e){if(!lg(e))return sI(e);var t=[];for(var n in Object(e))oI.call(e,n)&&n!="constructor"&&t.push(n);return t}function T1(e){return e!=null&&_1(e.length)&&!v1(e)}function og(e){return T1(e)?O1(e):uI(e)}function cI(e,t){return e&&nh(t,og(t),e)}function fI(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var dI=Object.prototype,hI=dI.hasOwnProperty;function pI(e){if(!vc(e))return fI(e);var t=lg(e),n=[];for(var a in e)a=="constructor"&&(t||!hI.call(e,a))||n.push(a);return n}function ug(e){return T1(e)?O1(e,!0):pI(e)}function mI(e,t){return e&&nh(t,ug(t),e)}var w1=typeof Hn=="object"&&Hn&&!Hn.nodeType&&Hn,ax=w1&&typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,vI=ax&&ax.exports===w1,ix=vI?sa.Buffer:void 0,sx=ix?ix.allocUnsafe:void 0;function yI(e,t){if(t)return e.slice();var n=e.length,a=sx?sx(n):new e.constructor(n);return e.copy(a),a}function A1(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}function gI(e,t){for(var n=-1,a=e==null?0:e.length,s=0,o=[];++n<a;){var c=e[n];t(c,n,e)&&(o[s++]=c)}return o}function N1(){return[]}var bI=Object.prototype,SI=bI.propertyIsEnumerable,lx=Object.getOwnPropertySymbols,cg=lx?function(e){return e==null?[]:(e=Object(e),gI(lx(e),function(t){return SI.call(e,t)}))}:N1;function EI(e,t){return nh(e,cg(e),t)}function C1(e,t){for(var n=-1,a=t.length,s=e.length;++n<a;)e[s+n]=t[n];return e}var _I=Object.getOwnPropertySymbols,R1=_I?function(e){for(var t=[];e;)C1(t,cg(e)),e=ig(e);return t}:N1;function xI(e,t){return nh(e,R1(e),t)}function D1(e,t,n){var a=t(e);return yc(e)?a:C1(a,n(e))}function OI(e){return D1(e,og,cg)}function TI(e){return D1(e,ug,R1)}var zv=Xs(sa,"DataView"),qv=Xs(sa,"Promise"),Vv=Xs(sa,"Set"),Hv=Xs(sa,"WeakMap"),ox="[object Map]",wI="[object Object]",ux="[object Promise]",cx="[object Set]",fx="[object WeakMap]",dx="[object DataView]",AI=Qs(zv),NI=Qs(Zu),CI=Qs(qv),RI=Qs(Vv),DI=Qs(Hv),Ca=Ys;(zv&&Ca(new zv(new ArrayBuffer(1)))!=dx||Zu&&Ca(new Zu)!=ox||qv&&Ca(qv.resolve())!=ux||Vv&&Ca(new Vv)!=cx||Hv&&Ca(new Hv)!=fx)&&(Ca=function(e){var t=Ys(e),n=t==wI?e.constructor:void 0,a=n?Qs(n):"";if(a)switch(a){case AI:return dx;case NI:return ox;case CI:return ux;case RI:return cx;case DI:return fx}return t});var jI=Object.prototype,kI=jI.hasOwnProperty;function MI(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&kI.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var hx=sa.Uint8Array;function fg(e){var t=new e.constructor(e.byteLength);return new hx(t).set(new hx(e)),t}function UI(e,t){var n=t?fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var $I=/\w*$/;function LI(e){var t=new e.constructor(e.source,$I.exec(e));return t.lastIndex=e.lastIndex,t}var px=$i?$i.prototype:void 0,mx=px?px.valueOf:void 0;function BI(e){return mx?Object(mx.call(e)):{}}function FI(e,t){var n=t?fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var II="[object Boolean]",zI="[object Date]",qI="[object Map]",VI="[object Number]",HI="[object RegExp]",PI="[object Set]",GI="[object String]",YI="[object Symbol]",KI="[object ArrayBuffer]",QI="[object DataView]",XI="[object Float32Array]",ZI="[object Float64Array]",JI="[object Int8Array]",WI="[object Int16Array]",e3="[object Int32Array]",t3="[object Uint8Array]",n3="[object Uint8ClampedArray]",r3="[object Uint16Array]",a3="[object Uint32Array]";function i3(e,t,n){var a=e.constructor;switch(t){case KI:return fg(e);case II:case zI:return new a(+e);case QI:return UI(e,n);case XI:case ZI:case JI:case WI:case e3:case t3:case n3:case r3:case a3:return FI(e,n);case qI:return new a;case VI:case GI:return new a(e);case HI:return LI(e);case PI:return new a;case YI:return BI(e)}}var vx=Object.create,s3=function(){function e(){}return function(t){if(!vc(t))return{};if(vx)return vx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function l3(e){return typeof e.constructor=="function"&&!lg(e)?s3(ig(e)):{}}var o3="[object Map]";function u3(e){return Ks(e)&&Ca(e)==o3}var yx=ho&&ho.isMap,c3=yx?sg(yx):u3,f3="[object Set]";function d3(e){return Ks(e)&&Ca(e)==f3}var gx=ho&&ho.isSet,h3=gx?sg(gx):d3,p3=1,m3=2,v3=4,j1="[object Arguments]",y3="[object Array]",g3="[object Boolean]",b3="[object Date]",S3="[object Error]",k1="[object Function]",E3="[object GeneratorFunction]",_3="[object Map]",x3="[object Number]",M1="[object Object]",O3="[object RegExp]",T3="[object Set]",w3="[object String]",A3="[object Symbol]",N3="[object WeakMap]",C3="[object ArrayBuffer]",R3="[object DataView]",D3="[object Float32Array]",j3="[object Float64Array]",k3="[object Int8Array]",M3="[object Int16Array]",U3="[object Int32Array]",$3="[object Uint8Array]",L3="[object Uint8ClampedArray]",B3="[object Uint16Array]",F3="[object Uint32Array]",_t={};_t[j1]=_t[y3]=_t[C3]=_t[R3]=_t[g3]=_t[b3]=_t[D3]=_t[j3]=_t[k3]=_t[M3]=_t[U3]=_t[_3]=_t[x3]=_t[M1]=_t[O3]=_t[T3]=_t[w3]=_t[A3]=_t[$3]=_t[L3]=_t[B3]=_t[F3]=!0;_t[S3]=_t[k1]=_t[N3]=!1;function Lu(e,t,n,a,s,o){var c,h=t&p3,d=t&m3,p=t&v3;if(c!==void 0)return c;if(!vc(e))return e;var v=yc(e);if(v){if(c=MI(e),!h)return A1(e,c)}else{var b=Ca(e),y=b==k1||b==E3;if(E1(e))return yI(e,h);if(b==M1||b==j1||y&&!s){if(c=d||y?{}:l3(e),!h)return d?xI(e,mI(c,e)):EI(e,cI(c,e))}else{if(!_t[b])return s?e:{};c=i3(e,b,h)}}o||(o=new So);var _=o.get(e);if(_)return _;o.set(e,c),h3(e)?e.forEach(function(N){c.add(Lu(N,t,n,N,e,o))}):c3(e)&&e.forEach(function(N,O){c.set(O,Lu(N,t,n,O,e,o))});var x=p?d?TI:OI:d?ug:og,A=v?void 0:x(e);return mF(A||e,function(N,O){A&&(O=N,N=e[O]),g1(c,O,Lu(N,t,n,O,e,o))}),c}var I3=1,z3=4;function Vf(e){return Lu(e,I3|z3)}var Qm,bx;function q3(){if(bx)return Qm;bx=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,a=typeof Element<"u";function s(o,c){if(o===c)return!0;if(o&&c&&typeof o=="object"&&typeof c=="object"){var h=e(o),d=e(c),p,v,b;if(h&&d){if(v=o.length,v!=c.length)return!1;for(p=v;p--!==0;)if(!s(o[p],c[p]))return!1;return!0}if(h!=d)return!1;var y=o instanceof Date,_=c instanceof Date;if(y!=_)return!1;if(y&&_)return o.getTime()==c.getTime();var x=o instanceof RegExp,A=c instanceof RegExp;if(x!=A)return!1;if(x&&A)return o.toString()==c.toString();var N=t(o);if(v=N.length,v!==t(c).length)return!1;for(p=v;p--!==0;)if(!n.call(c,N[p]))return!1;if(a&&o instanceof Element&&c instanceof Element)return o===c;for(p=v;p--!==0;)if(b=N[p],!(b==="_owner"&&o.$$typeof)&&!s(o[b],c[b]))return!1;return!0}return o!==o&&c!==c}return Qm=function(c,h){try{return s(c,h)}catch(d){if(d.message&&d.message.match(/stack|recursion/i)||d.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",d.name,d.message),!1;throw d}},Qm}var V3=q3();const vs=Bs(V3);var H3=4;function Sx(e){return Lu(e,H3)}function U1(e,t){for(var n=-1,a=e==null?0:e.length,s=Array(a);++n<a;)s[n]=t(e[n],n,e);return s}var P3="[object Symbol]";function dg(e){return typeof e=="symbol"||Ks(e)&&Ys(e)==P3}var G3="Expected a function";function hg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(G3);var n=function(){var a=arguments,s=t?t.apply(this,a):a[0],o=n.cache;if(o.has(s))return o.get(s);var c=e.apply(this,a);return n.cache=o.set(s,c)||o,c};return n.cache=new(hg.Cache||Hi),n}hg.Cache=Hi;var Y3=500;function K3(e){var t=hg(e,function(a){return n.size===Y3&&n.clear(),a}),n=t.cache;return t}var Q3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X3=/\\(\\)?/g,Z3=K3(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Q3,function(n,a,s,o){t.push(s?o.replace(X3,"$1"):a||n)}),t});function J3(e){if(typeof e=="string"||dg(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ex=$i?$i.prototype:void 0,_x=Ex?Ex.toString:void 0;function $1(e){if(typeof e=="string")return e;if(yc(e))return U1(e,$1)+"";if(dg(e))return _x?_x.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function W3(e){return e==null?"":$1(e)}function L1(e){return yc(e)?U1(e,J3):dg(e)?[e]:A1(Z3(W3(e)))}var Xm={exports:{}},ft={};/** @license React v16.13.1
|
|
156
156
|
* react-is.production.min.js
|
|
157
157
|
*
|
|
158
158
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
159
159
|
*
|
|
160
160
|
* This source code is licensed under the MIT license found in the
|
|
161
161
|
* LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/var xx;function K3(){if(xx)return ft;xx=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function D(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case t:switch(C=C.type,C){case d:case p:case a:case o:case s:case b:return C;default:switch(C=C&&C.$$typeof,C){case h:case v:case x:case _:case c:return C;default:return w}}case n:return w}}}function U(C){return D(C)===p}return ft.AsyncMode=d,ft.ConcurrentMode=p,ft.ContextConsumer=h,ft.ContextProvider=c,ft.Element=t,ft.ForwardRef=v,ft.Fragment=a,ft.Lazy=x,ft.Memo=_,ft.Portal=n,ft.Profiler=o,ft.StrictMode=s,ft.Suspense=b,ft.isAsyncMode=function(C){return U(C)||D(C)===d},ft.isConcurrentMode=U,ft.isContextConsumer=function(C){return D(C)===h},ft.isContextProvider=function(C){return D(C)===c},ft.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ft.isForwardRef=function(C){return D(C)===v},ft.isFragment=function(C){return D(C)===a},ft.isLazy=function(C){return D(C)===x},ft.isMemo=function(C){return D(C)===_},ft.isPortal=function(C){return D(C)===n},ft.isProfiler=function(C){return D(C)===o},ft.isStrictMode=function(C){return D(C)===s},ft.isSuspense=function(C){return D(C)===b},ft.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===a||C===p||C===o||C===s||C===b||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===_||C.$$typeof===c||C.$$typeof===h||C.$$typeof===v||C.$$typeof===N||C.$$typeof===O||C.$$typeof===R||C.$$typeof===A)},ft.typeOf=D,ft}var Ox;function Q3(){return Ox||(Ox=1,Xm.exports=K3()),Xm.exports}var Zm,Tx;function X3(){if(Tx)return Zm;Tx=1;var e=Q3(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=a,o[e.Memo]=s;function c(x){return e.isMemo(x)?s:o[x.$$typeof]||t}var h=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,y=Object.prototype;function _(x,A,N){if(typeof A!="string"){if(y){var O=b(A);O&&O!==y&&_(x,O,N)}var R=d(A);p&&(R=R.concat(p(A)));for(var D=c(x),U=c(A),C=0;C<R.length;++C){var w=R[C];if(!n[w]&&!(N&&N[w])&&!(U&&U[w])&&!(D&&D[w])){var q=v(A,w);try{h(x,w,q)}catch{}}}}return x}return Zm=_,Zm}X3();function Xt(){return Xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xt.apply(this,arguments)}function B1(e,t){if(e==null)return{};var n={},a=Object.keys(e),s,o;for(o=0;o<a.length;o++)s=a[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}var rh=S.createContext(void 0);rh.displayName="FormikContext";rh.Provider;rh.Consumer;function Z3(){var e=S.useContext(rh);return e}var Tr=function(t){return typeof t=="function"},ah=function(t){return t!==null&&typeof t=="object"},J3=function(t){return String(Math.floor(Number(t)))===t},Jm=function(t){return Object.prototype.toString.call(t)==="[object String]"},Wm=function(t){return ah(t)&&Tr(t.then)};function Bn(e,t,n,a){a===void 0&&(a=0);for(var s=L1(t);e&&a<s.length;)e=e[s[a++]];return a!==s.length&&!e||e===void 0?n:e}function Cs(e,t,n){for(var a=Sx(e),s=a,o=0,c=L1(t);o<c.length-1;o++){var h=c[o],d=Bn(e,c.slice(0,o+1));if(d&&(ah(d)||Array.isArray(d)))s=s[h]=Sx(d);else{var p=c[o+1];s=s[h]=J3(p)&&Number(p)>=0?[]:{}}}return(o===0?e:s)[c[o]]===n?e:(n===void 0?delete s[c[o]]:s[c[o]]=n,o===0&&n===void 0&&delete a[c[o]],a)}function F1(e,t,n,a){n===void 0&&(n=new WeakMap),a===void 0&&(a={});for(var s=0,o=Object.keys(e);s<o.length;s++){var c=o[s],h=e[c];ah(h)?n.get(h)||(n.set(h,!0),a[c]=Array.isArray(h)?[]:{},F1(h,t,n,a[c])):a[c]=t}return a}function W3(e,t){switch(t.type){case"SET_VALUES":return Xt({},e,{values:t.payload});case"SET_TOUCHED":return Xt({},e,{touched:t.payload});case"SET_ERRORS":return vs(e.errors,t.payload)?e:Xt({},e,{errors:t.payload});case"SET_STATUS":return Xt({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xt({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xt({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xt({},e,{values:Cs(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xt({},e,{touched:Cs(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xt({},e,{errors:Cs(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xt({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xt({},e,{touched:F1(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Xt({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Xt({},e,{isSubmitting:!1});default:return e}}var ps={},Hf={};function ih(e){var t=e.validateOnChange,n=t===void 0?!0:t,a=e.validateOnBlur,s=a===void 0?!0:a,o=e.validateOnMount,c=o===void 0?!1:o,h=e.isInitialValid,d=e.enableReinitialize,p=d===void 0?!1:d,v=e.onSubmit,b=B1(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),y=Xt({validateOnChange:n,validateOnBlur:s,validateOnMount:c,onSubmit:v},b),_=S.useRef(y.initialValues),x=S.useRef(y.initialErrors||ps),A=S.useRef(y.initialTouched||Hf),N=S.useRef(y.initialStatus),O=S.useRef(!1),R=S.useRef({});S.useEffect(function(){return O.current=!0,function(){O.current=!1}},[]);var D=S.useState(0),U=D[1],C=S.useRef({values:Vf(y.initialValues),errors:Vf(y.initialErrors)||ps,touched:Vf(y.initialTouched)||Hf,status:Vf(y.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),w=C.current,q=S.useCallback(function(V){var ce=C.current;C.current=W3(ce,V),ce!==C.current&&U(function(pe){return pe+1})},[]),re=S.useCallback(function(V,ce){return new Promise(function(pe,Oe){var ue=y.validate(V,ce);ue==null?pe(ps):Wm(ue)?ue.then(function(ge){pe(ge||ps)},function(ge){Oe(ge)}):pe(ue)})},[y.validate]),Q=S.useCallback(function(V,ce){var pe=y.validationSchema,Oe=Tr(pe)?pe(ce):pe,ue=ce&&Oe.validateAt?Oe.validateAt(ce,V):tz(V,Oe);return new Promise(function(ge,tt){ue.then(function(){ge(ps)},function(bt){bt.name==="ValidationError"?ge(ez(bt)):tt(bt)})})},[y.validationSchema]),he=S.useCallback(function(V,ce){return new Promise(function(pe){return pe(R.current[V].validate(ce))})},[]),ie=S.useCallback(function(V){var ce=Object.keys(R.current).filter(function(Oe){return Tr(R.current[Oe].validate)}),pe=ce.length>0?ce.map(function(Oe){return he(Oe,Bn(V,Oe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(pe).then(function(Oe){return Oe.reduce(function(ue,ge,tt){return ge==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ge&&(ue=Cs(ue,ce[tt],ge)),ue},{})})},[he]),xe=S.useCallback(function(V){return Promise.all([ie(V),y.validationSchema?Q(V):{},y.validate?re(V):{}]).then(function(ce){var pe=ce[0],Oe=ce[1],ue=ce[2],ge=Iv.all([pe,Oe,ue],{arrayMerge:nz});return ge})},[y.validate,y.validationSchema,ie,re,Q]),fe=sr(function(V){return V===void 0&&(V=w.values),q({type:"SET_ISVALIDATING",payload:!0}),xe(V).then(function(ce){return O.current&&(q({type:"SET_ISVALIDATING",payload:!1}),q({type:"SET_ERRORS",payload:ce})),ce})});S.useEffect(function(){c&&O.current===!0&&vs(_.current,y.initialValues)&&fe(_.current)},[c,fe]);var me=S.useCallback(function(V){var ce=V&&V.values?V.values:_.current,pe=V&&V.errors?V.errors:x.current?x.current:y.initialErrors||{},Oe=V&&V.touched?V.touched:A.current?A.current:y.initialTouched||{},ue=V&&V.status?V.status:N.current?N.current:y.initialStatus;_.current=ce,x.current=pe,A.current=Oe,N.current=ue;var ge=function(){q({type:"RESET_FORM",payload:{isSubmitting:!!V&&!!V.isSubmitting,errors:pe,touched:Oe,status:ue,values:ce,isValidating:!!V&&!!V.isValidating,submitCount:V&&V.submitCount&&typeof V.submitCount=="number"?V.submitCount:0}})};if(y.onReset){var tt=y.onReset(w.values,en);Wm(tt)?tt.then(ge):ge()}else ge()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);S.useEffect(function(){O.current===!0&&!vs(_.current,y.initialValues)&&p&&(_.current=y.initialValues,me(),c&&fe(_.current))},[p,y.initialValues,me,c,fe]),S.useEffect(function(){p&&O.current===!0&&!vs(x.current,y.initialErrors)&&(x.current=y.initialErrors||ps,q({type:"SET_ERRORS",payload:y.initialErrors||ps}))},[p,y.initialErrors]),S.useEffect(function(){p&&O.current===!0&&!vs(A.current,y.initialTouched)&&(A.current=y.initialTouched||Hf,q({type:"SET_TOUCHED",payload:y.initialTouched||Hf}))},[p,y.initialTouched]),S.useEffect(function(){p&&O.current===!0&&!vs(N.current,y.initialStatus)&&(N.current=y.initialStatus,q({type:"SET_STATUS",payload:y.initialStatus}))},[p,y.initialStatus,y.initialTouched]);var we=sr(function(V){if(R.current[V]&&Tr(R.current[V].validate)){var ce=Bn(w.values,V),pe=R.current[V].validate(ce);return Wm(pe)?(q({type:"SET_ISVALIDATING",payload:!0}),pe.then(function(Oe){return Oe}).then(function(Oe){q({type:"SET_FIELD_ERROR",payload:{field:V,value:Oe}}),q({type:"SET_ISVALIDATING",payload:!1})})):(q({type:"SET_FIELD_ERROR",payload:{field:V,value:pe}}),Promise.resolve(pe))}else if(y.validationSchema)return q({type:"SET_ISVALIDATING",payload:!0}),Q(w.values,V).then(function(Oe){return Oe}).then(function(Oe){q({type:"SET_FIELD_ERROR",payload:{field:V,value:Bn(Oe,V)}}),q({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),L=S.useCallback(function(V,ce){var pe=ce.validate;R.current[V]={validate:pe}},[]),te=S.useCallback(function(V){delete R.current[V]},[]),le=sr(function(V,ce){q({type:"SET_TOUCHED",payload:V});var pe=ce===void 0?s:ce;return pe?fe(w.values):Promise.resolve()}),Ae=S.useCallback(function(V){q({type:"SET_ERRORS",payload:V})},[]),k=sr(function(V,ce){var pe=Tr(V)?V(w.values):V;q({type:"SET_VALUES",payload:pe});var Oe=ce===void 0?n:ce;return Oe?fe(pe):Promise.resolve()}),Y=S.useCallback(function(V,ce){q({type:"SET_FIELD_ERROR",payload:{field:V,value:ce}})},[]),ae=sr(function(V,ce,pe){q({type:"SET_FIELD_VALUE",payload:{field:V,value:ce}});var Oe=pe===void 0?n:pe;return Oe?fe(Cs(w.values,V,ce)):Promise.resolve()}),ne=S.useCallback(function(V,ce){var pe=ce,Oe=V,ue;if(!Jm(V)){V.persist&&V.persist();var ge=V.target?V.target:V.currentTarget,tt=ge.type,bt=ge.name,Gi=ge.id,gn=ge.value,Js=ge.checked;ge.outerHTML;var Br=ge.options,oa=ge.multiple;pe=ce||bt||Gi,Oe=/number|range/.test(tt)?(ue=parseFloat(gn),isNaN(ue)?"":ue):/checkbox/.test(tt)?az(Bn(w.values,pe),Js,gn):Br&&oa?rz(Br):gn}pe&&ae(pe,Oe)},[ae,w.values]),se=sr(function(V){if(Jm(V))return function(ce){return ne(ce,V)};ne(V)}),Ee=sr(function(V,ce,pe){ce===void 0&&(ce=!0),q({type:"SET_FIELD_TOUCHED",payload:{field:V,value:ce}});var Oe=pe===void 0?s:pe;return Oe?fe(w.values):Promise.resolve()}),ve=S.useCallback(function(V,ce){V.persist&&V.persist();var pe=V.target,Oe=pe.name,ue=pe.id;pe.outerHTML;var ge=ce||Oe||ue;Ee(ge,!0)},[Ee]),dt=sr(function(V){if(Jm(V))return function(ce){return ve(ce,V)};ve(V)}),qe=S.useCallback(function(V){Tr(V)?q({type:"SET_FORMIK_STATE",payload:V}):q({type:"SET_FORMIK_STATE",payload:function(){return V}})},[]),Rt=S.useCallback(function(V){q({type:"SET_STATUS",payload:V})},[]),ut=S.useCallback(function(V){q({type:"SET_ISSUBMITTING",payload:V})},[]),wt=sr(function(){return q({type:"SUBMIT_ATTEMPT"}),fe().then(function(V){var ce=V instanceof Error,pe=!ce&&Object.keys(V).length===0;if(pe){var Oe;try{if(Oe=kt(),Oe===void 0)return}catch(ue){throw ue}return Promise.resolve(Oe).then(function(ue){return O.current&&q({type:"SUBMIT_SUCCESS"}),ue}).catch(function(ue){if(O.current)throw q({type:"SUBMIT_FAILURE"}),ue})}else if(O.current&&(q({type:"SUBMIT_FAILURE"}),ce))throw V})}),Wt=sr(function(V){V&&V.preventDefault&&Tr(V.preventDefault)&&V.preventDefault(),V&&V.stopPropagation&&Tr(V.stopPropagation)&&V.stopPropagation(),wt().catch(function(ce){console.warn("Warning: An unhandled error was caught from submitForm()",ce)})}),en={resetForm:me,validateForm:fe,validateField:we,setErrors:Ae,setFieldError:Y,setFieldTouched:Ee,setFieldValue:ae,setStatus:Rt,setSubmitting:ut,setTouched:le,setValues:k,setFormikState:qe,submitForm:wt},kt=sr(function(){return v(w.values,en)}),at=sr(function(V){V&&V.preventDefault&&Tr(V.preventDefault)&&V.preventDefault(),V&&V.stopPropagation&&Tr(V.stopPropagation)&&V.stopPropagation(),me()}),Rn=S.useCallback(function(V){return{value:Bn(w.values,V),error:Bn(w.errors,V),touched:!!Bn(w.touched,V),initialValue:Bn(_.current,V),initialTouched:!!Bn(A.current,V),initialError:Bn(x.current,V)}},[w.errors,w.touched,w.values]),At=S.useCallback(function(V){return{setValue:function(pe,Oe){return ae(V,pe,Oe)},setTouched:function(pe,Oe){return Ee(V,pe,Oe)},setError:function(pe){return Y(V,pe)}}},[ae,Ee,Y]),la=S.useCallback(function(V){var ce=ah(V),pe=ce?V.name:V,Oe=Bn(w.values,pe),ue={name:pe,value:Oe,onChange:se,onBlur:dt};if(ce){var ge=V.type,tt=V.value,bt=V.as,Gi=V.multiple;ge==="checkbox"?tt===void 0?ue.checked=!!Oe:(ue.checked=!!(Array.isArray(Oe)&&~Oe.indexOf(tt)),ue.value=tt):ge==="radio"?(ue.checked=Oe===tt,ue.value=tt):bt==="select"&&Gi&&(ue.value=ue.value||[],ue.multiple=!0)}return ue},[dt,se,w.values]),Qn=S.useMemo(function(){return!vs(_.current,w.values)},[_.current,w.values]),ln=S.useMemo(function(){return typeof h<"u"?Qn?w.errors&&Object.keys(w.errors).length===0:h!==!1&&Tr(h)?h(y):h:w.errors&&Object.keys(w.errors).length===0},[h,Qn,w.errors,y]),hn=Xt({},w,{initialValues:_.current,initialErrors:x.current,initialTouched:A.current,initialStatus:N.current,handleBlur:dt,handleChange:se,handleReset:at,handleSubmit:Wt,resetForm:me,setErrors:Ae,setFormikState:qe,setFieldTouched:Ee,setFieldValue:ae,setFieldError:Y,setStatus:Rt,setSubmitting:ut,setTouched:le,setValues:k,submitForm:wt,validateForm:fe,validateField:we,isValid:ln,dirty:Qn,unregisterField:te,registerField:L,getFieldProps:la,getFieldMeta:Rn,getFieldHelpers:At,validateOnBlur:s,validateOnChange:n,validateOnMount:c});return hn}function ez(e){var t={};if(e.inner){if(e.inner.length===0)return Cs(t,e.path,e.message);for(var s=e.inner,n=Array.isArray(s),a=0,s=n?s:s[Symbol.iterator]();;){var o;if(n){if(a>=s.length)break;o=s[a++]}else{if(a=s.next(),a.done)break;o=a.value}var c=o;Bn(t,c.path)||(t=Cs(t,c.path,c.message))}}return t}function tz(e,t,n,a){n===void 0&&(n=!1);var s=Pv(e);return t[n?"validateSync":"validate"](s,{abortEarly:!1,context:s})}function Pv(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=String(n);Array.isArray(e[a])===!0?t[a]=e[a].map(function(s){return Array.isArray(s)===!0||Z_(s)?Pv(s):s!==""?s:void 0}):Z_(e[a])?t[a]=Pv(e[a]):t[a]=e[a]!==""?e[a]:void 0}return t}function nz(e,t,n){var a=e.slice();return t.forEach(function(o,c){if(typeof a[c]>"u"){var h=n.clone!==!1,d=h&&n.isMergeableObject(o);a[c]=d?Iv(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?a[c]=Iv(e[c],o,n):e.indexOf(o)===-1&&a.push(o)}),a}function rz(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function az(e,t,n){if(typeof e=="boolean")return!!t;var a=[],s=!1,o=-1;if(Array.isArray(e))a=e,o=e.indexOf(n),s=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!s?a.concat(n):s?a.slice(0,o).concat(a.slice(o+1)):a}var iz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function sr(e){var t=S.useRef(e);return iz(function(){t.current=e}),S.useCallback(function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.current.apply(void 0,a)},[])}var sz=S.forwardRef(function(e,t){var n=e.action,a=B1(e,["action"]),s=n??"#",o=Z3(),c=o.handleReset,h=o.handleSubmit;return S.createElement("form",Xt({onSubmit:h,ref:t,onReset:c,action:s},a))});sz.displayName="Form";var ev,wx;function lz(){if(wx)return ev;wx=1;function e(O){this._maxSize=O,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(O){return this._values[O]},e.prototype.set=function(O,R){return this._size>=this._maxSize&&this.clear(),O in this._values||this._size++,this._values[O]=R};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,c=512,h=new e(c),d=new e(c),p=new e(c);ev={Cache:e,split:b,normalizePath:v,setter:function(O){var R=v(O);return d.get(O)||d.set(O,function(U,C){for(var w=0,q=R.length,re=U;w<q-1;){var Q=R[w];if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return U;re=re[R[w++]]}re[R[w]]=C})},getter:function(O,R){var D=v(O);return p.get(O)||p.set(O,function(C){for(var w=0,q=D.length;w<q;)if(C!=null||!R)C=C[D[w++]];else return;return C})},join:function(O){return O.reduce(function(R,D){return R+(_(D)||n.test(D)?"["+D+"]":(R?".":"")+D)},"")},forEach:function(O,R,D){y(Array.isArray(O)?O:b(O),R,D)}};function v(O){return h.get(O)||h.set(O,b(O).map(function(R){return R.replace(o,"$2")}))}function b(O){return O.match(t)||[""]}function y(O,R,D){var U=O.length,C,w,q,re;for(w=0;w<U;w++)C=O[w],C&&(N(C)&&(C='"'+C+'"'),re=_(C),q=!re&&/^\d+$/.test(C),R.call(D,C,re,q,w,O))}function _(O){return typeof O=="string"&&O&&["'",'"'].indexOf(O.charAt(0))!==-1}function x(O){return O.match(a)&&!O.match(n)}function A(O){return s.test(O)}function N(O){return!_(O)&&(x(O)||A(O))}return ev}var Rs=lz(),tv,Ax;function oz(){if(Ax)return tv;Ax=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=v=>v.match(e)||[],n=v=>v[0].toUpperCase()+v.slice(1),a=(v,b)=>t(v).join(b).toLowerCase(),s=v=>t(v).reduce((b,y)=>`${b}${b?y[0].toUpperCase()+y.slice(1).toLowerCase():y.toLowerCase()}`,"");return tv={words:t,upperFirst:n,camelCase:s,pascalCase:v=>n(s(v)),snakeCase:v=>a(v,"_"),kebabCase:v=>a(v,"-"),sentenceCase:v=>n(a(v," ")),titleCase:v=>t(v).map(n).join(" ")},tv}var nv=oz(),Pf={exports:{}},Nx;function uz(){if(Nx)return Pf.exports;Nx=1,Pf.exports=function(s){return e(t(s),s)},Pf.exports.array=e;function e(s,o){var c=s.length,h=new Array(c),d={},p=c,v=n(o),b=a(s);for(o.forEach(function(_){if(!b.has(_[0])||!b.has(_[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});p--;)d[p]||y(s[p],p,new Set);return h;function y(_,x,A){if(A.has(_)){var N;try{N=", node was:"+JSON.stringify(_)}catch{N=""}throw new Error("Cyclic dependency"+N)}if(!b.has(_))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(_));if(!d[x]){d[x]=!0;var O=v.get(_)||new Set;if(O=Array.from(O),x=O.length){A.add(_);do{var R=O[--x];y(R,b.get(R),A)}while(x);A.delete(_)}h[--c]=_}}}function t(s){for(var o=new Set,c=0,h=s.length;c<h;c++){var d=s[c];o.add(d[0]),o.add(d[1])}return Array.from(o)}function n(s){for(var o=new Map,c=0,h=s.length;c<h;c++){var d=s[c];o.has(d[0])||o.set(d[0],new Set),o.has(d[1])||o.set(d[1],new Set),o.get(d[0]).add(d[1])}return o}function a(s){for(var o=new Map,c=0,h=s.length;c<h;c++)o.set(s[c],c);return o}return Pf.exports}var cz=uz();const fz=Bs(cz),dz=Object.prototype.toString,hz=Error.prototype.toString,pz=RegExp.prototype.toString,mz=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",vz=/^Symbol\((.*)\)(.*)$/;function yz(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Cx(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return yz(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return mz.call(e).replace(vz,"Symbol($1)");const a=dz.call(e).slice(8,-1);return a==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):a==="Error"||e instanceof Error?"["+hz.call(e)+"]":a==="RegExp"?pz.call(e):null}function Ri(e,t){let n=Cx(e,t);return n!==null?n:JSON.stringify(e,function(a,s){let o=Cx(this[a],t);return o!==null?o:s},2)}function I1(e){return e==null?[]:[].concat(e)}let z1,q1,V1,gz=/\$\{\s*(\w+)\s*\}/g;z1=Symbol.toStringTag;let Rx=class{constructor(t,n,a,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[z1]="Error",this.name="ValidationError",this.value=n,this.path=a,this.type=s,this.errors=[],this.inner=[],I1(t).forEach(o=>{if(ur.isError(o)){this.errors.push(...o.errors);const c=o.inner.length?o.inner:[o];this.inner.push(...c)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};q1=Symbol.hasInstance;V1=Symbol.toStringTag;let ur=class H1 extends Error{static formatError(t,n){const a=n.label||n.path||"this";return n=Object.assign({},n,{path:a,originalPath:n.path}),typeof t=="string"?t.replace(gz,(s,o)=>Ri(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,a,s,o){const c=new Rx(t,n,a,s);if(o)return c;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[V1]="Error",this.name=c.name,this.message=c.message,this.type=c.type,this.value=c.value,this.path=c.path,this.errors=c.errors,this.inner=c.inner,Error.captureStackTrace&&Error.captureStackTrace(this,H1)}static[q1](t){return Rx[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}},Pr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:a})=>{const s=a!=null&&a!==n?` (cast from the value \`${Ri(a,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ri(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Ri(n,!0)}\``+s}},Tn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ei={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Gv={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},bz={isValue:"${path} field must be ${value}"},sd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Sz={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Ez={notType:e=>{const{path:t,value:n,spec:a}=e,s=a.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Ri(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Ri(n,!0)}\``}return ur.formatError(Pr.notType,e)}};Object.assign(Object.create(null),{mixed:Pr,string:Tn,number:Ei,date:Gv,object:sd,array:Sz,boolean:bz,tuple:Ez});const pg=e=>e&&e.__isYupSchema__;let Dx=class P1{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:a,then:s,otherwise:o}=n,c=typeof a=="function"?a:(...h)=>h.every(d=>d===a);return new P1(t,(h,d)=>{var p;let v=c(...h)?s:o;return(p=v==null?void 0:v(d))!=null?p:d})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let a=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(a,t,n);if(s===void 0||s===t)return t;if(!pg(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}};const Gf={context:"$",value:"."};let Zs=class{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Gf.context,this.isValue=this.key[0]===Gf.value,this.isSibling=!this.isContext&&!this.isValue;let a=this.isContext?Gf.context:this.isValue?Gf.value:"";this.path=this.key.slice(a.length),this.getter=this.path&&Rs.getter(this.path,!0),this.map=n.map}getValue(t,n,a){let s=this.isContext?a:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}};Zs.prototype.__isYupRef=!0;const Ua=e=>e==null;function Fl(e){function t({value:n,path:a="",options:s,originalValue:o,schema:c},h,d){const{name:p,test:v,params:b,message:y,skipAbsent:_}=e;let{parent:x,context:A,abortEarly:N=c.spec.abortEarly,disableStackTrace:O=c.spec.disableStackTrace}=s;function R(ie){return Zs.isRef(ie)?ie.getValue(n,x,A):ie}function D(ie={}){const xe=Object.assign({value:n,originalValue:o,label:c.spec.label,path:ie.path||a,spec:c.spec,disableStackTrace:ie.disableStackTrace||O},b,ie.params);for(const me of Object.keys(xe))xe[me]=R(xe[me]);const fe=new ur(ur.formatError(ie.message||y,xe),n,xe.path,ie.type||p,xe.disableStackTrace);return fe.params=xe,fe}const U=N?h:d;let C={path:a,parent:x,type:p,from:s.from,createError:D,resolve:R,options:s,originalValue:o,schema:c};const w=ie=>{ur.isError(ie)?U(ie):ie?d(null):U(D())},q=ie=>{ur.isError(ie)?U(ie):h(ie)};if(_&&Ua(n))return w(!0);let Q;try{var he;if(Q=v.call(C,n,C),typeof((he=Q)==null?void 0:he.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Q).then(w,q)}}catch(ie){q(ie);return}w(Q)}return t.OPTIONS=e,t}function _z(e,t,n,a=n){let s,o,c;return t?(Rs.forEach(t,(h,d,p)=>{let v=d?h.slice(1,h.length-1):h;e=e.resolve({context:a,parent:s,value:n});let b=e.type==="tuple",y=p?parseInt(v,10):0;if(e.innerType||b){if(b&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${c}" must contain an index to the tuple element, e.g. "${c}[0]"`);if(n&&y>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${h}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[y],e=b?e.spec.types[y]:e.innerType}if(!p){if(!e.fields||!e.fields[v])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${c} which is a type: "${e.type}")`);s=n,n=n&&n[v],e=e.fields[v]}o=v,c=d?"["+h+"]":"."+h}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}let jx=class G1 extends Set{describe(){const t=[];for(const n of this.values())t.push(Zs.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const a of this.values())n.push(t(a));return n}clone(){return new G1(this.values())}merge(t,n){const a=this.clone();return t.forEach(s=>a.add(s)),n.forEach(s=>a.delete(s)),a}};function Pl(e,t=new Map){if(pg(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let a=0;a<e.length;a++)n[a]=Pl(e[a],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[a,s]of e.entries())n.set(a,Pl(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const a of e)n.add(Pl(a,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[a,s]of Object.entries(e))n[a]=Pl(s,t)}else throw Error(`Unable to clone ${e}`);return n}let Mr=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new jx,this._blacklist=new jx,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Pr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Pl(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let a=t(this);return this._mutate=n,a}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,a=t.clone();const s=Object.assign({},n.spec,a.spec);return a.spec=s,a.internalTests=Object.assign({},n.internalTests,a.internalTests),a._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),a._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),a.tests=n.tests,a.exclusiveTests=n.exclusiveTests,a.withMutation(o=>{t.tests.forEach(c=>{o.test(c.OPTIONS)})}),a.transforms=[...n.transforms,...a.transforms],a}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let a=n.conditions;n=n.clone(),n.conditions=[],n=a.reduce((s,o)=>o.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,a,s,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(a=t.abortEarly)!=null?a:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let a=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",o=a._cast(t,n);if(n.assert!==!1&&!a.isType(o)){if(s&&Ua(o))return o;let c=Ri(t),h=Ri(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${a.type}".
|
|
162
|
+
*/var xx;function ez(){if(xx)return ft;xx=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function D(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case t:switch(C=C.type,C){case d:case p:case a:case o:case s:case b:return C;default:switch(C=C&&C.$$typeof,C){case h:case v:case x:case _:case c:return C;default:return w}}case n:return w}}}function U(C){return D(C)===p}return ft.AsyncMode=d,ft.ConcurrentMode=p,ft.ContextConsumer=h,ft.ContextProvider=c,ft.Element=t,ft.ForwardRef=v,ft.Fragment=a,ft.Lazy=x,ft.Memo=_,ft.Portal=n,ft.Profiler=o,ft.StrictMode=s,ft.Suspense=b,ft.isAsyncMode=function(C){return U(C)||D(C)===d},ft.isConcurrentMode=U,ft.isContextConsumer=function(C){return D(C)===h},ft.isContextProvider=function(C){return D(C)===c},ft.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ft.isForwardRef=function(C){return D(C)===v},ft.isFragment=function(C){return D(C)===a},ft.isLazy=function(C){return D(C)===x},ft.isMemo=function(C){return D(C)===_},ft.isPortal=function(C){return D(C)===n},ft.isProfiler=function(C){return D(C)===o},ft.isStrictMode=function(C){return D(C)===s},ft.isSuspense=function(C){return D(C)===b},ft.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===a||C===p||C===o||C===s||C===b||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===_||C.$$typeof===c||C.$$typeof===h||C.$$typeof===v||C.$$typeof===N||C.$$typeof===O||C.$$typeof===R||C.$$typeof===A)},ft.typeOf=D,ft}var Ox;function tz(){return Ox||(Ox=1,Xm.exports=ez()),Xm.exports}var Zm,Tx;function nz(){if(Tx)return Zm;Tx=1;var e=tz(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=a,o[e.Memo]=s;function c(x){return e.isMemo(x)?s:o[x.$$typeof]||t}var h=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,y=Object.prototype;function _(x,A,N){if(typeof A!="string"){if(y){var O=b(A);O&&O!==y&&_(x,O,N)}var R=d(A);p&&(R=R.concat(p(A)));for(var D=c(x),U=c(A),C=0;C<R.length;++C){var w=R[C];if(!n[w]&&!(N&&N[w])&&!(U&&U[w])&&!(D&&D[w])){var q=v(A,w);try{h(x,w,q)}catch{}}}}return x}return Zm=_,Zm}nz();function Xt(){return Xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xt.apply(this,arguments)}function B1(e,t){if(e==null)return{};var n={},a=Object.keys(e),s,o;for(o=0;o<a.length;o++)s=a[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}var rh=S.createContext(void 0);rh.displayName="FormikContext";rh.Provider;rh.Consumer;function rz(){var e=S.useContext(rh);return e}var Tr=function(t){return typeof t=="function"},ah=function(t){return t!==null&&typeof t=="object"},az=function(t){return String(Math.floor(Number(t)))===t},Jm=function(t){return Object.prototype.toString.call(t)==="[object String]"},Wm=function(t){return ah(t)&&Tr(t.then)};function Bn(e,t,n,a){a===void 0&&(a=0);for(var s=L1(t);e&&a<s.length;)e=e[s[a++]];return a!==s.length&&!e||e===void 0?n:e}function Cs(e,t,n){for(var a=Sx(e),s=a,o=0,c=L1(t);o<c.length-1;o++){var h=c[o],d=Bn(e,c.slice(0,o+1));if(d&&(ah(d)||Array.isArray(d)))s=s[h]=Sx(d);else{var p=c[o+1];s=s[h]=az(p)&&Number(p)>=0?[]:{}}}return(o===0?e:s)[c[o]]===n?e:(n===void 0?delete s[c[o]]:s[c[o]]=n,o===0&&n===void 0&&delete a[c[o]],a)}function F1(e,t,n,a){n===void 0&&(n=new WeakMap),a===void 0&&(a={});for(var s=0,o=Object.keys(e);s<o.length;s++){var c=o[s],h=e[c];ah(h)?n.get(h)||(n.set(h,!0),a[c]=Array.isArray(h)?[]:{},F1(h,t,n,a[c])):a[c]=t}return a}function iz(e,t){switch(t.type){case"SET_VALUES":return Xt({},e,{values:t.payload});case"SET_TOUCHED":return Xt({},e,{touched:t.payload});case"SET_ERRORS":return vs(e.errors,t.payload)?e:Xt({},e,{errors:t.payload});case"SET_STATUS":return Xt({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xt({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xt({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xt({},e,{values:Cs(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xt({},e,{touched:Cs(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xt({},e,{errors:Cs(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xt({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xt({},e,{touched:F1(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Xt({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Xt({},e,{isSubmitting:!1});default:return e}}var ps={},Hf={};function ih(e){var t=e.validateOnChange,n=t===void 0?!0:t,a=e.validateOnBlur,s=a===void 0?!0:a,o=e.validateOnMount,c=o===void 0?!1:o,h=e.isInitialValid,d=e.enableReinitialize,p=d===void 0?!1:d,v=e.onSubmit,b=B1(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),y=Xt({validateOnChange:n,validateOnBlur:s,validateOnMount:c,onSubmit:v},b),_=S.useRef(y.initialValues),x=S.useRef(y.initialErrors||ps),A=S.useRef(y.initialTouched||Hf),N=S.useRef(y.initialStatus),O=S.useRef(!1),R=S.useRef({});S.useEffect(function(){return O.current=!0,function(){O.current=!1}},[]);var D=S.useState(0),U=D[1],C=S.useRef({values:Vf(y.initialValues),errors:Vf(y.initialErrors)||ps,touched:Vf(y.initialTouched)||Hf,status:Vf(y.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),w=C.current,q=S.useCallback(function(V){var ce=C.current;C.current=iz(ce,V),ce!==C.current&&U(function(pe){return pe+1})},[]),re=S.useCallback(function(V,ce){return new Promise(function(pe,_e){var ue=y.validate(V,ce);ue==null?pe(ps):Wm(ue)?ue.then(function(ye){pe(ye||ps)},function(ye){_e(ye)}):pe(ue)})},[y.validate]),Q=S.useCallback(function(V,ce){var pe=y.validationSchema,_e=Tr(pe)?pe(ce):pe,ue=ce&&_e.validateAt?_e.validateAt(ce,V):lz(V,_e);return new Promise(function(ye,tt){ue.then(function(){ye(ps)},function(bt){bt.name==="ValidationError"?ye(sz(bt)):tt(bt)})})},[y.validationSchema]),he=S.useCallback(function(V,ce){return new Promise(function(pe){return pe(R.current[V].validate(ce))})},[]),ie=S.useCallback(function(V){var ce=Object.keys(R.current).filter(function(_e){return Tr(R.current[_e].validate)}),pe=ce.length>0?ce.map(function(_e){return he(_e,Bn(V,_e))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(pe).then(function(_e){return _e.reduce(function(ue,ye,tt){return ye==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ye&&(ue=Cs(ue,ce[tt],ye)),ue},{})})},[he]),Re=S.useCallback(function(V){return Promise.all([ie(V),y.validationSchema?Q(V):{},y.validate?re(V):{}]).then(function(ce){var pe=ce[0],_e=ce[1],ue=ce[2],ye=Iv.all([pe,_e,ue],{arrayMerge:oz});return ye})},[y.validate,y.validationSchema,ie,re,Q]),fe=lr(function(V){return V===void 0&&(V=w.values),q({type:"SET_ISVALIDATING",payload:!0}),Re(V).then(function(ce){return O.current&&(q({type:"SET_ISVALIDATING",payload:!1}),q({type:"SET_ERRORS",payload:ce})),ce})});S.useEffect(function(){c&&O.current===!0&&vs(_.current,y.initialValues)&&fe(_.current)},[c,fe]);var xe=S.useCallback(function(V){var ce=V&&V.values?V.values:_.current,pe=V&&V.errors?V.errors:x.current?x.current:y.initialErrors||{},_e=V&&V.touched?V.touched:A.current?A.current:y.initialTouched||{},ue=V&&V.status?V.status:N.current?N.current:y.initialStatus;_.current=ce,x.current=pe,A.current=_e,N.current=ue;var ye=function(){q({type:"RESET_FORM",payload:{isSubmitting:!!V&&!!V.isSubmitting,errors:pe,touched:_e,status:ue,values:ce,isValidating:!!V&&!!V.isValidating,submitCount:V&&V.submitCount&&typeof V.submitCount=="number"?V.submitCount:0}})};if(y.onReset){var tt=y.onReset(w.values,en);Wm(tt)?tt.then(ye):ye()}else ye()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);S.useEffect(function(){O.current===!0&&!vs(_.current,y.initialValues)&&p&&(_.current=y.initialValues,xe(),c&&fe(_.current))},[p,y.initialValues,xe,c,fe]),S.useEffect(function(){p&&O.current===!0&&!vs(x.current,y.initialErrors)&&(x.current=y.initialErrors||ps,q({type:"SET_ERRORS",payload:y.initialErrors||ps}))},[p,y.initialErrors]),S.useEffect(function(){p&&O.current===!0&&!vs(A.current,y.initialTouched)&&(A.current=y.initialTouched||Hf,q({type:"SET_TOUCHED",payload:y.initialTouched||Hf}))},[p,y.initialTouched]),S.useEffect(function(){p&&O.current===!0&&!vs(N.current,y.initialStatus)&&(N.current=y.initialStatus,q({type:"SET_STATUS",payload:y.initialStatus}))},[p,y.initialStatus,y.initialTouched]);var Te=lr(function(V){if(R.current[V]&&Tr(R.current[V].validate)){var ce=Bn(w.values,V),pe=R.current[V].validate(ce);return Wm(pe)?(q({type:"SET_ISVALIDATING",payload:!0}),pe.then(function(_e){return _e}).then(function(_e){q({type:"SET_FIELD_ERROR",payload:{field:V,value:_e}}),q({type:"SET_ISVALIDATING",payload:!1})})):(q({type:"SET_FIELD_ERROR",payload:{field:V,value:pe}}),Promise.resolve(pe))}else if(y.validationSchema)return q({type:"SET_ISVALIDATING",payload:!0}),Q(w.values,V).then(function(_e){return _e}).then(function(_e){q({type:"SET_FIELD_ERROR",payload:{field:V,value:Bn(_e,V)}}),q({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),L=S.useCallback(function(V,ce){var pe=ce.validate;R.current[V]={validate:pe}},[]),te=S.useCallback(function(V){delete R.current[V]},[]),le=lr(function(V,ce){q({type:"SET_TOUCHED",payload:V});var pe=ce===void 0?s:ce;return pe?fe(w.values):Promise.resolve()}),we=S.useCallback(function(V){q({type:"SET_ERRORS",payload:V})},[]),k=lr(function(V,ce){var pe=Tr(V)?V(w.values):V;q({type:"SET_VALUES",payload:pe});var _e=ce===void 0?n:ce;return _e?fe(pe):Promise.resolve()}),Y=S.useCallback(function(V,ce){q({type:"SET_FIELD_ERROR",payload:{field:V,value:ce}})},[]),ae=lr(function(V,ce,pe){q({type:"SET_FIELD_VALUE",payload:{field:V,value:ce}});var _e=pe===void 0?n:pe;return _e?fe(Cs(w.values,V,ce)):Promise.resolve()}),ne=S.useCallback(function(V,ce){var pe=ce,_e=V,ue;if(!Jm(V)){V.persist&&V.persist();var ye=V.target?V.target:V.currentTarget,tt=ye.type,bt=ye.name,Gi=ye.id,bn=ye.value,Js=ye.checked;ye.outerHTML;var Br=ye.options,oa=ye.multiple;pe=ce||bt||Gi,_e=/number|range/.test(tt)?(ue=parseFloat(bn),isNaN(ue)?"":ue):/checkbox/.test(tt)?cz(Bn(w.values,pe),Js,bn):Br&&oa?uz(Br):bn}pe&&ae(pe,_e)},[ae,w.values]),se=lr(function(V){if(Jm(V))return function(ce){return ne(ce,V)};ne(V)}),Se=lr(function(V,ce,pe){ce===void 0&&(ce=!0),q({type:"SET_FIELD_TOUCHED",payload:{field:V,value:ce}});var _e=pe===void 0?s:pe;return _e?fe(w.values):Promise.resolve()}),me=S.useCallback(function(V,ce){V.persist&&V.persist();var pe=V.target,_e=pe.name,ue=pe.id;pe.outerHTML;var ye=ce||_e||ue;Se(ye,!0)},[Se]),dt=lr(function(V){if(Jm(V))return function(ce){return me(ce,V)};me(V)}),qe=S.useCallback(function(V){Tr(V)?q({type:"SET_FORMIK_STATE",payload:V}):q({type:"SET_FORMIK_STATE",payload:function(){return V}})},[]),Rt=S.useCallback(function(V){q({type:"SET_STATUS",payload:V})},[]),ut=S.useCallback(function(V){q({type:"SET_ISSUBMITTING",payload:V})},[]),wt=lr(function(){return q({type:"SUBMIT_ATTEMPT"}),fe().then(function(V){var ce=V instanceof Error,pe=!ce&&Object.keys(V).length===0;if(pe){var _e;try{if(_e=kt(),_e===void 0)return}catch(ue){throw ue}return Promise.resolve(_e).then(function(ue){return O.current&&q({type:"SUBMIT_SUCCESS"}),ue}).catch(function(ue){if(O.current)throw q({type:"SUBMIT_FAILURE"}),ue})}else if(O.current&&(q({type:"SUBMIT_FAILURE"}),ce))throw V})}),Wt=lr(function(V){V&&V.preventDefault&&Tr(V.preventDefault)&&V.preventDefault(),V&&V.stopPropagation&&Tr(V.stopPropagation)&&V.stopPropagation(),wt().catch(function(ce){console.warn("Warning: An unhandled error was caught from submitForm()",ce)})}),en={resetForm:xe,validateForm:fe,validateField:Te,setErrors:we,setFieldError:Y,setFieldTouched:Se,setFieldValue:ae,setStatus:Rt,setSubmitting:ut,setTouched:le,setValues:k,setFormikState:qe,submitForm:wt},kt=lr(function(){return v(w.values,en)}),at=lr(function(V){V&&V.preventDefault&&Tr(V.preventDefault)&&V.preventDefault(),V&&V.stopPropagation&&Tr(V.stopPropagation)&&V.stopPropagation(),xe()}),Rn=S.useCallback(function(V){return{value:Bn(w.values,V),error:Bn(w.errors,V),touched:!!Bn(w.touched,V),initialValue:Bn(_.current,V),initialTouched:!!Bn(A.current,V),initialError:Bn(x.current,V)}},[w.errors,w.touched,w.values]),At=S.useCallback(function(V){return{setValue:function(pe,_e){return ae(V,pe,_e)},setTouched:function(pe,_e){return Se(V,pe,_e)},setError:function(pe){return Y(V,pe)}}},[ae,Se,Y]),la=S.useCallback(function(V){var ce=ah(V),pe=ce?V.name:V,_e=Bn(w.values,pe),ue={name:pe,value:_e,onChange:se,onBlur:dt};if(ce){var ye=V.type,tt=V.value,bt=V.as,Gi=V.multiple;ye==="checkbox"?tt===void 0?ue.checked=!!_e:(ue.checked=!!(Array.isArray(_e)&&~_e.indexOf(tt)),ue.value=tt):ye==="radio"?(ue.checked=_e===tt,ue.value=tt):bt==="select"&&Gi&&(ue.value=ue.value||[],ue.multiple=!0)}return ue},[dt,se,w.values]),Xn=S.useMemo(function(){return!vs(_.current,w.values)},[_.current,w.values]),ln=S.useMemo(function(){return typeof h<"u"?Xn?w.errors&&Object.keys(w.errors).length===0:h!==!1&&Tr(h)?h(y):h:w.errors&&Object.keys(w.errors).length===0},[h,Xn,w.errors,y]),hn=Xt({},w,{initialValues:_.current,initialErrors:x.current,initialTouched:A.current,initialStatus:N.current,handleBlur:dt,handleChange:se,handleReset:at,handleSubmit:Wt,resetForm:xe,setErrors:we,setFormikState:qe,setFieldTouched:Se,setFieldValue:ae,setFieldError:Y,setStatus:Rt,setSubmitting:ut,setTouched:le,setValues:k,submitForm:wt,validateForm:fe,validateField:Te,isValid:ln,dirty:Xn,unregisterField:te,registerField:L,getFieldProps:la,getFieldMeta:Rn,getFieldHelpers:At,validateOnBlur:s,validateOnChange:n,validateOnMount:c});return hn}function sz(e){var t={};if(e.inner){if(e.inner.length===0)return Cs(t,e.path,e.message);for(var s=e.inner,n=Array.isArray(s),a=0,s=n?s:s[Symbol.iterator]();;){var o;if(n){if(a>=s.length)break;o=s[a++]}else{if(a=s.next(),a.done)break;o=a.value}var c=o;Bn(t,c.path)||(t=Cs(t,c.path,c.message))}}return t}function lz(e,t,n,a){n===void 0&&(n=!1);var s=Pv(e);return t[n?"validateSync":"validate"](s,{abortEarly:!1,context:s})}function Pv(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=String(n);Array.isArray(e[a])===!0?t[a]=e[a].map(function(s){return Array.isArray(s)===!0||Z_(s)?Pv(s):s!==""?s:void 0}):Z_(e[a])?t[a]=Pv(e[a]):t[a]=e[a]!==""?e[a]:void 0}return t}function oz(e,t,n){var a=e.slice();return t.forEach(function(o,c){if(typeof a[c]>"u"){var h=n.clone!==!1,d=h&&n.isMergeableObject(o);a[c]=d?Iv(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?a[c]=Iv(e[c],o,n):e.indexOf(o)===-1&&a.push(o)}),a}function uz(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function cz(e,t,n){if(typeof e=="boolean")return!!t;var a=[],s=!1,o=-1;if(Array.isArray(e))a=e,o=e.indexOf(n),s=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!s?a.concat(n):s?a.slice(0,o).concat(a.slice(o+1)):a}var fz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function lr(e){var t=S.useRef(e);return fz(function(){t.current=e}),S.useCallback(function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.current.apply(void 0,a)},[])}var dz=S.forwardRef(function(e,t){var n=e.action,a=B1(e,["action"]),s=n??"#",o=rz(),c=o.handleReset,h=o.handleSubmit;return S.createElement("form",Xt({onSubmit:h,ref:t,onReset:c,action:s},a))});dz.displayName="Form";var ev,wx;function hz(){if(wx)return ev;wx=1;function e(O){this._maxSize=O,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(O){return this._values[O]},e.prototype.set=function(O,R){return this._size>=this._maxSize&&this.clear(),O in this._values||this._size++,this._values[O]=R};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,c=512,h=new e(c),d=new e(c),p=new e(c);ev={Cache:e,split:b,normalizePath:v,setter:function(O){var R=v(O);return d.get(O)||d.set(O,function(U,C){for(var w=0,q=R.length,re=U;w<q-1;){var Q=R[w];if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return U;re=re[R[w++]]}re[R[w]]=C})},getter:function(O,R){var D=v(O);return p.get(O)||p.set(O,function(C){for(var w=0,q=D.length;w<q;)if(C!=null||!R)C=C[D[w++]];else return;return C})},join:function(O){return O.reduce(function(R,D){return R+(_(D)||n.test(D)?"["+D+"]":(R?".":"")+D)},"")},forEach:function(O,R,D){y(Array.isArray(O)?O:b(O),R,D)}};function v(O){return h.get(O)||h.set(O,b(O).map(function(R){return R.replace(o,"$2")}))}function b(O){return O.match(t)||[""]}function y(O,R,D){var U=O.length,C,w,q,re;for(w=0;w<U;w++)C=O[w],C&&(N(C)&&(C='"'+C+'"'),re=_(C),q=!re&&/^\d+$/.test(C),R.call(D,C,re,q,w,O))}function _(O){return typeof O=="string"&&O&&["'",'"'].indexOf(O.charAt(0))!==-1}function x(O){return O.match(a)&&!O.match(n)}function A(O){return s.test(O)}function N(O){return!_(O)&&(x(O)||A(O))}return ev}var Rs=hz(),tv,Ax;function pz(){if(Ax)return tv;Ax=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=v=>v.match(e)||[],n=v=>v[0].toUpperCase()+v.slice(1),a=(v,b)=>t(v).join(b).toLowerCase(),s=v=>t(v).reduce((b,y)=>`${b}${b?y[0].toUpperCase()+y.slice(1).toLowerCase():y.toLowerCase()}`,"");return tv={words:t,upperFirst:n,camelCase:s,pascalCase:v=>n(s(v)),snakeCase:v=>a(v,"_"),kebabCase:v=>a(v,"-"),sentenceCase:v=>n(a(v," ")),titleCase:v=>t(v).map(n).join(" ")},tv}var nv=pz(),Pf={exports:{}},Nx;function mz(){if(Nx)return Pf.exports;Nx=1,Pf.exports=function(s){return e(t(s),s)},Pf.exports.array=e;function e(s,o){var c=s.length,h=new Array(c),d={},p=c,v=n(o),b=a(s);for(o.forEach(function(_){if(!b.has(_[0])||!b.has(_[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});p--;)d[p]||y(s[p],p,new Set);return h;function y(_,x,A){if(A.has(_)){var N;try{N=", node was:"+JSON.stringify(_)}catch{N=""}throw new Error("Cyclic dependency"+N)}if(!b.has(_))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(_));if(!d[x]){d[x]=!0;var O=v.get(_)||new Set;if(O=Array.from(O),x=O.length){A.add(_);do{var R=O[--x];y(R,b.get(R),A)}while(x);A.delete(_)}h[--c]=_}}}function t(s){for(var o=new Set,c=0,h=s.length;c<h;c++){var d=s[c];o.add(d[0]),o.add(d[1])}return Array.from(o)}function n(s){for(var o=new Map,c=0,h=s.length;c<h;c++){var d=s[c];o.has(d[0])||o.set(d[0],new Set),o.has(d[1])||o.set(d[1],new Set),o.get(d[0]).add(d[1])}return o}function a(s){for(var o=new Map,c=0,h=s.length;c<h;c++)o.set(s[c],c);return o}return Pf.exports}var vz=mz();const yz=Bs(vz),gz=Object.prototype.toString,bz=Error.prototype.toString,Sz=RegExp.prototype.toString,Ez=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",_z=/^Symbol\((.*)\)(.*)$/;function xz(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Cx(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return xz(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Ez.call(e).replace(_z,"Symbol($1)");const a=gz.call(e).slice(8,-1);return a==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):a==="Error"||e instanceof Error?"["+bz.call(e)+"]":a==="RegExp"?Sz.call(e):null}function Ri(e,t){let n=Cx(e,t);return n!==null?n:JSON.stringify(e,function(a,s){let o=Cx(this[a],t);return o!==null?o:s},2)}function I1(e){return e==null?[]:[].concat(e)}let z1,q1,V1,Oz=/\$\{\s*(\w+)\s*\}/g;z1=Symbol.toStringTag;let Rx=class{constructor(t,n,a,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[z1]="Error",this.name="ValidationError",this.value=n,this.path=a,this.type=s,this.errors=[],this.inner=[],I1(t).forEach(o=>{if(zn.isError(o)){this.errors.push(...o.errors);const c=o.inner.length?o.inner:[o];this.inner.push(...c)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};q1=Symbol.hasInstance;V1=Symbol.toStringTag;let zn=class H1 extends Error{static formatError(t,n){const a=n.label||n.path||"this";return n=Object.assign({},n,{path:a,originalPath:n.path}),typeof t=="string"?t.replace(Oz,(s,o)=>Ri(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,a,s,o){const c=new Rx(t,n,a,s);if(o)return c;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[V1]="Error",this.name=c.name,this.message=c.message,this.type=c.type,this.value=c.value,this.path=c.path,this.errors=c.errors,this.inner=c.inner,Error.captureStackTrace&&Error.captureStackTrace(this,H1)}static[q1](t){return Rx[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}},Pr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:a})=>{const s=a!=null&&a!==n?` (cast from the value \`${Ri(a,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ri(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Ri(n,!0)}\``+s}},wn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ei={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Gv={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Tz={isValue:"${path} field must be ${value}"},sd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},wz={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Az={notType:e=>{const{path:t,value:n,spec:a}=e,s=a.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Ri(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Ri(n,!0)}\``}return zn.formatError(Pr.notType,e)}};Object.assign(Object.create(null),{mixed:Pr,string:wn,number:Ei,date:Gv,object:sd,array:wz,boolean:Tz,tuple:Az});const pg=e=>e&&e.__isYupSchema__;let Dx=class P1{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:a,then:s,otherwise:o}=n,c=typeof a=="function"?a:(...h)=>h.every(d=>d===a);return new P1(t,(h,d)=>{var p;let v=c(...h)?s:o;return(p=v==null?void 0:v(d))!=null?p:d})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let a=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(a,t,n);if(s===void 0||s===t)return t;if(!pg(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}};const Gf={context:"$",value:"."};let Zs=class{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Gf.context,this.isValue=this.key[0]===Gf.value,this.isSibling=!this.isContext&&!this.isValue;let a=this.isContext?Gf.context:this.isValue?Gf.value:"";this.path=this.key.slice(a.length),this.getter=this.path&&Rs.getter(this.path,!0),this.map=n.map}getValue(t,n,a){let s=this.isContext?a:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}};Zs.prototype.__isYupRef=!0;const Ua=e=>e==null;function Fl(e){function t({value:n,path:a="",options:s,originalValue:o,schema:c},h,d){const{name:p,test:v,params:b,message:y,skipAbsent:_}=e;let{parent:x,context:A,abortEarly:N=c.spec.abortEarly,disableStackTrace:O=c.spec.disableStackTrace}=s;const R={value:n,parent:x,context:A};function D(ie={}){const Re=G1(Object.assign({value:n,originalValue:o,label:c.spec.label,path:ie.path||a,spec:c.spec,disableStackTrace:ie.disableStackTrace||O},b,ie.params),R),fe=new zn(zn.formatError(ie.message||y,Re),n,Re.path,ie.type||p,Re.disableStackTrace);return fe.params=Re,fe}const U=N?h:d;let C={path:a,parent:x,type:p,from:s.from,createError:D,resolve(ie){return Y1(ie,R)},options:s,originalValue:o,schema:c};const w=ie=>{zn.isError(ie)?U(ie):ie?d(null):U(D())},q=ie=>{zn.isError(ie)?U(ie):h(ie)};if(_&&Ua(n))return w(!0);let Q;try{var he;if(Q=v.call(C,n,C),typeof((he=Q)==null?void 0:he.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Q).then(w,q)}}catch(ie){q(ie);return}w(Q)}return t.OPTIONS=e,t}function G1(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=Y1(e[n],t);return e}function Y1(e,t){return Zs.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Nz(e,t,n,a=n){let s,o,c;return t?(Rs.forEach(t,(h,d,p)=>{let v=d?h.slice(1,h.length-1):h;e=e.resolve({context:a,parent:s,value:n});let b=e.type==="tuple",y=p?parseInt(v,10):0;if(e.innerType||b){if(b&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${c}" must contain an index to the tuple element, e.g. "${c}[0]"`);if(n&&y>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${h}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[y],e=b?e.spec.types[y]:e.innerType}if(!p){if(!e.fields||!e.fields[v])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${c} which is a type: "${e.type}")`);s=n,n=n&&n[v],e=e.fields[v]}o=v,c=d?"["+h+"]":"."+h}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}let jx=class K1 extends Set{describe(){const t=[];for(const n of this.values())t.push(Zs.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const a of this.values())n.push(t(a));return n}clone(){return new K1(this.values())}merge(t,n){const a=this.clone();return t.forEach(s=>a.add(s)),n.forEach(s=>a.delete(s)),a}};function Pl(e,t=new Map){if(pg(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let a=0;a<e.length;a++)n[a]=Pl(e[a],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[a,s]of e.entries())n.set(a,Pl(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const a of e)n.add(Pl(a,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[a,s]of Object.entries(e))n[a]=Pl(s,t)}else throw Error(`Unable to clone ${e}`);return n}function Cz(e){if(!(e!=null&&e.length))return;const t=[];let n="",a=!1,s=!1;for(let o=0;o<e.length;o++){const c=e[o];if(c==="["&&!s){n&&(t.push(...n.split(".").filter(Boolean)),n=""),a=!0;continue}if(c==="]"&&!s){n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),a=!1;continue}if(c==='"'){s=!s;continue}if(c==="."&&!a&&!s){n&&(t.push(n),n="");continue}n+=c}return n&&t.push(...n.split(".").filter(Boolean)),t}function Rz(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(a=>({message:a,path:Cz(n)}))}function Q1(e,t){var n;if(!((n=e.inner)!=null&&n.length)&&e.errors.length)return Rz(e,t);const a=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(s=>Q1(s,a))}let Mr=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new jx,this._blacklist=new jx,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Pr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Pl(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let a=t(this);return this._mutate=n,a}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,a=t.clone();const s=Object.assign({},n.spec,a.spec);return a.spec=s,a.internalTests=Object.assign({},n.internalTests,a.internalTests),a._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),a._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),a.tests=n.tests,a.exclusiveTests=n.exclusiveTests,a.withMutation(o=>{t.tests.forEach(c=>{o.test(c.OPTIONS)})}),a.transforms=[...n.transforms,...a.transforms],a}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let a=n.conditions;n=n.clone(),n.conditions=[],n=a.reduce((s,o)=>o.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,a,s,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(a=t.abortEarly)!=null?a:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let a=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",o=a._cast(t,n);if(n.assert!==!1&&!a.isType(o)){if(s&&Ua(o))return o;let c=Ri(t),h=Ri(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${a.type}".
|
|
163
163
|
|
|
164
164
|
attempted value: ${c}
|
|
165
|
-
`+(h!==c?`result of cast: ${h}`:""))}return o}_cast(t,n){let a=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return a===void 0&&(a=this.getDefault(n)),a}_validate(t,n={},a,s){let{path:o,originalValue:c=t,strict:h=this.spec.strict}=n,d=t;h||(d=this._cast(d,Object.assign({assert:!1},n)));let p=[];for(let v of Object.values(this.internalTests))v&&p.push(v);this.runTests({path:o,value:d,originalValue:c,options:n,tests:p},a,v=>{if(v.length)return s(v,d);this.runTests({path:o,value:d,originalValue:c,options:n,tests:this.tests},a,s)})}runTests(t,n,a){let s=!1,{tests:o,value:c,originalValue:h,path:d,options:p}=t,v=A=>{s||(s=!0,n(A,c))},b=A=>{s||(s=!0,a(A,c))},y=o.length,_=[];if(!y)return b([]);let x={value:c,originalValue:h,path:d,options:p,schema:this};for(let A=0;A<o.length;A++){const N=o[A];N(x,v,function(R){R&&(Array.isArray(R)?_.push(...R):_.push(R)),--y<=0&&b(_)})}}asNestedTest({key:t,index:n,parent:a,parentPath:s,originalParent:o,options:c}){const h=t??n;if(h==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof h=="number";let p=a[h];const v=Object.assign({},c,{strict:!0,parent:a,value:p,originalValue:o[h],key:void 0,[d?"index":"key"]:h,path:d||h.includes(".")?`${s||""}[${d?h:`"${h}"`}]`:(s?`${s}.`:"")+t});return(b,y,_)=>this.resolve(v)._validate(p,v,y,_)}validate(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return new Promise((c,h)=>s._validate(t,n,(d,p)=>{ur.isError(d)&&(d.value=p),h(d)},(d,p)=>{d.length?h(new ur(d,p,void 0,void 0,o)):c(p)}))}validateSync(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o,c=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(h,d)=>{throw ur.isError(h)&&(h.value=d),h},(h,d)=>{if(h.length)throw new ur(h,t,void 0,void 0,c);o=d}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,a=>{if(ur.isError(a))return!1;throw a})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(a){if(ur.isError(a))return!1;throw a}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Pl(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const a=this.clone({nullable:t});return a.internalTests.nullable=Fl({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),a}optionality(t,n){const a=this.clone({optional:t});return a.internalTests.optionality=Fl({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),a}optional(){return this.optionality(!0)}defined(t=Pr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Pr.notNull){return this.nullability(!1,t)}required(t=Pr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Pr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let a=this.clone(),s=Fl(n),o=n.exclusive||n.name&&a.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(a.exclusiveTests[n.name]=!!n.exclusive),a.tests=a.tests.filter(c=>!(c.OPTIONS.name===n.name&&(o||c.OPTIONS.test===s.OPTIONS.test))),a.tests.push(s),a}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let a=this.clone(),s=I1(t).map(o=>new Zs(o));return s.forEach(o=>{o.isSibling&&a.deps.push(o.key)}),a.conditions.push(typeof n=="function"?new Dx(s,n):Dx.fromOptions(s,n)),a}typeError(t){let n=this.clone();return n.internalTests.typeError=Fl({message:t,name:"typeError",skipAbsent:!0,test(a){return this.schema._typeCheck(a)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Pr.oneOf){let a=this.clone();return t.forEach(s=>{a._whitelist.add(s),a._blacklist.delete(s)}),a.internalTests.whiteList=Fl({message:n,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,c=o.resolveAll(this.resolve);return c.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:c}})}}),a}notOneOf(t,n=Pr.notOneOf){let a=this.clone();return t.forEach(s=>{a._blacklist.add(s),a._whitelist.delete(s)}),a.internalTests.blacklist=Fl({message:n,name:"notOneOf",test(s){let o=this.schema._blacklist,c=o.resolveAll(this.resolve);return c.includes(s)?this.createError({params:{values:Array.from(o).join(", "),resolved:c}}):!0}}),a}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:a,meta:s,optional:o,nullable:c}=n.spec;return{meta:s,label:a,optional:o,nullable:c,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(d=>({name:d.OPTIONS.name,params:d.OPTIONS.params})).filter((d,p,v)=>v.findIndex(b=>b.name===d.name)===p)}}};Mr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Mr.prototype[`${e}At`]=function(t,n,a={}){const{parent:s,parentPath:o,schema:c}=_z(this,t,n,a.context);return c[e](s&&s[o],Object.assign({},a,{parent:s,path:t}))};for(const e of["equals","is"])Mr.prototype[e]=Mr.prototype.oneOf;for(const e of["not","nope"])Mr.prototype[e]=Mr.prototype.notOneOf;const xz=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Oz(e){const t=Yv(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Yv(e){var t,n;const a=xz.exec(e);return a?{year:wa(a[1]),month:wa(a[2],1)-1,day:wa(a[3],1),hour:wa(a[4]),minute:wa(a[5]),second:wa(a[6]),millisecond:a[7]?wa(a[7].substring(0,3)):0,precision:(t=(n=a[7])==null?void 0:n.length)!=null?t:void 0,z:a[8]||void 0,plusMinus:a[9]||void 0,hourOffset:wa(a[10]),minuteOffset:wa(a[11])}:null}function wa(e,t=0){return Number(e)||t}let Tz=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,wz=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Az=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Nz="^\\d{4}-\\d{2}-\\d{2}",Cz="\\d{2}:\\d{2}:\\d{2}",Rz="(([+-]\\d{2}(:?\\d{2})?)|Z)",Dz=new RegExp(`${Nz}T${Cz}(\\.\\d+)?${Rz}$`),jz=e=>Ua(e)||e===e.trim(),kz={}.toString();function sh(){return new Y1}let Y1=class extends Mr{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce||a.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===kz?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Pr.required,name:"required",skipAbsent:!0,test:a=>!!a.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Tn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(a){return a.length===this.resolve(t)}})}min(t,n=Tn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a.length>=this.resolve(t)}})}max(t,n=Tn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(a){return a.length<=this.resolve(t)}})}matches(t,n){let a=!1,s,o;return n&&(typeof n=="object"?{excludeEmptyString:a=!1,message:s,name:o}=n:s=n),this.test({name:o||"matches",message:s||Tn.matches,params:{regex:t},skipAbsent:!0,test:c=>c===""&&a||c.search(t)!==-1})}email(t=Tn.email){return this.matches(Tz,{name:"email",message:t,excludeEmptyString:!0})}url(t=Tn.url){return this.matches(wz,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Tn.uuid){return this.matches(Az,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",a,s;return t&&(typeof t=="object"?{message:n="",allowOffset:a=!1,precision:s=void 0}=t:n=t),this.matches(Dz,{name:"datetime",message:n||Tn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Tn.datetime_offset,params:{allowOffset:a},skipAbsent:!0,test:o=>{if(!o||a)return!0;const c=Yv(o);return c?!!c.z:!1}}).test({name:"datetime_precision",message:n||Tn.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const c=Yv(o);return c?c.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Tn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:jz})}lowercase(t=Tn.lowercase){return this.transform(n=>Ua(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ua(n)||n===n.toLowerCase()})}uppercase(t=Tn.uppercase){return this.transform(n=>Ua(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ua(n)||n===n.toUpperCase()})}};sh.prototype=Y1.prototype;let Mz=e=>e!=+e;function K1(){return new Q1}class Q1 extends Mr{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Mz(t)}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return a.isType(s)||s===null?s:parseFloat(s)})})}min(t,n=Ei.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(t)}})}max(t,n=Ei.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(t)}})}lessThan(t,n=Ei.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(a){return a<this.resolve(t)}})}moreThan(t,n=Ei.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(a){return a>this.resolve(t)}})}positive(t=Ei.positive){return this.moreThan(0,t)}negative(t=Ei.negative){return this.lessThan(0,t)}integer(t=Ei.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Ua(t)?t:t|0)}round(t){var n;let a=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(a.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+a.join(", "));return this.transform(s=>Ua(s)?s:Math[t](s))}}K1.prototype=Q1.prototype;let Uz=new Date(""),$z=e=>Object.prototype.toString.call(e)==="[object Date]",Lz=class X1 extends Mr{constructor(){super({type:"date",check(t){return $z(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,a)=>!a.spec.coerce||a.isType(t)||t===null?t:(t=Oz(t),isNaN(t)?X1.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let a;if(Zs.isRef(t))a=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);a=s}return a}min(t,n=Gv.min){let a=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(a)}})}max(t,n=Gv.max){let a=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(a)}})}};Lz.INVALID_DATE=Uz;function Bz(e,t=[]){let n=[],a=new Set,s=new Set(t.map(([c,h])=>`${c}-${h}`));function o(c,h){let d=Rs.split(c)[0];a.add(d),s.has(`${h}-${d}`)||n.push([h,d])}for(const c of Object.keys(e)){let h=e[c];a.add(c),Zs.isRef(h)&&h.isSibling?o(h.path,c):pg(h)&&"deps"in h&&h.deps.forEach(d=>o(d,c))}return fz.array(Array.from(a),n).reverse()}function kx(e,t){let n=1/0;return e.some((a,s)=>{var o;if((o=t.path)!=null&&o.includes(a))return n=s,!0}),n}function Z1(e){return(t,n)=>kx(e,t)-kx(e,n)}const Fz=(e,t,n)=>{if(typeof e!="string")return e;let a=e;try{a=JSON.parse(e)}catch{}return n.isType(a)?a:e};function ld(e){if("fields"in e){const t={};for(const[n,a]of Object.entries(e.fields))t[n]=ld(a);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ld(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ld)}):"optional"in e?e.optional():e}const Iz=(e,t)=>{const n=[...Rs.normalizePath(t)];if(n.length===1)return n[0]in e;let a=n.pop(),s=Rs.getter(Rs.join(n),!0)(e);return!!(s&&a in s)};let Mx=e=>Object.prototype.toString.call(e)==="[object Object]";function Ux(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(a=>n.indexOf(a)===-1)}const zz=Z1([]);function gc(e){return new J1(e)}class J1 extends Mr{constructor(t){super({type:"object",check(n){return Mx(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=zz,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var a;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let o=this.fields,c=(a=n.stripUnknown)!=null?a:this.spec.noUnknown,h=[].concat(this._nodes,Object.keys(s).filter(b=>!this._nodes.includes(b))),d={},p=Object.assign({},n,{parent:d,__validating:n.__validating||!1}),v=!1;for(const b of h){let y=o[b],_=b in s;if(y){let x,A=s[b];p.path=(n.path?`${n.path}.`:"")+b,y=y.resolve({value:A,context:n.context,parent:d});let N=y instanceof Mr?y.spec:void 0,O=N==null?void 0:N.strict;if(N!=null&&N.strip){v=v||b in s;continue}x=!n.__validating||!O?y.cast(s[b],p):s[b],x!==void 0&&(d[b]=x)}else _&&!c&&(d[b]=s[b]);(_!==b in d||d[b]!==s[b])&&(v=!0)}return v?d:s}_validate(t,n={},a,s){let{from:o=[],originalValue:c=t,recursive:h=this.spec.recursive}=n;n.from=[{schema:this,value:c},...o],n.__validating=!0,n.originalValue=c,super._validate(t,n,a,(d,p)=>{if(!h||!Mx(p)){s(d,p);return}c=c||p;let v=[];for(let b of this._nodes){let y=this.fields[b];!y||Zs.isRef(y)||v.push(y.asNestedTest({options:n,key:b,parent:p,parentPath:n.path,originalParent:c}))}this.runTests({tests:v,value:p,originalValue:c,options:n},a,b=>{s(b.sort(this._sortErrors).concat(d),p)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),a=n.fields;for(let[s,o]of Object.entries(this.fields)){const c=a[s];a[s]=c===void 0?o:c}return n.withMutation(s=>s.setFields(a,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(a=>{var s;const o=this.fields[a];let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),n[a]=o&&"getDefault"in o?o.getDefault(c):void 0}),n}setFields(t,n){let a=this.clone();return a.fields=t,a._nodes=Bz(t,n),a._sortErrors=Z1(Object.keys(t)),n&&(a._excludedEdges=n),a}shape(t,n=[]){return this.clone().withMutation(a=>{let s=a._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...a._excludedEdges,...n]),a.setFields(Object.assign(a.fields,t),s)})}partial(){const t={};for(const[n,a]of Object.entries(this.fields))t[n]="optional"in a&&a.optional instanceof Function?a.optional():a;return this.setFields(t)}deepPartial(){return ld(this)}pick(t){const n={};for(const a of t)this.fields[a]&&(n[a]=this.fields[a]);return this.setFields(n,this._excludedEdges.filter(([a,s])=>t.includes(a)&&t.includes(s)))}omit(t){const n=[];for(const a of Object.keys(this.fields))t.includes(a)||n.push(a);return this.pick(n)}from(t,n,a){let s=Rs.getter(t,!0);return this.transform(o=>{if(!o)return o;let c=o;return Iz(o,t)&&(c=Object.assign({},o),a||delete c[t],c[n]=s(o)),c})}json(){return this.transform(Fz)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||sd.exact,test(n){if(n==null)return!0;const a=Ux(this.schema,n);return a.length===0||this.createError({params:{properties:a.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=sd.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let a=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const o=Ux(this.schema,s);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return a.spec.noUnknown=t,a}unknown(t=!0,n=sd.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const a={};for(const s of Object.keys(n))a[t(s)]=n[s];return a})}camelCase(){return this.transformKeys(nv.camelCase)}snakeCase(){return this.transformKeys(nv.snakeCase)}constantCase(){return this.transformKeys(t=>nv.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),a=super.describe(t);a.fields={};for(const[o,c]of Object.entries(n.fields)){var s;let h=t;(s=h)!=null&&s.value&&(h=Object.assign({},h,{parent:h.value,value:h.value[o]})),a.fields[o]=c.describe(h)}return a}}gc.prototype=J1.prototype;var qz=["color","size","title","className"];function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Kv.apply(null,arguments)}function Vz(e,t){if(e==null)return{};var n,a,s=Hz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function Hz(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var Qv=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=Vz(e,qz);return mt.createElement("svg",Kv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-box-arrow-up-right",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{fillRule:"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),mt.createElement("path",{fillRule:"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"}))});Qv.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var Pz=["color","size","title","className"];function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xv.apply(null,arguments)}function Gz(e,t){if(e==null)return{};var n,a,s=Yz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function Yz(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var Zv=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=Gz(e,Pz);return mt.createElement("svg",Xv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-check-lg",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"}))});Zv.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var Kz=["color","size","title","className"];function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Jv.apply(null,arguments)}function Qz(e,t){if(e==null)return{};var n,a,s=Xz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function Xz(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var W1=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=Qz(e,Kz);return mt.createElement("svg",Jv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-clipboard",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"}),mt.createElement("path",{d:"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"}))});W1.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var Zz=["color","size","title","className"];function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Wv.apply(null,arguments)}function Jz(e,t){if(e==null)return{};var n,a,s=Wz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function Wz(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var mg=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=Jz(e,Zz);return mt.createElement("svg",Wv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-info-circle",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),mt.createElement("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"}))});mg.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var e4=["color","size","title","className"];function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ey.apply(null,arguments)}function t4(e,t){if(e==null)return{};var n,a,s=n4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function n4(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var ty=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=t4(e,e4);return mt.createElement("svg",ey({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-x-lg",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"}))});ty.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};const r4=Gt(()=>{const e=sn();return S.useEffect(()=>{const t=localStorage.getItem("api_key");t&&e.login(t)},[e]),e.loggingIn||!e.loggedIn||e.loginError?g.jsx(l4,{}):g.jsxs(dc,{fluid:!0,children:[g.jsx(PL,{}),g.jsx(YL,{}),!1]})}),a4=({show:e,onHide:t})=>g.jsxs(Pt,{show:e,onHide:t,children:[g.jsx(Pt.Header,{closeButton:!0,children:g.jsx(Pt.Title,{children:"Where do I get an API key?"})}),g.jsxs(Pt.Body,{children:[g.jsx("p",{children:"Generate an API key from the database:"}),g.jsx("pre",{children:"INSERT INTO hub.api_key DEFAULT VALUES RETURNING key;"})]})]}),i4=gc().shape({apiKey:sh().uuid().required()}),s4={apiKey:""},l4=Gt(()=>{const e=sn(),[t,n]=S.useState(!1),a=ih({initialValues:s4,validationSchema:i4,onSubmit:async(o,{setSubmitting:c,setStatus:h})=>{h(null),e.login(o.apiKey).then(d=>{d||(localStorage.removeItem("api_key"),h("Invalid API key"))}).finally(()=>{c(!1)})}}),s=e.loggingIn||a.isSubmitting;return g.jsxs(dc,{children:[g.jsx(a4,{show:t,onHide:()=>n(!1)}),g.jsx(ag,{className:"justify-content-md-center align-items-center",style:{height:"100vh"},children:g.jsxs(Xd,{lg:6,children:[a.status&&g.jsx(vr,{variant:"danger",className:"mb-3",dismissible:!0,onClose:()=>a.setStatus(null),children:a.status}),e.loginError&&g.jsx(vr,{variant:"danger",children:Kn(e.loginError)}),g.jsx(He,{onSubmit:a.handleSubmit,children:g.jsx("fieldset",{disabled:s,children:g.jsxs(Ql,{children:[g.jsx(Ql.Body,{children:g.jsxs(He.Group,{children:[g.jsxs(He.Label,{children:["API Key",g.jsx(mg,{className:"ms-1",style:{cursor:"pointer"},onClick:()=>{n(!0)}})]}),g.jsx(He.Control,{type:"text",name:"apiKey",value:a.values.apiKey,onChange:a.handleChange,onBlur:a.handleBlur,placeholder:"Ex: 00000000-0000-0000-0000-000000000000",isInvalid:a.touched.apiKey&&!!a.errors.apiKey,isValid:a.touched.apiKey&&!a.errors.apiKey}),g.jsx(He.Control.Feedback,{type:"invalid",children:a.errors.apiKey})]})}),g.jsx(Ql.Footer,{className:"d-flex justify-content-end",children:g.jsx(Jt,{type:"submit",disabled:s,children:s?"Authenticating...":"Authenticate"})})]})})})]})})]})}),aa=()=>g.jsx("div",{children:g.jsx("h1",{children:"Not found"})}),$x=e=>{const t=mO();switch(t&&console.error(t),e.status||(t==null?void 0:t.status)){case 404:return g.jsx(aa,{});case 401:return g.jsxs("div",{children:[g.jsx("h1",{children:"Unauthorized"}),g.jsx("p",{children:"You don't have permission to do that."})]});default:return g.jsxs(dc,{children:[g.jsx("h1",{children:"Unexpected error"}),g.jsx("p",{children:(t==null?void 0:t.statusText)||Kn(t)}),g.jsx(Jt,{onClick:()=>{window.history.back()},children:"Go back"})]})}},o4={short:{justNow:"<1min ago",minute:"min ago",hour:"hr ago",day:"d ago"},long:{justNow:"<1 minute ago",minute:" minute[s] ago",hour:" hour[s] ago",day:" day[s] ago"}};function u4(e,t,n=new Date){const a=n.getTime()-e.getTime(),s=o4[t],o=Math.floor(a/1e3);if(o<60)return s.justNow;const c=Math.floor(o/60);if(c<60)return`${c}${s.minute.replace("[s]",c>1?"s":"")}`;const h=Math.floor(c/60);if(h<24)return`${h}${s.hour.replace("[s]",h>1?"s":"")}`;const d=Math.floor(h/24);return`${d}${s.day.replace("[s]",d>1?"s":"")}`}const c4={whiteSpace:"nowrap",cursor:"help",textDecoration:"underline dotted"},Va=({date:e,variant:t})=>{typeof e=="string"&&(e=new Date(e));const n=jM(e);return g.jsx(u1,{placement:"top",overlay:g.jsx(ng,{children:n}),trigger:["hover","click","focus"],children:g.jsx("time",{dateTime:e.toISOString(),style:c4,children:u4(e,t)})})};var rv,Lx;function f4(){if(Lx)return rv;Lx=1;function e(O){this._maxSize=O,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(O){return this._values[O]},e.prototype.set=function(O,R){return this._size>=this._maxSize&&this.clear(),O in this._values||this._size++,this._values[O]=R};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,c=512,h=new e(c),d=new e(c),p=new e(c);rv={Cache:e,split:b,normalizePath:v,setter:function(O){var R=v(O);return d.get(O)||d.set(O,function(U,C){for(var w=0,q=R.length,re=U;w<q-1;){var Q=R[w];if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return U;re=re[R[w++]]}re[R[w]]=C})},getter:function(O,R){var D=v(O);return p.get(O)||p.set(O,function(C){for(var w=0,q=D.length;w<q;)if(C!=null||!R)C=C[D[w++]];else return;return C})},join:function(O){return O.reduce(function(R,D){return R+(_(D)||n.test(D)?"["+D+"]":(R?".":"")+D)},"")},forEach:function(O,R,D){y(Array.isArray(O)?O:b(O),R,D)}};function v(O){return h.get(O)||h.set(O,b(O).map(function(R){return R.replace(o,"$2")}))}function b(O){return O.match(t)||[""]}function y(O,R,D){var U=O.length,C,w,q,re;for(w=0;w<U;w++)C=O[w],C&&(N(C)&&(C='"'+C+'"'),re=_(C),q=!re&&/^\d+$/.test(C),R.call(D,C,re,q,w,O))}function _(O){return typeof O=="string"&&O&&["'",'"'].indexOf(O.charAt(0))!==-1}function x(O){return O.match(a)&&!O.match(n)}function A(O){return s.test(O)}function N(O){return!_(O)&&(x(O)||A(O))}return rv}var eA=f4(),Yf={exports:{}},Bx;function d4(){if(Bx)return Yf.exports;Bx=1,Yf.exports=function(s){return e(t(s),s)},Yf.exports.array=e;function e(s,o){var c=s.length,h=new Array(c),d={},p=c,v=n(o),b=a(s);for(o.forEach(function(_){if(!b.has(_[0])||!b.has(_[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});p--;)d[p]||y(s[p],p,new Set);return h;function y(_,x,A){if(A.has(_)){var N;try{N=", node was:"+JSON.stringify(_)}catch{N=""}throw new Error("Cyclic dependency"+N)}if(!b.has(_))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(_));if(!d[x]){d[x]=!0;var O=v.get(_)||new Set;if(O=Array.from(O),x=O.length){A.add(_);do{var R=O[--x];y(R,b.get(R),A)}while(x);A.delete(_)}h[--c]=_}}}function t(s){for(var o=new Set,c=0,h=s.length;c<h;c++){var d=s[c];o.add(d[0]),o.add(d[1])}return Array.from(o)}function n(s){for(var o=new Map,c=0,h=s.length;c<h;c++){var d=s[c];o.has(d[0])||o.set(d[0],new Set),o.has(d[1])||o.set(d[1],new Set),o.get(d[0]).add(d[1])}return o}function a(s){for(var o=new Map,c=0,h=s.length;c<h;c++)o.set(s[c],c);return o}return Yf.exports}d4();const h4=Object.prototype.toString,p4=Error.prototype.toString,m4=RegExp.prototype.toString,v4=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",y4=/^Symbol\((.*)\)(.*)$/;function g4(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Fx(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return g4(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return v4.call(e).replace(y4,"Symbol($1)");const a=h4.call(e).slice(8,-1);return a==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):a==="Error"||e instanceof Error?"["+p4.call(e)+"]":a==="RegExp"?m4.call(e):null}function Di(e,t){let n=Fx(e,t);return n!==null?n:JSON.stringify(e,function(a,s){let o=Fx(this[a],t);return o!==null?o:s},2)}function tA(e){return e==null?[]:[].concat(e)}let nA,rA,aA,b4=/\$\{\s*(\w+)\s*\}/g;nA=Symbol.toStringTag;class Ix{constructor(t,n,a,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[nA]="Error",this.name="ValidationError",this.value=n,this.path=a,this.type=s,this.errors=[],this.inner=[],tA(t).forEach(o=>{if(An.isError(o)){this.errors.push(...o.errors);const c=o.inner.length?o.inner:[o];this.inner.push(...c)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}rA=Symbol.hasInstance;aA=Symbol.toStringTag;class An extends Error{static formatError(t,n){const a=n.label||n.path||"this";return n=Object.assign({},n,{path:a,originalPath:n.path}),typeof t=="string"?t.replace(b4,(s,o)=>Di(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,a,s,o){const c=new Ix(t,n,a,s);if(o)return c;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[aA]="Error",this.name=c.name,this.message=c.message,this.type=c.type,this.value=c.value,this.path=c.path,this.errors=c.errors,this.inner=c.inner,Error.captureStackTrace&&Error.captureStackTrace(this,An)}static[rA](t){return Ix[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Gr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:a})=>{const s=a!=null&&a!==n?` (cast from the value \`${Di(a,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Di(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Di(n,!0)}\``+s}},wn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},S4={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},ny={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},E4={isValue:"${path} field must be ${value}"},_4={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},x4={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},O4={notType:e=>{const{path:t,value:n,spec:a}=e,s=a.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Di(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Di(n,!0)}\``}return An.formatError(Gr.notType,e)}};Object.assign(Object.create(null),{mixed:Gr,string:wn,number:S4,date:ny,object:_4,array:x4,boolean:E4,tuple:O4});const iA=e=>e&&e.__isYupSchema__;class Nd{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:a,then:s,otherwise:o}=n,c=typeof a=="function"?a:(...h)=>h.every(d=>d===a);return new Nd(t,(h,d)=>{var p;let v=c(...h)?s:o;return(p=v==null?void 0:v(d))!=null?p:d})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let a=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(a,t,n);if(s===void 0||s===t)return t;if(!iA(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const Kf={context:"$",value:"."};class bc{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Kf.context,this.isValue=this.key[0]===Kf.value,this.isSibling=!this.isContext&&!this.isValue;let a=this.isContext?Kf.context:this.isValue?Kf.value:"";this.path=this.key.slice(a.length),this.getter=this.path&&eA.getter(this.path,!0),this.map=n.map}getValue(t,n,a){let s=this.isContext?a:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}bc.prototype.__isYupRef=!0;const Es=e=>e==null;function Il(e){function t({value:n,path:a="",options:s,originalValue:o,schema:c},h,d){const{name:p,test:v,params:b,message:y,skipAbsent:_}=e;let{parent:x,context:A,abortEarly:N=c.spec.abortEarly,disableStackTrace:O=c.spec.disableStackTrace}=s;function R(ie){return bc.isRef(ie)?ie.getValue(n,x,A):ie}function D(ie={}){const xe=Object.assign({value:n,originalValue:o,label:c.spec.label,path:ie.path||a,spec:c.spec,disableStackTrace:ie.disableStackTrace||O},b,ie.params);for(const me of Object.keys(xe))xe[me]=R(xe[me]);const fe=new An(An.formatError(ie.message||y,xe),n,xe.path,ie.type||p,xe.disableStackTrace);return fe.params=xe,fe}const U=N?h:d;let C={path:a,parent:x,type:p,from:s.from,createError:D,resolve:R,options:s,originalValue:o,schema:c};const w=ie=>{An.isError(ie)?U(ie):ie?d(null):U(D())},q=ie=>{An.isError(ie)?U(ie):h(ie)};if(_&&Es(n))return w(!0);let Q;try{var he;if(Q=v.call(C,n,C),typeof((he=Q)==null?void 0:he.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Q).then(w,q)}}catch(ie){q(ie);return}w(Q)}return t.OPTIONS=e,t}function T4(e,t,n,a=n){let s,o,c;return t?(eA.forEach(t,(h,d,p)=>{let v=d?h.slice(1,h.length-1):h;e=e.resolve({context:a,parent:s,value:n});let b=e.type==="tuple",y=p?parseInt(v,10):0;if(e.innerType||b){if(b&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${c}" must contain an index to the tuple element, e.g. "${c}[0]"`);if(n&&y>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${h}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[y],e=b?e.spec.types[y]:e.innerType}if(!p){if(!e.fields||!e.fields[v])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${c} which is a type: "${e.type}")`);s=n,n=n&&n[v],e=e.fields[v]}o=v,c=d?"["+h+"]":"."+h}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}class Cd extends Set{describe(){const t=[];for(const n of this.values())t.push(bc.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const a of this.values())n.push(t(a));return n}clone(){return new Cd(this.values())}merge(t,n){const a=this.clone();return t.forEach(s=>a.add(s)),n.forEach(s=>a.delete(s)),a}}function Gl(e,t=new Map){if(iA(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let a=0;a<e.length;a++)n[a]=Gl(e[a],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[a,s]of e.entries())n.set(a,Gl(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const a of e)n.add(Gl(a,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[a,s]of Object.entries(e))n[a]=Gl(s,t)}else throw Error(`Unable to clone ${e}`);return n}class Li{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Cd,this._blacklist=new Cd,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Gr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Gl(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let a=t(this);return this._mutate=n,a}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,a=t.clone();const s=Object.assign({},n.spec,a.spec);return a.spec=s,a.internalTests=Object.assign({},n.internalTests,a.internalTests),a._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),a._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),a.tests=n.tests,a.exclusiveTests=n.exclusiveTests,a.withMutation(o=>{t.tests.forEach(c=>{o.test(c.OPTIONS)})}),a.transforms=[...n.transforms,...a.transforms],a}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let a=n.conditions;n=n.clone(),n.conditions=[],n=a.reduce((s,o)=>o.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,a,s,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(a=t.abortEarly)!=null?a:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let a=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",o=a._cast(t,n);if(n.assert!==!1&&!a.isType(o)){if(s&&Es(o))return o;let c=Di(t),h=Di(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${a.type}".
|
|
165
|
+
`+(h!==c?`result of cast: ${h}`:""))}return o}_cast(t,n){let a=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return a===void 0&&(a=this.getDefault(n)),a}_validate(t,n={},a,s){let{path:o,originalValue:c=t,strict:h=this.spec.strict}=n,d=t;h||(d=this._cast(d,Object.assign({assert:!1},n)));let p=[];for(let v of Object.values(this.internalTests))v&&p.push(v);this.runTests({path:o,value:d,originalValue:c,options:n,tests:p},a,v=>{if(v.length)return s(v,d);this.runTests({path:o,value:d,originalValue:c,options:n,tests:this.tests},a,s)})}runTests(t,n,a){let s=!1,{tests:o,value:c,originalValue:h,path:d,options:p}=t,v=A=>{s||(s=!0,n(A,c))},b=A=>{s||(s=!0,a(A,c))},y=o.length,_=[];if(!y)return b([]);let x={value:c,originalValue:h,path:d,options:p,schema:this};for(let A=0;A<o.length;A++){const N=o[A];N(x,v,function(R){R&&(Array.isArray(R)?_.push(...R):_.push(R)),--y<=0&&b(_)})}}asNestedTest({key:t,index:n,parent:a,parentPath:s,originalParent:o,options:c}){const h=t??n;if(h==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof h=="number";let p=a[h];const v=Object.assign({},c,{strict:!0,parent:a,value:p,originalValue:o[h],key:void 0,[d?"index":"key"]:h,path:d||h.includes(".")?`${s||""}[${d?h:`"${h}"`}]`:(s?`${s}.`:"")+t});return(b,y,_)=>this.resolve(v)._validate(p,v,y,_)}validate(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return new Promise((c,h)=>s._validate(t,n,(d,p)=>{zn.isError(d)&&(d.value=p),h(d)},(d,p)=>{d.length?h(new zn(d,p,void 0,void 0,o)):c(p)}))}validateSync(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o,c=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(h,d)=>{throw zn.isError(h)&&(h.value=d),h},(h,d)=>{if(h.length)throw new zn(h,t,void 0,void 0,c);o=d}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,a=>{if(zn.isError(a))return!1;throw a})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(a){if(zn.isError(a))return!1;throw a}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Pl(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const a=this.clone({nullable:t});return a.internalTests.nullable=Fl({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),a}optionality(t,n){const a=this.clone({optional:t});return a.internalTests.optionality=Fl({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),a}optional(){return this.optionality(!0)}defined(t=Pr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Pr.notNull){return this.nullability(!1,t)}required(t=Pr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Pr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let a=this.clone(),s=Fl(n),o=n.exclusive||n.name&&a.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(a.exclusiveTests[n.name]=!!n.exclusive),a.tests=a.tests.filter(c=>!(c.OPTIONS.name===n.name&&(o||c.OPTIONS.test===s.OPTIONS.test))),a.tests.push(s),a}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let a=this.clone(),s=I1(t).map(o=>new Zs(o));return s.forEach(o=>{o.isSibling&&a.deps.push(o.key)}),a.conditions.push(typeof n=="function"?new Dx(s,n):Dx.fromOptions(s,n)),a}typeError(t){let n=this.clone();return n.internalTests.typeError=Fl({message:t,name:"typeError",skipAbsent:!0,test(a){return this.schema._typeCheck(a)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Pr.oneOf){let a=this.clone();return t.forEach(s=>{a._whitelist.add(s),a._blacklist.delete(s)}),a.internalTests.whiteList=Fl({message:n,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,c=o.resolveAll(this.resolve);return c.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:c}})}}),a}notOneOf(t,n=Pr.notOneOf){let a=this.clone();return t.forEach(s=>{a._blacklist.add(s),a._whitelist.delete(s)}),a.internalTests.blacklist=Fl({message:n,name:"notOneOf",test(s){let o=this.schema._blacklist,c=o.resolveAll(this.resolve);return c.includes(s)?this.createError({params:{values:Array.from(o).join(", "),resolved:c}}):!0}}),a}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:a,meta:s,optional:o,nullable:c}=n.spec;return{meta:s,label:a,optional:o,nullable:c,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((d,p,v)=>v.findIndex(b=>b.OPTIONS.name===d.OPTIONS.name)===p).map(d=>{const p=d.OPTIONS.params&&t?G1(Object.assign({},d.OPTIONS.params),t):d.OPTIONS.params;return{name:d.OPTIONS.name,params:p}})}}get"~standard"(){const t=this;return{version:1,vendor:"yup",async validate(a){try{return{value:await t.validate(a,{abortEarly:!1})}}catch(s){if(s instanceof zn)return{issues:Q1(s)};throw s}}}}};Mr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Mr.prototype[`${e}At`]=function(t,n,a={}){const{parent:s,parentPath:o,schema:c}=Nz(this,t,n,a.context);return c[e](s&&s[o],Object.assign({},a,{parent:s,path:t}))};for(const e of["equals","is"])Mr.prototype[e]=Mr.prototype.oneOf;for(const e of["not","nope"])Mr.prototype[e]=Mr.prototype.notOneOf;const Dz=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function jz(e){const t=Yv(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Yv(e){var t,n;const a=Dz.exec(e);return a?{year:wa(a[1]),month:wa(a[2],1)-1,day:wa(a[3],1),hour:wa(a[4]),minute:wa(a[5]),second:wa(a[6]),millisecond:a[7]?wa(a[7].substring(0,3)):0,precision:(t=(n=a[7])==null?void 0:n.length)!=null?t:void 0,z:a[8]||void 0,plusMinus:a[9]||void 0,hourOffset:wa(a[10]),minuteOffset:wa(a[11])}:null}function wa(e,t=0){return Number(e)||t}let kz=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Mz=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Uz=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,$z="^\\d{4}-\\d{2}-\\d{2}",Lz="\\d{2}:\\d{2}:\\d{2}",Bz="(([+-]\\d{2}(:?\\d{2})?)|Z)",Fz=new RegExp(`${$z}T${Lz}(\\.\\d+)?${Bz}$`),Iz=e=>Ua(e)||e===e.trim(),zz={}.toString();function sh(){return new X1}let X1=class extends Mr{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce||a.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===zz?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Pr.required,name:"required",skipAbsent:!0,test:a=>!!a.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=wn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(a){return a.length===this.resolve(t)}})}min(t,n=wn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a.length>=this.resolve(t)}})}max(t,n=wn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(a){return a.length<=this.resolve(t)}})}matches(t,n){let a=!1,s,o;return n&&(typeof n=="object"?{excludeEmptyString:a=!1,message:s,name:o}=n:s=n),this.test({name:o||"matches",message:s||wn.matches,params:{regex:t},skipAbsent:!0,test:c=>c===""&&a||c.search(t)!==-1})}email(t=wn.email){return this.matches(kz,{name:"email",message:t,excludeEmptyString:!0})}url(t=wn.url){return this.matches(Mz,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=wn.uuid){return this.matches(Uz,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",a,s;return t&&(typeof t=="object"?{message:n="",allowOffset:a=!1,precision:s=void 0}=t:n=t),this.matches(Fz,{name:"datetime",message:n||wn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||wn.datetime_offset,params:{allowOffset:a},skipAbsent:!0,test:o=>{if(!o||a)return!0;const c=Yv(o);return c?!!c.z:!1}}).test({name:"datetime_precision",message:n||wn.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const c=Yv(o);return c?c.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=wn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Iz})}lowercase(t=wn.lowercase){return this.transform(n=>Ua(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ua(n)||n===n.toLowerCase()})}uppercase(t=wn.uppercase){return this.transform(n=>Ua(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ua(n)||n===n.toUpperCase()})}};sh.prototype=X1.prototype;let qz=e=>e!=+e;function Z1(){return new J1}class J1 extends Mr{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!qz(t)}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return a.isType(s)||s===null?s:parseFloat(s)})})}min(t,n=Ei.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(t)}})}max(t,n=Ei.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(t)}})}lessThan(t,n=Ei.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(a){return a<this.resolve(t)}})}moreThan(t,n=Ei.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(a){return a>this.resolve(t)}})}positive(t=Ei.positive){return this.moreThan(0,t)}negative(t=Ei.negative){return this.lessThan(0,t)}integer(t=Ei.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Ua(t)?t:t|0)}round(t){var n;let a=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(a.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+a.join(", "));return this.transform(s=>Ua(s)?s:Math[t](s))}}Z1.prototype=J1.prototype;let Vz=new Date(""),Hz=e=>Object.prototype.toString.call(e)==="[object Date]",Pz=class W1 extends Mr{constructor(){super({type:"date",check(t){return Hz(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,a)=>!a.spec.coerce||a.isType(t)||t===null?t:(t=jz(t),isNaN(t)?W1.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let a;if(Zs.isRef(t))a=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);a=s}return a}min(t,n=Gv.min){let a=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(a)}})}max(t,n=Gv.max){let a=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(a)}})}};Pz.INVALID_DATE=Vz;function Gz(e,t=[]){let n=[],a=new Set,s=new Set(t.map(([c,h])=>`${c}-${h}`));function o(c,h){let d=Rs.split(c)[0];a.add(d),s.has(`${h}-${d}`)||n.push([h,d])}for(const c of Object.keys(e)){let h=e[c];a.add(c),Zs.isRef(h)&&h.isSibling?o(h.path,c):pg(h)&&"deps"in h&&h.deps.forEach(d=>o(d,c))}return yz.array(Array.from(a),n).reverse()}function kx(e,t){let n=1/0;return e.some((a,s)=>{var o;if((o=t.path)!=null&&o.includes(a))return n=s,!0}),n}function eA(e){return(t,n)=>kx(e,t)-kx(e,n)}const Yz=(e,t,n)=>{if(typeof e!="string")return e;let a=e;try{a=JSON.parse(e)}catch{}return n.isType(a)?a:e};function ld(e){if("fields"in e){const t={};for(const[n,a]of Object.entries(e.fields))t[n]=ld(a);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ld(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ld)}):"optional"in e?e.optional():e}const Kz=(e,t)=>{const n=[...Rs.normalizePath(t)];if(n.length===1)return n[0]in e;let a=n.pop(),s=Rs.getter(Rs.join(n),!0)(e);return!!(s&&a in s)};let Mx=e=>Object.prototype.toString.call(e)==="[object Object]";function Ux(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(a=>n.indexOf(a)===-1)}const Qz=eA([]);function gc(e){return new tA(e)}class tA extends Mr{constructor(t){super({type:"object",check(n){return Mx(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Qz,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var a;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let o=this.fields,c=(a=n.stripUnknown)!=null?a:this.spec.noUnknown,h=[].concat(this._nodes,Object.keys(s).filter(b=>!this._nodes.includes(b))),d={},p=Object.assign({},n,{parent:d,__validating:n.__validating||!1}),v=!1;for(const b of h){let y=o[b],_=b in s;if(y){let x,A=s[b];p.path=(n.path?`${n.path}.`:"")+b,y=y.resolve({value:A,context:n.context,parent:d});let N=y instanceof Mr?y.spec:void 0,O=N==null?void 0:N.strict;if(N!=null&&N.strip){v=v||b in s;continue}x=!n.__validating||!O?y.cast(s[b],p):s[b],x!==void 0&&(d[b]=x)}else _&&!c&&(d[b]=s[b]);(_!==b in d||d[b]!==s[b])&&(v=!0)}return v?d:s}_validate(t,n={},a,s){let{from:o=[],originalValue:c=t,recursive:h=this.spec.recursive}=n;n.from=[{schema:this,value:c},...o],n.__validating=!0,n.originalValue=c,super._validate(t,n,a,(d,p)=>{if(!h||!Mx(p)){s(d,p);return}c=c||p;let v=[];for(let b of this._nodes){let y=this.fields[b];!y||Zs.isRef(y)||v.push(y.asNestedTest({options:n,key:b,parent:p,parentPath:n.path,originalParent:c}))}this.runTests({tests:v,value:p,originalValue:c,options:n},a,b=>{s(b.sort(this._sortErrors).concat(d),p)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),a=n.fields;for(let[s,o]of Object.entries(this.fields)){const c=a[s];a[s]=c===void 0?o:c}return n.withMutation(s=>s.setFields(a,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(a=>{var s;const o=this.fields[a];let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),n[a]=o&&"getDefault"in o?o.getDefault(c):void 0}),n}setFields(t,n){let a=this.clone();return a.fields=t,a._nodes=Gz(t,n),a._sortErrors=eA(Object.keys(t)),n&&(a._excludedEdges=n),a}shape(t,n=[]){return this.clone().withMutation(a=>{let s=a._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...a._excludedEdges,...n]),a.setFields(Object.assign(a.fields,t),s)})}partial(){const t={};for(const[n,a]of Object.entries(this.fields))t[n]="optional"in a&&a.optional instanceof Function?a.optional():a;return this.setFields(t)}deepPartial(){return ld(this)}pick(t){const n={};for(const a of t)this.fields[a]&&(n[a]=this.fields[a]);return this.setFields(n,this._excludedEdges.filter(([a,s])=>t.includes(a)&&t.includes(s)))}omit(t){const n=[];for(const a of Object.keys(this.fields))t.includes(a)||n.push(a);return this.pick(n)}from(t,n,a){let s=Rs.getter(t,!0);return this.transform(o=>{if(!o)return o;let c=o;return Kz(o,t)&&(c=Object.assign({},o),a||delete c[t],c[n]=s(o)),c})}json(){return this.transform(Yz)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||sd.exact,test(n){if(n==null)return!0;const a=Ux(this.schema,n);return a.length===0||this.createError({params:{properties:a.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=sd.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let a=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const o=Ux(this.schema,s);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return a.spec.noUnknown=t,a}unknown(t=!0,n=sd.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const a={};for(const s of Object.keys(n))a[t(s)]=n[s];return a})}camelCase(){return this.transformKeys(nv.camelCase)}snakeCase(){return this.transformKeys(nv.snakeCase)}constantCase(){return this.transformKeys(t=>nv.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),a=super.describe(t);a.fields={};for(const[o,c]of Object.entries(n.fields)){var s;let h=t;(s=h)!=null&&s.value&&(h=Object.assign({},h,{parent:h.value,value:h.value[o]})),a.fields[o]=c.describe(h)}return a}}gc.prototype=tA.prototype;var Xz=["color","size","title","className"];function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Kv.apply(null,arguments)}function Zz(e,t){if(e==null)return{};var n,a,s=Jz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function Jz(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var Qv=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=Zz(e,Xz);return mt.createElement("svg",Kv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-box-arrow-up-right",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{fillRule:"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),mt.createElement("path",{fillRule:"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"}))});Qv.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var Wz=["color","size","title","className"];function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xv.apply(null,arguments)}function e4(e,t){if(e==null)return{};var n,a,s=t4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function t4(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var Zv=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=e4(e,Wz);return mt.createElement("svg",Xv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-check-lg",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"}))});Zv.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var n4=["color","size","title","className"];function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Jv.apply(null,arguments)}function r4(e,t){if(e==null)return{};var n,a,s=a4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function a4(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var nA=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=r4(e,n4);return mt.createElement("svg",Jv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-clipboard",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"}),mt.createElement("path",{d:"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"}))});nA.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var i4=["color","size","title","className"];function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Wv.apply(null,arguments)}function s4(e,t){if(e==null)return{};var n,a,s=l4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function l4(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var mg=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=s4(e,i4);return mt.createElement("svg",Wv({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-info-circle",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),mt.createElement("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"}))});mg.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};var o4=["color","size","title","className"];function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ey.apply(null,arguments)}function u4(e,t){if(e==null)return{};var n,a,s=c4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function c4(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}var ty=S.forwardRef(function(e,t){var n=e.color,a=n===void 0?"currentColor":n,s=e.size,o=s===void 0?"1em":s,c=e.title,h=c===void 0?null:c,d=e.className,p=d===void 0?"":d,v=u4(e,o4);return mt.createElement("svg",ey({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:a,className:["bi","bi-x-lg",p].filter(Boolean).join(" ")},v),h?mt.createElement("title",null,h):null,mt.createElement("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"}))});ty.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number]),title:Pe.string,className:Pe.string};const f4=Gt(()=>{const e=sn();return S.useEffect(()=>{const t=localStorage.getItem("api_key");t&&e.login(t)},[e]),e.loggingIn||!e.loggedIn||e.loginError?g.jsx(m4,{}):g.jsxs(dc,{fluid:!0,children:[g.jsx(ZL,{}),g.jsx(WL,{}),!1]})}),d4=({show:e,onHide:t})=>g.jsxs(Pt,{show:e,onHide:t,children:[g.jsx(Pt.Header,{closeButton:!0,children:g.jsx(Pt.Title,{children:"Where do I get an API key?"})}),g.jsxs(Pt.Body,{children:[g.jsx("p",{children:"Generate an API key from the database:"}),g.jsx("pre",{children:"INSERT INTO hub.api_key DEFAULT VALUES RETURNING key;"})]})]}),h4=gc().shape({apiKey:sh().uuid().required()}),p4={apiKey:""},m4=Gt(()=>{const e=sn(),[t,n]=S.useState(!1),a=ih({initialValues:p4,validationSchema:h4,onSubmit:async(o,{setSubmitting:c,setStatus:h})=>{h(null),e.login(o.apiKey).then(d=>{d||(localStorage.removeItem("api_key"),h("Invalid API key"))}).finally(()=>{c(!1)})}}),s=e.loggingIn||a.isSubmitting;return g.jsxs(dc,{children:[g.jsx(d4,{show:t,onHide:()=>n(!1)}),g.jsx(ag,{className:"justify-content-md-center align-items-center",style:{height:"100vh"},children:g.jsxs(Xd,{lg:6,children:[a.status&&g.jsx(vr,{variant:"danger",className:"mb-3",dismissible:!0,onClose:()=>a.setStatus(null),children:a.status}),e.loginError&&g.jsx(vr,{variant:"danger",children:Qn(e.loginError)}),g.jsx(He,{onSubmit:a.handleSubmit,children:g.jsx("fieldset",{disabled:s,children:g.jsxs(Ql,{children:[g.jsx(Ql.Body,{children:g.jsxs(He.Group,{children:[g.jsxs(He.Label,{children:["API Key",g.jsx(mg,{className:"ms-1",style:{cursor:"pointer"},onClick:()=>{n(!0)}})]}),g.jsx(He.Control,{type:"text",name:"apiKey",value:a.values.apiKey,onChange:a.handleChange,onBlur:a.handleBlur,placeholder:"Ex: 00000000-0000-0000-0000-000000000000",isInvalid:a.touched.apiKey&&!!a.errors.apiKey,isValid:a.touched.apiKey&&!a.errors.apiKey}),g.jsx(He.Control.Feedback,{type:"invalid",children:a.errors.apiKey})]})}),g.jsx(Ql.Footer,{className:"d-flex justify-content-end",children:g.jsx(Jt,{type:"submit",disabled:s,children:s?"Authenticating...":"Authenticate"})})]})})})]})})]})}),aa=()=>g.jsx("div",{children:g.jsx("h1",{children:"Not found"})}),$x=e=>{const t=mO();switch(t&&console.error(t),e.status||(t==null?void 0:t.status)){case 404:return g.jsx(aa,{});case 401:return g.jsxs("div",{children:[g.jsx("h1",{children:"Unauthorized"}),g.jsx("p",{children:"You don't have permission to do that."})]});default:return g.jsxs(dc,{children:[g.jsx("h1",{children:"Unexpected error"}),g.jsx("p",{children:(t==null?void 0:t.statusText)||Qn(t)}),g.jsx(Jt,{onClick:()=>{window.history.back()},children:"Go back"})]})}},v4={short:{justNow:"<1min ago",minute:"min ago",hour:"hr ago",day:"d ago"},long:{justNow:"<1 minute ago",minute:" minute[s] ago",hour:" hour[s] ago",day:" day[s] ago"}};function y4(e,t,n=new Date){const a=n.getTime()-e.getTime(),s=v4[t],o=Math.floor(a/1e3);if(o<60)return s.justNow;const c=Math.floor(o/60);if(c<60)return`${c}${s.minute.replace("[s]",c>1?"s":"")}`;const h=Math.floor(c/60);if(h<24)return`${h}${s.hour.replace("[s]",h>1?"s":"")}`;const d=Math.floor(h/24);return`${d}${s.day.replace("[s]",d>1?"s":"")}`}const g4={whiteSpace:"nowrap",cursor:"help",textDecoration:"underline dotted"},Va=({date:e,variant:t})=>{typeof e=="string"&&(e=new Date(e));const n=BM(e);return g.jsx(u1,{placement:"top",overlay:g.jsx(ng,{children:n}),trigger:["hover","click","focus"],children:g.jsx("time",{dateTime:e.toISOString(),style:g4,children:y4(e,t)})})};var rv,Lx;function b4(){if(Lx)return rv;Lx=1;function e(O){this._maxSize=O,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(O){return this._values[O]},e.prototype.set=function(O,R){return this._size>=this._maxSize&&this.clear(),O in this._values||this._size++,this._values[O]=R};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,c=512,h=new e(c),d=new e(c),p=new e(c);rv={Cache:e,split:b,normalizePath:v,setter:function(O){var R=v(O);return d.get(O)||d.set(O,function(U,C){for(var w=0,q=R.length,re=U;w<q-1;){var Q=R[w];if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return U;re=re[R[w++]]}re[R[w]]=C})},getter:function(O,R){var D=v(O);return p.get(O)||p.set(O,function(C){for(var w=0,q=D.length;w<q;)if(C!=null||!R)C=C[D[w++]];else return;return C})},join:function(O){return O.reduce(function(R,D){return R+(_(D)||n.test(D)?"["+D+"]":(R?".":"")+D)},"")},forEach:function(O,R,D){y(Array.isArray(O)?O:b(O),R,D)}};function v(O){return h.get(O)||h.set(O,b(O).map(function(R){return R.replace(o,"$2")}))}function b(O){return O.match(t)||[""]}function y(O,R,D){var U=O.length,C,w,q,re;for(w=0;w<U;w++)C=O[w],C&&(N(C)&&(C='"'+C+'"'),re=_(C),q=!re&&/^\d+$/.test(C),R.call(D,C,re,q,w,O))}function _(O){return typeof O=="string"&&O&&["'",'"'].indexOf(O.charAt(0))!==-1}function x(O){return O.match(a)&&!O.match(n)}function A(O){return s.test(O)}function N(O){return!_(O)&&(x(O)||A(O))}return rv}var rA=b4(),Yf={exports:{}},Bx;function S4(){if(Bx)return Yf.exports;Bx=1,Yf.exports=function(s){return e(t(s),s)},Yf.exports.array=e;function e(s,o){var c=s.length,h=new Array(c),d={},p=c,v=n(o),b=a(s);for(o.forEach(function(_){if(!b.has(_[0])||!b.has(_[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});p--;)d[p]||y(s[p],p,new Set);return h;function y(_,x,A){if(A.has(_)){var N;try{N=", node was:"+JSON.stringify(_)}catch{N=""}throw new Error("Cyclic dependency"+N)}if(!b.has(_))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(_));if(!d[x]){d[x]=!0;var O=v.get(_)||new Set;if(O=Array.from(O),x=O.length){A.add(_);do{var R=O[--x];y(R,b.get(R),A)}while(x);A.delete(_)}h[--c]=_}}}function t(s){for(var o=new Set,c=0,h=s.length;c<h;c++){var d=s[c];o.add(d[0]),o.add(d[1])}return Array.from(o)}function n(s){for(var o=new Map,c=0,h=s.length;c<h;c++){var d=s[c];o.has(d[0])||o.set(d[0],new Set),o.has(d[1])||o.set(d[1],new Set),o.get(d[0]).add(d[1])}return o}function a(s){for(var o=new Map,c=0,h=s.length;c<h;c++)o.set(s[c],c);return o}return Yf.exports}S4();const E4=Object.prototype.toString,_4=Error.prototype.toString,x4=RegExp.prototype.toString,O4=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",T4=/^Symbol\((.*)\)(.*)$/;function w4(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Fx(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return w4(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return O4.call(e).replace(T4,"Symbol($1)");const a=E4.call(e).slice(8,-1);return a==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):a==="Error"||e instanceof Error?"["+_4.call(e)+"]":a==="RegExp"?x4.call(e):null}function Di(e,t){let n=Fx(e,t);return n!==null?n:JSON.stringify(e,function(a,s){let o=Fx(this[a],t);return o!==null?o:s},2)}function aA(e){return e==null?[]:[].concat(e)}let iA,sA,lA,A4=/\$\{\s*(\w+)\s*\}/g;iA=Symbol.toStringTag;class Ix{constructor(t,n,a,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[iA]="Error",this.name="ValidationError",this.value=n,this.path=a,this.type=s,this.errors=[],this.inner=[],aA(t).forEach(o=>{if(yn.isError(o)){this.errors.push(...o.errors);const c=o.inner.length?o.inner:[o];this.inner.push(...c)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}sA=Symbol.hasInstance;lA=Symbol.toStringTag;class yn extends Error{static formatError(t,n){const a=n.label||n.path||"this";return n=Object.assign({},n,{path:a,originalPath:n.path}),typeof t=="string"?t.replace(A4,(s,o)=>Di(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,a,s,o){const c=new Ix(t,n,a,s);if(o)return c;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[lA]="Error",this.name=c.name,this.message=c.message,this.type=c.type,this.value=c.value,this.path=c.path,this.errors=c.errors,this.inner=c.inner,Error.captureStackTrace&&Error.captureStackTrace(this,yn)}static[sA](t){return Ix[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Gr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:a})=>{const s=a!=null&&a!==n?` (cast from the value \`${Di(a,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Di(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Di(n,!0)}\``+s}},An={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},N4={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},ny={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},C4={isValue:"${path} field must be ${value}"},R4={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},D4={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},j4={notType:e=>{const{path:t,value:n,spec:a}=e,s=a.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Di(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Di(n,!0)}\``}return yn.formatError(Gr.notType,e)}};Object.assign(Object.create(null),{mixed:Gr,string:An,number:N4,date:ny,object:R4,array:D4,boolean:C4,tuple:j4});const oA=e=>e&&e.__isYupSchema__;class Nd{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:a,then:s,otherwise:o}=n,c=typeof a=="function"?a:(...h)=>h.every(d=>d===a);return new Nd(t,(h,d)=>{var p;let v=c(...h)?s:o;return(p=v==null?void 0:v(d))!=null?p:d})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let a=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(a,t,n);if(s===void 0||s===t)return t;if(!oA(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const Kf={context:"$",value:"."};class bc{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Kf.context,this.isValue=this.key[0]===Kf.value,this.isSibling=!this.isContext&&!this.isValue;let a=this.isContext?Kf.context:this.isValue?Kf.value:"";this.path=this.key.slice(a.length),this.getter=this.path&&rA.getter(this.path,!0),this.map=n.map}getValue(t,n,a){let s=this.isContext?a:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}bc.prototype.__isYupRef=!0;const Es=e=>e==null;function Il(e){function t({value:n,path:a="",options:s,originalValue:o,schema:c},h,d){const{name:p,test:v,params:b,message:y,skipAbsent:_}=e;let{parent:x,context:A,abortEarly:N=c.spec.abortEarly,disableStackTrace:O=c.spec.disableStackTrace}=s;const R={value:n,parent:x,context:A};function D(ie={}){const Re=uA(Object.assign({value:n,originalValue:o,label:c.spec.label,path:ie.path||a,spec:c.spec,disableStackTrace:ie.disableStackTrace||O},b,ie.params),R),fe=new yn(yn.formatError(ie.message||y,Re),n,Re.path,ie.type||p,Re.disableStackTrace);return fe.params=Re,fe}const U=N?h:d;let C={path:a,parent:x,type:p,from:s.from,createError:D,resolve(ie){return cA(ie,R)},options:s,originalValue:o,schema:c};const w=ie=>{yn.isError(ie)?U(ie):ie?d(null):U(D())},q=ie=>{yn.isError(ie)?U(ie):h(ie)};if(_&&Es(n))return w(!0);let Q;try{var he;if(Q=v.call(C,n,C),typeof((he=Q)==null?void 0:he.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Q).then(w,q)}}catch(ie){q(ie);return}w(Q)}return t.OPTIONS=e,t}function uA(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=cA(e[n],t);return e}function cA(e,t){return bc.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function k4(e,t,n,a=n){let s,o,c;return t?(rA.forEach(t,(h,d,p)=>{let v=d?h.slice(1,h.length-1):h;e=e.resolve({context:a,parent:s,value:n});let b=e.type==="tuple",y=p?parseInt(v,10):0;if(e.innerType||b){if(b&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${c}" must contain an index to the tuple element, e.g. "${c}[0]"`);if(n&&y>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${h}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[y],e=b?e.spec.types[y]:e.innerType}if(!p){if(!e.fields||!e.fields[v])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${c} which is a type: "${e.type}")`);s=n,n=n&&n[v],e=e.fields[v]}o=v,c=d?"["+h+"]":"."+h}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}class Cd extends Set{describe(){const t=[];for(const n of this.values())t.push(bc.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const a of this.values())n.push(t(a));return n}clone(){return new Cd(this.values())}merge(t,n){const a=this.clone();return t.forEach(s=>a.add(s)),n.forEach(s=>a.delete(s)),a}}function Gl(e,t=new Map){if(oA(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let a=0;a<e.length;a++)n[a]=Gl(e[a],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[a,s]of e.entries())n.set(a,Gl(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const a of e)n.add(Gl(a,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[a,s]of Object.entries(e))n[a]=Gl(s,t)}else throw Error(`Unable to clone ${e}`);return n}function M4(e){if(!(e!=null&&e.length))return;const t=[];let n="",a=!1,s=!1;for(let o=0;o<e.length;o++){const c=e[o];if(c==="["&&!s){n&&(t.push(...n.split(".").filter(Boolean)),n=""),a=!0;continue}if(c==="]"&&!s){n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),a=!1;continue}if(c==='"'){s=!s;continue}if(c==="."&&!a&&!s){n&&(t.push(n),n="");continue}n+=c}return n&&t.push(...n.split(".").filter(Boolean)),t}function U4(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(a=>({message:a,path:M4(n)}))}function fA(e,t){var n;if(!((n=e.inner)!=null&&n.length)&&e.errors.length)return U4(e,t);const a=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(s=>fA(s,a))}class Li{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Cd,this._blacklist=new Cd,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Gr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Gl(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let a=t(this);return this._mutate=n,a}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,a=t.clone();const s=Object.assign({},n.spec,a.spec);return a.spec=s,a.internalTests=Object.assign({},n.internalTests,a.internalTests),a._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),a._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),a.tests=n.tests,a.exclusiveTests=n.exclusiveTests,a.withMutation(o=>{t.tests.forEach(c=>{o.test(c.OPTIONS)})}),a.transforms=[...n.transforms,...a.transforms],a}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let a=n.conditions;n=n.clone(),n.conditions=[],n=a.reduce((s,o)=>o.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,a,s,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(a=t.abortEarly)!=null?a:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let a=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",o=a._cast(t,n);if(n.assert!==!1&&!a.isType(o)){if(s&&Es(o))return o;let c=Di(t),h=Di(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${a.type}".
|
|
166
166
|
|
|
167
167
|
attempted value: ${c}
|
|
168
|
-
`+(h!==c?`result of cast: ${h}`:""))}return o}_cast(t,n){let a=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return a===void 0&&(a=this.getDefault(n)),a}_validate(t,n={},a,s){let{path:o,originalValue:c=t,strict:h=this.spec.strict}=n,d=t;h||(d=this._cast(d,Object.assign({assert:!1},n)));let p=[];for(let v of Object.values(this.internalTests))v&&p.push(v);this.runTests({path:o,value:d,originalValue:c,options:n,tests:p},a,v=>{if(v.length)return s(v,d);this.runTests({path:o,value:d,originalValue:c,options:n,tests:this.tests},a,s)})}runTests(t,n,a){let s=!1,{tests:o,value:c,originalValue:h,path:d,options:p}=t,v=A=>{s||(s=!0,n(A,c))},b=A=>{s||(s=!0,a(A,c))},y=o.length,_=[];if(!y)return b([]);let x={value:c,originalValue:h,path:d,options:p,schema:this};for(let A=0;A<o.length;A++){const N=o[A];N(x,v,function(R){R&&(Array.isArray(R)?_.push(...R):_.push(R)),--y<=0&&b(_)})}}asNestedTest({key:t,index:n,parent:a,parentPath:s,originalParent:o,options:c}){const h=t??n;if(h==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof h=="number";let p=a[h];const v=Object.assign({},c,{strict:!0,parent:a,value:p,originalValue:o[h],key:void 0,[d?"index":"key"]:h,path:d||h.includes(".")?`${s||""}[${d?h:`"${h}"`}]`:(s?`${s}.`:"")+t});return(b,y,_)=>this.resolve(v)._validate(p,v,y,_)}validate(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return new Promise((c,h)=>s._validate(t,n,(d,p)=>{An.isError(d)&&(d.value=p),h(d)},(d,p)=>{d.length?h(new An(d,p,void 0,void 0,o)):c(p)}))}validateSync(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o,c=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(h,d)=>{throw An.isError(h)&&(h.value=d),h},(h,d)=>{if(h.length)throw new An(h,t,void 0,void 0,c);o=d}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,a=>{if(An.isError(a))return!1;throw a})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(a){if(An.isError(a))return!1;throw a}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Gl(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const a=this.clone({nullable:t});return a.internalTests.nullable=Il({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),a}optionality(t,n){const a=this.clone({optional:t});return a.internalTests.optionality=Il({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),a}optional(){return this.optionality(!0)}defined(t=Gr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Gr.notNull){return this.nullability(!1,t)}required(t=Gr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Gr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let a=this.clone(),s=Il(n),o=n.exclusive||n.name&&a.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(a.exclusiveTests[n.name]=!!n.exclusive),a.tests=a.tests.filter(c=>!(c.OPTIONS.name===n.name&&(o||c.OPTIONS.test===s.OPTIONS.test))),a.tests.push(s),a}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let a=this.clone(),s=tA(t).map(o=>new bc(o));return s.forEach(o=>{o.isSibling&&a.deps.push(o.key)}),a.conditions.push(typeof n=="function"?new Nd(s,n):Nd.fromOptions(s,n)),a}typeError(t){let n=this.clone();return n.internalTests.typeError=Il({message:t,name:"typeError",skipAbsent:!0,test(a){return this.schema._typeCheck(a)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Gr.oneOf){let a=this.clone();return t.forEach(s=>{a._whitelist.add(s),a._blacklist.delete(s)}),a.internalTests.whiteList=Il({message:n,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,c=o.resolveAll(this.resolve);return c.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:c}})}}),a}notOneOf(t,n=Gr.notOneOf){let a=this.clone();return t.forEach(s=>{a._blacklist.add(s),a._whitelist.delete(s)}),a.internalTests.blacklist=Il({message:n,name:"notOneOf",test(s){let o=this.schema._blacklist,c=o.resolveAll(this.resolve);return c.includes(s)?this.createError({params:{values:Array.from(o).join(", "),resolved:c}}):!0}}),a}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:a,meta:s,optional:o,nullable:c}=n.spec;return{meta:s,label:a,optional:o,nullable:c,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(d=>({name:d.OPTIONS.name,params:d.OPTIONS.params})).filter((d,p,v)=>v.findIndex(b=>b.name===d.name)===p)}}}Li.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Li.prototype[`${e}At`]=function(t,n,a={}){const{parent:s,parentPath:o,schema:c}=T4(this,t,n,a.context);return c[e](s&&s[o],Object.assign({},a,{parent:s,path:t}))};for(const e of["equals","is"])Li.prototype[e]=Li.prototype.oneOf;for(const e of["not","nope"])Li.prototype[e]=Li.prototype.notOneOf;const w4=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function A4(e){const t=ry(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ry(e){var t,n;const a=w4.exec(e);return a?{year:Aa(a[1]),month:Aa(a[2],1)-1,day:Aa(a[3],1),hour:Aa(a[4]),minute:Aa(a[5]),second:Aa(a[6]),millisecond:a[7]?Aa(a[7].substring(0,3)):0,precision:(t=(n=a[7])==null?void 0:n.length)!=null?t:void 0,z:a[8]||void 0,plusMinus:a[9]||void 0,hourOffset:Aa(a[10]),minuteOffset:Aa(a[11])}:null}function Aa(e,t=0){return Number(e)||t}let N4=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,C4=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,R4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,D4="^\\d{4}-\\d{2}-\\d{2}",j4="\\d{2}:\\d{2}:\\d{2}",k4="(([+-]\\d{2}(:?\\d{2})?)|Z)",M4=new RegExp(`${D4}T${j4}(\\.\\d+)?${k4}$`),U4=e=>Es(e)||e===e.trim(),$4={}.toString();function lh(){return new sA}class sA extends Li{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce||a.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===$4?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Gr.required,name:"required",skipAbsent:!0,test:a=>!!a.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=wn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(a){return a.length===this.resolve(t)}})}min(t,n=wn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a.length>=this.resolve(t)}})}max(t,n=wn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(a){return a.length<=this.resolve(t)}})}matches(t,n){let a=!1,s,o;return n&&(typeof n=="object"?{excludeEmptyString:a=!1,message:s,name:o}=n:s=n),this.test({name:o||"matches",message:s||wn.matches,params:{regex:t},skipAbsent:!0,test:c=>c===""&&a||c.search(t)!==-1})}email(t=wn.email){return this.matches(N4,{name:"email",message:t,excludeEmptyString:!0})}url(t=wn.url){return this.matches(C4,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=wn.uuid){return this.matches(R4,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",a,s;return t&&(typeof t=="object"?{message:n="",allowOffset:a=!1,precision:s=void 0}=t:n=t),this.matches(M4,{name:"datetime",message:n||wn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||wn.datetime_offset,params:{allowOffset:a},skipAbsent:!0,test:o=>{if(!o||a)return!0;const c=ry(o);return c?!!c.z:!1}}).test({name:"datetime_precision",message:n||wn.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const c=ry(o);return c?c.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=wn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:U4})}lowercase(t=wn.lowercase){return this.transform(n=>Es(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Es(n)||n===n.toLowerCase()})}uppercase(t=wn.uppercase){return this.transform(n=>Es(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Es(n)||n===n.toUpperCase()})}}lh.prototype=sA.prototype;let L4=new Date(""),B4=e=>Object.prototype.toString.call(e)==="[object Date]";class vg extends Li{constructor(){super({type:"date",check(t){return B4(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,a)=>!a.spec.coerce||a.isType(t)||t===null?t:(t=A4(t),isNaN(t)?vg.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let a;if(bc.isRef(t))a=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);a=s}return a}min(t,n=ny.min){let a=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(a)}})}max(t,n=ny.max){let a=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(a)}})}}vg.INVALID_DATE=L4;const F4=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/;function I4(e){return typeof e=="string"&&F4.test(e)}const z4={name:"uuid",message:"Must be a valid UUID",test(e){return e===void 0||I4(e)}},lA={name:"url",message:"URL must be valid",test(e,t){if(e===void 0)return!0;try{return new URL(e||""),!0}catch{return!1}}},oA={name:"http-protocol",message:"URL must use http or https protocol",test(e){if(e===void 0)return!0;try{const t=new URL(e||"");return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}},q4={name:"base-url",message:"URL must be a base URL with no path, query, nor hash",test(e){if(e===void 0)return!0;try{const t=new URL(e||"");return t.pathname==="/"&&t.search===""&&t.hash===""}catch{return!1}}},V4={name:"graphql-url-path",message:"URL must be have /graphql path",test(e){if(e===void 0)return!0;try{return new URL(e||"").pathname==="/graphql"}catch{return!1}}},uA={name:"does-not-have-trailing-slash",message:"URL must not have a trailing slash",test(e){return e===void 0?!0:!e.endsWith("/")}},cA=()=>lh().trim().test(lA).test(oA).test(V4).test(uA),fA=()=>lh().trim().test(lA).test(oA).test(q4).test(uA),H4=()=>lh().trim().test(z4),P4=({text:e})=>g.jsx(u1,{placement:"top",overlay:g.jsx(ng,{children:e}),trigger:["hover","click","focus"],children:g.jsx(mg,{className:"text-muted ms-1",style:{cursor:"pointer"}})}),G4=Lr(`
|
|
168
|
+
`+(h!==c?`result of cast: ${h}`:""))}return o}_cast(t,n){let a=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return a===void 0&&(a=this.getDefault(n)),a}_validate(t,n={},a,s){let{path:o,originalValue:c=t,strict:h=this.spec.strict}=n,d=t;h||(d=this._cast(d,Object.assign({assert:!1},n)));let p=[];for(let v of Object.values(this.internalTests))v&&p.push(v);this.runTests({path:o,value:d,originalValue:c,options:n,tests:p},a,v=>{if(v.length)return s(v,d);this.runTests({path:o,value:d,originalValue:c,options:n,tests:this.tests},a,s)})}runTests(t,n,a){let s=!1,{tests:o,value:c,originalValue:h,path:d,options:p}=t,v=A=>{s||(s=!0,n(A,c))},b=A=>{s||(s=!0,a(A,c))},y=o.length,_=[];if(!y)return b([]);let x={value:c,originalValue:h,path:d,options:p,schema:this};for(let A=0;A<o.length;A++){const N=o[A];N(x,v,function(R){R&&(Array.isArray(R)?_.push(...R):_.push(R)),--y<=0&&b(_)})}}asNestedTest({key:t,index:n,parent:a,parentPath:s,originalParent:o,options:c}){const h=t??n;if(h==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof h=="number";let p=a[h];const v=Object.assign({},c,{strict:!0,parent:a,value:p,originalValue:o[h],key:void 0,[d?"index":"key"]:h,path:d||h.includes(".")?`${s||""}[${d?h:`"${h}"`}]`:(s?`${s}.`:"")+t});return(b,y,_)=>this.resolve(v)._validate(p,v,y,_)}validate(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return new Promise((c,h)=>s._validate(t,n,(d,p)=>{yn.isError(d)&&(d.value=p),h(d)},(d,p)=>{d.length?h(new yn(d,p,void 0,void 0,o)):c(p)}))}validateSync(t,n){var a;let s=this.resolve(Object.assign({},n,{value:t})),o,c=(a=n==null?void 0:n.disableStackTrace)!=null?a:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(h,d)=>{throw yn.isError(h)&&(h.value=d),h},(h,d)=>{if(h.length)throw new yn(h,t,void 0,void 0,c);o=d}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,a=>{if(yn.isError(a))return!1;throw a})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(a){if(yn.isError(a))return!1;throw a}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Gl(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const a=this.clone({nullable:t});return a.internalTests.nullable=Il({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),a}optionality(t,n){const a=this.clone({optional:t});return a.internalTests.optionality=Il({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),a}optional(){return this.optionality(!0)}defined(t=Gr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Gr.notNull){return this.nullability(!1,t)}required(t=Gr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Gr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let a=this.clone(),s=Il(n),o=n.exclusive||n.name&&a.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(a.exclusiveTests[n.name]=!!n.exclusive),a.tests=a.tests.filter(c=>!(c.OPTIONS.name===n.name&&(o||c.OPTIONS.test===s.OPTIONS.test))),a.tests.push(s),a}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let a=this.clone(),s=aA(t).map(o=>new bc(o));return s.forEach(o=>{o.isSibling&&a.deps.push(o.key)}),a.conditions.push(typeof n=="function"?new Nd(s,n):Nd.fromOptions(s,n)),a}typeError(t){let n=this.clone();return n.internalTests.typeError=Il({message:t,name:"typeError",skipAbsent:!0,test(a){return this.schema._typeCheck(a)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Gr.oneOf){let a=this.clone();return t.forEach(s=>{a._whitelist.add(s),a._blacklist.delete(s)}),a.internalTests.whiteList=Il({message:n,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,c=o.resolveAll(this.resolve);return c.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:c}})}}),a}notOneOf(t,n=Gr.notOneOf){let a=this.clone();return t.forEach(s=>{a._blacklist.add(s),a._whitelist.delete(s)}),a.internalTests.blacklist=Il({message:n,name:"notOneOf",test(s){let o=this.schema._blacklist,c=o.resolveAll(this.resolve);return c.includes(s)?this.createError({params:{values:Array.from(o).join(", "),resolved:c}}):!0}}),a}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:a,meta:s,optional:o,nullable:c}=n.spec;return{meta:s,label:a,optional:o,nullable:c,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((d,p,v)=>v.findIndex(b=>b.OPTIONS.name===d.OPTIONS.name)===p).map(d=>{const p=d.OPTIONS.params&&t?uA(Object.assign({},d.OPTIONS.params),t):d.OPTIONS.params;return{name:d.OPTIONS.name,params:p}})}}get"~standard"(){const t=this;return{version:1,vendor:"yup",async validate(a){try{return{value:await t.validate(a,{abortEarly:!1})}}catch(s){if(s instanceof yn)return{issues:fA(s)};throw s}}}}}Li.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Li.prototype[`${e}At`]=function(t,n,a={}){const{parent:s,parentPath:o,schema:c}=k4(this,t,n,a.context);return c[e](s&&s[o],Object.assign({},a,{parent:s,path:t}))};for(const e of["equals","is"])Li.prototype[e]=Li.prototype.oneOf;for(const e of["not","nope"])Li.prototype[e]=Li.prototype.notOneOf;const $4=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function L4(e){const t=ry(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ry(e){var t,n;const a=$4.exec(e);return a?{year:Aa(a[1]),month:Aa(a[2],1)-1,day:Aa(a[3],1),hour:Aa(a[4]),minute:Aa(a[5]),second:Aa(a[6]),millisecond:a[7]?Aa(a[7].substring(0,3)):0,precision:(t=(n=a[7])==null?void 0:n.length)!=null?t:void 0,z:a[8]||void 0,plusMinus:a[9]||void 0,hourOffset:Aa(a[10]),minuteOffset:Aa(a[11])}:null}function Aa(e,t=0){return Number(e)||t}let B4=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,F4=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,I4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,z4="^\\d{4}-\\d{2}-\\d{2}",q4="\\d{2}:\\d{2}:\\d{2}",V4="(([+-]\\d{2}(:?\\d{2})?)|Z)",H4=new RegExp(`${z4}T${q4}(\\.\\d+)?${V4}$`),P4=e=>Es(e)||e===e.trim(),G4={}.toString();function lh(){return new dA}class dA extends Li{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce||a.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===G4?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Gr.required,name:"required",skipAbsent:!0,test:a=>!!a.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=An.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(a){return a.length===this.resolve(t)}})}min(t,n=An.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a.length>=this.resolve(t)}})}max(t,n=An.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(a){return a.length<=this.resolve(t)}})}matches(t,n){let a=!1,s,o;return n&&(typeof n=="object"?{excludeEmptyString:a=!1,message:s,name:o}=n:s=n),this.test({name:o||"matches",message:s||An.matches,params:{regex:t},skipAbsent:!0,test:c=>c===""&&a||c.search(t)!==-1})}email(t=An.email){return this.matches(B4,{name:"email",message:t,excludeEmptyString:!0})}url(t=An.url){return this.matches(F4,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=An.uuid){return this.matches(I4,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",a,s;return t&&(typeof t=="object"?{message:n="",allowOffset:a=!1,precision:s=void 0}=t:n=t),this.matches(H4,{name:"datetime",message:n||An.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||An.datetime_offset,params:{allowOffset:a},skipAbsent:!0,test:o=>{if(!o||a)return!0;const c=ry(o);return c?!!c.z:!1}}).test({name:"datetime_precision",message:n||An.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const c=ry(o);return c?c.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=An.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:P4})}lowercase(t=An.lowercase){return this.transform(n=>Es(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Es(n)||n===n.toLowerCase()})}uppercase(t=An.uppercase){return this.transform(n=>Es(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Es(n)||n===n.toUpperCase()})}}lh.prototype=dA.prototype;let Y4=new Date(""),K4=e=>Object.prototype.toString.call(e)==="[object Date]";class vg extends Li{constructor(){super({type:"date",check(t){return K4(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,a)=>!a.spec.coerce||a.isType(t)||t===null?t:(t=L4(t),isNaN(t)?vg.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let a;if(bc.isRef(t))a=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);a=s}return a}min(t,n=ny.min){let a=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(a)}})}max(t,n=ny.max){let a=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(a)}})}}vg.INVALID_DATE=Y4;const Q4=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/;function X4(e){return typeof e=="string"&&Q4.test(e)}const Z4={name:"uuid",message:"Must be a valid UUID",test(e){return e===void 0||X4(e)}},hA={name:"url",message:"URL must be valid",test(e,t){if(e===void 0)return!0;try{return new URL(e||""),!0}catch{return!1}}},pA={name:"http-protocol",message:"URL must use http or https protocol",test(e){if(e===void 0)return!0;try{const t=new URL(e||"");return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}},J4={name:"base-url",message:"URL must be a base URL with no path, query, nor hash",test(e){if(e===void 0)return!0;try{const t=new URL(e||"");return t.pathname==="/"&&t.search===""&&t.hash===""}catch{return!1}}},W4={name:"graphql-url-path",message:"URL must be have /graphql path",test(e){if(e===void 0)return!0;try{return new URL(e||"").pathname==="/graphql"}catch{return!1}}},mA={name:"does-not-have-trailing-slash",message:"URL must not have a trailing slash",test(e){return e===void 0?!0:!e.endsWith("/")}},vA=()=>lh().trim().test(hA).test(pA).test(W4).test(mA),yA=()=>lh().trim().test(hA).test(pA).test(J4).test(mA),e6=()=>lh().trim().test(Z4),t6=({text:e})=>g.jsx(u1,{placement:"top",overlay:g.jsx(ng,{children:e}),trigger:["hover","click","focus"],children:g.jsx(mg,{className:"text-muted ms-1",style:{cursor:"pointer"}})}),n6=Lr(`
|
|
169
169
|
mutation AddCasino($input: HubAddCasinoInput!) {
|
|
170
170
|
hubAddCasino(input: $input) {
|
|
171
171
|
casino {
|
|
@@ -176,7 +176,7 @@ attempted value: ${c}
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
`),
|
|
179
|
+
`),r6={name:"moneypot.com",baseUrl:"https://moneypot.com",graphqlUrl:"https://api.moneypot.com/graphql",apiKey:""},a6=gc().shape({name:sh().required(),baseUrl:yA().required(),graphqlUrl:vA().required(),apiKey:e6().required()}),i6=Gt(({show:e,onHide:t})=>{const n=sn(),[a]=UT(n,{document:n6}),o=ih({initialValues:r6,validationSchema:a6,onSubmit:async(c,{setSubmitting:h,setStatus:d})=>(d(null),h(!0),a({variables:{input:{name:c.name,baseUrl:c.baseUrl,graphqlUrl:c.graphqlUrl,apiKey:c.apiKey}}}).then(p=>{var b;((b=p.hubAddCasino)==null?void 0:b.casino)&&(n.refetchCasinos(),t())}).catch(p=>{d(Qn(p))}).finally(()=>{h(!1)}))});return g.jsx(Pt,{show:e,onHide:t,size:"lg",children:g.jsxs(He,{onSubmit:o.handleSubmit,children:[g.jsx(Pt.Header,{closeButton:!0,children:g.jsx(Pt.Title,{children:"Add Casino"})}),g.jsxs(Pt.Body,{children:[o.status&&g.jsx(vr,{variant:"danger",className:"mb-3",children:o.status}),g.jsxs("fieldset",{disabled:o.isSubmitting,children:[g.jsxs(He.Group,{children:[g.jsx(He.Label,{children:"Name (for your own reference)"}),g.jsx(He.Control,{type:"text",name:"name",placeholder:"Ex: moneypot.com",value:o.values.name,onChange:o.handleChange,onBlur:o.handleBlur,isInvalid:o.touched.name&&!!o.errors.name}),g.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.name})]}),g.jsxs(He.Group,{className:"mt-2",children:[g.jsx(He.Label,{children:"Website base URL"}),g.jsx(He.Control,{type:"text",name:"baseUrl",placeholder:"Ex: https://moneypot.com",value:o.values.baseUrl,onChange:o.handleChange,onBlur:o.handleBlur,isInvalid:o.touched.baseUrl&&!!o.errors.baseUrl}),g.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.baseUrl})]}),g.jsxs(He.Group,{className:"mt-2",children:[g.jsx(He.Label,{children:"GraphQL URL"}),g.jsx(He.Control,{type:"text",name:"graphqlUrl",placeholder:"Ex: https://api.moneypot.com/graphql",value:o.values.graphqlUrl,onChange:o.handleChange,onBlur:o.handleBlur,isInvalid:o.touched.graphqlUrl&&!!o.errors.graphqlUrl}),g.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.graphqlUrl})]}),g.jsxs(He.Group,{className:"mt-2",children:[g.jsxs(He.Label,{children:["Controller API Key"," ",g.jsx(t6,{text:"This should be a valid api key that you created for your controller on the casino website"})]}),g.jsx(He.Control,{type:"text",name:"apiKey",placeholder:"Ex: 01234567-89ab-cdef-0123-456789abcdef",value:o.values.apiKey,onChange:o.handleChange,onBlur:o.handleBlur,isInvalid:o.touched.apiKey&&!!o.errors.apiKey}),g.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.apiKey})]})]})]}),g.jsx(Pt.Footer,{children:g.jsx(Jt,{type:"submit",disabled:o.isSubmitting,children:o.isSubmitting?"Testing...":"Test connection and save"})})]})})}),s6=Gt(()=>{var a;const e=sn(),[t,n]=S.useState(!1);return g.jsxs("div",{children:[g.jsx(i6,{show:t,onHide:()=>n(!1)}),g.jsxs("h2",{children:["Casinos",g.jsx(Jt,{className:"float-end",onClick:()=>n(!0),children:"Add casino"})]}),g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"ID"}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{children:"GraphQL URL"}),g.jsx("th",{children:"Added"})]})}),g.jsx("tbody",{children:(a=e.loggedIn)==null?void 0:a.casinos.map(s=>g.jsxs("tr",{children:[g.jsx("td",{children:g.jsx(Gn,{to:`/casinos/${s.id}`,children:s.id})}),g.jsx("td",{children:s.name}),g.jsxs("td",{style:{whiteSpace:"nowrap"},children:[g.jsx("span",{className:"user-select-all",children:s.baseUrl})," ",g.jsx("a",{href:s.baseUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:g.jsx(Qv,{style:{verticalAlign:"baseline"}})})]}),g.jsxs("td",{style:{whiteSpace:"nowrap"},children:[g.jsx("span",{className:"user-select-all",children:s.graphqlUrl})," ",g.jsx("a",{href:s.graphqlUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:g.jsx(Qv,{style:{verticalAlign:"baseline"}})})]}),g.jsx("td",{children:g.jsx(Va,{date:Ps(s.id),variant:"long"})})]},s.id))})]})]})});function Pi(){var a,s;const{casinoId:e}=pO(),t=sn();return S.useEffect(()=>{var o;e&&!((o=t.loggedIn)!=null&&o.casinos.find(c=>c.id===e))&&console.warn(`Casino ${e} not found`)},[e,(a=t.loggedIn)==null?void 0:a.casinos]),((s=t.loggedIn)==null?void 0:s.casinos.find(o=>o.id===e))||null}const zx=[{path:"",title:"Casino"},{path:"users",title:"Users"},{path:"experiences",title:"Experiences"},{path:"bankrolls",title:"Bankrolls"},{path:"currencies",title:"Currencies"},{path:"deposits",title:"Deposits"},{path:"withdrawals",title:"Withdrawals"},{path:"jwks",title:"Pubkeys"}];function l6(e,t){return e.sort((n,a)=>a.length-n.length).find(n=>t.includes("/"+n))}const o6=Gt(()=>{var h;const e=Ha(),t=sn(),n=jd(),a=Pi();if(!t.loggedIn)return g.jsx("div",{children:"You must be logged in"});if(!a)return g.jsx(aa,{});const s=l6(zx.map(d=>d.path),e.pathname),o=e.pathname.match(/^\/casinos\/[^/]+/),c=d=>{var b;if(!o)return;const p=d.target.value,v=(b=t.loggedIn)==null?void 0:b.casinos.find(y=>y.id===p);v&&n(e.pathname.replace(/\/casinos\/[^/]+/,`/casinos/${v.id}`))};return g.jsxs("div",{children:[g.jsxs(c1,{direction:"horizontal",style:{alignItems:"baseline"},children:[g.jsxs(zm,{children:[g.jsx(zm.Item,{linkAs:Gn,linkProps:{to:"/casinos"},children:"Casinos"}),g.jsx(zm.Item,{active:!0,children:a.name})]}),g.jsxs(He.Select,{className:"ms-2 d-inline-block",style:{width:"auto"},size:"sm",value:a.id,onChange:c,children:[g.jsx("option",{disabled:!0,children:"Select casino"}),(h=t.loggedIn)==null?void 0:h.casinos.map(d=>g.jsx("option",{value:d.id,children:d.name},d.id))]})]}),g.jsx("ul",{className:"nav nav-tabs mb-4 ",children:zx.map(d=>g.jsx("li",{className:"nav-item",children:g.jsx(Gn,{to:d.path,className:`nav-link ${s===d.path?"active":""}`,children:d.title})},d.path))}),g.jsx(yO,{})]})}),Bi=({text:e,sourceRef:t,popoverDuration:n=1e3,popoverPlacement:a="top"})=>{const[s,o]=S.useState("idle"),[c,h]=S.useState(!1),[d,p]=S.useState("success"),v=S.useRef(null),b=S.useRef(null),y=S.useRef(null);S.useEffect(()=>()=>{v.current&&clearTimeout(v.current),b.current&&clearTimeout(b.current)},[]);const _=O=>{p(O),h(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{h(!1)},n)},x=()=>{v.current&&clearTimeout(v.current),navigator.clipboard.writeText(e).then(()=>{o("success"),v.current=setTimeout(()=>o("idle"),n),_("success")}).catch(O=>{console.error("Failed to copy text: ",O),o("error"),v.current=setTimeout(()=>o("idle"),n),_("error")})},A=()=>{switch(s){case"success":return g.jsx(Zv,{className:"text-success-emphasis"});case"error":return g.jsx(ty,{className:"text-danger-emphasis"});default:return g.jsx(nA,{})}},N=()=>d==="success"?"Copied!":"Error";return g.jsxs(g.Fragment,{children:[g.jsx(Jt,{ref:y,variant:"outline-secondary",size:"sm",onClick:x,"aria-label":"Copy to clipboard",children:A()}),g.jsx(rg,{show:c,target:(t==null?void 0:t.current)||y.current,placement:a,children:g.jsx(Fv,{id:"copy-popover",children:g.jsx(Fv.Body,{children:d==="success"?g.jsxs("span",{className:"text-success-emphasis",children:[g.jsx(Zv,{})," ",N()]}):g.jsxs("span",{className:"text-danger-emphasis",children:[g.jsx(ty,{})," ",N()]})})})})]})},u6=Lr(`
|
|
180
180
|
query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {
|
|
181
181
|
hubCasinoById(id: $casinoId) {
|
|
182
182
|
id
|
|
@@ -196,7 +196,7 @@ attempted value: ${c}
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`),
|
|
199
|
+
`),c6=Gt(()=>{var p,v,b,y;const e=sn(),t=Pi(),{data:n,loading:a,error:s,fetchMore:o}=Hs(e,{document:u6,variables:{casinoId:t.id,after:null}}),c=()=>{o({variables:{casinoId:t.id,after:null}})},h=()=>{var _,x;o({variables:{casinoId:t.id,after:(x=(_=n==null?void 0:n.hubCasinoById)==null?void 0:_.hubUsersByCasinoId)==null?void 0:x.pageInfo.endCursor}})},d=((v=(p=n==null?void 0:n.hubCasinoById)==null?void 0:p.hubUsersByCasinoId)==null?void 0:v.edges.flatMap(_=>(_==null?void 0:_.node)||[]))||[];return g.jsxs("div",{children:[g.jsx("h2",{children:"Users"}),a&&g.jsx("div",{children:"Loading..."}),s&&g.jsx(vr,{variant:"danger",children:Qn(s)}),g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Added"}),g.jsx("th",{children:"Username"}),g.jsx("th",{children:"ID"}),g.jsx("th",{children:"MP User ID"})]})}),g.jsx("tbody",{children:d.map(_=>g.jsxs("tr",{children:[g.jsx("td",{children:g.jsx(Va,{date:Ps(_.id),variant:"long"})}),g.jsx("td",{children:_.uname}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:_.id})," ",g.jsx(Bi,{text:_.id})]}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:_.mpUserId})," ",g.jsx(Bi,{text:_.mpUserId})]})]},_.id))})]}),g.jsxs("div",{children:[g.jsx(Jt,{variant:"outline-secondary",onClick:c,disabled:a,children:"First page"}),g.jsx(Jt,{variant:"outline-secondary",className:"ms-2",onClick:h,disabled:a||!((y=(b=n==null?void 0:n.hubCasinoById)==null?void 0:b.hubUsersByCasinoId)!=null&&y.pageInfo.hasNextPage),children:"Load more"})]})]})}),f6=Lr(`
|
|
200
200
|
mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {
|
|
201
201
|
updateHubCasinoById(input: $input) {
|
|
202
202
|
hubCasino {
|
|
@@ -204,7 +204,7 @@ attempted value: ${c}
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
`),
|
|
207
|
+
`),d6=gc().shape({name:sh().required(),baseUrl:yA().required(),graphqlUrl:vA().required()}),h6=Gt(({show:e,onHide:t,casino:n})=>{const a=sn(),s={name:n.name,baseUrl:n.baseUrl,graphqlUrl:n.graphqlUrl},o=ih({initialValues:s,validationSchema:d6,onSubmit:async(c,{setSubmitting:h,setStatus:d})=>{d(null),lo(a,{document:f6,variables:{input:{id:n.id,hubCasinoPatch:{name:c.name,baseUrl:c.baseUrl,graphqlUrl:c.graphqlUrl}}}}).then(p=>{var b;((b=p.updateHubCasinoById)==null?void 0:b.hubCasino)&&(a.refetchCasinos(),t())}).catch(p=>{d(Qn(p))}).finally(()=>{h(!1)})}});return g.jsx(Pt,{show:e,onHide:t,size:"lg",children:g.jsxs(He,{onSubmit:o.handleSubmit,children:[g.jsx(Pt.Header,{closeButton:!0,children:g.jsx(Pt.Title,{children:"Edit Casino"})}),g.jsxs(Pt.Body,{children:[o.status&&g.jsx(vr,{variant:"danger",className:"mb-3",children:o.status}),g.jsxs("fieldset",{disabled:o.isSubmitting,children:[g.jsxs(He.Group,{children:[g.jsx(He.Label,{children:"Name (for your own reference)"}),g.jsx(He.Control,{type:"text",name:"name",placeholder:"Ex: moneypot.com",value:o.values.name,onChange:o.handleChange,onBlur:o.handleBlur,isInvalid:o.touched.name&&!!o.errors.name,isValid:o.touched.name&&!o.errors.name}),g.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.name})]}),g.jsxs(He.Group,{className:"mt-2",children:[g.jsx(He.Label,{children:"Website base URL"}),g.jsx(He.Control,{type:"text",name:"baseUrl",placeholder:"Ex: https://moneypot.com",value:o.values.baseUrl,onChange:o.handleChange,onBlur:o.handleBlur,isInvalid:o.touched.baseUrl&&!!o.errors.baseUrl}),g.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.baseUrl})]}),g.jsxs(He.Group,{className:"mt-2",children:[g.jsx(He.Label,{children:"GraphQL URL"}),g.jsx(He.Control,{type:"text",name:"graphqlUrl",placeholder:"Ex: https://api.moneypot.com/graphql",value:o.values.graphqlUrl,onChange:o.handleChange,onBlur:o.handleBlur,isInvalid:o.touched.graphqlUrl&&!!o.errors.graphqlUrl}),g.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.graphqlUrl})]})]})]}),g.jsx(Pt.Footer,{children:g.jsx(Jt,{type:"submit",disabled:o.isSubmitting,children:"Save casino"})})]})})}),p6=Gt(()=>{const e=Pi(),[t,n]=S.useState(!1);return g.jsxs("div",{children:[g.jsx(h6,{show:t,onHide:()=>n(!1),casino:e}),g.jsxs("h2",{children:["Casino: ",e.name,g.jsx(Jt,{className:"ms-2",onClick:()=>n(!0),children:"Edit"})]}),g.jsxs("ul",{children:[g.jsxs("li",{children:[g.jsx("strong",{children:"Name:"})," ",e.name]}),g.jsxs("li",{children:[g.jsx("strong",{children:"Added:"})," ",g.jsx(Va,{date:Ps(e.id),variant:"long"})]}),g.jsxs("li",{children:[g.jsx("strong",{children:"Base URL:"})," ",g.jsx("a",{href:e.baseUrl,target:"_blank",rel:"noreferrer",children:e.baseUrl})]}),g.jsxs("li",{children:[g.jsx("strong",{children:"GraphQL URL:"})," ",g.jsx("a",{href:e.graphqlUrl,target:"_blank",rel:"noreferrer",children:e.graphqlUrl})]})]})]})}),m6=Lr(`
|
|
208
208
|
query GetCasinoExperiences($casinoId: UUID!) {
|
|
209
209
|
hubCasinoById(id: $casinoId) {
|
|
210
210
|
id
|
|
@@ -217,7 +217,7 @@ attempted value: ${c}
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
`),
|
|
220
|
+
`),v6=Gt(()=>{var c,h;const e=sn(),t=Pi();console.log("CasinoExperiencesList. casino is",t.id);const{data:n,loading:a,error:s}=Hs(e,{document:m6,variables:{casinoId:t.id}});if(a)return g.jsx("div",{children:"Loading..."});if(s)return g.jsx(vr,{variant:"danger",children:Qn(s)});if(!n)return g.jsx(aa,{});const o=((h=(c=n.hubCasinoById)==null?void 0:c.hubExperiencesByCasinoId)==null?void 0:h.nodes.flatMap(d=>d||[]))||[];return g.jsxs("div",{children:[g.jsxs("p",{children:["This is the ",g.jsx("code",{children:"hub.experience"})," table for the current casino."]}),g.jsx("p",{children:"When you create a new experience on the Moneypot casino's website, it isn't automatically added here until the hub server sees an incoming experience deposit from a user."}),g.jsxs("p",{children:["Or you can look for missing experiences on the Moneypot API right now:"," ",g.jsx(Jt,{size:"sm",disabled:!0,children:"Force sync (TODO)"})]}),g.jsxs("p",{children:["Or you can add a new experience to the Moneypot API from here:"," ",g.jsx(Jt,{size:"sm",disabled:!0,children:"Add experience (TODO)"})]}),g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Added"}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"ID"}),g.jsx("th",{children:"MP Experience ID"})]})}),g.jsx("tbody",{children:o.map(d=>g.jsxs("tr",{children:[g.jsx("td",{children:g.jsx(Va,{date:Ps(d.id),variant:"long"})}),g.jsx("td",{children:d.name}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:d.id})," ",g.jsx(Bi,{text:d.id})]}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:d.mpExperienceId})," ",g.jsx(Bi,{text:d.mpExperienceId})]})]},d.id))})]})]})}),y6=Lr(`
|
|
221
221
|
mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {
|
|
222
222
|
updateHubBankrollById(input: $input) {
|
|
223
223
|
hubBankroll {
|
|
@@ -227,7 +227,7 @@ attempted value: ${c}
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
`),
|
|
230
|
+
`),g6=gc().shape({displayAmount:Z1().required().min(0).label("amount")}),b6=Gt(({show:e,onHide:t,bankroll:n,onSuccess:a})=>g.jsxs(Pt,{show:e,onHide:t,size:"lg",children:[g.jsx(Pt.Header,{closeButton:!0,children:g.jsxs(Pt.Title,{children:["Edit Bankroll ",n&&`- ${n.currencyKey}`]})}),g.jsx(S6,{onHide:t,bankroll:n,onSuccess:a})]})),S6=Gt(({onHide:e,bankroll:t,onSuccess:n})=>{const a=sn(),[s,{loading:o,error:c}]=UT(a,{document:y6}),h={displayAmount:Math.floor(t.amount/t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitScale)},p=ih({initialValues:h,validationSchema:g6,onSubmit:async(v,{setSubmitting:b,setStatus:y})=>{y(null);const _=Math.floor(v.displayAmount*t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitScale);s({variables:{input:{id:t.id,hubBankrollPatch:{amount:_}}}}).then(x=>{var N;((N=x.updateHubBankrollById)==null?void 0:N.hubBankroll)?(a.refetchCasinos(),n(),e()):y("Failed to update bankroll")}).catch(x=>{y(Qn(x))}).finally(()=>{b(!1)})}});return g.jsxs(He,{onSubmit:p.handleSubmit,children:[g.jsxs(Pt.Body,{children:[(p.status||c)&&g.jsx(vr,{variant:"danger",className:"mb-3",children:p.status||(c==null?void 0:c.message)}),g.jsx("fieldset",{disabled:p.isSubmitting||o,children:g.jsxs(He.Group,{children:[g.jsxs(He.Label,{children:["Amount (",t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitName,")"]}),g.jsx(He.Control,{type:"number",name:"displayAmount",step:1,value:p.values.displayAmount,onChange:p.handleChange,onBlur:p.handleBlur,isInvalid:p.touched.displayAmount&&!!p.errors.displayAmount,isValid:p.touched.displayAmount&&!p.errors.displayAmount}),g.jsx(He.Control.Feedback,{type:"invalid",children:p.errors.displayAmount})]})})]}),g.jsx(Pt.Footer,{children:g.jsx(Jt,{type:"submit",disabled:p.isSubmitting||o,children:o?"Saving...":"Save bankroll"})})]})}),E6=Lr(`
|
|
231
231
|
query GetCasinoBankrolls($casinoId: UUID!) {
|
|
232
232
|
hubCasinoById(id: $casinoId) {
|
|
233
233
|
id
|
|
@@ -249,7 +249,7 @@ attempted value: ${c}
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
`),
|
|
252
|
+
`),_6=Gt(()=>{var b,y;const e=sn(),t=Pi(),[n,a]=S.useState(null),{data:s,loading:o,error:c,reload:h}=Hs(e,{skip:!t,document:E6,variables:{casinoId:t.id}});if(!t)return g.jsx(aa,{});if(o)return g.jsx("div",{children:"Loading..."});if(c)return g.jsx(vr,{variant:"danger",children:Qn(c)});if(!s)return g.jsx(aa,{});const d=((y=(b=s.hubCasinoById)==null?void 0:b.hubBankrollsByCasinoId)==null?void 0:y.nodes.flatMap(_=>_||[]))||[],p=t.hubCurrenciesByCasinoId.nodes.filter(_=>!d.some(x=>x.currencyKey===_.key)).map(_=>_.key);console.log("bankrolls",d),console.log("missingBankrollsKeys",p);const v=()=>{h()};return g.jsxs("div",{children:[n&&g.jsx(b6,{show:!!n,onHide:()=>a(null),bankroll:n,onSuccess:v}),g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Currency"}),g.jsx("th",{children:"Amount"}),g.jsx("th",{children:"Bets"}),g.jsx("th",{children:"Expected Value"}),g.jsx("th",{children:"Wagered"})]})}),g.jsxs("tbody",{children:[d.map(_=>g.jsxs("tr",{children:[g.jsx("td",{children:_.currencyKey}),g.jsxs("td",{children:[Ny(_.amount,_.hubCurrencyByCurrencyKeyAndCasinoId)," ",g.jsx(Jt,{size:"sm",variant:"outline-secondary",onClick:()=>{a({..._,hubCurrencyByCurrencyKeyAndCasinoId:_.hubCurrencyByCurrencyKeyAndCasinoId})},children:"Edit"})]}),g.jsx("td",{children:_.bets}),g.jsx("td",{children:_.expectedValue}),g.jsx("td",{children:_.wagered})]},_.id)),p.map(_=>g.jsxs("tr",{children:[g.jsx("td",{children:_}),g.jsxs("td",{colSpan:4,children:["No bankroll",g.jsx(Jt,{size:"sm",variant:"outline-primary",className:"ms-2",onClick:()=>{alert("TODO")},children:"Create bankroll"})]})]},_))]})]})]})}),x6=Lr(`
|
|
253
253
|
query GetCasinoCurrencies($casinoId: UUID!) {
|
|
254
254
|
hubCasinoById(id: $casinoId) {
|
|
255
255
|
id
|
|
@@ -262,7 +262,7 @@ attempted value: ${c}
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
`),
|
|
265
|
+
`),O6=Gt(()=>{var c,h;const e=sn(),t=Pi(),{data:n,loading:a,error:s}=Hs(e,{document:x6,variables:{casinoId:t.id}});if(a)return g.jsx("div",{children:"Loading..."});if(s)return g.jsx(vr,{variant:"danger",children:Qn(s)});if(!n)return g.jsx(aa,{});const o=((h=(c=n.hubCasinoById)==null?void 0:c.hubCurrenciesByCasinoId)==null?void 0:h.nodes.flatMap(d=>d||[]))||[];return g.jsx("div",{children:g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Key"}),g.jsx("th",{children:"Display unit name"}),g.jsx("th",{children:"Display unit scale"})]})}),g.jsx("tbody",{children:o.map(d=>g.jsxs("tr",{children:[g.jsx("td",{children:d.key}),g.jsx("td",{children:d.displayUnitName}),g.jsx("td",{children:d.displayUnitScale})]},d.key))})]})})}),T6=Lr(`
|
|
266
266
|
query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {
|
|
267
267
|
hubCasinoById(id: $casinoId) {
|
|
268
268
|
hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
@@ -297,7 +297,7 @@ attempted value: ${c}
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
`),
|
|
300
|
+
`),w6=Gt(()=>{var c,h;const e=sn(),t=Pi(),{data:n,loading:a,error:s}=Hs(e,{document:T6,variables:{casinoId:t.id}});if(a)return g.jsx("div",{children:"Loading..."});if(s)return g.jsx(vr,{variant:"danger",children:Qn(s)});if(!n)return g.jsx(aa,{});const o=((h=(c=n.hubCasinoById)==null?void 0:c.hubDepositsByCasinoId)==null?void 0:h.edges.flatMap(d=>(d==null?void 0:d.node)||[]))||[];return g.jsx("div",{children:g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"When"}),g.jsx("th",{children:"ID"}),g.jsx("th",{children:"MP Transfer ID"}),g.jsx("th",{children:"User"}),g.jsx("th",{children:"Currency"}),g.jsx("th",{children:"Experience"})]})}),g.jsx("tbody",{children:o.map(d=>g.jsxs("tr",{children:[g.jsx("td",{children:g.jsx(Va,{date:Ps(d.id),variant:"long"})}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:d.id})," ",g.jsx(Bi,{text:d.id})]}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:d.mpTransferId})," ",g.jsx(Bi,{text:d.mpTransferId})]}),g.jsx("td",{children:g.jsx(Gn,{to:`/casinos/${t.id}/users/${d.userId}`,children:d.hubUserByUserId.uname})}),g.jsx("td",{children:Ny(d.amount,d.hubCurrencyByCurrencyKeyAndCasinoId)}),g.jsx("td",{children:g.jsx(Gn,{to:`/casinos/${t.id}/experiences/${d.hubExperienceByExperienceId.id}`,children:d.hubExperienceByExperienceId.name})})]},d.id))})]})})}),A6=Lr(`
|
|
301
301
|
query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {
|
|
302
302
|
hubCasinoById(id: $casinoId) {
|
|
303
303
|
hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
@@ -331,7 +331,7 @@ attempted value: ${c}
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
`),
|
|
334
|
+
`),N6=Gt(()=>{var c,h;const e=sn(),{casinoId:t}=pO();console.log("casinoId",t);const{data:n,loading:a,error:s}=Hs(e,{document:A6,variables:{casinoId:t}});if(a)return g.jsx("div",{children:"Loading..."});if(s)return g.jsx(vr,{variant:"danger",children:Qn(s)});if(!n)return g.jsx(aa,{});const o=((h=(c=n.hubCasinoById)==null?void 0:c.hubWithdrawalsByCasinoId)==null?void 0:h.edges.flatMap(d=>(d==null?void 0:d.node)||[]))||[];return g.jsx("div",{children:g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"When"}),g.jsx("th",{children:"ID"}),g.jsx("th",{children:"MP Transfer ID"}),g.jsx("th",{children:"User"}),g.jsx("th",{children:"Amount"}),g.jsx("th",{children:"Experience"}),g.jsx("th",{children:"Status"})]})}),g.jsx("tbody",{children:o.map(d=>g.jsxs("tr",{children:[g.jsx("td",{children:g.jsx(Va,{date:Ps(d.id),variant:"long"})}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:d.id})," ",g.jsx(Bi,{text:d.id})]}),g.jsxs("td",{children:[g.jsx("code",{className:"user-select-all",children:d.mpTransferId})," ",g.jsx(Bi,{text:d.mpTransferId})]}),g.jsx("td",{children:g.jsx(Gn,{to:`/casinos/${t}/users/${d.hubUserByUserId.id}`,children:d.hubUserByUserId.uname})}),g.jsx("td",{children:Ny(d.amount,d.hubCurrencyByCurrencyKeyAndCasinoId)}),g.jsx("td",{children:g.jsx(Gn,{to:`/casinos/${t}/experiences/${d.hubExperienceByExperienceId.id}`,children:d.hubExperienceByExperienceId.name})}),g.jsxs("td",{children:[d.status," ",g.jsx(Va,{date:d.statusAt,variant:"long"})]})]},d.id))})]})})}),C6=()=>{const e=jd();return S.useEffect(()=>{e("/casinos")},[e]),null},R6=Lr(`
|
|
335
335
|
query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {
|
|
336
336
|
hubCasinoById(id: $casinoId) {
|
|
337
337
|
hubJwkSetSnapshotsByCasinoId(
|
|
@@ -357,4 +357,4 @@ attempted value: ${c}
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
`),
|
|
360
|
+
`),D6=Gt(()=>{var y,_,x,A,N;const e=sn(),t=Pi(),[n,a]=S.useState(null),{data:s,loading:o,error:c}=Hs(e,{skip:!t,document:R6,variables:{casinoId:t.id,first:1,after:n}});if(!t)return g.jsx(aa,{});if(o)return g.jsx("div",{children:"Loading..."});if(c)return g.jsx(vr,{variant:"danger",children:Qn(c)});if(!s)return g.jsx(aa,{});const h=()=>{a(null)},d=()=>{var R,D;const O=(D=(R=s.hubCasinoById)==null?void 0:R.hubJwkSetSnapshotsByCasinoId)==null?void 0:D.pageInfo.endCursor;O&&a(O)},p=(_=(y=s.hubCasinoById)==null?void 0:y.hubJwkSetSnapshotsByCasinoId)==null?void 0:_.pageInfo.hasNextPage,v=(x=s.hubCasinoById)==null?void 0:x.hubJwkSetByCasinoId,b=((N=(A=s.hubCasinoById)==null?void 0:A.hubJwkSetSnapshotsByCasinoId)==null?void 0:N.edges.flatMap(O=>(O==null?void 0:O.node)||[]))||[];return g.jsxs("div",{children:[g.jsx("h2",{children:"Current public keys"}),g.jsx(ag,{className:"justify-content-center",children:g.jsx(Xd,{lg:6,children:g.jsxs(Ql,{children:[g.jsxs(Ql.Header,{children:["Last updated:"," ",v?g.jsx(Va,{date:v==null?void 0:v.updatedAt,variant:"long"}):"--"]}),g.jsx(Ql.Body,{children:v?g.jsx("pre",{children:JSON.stringify(v.jwks,null,2)}):g.jsx("p",{className:"text-danger text-center",children:"No public keys have been fetched from casino."})})]})})}),g.jsx("h2",{className:"mt-4",children:"History"}),g.jsxs("div",{className:"mb-3",children:[g.jsx(Jt,{variant:"outline-secondary",onClick:h,disabled:o,children:"First page"}),g.jsx(Jt,{variant:"outline-secondary",onClick:d,disabled:o||!p,className:"ms-2",children:"Next page"})]}),g.jsxs(Vi,{striped:!0,bordered:!0,hover:!0,children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Fetched"}),g.jsx("th",{children:"JWKS"})]})}),g.jsx("tbody",{children:b.map(O=>g.jsxs("tr",{children:[g.jsx("td",{children:g.jsx(Va,{date:Ps(O.id),variant:"long"})}),g.jsx("td",{children:g.jsx("pre",{children:JSON.stringify(O.jwks,null,2)})})]},O.id))})]})]})}),j6=ND([{path:"/",element:g.jsx(f4,{}),errorElement:g.jsx($x,{}),children:[{path:"*",element:g.jsx($x,{status:404})},{path:"/",element:g.jsx(C6,{})},{path:"/casinos",element:g.jsx(s6,{})},{path:"/casinos/:casinoId",element:g.jsx(o6,{}),children:[{path:"",element:g.jsx(p6,{})},{path:"users",element:g.jsx(c6,{})},{path:"experiences",element:g.jsx(v6,{})},{path:"bankrolls",element:g.jsx(_6,{})},{path:"currencies",element:g.jsx(O6,{})},{path:"deposits",element:g.jsx(w6,{})},{path:"withdrawals",element:g.jsx(N6,{})},{path:"jwks",element:g.jsx(D6,{})}]}]}],{basename:"/dashboard"}),k6=new FM,M6=new uj,U6=g.jsx(fj,{client:M6,children:g.jsx(IM,{store:k6,children:g.jsx(ID,{router:j6})})});MC.createRoot(document.getElementById("root")).render(U6)});export default $6();
|