@moneypot/hub 1.17.0-dev.1 → 1.17.0-dev.2
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/cli/add-casino.js +6 -3
- package/dist/dashboard/assets/index-32DtKox_.css +5 -0
- package/dist/dashboard/assets/index-B4xPUnuF.js +412 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/src/__generated__/graphql.d.ts +74 -32
- package/dist/src/__generated__/graphql.js +23 -14
- package/dist/src/db/index.js +29 -13
- package/dist/src/db/transaction.js +1 -1
- package/dist/src/hash-chain/db-hash-chain.d.ts +2 -1
- package/dist/src/hash-chain/db-hash-chain.js +11 -16
- package/dist/src/hash-chain/plugins/hub-reveal-hash-chain.js +9 -10
- package/dist/src/hash-chain/reveal-hash-chain.d.ts +3 -3
- package/dist/src/hash-chain/reveal-hash-chain.js +28 -5
- package/dist/src/plugins/chat/hub-chat-subscription.d.ts +1 -1
- package/dist/src/plugins/hub-authenticate.js +5 -5
- package/dist/src/plugins/hub-make-outcome-bet.d.ts +4 -44
- package/dist/src/plugins/hub-make-outcome-bet.js +2 -1
- package/dist/src/plugins/hub-put-alert.js +2 -2
- package/dist/src/plugins/listen-with-filter.d.ts +4 -3
- package/dist/src/plugins/listen-with-filter.js +65 -8
- package/dist/src/plugins/validate-fields.js +25 -33
- package/dist/src/process-transfers/index.js +1 -1
- package/dist/src/risk-policy.js +1 -1
- package/dist/src/services/jwt-service.js +1 -1
- package/dist/src/take-request/process-take-request.js +19 -13
- package/dist/src/validate-zod.d.ts +3 -0
- package/dist/src/validate-zod.js +19 -0
- package/package.json +3 -4
- package/dist/dashboard/assets/index-D7SlWXgD.js +0 -383
- package/dist/dashboard/assets/index-LZVcTrKv.css +0 -5
- package/dist/src/validate.d.ts +0 -9
- package/dist/src/validate.js +0 -91
|
@@ -1,383 +0,0 @@
|
|
|
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 F6=TC((Pn,Gn)=>{(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 Fs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dm={exports:{}},yu={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var 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 y=AC(),hm={exports:{}},gu={},pm={exports:{}},mm={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var 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,g=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=g;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,g=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,g=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 g},e.unstable_next=function(L){switch(g){case 1:case 2:case 3:var te=3;break;default:te=g}var le=g;g=te;try{return L()}finally{g=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=g;g=L;try{return te()}finally{g=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=g;return function(){var le=g;g=te;try{return L.apply(this,arguments)}finally{g=le}}}}(mm)),mm}var JS;function CC(){return JS||(JS=1,pm.exports=NC()),pm.exports}var vm={exports:{}},Ve={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/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 g(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=g(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
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
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),g=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:g,fetchPriority:_}):v==="script"&&a.d.X(d,{crossOrigin:b,integrity:g,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
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
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"),g=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 en=Object.prototype.hasOwnProperty,tn=e.unstable_scheduleCallback,kt=e.unstable_cancelCallback,at=e.unstable_shouldYield,Dn=e.unstable_requestPaint,At=e.unstable_now,la=e.unstable_getCurrentPriorityLevel,Zn=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,Yi=Math.log,bn=Math.LN2;function Js(r){return r>>>=0,r===0?32:31-(Yi(r)/bn|0)|0}var Fr=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 Ki(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 Ir(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=Fr;return Fr<<=1,(Fr&4194048)===0&&(Fr=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 Qi(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&&Xi(r,u,0),m!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=m&~(E&~i))}function Xi(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 Zi(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,Qa={};function pn(r,i){Jn(r,i),Jn(r+"Capture",i)}function Jn(r,i){for(Qa[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]*$"),Xa={},Za={};function xo(r){return en.call(Za,r)?!0:en.call(Xa,r)?!1:Sn.test(r)?Za[r]=!0:(Xa[r]=!0,!1)}function Wn(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,Sr;function Er(r){if(on===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);on=i&&i[1]||"",Sr=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+on+r+Sr}var Ji=!1;function Nt(r,i){if(!r||Ji)return"";Ji=!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
|
-
`),z=T.split(`
|
|
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
|
-
`+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{Ji=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Er(l):""}function Ja(r){switch(r.tag){case 26:case 27:case 5:return Er(r.type);case 16:return Er("Lazy");case 13:return Er("Suspense");case 19:return Er("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 Er("Activity");default:return""}}function Oo(r){try{var i="";do i+=Ja(r),r=r.return;while(r);return i}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
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 er(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="'+er(""+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 Wa=null,mh=null,wc=null;function wg(){if(wc)return wc;var r,i=mh,l=i.length,u,f="value"in Wa?Wa.value:Wa.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 Wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cc=_n(Wi),Ao=v({},Wi,{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({},Wi,{animationName:0,elapsedTime:0,pseudoElement:0}),NA=_n(AA),CA=v({},Wi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),RA=_n(CA),DA=v({},Wi,{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({},Wi,{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({},Wi,{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=Wa=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 jn=typeof Object.is=="function"?Object.is:rN;function jo(r,i){if(jn(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(!en.call(i,f)||!jn(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 es(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var ll={animationend:es("Animation","AnimationEnd"),animationiteration:es("Animation","AnimationIteration"),animationstart:es("Animation","AnimationStart"),transitionrun:es("Transition","TransitionRun"),transitionstart:es("Transition","TransitionStart"),transitioncancel:es("Transition","TransitionCancel"),transitionend:es("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 ts(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=ts("animationend"),Xg=ts("animationiteration"),Zg=ts("animationstart"),iN=ts("transitionrun"),sN=ts("transitionstart"),lN=ts("transitioncancel"),Jg=ts("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 _r(r,i){Wg.set(r,i),pn(i,[r])}var e0=new WeakMap;function tr(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 nr=[],ol=0,Nh=0;function jc(){for(var r=ol,i=Nh=ol=0;i<r;){var l=nr[i];nr[i++]=null;var u=nr[i];nr[i++]=null;var f=nr[i];nr[i++]=null;var m=nr[i];if(nr[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){nr[ol++]=r,nr[ol++]=i,nr[ol++]=l,nr[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 kn(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=kn(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=kn(31,l,i,f),r.elementType=Q,r.lanes=m,r;case x:return ns(l.children,f,m,i);case A:E=8,f|=24;break;case N:return r=kn(12,l,i,f|2),r.elementType=N,r.lanes=m,r;case C:return r=kn(13,l,i,f),r.elementType=C,r.lanes=m,r;case w:return r=kn(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=kn(E,l,i,f),i.elementType=r,i.type=u,i.lanes=m,i}function ns(r,i,l,u){return r=kn(7,r,u,i),r.lanes=l,r}function Dh(r,i,l){return r=kn(6,r,null,i),r.lanes=l,r}function jh(r,i,l){return i=kn(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,rr=[],ar=0,rs=null,ha=1,pa="";function as(r,i){fl[dl++]=Lc,fl[dl++]=$c,$c=r,Lc=i}function r0(r,i,l){rr[ar++]=ha,rr[ar++]=pa,rr[ar++]=rs,rs=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&&(as(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===rs;)rs=rr[--ar],rr[ar]=null,pa=rr[--ar],rr[ar]=null,ha=rr[--ar],rr[ar]=null}var mn=null,Mt=null,ct=!1,is=null,zr=!1,Uh=Error(a(519));function ss(r){var i=Error(a(418,""));throw $o(tr(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||ss(r)}function i0(r){for(mn=r.return;mn;)switch(mn.tag){case 5:case 13:zr=!1;return;case 27:case 3:zr=!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&&ss(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=Or(r.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++;r=r.nextSibling}Mt=null}}else i===27?(i=Mt,mi(r.type)?(r=tm,tm=null,Mt=r):Mt=i):Mt=mn?Or(r.stateNode.nextSibling):null;return!0}function Uo(){Mt=mn=null,ct=!1}function s0(){var r=is;return r!==null&&(Tn===null?Tn=r:Tn.push.apply(Tn,r),is=null),r}function $o(r){is===null?is=[r]:is.push(r)}var $h=Y(null),ls=null,ma=null;function ei(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;jn(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(!jn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function os(r){ls=r,ma=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function un(r){return l0(ls,r)}function Fc(r,i){return ls===null&&os(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,Ht={$$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 us=Y(null);function zh(){var r=us.current;return r!==null?r:Et.pooledCache}function Ic(r,i){i===null?ne(us,us.current):ne(us,i.pool)}function c0(){var r=zh();return r===null?null:{parent:Ht._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 ti=!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 ni(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ri(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,Zi(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;ti=!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:ti=!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),fi|=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 ai=0,Ge=null,vt=null,Ft=null,Hc=!1,vl=!1,cs=!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(!jn(r[l],i[l]))return!1;return!0}function Xh(r,i,l,u,f,m){return ai=m,Ge=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=r===null||r.memoizedState===null?tb:nb,cs=!1,m=l(u,f),cs=!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(ai=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}ai=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:(ai&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((ai&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,fi|=H;J=z.action,cs&&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,fi|=J;z=z.next}while(z!==null&&z!==i);if(j===null?E=m:j.next=T,!jn(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);jn(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=!jn((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||(ai&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!jn(r,l)}catch{return!0}}function w0(r){var i=ul(r,2);i!==null&&Bn(i,r,2)}function ap(r){var i=xn();if(typeof r=="function"){var l=r;if(r=l(),cs){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=zr;f.nodeType!==8;){if(!m){f=null;break t}if(f=Or(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Mt=Or(f.nextSibling),u=f.data==="F!";break e}}ss(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(),cs){tt(!0);try{r()}finally{tt(!1)}}return l.memoizedState=[u,i],u}function lp(r,i,l){return l===void 0||(ai&1073741824)!==0?r.memoizedState=i:(r.memoizedState=l,r=Kb(),Ge.lanes|=r,fi|=r,l)}function G0(r,i,l,u){return jn(l,i)?l:ml.current!==null?(r=lp(r,l,u),jn(r,i)||(Yt=!0),r):(ai&42)===0?(Yt=!0,r.memoizedState=l):(r=Kb(),Ge.lanes|=r,fi|=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,Ln(r))}else Ko(r,i,u,Ln(r))}catch(J){Ko(r,i,{then:function(){},status:"rejected",reason:J},Ln())}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,{},Ln())}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=Ln();r=ni(l);var u=ri(i,r,l);u!==null&&(Bn(u,i,l),qo(u,i,l)),i={cache:Fh()},r.payload=i;return}i=i.return}}function SN(r,i,l){var u=Ln();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&&(Bn(l,r,u),eb(l,i,u)))}function J0(r,i,l){var u=Ln();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,jn(T,E))return kc(r,i,f,0),Et===null&&jc(),!1}catch{}finally{}if(l=Ch(r,i,f,u),l!==null)return Bn(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&&Bn(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,Zi(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(cs){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(cs){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?($=ns(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 g: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 $=ns($,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 g: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 g: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&&as(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&&as(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(Si){return i(B,Si)}),ct&&as(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 Si=H(B,Ne,st.value,X);if(Si===null){Ne===null&&(Ne=Qt);break}r&&Ne&&Si.alternate===null&&i(B,Ne),$=m(Si,$,Ue),Ke===null?ge=Si:Ke.sibling=Si,Ke=Si,Ne=Qt}if(st.done)return l(B,Ne),ct&&as(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&&as(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&&as(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 g: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=ns(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=kn(29,Ne,null,B.mode);return Ke.lanes=X,Ke.return=B,Ke}finally{}}}var Sl=ab(!0),ib=ab(!1),ir=Y(null),qr=null;function ii(r){var i=r.alternate;ne(Pt,Pt.current&1),ne(ir,r),qr===null&&(i===null||ml.current!==null||i.memoizedState!==null)&&(qr=r)}function sb(r){if(r.tag===22){if(ne(Pt,Pt.current),ne(ir,r),qr===null){var i=r.alternate;i!==null&&i.memoizedState!==null&&(qr=r)}}else si()}function si(){ne(Pt,Pt.current),ne(ir,ir.current)}function ga(r){ae(ir),qr===r&&(qr=null),ae(Pt)}var Pt=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=Ln(),f=ni(u);f.payload=i,l!=null&&(f.callback=l),i=ri(r,f,u),i!==null&&(Bn(i,r,u),qo(i,r,u))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var u=Ln(),f=ni(u);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=ri(r,f,u),i!==null&&(Bn(i,r,u),qo(i,r,u))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=Ln(),u=ni(l);u.tag=2,i!=null&&(u.callback=i),i=ri(r,u,l),i!==null&&(Bn(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 fs(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=ni(l),l.tag=3,l.payload={element:null},l.callback=function(){nf(r,i)},l}function hb(r){return r=ni(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"&&(di===null?di=new Set([this]):di.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=ir.current,l!==null){switch(l.tag){case 13:return qr===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=ir.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(tr(r,l)))):(u!==Uh&&(i=Error(a(423),{cause:u}),$o(tr(i,l))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,u=tr(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=tr(m,l),ru===null?ru=[m]:ru.push(m),Ut!==4&&(Ut=2),i===null)return!0;u=tr(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"&&(di===null||!di.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 nn(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 os(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,nn(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),si(),i.memoizedState=null):(r!==null&&Ic(i,null),Yh(),si());return nn(r,i,f,l),i.child}function Sb(r,i,l,u){var f=zh();return f=f===null?null:{parent:Ht._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 os(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,nn(r,i,l,f),i.child)}function Eb(r,i,l,u,f,m){return os(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,nn(r,i,l,m),i.child)}function _b(r,i,l,u,f){if(os(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=fs(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),ti=!1;var H=i.memoizedState;m.state=H,Ho(i,u,m,f),Vo(),z=i.memoizedState,T||H!==z||ti?(typeof J=="function"&&(fp(i,l,J,u),z=i.memoizedState),(j=ti||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=fs(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),ti=!1,H=i.memoizedState,m.state=H,Ho(i,u,m,f),Vo();var P=i.memoizedState;E!==J||H!==P||ti||r!==null&&r.dependencies!==null&&Bc(r.dependencies)?(typeof T=="function"&&(fp(i,l,T,u),P=i.memoizedState),(K=ti||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)):nn(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,nn(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|=sr),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:(Pt.current&2)!==0),E&&(f=!0,i.flags&=-129),E=(i.flags&32)!==0,i.flags&=-33,r===null){if(ct){if(f?ii(i):si(),ct){var T=Mt,j;if(j=T){e:{for(j=T,T=zr;j.nodeType!==8;){if(!T){T=null;break e}if(j=Or(j.nextSibling),j===null){T=null;break e}}T=j}T!==null?(i.memoizedState={dehydrated:T,treeContext:rs!==null?{id:ha,overflow:pa}:null,retryLane:536870912,hydrationErrors:null},j=kn(18,null,null,0),j.stateNode=T,j.return=i,i.child=j,mn=i,Mt=null,j=!0):j=!1}j||ss(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?(si(),f=i.mode,T=af({mode:"hidden",children:T},f),u=ns(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):(ii(i),gp(i,T))}if(j=r.memoizedState,j!==null&&(T=j.dehydrated,T!==null)){if(m)i.flags&256?(ii(i),i.flags&=-257,i=bp(r,i,l)):i.memoizedState!==null?(si(),i.child=r.child,i.flags|=128,i=null):(si(),f=u.fallback,T=i.mode,u=af({mode:"visible",children:u.children},T),f=ns(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(ii(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),Bn(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=Or(T.nextSibling),mn=i,ct=!0,is=null,zr=!1,r!==null&&(rr[ar++]=ha,rr[ar++]=pa,rr[ar++]=rs,ha=r.id,pa=r.overflow,rs=i),i=gp(i,u.children),i.flags|=4096);return i}return f?(si(),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=ns(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=Ht._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):(ii(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=kn(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(nn(r,i,u.children,l),u=Pt.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(Pt,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),fi|=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),ei(i,Ht,r.memoizedState.cache),Uo();break;case 27:case 5:ut(i);break;case 4:qe(i,i.stateNode.containerInfo);break;case 10:ei(i,i.type,i.memoizedProps.value);break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(ii(i),i.flags|=128,null):(l&i.child.childLanes)!==0?Ob(r,i,l):(ii(i),r=ba(r,i,l),r!==null?r.sibling:null);ii(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(Pt,Pt.current),u)break;return null;case 22:case 23:return i.lanes=0,bb(r,i,l);case 24:ei(i,Ht,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=fs(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=fs(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,ei(i,Ht,u),u!==m.cache&&Bh(i,[Ht],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=tr(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=Or(r.firstChild),mn=i,ct=!0,is=null,zr=!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}nn(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,an(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,zr=!0,f=Mt,mi(i.type)?(tm=f,Mt=Or(u.firstChild)):Mt=f),nn(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,zr),u!==null?(i.stateNode=u,mn=i,Mt=Or(u.firstChild),zr=!1,f=!0):f=!1),f||ss(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),nn(r,i,u,l),i.child;case 6:return r===null&&ct&&((r=l=Mt)&&(l=JN(l,i.pendingProps,zr),l!==null?(i.stateNode=l,mn=i,Mt=null,r=!0):r=!1),r||ss(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):nn(r,i,u,l),i.child;case 11:return vb(r,i,i.type,i.pendingProps,l);case 7:return nn(r,i,i.pendingProps,l),i.child;case 8:return nn(r,i,i.pendingProps.children,l),i.child;case 12:return nn(r,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,ei(i,i.type,u.value),nn(r,i,u.children,l),i.child;case 9:return f=i.type._context,u=i.pendingProps.children,os(i),f=un(f),u=u(f),i.flags|=1,nn(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 os(i),u=un(Ht),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),ei(i,Ht,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),ei(i,Ht,u)):(u=m.cache,ei(i,Ht,u),u!==f.cache&&Bh(i,[Ht],l,!0))),nn(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=ir.current,i!==null&&((et&4194048)===et?qr!==null:(et&62914560)!==et&&(et&536870912)===0||i!==qr))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(Ht),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(an(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||ss(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(Pt),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(Pt,Pt.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=Pt.current,ne(Pt,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(us),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),va(Ht),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(Ht),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(Pt),null;case 4:return Rt(),null;case 10:return va(i.type),null;case 22:case 23:return ga(i),Kh(),r!==null&&ae(us),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return va(Ht),null;case 25:return null;default:return null}}function Cb(r,i){switch(Mh(i),i.tag){case 3:va(Ht),Rt();break;case 26:case 27:case 5:wt(i);break;case 4:Rt();break;case 13:ga(i);break;case 19:ae(Pt);break;case 10:va(i.type);break;case 22:case 23:ga(i),Kh(),r!==null&&ae(us);break;case 24:va(Ht)}}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 li(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=fs(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 Vr(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&&mi(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&&mi(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&&mi(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&&mi(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]);an(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=fs(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:oi(r,l),u&4&&Jo(5,l);break;case 1:if(oi(r,l),u&4)if(r=l.stateNode,i===null)try{r.componentDidMount()}catch(E){St(l,l.return,E)}else{var f=fs(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(oi(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:oi(r,l),i===null&&u&4&&jb(l),u&512&&Wo(l,l.return);break;case 12:oi(r,l);break;case 13:oi(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?ui(r,l,(l.subtreeFlags&8772)!==0):oi(r,l),Ea=f,Bt=m}break;case 30:break;default:oi(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||Vr(l,i),_a(r,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Bt||Vr(l,i);var u=Ct,f=On;mi(l.type)&&(Ct=l.stateNode,On=!1),_a(r,i,l),ou(l.stateNode),Ct=u,On=f;break;case 5:Bt||Vr(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||li(2,l,i),Bt||li(4,l,i),_a(r,i,l);break;case 1:Bt||(Vr(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 Mn(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(mi(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 xr=null;function Ib(r,i){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Mn(i,r),Un(r),u&4&&(li(3,r,r.return),Jo(3,r),li(5,r,r.return));break;case 1:Mn(i,r),Un(r),u&512&&(Bt||l===null||Vr(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=xr;if(Mn(i,r),Un(r),u&512&&(Bt||l===null||Vr(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"))),an(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),an(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),an(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:Mn(i,r),Un(r),u&512&&(Bt||l===null||Vr(l,l.return)),l!==null&&u&4&&_p(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Mn(i,r),Un(r),u&512&&(Bt||l===null||Vr(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(Mn(i,r),Un(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=xr,xr=Sf(i.containerInfo),Mn(i,r),xr=f,Un(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=xr,xr=Sf(r.stateNode.containerInfo),Mn(i,r),Un(r),xr=u;break;case 12:Mn(i,r),Un(r);break;case 13:Mn(i,r),Un(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,Mn(i,r),Bt=K,Ea=z,Un(r),u&8192)e:for(i=r.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(l===null||j||Ea||Bt||ds(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:Mn(i,r),Un(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,wp(r,u)));break;case 30:break;case 21:break;default:Mn(i,r),Un(r)}}function Un(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 oi(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)$b(r,i.alternate,i),i=i.sibling}function ds(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:li(4,i,i.return),ds(i);break;case 1:Vr(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Db(i,i.return,l),ds(i);break;case 27:ou(i.stateNode);case 26:case 5:Vr(i,i.return),ds(i);break;case 22:i.memoizedState===null&&ds(i);break;case 30:ds(i);break;default:ds(i)}r=r.sibling}}function ui(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:ui(f,m,l),Jo(4,m);break;case 1:if(ui(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:ui(f,m,l),l&&u===null&&E&4&&jb(m),Wo(m,m.return);break;case 12:ui(f,m,l);break;case 13:ui(f,m,l),l&&E&4&&Fb(f,m);break;case 22:m.memoizedState===null&&ui(f,m,l),Wo(m,m.return);break;case 30:break;default:ui(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 Hr(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:Hr(r,i,l,u),f&2048&&Jo(9,i);break;case 1:Hr(r,i,l,u);break;case 3:Hr(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){Hr(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 Hr(r,i,l,u);break;case 13:Hr(r,i,l,u);break;case 23:break;case 22:m=i.stateNode,E=i.alternate,i.memoizedState!==null?m._visibility&2?Hr(r,i,l,u):eu(r,i):m._visibility&2?Hr(r,i,l,u):(m._visibility|=2,El(r,i,l,u,(i.subtreeFlags&10256)!==0)),f&2048&&Ap(E,i);break;case 24:Hr(r,i,l,u),f&2048&&Np(i.alternate,i);break;default:Hr(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(xr,r.memoizedState,r.memoizedProps);break;case 5:_l(r);break;case 3:case 4:var i=xr;xr=Sf(r.stateNode.containerInfo),_l(r),xr=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&&li(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:li(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:li(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(Ht),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,$n=null,ci=!1,xl=!1,Cp=!1,xa=0,Ut=0,fi=0,hs=0,Rp=0,sr=0,Ol=0,ru=null,Tn=null,Dp=!1,jp=0,uf=1/0,cf=null,di=null,rn=0,hi=null,Tl=null,wl=0,kp=0,Mp=null,Yb=null,au=0,Up=null;function Ln(){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(){sr===0&&(sr=(et&536870912)===0||ct?Ws():536870912);var r=ir.current;return r!==null&&(r.flags|=32),sr}function Bn(r,i,l){(r===Et&&(pt===2||pt===9)||r.cancelPendingCommit!==null)&&(Al(r,0),pi(r,et,sr,!1)),Qi(r,l),((ht&2)===0||r!==Et)&&(r===Et&&((ht&2)===0&&(hs|=l),Ut===4&&pi(r,et,sr,!1)),Pr(r))}function Qb(r,i,l){if((ht&6)!==0)throw Error(a(327));var u=!l&&(i&124)===0&&(i&r.expiredLanes)===0||Ir(r,i),f=u?jN(r,i):Bp(r,i,!0),m=u;do{if(f===0){xl&&!u&&pi(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,hs|=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),pi(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:pi(u,i,sr,!ci);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(pi(u,i,sr,!ci),Ki(u,0,!0)!==0)break e;u.timeoutHandle=OS(Xb.bind(null,u,l,Tn,cf,Dp,i,sr,hs,Ol,ci,m,2,-0,0),f);break e}Xb(u,l,Tn,cf,Dp,i,sr,hs,Ol,ci,m,0,-0,0)}}break}while(!0);Pr(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)),pi(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(!jn(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 pi(r,i,l,u){i&=~Rp,i&=~hs,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&&Xi(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=ls=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,$n=null,ci=!1,xl=Ir(r,i),Cp=!1,Ol=sr=Rp=hs=fi=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,$n=i,Qe===null&&(Ut=1,nf(r,tr(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,ci||(et&4194048)!==et&&ir.current!==null||(xl=!0),(fi&134217727)===0&&(hs&134217727)===0||Et===null||pi(Et,et,sr,!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=$n;switch(pt){case 8:$p(),E=6;break e;case 3:case 2:case 9:case 6:ir.current===null&&(i=!0);var z=pt;if(pt=0,$n=null,Nl(r,T,j,z),l&&xl){E=0;break e}break;default:z=pt,pt=0,$n=null,Nl(r,T,j,z)}}DN(),E=Ut;break}catch(K){Zb(r,K)}while(!0);return i&&r.shellSuspendCounter++,ma=ls=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=Ir(r,i);e:do try{if(pt!==0&&Qe!==null){i=Qe;var m=$n;t:switch(pt){case 1:pt=0,$n=null,Nl(r,i,m,1);break;case 2:case 9:if(d0(m)){pt=0,$n=null,tS(i);break}i=function(){pt!==2&&pt!==9||Et!==r||(pt=7),Pr(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,$n=null,tS(i)):(pt=0,$n=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,$n=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,$n=null,Nl(r,i,m,5);break;case 6:pt=0,$n=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=ls=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=ls=null,Wh(i),bl=null,Qo=0;var f=i.return;try{if(_N(r,f,i,l,et)){Ut=1,nf(r,tr(l,r.current)),Qe=null;return}}catch(m){if(f!==null)throw Qe=f,m;Ut=1,nf(r,tr(l,r.current)),Qe=null;return}i.flags&32768?(ct||u===1?r=!0:xl||(et&536870912)!==0?r=!1:(ci=r=!0,(u===2||u===9||u===3||u===6)&&(u=ir.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,ci);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(rn!==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,hi=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}}rn=1,aS(),iS(),sS()}}function aS(){if(rn===1){rn=0;var r=hi,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,rn=2}}function iS(){if(rn===2){rn=0;var r=hi,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}}rn=3}}function sS(){if(rn===4||rn===3){rn=0,Dn();var r=hi,i=Tl,l=wl,u=Yb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?rn=5:(rn=0,Tl=hi=null,lS(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(di=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(),Pr(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(rn!==5)return!1;var r=hi,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=hi,E=wl;if(rn=0,Tl=hi=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=tr(l,i),i=hp(r.stateNode,i,2),r=ri(r,i,2),r!==null&&(Qi(r,2),Pr(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"&&(di===null||!di.has(u))){r=tr(l,r),l=hb(2),u=ri(i,l,2),u!==null&&(pb(l,u,i,r),Qi(u,2),Pr(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)),Pr(r)}function cS(r,i){i===0&&(i=Ec()),r=ul(r,i),r!==null&&(Qi(r,i),Pr(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 tn(r,i)}var pf=null,Cl=null,Ip=!1,mf=!1,zp=!1,ps=0;function Pr(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=Ki(u,u===Et?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Ir(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;ps!==0&&(YN()&&(r=ps),ps=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=Ki(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||Ir(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=tn(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(rn!==0&&rn!==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=Ki(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?tn(Zn,BN):fS()})}function qp(){return ps===0&&(ps=Ws()),ps}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(ps!==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);_r(zN,"on"+qN)}_r(Qg,"onAnimationEnd"),_r(Xg,"onAnimationIteration"),_r(Zg,"onAnimationStart"),_r("dblclick","onDoubleClick"),_r("focusin","onFocus"),_r("focusout","onBlur"),_r(iN,"onTransitionRun"),_r(sN,"onTransitionStart"),_r(lN,"onTransitionCancel"),_r(Jg,"onTransitionEnd"),Jn("onMouseEnter",["mouseout","mouseover"]),Jn("onMouseLeave",["mouseout","mouseover"]),Jn("onPointerEnter",["pointerout","pointerover"]),Jn("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()):(Wa=K,mh="value"in Wa?Wa.value:Wa.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),Wn(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":Wn(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,Wn(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(!Qa.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,""):Wn(r,l,u)}}}function an(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 mi(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=Or(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=Or(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 Or(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 lr=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=er(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"),an(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="'+er(i)+'"]';i==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+er(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+er(l.imageSizes)+'"]')):f+='[href="'+er(r)+'"]';var m=f;switch(i){case"style":m=jl(r);break;case"script":m=kl(r)}lr.has(m)||(r=v({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:r,as:i},l),lr.set(m,r),u.querySelector(f)!==null||i==="style"&&u.querySelector(uu(m))||i==="script"&&u.querySelector(cu(m))||(i=u.createElement("link"),an(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="'+er(u)+'"][href="'+er(r)+'"]',m=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=kl(r)}if(!lr.has(m)&&(r=v({rel:"modulepreload",href:r},i),lr.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"),an(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=lr.get(m))&&nm(r,l);var j=E=u.createElement("link");it(j),an(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=lr.get(f))&&rm(r,i),m=l.createElement("script"),it(m),an(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=lr.get(f))&&rm(r,i),m=l.createElement("script"),it(m),an(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),lr.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},lr.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="'+er(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}),an(i,"link",l),it(i),r.head.appendChild(i))}function kl(r){return'[src="'+er(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~="'+er(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),an(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=lr.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}),an(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=lr.get(m))&&(u=v({},l),rm(u,f)),r=r.ownerDocument||r,f=r.createElement("script"),it(f),an(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=lr.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}),an(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=kn(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=ni(i),u.payload={element:l},m=m===void 0?null:m,m!==null&&(u.callback=m),l=ri(r,u,i),l!==null&&(Bn(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&&Bn(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}Pr(m),(ht&6)===0&&(uf=At()+500,iu(0))}}break;case 13:T=ul(m,2),T!==null&&Bn(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 Zn: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,vi=null,yi=null,gi=null,hu=new Map,pu=new Map,bi=[],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":vi=null;break;case"dragenter":case"dragleave":yi=null;break;case"mouseover":case"mouseout":gi=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 vi=mu(vi,r,i,l,u,f),!0;case"dragenter":return yi=mu(yi,r,i,l,u,f),!0;case"mouseover":return gi=mu(gi,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=Ln();u=Eo(u);var f=ul(l,u);f!==null&&Bn(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,vi!==null&&Af(vi)&&(vi=null),yi!==null&&Af(yi)&&(yi=null),gi!==null&&Af(gi)&&(gi=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)}vi!==null&&Nf(vi,r),yi!==null&&Nf(yi,r),gi!==null&&Nf(gi,r),hu.forEach(i),pu.forEach(i);for(var l=0;l<bi.length;l++){var u=bi[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<bi.length&&(l=bi[0],l.blockedOn===null);)HS(l),l.blockedOn===null&&bi.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=Ln();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<bi.length&&i!==0&&i<bi[l].priority;l++);bi.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=Ln(),u=Eo(u),f=ni(u),f.callback=null,ri(l,f,u),l=u,i.current.lanes=l,Qi(i,l),Pr(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=Fs(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 g=function(){};return g.prototype=Object.create(null),g})();function c(g,_){const x=new o,A=g.length;if(A<2)return x;const N=(_==null?void 0:_.decode)||v;let O=0;do{const R=g.indexOf("=",O);if(R===-1)break;const D=g.indexOf(";",O),U=D===-1?A:D;if(R>U){O=g.lastIndexOf(";",R-1)+1;continue}const C=h(g,O,R),w=d(g,R,C),q=g.slice(C,w);if(x[q]===void 0){let re=h(g,R+1,U),Q=d(g,U,re);const he=N(g.slice(re,Q));x[q]=he}O=U+1}while(O<A);return x}function h(g,_,x){do{const A=g.charCodeAt(_);if(A!==32&&A!==9)return _}while(++_<x);return x}function d(g,_,x){for(;_>x;){const A=g.charCodeAt(--_);if(A!==32&&A!==9)return _+1}return x}function p(g,_,x){const A=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const N=A(_);if(!t.test(N))throw new TypeError(`argument val is invalid: ${_}`);let O=g+"="+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(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function b(g){return s.call(g)==="[object Date]"}return bu}UC();/**
|
|
50
|
-
* react-router v7.5.3
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
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:Mi(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"?zi(t):t,state:n,key:t&&t.key||a||FC()}}function Mi({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 zi(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 g(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:Mi(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:g,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 Ti(e,t,n="/"){return Qf(e,t,n,!1)}function Qf(e,t,n,a){let s=typeof t=="string"?zi(t):t,o=vr(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=Wr([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),g=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:Wr([o,b.pathname]),pathnameBase:lR(Wr([o,b.pathnameBase])),route:g}),b.pathnameBase!=="/"&&(o=Wr([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},g)=>{if(v==="*"){let x=h[g]||"";c=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const _=h[g];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 vr(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"?zi(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=zi(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 g=c.split("/");for(;g[0]==="..";)g.shift(),b-=1;s.pathname=g.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 Wr=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,g=new Set,_=null,x=null,A=null,N=e.hydrationData!=null,O=Ti(c,e.history.location,d),R=!1,D=null;if(O==null&&!e.patchRoutesOnNavigation){let M=cr(404,{pathname:e.history.location.pathname}),{matches:F,route:G}=EE(c);O=F,D={[G.id]:M}}O&&!e.hydrationData&&Xi(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=Xi(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),Ir(ee,{state:"blocked",location:F,proceed(){Ir(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(),g.clear(),Q&&Q.abort(),w.fetchers.forEach((M,F)=>bt(F)),w.blockers.forEach((M,F)=>Ki(F))}function Rt(M){return g.add(M),()=>g.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)}),[...g].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&&zn(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&&zn(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 en(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&&zn(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){Ir(Ie,{state:"blocked",location:ve,proceed(){Ir(Ie,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),en(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 tn(){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,Qi(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:Ti(ee,F,d),ke=(G&&G.flushSync)===!0;if(Oe&&w.initialized&&!xe&&NR(w.location,F)&&!(G&&G.submission&&zn(G.submission.formMethod))){wt(F,{matches:Oe},{flushSync:ke});return}let ve=Xi(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=[gs(Oe).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&zn(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(In(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 Dn(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 Zi(ee,F.pathname,M.signal);if(Ae.type==="aborted")return{shortCircuited:!0};if(Ae.type==="error"){let Ie=gs(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:cr(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(bs(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(In(je)){let Ae=gs(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 Dn(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 Zi(G,F.pathname,M.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let on=gs(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:Sr,route:Er}=Ws(F.pathname);return{matches:Sr,loaderData:{},errors:{[Er.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=Fr();return wt(F,{matches:G,loaderData:{},errors:Ae&&In(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 Qa=()=>We.forEach(Ye=>bn(Ye.key));Q&&Q.signal.addEventListener("abort",Qa);let{loaderResults:pn,fetcherResults:Jn}=await pe(it,We,M,ee);if(M.signal.aborted)return{shortCircuited:!0};Q&&Q.signal.removeEventListener("abort",Qa),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(Jn),Sn)return k.add(Sn.key),await V(M,Sn.result,!0,{replace:De}),{shortCircuited:!0};let{loaderData:Xa,errors:Za}=gE(w,G,pn,Ae,We,Jn);je&&w.errors&&(Za={...w.errors,...Za});let xo=Fr(),Wn=oa(le),ca=xo||Wn||We.length>0;return{matches:G,loaderData:Xa,errors:Za,...ca?{fetchers:new Map(w.fetchers)}:{}}}function At(M){if(M&&!In(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 Zn(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=Ti(Oe,ke,d),De=Xi(ve,Oe,ke);if(De.active&&De.matches&&(ve=De.matches),!ve){ye(M,F,cr(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&&zn(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 Ja=cr(405,{method:je.formMethod,pathname:G,routeId:F});return ye(M,F,Ja,{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 Zi(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,cr(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(bs(We)||In(We)){ue(M,Ei(void 0));return}}else{if(bs(We))if(L.delete(M),le>Ot){ue(M,Ei(void 0));return}else return k.add(M),ue(M,Eu(je)),V(nt,We,!1,{fetcherSubmission:je,preventScrollReset:De});if(In(We)){ye(M,F,We.error);return}}let Qa=w.navigation.location||w.location,pn=zl(e.history,Qa,Ie.signal),Jn=h||c,Sn=w.navigation.state!=="idle"?Ti(Jn,w.navigation.location,d):w.matches;Ze(Sn,"Didn't find any matches after fetcher action");let Xa=++te;we.set(M,Xa);let Za=Eu(je,We.data);w.fetchers.set(M,Za);let{dsMatches:xo,revalidatingFetchers:Wn}=fE(pn,Oe,s,o,e.history,w,Sn,je,Qa,a,!1,xe,Te,ne,Y,k,Jn,d,[ee.route.id,We]);Wn.filter(Nt=>Nt.key!==M).forEach(Nt=>{let Ja=Nt.key,Oo=w.fetchers.get(Ja),En=Eu(void 0,Oo?Oo.data:void 0);w.fetchers.set(Ja,En),bn(Ja),Nt.controller&&L.set(Ja,Nt.controller)}),ut({fetchers:new Map(w.fetchers)});let ca=()=>Wn.forEach(Nt=>bn(Nt.key));Ie.signal.addEventListener("abort",ca);let{loaderResults:Ye,fetcherResults:on}=await pe(xo,Wn,pn,Oe);if(Ie.signal.aborted)return;Ie.signal.removeEventListener("abort",ca),we.delete(M),L.delete(M),Wn.forEach(Nt=>L.delete(Nt.key));let Sr=kf(Ye);if(Sr)return V(pn,Sr.result,!1,{preventScrollReset:De});if(Sr=kf(on),Sr)return k.add(Sr.key),V(pn,Sr.result,!1,{preventScrollReset:De});let{loaderData:Er,errors:Ji}=gE(w,Sn,Ye,void 0,Wn,on);if(w.fetchers.has(M)){let Nt=Ei(We.data);w.fetchers.set(M,Nt)}oa(Xa),w.navigation.state==="loading"&&Xa>le?(Ze(q,"Expected pending action"),Q&&Q.abort(),wt(w.navigation.location,{matches:Sn,loaderData:Er,errors:Ji,fetchers:new Map(w.fetchers)})):(ut({errors:Ji,loaderData:bE(w.loaderData,Er,Sn,Ji),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 Zi(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,cr(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,Ei(void 0));return}if(bs(it))if(le>nt){ue(M,Ei(void 0));return}else{k.add(M),await V(Ie,it,!1,{preventScrollReset:De});return}if(In(it)){ye(M,F,it.error);return}ue(M,Ei(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||vr(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&&zn(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:cr(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=gs(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 Yi(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=Ei(G.data);w.fetchers.set(F,ee)}}function Fr(){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 Ki(M){w.blockers.delete(M),se.delete(M)}function Ir(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=cr(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 Qi(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 Xi(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 Zi(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=Ti(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:en,fetch:Zn,revalidate:tn,createHref:M=>e.history.createHref(M),encodeLocation:M=>e.history.encodeLocation(M),getFetcher:tt,deleteFetcher:Yi,dispose:qe,getBlocker:ua,deleteBlocker:Ki,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),vr(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 g=v.toString();d.search=g?`?${g}`:""}}return n!=="/"&&(d.pathname=d.pathname==="/"?n:Wr([n,d.pathname])),Mi(d)}function cE(e,t,n){if(!n||!gR(n))return{path:t};if(n.formMethod&&!RR(n.formMethod))return{path:t,error:cr(405,{method:n.formMethod})};let a=()=>({path:t,error:cr(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),c=uO(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!zn(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((g,[_,x])=>`${g}${_}=${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(!zn(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(zn(p.formMethod))return{path:t,submission:p};let v=zi(t);return e&&v.search&&ly(v.search)&&h.append("index",""),v.search=`?${h}`,{path:Mi(v),submission:p}}function fE(e,t,n,a,s,o,c,h,d,p,v,b,g,_,x,A,N,O,R){var Re;let D=R?In(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&&In(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=Ti(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(g.has(xe))g.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 g=await o();g!=null&&(Object.assign(s,{[e]:g}),Object.assign(s,a(s)))}typeof s.lazy=="object"&&(s.lazy[e]=void 0,Object.values(s.lazy).every(g=>g===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 g=await e.lazy(),_={};for(let x in g){let A=g[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(g=>[b.route.id,g]):[]),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,g=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},g);return v?_===void 0?b:_:g()}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,zn(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,g)=>({[g]:{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=zn(e.method),p=d?"action":"loader",v=b=>{let g,_=new Promise((N,O)=>g=O);h=()=>g(),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 g,[_]=await Promise.all([v(b).catch(x=>{g=x}),n,a]);if(g!==void 0)throw g;c=_}else{await n;let g=d?t.route.action:t.route.loader;if(g)[c]=await Promise.all([v(g),a]);else if(p==="action"){let _=new URL(e.url),x=_.pathname+_.search;throw cr(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 g=new URL(e.url),_=g.pathname+g.search;throw cr(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=vr(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&&zn(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&&In(n[1])?n[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let g=b.route.id,_=t[g];if(Ze(!bs(_),"Cannot handle redirect results in processLoaderData"),In(_)){let x=_.error;if(v!==void 0&&(x=v,v=void 0),c=c||{},s)c[g]=x;else{let A=gs(e,g);c[A.route.id]==null&&(c[A.route.id]=x)}a||(o[g]=rO),d||(d=!0,h=Fu(_.error)?_.error.status:500),_.headers&&(p[g]=_.headers)}else o[g]=_.data,_.statusCode&&_.statusCode!==200&&!d&&(h=_.statusCode),_.headers&&(p[g]=_.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,g=o[p];if(Ze(g,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(In(g)){let _=gs(e.matches,v==null?void 0:v.route.id);h&&h[_.route.id]||(h={...h,[_.route.id]:g.error}),e.fetchers.delete(p)}else if(bs(g))Ze(!1,"Unhandled fetcher revalidation redirect");else{let _=Ei(g.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?In(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function gs(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 cr(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(bs(s))return{key:a,result:s}}}function uO(e){let t=typeof e=="string"?zi(e):e;return Mi({...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 In(e){return e.type==="error"}function bs(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 zn(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"?zi(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 Ei(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 Is=S.createContext(null);Is.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 Lr=S.createContext({outlet:null,matches:[],isDataRoute:!1});Lr.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:Wr([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(Lr);return e?ZR():BR()}function BR(){Ze(nc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Is),{basename:t,navigator:n}=S.useContext(ia),{matches:a}=S.useContext(Lr),{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:Wr([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(Lr).outlet;return t&&S.createElement(FR.Provider,{value:e},t)}function pO(){let{matches:e}=S.useContext(Lr),t=e[e.length-1];return t?t.params:{}}function rc(e,{relative:t}={}){let{matches:n}=S.useContext(Lr),{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(Lr),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
|
-
|
|
61
|
-
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let g=Ha(),_;_=g;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:Ti(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:Wr([v,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:Wr([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(Lr.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(Is);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Lr.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,g=p.route.loader&&!v.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||g){c=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((d,p,v)=>{let b,g=!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"),g=!0,x=null):h===v&&(g=!0,x=p.route.hydrateFallbackElement||null)));let A=t.concat(s.slice(0,v+1)),N=()=>{let O;return b?O=_:g?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(Is);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(Lr);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(),[g,_]=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&&g&&(o(g.state),h({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[c.isTransitioning,g]);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(Is.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=zi(n));let{pathname:d="/",search:p="",hash:v="",state:b=null,key:g="default"}=n,_=S.useMemo(()=>{let x=vr(d,c);return x==null?null:{location:{pathname:x,search:p,hash:v,state:b,key:g},navigationType:a}},[c,d,p,v,b,g,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?vr(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?vr(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 g=p?`${p}.`:"";o.append(`${g}x`,"0"),o.append(`${g}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 g=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 g=="boolean")return g}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&&vr(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function gO(){let e=S.useContext(Is);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,g=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 g.current&&N.observe(g.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,g,{}]:[o,g,{onFocus:_u(h,_),onBlur:_u(d,x),onMouseEnter:_u(p,_),onMouseLeave:_u(v,x),onTouchStart:_u(b,_)}]:[!1,g,{}]}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(()=>Ti(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]),g=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})),g.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,Yn=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,...g},_){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=vr(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,g),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",{...g,...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});Yn.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}),g=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=g.pathname,D=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(R=R.toLowerCase(),D=D?D.toLowerCase():null,O=O.toLowerCase()),D&&A&&(D=vr(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(Yn,{...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,...g},_)=>{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,...g,"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(Is);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:Mi(d)===Mi(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(Lr);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:Wr([n,o.pathname])),Mi(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=vr(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=vr(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 Ss=Fs(py);/**
|
|
62
|
-
* react-router v7.5.3
|
|
63
|
-
*
|
|
64
|
-
* Copyright (c) Remix Software Inc.
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the MIT license found in the
|
|
67
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
68
|
-
*
|
|
69
|
-
* @license MIT
|
|
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 Ar(){}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 xs,wi,Xl,qx,QD=(qx=class extends Md{constructor(){super();lt(this,xs);lt(this,wi);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,wi)||this.setEventListener(Z(this,Xl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,wi))==null||t.call(this),ze(this,wi,void 0))}setEventListener(t){var n;ze(this,Xl,t),(n=Z(this,wi))==null||n.call(this),ze(this,wi,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){Z(this,xs)!==t&&(ze(this,xs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Z(this,xs)=="boolean"?Z(this,xs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xs=new WeakMap,wi=new WeakMap,Xl=new WeakMap,qx),TO=new QD,Zl,Ai,Jl,Vx,XD=(Vx=class extends Md{constructor(){super();lt(this,Zl,!0);lt(this,Ai);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,Ai)||this.setEventListener(Z(this,Jl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Ai))==null||t.call(this),ze(this,Ai,void 0))}setEventListener(t){var n;ze(this,Jl,t),(n=Z(this,Ai))==null||n.call(this),ze(this,Ai,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,Ai=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||(g(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))},g=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){g(O);return}n++,(w=e.onFail)==null||w.call(e,n,O),PD(U).then(()=>p()?void 0:_()).then(()=>{t?g(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(),Os,Hx,CO=(Hx=class{constructor(){lt(this,Os)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qD(this.gcTime)&&ze(this,Os,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ud?1/0:5*60*1e3))}clearGcTimeout(){Z(this,Os)&&(clearTimeout(Z(this,Os)),ze(this,Os,void 0))}},Os=new WeakMap,Hx),Wl,eo,ur,Ts,dn,Wu,ws,Nr,Na,Px,tj=(Px=class extends CO{constructor(t){super();lt(this,Nr);lt(this,Wl);lt(this,eo);lt(this,ur);lt(this,Ts);lt(this,dn);lt(this,Wu);lt(this,ws);ze(this,ws,!1),ze(this,Wu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Ts,t.client),ze(this,ur,Z(this,Ts).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,ur).remove(this)}setData(t,n){const a=GD(this.state.data,t,this.options);return cn(this,Nr,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,Nr,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(Ar).catch(Ar):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,ur).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,ws)?Z(this,dn).cancel({revert:!0}):Z(this,dn).cancelRetry()),this.scheduleGc()),Z(this,ur).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||cn(this,Nr,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(g=>g.options.queryFn);b&&this.setOptions(b.options)}const a=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(ze(this,ws,!0),a.signal)})},o=()=>{const b=OO(this.options,n),g={client:Z(this,Ts),queryKey:this.queryKey,meta:this.meta};return s(g),ze(this,ws,!1),this.options.persister?this.options.persister(b,g,this):b(g)},c={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Z(this,Ts),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,Nr,Na).call(this,{type:"fetch",meta:(v=c.fetchOptions)==null?void 0:v.meta});const h=b=>{var g,_,x,A;xm(b)&&b.silent||cn(this,Nr,Na).call(this,{type:"error",error:b}),xm(b)||((_=(g=Z(this,ur).config).onError)==null||_.call(g,b,this),(A=(x=Z(this,ur).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 g,_,x,A;if(b===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(N){h(N);return}(_=(g=Z(this,ur).config).onSuccess)==null||_.call(g,b,this),(A=(x=Z(this,ur).config).onSettled)==null||A.call(x,b,this.state.error,this),this.scheduleGc()},onError:h,onFail:(b,g)=>{cn(this,Nr,Na).call(this,{type:"failed",failureCount:b,error:g})},onPause:()=>{cn(this,Nr,Na).call(this,{type:"pause"})},onContinue:()=>{cn(this,Nr,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,ur=new WeakMap,Ts=new WeakMap,dn=new WeakMap,Wu=new WeakMap,ws=new WeakMap,Nr=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,ur).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 Kr,Gx,aj=(Gx=class extends Md{constructor(t={}){super();lt(this,Kr);this.config=t,ze(this,Kr,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,Kr).has(t.queryHash)||(Z(this,Kr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Z(this,Kr).get(t.queryHash);n&&(t.destroy(),n===t&&Z(this,Kr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){gn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Z(this,Kr).get(t)}getAll(){return[...Z(this,Kr).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()})})}},Kr=new WeakMap,Gx),Qr,vn,As,Xr,_i,Yx,ij=(Yx=class extends CO{constructor(t){super();lt(this,Xr);lt(this,Qr);lt(this,vn);lt(this,As);this.mutationId=t.mutationId,ze(this,vn,t.mutationCache),ze(this,Qr,[]),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,Qr).includes(t)||(Z(this,Qr).push(t),this.clearGcTimeout(),Z(this,vn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Qr,Z(this,Qr).filter(n=>n!==t)),this.scheduleGc(),Z(this,vn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Z(this,Qr).length||(this.state.status==="pending"?this.scheduleGc():Z(this,vn).remove(this))}continue(){var t;return((t=Z(this,As))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,c,h,d,p,v,b,g,_,x,A,N,O,R,D,U,C,w,q,re;const n=()=>{cn(this,Xr,_i).call(this,{type:"continue"})};ze(this,As,NO({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(Q,he)=>{cn(this,Xr,_i).call(this,{type:"failed",failureCount:Q,error:he})},onPause:()=>{cn(this,Xr,_i).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,As).canStart();try{if(a)n();else{cn(this,Xr,_i).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,Xr,_i).call(this,{type:"pending",context:he,variables:t,isPaused:s})}const Q=await Z(this,As).start();return await((v=(p=Z(this,vn).config).onSuccess)==null?void 0:v.call(p,Q,t,this.state.context,this)),await((g=(b=this.options).onSuccess)==null?void 0:g.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,Xr,_i).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,Xr,_i).call(this,{type:"error",error:Q})}}finally{Z(this,vn).runNext(this)}}},Qr=new WeakMap,vn=new WeakMap,As=new WeakMap,Xr=new WeakSet,_i=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,Qr).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,Cr,ec,Kx,lj=(Kx=class extends Md{constructor(t={}){super();lt(this,Ra);lt(this,Cr);lt(this,ec);this.config=t,ze(this,Ra,new Set),ze(this,Cr,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,Cr).get(n);a?a.push(t):Z(this,Cr).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,Cr).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,Cr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Uf(t);if(typeof n=="string"){const a=Z(this,Cr).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,Cr).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,Cr).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(Ar))))}},Ra=new WeakMap,Cr=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,g,_,x;const a=t.options,s=(g=(b=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:g.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,Ni,Ci,to,no,Ri,ro,ao,Qx,uj=(Qx=class{constructor(e={}){lt(this,$t);lt(this,Ni);lt(this,Ci);lt(this,to);lt(this,no);lt(this,Ri);lt(this,ro);lt(this,ao);ze(this,$t,e.queryCache||new aj),ze(this,Ni,e.mutationCache||new lj),ze(this,Ci,e.defaultOptions||{}),ze(this,to,new Map),ze(this,no,new Map),ze(this,Ri,0)}mount(){jf(this,Ri)._++,Z(this,Ri)===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,Ri)._--,Z(this,Ri)===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,Ni).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(Ar).catch(Ar)}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(Ar)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(Ar)}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(Ar).catch(Ar)}fetchInfiniteQuery(e){return e.behavior=kE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ar).catch(Ar)}ensureInfiniteQueryData(e){return e.behavior=kE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dd.isOnline()?Z(this,Ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,$t)}getMutationCache(){return Z(this,Ni)}getDefaultOptions(){return Z(this,Ci)}setDefaultOptions(e){ze(this,Ci,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,Ci).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,Ci).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Z(this,$t).clear(),Z(this,Ni).clear()}},$t=new WeakMap,Ni=new WeakMap,Ci=new WeakMap,to=new WeakMap,no=new WeakMap,Ri=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]),y.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,ea=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 kr(e){return typeof e=="function"}function js(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){ea(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function UO(e,t,n){ea(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function zs(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 Vn(e,t){return!!(e&t)}function Hn(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 ks(){return ks=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},ks.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 Jr=Symbol("mobx-stored-annotations");function ta(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,Jr)||ac(e,Jr,ks({},e[Jr])),Nj(n)||(e[Jr][t]=n)}function _j(e){return $a(e,Jr)||ac(e,Jr,ks({},e[Jr])),e[Jr]}function sc(e){return typeof e=="object"&&typeof e.kind=="string"}var Fe=Symbol("mobx administration"),qi=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(){pr(),tT(this),mr()},t.toString=function(){return this.name_},mo(e,[{key:"isBeingObserved",get:function(){return Vn(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return Vn(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return Vn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Hn(this.flags_,e.diffValueMask_,a===1)}}])}();qi.isBeingObservedMask_=1;qi.isPendingUnobservationMask_=2;qi.diffValueMask_=4;var yy=zs("Atom",qi);function FO(e,t,n){t===void 0&&(t=ql),n===void 0&&(n=ql);var a=new qi(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 Ms(e,t,n){return fT(e)?e:Array.isArray(e)?sn.array(e,{name:n}):Fa(e)?sn.object(e,void 0,{name:n}):po(e)?sn.map(e,{name:n}):Da(e)?sn.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)||Vs(e)||Zr(e))return e;if(Array.isArray(e))return sn.array(e,{name:n,deep:!1});if(Fa(e))return sn.object(e,void 0,{name:n,deep:!1});if(po(e))return sn.map(e,{name:n,deep:!1});if(Da(e))return sn.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 ea(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,g,_;return Us((v=(b=o.options_)==null?void 0:b.name)!=null?v:a.toString(),p,(g=(_=o.options_)==null?void 0:_.autoAction)!=null?g:!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 g=a.value;if((o=t.options_)!=null&&o.bound){var _;g=g.bind((_=e.proxy_)!=null?_:e.target_)}return{value:Us((c=(h=t.options_)==null?void 0:h.name)!=null?c:n.toString(),g,(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 ea(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,ks({},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=Hs(this)[Fe],c=ks({},n.options_,{get:e,context:this});c.name||(c.name="ObservableObject."+a.toString()),o.values_.set(a,new Mr(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:Ms,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=Hs(h)[Fe],g=new Ns(d,(p=(v=n.options_)==null?void 0:v.enhancer)!=null?p:Ms,"ObservableObject."+s.toString(),!1);b.values_.set(s,g),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=Us(t.toString(),n.set);return a===e.target_?e.defineProperty_(t,{configurable:de.safeDescriptors?e.isPlainObject_:!0,set:c})===null?0:2:(ea(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?sn.ref:sn;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var g;n.value=n.value.bind((g=e.proxy_)!=null?g: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:Us(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?sn.ref:sn;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=ta(fv);function Lf(e){return e.deep===!0?Ms: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:Ms}function GO(e,t,n){if(sc(t))return fv.decorate_20223_(e,t);if(js(t)){ic(e,t,fv);return}return fT(e)?e:Fa(e)?sn.object(e,t,n):Array.isArray(e)?sn.array(e,t):po(e)?sn.map(e,t):Da(e)?sn.set(e,t):typeof e=="object"&&e!==null?e:sn.box(e,t)}RO(GO,PO);var ik={box:function(t,n){var a=$f(n);return new Ns(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 Vi(function(){return oT(de.useProxies===!1||(a==null?void 0:a.proxy)===!1?Hs({},a):qk({},a),t,n)})},ref:ta(ek),shallow:ta(tk),deep:PO,struct:ta(nk)},sn=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(js(n))return ic(t,n,dv);if(Fa(t))return ta(gy(YO,t));var a=Fa(n)?n:{};return a.get=t,a.name||(a.name=t.name||""),new Mr(a)};Object.assign(zd,dv);zd.struct=ta(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 Us(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,ea(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;pr();var d=de.allowStateChanges;h&&(qs(),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_),mr(),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 Ns=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(fr(this)){var o=dr(this,{object:this,type:na,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(),Dr(this)&&jr(this,{type:na,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:na,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}(qi),Mr=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_=Us("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_(),pr(),this.value_=this.computeValue_(!1),mr());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=qs();a({observableKind:"computed",debugObjectName:o.name_,type:na,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 Vn(this.flags_,e.isComputingMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isComputingMask_,a)}},{key:"isRunningSetter",get:function(){return Vn(this.flags_,e.isRunningSetterMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isRunningSetterMask_,a)}},{key:"isBeingObserved",get:function(){return Vn(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return Vn(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return Vn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Hn(this.flags_,e.diffValueMask_,a===1)}}])}();Mr.isComputingMask_=1;Mr.isRunningSetterMask_=2;Mr.isBeingObservedMask_=4;Mr.isPendingUnobservationMask_=8;Mr.diffValueMask_=16;var qd=zs("ComputedValue",Mr),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=qs(),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=qs();try{return e()}finally{La(t)}}function qs(){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 pr(){de.inBatch++}function mr(){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 Mr&&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){pr(),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,mr()}},t.track=function(a){if(!this.isDisposed){pr(),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),mr()}},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||(pr(),pv(this),mr()))},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 Vn(this.flags_,e.isDisposedMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isDisposedMask_,a)}},{key:"isScheduled",get:function(){return Vn(this.flags_,e.isScheduledMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isScheduledMask_,a)}},{key:"isTrackPending",get:function(){return Vn(this.flags_,e.isTrackPendingMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isTrackPendingMask_,a)}},{key:"isRunning",get:function(){return Vn(this.flags_,e.isRunningMask_)},set:function(a){this.flags_=Hn(this.flags_,e.isRunningMask_,a)}},{key:"diffValue",get:function(){return Vn(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Hn(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=zs("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(kr(a))return Us(a.name||Ok,a,e);if(kr(s))return Us(a,s,e);if(sc(s))return(e?yv:vv).decorate_20223_(a,s);if(js(s))return ic(a,s,e?yv:vv);if(js(a))return ta(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=ta(Tk);qu.bound=ta(wk);function Vu(e){return kr(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=kr(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 Vi(function(){var o=Hs(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(js(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,g=void 0,_=new Promise(function(x,A){var N=0;b=A;function O(U){g=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){g=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(kr(U==null?void 0:U.then)){U.then(D,A);return}return U.done?x(U.value):(g=Promise.resolve(U.value),g.then(O,R))}O(void 0)});return _.cancel=Hl(s+" - runid: "+p+" - cancel",function(){try{g&&FE(g);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=ta(Fk);function FE(e){kr(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),pr();try{return e.apply(t)}finally{mr()}}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 js(n)?(s=Ml(t).set_(n,a,!0))!=null?s:!0:!1},deleteProperty:function(t,n){var a;return js(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=Hs(e,t),(a=(n=e[Fe]).proxy_)!=null?a:n.proxy_=new Proxy(e,zk)}function fr(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 dr(e,t){var n=qs();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 Dr(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 jr(e,t){var n=qs(),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 Vi(function(){var a,s=Hs(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):(Vi(function(){var a=Hs(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",na="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 qi(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),fr(this)){var d=dr(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=Dr(this),d=h||c?{observableKind:"array",object:this.proxy_,type:na,debugObjectName:this.atom_.name_,index:a,newValue:s,oldValue:o}:null;this.atom_.reportChanged(),h&&jr(this,d)},t.notifyArraySplice_=function(a,s,o){var c=!this.owned_&&ju(),h=Dr(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&&jr(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(fr(this)){var h=dr(this,{type:na,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(),Vi(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",Xn);xt("concat",Xn);xt("flat",Xn);xt("includes",Xn);xt("indexOf",Xn);xt("join",Xn);xt("lastIndexOf",Xn);xt("slice",Xn);xt("toString",Xn);xt("toLocaleString",Xn);xt("toSorted",Xn);xt("toSpliced",Xn);xt("with",Xn);xt("every",Br);xt("filter",Br);xt("find",Br);xt("findIndex",Br);xt("findLast",Br);xt("findLastIndex",Br);xt("flatMap",Br);xt("forEach",Br);xt("map",Br);xt("some",Br);xt("toReversed",Br);xt("reduce",dT);xt("reduceRight",dT);function xt(e,t){typeof Array.prototype[e]=="function"&&(bd[e]=t(e))}function Xn(e){return function(){var t=this[Fe];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Br(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=zs("ObservableArrayAdministration",_y);function Vd(e){return Bd(e)&&Kk(e[Fe])}var Qk={},Di="add",Sd="delete",hT=function(){function e(n,a,s){var o=this;a===void 0&&(a=Ms),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,kr(Map)||rt(18),Vi(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 Ns(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(fr(this)){var c=dr(this,{type:o?na:Di,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_,fr(this)){var o=dr(this,{type:Sd,object:this,name:a});if(!o)return!1}if(this.has_(a)){var c=ju(),h=Dr(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&&jr(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=Dr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:na,object:this,oldValue:o.value_,name:a,newValue:s}:null;o.setNewValue_(s),h&&jr(this,d)}},t.addValue_=function(a,s){var o=this;this.keysAtom_,ja(function(){var p,v=new Ns(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=Dr(this),d=h||c?{observableKind:"map",debugObjectName:this.name_,type:Di,object:this,name:a,newValue:s}:null;h&&jr(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 Vs(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 g=s.data_.get(v);c.set(v,g)}}}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"}}])}(),Vs=zs("ObservableMap",hT);function zE(e){return e[Symbol.toStringTag]="MapIterator",Oy(e)}function Xk(e){if(po(e)||Vs(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=Ms),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,kr(Set)||rt(22),this.enhancer_=function(c,h){return a(c,h,s)},Vi(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_,fr(this)){var o=dr(this,{type:Di,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=Dr(this),d=h||c?{observableKind:"set",debugObjectName:this.name_,type:Di,object:this,newValue:a}:null;h&&jr(this,d)}return this},t.delete=function(a){var s=this;if(fr(this)){var o=dr(this,{type:Sd,object:this,oldValue:a});if(!o)return!1}if(this.has(a)){var c=!1,h=Dr(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&&jr(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)&&!Zr(a))return a.intersection(this);var s=new Set(this);return s.intersection(a)},t.union=function(a){if(Da(a)&&!Zr(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)&&!Zr(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)&&!Zr(a))return a.isDisjointFrom(this);var s=new Set(this);return s.isDisjointFrom(a)},t.replace=function(a){var s=this;return Zr(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"}}])}(),Zr=zs("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 qi("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 Mr)return o.set(s),!0;if(fr(this)){var c=dr(this,{type:na,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=Dr(this),d=!1,p=h||d?{type:na,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:a,newValue:s}:null;o.setNewValue_(s),h&&jr(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 Ns(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_[Jr])!=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{pr();var c=this.delete_(a);if(!c)return c;if(fr(this)){var h=dr(this,{object:this.proxy_||this.target_,name:a,type:Di,newValue:s.value});if(!h)return null;var d=h.newValue;s.value!==d&&(s=ks({},s,{value:d}))}if(o){if(!Reflect.defineProperty(this.target_,a,s))return!1}else ea(this.target_,a,s);this.notifyPropertyAddition_(a,s.value)}finally{mr()}return!0},t.defineObservableProperty_=function(a,s,o,c){c===void 0&&(c=!1),this.keysAtom_;try{pr();var h=this.delete_(a);if(!h)return h;if(fr(this)){var d=dr(this,{object:this.proxy_||this.target_,name:a,type:Di,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 ea(this.target_,a,v);var b=new Ns(s,o,"ObservableObject.key",!1);this.values_.set(a,b),this.notifyPropertyAddition_(a,b.value_)}finally{mr()}return!0},t.defineComputedProperty_=function(a,s,o){o===void 0&&(o=!1),this.keysAtom_;try{pr();var c=this.delete_(a);if(!c)return c;if(fr(this)){var h=dr(this,{object:this.proxy_||this.target_,name:a,type:Di,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 ea(this.target_,a,p);this.values_.set(a,new Mr(s)),this.notifyPropertyAddition_(a,void 0)}finally{mr()}return!0},t.delete_=function(a,s){if(s===void 0&&(s=!1),this.keysAtom_,!$a(this.target_,a))return!0;if(fr(this)){var o=dr(this,{object:this.proxy_||this.target_,name:a,type:HE});if(!o)return null}try{var c;pr();var h=Dr(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 Ns&&(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 g={type:HE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:v,name:a};h&&jr(this,g)}}finally{mr()}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=Dr(this),h=!1;if(c||h){var d=c||h?{type:Di,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:a,newValue:s}:null;c&&jr(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 Hs(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=zs("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_[Jr])==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,Vi(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){ea(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(Zr(e))return e.atom_;if(Vs(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(kr(e)&&gd(e[Fe]))return e[Fe];rt(28)}function a2(e,t){if(e||rt(29),yy(e)||qd(e)||gd(e)||Vs(e)||Zr(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)||Vs(e)||Zr(e)?n=a2(e):n=Ed(e)}return n.name_}function Vi(e){var t=qs(),n=by(!0);pr();try{return e()}finally{mr(),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&&!(kr(d)&&d instanceof d&&kr(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),g=b.length;if(Object.keys(t).length!==g)return!1;for(var _=0;_<g;_++){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)||Vs(e)||Da(e)||Zr(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
|
-
* @license React
|
|
74
|
-
* use-sync-external-store-shim.production.js
|
|
75
|
-
*
|
|
76
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the MIT license found in the
|
|
79
|
-
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/var XE;function p2(){if(XE)return Nm;XE=1;var e=Rd();function t(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function h(b,g){var _=g(),x=a({inst:{value:_,getSnapshot:g}}),A=x[0].inst,N=x[1];return o(function(){A.value=_,A.getSnapshot=g,d(A)&&N({inst:A})},[b,_,g]),s(function(){return d(A)&&N({inst:A}),b(function(){d(A)&&N({inst:A})})},[b]),c(_),_}function d(b){var g=b.getSnapshot;b=b.value;try{var _=g();return!n(b,_)}catch{return!0}}function p(b,g){return g()}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 Vt(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
|
-
`,v=a.split(/\r\n|[\n\r]/g),b=v[s];if(b.length>120){const g=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,g+1).map(A=>["|",A]),["|","^".padStart(_)],["|",x[g+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 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 g=a_((a=this.nodes)===null||a===void 0?void 0:a.map(x=>x.loc).filter(x=>x!=null));this.source=h??(g==null||(s=g[0])===null||s===void 0?void 0:s.source),this.positions=d??(g==null?void 0:g.map(x=>x.start)),this.locations=d&&h?d.map(x=>Ev(h,x)):g==null?void 0:g.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
|
-
|
|
84
|
-
`+C2(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
|
|
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 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 Es;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Es||(Es={}));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 g=s&&xv(e.charCodeAt(0));return(v&&!g||o)&&(b+=`
|
|
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 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 $s(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: ${$s(e,s)}.`:`Invalid character: ${$s(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: ${$s(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: ${$s(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: ${$s(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: ${$s(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: ${$s(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
|
-
|
|
92
|
-
Ensure that there is only one instance of "graphql" in the node_modules
|
|
93
|
-
directory. If different versions of "graphql" are the dependencies of other
|
|
94
|
-
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
95
|
-
|
|
96
|
-
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
97
|
-
|
|
98
|
-
Duplicate "graphql" modules cannot be used at the same time since different
|
|
99
|
-
versions may have different capabilities and behavior. The data from one
|
|
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 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:Es.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 Es.QUERY;case"mutation":return Es.MUTATION;case"subscription":return Es.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 g=[],_=[];do{h++;const O=h===c.length,R=O&&d.length!==0;if(O){if(v=_.length===0?void 0:g[g.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;g.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,g,_),D===cM)break;if(D===!1){if(!O){g.pop();continue}}else if(D!==void 0&&(d.push([v,D]),!O))if(i_(D))p=D;else{g.pop();continue}}if(D===void 0&&R&&d.push([v,p]),O)g.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
|
-
|
|
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})=>Tr(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
|
-
`)),`
|
|
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," "),Tr(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," "),Tr(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:a,directives:s})=>Je("",e,`
|
|
110
|
-
`)+t+(l_(n)?Je(`(
|
|
111
|
-
`,rd(Ee(n,`
|
|
112
|
-
`)),`
|
|
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," "),Tr(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," "),Tr(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," "),Tr(a)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:a,locations:s})=>Je("",e,`
|
|
120
|
-
`)+"directive @"+t+(l_(n)?Je(`(
|
|
121
|
-
`,rd(Ee(n,`
|
|
122
|
-
`)),`
|
|
123
|
-
)`):Je("(",Ee(n,", "),")"))+(a?" repeatable":"")+" on "+Ee(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ee(["extend schema",Ee(e," "),Tr(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," "),Tr(a)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:a})=>Ee(["extend interface",e,Je("implements ",Ee(t," & ")),Ee(n," "),Tr(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," "),Tr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ee(["extend input",e,Ee(t," "),Tr(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 Tr(e){return Je(`{
|
|
124
|
-
`,rd(Ee(e,`
|
|
125
|
-
`)),`
|
|
126
|
-
}`)}function Je(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function rd(e){return Je(" ",e.replace(/\n/g,`
|
|
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(),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
|
-
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}},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===Es.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,...g}=this.requestConfig,{url:_}=this;o.signal!==void 0&&(g.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:g,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,...g}=this.requestConfig,{url:_}=this;o.signal!==void 0&&(g.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:g,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:g})=>Mm(g,o)),d=h.map(({expression:g})=>g),p=h.some(({isMutation:g})=>g),v=a.documents.map(({variables:g})=>g),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:g})=>{if(n)return Promise.reject(new Error("Mutation already in progress"));o(!0),a(!0),h(null);const _=new AbortController,x={...t,variables:g,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:g})=>v.current?v.current({variables:g}):Promise.reject(new Error("Mutation function not initialized")),[]),{data:d,loading:n,error:c,called:s}]},Hi=(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),g=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:g}),b.current&&b.current.abort();const R=new AbortController;b.current=R;const D=lo(e,{...g,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,g]);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={...g,variables:R??g.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,g]);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:"isPlayground"}},{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:"GetCasinoChatMessages"},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:"hubChatMessagesByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"last"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_ASC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{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:"body"}}]}}]}}]}}]}}]}}]},CM={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"}}]}}]}}]}}]}}]},RM={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"}}]}}]}}]}}]}}]}}]}}]},DM={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"}}]}}]}}]}}]}}]},jM={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"}}]}}]}}]}}]},kM={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"}}]}}]}}]}}]}}]}}]},MM={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"}}]}}]}}]}}]}}]}}]}}]},UM={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"}}]}}]}}]}}]},$M={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"}}]}}]}}]}}]},LM={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"}}]}}]}}]}}]},BM={"\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 isPlayground\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 GetCasinoChatMessages($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubChatMessagesByCasinoId(last: 100, orderBy: ID_ASC) {\n edges {\n node {\n id\n hubUserByUserId {\n id\n uname\n }\n hubExperienceByExperienceId {\n id\n name\n }\n body\n }\n }\n }\n }\n }\n":NM,"\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":CM,"\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":RM,"\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":DM,"\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":jM,"\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":kM,"\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":MM,"\n mutation AddCasino($input: HubAddCasinoInput!) {\n hubAddCasino(input: $input) {\n casino {\n id\n name\n baseUrl\n graphqlUrl\n }\n }\n }\n":UM,"\n mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {\n updateHubBankrollById(input: $input) {\n hubBankroll {\n id\n amount\n currencyKey\n }\n }\n }\n":$M,"\n mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {\n updateHubCasinoById(input: $input) {\n hubCasino {\n id\n }\n }\n }\n":LM};function br(e){return BM[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 Rn(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 FM(e){return e.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}const m_=br(`
|
|
131
|
-
query LoginRequest($key: UUID!) {
|
|
132
|
-
hubApiKeyByKey(key: $key) {
|
|
133
|
-
id
|
|
134
|
-
}
|
|
135
|
-
allHubCasinos {
|
|
136
|
-
nodes {
|
|
137
|
-
id
|
|
138
|
-
name
|
|
139
|
-
graphqlUrl
|
|
140
|
-
baseUrl
|
|
141
|
-
isPlayground
|
|
142
|
-
hubCurrenciesByCasinoId {
|
|
143
|
-
nodes {
|
|
144
|
-
key
|
|
145
|
-
displayUnitName
|
|
146
|
-
displayUnitScale
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
`);class IM{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(Rn(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),zM=Vt(({store:e,children:t})=>y.jsx($T.Provider,{value:e,children:t})),Wt=()=>{const e=S.useContext($T);if(!e)throw new Error("useStore must be used within a StoreProvider");return e};var $m={exports:{}};/*!
|
|
153
|
-
Copyright (c) 2018 Jed Watson.
|
|
154
|
-
Licensed under the MIT License (MIT), see
|
|
155
|
-
http://jedwatson.github.io/classnames
|
|
156
|
-
*/var y_;function qM(){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 VM=qM();const be=Fs(VM);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 HM(e){var t=PM(e,"string");return typeof t=="symbol"?t:String(t)}function PM(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),g=1;g<v;g++)b[g-1]=arguments[g];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(HM)),p=t[a],v=BT(h,c,e[p]),b=v[0],g=v[1];return Av({},d,(s={},s[a]=b,s[p]=g,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 GM(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:z6,Provider:q6}=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 YM(e){var t=yo(e);return t&&t.defaultView||window}function KM(e,t){return YM(e).getComputedStyle(e,t)}var QM=/([A-Z])/g;function XM(e){return e.replace(QM,"-$1").toLowerCase()}var ZM=/^ms-/;function If(e){return XM(e).replace(ZM,"-ms-")}var JM=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function WM(e){return!!(e&&JM.test(e))}function Ba(e,t){var n="",a="";if(typeof t=="string")return e.style.getPropertyValue(If(t))||KM(e).getPropertyValue(If(t));Object.keys(t).forEach(function(s){var o=t[s];!o&&o!==0?e.style.removeProperty(If(s)):WM(s)?a+=s+"("+o+") ":n+=If(s)+": "+o+";"}),a&&(n+="transform: "+a+";"),e.style.cssText+=";"+n}var Lm={exports:{}},Bm,b_;function eU(){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 tU(){if(S_)return Fm;S_=1;var e=eU();function t(){}function n(){}return n.resetWarningCache=t,Fm=function(){function a(c,h,d,p,v,b){if(b!==e){var g=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 g.name="Invariant Violation",g}}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 nU(){return E_||(E_=1,Lm.exports=tU()()),Lm.exports}var rU=nU();const Pe=Fs(rU),__={disabled:!1},zT=mt.createContext(null);var aU=function(t){return t.scrollTop},Ru="unmounted",Oi="exited",Rr="entering",ka="entered",Gu="exiting",Pa=function(e){GM(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=Oi,o.appearStatus=Rr):d=ka:a.unmountOnExit||a.mountOnEnter?d=Ru:d=Oi,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var c=s.in;return c&&o.status===Ru?{status:Oi}: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!==Rr&&c!==ka&&(o=Rr):(c===Rr||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===Rr){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Ss.findDOMNode(this);c&&aU(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oi&&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]:[Ss.findDOMNode(this),h],p=d[0],v=d[1],b=this.getTimeouts(),g=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:Rr},function(){o.props.onEntering(p,v),o.onTransitionEnd(g,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:Ss.findDOMNode(this);if(!o||__.disabled){this.safeSetState({status:Oi},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:Oi},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:Ss.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=Oi;Pa.ENTERING=Rr;Pa.ENTERED=ka;Pa.EXITING=Gu;function qT(e){return e.code==="Escape"||e.keyCode===27}function iU(){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}=iU();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 sU(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 lU(e){var t=Ba(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function oU(e,t,n){n===void 0&&(n=5);var a=!1,s=setTimeout(function(){a||sU(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=lU(e)||0);var s=oU(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 uU(e,t){const n=O_(e),a=O_(t);return s=>{n&&n(s),a&&a(s)}}function Yd(e,t){return S.useMemo(()=>uU(e,t),[e,t])}function _d(e){return e&&"setState"in e?Ss.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),g=Yd(b,d),_=w=>{g(_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 y.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:_})})}),cU={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function fU(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,a=t[n],s=cU[e];return a+parseInt(Ba(t,s[0]),10)+parseInt(Ba(t,s[1]),10)}const dU={[Oi]:"collapse",[Gu]:"collapsing",[Rr]:"collapsing",[ka]:"collapse show"},hU=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:g=!1,getDimensionValue:_=fU,...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 y.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:g,children:(w,q)=>mt.cloneElement(c,{...q,className:be(o,c.props.className,dU[w],N==="width"&&"collapse-horizontal")})})});function pU(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Ui(e){const t=pU(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fc=e=>S.forwardRef((t,n)=>y.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"),y.jsx(n,{ref:s,className:be(e,t),...a})));YT.displayName="AlertHeading";function T_(){return S.useState(null)}function mU(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function hr(e){const t=mU(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 vU(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const yU=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",gU=typeof document<"u",w_=gU||yU?S.useLayoutEffect:S.useEffect,bU=["as","disabled"];function SU(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 EU(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=g=>{if((t||e==="a"&&EU(n))&&g.preventDefault(),t){g.stopPropagation();return}c==null||c(g)},b=g=>{g.key===" "&&(g.preventDefault(),v(g))};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=SU(e,bU);const[o,{tagName:c}]=Uy(Object.assign({tagName:n,disabled:a},s));return y.jsx(c,Object.assign({},s,o,{ref:t}))});QT.displayName="Button";const _U=["onKeyDown"];function xU(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 OU(e){return!e||e.trim()==="#"}const Kd=S.forwardRef((e,t)=>{let{onKeyDown:n}=e,a=xU(e,_U);const[s]=Uy(Object.assign({tagName:"a"},a)),o=hr(c=>{s.onKeyDown(c),n==null||n(c)});return OU(a.href)||a.role==="button"?y.jsx("a",Object.assign({ref:t},a,s,{onKeyDown:o})):y.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"),y.jsx(n,{ref:s,className:be(e,t),...a})));XT.displayName="AlertLink";const TU={[Rr]:"show",[ka]:"show"},$i=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 y.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,TU[d],n[d])})})});$i.displayName="Fade";const wU={"aria-label":Pe.string,onClick:Pe.func,variant:Pe.oneOf(["white"])},Qd=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...a},s)=>y.jsx("button",{ref:s,type:"button",className:be("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...a}));Qd.displayName="CloseButton";Qd.propTypes=wU;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=$i,...g}=Cy(e,{show:"onClose"}),_=Ce(n,"alert"),x=Ui(O=>{p&&p(!1,O)}),A=b===!0?$i:b,N=y.jsxs("div",{role:"alert",...A?void 0:g,ref:t,className:be(c,_,d&&`${_}-${d}`,v&&`${_}-dismissible`),children:[v&&y.jsx(Qd,{onClick:x,"aria-label":s,variant:o}),h]});return A?y.jsx(A,{unmountOnExit:!0,...g,ref:void 0,in:a,children:N}):a?N:null});ZT.displayName="Alert";const Kn=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 g=Ce(e,"breadcrumb-item");return y.jsx(s,{ref:b,...v,className:be(g,a,{active:t}),"aria-current":t?"page":void 0,children:t?n:y.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 y.jsx(o,{"aria-label":s,className:t,ref:h,...c,children:y.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}),g=b;return y.jsx(g,{...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"),y.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"),y.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 y.jsx(Ly.Provider,{value:c,children:y.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 y.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"),y.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"),y.jsx(n,{ref:s,className:be(e,t),...a})));aw.displayName="CardLink";const AU=fc("h6"),iw=S.forwardRef(({className:e,bsPrefix:t,as:n=AU,...a},s)=>(t=Ce(t,"card-subtitle"),y.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"),y.jsx(n,{ref:s,className:be(e,t),...a})));sw.displayName="CardText";const NU=fc("h5"),lw=S.forwardRef(({className:e,bsPrefix:t,as:n=NU,...a},s)=>(t=Ce(t,"card-title"),y.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 y.jsx(h,{ref:p,...d,className:be(t,v,n&&`bg-${n}`,a&&`text-${a}`,s&&`border-${s}`),children:o?y.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 CU(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function RU(e){const t=S.useRef(e);return t.current=e,t}function uw(e){const t=RU(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 DU(){const e=CU(),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 jU(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function kU({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,g;typeof p=="object"&&p!=null?{span:v,offset:b,order:g}=p:v=p;const _=d!==o?`-${d}`:"";v&&c.push(v===!0?`${t}${_}`:`${t}${_}-${v}`),g!=null&&h.push(`order${_}-${g}`),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}]=kU(e);return y.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 y.jsx(n,{ref:o,...s,className:be(a,t?`${c}${h}`:c)})});dc.displayName="Container";var MU=Function.prototype.bind.call(Function.prototype.call,[].slice);function vs(e,t){return MU(e.querySelectorAll(t))}function UU(){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 $U(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",LU="clippingParents",fw="viewport",Ou="popper",BU="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])},[]),FU="beforeRead",IU="read",zU="afterRead",qU="beforeMain",VU="main",HU="afterMain",PU="beforeWrite",GU="write",YU="afterWrite",KU=[FU,IU,zU,qU,VU,HU,PU,GU,YU];function ra(e){return e.split("-")[0]}function Qn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ls(e){var t=Qn(e).Element;return e instanceof t||e instanceof Element}function aa(e){var t=Qn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fy(e){if(typeof ShadowRoot>"u")return!1;var t=Qn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Cs=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&&aa(e)&&(s=e.offsetWidth>0&&uo(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uo(a.height)/e.offsetHeight||1);var c=Ls(e)?Qn(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,g=a.height/o;return{width:b,height:g,top:v,right:p+b,bottom:v+g,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 Li(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){return Qn(e).getComputedStyle(e)}function QU(e){return["table","td","th"].indexOf(Li(e))>=0}function Pi(e){return((Ls(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return Li(e)==="html"?e:e.assignedSlot||e.parentNode||(Fy(e)?e.host:null)||Pi(e)}function R_(e){return!aa(e)||za(e).position==="fixed"?null:e.offsetParent}function XU(e){var t=/firefox/i.test(kv()),n=/Trident/i.test(kv());if(n&&aa(e)){var a=za(e);if(a.position==="fixed")return null}var s=Zd(e);for(Fy(s)&&(s=s.host);aa(s)&&["html","body"].indexOf(Li(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=Qn(e),n=R_(e);n&&QU(n)&&za(n).position==="static";)n=R_(n);return n&&(Li(n)==="html"||Li(n)==="body"&&za(n).position==="static")?t:n||XU(e)||t}function zy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mu(e,t,n){return Cs(e,xd(t,n))}function ZU(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 JU=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 WU(e){var t,n=e.state,a=e.name,s=e.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,h=ra(n.placement),d=zy(h),p=[Cn,gr].indexOf(h)>=0,v=p?"height":"width";if(!(!o||!c)){var b=JU(s.padding,n),g=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-g[v]-b[x],w=R/2-g[v]/2+D,q=Mu(U,w,C),re=d;n.modifiersData[a]=(t={},t[re]=q,t.centerOffset=q-w,t)}}function e$(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 t$={name:"arrow",enabled:!0,phase:"main",fn:WU,effect:e$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fo(e){return e.split("-")[1]}var n$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r$(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,g=c.x,_=g===void 0?0:g,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===Qn(n)&&(w=Pi(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&&n$),Re=v===!0?r$({x:_,y:A},Qn(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 a$(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:ra(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 i$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a$,data:{}};var zf={passive:!0};function s$(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=Qn(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 l$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:s$,data:{}};var o$={left:"right",right:"left",bottom:"top",top:"bottom"};function ad(e){return e.replace(/left|right|bottom|top/g,function(t){return o$[t]})}var u$={start:"end",end:"start"};function j_(e){return e.replace(/start|end/g,function(t){return u$[t]})}function qy(e){var t=Qn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Vy(e){return co(Pi(e)).left+qy(e).scrollLeft}function c$(e,t){var n=Qn(e),a=Pi(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 f$(e){var t,n=Pi(e),a=qy(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Cs(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Cs(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+=Cs(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(Li(e))>=0?e.ownerDocument.body:aa(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=Qn(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 d$(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(c$(e,n)):Ls(t)?d$(t,n):Mv(f$(Pi(e)))}function h$(e){var t=Uu(Zd(e)),n=["absolute","fixed"].indexOf(za(e).position)>=0,a=n&&aa(e)?pc(e):e;return Ls(a)?t.filter(function(s){return Ls(s)&&pw(s,a)&&Li(s)!=="body"}):[]}function p$(e,t,n,a){var s=t==="clippingParents"?h$(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=Cs(v.top,d.top),d.right=xd(v.right,d.right),d.bottom=xd(v.bottom,d.bottom),d.left=Cs(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?ra(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?LU:h,p=n.rootBoundary,v=p===void 0?fw:p,b=n.elementContext,g=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=g===Ou?BU:Ou,D=e.rects.popper,U=e.elements[x?R:g],C=p$(Ls(U)?U:U.contextElement||Pi(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=g===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(g===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 m$(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,g=b.filter(function(x){return p.indexOf(x)>=0});g.length===0&&(g=b);var _=g.reduce(function(x,A){return x[A]=Ku(e,{placement:A,boundary:s,rootBoundary:o,padding:c})[ra(A)],x},{});return Object.keys(_).sort(function(x,A){return _[x]-_[A]})}function v$(e){if(ra(e)===By)return[];var t=ad(e);return[j_(e),t,j_(t)]}function y$(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,g=n.altBoundary,_=n.flipVariations,x=_===void 0?!0:_,A=n.allowedAutoPlacements,N=t.options.placement,O=ra(N),R=O===N,D=d||(R||!x?[ad(N)]:v$(N)),U=[N].concat(D).reduce(function(se,Se){return se.concat(ra(Se)===By?m$(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=ra(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:g,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 g$={name:"flip",enabled:!0,phase:"main",fn:y$,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 b$(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 S$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b$};function E$(e,t,n){var a=ra(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){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]=E$(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 x$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_$};function O$(e){var t=e.state,n=e.name;t.modifiersData[n]=bw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const T$={name:"popperOffsets",enabled:!0,phase:"read",fn:O$,data:{}};function w$(e){return e==="x"?"y":"x"}function A$(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,g=n.tether,_=g===void 0?!0:g,x=n.tetherOffset,A=x===void 0?0:x,N=Ku(t,{boundary:d,rootBoundary:p,padding:b,altBoundary:v}),O=ra(t.placement),R=fo(t.placement),D=!R,U=zy(O),C=w$(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),en=wt?U==="y"?wt.clientTop||0:wt.clientLeft||0:0,tn=(fe=ie==null?void 0:ie[U])!=null?fe:0,kt=te+Rt-tn-en,at=te+ut-tn,Dn=Mu(_?xd(le,kt):le,te,_?Cs(we,at):we);w[U]=Dn,Re[U]=Dn-te}if(h){var At,la=U==="x"?Nn:Cn,Zn=U==="x"?yr:gr,ln=w[C],hn=C==="y"?"height":"width",V=ln+N[la],ce=ln-N[Zn],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?ZU(ue,ln,ye):Mu(_?ue:V,ln,_?ye:ce);w[C]=tt,Re[C]=tt-ln}t.modifiersData[a]=Re}}const N$={name:"preventOverflow",enabled:!0,phase:"main",fn:A$,requiresIfExists:["offset"]};function C$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function R$(e){return e===Qn(e)||!aa(e)?qy(e):C$(e)}function D$(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 j$(e,t,n){n===void 0&&(n=!1);var a=aa(t),s=aa(t)&&D$(t),o=Pi(t),c=co(e,s,n),h={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!n)&&((Li(t)!=="body"||Hy(o))&&(h=R$(t)),aa(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 k$(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 M$(e){var t=k$(e);return KU.reduce(function(n,a){return n.concat(t.filter(function(s){return s.phase===a}))},[])}function U$(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $$(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 L$(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=[],g=!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:Ls(h)?Uu(h):h.contextElement?Uu(h.contextElement):[],popper:Uu(d)};var D=M$($$([].concat(a,v.options.modifiers)));return v.orderedModifiers=D.filter(function(U){return U.enabled}),x(),_.update()},forceUpdate:function(){if(!g){var O=v.elements,R=O.reference,D=O.popper;if(L_(R,D)){v.rects={reference:j$(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:U$(function(){return new Promise(function(N){_.forceUpdate(),N(v)})}),destroy:function(){A(),g=!0}};if(!L_(h,d))return _;_.setOptions(p).then(function(N){!g&&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 B$=L$({defaultModifiers:[S$,T$,i$,l$,x$,g$,N$,t$]}),F$=["enabled","placement","strategy","modifiers"];function I$(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 z$={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},q$={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)}}},V$=[];function H$(e,t,n={}){let{enabled:a=!0,placement:s="bottom",strategy:o="absolute",modifiers:c=V$}=n,h=I$(n,F$);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()},[]),[g,_]=$U(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,z$]})},[o,s,x,a,A]),S.useEffect(()=>{if(!(!a||e==null||t==null))return p.current=B$(e,t,Object.assign({},h,{placement:s,strategy:o,modifiers:[...A,q$,x]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,_(N=>Object.assign({},N,{attributes:{},styles:{popper:{}}})))}},[a,e,t]),g}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 P$(){if(B_)return qm;B_=1;var e=function(){};return qm=e,qm}var G$=P$();const Y$=Fs(G$),F_=()=>{};function K$(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 X$(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);Y$(!!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)||!K$(p)||!!Qu(v,p.target)||o.current,o.current=!1},[e]),h=hr(p=>{const v=id(e);v&&Qu(v,p.target)?o.current=!0:o.current=!1}),d=hr(p=>{s.current||t(p)});S.useEffect(()=>{var p,v;if(n||e==null)return;const b=yo(id(e)),g=b.defaultView||window;let _=(p=g.event)!=null?p:(v=g.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 Z$(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function J$(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function W$({enabled:e,enableEvents:t,placement:n,flip:a,offset:s,fixed:o,containerPadding:c,arrowElement:h,popperConfig:d={}}){var p,v,b,g;const _=Z$(d.modifiers);return Object.assign({},d,{placement:n,enabled:e,strategy:o?"fixed":d.strategy,modifiers:J$(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({},(g=_.arrow)==null?void 0:g.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 eL="data-rr-ui-",tL="rrUi";function Jd(e){return`${eL}${e}`}function nL(e){return`${tL}${e}`}const Sw=S.createContext(go?window:void 0);Sw.Provider;function Yy(){return S.useContext(Sw)}const rL=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",aL=typeof document<"u",Ew=aL||rL?S.useLayoutEffect:S.useEffect,bo=S.createContext(null);bo.displayName="NavbarContext";const iL={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)=>y.jsx(e,{...s,ref:o,className:be(t,`${n}-${a?"tooltip":"feedback"}`)}));Wd.displayName="Feedback";Wd.propTypes=iL;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"),y.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"),y.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:g,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||jU(N,Td),q=y.jsx(Ky,{...R,type:x==="switch"?"checkbox":x,ref:D,isValid:c,isInvalid:h,disabled:o,as:O});return y.jsx(qa.Provider,{value:C,children:y.jsx("div",{style:g,className:be(b,w&&t,a&&`${t}-inline`,s&&`${t}-reverse`,x==="switch"&&n),children:N||y.jsxs(y.Fragment,{children:[q,w&&y.jsx(Td,{title:_,children:A}),p&&y.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},g)=>{const{controlId:_}=S.useContext(qa);return e=Ce(e,"form-control"),y.jsx(v,{...b,type:t,size:a,ref:g,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 sL=Object.assign(xw,{Feedback:Wd}),Ow=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...a},s)=>(t=Ce(t,"form-floating"),y.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 y.jsx(qa.Provider,{value:s,children:y.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?y.jsx(Xd,{ref:h,as:"label",className:v,htmlFor:o,...c}):y.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"),y.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"),y.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"),y.jsx(n,{...s,ref:o,className:be(t,e,a&&"text-muted")})));Nw.displayName="FormText";const Cw=S.forwardRef((e,t)=>y.jsx(wd,{...e,ref:t,type:"switch"}));Cw.displayName="Switch";const lL=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"),y.jsxs(Qy,{ref:c,className:be(t,e),controlId:a,...o,children:[n,y.jsx("label",{htmlFor:a,children:s})]})));Rw.displayName="FloatingLabel";const oL={_ref:Pe.any,validated:Pe.bool,as:Pe.elementType},Xy=S.forwardRef(({className:e,validated:t,as:n="form",...a},s)=>y.jsx(n,{...a,ref:s,className:be(e,t&&"was-validated")}));Xy.displayName="Form";Xy.propTypes=oL;const He=Object.assign(Xy,{Group:Qy,Control:sL,Floating:Ow,Check:wd,Switch:lL,Label:Tw,Text:Nw,Range:ww,Select:Aw,FloatingLabel:Rw}),z_=e=>!e||typeof e=="function"?e:t=>{e.current=t};function uL(e,t){const n=z_(e),a=z_(t);return s=>{n&&n(s),a&&a(s)}}function mc(e,t){return S.useMemo(()=>uL(e,t),[e,t])}const Dw=S.createContext(null),cL=["as","active","eventKey"];function fL(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),g=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"]=g)}return v.role==="tab"&&(v["aria-selected"]=p,p||(v.tabIndex=-1),o&&(v.tabIndex=-1,v["aria-disabled"]=!0)),v.onClick=hr(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=fL(e,cL);const[c,h]=jw(Object.assign({key:Py(s,o.href),active:a},o));return c[Jd("active")]=h.isActive,y.jsx(n,Object.assign({},o,c,{ref:t}))});kw.displayName="NavItem";const dL=["as","onSelect","activeKey","role","onKeyDown"];function hL(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=hL(e,dL);const d=UU(),p=S.useRef(!1),v=S.useContext(Od),b=S.useContext(Dw);let g,_;b&&(o=o||"tablist",s=b.activeKey,g=b.getControlledId,_=b.getControllerId);const x=S.useRef(null),A=D=>{const U=x.current;if(!U)return null;const C=vs(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[nL("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 y.jsx(Od.Provider,{value:N,children:y.jsx(Gy.Provider,{value:{role:o,activeKey:Py(s),getControlledId:g||q_,getControllerId:_||q_},children:y.jsx(n,Object.assign({},h,{onKeyDown:O,ref:R,role:o}))})})});Mw.displayName="Nav";const pL=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 mL(){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 vL(e){const t=S.useRef(e);return t.current=e,t}function yL(e){const t=vL(e);S.useEffect(()=>()=>t.current(),[])}function gL(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 gL(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 bL({children:e,in:t,onExited:n,mountOnEnter:a,unmountOnExit:s}){const o=S.useRef(null),c=S.useRef(t),h=hr(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 SL=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function EL(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 _L(e){let{onEnter:t,onEntering:n,onEntered:a,onExit:s,onExiting:o,onExited:c,addEndListener:h,children:d}=e,p=EL(e,SL);const v=S.useRef(null),b=mc(v,Gs(d)),g=U=>C=>{U&&v.current&&U(v.current,C)},_=S.useCallback(g(t),[t]),x=S.useCallback(g(n),[n]),A=S.useCallback(g(a),[a]),N=S.useCallback(g(s),[s]),O=S.useCallback(g(o),[o]),R=S.useCallback(g(c),[c]),D=S.useCallback(g(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 xL=["component"];function OL(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 TL=S.forwardRef((e,t)=>{let{component:n}=e,a=OL(e,xL);const s=_L(a);return y.jsx(n,Object.assign({ref:t},s))});function wL({in:e,onTransition:t}){const n=S.useRef(null),a=S.useRef(!0),s=hr(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 AL({children:e,in:t,onExited:n,onEntered:a,transition:s}){const[o,c]=S.useState(!t);t&&o&&c(!1);const h=wL({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?y.jsx(TL,Object.assign({},n,{component:e})):t?y.jsx(AL,Object.assign({},n,{transition:t})):y.jsx(bL,Object.assign({},n))}const NL=["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 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}let Pm;function RL(e){return Pm||(Pm=new Zy({ownerDocument:e==null?void 0:e.document})),Pm}function DL(e){const t=Yy(),n=e||RL(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:g,backdropTransition:_,runBackdropTransition:x,autoFocus:A=!0,enforceFocus:N=!0,restoreFocus:O=!0,restoreFocusOptions:R,renderDialog:D,renderBackdrop:U=at=>y.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=CL(e,NL);const L=Yy(),te=Uv(w),le=DL(C),we=KT(),k=vU(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=hr(()=>{if(le.add(),ut.current=Ma(document,"keydown",qe),Rt.current=Ma(document,"focus",()=>setTimeout(me),!0),q&&q(),A){var at,Dn;const At=Vm((at=(Dn=le.dialog)==null?void 0:Dn.ownerDocument)!=null?at:L==null?void 0:L.document);le.dialog&&At&&!Qu(le.dialog,At)&&(ne.current=At,le.dialog.focus())}}),Se=hr(()=>{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]),yL(()=>{Se()});const me=hr(()=>{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=hr(at=>{at.target===at.currentTarget&&(p==null||p(at),h===!0&&re())}),qe=hr(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 en=Object.assign({role:a,ref:le.setDialogRef,"aria-modal":a==="dialog"?!0:void 0},Te,{style:o,className:s,tabIndex:-1});let tn=D?D(en):y.jsx("div",Object.assign({},en,{children:S.cloneElement(c,{role:"document"})}));tn=$v(b,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:Q,onExiting:ie,onExited:wt,onEnter:Re,onEntering:fe,onEntered:xe,children:tn});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})),y.jsx(y.Fragment,{children:Ss.createPortal(y.jsxs(y.Fragment,{children:[kt,tn]}),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 jL(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 kL(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(jL(n,"modal-open"),!t.scrollBarWidth)return;const a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";vs(n,Ll.FIXED_CONTENT).forEach(o=>this.adjustAndStore(a,o,t.scrollBarWidth)),vs(n,Ll.STICKY_CONTENT).forEach(o=>this.adjustAndStore(s,o,-t.scrollBarWidth)),vs(n,Ll.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(s,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();kL(n,"modal-open");const a=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";vs(n,Ll.FIXED_CONTENT).forEach(o=>this.restore(a,o)),vs(n,Ll.STICKY_CONTENT).forEach(o=>this.restore(s,o)),vs(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"),y.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 y.jsx("div",{...d,ref:p,className:be(v,t,s&&`${e}-${s}`,a&&`${v}-centered`,h&&`${v}-scrollable`,o&&b),children:y.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"),y.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=Ui(()=>{h==null||h.onHide(),a==null||a()});return y.jsxs("div",{ref:c,...o,children:[s,n&&y.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"),y.jsx(zw,{ref:o,...s,className:be(t,e),closeLabel:n,closeButton:a})));qw.displayName="ModalHeader";const ML=fc("h4"),Vw=S.forwardRef(({className:e,bsPrefix:t,as:n=ML,...a},s)=>(t=Ce(t,"modal-title"),y.jsx(n,{ref:s,className:be(e,t),...a})));Vw.displayName="ModalTitle";function UL(e){return y.jsx($i,{...e,timeout:null})}function $L(e){return y.jsx($i,{...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:g=!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]=mL(),me=Yd(L,Se),dt=Ui(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 en=Ui(()=>{se&&wt(se.dialog)});uw(()=>{Dv(window,"resize",en),ne.current==null||ne.current()});const tn=()=>{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)})},Dn=ue=>{ue.target===ue.currentTarget&&at()},At=ue=>{if(_==="static"){Dn(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())},Zn=(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",en)},V=ue=>{ue&&(ue.style.display=""),Re==null||Re(ue),Dv(window,"resize",en)},ce=S.useCallback(ue=>y.jsx("div",{...ue,className:be(`${e}-backdrop`,fe,!g&&"show")}),[g,fe,e]),pe={...n,...te};pe.display="block";const _e=ue=>y.jsx("div",{role:"dialog",...ue,style:pe,className:be(t,e,we&&`${e}-static`,!g&&"show"),onClick:_?At:void 0,onMouseUp:kt,"data-bs-theme":h,"aria-label":v,"aria-labelledby":d,"aria-describedby":p,children:y.jsx(c,{...Te,onMouseDown:tn,className:a,contentClassName:s,children:o})});return y.jsx(Jy.Provider,{value:Rt,children:y.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:Zn,onEntering:hn,onEntered:q,onExit:ln,onExiting:Q,onExited:V,manager:ut(),transition:g?UL:void 0,backdropTransition:g?$L:void 0,renderBackdrop:ce,renderDialog:_e})})});Hw.displayName="Modal";const Gt=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"),y.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 y.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"}),g=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),y.jsx(pL,{as:n,ref:t,activeKey:v,className:be(p,{[g]:!A,[`${_}-nav`]:A,[`${_}-nav-scroll`]:A&&d,[`${x}-${s}`]:!!x,[`${g}-${s}`]:!!s,[`${g}-fill`]:o,[`${g}-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 y.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 y.jsx(hU,{in:!!(s&&s.expanded),...n,children:y.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=Ui(b=>{o&&o(b),d&&d()});return s==="button"&&(c.type="button"),y.jsx(s,{...c,ref:h,onClick:v,"aria-label":a,className:be(t,e,!p&&"collapsed"),children:n||y.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 LL(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 BL(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((g,[_,x])=>((x==="up"||x===!0)&&(g=n(g,o(_))),(x==="down"||x===!0)&&(g=n(g,s(_))),g),""),[JSON.stringify(v)]);return LL(b,p)}return c}const FL=BL({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"),y.jsx(n,{ref:s,className:be(e,t),...a})));Zw.displayName="OffcanvasBody";const IL={[Rr]:"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"),y.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===Rr||p===Gu)&&`${e}-toggling`,IL[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"),y.jsx(zw,{ref:o,...s,className:be(t,e),closeLabel:n,closeButton:a})));Ww.displayName="OffcanvasHeader";const zL=fc("h5"),e1=S.forwardRef(({className:e,bsPrefix:t,as:n=zL,...a},s)=>(t=Ce(t,"offcanvas-title"),y.jsx(n,{ref:s,className:be(e,t),...a})));e1.displayName="OffcanvasTitle";function qL(e){return y.jsx(Jw,{...e})}function VL(e){return y.jsx($i,{...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:g,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=Ui(g),te=FL(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=>y.jsx("div",{...se,className:be(`${e}-backdrop`,re)}),[re,e]),ne=se=>y.jsx("div",{...se,...ie,className:be(t,o?`${e}-${o}`:e,`${e}-${s}`),"aria-labelledby":a,children:n});return y.jsxs(y.Fragment,{children:[!xe&&(o||he)&&ne({}),y.jsx(Jy.Provider,{value:le,children:y.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:qL,backdropTransition:VL,renderBackdrop:ae,renderDialog:ne})})]})});t1.displayName="Offcanvas";const HL=Object.assign(t1,{Body:Zw,Header:Ww,Title:e1}),n1=S.forwardRef(({onHide:e,...t},n)=>{const a=S.useContext(bo),s=Ui(()=>{a==null||a.onToggle==null||a.onToggle(),e==null||e()});return y.jsx(HL,{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"),y.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:g,collapseOnSelect:_=!1,...x}=Cy(e,{expanded:"onToggle"}),A=Ce(n,"navbar"),N=S.useCallback((...D)=>{g==null||g(...D),_&&v&&(b==null||b(!1))},[g,_,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 y.jsx(bo.Provider,{value:R,children:y.jsx(Od.Provider,{value:N,children:y.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}),PL=()=>{};function GL(e,t,{disabled:n,clickTrigger:a}={}){const s=t||PL;X$(e,s,{disabled:n,clickTrigger:a});const o=hr(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,g]=T_(),_=mc(v,t),x=Uv(e.container),A=Uv(e.target),[N,O]=S.useState(!e.show),R=H$(A,p,W$({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(GL(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:g})});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?Ss.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"),y.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"),y.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 YL=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 g=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)}),y.jsxs("div",{ref:b,role:"tooltip",style:N,"x-placement":x,className:be(n,g,x&&`bs-popover-${A}`),...v,children:[y.jsx("div",{className:"popover-arrow",...c}),o?y.jsx(tg,{children:s}):s]})}),Fv=Object.assign(YL,{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(),[g]=(t==null?void 0:t.split("-"))||[],_=s1(g,b);let x=a;return d&&!c&&(x={...a,...l1(h==null?void 0:h.strategy)}),y.jsxs("div",{ref:v,style:x,role:"tooltip","x-placement":g,className:be(n,e,`bs-tooltip-${_}`),...p,children:[y.jsx("div",{className:"tooltip-arrow",...o}),y.jsx("div",{className:`${e}-inner`,children:s})]})});o1.displayName="Tooltip";const ng=Object.assign(o1,{TOOLTIP_OFFSET:[0,6]});function KL(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 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=$i,popperConfig:n={},rootClose:a=!1,placement:s="top",show:o=!1,...c},h)=>{const d=S.useRef({}),[p,v]=S.useState(null),[b,g]=KL(c.offset),_=Yd(h,b),x=t===!0?$i:t||void 0,A=Ui(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]),y.jsx(a1,{...c,ref:_,popperConfig:{...n,modifiers:g.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:be(e.props.className,!t&&D&&"show"),style:{...e.props.style,...N.style}})}})});rg.displayName="Overlay";function XL(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),g=Yd(b,Gs(n)),_=DU(),x=S.useRef(""),[A,N]=BT(s,o,c),O=XL(h),{onFocus:R,onBlur:D,onClick:U}=typeof n!="function"?S.Children.only(n).props:{},C=Te=>{g(_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),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(xe):S.cloneElement(n,xe),y.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 g;b!=null&&typeof b=="object"?{cols:g}=b:g=b;const _=v!==h?`-${v}`:"";g!=null&&p.push(`${d}${_}-${g}`)}),y.jsx(n,{ref:s,...a,className:be(t,o,...p)})});ag.displayName="Row";function ZL(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 y.jsx(e,{...o,ref:c,className:be(n,t,...ZL({gap:s},h,d))})});c1.displayName="Stack";const Ga=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"),g=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`),_=y.jsx("table",{...p,className:g,ref:v});if(d){let x=`${b}-responsive`;return typeof d=="string"&&(x=`${x}-${d}`),y.jsx("div",{className:x,children:_})}return _}),JL=Vt(()=>{const e=Wt(),t=jd(),n=()=>{t("/"),e.logout()};return y.jsx(Bl,{style:{borderBottom:"1px solid #C7C8C9"},expand:"lg",className:"mb-4",children:y.jsxs(dc,{fluid:!0,children:[y.jsx(Bl.Brand,{children:y.jsx(Yn,{to:"/",style:{color:"inherit",textDecoration:"none"},children:"Dashboard"})}),y.jsx(Bl.Toggle,{"aria-controls":"basic-navbar-nav"}),y.jsxs(Bl.Collapse,{id:"basic-navbar-nav",children:[y.jsx(Tu,{className:"me-auto",children:y.jsxs(eg,{children:["Connected to:"," ",y.jsx("a",{href:wv,target:"_blank",rel:"noreferrer",children:wv})]})}),e.loggedIn?y.jsx(Tu,{children:y.jsx(Bl.Text,{className:"me-2",children:y.jsx(Jt,{variant:"link nav-link",onClick:n,children:"Log out"})})}):y.jsxs(Tu,{children:[y.jsx(Tu.Link,{as:Yn,to:"/login",children:"Log in"}),y.jsx(Bl.Text,{children:"or"}),y.jsx(Tu.Link,{as:Yn,to:"/register",children:"Register"})]})]})]})})}),Q_=[{path:"/casinos",title:"Casinos"}];function WL(e,t){return e.sort((n,a)=>a.length-n.length).find(n=>t.startsWith(n))}const eB=Vt(()=>{const e=Ha();if(!Wt().loggedIn)return y.jsx("div",{children:"You must be logged in"});const n=WL(Q_.map(a=>a.path),e.pathname);return y.jsxs("div",{children:[y.jsx("ul",{className:"nav nav-tabs mb-4 ",children:Q_.map(a=>y.jsx("li",{className:"nav-item",children:y.jsx(Yn,{to:a.path,className:`nav-link ${n===a.path?"active":""}`,children:a.title})},a.path))}),y.jsx(yO,{})]})});var tB=function(t){return nB(t)&&!rB(t)};function nB(e){return!!e&&typeof e=="object"}function rB(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sB(e)}var aB=typeof Symbol=="function"&&Symbol.for,iB=aB?Symbol.for("react.element"):60103;function sB(e){return e.$$typeof===iB}function lB(e){return Array.isArray(e)?[]:{}}function Ad(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xu(lB(e),e,t):e}function oB(e,t,n){return e.concat(t).map(function(a){return Ad(a,n)})}function uB(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||oB,n.isMergeableObject=n.isMergeableObject||tB;var a=Array.isArray(t),s=Array.isArray(e),o=a===s;return o?a?n.arrayMerge(e,t,n):uB(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,cB=typeof self=="object"&&self&&self.Object===Object&&self,sa=f1||cB||Function("return this")(),Bi=sa.Symbol,d1=Object.prototype,fB=d1.hasOwnProperty,dB=d1.toString,wu=Bi?Bi.toStringTag:void 0;function hB(e){var t=fB.call(e,wu),n=e[wu];try{e[wu]=void 0;var a=!0}catch{}var s=dB.call(e);return a&&(t?e[wu]=n:delete e[wu]),s}var pB=Object.prototype,mB=pB.toString;function vB(e){return mB.call(e)}var yB="[object Null]",gB="[object Undefined]",X_=Bi?Bi.toStringTag:void 0;function Ys(e){return e==null?e===void 0?gB:yB:X_&&X_ in Object(e)?hB(e):vB(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 bB="[object Object]",SB=Function.prototype,EB=Object.prototype,p1=SB.toString,_B=EB.hasOwnProperty,xB=p1.call(Object);function Z_(e){if(!Ks(e)||Ys(e)!=bB)return!1;var t=ig(e);if(t===null)return!0;var n=_B.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&p1.call(n)==xB}function OB(){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 TB=Array.prototype,wB=TB.splice;function AB(e){var t=this.__data__,n=eh(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():wB.call(t,n,1),--this.size,!0}function NB(e){var t=this.__data__,n=eh(t,e);return n<0?void 0:t[n][1]}function CB(e){return eh(this.__data__,e)>-1}function RB(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 Ya(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])}}Ya.prototype.clear=OB;Ya.prototype.delete=AB;Ya.prototype.get=NB;Ya.prototype.has=CB;Ya.prototype.set=RB;function DB(){this.__data__=new Ya,this.size=0}function jB(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function kB(e){return this.__data__.get(e)}function MB(e){return this.__data__.has(e)}function vc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var UB="[object AsyncFunction]",$B="[object Function]",LB="[object GeneratorFunction]",BB="[object Proxy]";function v1(e){if(!vc(e))return!1;var t=Ys(e);return t==$B||t==LB||t==UB||t==BB}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 FB(e){return!!J_&&J_ in e}var IB=Function.prototype,zB=IB.toString;function Qs(e){if(e!=null){try{return zB.call(e)}catch{}try{return e+""}catch{}}return""}var qB=/[\\^$.*+?()[\]{}|]/g,VB=/^\[object .+?Constructor\]$/,HB=Function.prototype,PB=Object.prototype,GB=HB.toString,YB=PB.hasOwnProperty,KB=RegExp("^"+GB.call(YB).replace(qB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QB(e){if(!vc(e)||FB(e))return!1;var t=v1(e)?KB:VB;return t.test(Qs(e))}function XB(e,t){return e==null?void 0:e[t]}function Xs(e,t){var n=XB(e,t);return QB(n)?n:void 0}var Zu=Xs(sa,"Map"),Ju=Xs(Object,"create");function ZB(){this.__data__=Ju?Ju(null):{},this.size=0}function JB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var WB="__lodash_hash_undefined__",eF=Object.prototype,tF=eF.hasOwnProperty;function nF(e){var t=this.__data__;if(Ju){var n=t[e];return n===WB?void 0:n}return tF.call(t,e)?t[e]:void 0}var rF=Object.prototype,aF=rF.hasOwnProperty;function iF(e){var t=this.__data__;return Ju?t[e]!==void 0:aF.call(t,e)}var sF="__lodash_hash_undefined__";function lF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ju&&t===void 0?sF:t,this}function Bs(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])}}Bs.prototype.clear=ZB;Bs.prototype.delete=JB;Bs.prototype.get=nF;Bs.prototype.has=iF;Bs.prototype.set=lF;function oF(){this.size=0,this.__data__={hash:new Bs,map:new(Zu||Ya),string:new Bs}}function uF(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 uF(t)?n[typeof t=="string"?"string":"hash"]:n.map}function cF(e){var t=th(this,e).delete(e);return this.size-=t?1:0,t}function fF(e){return th(this,e).get(e)}function dF(e){return th(this,e).has(e)}function hF(e,t){var n=th(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}function Gi(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])}}Gi.prototype.clear=oF;Gi.prototype.delete=cF;Gi.prototype.get=fF;Gi.prototype.has=dF;Gi.prototype.set=hF;var pF=200;function mF(e,t){var n=this.__data__;if(n instanceof Ya){var a=n.__data__;if(!Zu||a.length<pF-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gi(a)}return n.set(e,t),this.size=n.size,this}function So(e){var t=this.__data__=new Ya(e);this.size=t.size}So.prototype.clear=DB;So.prototype.delete=jB;So.prototype.get=kB;So.prototype.has=MB;So.prototype.set=mF;function vF(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 yF=Object.prototype,gF=yF.hasOwnProperty;function g1(e,t,n){var a=e[t];(!(gF.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 bF(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var SF="[object Arguments]";function ex(e){return Ks(e)&&Ys(e)==SF}var b1=Object.prototype,EF=b1.hasOwnProperty,_F=b1.propertyIsEnumerable,xF=ex(function(){return arguments}())?ex:function(e){return Ks(e)&&EF.call(e,"callee")&&!_F.call(e,"callee")},yc=Array.isArray;function OF(){return!1}var S1=typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,tx=S1&&typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,TF=tx&&tx.exports===S1,nx=TF?sa.Buffer:void 0,wF=nx?nx.isBuffer:void 0,E1=wF||OF,AF=9007199254740991,NF=/^(?:0|[1-9]\d*)$/;function CF(e,t){var n=typeof e;return t=t??AF,!!t&&(n=="number"||n!="symbol"&&NF.test(e))&&e>-1&&e%1==0&&e<t}var RF=9007199254740991;function _1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=RF}var DF="[object Arguments]",jF="[object Array]",kF="[object Boolean]",MF="[object Date]",UF="[object Error]",$F="[object Function]",LF="[object Map]",BF="[object Number]",FF="[object Object]",IF="[object RegExp]",zF="[object Set]",qF="[object String]",VF="[object WeakMap]",HF="[object ArrayBuffer]",PF="[object DataView]",GF="[object Float32Array]",YF="[object Float64Array]",KF="[object Int8Array]",QF="[object Int16Array]",XF="[object Int32Array]",ZF="[object Uint8Array]",JF="[object Uint8ClampedArray]",WF="[object Uint16Array]",eI="[object Uint32Array]",Tt={};Tt[GF]=Tt[YF]=Tt[KF]=Tt[QF]=Tt[XF]=Tt[ZF]=Tt[JF]=Tt[WF]=Tt[eI]=!0;Tt[DF]=Tt[jF]=Tt[HF]=Tt[kF]=Tt[PF]=Tt[MF]=Tt[UF]=Tt[$F]=Tt[LF]=Tt[BF]=Tt[FF]=Tt[IF]=Tt[zF]=Tt[qF]=Tt[VF]=!1;function tI(e){return Ks(e)&&_1(e.length)&&!!Tt[Ys(e)]}function sg(e){return function(t){return e(t)}}var x1=typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,$u=x1&&typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,nI=$u&&$u.exports===x1,Km=nI&&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,rI=rx?sg(rx):tI,aI=Object.prototype,iI=aI.hasOwnProperty;function O1(e,t){var n=yc(e),a=!n&&xF(e),s=!n&&!a&&E1(e),o=!n&&!a&&!s&&rI(e),c=n||a||s||o,h=c?bF(e.length,String):[],d=h.length;for(var p in e)(t||iI.call(e,p))&&!(c&&(p=="length"||s&&(p=="offset"||p=="parent")||o&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||CF(p,d)))&&h.push(p);return h}var sI=Object.prototype;function lg(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||sI;return e===n}var lI=h1(Object.keys,Object),oI=Object.prototype,uI=oI.hasOwnProperty;function cI(e){if(!lg(e))return lI(e);var t=[];for(var n in Object(e))uI.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):cI(e)}function fI(e,t){return e&&nh(t,og(t),e)}function dI(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var hI=Object.prototype,pI=hI.hasOwnProperty;function mI(e){if(!vc(e))return dI(e);var t=lg(e),n=[];for(var a in e)a=="constructor"&&(t||!pI.call(e,a))||n.push(a);return n}function ug(e){return T1(e)?O1(e,!0):mI(e)}function vI(e,t){return e&&nh(t,ug(t),e)}var w1=typeof Pn=="object"&&Pn&&!Pn.nodeType&&Pn,ax=w1&&typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,yI=ax&&ax.exports===w1,ix=yI?sa.Buffer:void 0,sx=ix?ix.allocUnsafe:void 0;function gI(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 bI(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 SI=Object.prototype,EI=SI.propertyIsEnumerable,lx=Object.getOwnPropertySymbols,cg=lx?function(e){return e==null?[]:(e=Object(e),bI(lx(e),function(t){return EI.call(e,t)}))}:N1;function _I(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 xI=Object.getOwnPropertySymbols,R1=xI?function(e){for(var t=[];e;)C1(t,cg(e)),e=ig(e);return t}:N1;function OI(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 TI(e){return D1(e,og,cg)}function wI(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]",AI="[object Object]",ux="[object Promise]",cx="[object Set]",fx="[object WeakMap]",dx="[object DataView]",NI=Qs(zv),CI=Qs(Zu),RI=Qs(qv),DI=Qs(Vv),jI=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==AI?e.constructor:void 0,a=n?Qs(n):"";if(a)switch(a){case NI:return dx;case CI:return ox;case RI:return ux;case DI:return cx;case jI:return fx}return t});var kI=Object.prototype,MI=kI.hasOwnProperty;function UI(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&MI.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 $I(e,t){var n=t?fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var LI=/\w*$/;function BI(e){var t=new e.constructor(e.source,LI.exec(e));return t.lastIndex=e.lastIndex,t}var px=Bi?Bi.prototype:void 0,mx=px?px.valueOf:void 0;function FI(e){return mx?Object(mx.call(e)):{}}function II(e,t){var n=t?fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var zI="[object Boolean]",qI="[object Date]",VI="[object Map]",HI="[object Number]",PI="[object RegExp]",GI="[object Set]",YI="[object String]",KI="[object Symbol]",QI="[object ArrayBuffer]",XI="[object DataView]",ZI="[object Float32Array]",JI="[object Float64Array]",WI="[object Int8Array]",e3="[object Int16Array]",t3="[object Int32Array]",n3="[object Uint8Array]",r3="[object Uint8ClampedArray]",a3="[object Uint16Array]",i3="[object Uint32Array]";function s3(e,t,n){var a=e.constructor;switch(t){case QI:return fg(e);case zI:case qI:return new a(+e);case XI:return $I(e,n);case ZI:case JI:case WI:case e3:case t3:case n3:case r3:case a3:case i3:return II(e,n);case VI:return new a;case HI:case YI:return new a(e);case PI:return BI(e);case GI:return new a;case KI:return FI(e)}}var vx=Object.create,l3=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 o3(e){return typeof e.constructor=="function"&&!lg(e)?l3(ig(e)):{}}var u3="[object Map]";function c3(e){return Ks(e)&&Ca(e)==u3}var yx=ho&&ho.isMap,f3=yx?sg(yx):c3,d3="[object Set]";function h3(e){return Ks(e)&&Ca(e)==d3}var gx=ho&&ho.isSet,p3=gx?sg(gx):h3,m3=1,v3=2,y3=4,j1="[object Arguments]",g3="[object Array]",b3="[object Boolean]",S3="[object Date]",E3="[object Error]",k1="[object Function]",_3="[object GeneratorFunction]",x3="[object Map]",O3="[object Number]",M1="[object Object]",T3="[object RegExp]",w3="[object Set]",A3="[object String]",N3="[object Symbol]",C3="[object WeakMap]",R3="[object ArrayBuffer]",D3="[object DataView]",j3="[object Float32Array]",k3="[object Float64Array]",M3="[object Int8Array]",U3="[object Int16Array]",$3="[object Int32Array]",L3="[object Uint8Array]",B3="[object Uint8ClampedArray]",F3="[object Uint16Array]",I3="[object Uint32Array]",_t={};_t[j1]=_t[g3]=_t[R3]=_t[D3]=_t[b3]=_t[S3]=_t[j3]=_t[k3]=_t[M3]=_t[U3]=_t[$3]=_t[x3]=_t[O3]=_t[M1]=_t[T3]=_t[w3]=_t[A3]=_t[N3]=_t[L3]=_t[B3]=_t[F3]=_t[I3]=!0;_t[E3]=_t[k1]=_t[C3]=!1;function Lu(e,t,n,a,s,o){var c,h=t&m3,d=t&v3,p=t&y3;if(c!==void 0)return c;if(!vc(e))return e;var v=yc(e);if(v){if(c=UI(e),!h)return A1(e,c)}else{var b=Ca(e),g=b==k1||b==_3;if(E1(e))return gI(e,h);if(b==M1||b==j1||g&&!s){if(c=d||g?{}:o3(e),!h)return d?OI(e,vI(c,e)):_I(e,fI(c,e))}else{if(!_t[b])return s?e:{};c=s3(e,b,h)}}o||(o=new So);var _=o.get(e);if(_)return _;o.set(e,c),p3(e)?e.forEach(function(N){c.add(Lu(N,t,n,N,e,o))}):f3(e)&&e.forEach(function(N,O){c.set(O,Lu(N,t,n,O,e,o))});var x=p?d?wI:TI:d?ug:og,A=v?void 0:x(e);return vF(A||e,function(N,O){A&&(O=N,N=e[O]),g1(c,O,Lu(N,t,n,O,e,o))}),c}var z3=1,q3=4;function Vf(e){return Lu(e,z3|q3)}var Qm,bx;function V3(){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 g=o instanceof Date,_=c instanceof Date;if(g!=_)return!1;if(g&&_)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 H3=V3();const ys=Fs(H3);var P3=4;function Sx(e){return Lu(e,P3)}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 G3="[object Symbol]";function dg(e){return typeof e=="symbol"||Ks(e)&&Ys(e)==G3}var Y3="Expected a function";function hg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Y3);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||Gi),n}hg.Cache=Gi;var K3=500;function Q3(e){var t=hg(e,function(a){return n.size===K3&&n.clear(),a}),n=t.cache;return t}var X3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z3=/\\(\\)?/g,J3=Q3(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(X3,function(n,a,s,o){t.push(s?o.replace(Z3,"$1"):a||n)}),t});function W3(e){if(typeof e=="string"||dg(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ex=Bi?Bi.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 ez(e){return e==null?"":$1(e)}function L1(e){return yc(e)?U1(e,W3):dg(e)?[e]:A1(J3(ez(e)))}var Xm={exports:{}},ft={};/** @license React v16.13.1
|
|
157
|
-
* react-is.production.min.js
|
|
158
|
-
*
|
|
159
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
160
|
-
*
|
|
161
|
-
* This source code is licensed under the MIT license found in the
|
|
162
|
-
* LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/var xx;function tz(){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,g=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===g||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 nz(){return Ox||(Ox=1,Xm.exports=tz()),Xm.exports}var Zm,Tx;function rz(){if(Tx)return Zm;Tx=1;var e=nz(),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,g=Object.prototype;function _(x,A,N){if(typeof A!="string"){if(g){var O=b(A);O&&O!==g&&_(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}rz();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 az(){var e=S.useContext(rh);return e}var wr=function(t){return typeof t=="function"},ah=function(t){return t!==null&&typeof t=="object"},iz=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)&&wr(t.then)};function Fn(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 Rs(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=Fn(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]=iz(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 sz(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 ys(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:Rs(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xt({},e,{touched:Rs(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xt({},e,{errors:Rs(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 ms={},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"]),g=Xt({validateOnChange:n,validateOnBlur:s,validateOnMount:c,onSubmit:v},b),_=S.useRef(g.initialValues),x=S.useRef(g.initialErrors||ms),A=S.useRef(g.initialTouched||Hf),N=S.useRef(g.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(g.initialValues),errors:Vf(g.initialErrors)||ms,touched:Vf(g.initialTouched)||Hf,status:Vf(g.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),w=C.current,q=S.useCallback(function(V){var ce=C.current;C.current=sz(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=g.validate(V,ce);ue==null?pe(ms):Wm(ue)?ue.then(function(ye){pe(ye||ms)},function(ye){_e(ye)}):pe(ue)})},[g.validate]),Q=S.useCallback(function(V,ce){var pe=g.validationSchema,_e=wr(pe)?pe(ce):pe,ue=ce&&_e.validateAt?_e.validateAt(ce,V):oz(V,_e);return new Promise(function(ye,tt){ue.then(function(){ye(ms)},function(bt){bt.name==="ValidationError"?ye(lz(bt)):tt(bt)})})},[g.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 wr(R.current[_e].validate)}),pe=ce.length>0?ce.map(function(_e){return he(_e,Fn(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=Rs(ue,ce[tt],ye)),ue},{})})},[he]),Re=S.useCallback(function(V){return Promise.all([ie(V),g.validationSchema?Q(V):{},g.validate?re(V):{}]).then(function(ce){var pe=ce[0],_e=ce[1],ue=ce[2],ye=Iv.all([pe,_e,ue],{arrayMerge:uz});return ye})},[g.validate,g.validationSchema,ie,re,Q]),fe=or(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&&ys(_.current,g.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:g.initialErrors||{},_e=V&&V.touched?V.touched:A.current?A.current:g.initialTouched||{},ue=V&&V.status?V.status:N.current?N.current:g.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(g.onReset){var tt=g.onReset(w.values,tn);Wm(tt)?tt.then(ye):ye()}else ye()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);S.useEffect(function(){O.current===!0&&!ys(_.current,g.initialValues)&&p&&(_.current=g.initialValues,xe(),c&&fe(_.current))},[p,g.initialValues,xe,c,fe]),S.useEffect(function(){p&&O.current===!0&&!ys(x.current,g.initialErrors)&&(x.current=g.initialErrors||ms,q({type:"SET_ERRORS",payload:g.initialErrors||ms}))},[p,g.initialErrors]),S.useEffect(function(){p&&O.current===!0&&!ys(A.current,g.initialTouched)&&(A.current=g.initialTouched||Hf,q({type:"SET_TOUCHED",payload:g.initialTouched||Hf}))},[p,g.initialTouched]),S.useEffect(function(){p&&O.current===!0&&!ys(N.current,g.initialStatus)&&(N.current=g.initialStatus,q({type:"SET_STATUS",payload:g.initialStatus}))},[p,g.initialStatus,g.initialTouched]);var Te=or(function(V){if(R.current[V]&&wr(R.current[V].validate)){var ce=Fn(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(g.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:Fn(_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=or(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=or(function(V,ce){var pe=wr(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=or(function(V,ce,pe){q({type:"SET_FIELD_VALUE",payload:{field:V,value:ce}});var _e=pe===void 0?n:pe;return _e?fe(Rs(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,Yi=ye.id,bn=ye.value,Js=ye.checked;ye.outerHTML;var Fr=ye.options,oa=ye.multiple;pe=ce||bt||Yi,_e=/number|range/.test(tt)?(ue=parseFloat(bn),isNaN(ue)?"":ue):/checkbox/.test(tt)?fz(Fn(w.values,pe),Js,bn):Fr&&oa?cz(Fr):bn}pe&&ae(pe,_e)},[ae,w.values]),se=or(function(V){if(Jm(V))return function(ce){return ne(ce,V)};ne(V)}),Se=or(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=or(function(V){if(Jm(V))return function(ce){return me(ce,V)};me(V)}),qe=S.useCallback(function(V){wr(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=or(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})}),en=or(function(V){V&&V.preventDefault&&wr(V.preventDefault)&&V.preventDefault(),V&&V.stopPropagation&&wr(V.stopPropagation)&&V.stopPropagation(),wt().catch(function(ce){console.warn("Warning: An unhandled error was caught from submitForm()",ce)})}),tn={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=or(function(){return v(w.values,tn)}),at=or(function(V){V&&V.preventDefault&&wr(V.preventDefault)&&V.preventDefault(),V&&V.stopPropagation&&wr(V.stopPropagation)&&V.stopPropagation(),xe()}),Dn=S.useCallback(function(V){return{value:Fn(w.values,V),error:Fn(w.errors,V),touched:!!Fn(w.touched,V),initialValue:Fn(_.current,V),initialTouched:!!Fn(A.current,V),initialError:Fn(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=Fn(w.values,pe),ue={name:pe,value:_e,onChange:se,onBlur:dt};if(ce){var ye=V.type,tt=V.value,bt=V.as,Yi=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"&&Yi&&(ue.value=ue.value||[],ue.multiple=!0)}return ue},[dt,se,w.values]),Zn=S.useMemo(function(){return!ys(_.current,w.values)},[_.current,w.values]),ln=S.useMemo(function(){return typeof h<"u"?Zn?w.errors&&Object.keys(w.errors).length===0:h!==!1&&wr(h)?h(g):h:w.errors&&Object.keys(w.errors).length===0},[h,Zn,w.errors,g]),hn=Xt({},w,{initialValues:_.current,initialErrors:x.current,initialTouched:A.current,initialStatus:N.current,handleBlur:dt,handleChange:se,handleReset:at,handleSubmit:en,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:Zn,unregisterField:te,registerField:L,getFieldProps:la,getFieldMeta:Dn,getFieldHelpers:At,validateOnBlur:s,validateOnChange:n,validateOnMount:c});return hn}function lz(e){var t={};if(e.inner){if(e.inner.length===0)return Rs(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;Fn(t,c.path)||(t=Rs(t,c.path,c.message))}}return t}function oz(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 uz(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 cz(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function fz(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 dz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function or(e){var t=S.useRef(e);return dz(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 hz=S.forwardRef(function(e,t){var n=e.action,a=B1(e,["action"]),s=n??"#",o=az(),c=o.handleReset,h=o.handleSubmit;return S.createElement("form",Xt({onSubmit:h,ref:t,onReset:c,action:s},a))});hz.displayName="Form";var ev,wx;function pz(){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){g(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 g(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 Ds=pz(),tv,Ax;function mz(){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,g)=>`${b}${b?g[0].toUpperCase()+g.slice(1).toLowerCase():g.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=mz(),Pf={exports:{}},Nx;function vz(){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]||g(s[p],p,new Set);return h;function g(_,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];g(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 yz=vz();const gz=Fs(yz),bz=Object.prototype.toString,Sz=Error.prototype.toString,Ez=RegExp.prototype.toString,_z=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",xz=/^Symbol\((.*)\)(.*)$/;function Oz(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 Oz(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return _z.call(e).replace(xz,"Symbol($1)");const a=bz.call(e).slice(8,-1);return a==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):a==="Error"||e instanceof Error?"["+Sz.call(e)+"]":a==="RegExp"?Ez.call(e):null}function ji(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,Tz=/\$\{\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(qn.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 qn=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(Tz,(s,o)=>ji(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)}},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 \`${ji(a,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ji(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${ji(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"},xi={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}"},wz={isValue:"${path} field must be ${value}"},sd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Az={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"},Nz={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: \`${ji(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: \`${ji(n,!0)}\``}return qn.formatError(Gr.notType,e)}};Object.assign(Object.create(null),{mixed:Gr,string:wn,number:xi,date:Gv,object:sd,array:Az,boolean:wz,tuple:Nz});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&&Ds.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:g,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 qn(qn.formatError(ie.message||g,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=>{qn.isError(ie)?U(ie):ie?d(null):U(D())},q=ie=>{qn.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 Cz(e,t,n,a=n){let s,o,c;return t?(Ds.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",g=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&&g>=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[g],e=b?e.spec.types[g]: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 Rz(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 Dz(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(a=>({message:a,path:Rz(n)}))}function Q1(e,t){var n;if(!((n=e.inner)!=null&&n.length)&&e.errors.length)return Dz(e,t);const a=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(s=>Q1(s,a))}let Ur=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(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=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=ji(t),h=ji(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${a.type}".
|
|
164
|
-
|
|
165
|
-
attempted value: ${c}
|
|
166
|
-
`+(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))},g=o.length,_=[];if(!g)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)),--g<=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,g,_)=>this.resolve(v)._validate(p,v,g,_)}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)=>{qn.isError(d)&&(d.value=p),h(d)},(d,p)=>{d.length?h(new qn(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 qn.isError(h)&&(h.value=d),h},(h,d)=>{if(h.length)throw new qn(h,t,void 0,void 0,c);o=d}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,a=>{if(qn.isError(a))return!1;throw a})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(a){if(qn.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=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=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=Gr.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=Gr.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 qn)return{issues:Q1(s)};throw s}}}}};Ur.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Ur.prototype[`${e}At`]=function(t,n,a={}){const{parent:s,parentPath:o,schema:c}=Cz(this,t,n,a.context);return c[e](s&&s[o],Object.assign({},a,{parent:s,path:t}))};for(const e of["equals","is"])Ur.prototype[e]=Ur.prototype.oneOf;for(const e of["not","nope"])Ur.prototype[e]=Ur.prototype.notOneOf;const jz=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function kz(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=jz.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 Mz=/^[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])?)*$/,Uz=/^((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,$z=/^(?:[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,Lz="^\\d{4}-\\d{2}-\\d{2}",Bz="\\d{2}:\\d{2}:\\d{2}",Fz="(([+-]\\d{2}(:?\\d{2})?)|Z)",Iz=new RegExp(`${Lz}T${Bz}(\\.\\d+)?${Fz}$`),zz=e=>Ua(e)||e===e.trim(),qz={}.toString();function sh(){return new X1}let X1=class extends Ur{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===qz?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(Mz,{name:"email",message:t,excludeEmptyString:!0})}url(t=wn.url){return this.matches(Uz,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=wn.uuid){return this.matches($z,{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(Iz,{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:zz})}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 Vz=e=>e!=+e;function Z1(){return new J1}class J1 extends Ur{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Vz(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=xi.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=xi.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=xi.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=xi.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(a){return a>this.resolve(t)}})}positive(t=xi.positive){return this.moreThan(0,t)}negative(t=xi.negative){return this.lessThan(0,t)}integer(t=xi.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 Hz=new Date(""),Pz=e=>Object.prototype.toString.call(e)==="[object Date]",Gz=class W1 extends Ur{constructor(){super({type:"date",check(t){return Pz(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,a)=>!a.spec.coerce||a.isType(t)||t===null?t:(t=kz(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)}})}};Gz.INVALID_DATE=Hz;function Yz(e,t=[]){let n=[],a=new Set,s=new Set(t.map(([c,h])=>`${c}-${h}`));function o(c,h){let d=Ds.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 gz.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 Kz=(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 Qz=(e,t)=>{const n=[...Ds.normalizePath(t)];if(n.length===1)return n[0]in e;let a=n.pop(),s=Ds.getter(Ds.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 Xz=eA([]);function gc(e){return new tA(e)}class tA extends Ur{constructor(t){super({type:"object",check(n){return Mx(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Xz,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 g=o[b],_=b in s;if(g){let x,A=s[b];p.path=(n.path?`${n.path}.`:"")+b,g=g.resolve({value:A,context:n.context,parent:d});let N=g instanceof Ur?g.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?g.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 g=this.fields[b];!g||Zs.isRef(g)||v.push(g.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=Yz(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=Ds.getter(t,!0);return this.transform(o=>{if(!o)return o;let c=o;return Qz(o,t)&&(c=Object.assign({},o),a||delete c[t],c[n]=s(o)),c})}json(){return this.transform(Kz)}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 Zz=["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 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 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=Jz(e,Zz);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 e4=["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 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 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=t4(e,e4);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 r4=["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 a4(e,t){if(e==null)return{};var n,a,s=i4(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 i4(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=a4(e,r4);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 s4=["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 l4(e,t){if(e==null)return{};var n,a,s=o4(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 o4(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=l4(e,s4);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 u4=["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 c4(e,t){if(e==null)return{};var n,a,s=f4(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 f4(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=c4(e,u4);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 d4=Vt(()=>{const e=Wt();return S.useEffect(()=>{const t=localStorage.getItem("api_key");t&&e.login(t)},[e]),e.loggingIn||!e.loggedIn||e.loginError?y.jsx(v4,{}):y.jsxs(dc,{fluid:!0,children:[y.jsx(JL,{}),y.jsx(eB,{}),!1]})}),h4=({show:e,onHide:t})=>y.jsxs(Gt,{show:e,onHide:t,children:[y.jsx(Gt.Header,{closeButton:!0,children:y.jsx(Gt.Title,{children:"Where do I get an API key?"})}),y.jsxs(Gt.Body,{children:[y.jsx("p",{children:"Generate an API key from the database:"}),y.jsx("pre",{children:"INSERT INTO hub.api_key DEFAULT VALUES RETURNING key;"})]})]}),p4=gc().shape({apiKey:sh().uuid().required()}),m4={apiKey:""},v4=Vt(()=>{const e=Wt(),[t,n]=S.useState(!1),a=ih({initialValues:m4,validationSchema:p4,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 y.jsxs(dc,{children:[y.jsx(h4,{show:t,onHide:()=>n(!1)}),y.jsx(ag,{className:"justify-content-md-center align-items-center",style:{height:"100vh"},children:y.jsxs(Xd,{lg:6,children:[a.status&&y.jsx(Kn,{variant:"danger",className:"mb-3",dismissible:!0,onClose:()=>a.setStatus(null),children:a.status}),e.loginError&&y.jsx(Kn,{variant:"danger",children:Rn(e.loginError)}),y.jsx(He,{onSubmit:a.handleSubmit,children:y.jsx("fieldset",{disabled:s,children:y.jsxs(Ql,{children:[y.jsx(Ql.Body,{children:y.jsxs(He.Group,{children:[y.jsxs(He.Label,{children:["API Key",y.jsx(mg,{className:"ms-1",style:{cursor:"pointer"},onClick:()=>{n(!0)}})]}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:a.errors.apiKey})]})}),y.jsx(Ql.Footer,{className:"d-flex justify-content-end",children:y.jsx(Jt,{type:"submit",disabled:s,children:s?"Authenticating...":"Authenticate"})})]})})})]})})]})}),$r=()=>y.jsx("div",{children:y.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 y.jsx($r,{});case 401:return y.jsxs("div",{children:[y.jsx("h1",{children:"Unauthorized"}),y.jsx("p",{children:"You don't have permission to do that."})]});default:return y.jsxs(dc,{children:[y.jsx("h1",{children:"Unexpected error"}),y.jsx("p",{children:(t==null?void 0:t.statusText)||Rn(t)}),y.jsx(Jt,{onClick:()=>{window.history.back()},children:"Go back"})]})}},y4={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 g4(e,t,n=new Date){const a=n.getTime()-e.getTime(),s=y4[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 b4={whiteSpace:"nowrap",cursor:"help",textDecoration:"underline dotted"},Va=({date:e,variant:t})=>{typeof e=="string"&&(e=new Date(e));const n=FM(e);return y.jsx(u1,{placement:"top",overlay:y.jsx(ng,{children:n}),trigger:["hover","click","focus"],children:y.jsx("time",{dateTime:e.toISOString(),style:b4,children:g4(e,t)})})};var rv,Lx;function S4(){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){g(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 g(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=S4(),Yf={exports:{}},Bx;function E4(){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]||g(s[p],p,new Set);return h;function g(_,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];g(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}E4();const _4=Object.prototype.toString,x4=Error.prototype.toString,O4=RegExp.prototype.toString,T4=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",w4=/^Symbol\((.*)\)(.*)$/;function A4(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 A4(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return T4.call(e).replace(w4,"Symbol($1)");const a=_4.call(e).slice(8,-1);return a==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):a==="Error"||e instanceof Error?"["+x4.call(e)+"]":a==="RegExp"?O4.call(e):null}function ki(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,N4=/\$\{\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(N4,(s,o)=>ki(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 Yr={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 \`${ki(a,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ki(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${ki(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"},C4={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}"},R4={isValue:"${path} field must be ${value}"},D4={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},j4={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"},k4={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: \`${ki(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: \`${ki(n,!0)}\``}return yn.formatError(Yr.notType,e)}};Object.assign(Object.create(null),{mixed:Yr,string:An,number:C4,date:ny,object:D4,array:j4,boolean:R4,tuple:k4});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 _s=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:g,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||g,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(_&&_s(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 M4(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",g=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&&g>=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[g],e=b?e.spec.types[g]: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 U4(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 $4(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(a=>({message:a,path:U4(n)}))}function fA(e,t){var n;if(!((n=e.inner)!=null&&n.length)&&e.errors.length)return $4(e,t);const a=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(s=>fA(s,a))}class Fi{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(Yr.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&&_s(o))return o;let c=ki(t),h=ki(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${a.type}".
|
|
167
|
-
|
|
168
|
-
attempted value: ${c}
|
|
169
|
-
`+(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))},g=o.length,_=[];if(!g)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)),--g<=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,g,_)=>this.resolve(v)._validate(p,v,g,_)}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=Yr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Yr.notNull){return this.nullability(!1,t)}required(t=Yr.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=Yr.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=Yr.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=Yr.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}}}}}Fi.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Fi.prototype[`${e}At`]=function(t,n,a={}){const{parent:s,parentPath:o,schema:c}=M4(this,t,n,a.context);return c[e](s&&s[o],Object.assign({},a,{parent:s,path:t}))};for(const e of["equals","is"])Fi.prototype[e]=Fi.prototype.oneOf;for(const e of["not","nope"])Fi.prototype[e]=Fi.prototype.notOneOf;const L4=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function B4(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=L4.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 F4=/^[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])?)*$/,I4=/^((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,z4=/^(?:[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,q4="^\\d{4}-\\d{2}-\\d{2}",V4="\\d{2}:\\d{2}:\\d{2}",H4="(([+-]\\d{2}(:?\\d{2})?)|Z)",P4=new RegExp(`${q4}T${V4}(\\.\\d+)?${H4}$`),G4=e=>_s(e)||e===e.trim(),Y4={}.toString();function lh(){return new dA}class dA extends Fi{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===Y4?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Yr.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(F4,{name:"email",message:t,excludeEmptyString:!0})}url(t=An.url){return this.matches(I4,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=An.uuid){return this.matches(z4,{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(P4,{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:G4})}lowercase(t=An.lowercase){return this.transform(n=>_s(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>_s(n)||n===n.toLowerCase()})}uppercase(t=An.uppercase){return this.transform(n=>_s(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>_s(n)||n===n.toUpperCase()})}}lh.prototype=dA.prototype;let K4=new Date(""),Q4=e=>Object.prototype.toString.call(e)==="[object Date]";class vg extends Fi{constructor(){super({type:"date",check(t){return Q4(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,a)=>!a.spec.coerce||a.isType(t)||t===null?t:(t=B4(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=K4;const X4=/^[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 Z4(e){return typeof e=="string"&&X4.test(e)}const J4={name:"uuid",message:"Must be a valid UUID",test(e){return e===void 0||Z4(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}}},W4={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}}},e6={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(e6).test(mA),yA=()=>lh().trim().test(hA).test(pA).test(W4).test(mA),t6=()=>lh().trim().test(J4),n6=({text:e})=>y.jsx(u1,{placement:"top",overlay:y.jsx(ng,{children:e}),trigger:["hover","click","focus"],children:y.jsx(mg,{className:"text-muted ms-1",style:{cursor:"pointer"}})}),r6=br(`
|
|
170
|
-
mutation AddCasino($input: HubAddCasinoInput!) {
|
|
171
|
-
hubAddCasino(input: $input) {
|
|
172
|
-
casino {
|
|
173
|
-
id
|
|
174
|
-
name
|
|
175
|
-
baseUrl
|
|
176
|
-
graphqlUrl
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
`),a6={name:"moneypot.com",baseUrl:"https://moneypot.com",graphqlUrl:"https://api.moneypot.com/graphql",apiKey:""},i6=gc().shape({name:sh().required(),baseUrl:yA().required(),graphqlUrl:vA().required(),apiKey:t6().required()}),s6=Vt(({show:e,onHide:t})=>{const n=Wt(),[a]=UT(n,{document:r6}),o=ih({initialValues:a6,validationSchema:i6,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(Rn(p))}).finally(()=>{h(!1)}))});return y.jsx(Gt,{show:e,onHide:t,size:"lg",children:y.jsxs(He,{onSubmit:o.handleSubmit,children:[y.jsx(Gt.Header,{closeButton:!0,children:y.jsx(Gt.Title,{children:"Add Casino"})}),y.jsxs(Gt.Body,{children:[o.status&&y.jsx(Kn,{variant:"danger",className:"mb-3",children:o.status}),y.jsxs("fieldset",{disabled:o.isSubmitting,children:[y.jsxs(He.Group,{children:[y.jsx(He.Label,{children:"Name (for your own reference)"}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.name})]}),y.jsxs(He.Group,{className:"mt-2",children:[y.jsx(He.Label,{children:"Website base URL"}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.baseUrl})]}),y.jsxs(He.Group,{className:"mt-2",children:[y.jsx(He.Label,{children:"GraphQL URL"}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.graphqlUrl})]}),y.jsxs(He.Group,{className:"mt-2",children:[y.jsxs(He.Label,{children:["Controller API Key"," ",y.jsx(n6,{text:"This should be a valid api key that you created for your controller on the casino website"})]}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.apiKey})]})]})]}),y.jsx(Gt.Footer,{children:y.jsx(Jt,{type:"submit",disabled:o.isSubmitting,children:o.isSubmitting?"Testing...":"Test connection and save"})})]})})}),l6=Vt(()=>{var a;const e=Wt(),[t,n]=S.useState(!1);return y.jsxs("div",{children:[y.jsx(s6,{show:t,onHide:()=>n(!1)}),y.jsxs("h2",{children:["Casinos",y.jsx(Jt,{className:"float-end",onClick:()=>n(!0),children:"Add casino"})]}),y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"ID"}),y.jsx("th",{children:"Name"}),y.jsx("th",{children:"Base URL"}),y.jsx("th",{children:"GraphQL URL"}),y.jsx("th",{children:"Added"}),y.jsx("th",{children:"Playground"})]})}),y.jsx("tbody",{children:(a=e.loggedIn)==null?void 0:a.casinos.map(s=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Yn,{to:`/casinos/${s.id}`,children:s.id})}),y.jsx("td",{children:s.name}),y.jsxs("td",{style:{whiteSpace:"nowrap"},children:[y.jsx("span",{className:"user-select-all",children:s.baseUrl})," ",y.jsx("a",{href:s.baseUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:y.jsx(Qv,{style:{verticalAlign:"baseline"}})})]}),y.jsxs("td",{style:{whiteSpace:"nowrap"},children:[y.jsx("span",{className:"user-select-all",children:s.graphqlUrl})," ",y.jsx("a",{href:s.graphqlUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:y.jsx(Qv,{style:{verticalAlign:"baseline"}})})]}),y.jsx("td",{children:y.jsx(Va,{date:Ps(s.id),variant:"long"})}),y.jsx("td",{children:s.isPlayground?"Yes":"No"})]},s.id))})]})]})});function Ka(){var a,s;const{casinoId:e}=pO(),t=Wt();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:"chat",title:"Chat"},{path:"jwks",title:"Pubkeys"}];function o6(e,t){return e.sort((n,a)=>a.length-n.length).find(n=>t.includes("/"+n))}const u6=Vt(()=>{var h;const e=Ha(),t=Wt(),n=jd(),a=Ka();if(!t.loggedIn)return y.jsx("div",{children:"You must be logged in"});if(!a)return y.jsx($r,{});const s=o6(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(g=>g.id===p);v&&n(e.pathname.replace(/\/casinos\/[^/]+/,`/casinos/${v.id}`))};return y.jsxs("div",{children:[y.jsxs(c1,{direction:"horizontal",style:{alignItems:"baseline"},children:[y.jsxs(zm,{children:[y.jsx(zm.Item,{linkAs:Yn,linkProps:{to:"/casinos"},children:"Casinos"}),y.jsx(zm.Item,{active:!0,children:a.name})]}),y.jsxs(He.Select,{className:"ms-2 d-inline-block",style:{width:"auto"},size:"sm",value:a.id,onChange:c,children:[y.jsx("option",{disabled:!0,children:"Select casino"}),(h=t.loggedIn)==null?void 0:h.casinos.map(d=>y.jsx("option",{value:d.id,children:d.name},d.id))]})]}),y.jsx("ul",{className:"nav nav-tabs mb-4 ",children:zx.map(d=>y.jsx("li",{className:"nav-item",children:y.jsx(Yn,{to:d.path,className:`nav-link ${s===d.path?"active":""}`,children:d.title})},d.path))}),y.jsx(yO,{})]})}),Ii=({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),g=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 y.jsx(Zv,{className:"text-success-emphasis"});case"error":return y.jsx(ty,{className:"text-danger-emphasis"});default:return y.jsx(nA,{})}},N=()=>d==="success"?"Copied!":"Error";return y.jsxs(y.Fragment,{children:[y.jsx(Jt,{ref:g,variant:"outline-secondary",size:"sm",onClick:x,"aria-label":"Copy to clipboard",children:A()}),y.jsx(rg,{show:c,target:(t==null?void 0:t.current)||g.current,placement:a,children:y.jsx(Fv,{id:"copy-popover",children:y.jsx(Fv.Body,{children:d==="success"?y.jsxs("span",{className:"text-success-emphasis",children:[y.jsx(Zv,{})," ",N()]}):y.jsxs("span",{className:"text-danger-emphasis",children:[y.jsx(ty,{})," ",N()]})})})})]})},c6=br(`
|
|
181
|
-
query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {
|
|
182
|
-
hubCasinoById(id: $casinoId) {
|
|
183
|
-
id
|
|
184
|
-
hubUsersByCasinoId(after: $after, first: 10) {
|
|
185
|
-
pageInfo {
|
|
186
|
-
endCursor
|
|
187
|
-
hasNextPage
|
|
188
|
-
}
|
|
189
|
-
edges {
|
|
190
|
-
cursor
|
|
191
|
-
node {
|
|
192
|
-
id
|
|
193
|
-
uname
|
|
194
|
-
mpUserId
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
`),f6=Vt(()=>{var p,v,b,g;const e=Wt(),t=Ka(),{data:n,loading:a,error:s,fetchMore:o}=Hi(e,{document:c6,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 y.jsxs("div",{children:[y.jsx("h2",{children:"Users"}),a&&y.jsx("div",{children:"Loading..."}),s&&y.jsx(Kn,{variant:"danger",children:Rn(s)}),y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Added"}),y.jsx("th",{children:"Username"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP User ID"})]})}),y.jsx("tbody",{children:d.map(_=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Va,{date:Ps(_.id),variant:"long"})}),y.jsx("td",{children:_.uname}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:_.id})," ",y.jsx(Ii,{text:_.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:_.mpUserId})," ",y.jsx(Ii,{text:_.mpUserId})]})]},_.id))})]}),y.jsxs("div",{children:[y.jsx(Jt,{variant:"outline-secondary",onClick:c,disabled:a,children:"First page"}),y.jsx(Jt,{variant:"outline-secondary",className:"ms-2",onClick:h,disabled:a||!((g=(b=n==null?void 0:n.hubCasinoById)==null?void 0:b.hubUsersByCasinoId)!=null&&g.pageInfo.hasNextPage),children:"Load more"})]})]})}),d6=br(`
|
|
201
|
-
mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {
|
|
202
|
-
updateHubCasinoById(input: $input) {
|
|
203
|
-
hubCasino {
|
|
204
|
-
id
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
`),h6=gc().shape({name:sh().required(),baseUrl:yA().required(),graphqlUrl:vA().required()}),p6=Vt(({show:e,onHide:t,casino:n})=>{const a=Wt(),s={name:n.name,baseUrl:n.baseUrl,graphqlUrl:n.graphqlUrl},o=ih({initialValues:s,validationSchema:h6,onSubmit:async(c,{setSubmitting:h,setStatus:d})=>{d(null),lo(a,{document:d6,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(Rn(p))}).finally(()=>{h(!1)})}});return y.jsx(Gt,{show:e,onHide:t,size:"lg",children:y.jsxs(He,{onSubmit:o.handleSubmit,children:[y.jsx(Gt.Header,{closeButton:!0,children:y.jsx(Gt.Title,{children:"Edit Casino"})}),y.jsxs(Gt.Body,{children:[o.status&&y.jsx(Kn,{variant:"danger",className:"mb-3",children:o.status}),y.jsxs("fieldset",{disabled:o.isSubmitting,children:[y.jsxs(He.Group,{children:[y.jsx(He.Label,{children:"Name (for your own reference)"}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.name})]}),y.jsxs(He.Group,{className:"mt-2",children:[y.jsx(He.Label,{children:"Website base URL"}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.baseUrl})]}),y.jsxs(He.Group,{className:"mt-2",children:[y.jsx(He.Label,{children:"GraphQL URL"}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:o.errors.graphqlUrl})]})]})]}),y.jsx(Gt.Footer,{children:y.jsx(Jt,{type:"submit",disabled:o.isSubmitting,children:"Save casino"})})]})})}),m6=Vt(()=>{const e=Ka(),[t,n]=S.useState(!1);return y.jsxs("div",{children:[y.jsx(p6,{show:t,onHide:()=>n(!1),casino:e}),y.jsxs("h2",{children:["Casino: ",e.name,y.jsx(Jt,{className:"ms-2",onClick:()=>n(!0),children:"Edit"})]}),y.jsxs("ul",{children:[y.jsxs("li",{children:[y.jsx("strong",{children:"Name:"})," ",e.name]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Added:"})," ",y.jsx(Va,{date:Ps(e.id),variant:"long"})]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Base URL:"})," ",y.jsx("a",{href:e.baseUrl,target:"_blank",rel:"noreferrer",children:e.baseUrl})]}),y.jsxs("li",{children:[y.jsx("strong",{children:"GraphQL URL:"})," ",y.jsx("a",{href:e.graphqlUrl,target:"_blank",rel:"noreferrer",children:e.graphqlUrl})]})]})]})}),v6=br(`
|
|
209
|
-
query GetCasinoExperiences($casinoId: UUID!) {
|
|
210
|
-
hubCasinoById(id: $casinoId) {
|
|
211
|
-
id
|
|
212
|
-
hubExperiencesByCasinoId {
|
|
213
|
-
nodes {
|
|
214
|
-
id
|
|
215
|
-
name
|
|
216
|
-
mpExperienceId
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
`),y6=Vt(()=>{var c,h;const e=Wt(),t=Ka();console.log("CasinoExperiencesList. casino is",t.id);const{data:n,loading:a,error:s}=Hi(e,{document:v6,variables:{casinoId:t.id}});if(a)return y.jsx("div",{children:"Loading..."});if(s)return y.jsx(Kn,{variant:"danger",children:Rn(s)});if(!n)return y.jsx($r,{});const o=((h=(c=n.hubCasinoById)==null?void 0:c.hubExperiencesByCasinoId)==null?void 0:h.nodes.flatMap(d=>d||[]))||[];return y.jsxs("div",{children:[y.jsxs("p",{children:["This is the ",y.jsx("code",{children:"hub.experience"})," table for the current casino."]}),y.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."}),y.jsxs("p",{children:["Or you can look for missing experiences on the Moneypot API right now:"," ",y.jsx(Jt,{size:"sm",disabled:!0,children:"Force sync (TODO)"})]}),y.jsxs("p",{children:["Or you can add a new experience to the Moneypot API from here:"," ",y.jsx(Jt,{size:"sm",disabled:!0,children:"Add experience (TODO)"})]}),y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Added"}),y.jsx("th",{children:"Name"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP Experience ID"})]})}),y.jsx("tbody",{children:o.map(d=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Va,{date:Ps(d.id),variant:"long"})}),y.jsx("td",{children:d.name}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:d.id})," ",y.jsx(Ii,{text:d.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:d.mpExperienceId})," ",y.jsx(Ii,{text:d.mpExperienceId})]})]},d.id))})]})]})}),g6=br(`
|
|
222
|
-
mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {
|
|
223
|
-
updateHubBankrollById(input: $input) {
|
|
224
|
-
hubBankroll {
|
|
225
|
-
id
|
|
226
|
-
amount
|
|
227
|
-
currencyKey
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
`),b6=gc().shape({displayAmount:Z1().required().min(0).label("amount")}),S6=Vt(({show:e,onHide:t,bankroll:n,onSuccess:a})=>y.jsxs(Gt,{show:e,onHide:t,size:"lg",children:[y.jsx(Gt.Header,{closeButton:!0,children:y.jsxs(Gt.Title,{children:["Edit Bankroll ",n&&`- ${n.currencyKey}`]})}),y.jsx(E6,{onHide:t,bankroll:n,onSuccess:a})]})),E6=Vt(({onHide:e,bankroll:t,onSuccess:n})=>{const a=Wt(),[s,{loading:o,error:c}]=UT(a,{document:g6}),h={displayAmount:Math.floor(t.amount/t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitScale)},p=ih({initialValues:h,validationSchema:b6,onSubmit:async(v,{setSubmitting:b,setStatus:g})=>{g(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()):g("Failed to update bankroll")}).catch(x=>{g(Rn(x))}).finally(()=>{b(!1)})}});return y.jsxs(He,{onSubmit:p.handleSubmit,children:[y.jsxs(Gt.Body,{children:[(p.status||c)&&y.jsx(Kn,{variant:"danger",className:"mb-3",children:p.status||(c==null?void 0:c.message)}),y.jsx("fieldset",{disabled:p.isSubmitting||o,children:y.jsxs(He.Group,{children:[y.jsxs(He.Label,{children:["Amount (",t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitName,")"]}),y.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}),y.jsx(He.Control.Feedback,{type:"invalid",children:p.errors.displayAmount})]})})]}),y.jsx(Gt.Footer,{children:y.jsx(Jt,{type:"submit",disabled:p.isSubmitting||o,children:o?"Saving...":"Save bankroll"})})]})}),_6=br(`
|
|
232
|
-
query GetCasinoBankrolls($casinoId: UUID!) {
|
|
233
|
-
hubCasinoById(id: $casinoId) {
|
|
234
|
-
id
|
|
235
|
-
hubBankrollsByCasinoId {
|
|
236
|
-
nodes {
|
|
237
|
-
id
|
|
238
|
-
amount
|
|
239
|
-
expectedValue
|
|
240
|
-
bets
|
|
241
|
-
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
242
|
-
key
|
|
243
|
-
displayUnitScale
|
|
244
|
-
displayUnitName
|
|
245
|
-
casinoId
|
|
246
|
-
}
|
|
247
|
-
currencyKey
|
|
248
|
-
wagered
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
`),x6=Vt(()=>{var b,g;const e=Wt(),t=Ka(),[n,a]=S.useState(null),{data:s,loading:o,error:c,reload:h}=Hi(e,{skip:!t,document:_6,variables:{casinoId:t.id}});if(!t)return y.jsx($r,{});if(o)return y.jsx("div",{children:"Loading..."});if(c)return y.jsx(Kn,{variant:"danger",children:Rn(c)});if(!s)return y.jsx($r,{});const d=((g=(b=s.hubCasinoById)==null?void 0:b.hubBankrollsByCasinoId)==null?void 0:g.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 y.jsxs("div",{children:[n&&y.jsx(S6,{show:!!n,onHide:()=>a(null),bankroll:n,onSuccess:v}),y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Currency"}),y.jsx("th",{children:"Amount"}),y.jsx("th",{children:"Bets"}),y.jsx("th",{children:"Expected Value"}),y.jsx("th",{children:"Wagered"})]})}),y.jsxs("tbody",{children:[d.map(_=>y.jsxs("tr",{children:[y.jsx("td",{children:_.currencyKey}),y.jsxs("td",{children:[Ny(_.amount,_.hubCurrencyByCurrencyKeyAndCasinoId)," ",y.jsx(Jt,{size:"sm",variant:"outline-secondary",onClick:()=>{a({..._,hubCurrencyByCurrencyKeyAndCasinoId:_.hubCurrencyByCurrencyKeyAndCasinoId})},children:"Edit"})]}),y.jsx("td",{children:_.bets}),y.jsx("td",{children:_.expectedValue}),y.jsx("td",{children:_.wagered})]},_.id)),p.map(_=>y.jsxs("tr",{children:[y.jsx("td",{children:_}),y.jsxs("td",{colSpan:4,children:["No bankroll",y.jsx(Jt,{size:"sm",variant:"outline-primary",className:"ms-2",onClick:()=>{alert("TODO")},children:"Create bankroll"})]})]},_))]})]})]})}),O6=br(`
|
|
254
|
-
query GetCasinoCurrencies($casinoId: UUID!) {
|
|
255
|
-
hubCasinoById(id: $casinoId) {
|
|
256
|
-
id
|
|
257
|
-
hubCurrenciesByCasinoId {
|
|
258
|
-
nodes {
|
|
259
|
-
key
|
|
260
|
-
displayUnitName
|
|
261
|
-
displayUnitScale
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
`),T6=Vt(()=>{var c,h;const e=Wt(),t=Ka(),{data:n,loading:a,error:s}=Hi(e,{document:O6,variables:{casinoId:t.id}});if(a)return y.jsx("div",{children:"Loading..."});if(s)return y.jsx(Kn,{variant:"danger",children:Rn(s)});if(!n)return y.jsx($r,{});const o=((h=(c=n.hubCasinoById)==null?void 0:c.hubCurrenciesByCasinoId)==null?void 0:h.nodes.flatMap(d=>d||[]))||[];return y.jsx("div",{children:y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Key"}),y.jsx("th",{children:"Display unit name"}),y.jsx("th",{children:"Display unit scale"})]})}),y.jsx("tbody",{children:o.map(d=>y.jsxs("tr",{children:[y.jsx("td",{children:d.key}),y.jsx("td",{children:d.displayUnitName}),y.jsx("td",{children:d.displayUnitScale})]},d.key))})]})})}),w6=br(`
|
|
267
|
-
query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {
|
|
268
|
-
hubCasinoById(id: $casinoId) {
|
|
269
|
-
hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
270
|
-
pageInfo {
|
|
271
|
-
endCursor
|
|
272
|
-
hasNextPage
|
|
273
|
-
}
|
|
274
|
-
edges {
|
|
275
|
-
cursor
|
|
276
|
-
node {
|
|
277
|
-
id
|
|
278
|
-
mpTransferId
|
|
279
|
-
amount
|
|
280
|
-
userId
|
|
281
|
-
currencyKey
|
|
282
|
-
hubUserByUserId {
|
|
283
|
-
id
|
|
284
|
-
uname
|
|
285
|
-
}
|
|
286
|
-
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
287
|
-
displayUnitName
|
|
288
|
-
displayUnitScale
|
|
289
|
-
key
|
|
290
|
-
}
|
|
291
|
-
hubExperienceByExperienceId {
|
|
292
|
-
id
|
|
293
|
-
name
|
|
294
|
-
mpExperienceId
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
`),A6=Vt(()=>{var c,h;const e=Wt(),t=Ka(),{data:n,loading:a,error:s}=Hi(e,{document:w6,variables:{casinoId:t.id}});if(a)return y.jsx("div",{children:"Loading..."});if(s)return y.jsx(Kn,{variant:"danger",children:Rn(s)});if(!n)return y.jsx($r,{});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 y.jsx("div",{children:y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"When"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP Transfer ID"}),y.jsx("th",{children:"User"}),y.jsx("th",{children:"Currency"}),y.jsx("th",{children:"Experience"})]})}),y.jsx("tbody",{children:o.map(d=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Va,{date:Ps(d.id),variant:"long"})}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:d.id})," ",y.jsx(Ii,{text:d.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:d.mpTransferId})," ",y.jsx(Ii,{text:d.mpTransferId})]}),y.jsx("td",{children:y.jsx(Yn,{to:`/casinos/${t.id}/users/${d.userId}`,children:d.hubUserByUserId.uname})}),y.jsx("td",{children:Ny(d.amount,d.hubCurrencyByCurrencyKeyAndCasinoId)}),y.jsx("td",{children:y.jsx(Yn,{to:`/casinos/${t.id}/experiences/${d.hubExperienceByExperienceId.id}`,children:d.hubExperienceByExperienceId.name})})]},d.id))})]})})}),N6=br(`
|
|
302
|
-
query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {
|
|
303
|
-
hubCasinoById(id: $casinoId) {
|
|
304
|
-
hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
305
|
-
pageInfo {
|
|
306
|
-
endCursor
|
|
307
|
-
hasNextPage
|
|
308
|
-
}
|
|
309
|
-
edges {
|
|
310
|
-
cursor
|
|
311
|
-
node {
|
|
312
|
-
id
|
|
313
|
-
mpTransferId
|
|
314
|
-
status
|
|
315
|
-
statusAt
|
|
316
|
-
amount
|
|
317
|
-
hubUserByUserId {
|
|
318
|
-
id
|
|
319
|
-
uname
|
|
320
|
-
}
|
|
321
|
-
hubExperienceByExperienceId {
|
|
322
|
-
id
|
|
323
|
-
name
|
|
324
|
-
}
|
|
325
|
-
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
326
|
-
key
|
|
327
|
-
displayUnitScale
|
|
328
|
-
displayUnitName
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
`),C6=Vt(()=>{var c,h;const e=Wt(),{casinoId:t}=pO();console.log("casinoId",t);const{data:n,loading:a,error:s}=Hi(e,{document:N6,variables:{casinoId:t}});if(a)return y.jsx("div",{children:"Loading..."});if(s)return y.jsx(Kn,{variant:"danger",children:Rn(s)});if(!n)return y.jsx($r,{});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 y.jsx("div",{children:y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"When"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP Transfer ID"}),y.jsx("th",{children:"User"}),y.jsx("th",{children:"Amount"}),y.jsx("th",{children:"Experience"}),y.jsx("th",{children:"Status"})]})}),y.jsx("tbody",{children:o.map(d=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Va,{date:Ps(d.id),variant:"long"})}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:d.id})," ",y.jsx(Ii,{text:d.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:d.mpTransferId})," ",y.jsx(Ii,{text:d.mpTransferId})]}),y.jsx("td",{children:y.jsx(Yn,{to:`/casinos/${t}/users/${d.hubUserByUserId.id}`,children:d.hubUserByUserId.uname})}),y.jsx("td",{children:Ny(d.amount,d.hubCurrencyByCurrencyKeyAndCasinoId)}),y.jsx("td",{children:y.jsx(Yn,{to:`/casinos/${t}/experiences/${d.hubExperienceByExperienceId.id}`,children:d.hubExperienceByExperienceId.name})}),y.jsxs("td",{children:[d.status," ",y.jsx(Va,{date:d.statusAt,variant:"long"})]})]},d.id))})]})})}),R6=()=>{const e=jd();return S.useEffect(()=>{e("/casinos")},[e]),null},D6=br(`
|
|
336
|
-
query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {
|
|
337
|
-
hubCasinoById(id: $casinoId) {
|
|
338
|
-
hubJwkSetSnapshotsByCasinoId(
|
|
339
|
-
orderBy: ID_DESC
|
|
340
|
-
after: $after
|
|
341
|
-
first: $first
|
|
342
|
-
) {
|
|
343
|
-
pageInfo {
|
|
344
|
-
endCursor
|
|
345
|
-
hasNextPage
|
|
346
|
-
}
|
|
347
|
-
edges {
|
|
348
|
-
cursor
|
|
349
|
-
node {
|
|
350
|
-
jwks
|
|
351
|
-
id
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
hubJwkSetByCasinoId {
|
|
356
|
-
updatedAt
|
|
357
|
-
jwks
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
`),j6=Vt(()=>{var g,_,x,A,N;const e=Wt(),t=Ka(),[n,a]=S.useState(null),{data:s,loading:o,error:c}=Hi(e,{skip:!t,document:D6,variables:{casinoId:t.id,first:1,after:n}});if(!t)return y.jsx($r,{});if(o)return y.jsx("div",{children:"Loading..."});if(c)return y.jsx(Kn,{variant:"danger",children:Rn(c)});if(!s)return y.jsx($r,{});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=(_=(g=s.hubCasinoById)==null?void 0:g.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 y.jsxs("div",{children:[y.jsx("h2",{children:"Current public keys"}),y.jsx(ag,{className:"justify-content-center",children:y.jsx(Xd,{lg:6,children:y.jsxs(Ql,{children:[y.jsxs(Ql.Header,{children:["Last updated:"," ",v?y.jsx(Va,{date:v==null?void 0:v.updatedAt,variant:"long"}):"--"]}),y.jsx(Ql.Body,{children:v?y.jsx("pre",{children:JSON.stringify(v.jwks,null,2)}):y.jsx("p",{className:"text-danger text-center",children:"No public keys have been fetched from casino."})})]})})}),y.jsx("h2",{className:"mt-4",children:"History"}),y.jsxs("div",{className:"mb-3",children:[y.jsx(Jt,{variant:"outline-secondary",onClick:h,disabled:o,children:"First page"}),y.jsx(Jt,{variant:"outline-secondary",onClick:d,disabled:o||!p,className:"ms-2",children:"Next page"})]}),y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Fetched"}),y.jsx("th",{children:"JWKS"})]})}),y.jsx("tbody",{children:b.map(O=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Va,{date:Ps(O.id),variant:"long"})}),y.jsx("td",{children:y.jsx("pre",{children:JSON.stringify(O.jwks,null,2)})})]},O.id))})]})]})}),k6=br(`
|
|
362
|
-
query GetCasinoChatMessages($casinoId: UUID!) {
|
|
363
|
-
hubCasinoById(id: $casinoId) {
|
|
364
|
-
id
|
|
365
|
-
hubChatMessagesByCasinoId(last: 100, orderBy: ID_ASC) {
|
|
366
|
-
edges {
|
|
367
|
-
node {
|
|
368
|
-
id
|
|
369
|
-
hubUserByUserId {
|
|
370
|
-
id
|
|
371
|
-
uname
|
|
372
|
-
}
|
|
373
|
-
hubExperienceByExperienceId {
|
|
374
|
-
id
|
|
375
|
-
name
|
|
376
|
-
}
|
|
377
|
-
body
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
`),M6=Vt(()=>{var c,h;const e=Wt(),t=Ka(),{data:n,loading:a,error:s}=Hi(e,{document:k6,variables:{casinoId:t.id}});if(a)return y.jsx("div",{children:"Loading..."});if(s)return y.jsx(Kn,{variant:"danger",children:Rn(s)});if(!n)return y.jsx($r,{});const o=((h=(c=n.hubCasinoById)==null?void 0:c.hubChatMessagesByCasinoId)==null?void 0:h.edges.flatMap(d=>(d==null?void 0:d.node)||[]))||[];return y.jsxs("div",{children:[y.jsx("h2",{children:"Chat (WIP)"}),y.jsx("p",{children:"Last 100 messages across all experiences in the casino."}),y.jsxs(Ga,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"User"}),y.jsx("th",{children:"Experience"}),y.jsx("th",{children:"Body"})]})}),y.jsx("tbody",{children:o.map(d=>{var p,v;return y.jsxs("tr",{children:[y.jsx("td",{children:(p=d.hubUserByUserId)==null?void 0:p.uname}),y.jsx("td",{children:(v=d.hubExperienceByExperienceId)==null?void 0:v.name}),y.jsx("td",{children:d.body})]},d.id)})})]})]})}),U6=ND([{path:"/",element:y.jsx(d4,{}),errorElement:y.jsx($x,{}),children:[{path:"*",element:y.jsx($x,{status:404})},{path:"/",element:y.jsx(R6,{})},{path:"/casinos",element:y.jsx(l6,{})},{path:"/casinos/:casinoId",element:y.jsx(u6,{}),children:[{path:"",element:y.jsx(m6,{})},{path:"users",element:y.jsx(f6,{})},{path:"experiences",element:y.jsx(y6,{})},{path:"bankrolls",element:y.jsx(x6,{})},{path:"currencies",element:y.jsx(T6,{})},{path:"deposits",element:y.jsx(A6,{})},{path:"withdrawals",element:y.jsx(C6,{})},{path:"chat",element:y.jsx(M6,{})},{path:"jwks",element:y.jsx(j6,{})}]}]}],{basename:"/dashboard"}),$6=new IM,L6=new uj,B6=y.jsx(fj,{client:L6,children:y.jsx(zM,{store:$6,children:y.jsx(ID,{router:U6})})});MC.createRoot(document.getElementById("root")).render(B6)});export default F6();
|