@dataramen/cli 0.0.53-beta.1 → 0.0.53-beta.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.
@@ -1,237 +0,0 @@
1
- (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const d of o.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(u){if(u.ep)return;u.ep=!0;const o=r(u);fetch(u.href,o)}})();function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qf={exports:{}},Pi={};/**
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 V0;function Ig(){if(V0)return Pi;V0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(i,u,o){var d=null;if(o!==void 0&&(d=""+o),u.key!==void 0&&(d=""+u.key),"key"in u){o={};for(var m in u)m!=="key"&&(o[m]=u[m])}else o=u;return u=o.ref,{$$typeof:n,type:i,key:d,ref:u!==void 0?u:null,props:o}}return Pi.Fragment=l,Pi.jsx=r,Pi.jsxs=r,Pi}var $0;function Wg(){return $0||($0=1,Qf.exports=Ig()),Qf.exports}var h=Wg(),Yf={exports:{}},be={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var K0;function ex(){if(K0)return be;K0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function j(A,Q,W){this.props=A,this.context=Q,this.refs=T,this.updater=W||C}j.prototype.isReactComponent={},j.prototype.setState=function(A,Q){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Q,"setState")},j.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function _(){}_.prototype=j.prototype;function D(A,Q,W){this.props=A,this.context=Q,this.refs=T,this.updater=W||C}var R=D.prototype=new _;R.constructor=D,E(R,j.prototype),R.isPureReactComponent=!0;var X=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function F(A,Q,W,P,ie,Ce){return W=Ce.ref,{$$typeof:n,type:A,key:Q,ref:W!==void 0?W:null,props:Ce}}function I(A,Q){return F(A.type,Q,void 0,void 0,void 0,A.props)}function ae(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function pe(A){var Q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(W){return Q[W]})}var Be=/\/+/g;function Ee(A,Q){return typeof A=="object"&&A!==null&&A.key!=null?pe(""+A.key):Q.toString(36)}function Ke(){}function ye(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Ke,Ke):(A.status="pending",A.then(function(Q){A.status==="pending"&&(A.status="fulfilled",A.value=Q)},function(Q){A.status==="pending"&&(A.status="rejected",A.reason=Q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function xe(A,Q,W,P,ie){var Ce=typeof A;(Ce==="undefined"||Ce==="boolean")&&(A=null);var ce=!1;if(A===null)ce=!0;else switch(Ce){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(A.$$typeof){case n:case l:ce=!0;break;case b:return ce=A._init,xe(ce(A._payload),Q,W,P,ie)}}if(ce)return ie=ie(A),ce=P===""?"."+Ee(A,0):P,X(ie)?(W="",ce!=null&&(W=ce.replace(Be,"$&/")+"/"),xe(ie,Q,W,"",function(Ze){return Ze})):ie!=null&&(ae(ie)&&(ie=I(ie,W+(ie.key==null||A&&A.key===ie.key?"":(""+ie.key).replace(Be,"$&/")+"/")+ce)),Q.push(ie)),1;ce=0;var St=P===""?".":P+":";if(X(A))for(var Ue=0;Ue<A.length;Ue++)P=A[Ue],Ce=St+Ee(P,Ue),ce+=xe(P,Q,W,Ce,ie);else if(Ue=w(A),typeof Ue=="function")for(A=Ue.call(A),Ue=0;!(P=A.next()).done;)P=P.value,Ce=St+Ee(P,Ue++),ce+=xe(P,Q,W,Ce,ie);else if(Ce==="object"){if(typeof A.then=="function")return xe(ye(A),Q,W,P,ie);throw Q=String(A),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ce}function B(A,Q,W){if(A==null)return A;var P=[],ie=0;return xe(A,P,"","",function(Ce){return Q.call(W,Ce,ie++)}),P}function G(A){if(A._status===-1){var Q=A._result;Q=Q(),Q.then(function(W){(A._status===0||A._status===-1)&&(A._status=1,A._result=W)},function(W){(A._status===0||A._status===-1)&&(A._status=2,A._result=W)}),A._status===-1&&(A._status=0,A._result=Q)}if(A._status===1)return A._result.default;throw A._result}var J=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function oe(){}return be.Children={map:B,forEach:function(A,Q,W){B(A,function(){Q.apply(this,arguments)},W)},count:function(A){var Q=0;return B(A,function(){Q++}),Q},toArray:function(A){return B(A,function(Q){return Q})||[]},only:function(A){if(!ae(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},be.Component=j,be.Fragment=r,be.Profiler=u,be.PureComponent=D,be.StrictMode=i,be.Suspense=y,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,be.__COMPILER_RUNTIME={__proto__:null,c:function(A){return $.H.useMemoCache(A)}},be.cache=function(A){return function(){return A.apply(null,arguments)}},be.cloneElement=function(A,Q,W){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var P=E({},A.props),ie=A.key,Ce=void 0;if(Q!=null)for(ce in Q.ref!==void 0&&(Ce=void 0),Q.key!==void 0&&(ie=""+Q.key),Q)!k.call(Q,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&Q.ref===void 0||(P[ce]=Q[ce]);var ce=arguments.length-2;if(ce===1)P.children=W;else if(1<ce){for(var St=Array(ce),Ue=0;Ue<ce;Ue++)St[Ue]=arguments[Ue+2];P.children=St}return F(A.type,ie,void 0,void 0,Ce,P)},be.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},be.createElement=function(A,Q,W){var P,ie={},Ce=null;if(Q!=null)for(P in Q.key!==void 0&&(Ce=""+Q.key),Q)k.call(Q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ie[P]=Q[P]);var ce=arguments.length-2;if(ce===1)ie.children=W;else if(1<ce){for(var St=Array(ce),Ue=0;Ue<ce;Ue++)St[Ue]=arguments[Ue+2];ie.children=St}if(A&&A.defaultProps)for(P in ce=A.defaultProps,ce)ie[P]===void 0&&(ie[P]=ce[P]);return F(A,Ce,void 0,void 0,null,ie)},be.createRef=function(){return{current:null}},be.forwardRef=function(A){return{$$typeof:m,render:A}},be.isValidElement=ae,be.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:G}},be.memo=function(A,Q){return{$$typeof:p,type:A,compare:Q===void 0?null:Q}},be.startTransition=function(A){var Q=$.T,W={};$.T=W;try{var P=A(),ie=$.S;ie!==null&&ie(W,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(oe,J)}catch(Ce){J(Ce)}finally{$.T=Q}},be.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},be.use=function(A){return $.H.use(A)},be.useActionState=function(A,Q,W){return $.H.useActionState(A,Q,W)},be.useCallback=function(A,Q){return $.H.useCallback(A,Q)},be.useContext=function(A){return $.H.useContext(A)},be.useDebugValue=function(){},be.useDeferredValue=function(A,Q){return $.H.useDeferredValue(A,Q)},be.useEffect=function(A,Q,W){var P=$.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(A,Q)},be.useId=function(){return $.H.useId()},be.useImperativeHandle=function(A,Q,W){return $.H.useImperativeHandle(A,Q,W)},be.useInsertionEffect=function(A,Q){return $.H.useInsertionEffect(A,Q)},be.useLayoutEffect=function(A,Q){return $.H.useLayoutEffect(A,Q)},be.useMemo=function(A,Q){return $.H.useMemo(A,Q)},be.useOptimistic=function(A,Q){return $.H.useOptimistic(A,Q)},be.useReducer=function(A,Q,W){return $.H.useReducer(A,Q,W)},be.useRef=function(A){return $.H.useRef(A)},be.useState=function(A){return $.H.useState(A)},be.useSyncExternalStore=function(A,Q,W){return $.H.useSyncExternalStore(A,Q,W)},be.useTransition=function(){return $.H.useTransition()},be.version="19.1.0",be}var F0;function Rd(){return F0||(F0=1,Yf.exports=ex()),Yf.exports}var g=Rd();const $e=po(g);var Vf={exports:{}},Ii={},$f={exports:{}},Kf={};/**
18
- * @license React
19
- * scheduler.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 G0;function tx(){return G0||(G0=1,function(n){function l(B,G){var J=B.length;B.push(G);e:for(;0<J;){var oe=J-1>>>1,A=B[oe];if(0<u(A,G))B[oe]=G,B[J]=A,J=oe;else break e}}function r(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var G=B[0],J=B.pop();if(J!==G){B[0]=J;e:for(var oe=0,A=B.length,Q=A>>>1;oe<Q;){var W=2*(oe+1)-1,P=B[W],ie=W+1,Ce=B[ie];if(0>u(P,J))ie<A&&0>u(Ce,P)?(B[oe]=Ce,B[ie]=J,oe=ie):(B[oe]=P,B[W]=J,oe=W);else if(ie<A&&0>u(Ce,J))B[oe]=Ce,B[ie]=J,oe=ie;else break e}}return G}function u(B,G){var J=B.sortIndex-G.sortIndex;return J!==0?J:B.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var y=[],p=[],b=1,S=null,w=3,C=!1,E=!1,T=!1,j=!1,_=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function X(B){for(var G=r(p);G!==null;){if(G.callback===null)i(p);else if(G.startTime<=B)i(p),G.sortIndex=G.expirationTime,l(y,G);else break;G=r(p)}}function $(B){if(T=!1,X(B),!E)if(r(y)!==null)E=!0,k||(k=!0,Ee());else{var G=r(p);G!==null&&xe($,G.startTime-B)}}var k=!1,F=-1,I=5,ae=-1;function pe(){return j?!0:!(n.unstable_now()-ae<I)}function Be(){if(j=!1,k){var B=n.unstable_now();ae=B;var G=!0;try{e:{E=!1,T&&(T=!1,D(F),F=-1),C=!0;var J=w;try{t:{for(X(B),S=r(y);S!==null&&!(S.expirationTime>B&&pe());){var oe=S.callback;if(typeof oe=="function"){S.callback=null,w=S.priorityLevel;var A=oe(S.expirationTime<=B);if(B=n.unstable_now(),typeof A=="function"){S.callback=A,X(B),G=!0;break t}S===r(y)&&i(y),X(B)}else i(y);S=r(y)}if(S!==null)G=!0;else{var Q=r(p);Q!==null&&xe($,Q.startTime-B),G=!1}}break e}finally{S=null,w=J,C=!1}G=void 0}}finally{G?Ee():k=!1}}}var Ee;if(typeof R=="function")Ee=function(){R(Be)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,ye=Ke.port2;Ke.port1.onmessage=Be,Ee=function(){ye.postMessage(null)}}else Ee=function(){_(Be,0)};function xe(B,G){F=_(function(){B(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(B){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var J=w;w=G;try{return B()}finally{w=J}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var J=w;w=B;try{return G()}finally{w=J}},n.unstable_scheduleCallback=function(B,G,J){var oe=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?oe+J:oe):J=oe,B){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=J+A,B={id:b++,callback:G,priorityLevel:B,startTime:J,expirationTime:A,sortIndex:-1},J>oe?(B.sortIndex=J,l(p,B),r(y)===null&&B===r(p)&&(T?(D(F),F=-1):T=!0,xe($,J-oe))):(B.sortIndex=A,l(y,B),E||C||(E=!0,k||(k=!0,Ee()))),B},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(B){var G=w;return function(){var J=w;w=G;try{return B.apply(this,arguments)}finally{w=J}}}}(Kf)),Kf}var X0;function nx(){return X0||(X0=1,$f.exports=tx()),$f.exports}var Ff={exports:{}},Dt={};/**
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 Z0;function ax(){if(Z0)return Dt;Z0=1;var n=Rd();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(y,p,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:y,containerInfo:p,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Dt.createPortal=function(y,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(y,p,null,b)},Dt.flushSync=function(y){var p=d.T,b=i.p;try{if(d.T=null,i.p=2,y)return y()}finally{d.T=p,i.p=b,i.d.f()}},Dt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(y,p))},Dt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},Dt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var b=p.as,S=m(b,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?i.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:C}):b==="script"&&i.d.X(y,{crossOrigin:S,integrity:w,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Dt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=m(p.as,p.crossOrigin);i.d.M(y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(y)},Dt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,S=m(b,p.crossOrigin);i.d.L(y,b,{crossOrigin:S,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})}},Dt.preloadModule=function(y,p){if(typeof y=="string")if(p){var b=m(p.as,p.crossOrigin);i.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(y)},Dt.requestFormReset=function(y){i.d.r(y)},Dt.unstable_batchedUpdates=function(y,p){return y(p)},Dt.useFormState=function(y,p,b){return d.H.useFormState(y,p,b)},Dt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Dt.version="19.1.0",Dt}var J0;function av(){if(J0)return Ff.exports;J0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Ff.exports=ax(),Ff.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 P0;function lx(){if(P0)return Ii;P0=1;var n=nx(),l=Rd(),r=av();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(o(e)!==e)throw Error(i(188))}function y(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,s=t;;){var c=a.return;if(c===null)break;var f=c.alternate;if(f===null){if(s=c.return,s!==null){a=s;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===a)return m(c),e;if(f===s)return m(c),t;f=f.sibling}throw Error(i(188))}if(a.return!==s.return)a=c,s=f;else{for(var v=!1,x=c.child;x;){if(x===a){v=!0,a=c,s=f;break}if(x===s){v=!0,s=c,a=f;break}x=x.sibling}if(!v){for(x=f.child;x;){if(x===a){v=!0,a=f,s=c;break}if(x===s){v=!0,s=f,a=c;break}x=x.sibling}if(!v)throw Error(i(189))}}if(a.alternate!==s)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),R=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=Be&&e[Be]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case j:return"Profiler";case T:return"StrictMode";case $:return"Suspense";case k:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case R:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var xe=Array.isArray,B=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},oe=[],A=-1;function Q(e){return{current:e}}function W(e){0>A||(e.current=oe[A],oe[A]=null,A--)}function P(e,t){A++,oe[A]=e.current,e.current=t}var ie=Q(null),Ce=Q(null),ce=Q(null),St=Q(null);function Ue(e,t){switch(P(ce,t),P(Ce,e),P(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?v0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=v0(t),e=b0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(ie),P(ie,e)}function Ze(){W(ie),W(Ce),W(ce)}function Yn(e){e.memoizedState!==null&&P(St,e);var t=ie.current,a=b0(t,e.type);t!==a&&(P(Ce,e),P(ie,a))}function Nt(e){Ce.current===e&&(W(ie),W(Ce)),St.current===e&&(W(St),Fi._currentValue=J)}var hn=Object.prototype.hasOwnProperty,ua=n.unstable_scheduleCallback,mn=n.unstable_cancelCallback,ti=n.unstable_shouldYield,zt=n.unstable_requestPaint,Bt=n.unstable_now,oa=n.unstable_getCurrentPriorityLevel,Vn=n.unstable_ImmediatePriority,Fe=n.unstable_UserBlockingPriority,$n=n.unstable_NormalPriority,yl=n.unstable_LowPriority,Ma=n.unstable_IdlePriority,vl=n.log,Zl=n.unstable_setDisableYieldValue,pn=null,tt=null;function Vt(e){if(typeof vl=="function"&&Zl(e),tt&&typeof tt.setStrictMode=="function")try{tt.setStrictMode(pn,e)}catch{}}var st=Math.clz32?Math.clz32:La,Ua=Math.log,ni=Math.LN2;function La(e){return e>>>=0,e===0?32:31-(Ua(e)/ni|0)|0}var yn=256,jt=4194304;function He(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ca(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var c=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~f,s!==0?c=He(s):(v&=x,v!==0?c=He(v):a||(a=x&~e,a!==0&&(c=He(a))))):(x=s&~f,x!==0?c=He(x):v!==0?c=He(v):a||(a=s&~e,a!==0&&(c=He(a)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:c}function On(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qa(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function za(){var e=yn;return yn<<=1,(yn&4194048)===0&&(yn=256),e}function fa(){var e=jt;return jt<<=1,(jt&62914560)===0&&(jt=4194304),e}function Kn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function vn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bl(e,t,a,s,c,f){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var x=e.entanglements,N=e.expirationTimes,L=e.hiddenUpdates;for(a=v&~a;0<a;){var Y=31-st(a),K=1<<Y;x[Y]=0,N[Y]=-1;var q=L[Y];if(q!==null)for(L[Y]=null,Y=0;Y<q.length;Y++){var z=q[Y];z!==null&&(z.lane&=-536870913)}a&=~K}s!==0&&gl(e,s,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(v&~t))}function gl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-st(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function it(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-st(a),c=1<<s;c&t|e[s]&t&&(e[s]|=t),a&=~c}}function At(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ue(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _e(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:z0(e.type))}function Ht(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Tt=Math.random().toString(36).slice(2),Z="__reactFiber$"+Tt,te="__reactProps$"+Tt,de="__reactContainer$"+Tt,Ie="__reactEvents$"+Tt,vt="__reactListeners$"+Tt,bn="__reactHandles$"+Tt,en="__reactResources$"+Tt,rt="__reactMarker$"+Tt;function Rt(e){delete e[Z],delete e[te],delete e[Ie],delete e[vt],delete e[bn]}function Re(e){var t=e[Z];if(t)return t;for(var a=e.parentNode;a;){if(t=a[de]||a[Z]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=w0(e);e!==null;){if(a=e[Z])return a;e=w0(e)}return t}e=a,a=e.parentNode}return null}function tn(e){if(e=e[Z]||e[de]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function xl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ba(e){var t=e[en];return t||(t=e[en]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[rt]=!0}var ai=new Set,li={};function Fn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(li[e]=t,e=0;e<t.length;e++)ai.add(t[e])}var Oe=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]*$"),gn={},Jl={};function Sl(e){return hn.call(Jl,e)?!0:hn.call(gn,e)?!1:Oe.test(e)?Jl[e]=!0:(gn[e]=!0,!1)}function Pl(e,t,a){if(Sl(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ha(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ha(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}var Uo,ch;function Il(e){if(Uo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Uo=t&&t[1]||"",ch=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Uo+e+ch}var Lo=!1;function qo(e,t){if(!e||Lo)return"";Lo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(z){var q=z}Reflect.construct(e,[],K)}else{try{K.call()}catch(z){q=z}e.call(K.prototype)}}else{try{throw Error()}catch(z){q=z}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(z){if(z&&q&&typeof z.stack=="string")return[z.stack,q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),v=f[0],x=f[1];if(v&&x){var N=v.split(`
44
- `),L=x.split(`
45
- `);for(c=s=0;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;for(;c<L.length&&!L[c].includes("DetermineComponentFrameRoot");)c++;if(s===N.length||c===L.length)for(s=N.length-1,c=L.length-1;1<=s&&0<=c&&N[s]!==L[c];)c--;for(;1<=s&&0<=c;s--,c--)if(N[s]!==L[c]){if(s!==1||c!==1)do if(s--,c--,0>c||N[s]!==L[c]){var Y=`
46
- `+N[s].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=s&&0<=c);break}}}finally{Lo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Il(a):""}function F1(e){switch(e.tag){case 26:case 27:case 5:return Il(e.type);case 16:return Il("Lazy");case 13:return Il("Suspense");case 19:return Il("SuspenseList");case 0:case 15:return qo(e.type,!1);case 11:return qo(e.type.render,!1);case 1:return qo(e.type,!0);case 31:return Il("Activity");default:return""}}function fh(e){try{var t="";do t+=F1(e),e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}function xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G1(e){var t=dh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(v){s=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(v){s=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ar(e){e._valueTracker||(e._valueTracker=G1(e))}function hh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=dh(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function Tr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var X1=/[\n"\\]/g;function Sn(e){return e.replace(X1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zo(e,t,a,s,c,f,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xn(t)):e.value!==""+xn(t)&&(e.value=""+xn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Bo(e,v,xn(t)):a!=null?Bo(e,v,xn(a)):s!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+xn(x):e.removeAttribute("name")}function mh(e,t,a,s,c,f,v,x){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+xn(a):"",t=t!=null?""+xn(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function Bo(e,t,a){t==="number"&&Tr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Wl(e,t,a,s){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&s&&(e[a].defaultSelected=!0)}else{for(a=""+xn(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ph(e,t,a){if(t!=null&&(t=""+xn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+xn(a):""}function yh(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(i(92));if(xe(s)){if(1<s.length)throw Error(i(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=xn(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s)}function es(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Z1=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 vh(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||Z1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function bh(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var c in t)s=t[c],t.hasOwnProperty(c)&&a[c]!==s&&vh(e,c,s)}else for(var f in t)t.hasOwnProperty(f)&&vh(e,f,t[f])}function Ho(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var J1=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"]]),P1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rr(e){return P1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var ko=null;function Qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ts=null,ns=null;function gh(e){var t=tn(e);if(t&&(e=t.stateNode)){var a=e[te]||null;e:switch(e=t.stateNode,t.type){case"input":if(zo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Sn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var c=s[te]||null;if(!c)throw Error(i(90));zo(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&hh(s)}break e;case"textarea":ph(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Wl(e,!!a.multiple,t,!1)}}}var Yo=!1;function xh(e,t,a){if(Yo)return e(t,a);Yo=!0;try{var s=e(t);return s}finally{if(Yo=!1,(ts!==null||ns!==null)&&(pu(),ts&&(t=ts,e=ns,ns=ts=null,gh(t),e)))for(t=0;t<e.length;t++)gh(e[t])}}function si(e,t){var a=e.stateNode;if(a===null)return null;var s=a[te]||null;if(s===null)return null;a=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vo=!1;if(ma)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Vo=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Vo=!1}var ka=null,$o=null,Or=null;function Sh(){if(Or)return Or;var e,t=$o,a=t.length,s,c="value"in ka?ka.value:ka.textContent,f=c.length;for(e=0;e<a&&t[e]===c[e];e++);var v=a-e;for(s=1;s<=v&&t[a-s]===c[f-s];s++);return Or=c.slice(e,1<s?1-s:void 0)}function Dr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mr(){return!0}function wh(){return!1}function $t(e){function t(a,s,c,f,v){this._reactName=a,this._targetInst=c,this.type=s,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Mr:wh,this.isPropagationStopped=wh,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Mr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Mr)},persist:function(){},isPersistent:Mr}),t}var wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ur=$t(wl),ri=b({},wl,{view:0,detail:0}),I1=$t(ri),Ko,Fo,ui,Lr=b({},ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ui&&(ui&&e.type==="mousemove"?(Ko=e.screenX-ui.screenX,Fo=e.screenY-ui.screenY):Fo=Ko=0,ui=e),Ko)},movementY:function(e){return"movementY"in e?e.movementY:Fo}}),Eh=$t(Lr),W1=b({},Lr,{dataTransfer:0}),eb=$t(W1),tb=b({},ri,{relatedTarget:0}),Go=$t(tb),nb=b({},wl,{animationName:0,elapsedTime:0,pseudoElement:0}),ab=$t(nb),lb=b({},wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sb=$t(lb),ib=b({},wl,{data:0}),Ch=$t(ib),rb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ub={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"},ob={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ob[e])?!!t[e]:!1}function Xo(){return cb}var fb=b({},ri,{key:function(e){if(e.key){var t=rb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ub[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xo,charCode:function(e){return e.type==="keypress"?Dr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),db=$t(fb),hb=b({},Lr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_h=$t(hb),mb=b({},ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xo}),pb=$t(mb),yb=b({},wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),vb=$t(yb),bb=b({},Lr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gb=$t(bb),xb=b({},wl,{newState:0,oldState:0}),Sb=$t(xb),wb=[9,13,27,32],Zo=ma&&"CompositionEvent"in window,oi=null;ma&&"documentMode"in document&&(oi=document.documentMode);var Eb=ma&&"TextEvent"in window&&!oi,Nh=ma&&(!Zo||oi&&8<oi&&11>=oi),jh=" ",Ah=!1;function Th(e,t){switch(e){case"keyup":return wb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function Cb(e,t){switch(e){case"compositionend":return Rh(t);case"keypress":return t.which!==32?null:(Ah=!0,jh);case"textInput":return e=t.data,e===jh&&Ah?null:e;default:return null}}function _b(e,t){if(as)return e==="compositionend"||!Zo&&Th(e,t)?(e=Sh(),Or=$o=ka=null,as=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nh&&t.locale!=="ko"?null:t.data;default:return null}}var Nb={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 Oh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Nb[e.type]:t==="textarea"}function Dh(e,t,a,s){ts?ns?ns.push(s):ns=[s]:ts=s,t=Su(t,"onChange"),0<t.length&&(a=new Ur("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ci=null,fi=null;function jb(e){d0(e,0)}function qr(e){var t=xl(e);if(hh(t))return e}function Mh(e,t){if(e==="change")return t}var Uh=!1;if(ma){var Jo;if(ma){var Po="oninput"in document;if(!Po){var Lh=document.createElement("div");Lh.setAttribute("oninput","return;"),Po=typeof Lh.oninput=="function"}Jo=Po}else Jo=!1;Uh=Jo&&(!document.documentMode||9<document.documentMode)}function qh(){ci&&(ci.detachEvent("onpropertychange",zh),fi=ci=null)}function zh(e){if(e.propertyName==="value"&&qr(fi)){var t=[];Dh(t,fi,e,Qo(e)),xh(jb,t)}}function Ab(e,t,a){e==="focusin"?(qh(),ci=t,fi=a,ci.attachEvent("onpropertychange",zh)):e==="focusout"&&qh()}function Tb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qr(fi)}function Rb(e,t){if(e==="click")return qr(t)}function Ob(e,t){if(e==="input"||e==="change")return qr(t)}function Db(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:Db;function di(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var c=a[s];if(!hn.call(t,c)||!nn(e[c],t[c]))return!1}return!0}function Bh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hh(e,t){var a=Bh(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Bh(a)}}function kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Tr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Tr(e.document)}return t}function Io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Mb=ma&&"documentMode"in document&&11>=document.documentMode,ls=null,Wo=null,hi=null,ec=!1;function Yh(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ec||ls==null||ls!==Tr(s)||(s=ls,"selectionStart"in s&&Io(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),hi&&di(hi,s)||(hi=s,s=Su(Wo,"onSelect"),0<s.length&&(t=new Ur("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ls)))}function El(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ss={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionrun:El("Transition","TransitionRun"),transitionstart:El("Transition","TransitionStart"),transitioncancel:El("Transition","TransitionCancel"),transitionend:El("Transition","TransitionEnd")},tc={},Vh={};ma&&(Vh=document.createElement("div").style,"AnimationEvent"in window||(delete ss.animationend.animation,delete ss.animationiteration.animation,delete ss.animationstart.animation),"TransitionEvent"in window||delete ss.transitionend.transition);function Cl(e){if(tc[e])return tc[e];if(!ss[e])return e;var t=ss[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Vh)return tc[e]=t[a];return e}var $h=Cl("animationend"),Kh=Cl("animationiteration"),Fh=Cl("animationstart"),Ub=Cl("transitionrun"),Lb=Cl("transitionstart"),qb=Cl("transitioncancel"),Gh=Cl("transitionend"),Xh=new Map,nc="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(" ");nc.push("scrollEnd");function Dn(e,t){Xh.set(e,t),Fn(t,[e])}var Zh=new WeakMap;function wn(e,t){if(typeof e=="object"&&e!==null){var a=Zh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:fh(t)},Zh.set(e,t),t)}return{value:e,source:t,stack:fh(t)}}var En=[],is=0,ac=0;function zr(){for(var e=is,t=ac=is=0;t<e;){var a=En[t];En[t++]=null;var s=En[t];En[t++]=null;var c=En[t];En[t++]=null;var f=En[t];if(En[t++]=null,s!==null&&c!==null){var v=s.pending;v===null?c.next=c:(c.next=v.next,v.next=c),s.pending=c}f!==0&&Jh(a,c,f)}}function Br(e,t,a,s){En[is++]=e,En[is++]=t,En[is++]=a,En[is++]=s,ac|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function lc(e,t,a,s){return Br(e,t,a,s),Hr(e)}function rs(e,t){return Br(e,null,null,t),Hr(e)}function Jh(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var c=!1,f=e.return;f!==null;)f.childLanes|=a,s=f.alternate,s!==null&&(s.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-st(a),e=f.hiddenUpdates,s=e[c],s===null?e[c]=[t]:s.push(t),t.lane=a|536870912),f):null}function Hr(e){if(50<Bi)throw Bi=0,ff=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var us={};function zb(e,t,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,a,s){return new zb(e,t,a,s)}function sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var a=e.alternate;return a===null?(a=an(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Ph(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function kr(e,t,a,s,c,f){var v=0;if(s=e,typeof e=="function")sc(e)&&(v=1);else if(typeof e=="string")v=Hg(e,a,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=an(31,a,t,c),e.elementType=ae,e.lanes=f,e;case E:return _l(a.children,c,f,t);case T:v=8,c|=24;break;case j:return e=an(12,a,t,c|2),e.elementType=j,e.lanes=f,e;case $:return e=an(13,a,t,c),e.elementType=$,e.lanes=f,e;case k:return e=an(19,a,t,c),e.elementType=k,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case R:v=10;break e;case D:v=9;break e;case X:v=11;break e;case F:v=14;break e;case I:v=16,s=null;break e}v=29,a=Error(i(130,e===null?"null":typeof e,"")),s=null}return t=an(v,a,t,c),t.elementType=e,t.type=s,t.lanes=f,t}function _l(e,t,a,s){return e=an(7,e,s,t),e.lanes=a,e}function ic(e,t,a){return e=an(6,e,null,t),e.lanes=a,e}function rc(e,t,a){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var os=[],cs=0,Qr=null,Yr=0,Cn=[],_n=0,Nl=null,ya=1,va="";function jl(e,t){os[cs++]=Yr,os[cs++]=Qr,Qr=e,Yr=t}function Ih(e,t,a){Cn[_n++]=ya,Cn[_n++]=va,Cn[_n++]=Nl,Nl=e;var s=ya;e=va;var c=32-st(s)-1;s&=~(1<<c),a+=1;var f=32-st(t)+c;if(30<f){var v=c-c%5;f=(s&(1<<v)-1).toString(32),s>>=v,c-=v,ya=1<<32-st(t)+c|a<<c|s,va=f+e}else ya=1<<f|a<<c|s,va=e}function uc(e){e.return!==null&&(jl(e,1),Ih(e,1,0))}function oc(e){for(;e===Qr;)Qr=os[--cs],os[cs]=null,Yr=os[--cs],os[cs]=null;for(;e===Nl;)Nl=Cn[--_n],Cn[_n]=null,va=Cn[--_n],Cn[_n]=null,ya=Cn[--_n],Cn[_n]=null}var kt=null,nt=null,De=!1,Al=null,Gn=!1,cc=Error(i(519));function Tl(e){var t=Error(i(418,""));throw yi(wn(t,e)),cc}function Wh(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[Z]=e,t[te]=s,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<ki.length;a++)je(ki[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),mh(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),Ar(t);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),yh(t,s.value,s.defaultValue,s.children),Ar(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||y0(t.textContent,a)?(s.popover!=null&&(je("beforetoggle",t),je("toggle",t)),s.onScroll!=null&&je("scroll",t),s.onScrollEnd!=null&&je("scrollend",t),s.onClick!=null&&(t.onclick=wu),t=!0):t=!1,t||Tl(e)}function em(e){for(kt=e.return;kt;)switch(kt.tag){case 5:case 13:Gn=!1;return;case 27:case 3:Gn=!0;return;default:kt=kt.return}}function mi(e){if(e!==kt)return!1;if(!De)return em(e),De=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||jf(e.type,e.memoizedProps)),a=!a),a&&nt&&Tl(e),em(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){nt=Un(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}nt=null}}else t===27?(t=nt,nl(e.type)?(e=Of,Of=null,nt=e):nt=t):nt=kt?Un(e.stateNode.nextSibling):null;return!0}function pi(){nt=kt=null,De=!1}function tm(){var e=Al;return e!==null&&(Gt===null?Gt=e:Gt.push.apply(Gt,e),Al=null),e}function yi(e){Al===null?Al=[e]:Al.push(e)}var fc=Q(null),Rl=null,ba=null;function Qa(e,t,a){P(fc,t._currentValue),t._currentValue=a}function ga(e){e._currentValue=fc.current,W(fc)}function dc(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function hc(e,t,a,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var v=c.child;f=f.firstContext;e:for(;f!==null;){var x=f;f=c;for(var N=0;N<t.length;N++)if(x.context===t[N]){f.lanes|=a,x=f.alternate,x!==null&&(x.lanes|=a),dc(f.return,a,e),s||(v=null);break e}f=x.next}}else if(c.tag===18){if(v=c.return,v===null)throw Error(i(341));v.lanes|=a,f=v.alternate,f!==null&&(f.lanes|=a),dc(v,a,e),v=null}else v=c.child;if(v!==null)v.return=c;else for(v=c;v!==null;){if(v===e){v=null;break}if(c=v.sibling,c!==null){c.return=v.return,v=c;break}v=v.return}c=v}}function vi(e,t,a,s){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var v=c.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var x=c.type;nn(c.pendingProps.value,v.value)||(e!==null?e.push(x):e=[x])}}else if(c===St.current){if(v=c.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Fi):e=[Fi])}c=c.return}e!==null&&hc(t,e,a,s),t.flags|=262144}function Vr(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){Rl=e,ba=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return nm(Rl,e)}function $r(e,t){return Rl===null&&Ol(e),nm(e,t)}function nm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ba===null){if(e===null)throw Error(i(308));ba=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ba=ba.next=t;return a}var Bb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Hb=n.unstable_scheduleCallback,kb=n.unstable_NormalPriority,pt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mc(){return{controller:new Bb,data:new Map,refCount:0}}function bi(e){e.refCount--,e.refCount===0&&Hb(kb,function(){e.controller.abort()})}var gi=null,pc=0,fs=0,ds=null;function Qb(e,t){if(gi===null){var a=gi=[];pc=0,fs=bf(),ds={status:"pending",value:void 0,then:function(s){a.push(s)}}}return pc++,t.then(am,am),t}function am(){if(--pc===0&&gi!==null){ds!==null&&(ds.status="fulfilled");var e=gi;gi=null,fs=0,ds=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yb(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(s.status="rejected",s.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),s}var lm=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qb(e,t),lm!==null&&lm(e,t)};var Dl=Q(null);function yc(){var e=Dl.current;return e!==null?e:Ge.pooledCache}function Kr(e,t){t===null?P(Dl,Dl.current):P(Dl,t.pool)}function sm(){var e=yc();return e===null?null:{parent:pt._currentValue,pool:e}}var xi=Error(i(460)),im=Error(i(474)),Fr=Error(i(542)),vc={then:function(){}};function rm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gr(){}function um(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Gr,Gr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cm(e),e;default:if(typeof t.status=="string")t.then(Gr,Gr);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cm(e),e}throw Si=t,xi}}var Si=null;function om(){if(Si===null)throw Error(i(459));var e=Si;return Si=null,e}function cm(e){if(e===xi||e===Fr)throw Error(i(483))}var Ya=!1;function bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $a(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Le&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=Hr(e),Jh(e,null,a),t}return Br(e,s,t,a),Hr(e)}function wi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,it(e,a)}}function xc(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var c=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?c=f=v:f=f.next=v,a=a.next}while(a!==null);f===null?c=f=t:f=f.next=t}else c=f=t;a={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Sc=!1;function Ei(){if(Sc){var e=ds;if(e!==null)throw e}}function Ci(e,t,a,s){Sc=!1;var c=e.updateQueue;Ya=!1;var f=c.firstBaseUpdate,v=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var N=x,L=N.next;N.next=null,v===null?f=L:v.next=L,v=N;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,x=Y.lastBaseUpdate,x!==v&&(x===null?Y.firstBaseUpdate=L:x.next=L,Y.lastBaseUpdate=N))}if(f!==null){var K=c.baseState;v=0,Y=L=N=null,x=f;do{var q=x.lane&-536870913,z=q!==x.lane;if(z?(Ae&q)===q:(s&q)===q){q!==0&&q===fs&&(Sc=!0),Y!==null&&(Y=Y.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var me=e,fe=x;q=t;var Ye=a;switch(fe.tag){case 1:if(me=fe.payload,typeof me=="function"){K=me.call(Ye,K,q);break e}K=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=fe.payload,q=typeof me=="function"?me.call(Ye,K,q):me,q==null)break e;K=b({},K,q);break e;case 2:Ya=!0}}q=x.callback,q!==null&&(e.flags|=64,z&&(e.flags|=8192),z=c.callbacks,z===null?c.callbacks=[q]:z.push(q))}else z={lane:q,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Y===null?(L=Y=z,N=K):Y=Y.next=z,v|=q;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;z=x,x=z.next,z.next=null,c.lastBaseUpdate=z,c.shared.pending=null}}while(!0);Y===null&&(N=K),c.baseState=N,c.firstBaseUpdate=L,c.lastBaseUpdate=Y,f===null&&(c.shared.lanes=0),Ia|=v,e.lanes=v,e.memoizedState=K}}function fm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function dm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)fm(a[e],t)}var hs=Q(null),Xr=Q(0);function hm(e,t){e=Na,P(Xr,e),P(hs,t),Na=e|t.baseLanes}function wc(){P(Xr,Na),P(hs,hs.current)}function Ec(){Na=Xr.current,W(hs),W(Xr)}var Ka=0,ge=null,ke=null,ft=null,Zr=!1,ms=!1,Ml=!1,Jr=0,_i=0,ps=null,Vb=0;function ot(){throw Error(i(321))}function Cc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!nn(e[a],t[a]))return!1;return!0}function _c(e,t,a,s,c,f){return Ka=f,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Jm:Pm,Ml=!1,f=a(s,c),Ml=!1,ms&&(f=pm(t,a,s,c)),mm(e),f}function mm(e){B.H=nu;var t=ke!==null&&ke.next!==null;if(Ka=0,ft=ke=ge=null,Zr=!1,_i=0,ps=null,t)throw Error(i(300));e===null||bt||(e=e.dependencies,e!==null&&Vr(e)&&(bt=!0))}function pm(e,t,a,s){ge=e;var c=0;do{if(ms&&(ps=null),_i=0,ms=!1,25<=c)throw Error(i(301));if(c+=1,ft=ke=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}B.H=Jb,f=t(a,s)}while(ms);return f}function $b(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Ni(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(ge.flags|=1024),t}function Nc(){var e=Jr!==0;return Jr=0,e}function jc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ac(e){if(Zr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zr=!1}Ka=0,ft=ke=ge=null,ms=!1,_i=Jr=0,ps=null}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?ge.memoizedState=ft=e:ft=ft.next=e,ft}function dt(){if(ke===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=ft===null?ge.memoizedState:ft.next;if(t!==null)ft=t,ke=e;else{if(e===null)throw ge.alternate===null?Error(i(467)):Error(i(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},ft===null?ge.memoizedState=ft=e:ft=ft.next=e}return ft}function Tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ni(e){var t=_i;return _i+=1,ps===null&&(ps=[]),e=um(ps,e,t),t=ge,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Jm:Pm),e}function Pr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ni(e);if(e.$$typeof===R)return Ot(e)}throw Error(i(438,String(e)))}function Rc(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=ge.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Tc(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=pe;return t.index++,a}function xa(e,t){return typeof t=="function"?t(e):t}function Ir(e){var t=dt();return Oc(t,ke,e)}function Oc(e,t,a){var s=e.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=a;var c=e.baseQueue,f=s.pending;if(f!==null){if(c!==null){var v=c.next;c.next=f.next,f.next=v}t.baseQueue=c=f,s.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var x=v=null,N=null,L=t,Y=!1;do{var K=L.lane&-536870913;if(K!==L.lane?(Ae&K)===K:(Ka&K)===K){var q=L.revertLane;if(q===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),K===fs&&(Y=!0);else if((Ka&q)===q){L=L.next,q===fs&&(Y=!0);continue}else K={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(x=N=K,v=f):N=N.next=K,ge.lanes|=q,Ia|=q;K=L.action,Ml&&a(f,K),f=L.hasEagerState?L.eagerState:a(f,K)}else q={lane:K,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(x=N=q,v=f):N=N.next=q,ge.lanes|=K,Ia|=K;L=L.next}while(L!==null&&L!==t);if(N===null?v=f:N.next=x,!nn(f,e.memoizedState)&&(bt=!0,Y&&(a=ds,a!==null)))throw a;e.memoizedState=f,e.baseState=v,e.baseQueue=N,s.lastRenderedState=f}return c===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Dc(e){var t=dt(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var s=a.dispatch,c=a.pending,f=t.memoizedState;if(c!==null){a.pending=null;var v=c=c.next;do f=e(f,v.action),v=v.next;while(v!==c);nn(f,t.memoizedState)||(bt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,s]}function ym(e,t,a){var s=ge,c=dt(),f=De;if(f){if(a===void 0)throw Error(i(407));a=a()}else a=t();var v=!nn((ke||c).memoizedState,a);v&&(c.memoizedState=a,bt=!0),c=c.queue;var x=gm.bind(null,s,c,e);if(ji(2048,8,x,[e]),c.getSnapshot!==t||v||ft!==null&&ft.memoizedState.tag&1){if(s.flags|=2048,ys(9,Wr(),bm.bind(null,s,c,a,t),null),Ge===null)throw Error(i(349));f||(Ka&124)!==0||vm(s,t,a)}return a}function vm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Tc(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function bm(e,t,a,s){t.value=a,t.getSnapshot=s,xm(t)&&Sm(e)}function gm(e,t,a){return a(function(){xm(t)&&Sm(e)})}function xm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!nn(e,a)}catch{return!0}}function Sm(e){var t=rs(e,2);t!==null&&on(t,e,2)}function Mc(e){var t=Kt();if(typeof e=="function"){var a=e;if(e=a(),Ml){Vt(!0);try{a()}finally{Vt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t}function wm(e,t,a,s){return e.baseState=a,Oc(e,ke,typeof s=="function"?s:xa)}function Kb(e,t,a,s,c){if(tu(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};B.T!==null?a(!0):f.isTransition=!1,s(f),a=t.pending,a===null?(f.next=t.pending=f,Em(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Em(e,t){var a=t.action,s=t.payload,c=e.state;if(t.isTransition){var f=B.T,v={};B.T=v;try{var x=a(c,s),N=B.S;N!==null&&N(v,x),Cm(e,t,x)}catch(L){Uc(e,t,L)}finally{B.T=f}}else try{f=a(c,s),Cm(e,t,f)}catch(L){Uc(e,t,L)}}function Cm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){_m(e,t,s)},function(s){return Uc(e,t,s)}):_m(e,t,a)}function _m(e,t,a){t.status="fulfilled",t.value=a,Nm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Em(e,a)))}function Uc(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,Nm(t),t=t.next;while(t!==s)}e.action=null}function Nm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jm(e,t){return t}function Am(e,t){if(De){var a=Ge.formState;if(a!==null){e:{var s=ge;if(De){if(nt){t:{for(var c=nt,f=Gn;c.nodeType!==8;){if(!f){c=null;break t}if(c=Un(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){nt=Un(c.nextSibling),s=c.data==="F!";break e}}Tl(s)}s=!1}s&&(t=a[0])}}return a=Kt(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jm,lastRenderedState:t},a.queue=s,a=Gm.bind(null,ge,s),s.dispatch=a,s=Mc(!1),f=Hc.bind(null,ge,!1,s.queue),s=Kt(),c={state:t,dispatch:null,action:e,pending:null},s.queue=c,a=Kb.bind(null,ge,c,f,a),c.dispatch=a,s.memoizedState=e,[t,a,!1]}function Tm(e){var t=dt();return Rm(t,ke,e)}function Rm(e,t,a){if(t=Oc(e,t,jm)[0],e=Ir(xa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Ni(t)}catch(v){throw v===xi?Fr:v}else s=t;t=dt();var c=t.queue,f=c.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,ys(9,Wr(),Fb.bind(null,c,a),null)),[s,f,e]}function Fb(e,t){e.action=t}function Om(e){var t=dt(),a=ke;if(a!==null)return Rm(t,a,e);dt(),t=t.memoizedState,a=dt();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function ys(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Tc(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Wr(){return{destroy:void 0,resource:void 0}}function Dm(){return dt().memoizedState}function eu(e,t,a,s){var c=Kt();s=s===void 0?null:s,ge.flags|=e,c.memoizedState=ys(1|t,Wr(),a,s)}function ji(e,t,a,s){var c=dt();s=s===void 0?null:s;var f=c.memoizedState.inst;ke!==null&&s!==null&&Cc(s,ke.memoizedState.deps)?c.memoizedState=ys(t,f,a,s):(ge.flags|=e,c.memoizedState=ys(1|t,f,a,s))}function Mm(e,t){eu(8390656,8,e,t)}function Um(e,t){ji(2048,8,e,t)}function Lm(e,t){return ji(4,2,e,t)}function qm(e,t){return ji(4,4,e,t)}function zm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bm(e,t,a){a=a!=null?a.concat([e]):null,ji(4,4,zm.bind(null,t,e),a)}function Lc(){}function Hm(e,t){var a=dt();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Cc(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function km(e,t){var a=dt();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Cc(t,s[1]))return s[0];if(s=e(),Ml){Vt(!0);try{e()}finally{Vt(!1)}}return a.memoizedState=[s,t],s}function qc(e,t,a){return a===void 0||(Ka&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Vp(),ge.lanes|=e,Ia|=e,a)}function Qm(e,t,a,s){return nn(a,t)?a:hs.current!==null?(e=qc(e,a,s),nn(e,t)||(bt=!0),e):(Ka&42)===0?(bt=!0,e.memoizedState=a):(e=Vp(),ge.lanes|=e,Ia|=e,t)}function Ym(e,t,a,s,c){var f=G.p;G.p=f!==0&&8>f?f:8;var v=B.T,x={};B.T=x,Hc(e,!1,t,a);try{var N=c(),L=B.S;if(L!==null&&L(x,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Y=Yb(N,s);Ai(e,t,Y,un(e))}else Ai(e,t,s,un(e))}catch(K){Ai(e,t,{then:function(){},status:"rejected",reason:K},un())}finally{G.p=f,B.T=v}}function Gb(){}function zc(e,t,a,s){if(e.tag!==5)throw Error(i(476));var c=Vm(e).queue;Ym(e,c,t,J,a===null?Gb:function(){return $m(e),a(s)})}function Vm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $m(e){var t=Vm(e).next.queue;Ai(e,t,{},un())}function Bc(){return Ot(Fi)}function Km(){return dt().memoizedState}function Fm(){return dt().memoizedState}function Xb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=un();e=Va(a);var s=$a(t,e,a);s!==null&&(on(s,t,a),wi(s,t,a)),t={cache:mc()},e.payload=t;return}t=t.return}}function Zb(e,t,a){var s=un();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},tu(e)?Xm(t,a):(a=lc(e,t,a,s),a!==null&&(on(a,e,s),Zm(a,t,s)))}function Gm(e,t,a){var s=un();Ai(e,t,a,s)}function Ai(e,t,a,s){var c={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(tu(e))Xm(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,x=f(v,a);if(c.hasEagerState=!0,c.eagerState=x,nn(x,v))return Br(e,t,c,0),Ge===null&&zr(),!1}catch{}finally{}if(a=lc(e,t,c,s),a!==null)return on(a,e,s),Zm(a,t,s),!0}return!1}function Hc(e,t,a,s){if(s={lane:2,revertLane:bf(),action:s,hasEagerState:!1,eagerState:null,next:null},tu(e)){if(t)throw Error(i(479))}else t=lc(e,a,s,2),t!==null&&on(t,e,2)}function tu(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Xm(e,t){ms=Zr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Zm(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,it(e,a)}}var nu={readContext:Ot,use:Pr,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot},Jm={readContext:Ot,use:Pr,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Mm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,eu(4194308,4,zm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return eu(4194308,4,e,t)},useInsertionEffect:function(e,t){eu(4,2,e,t)},useMemo:function(e,t){var a=Kt();t=t===void 0?null:t;var s=e();if(Ml){Vt(!0);try{e()}finally{Vt(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=Kt();if(a!==void 0){var c=a(t);if(Ml){Vt(!0);try{a(t)}finally{Vt(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=Zb.bind(null,ge,e),[s.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,a=Gm.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Lc,useDeferredValue:function(e,t){var a=Kt();return qc(a,e,t)},useTransition:function(){var e=Mc(!1);return e=Ym.bind(null,ge,e.queue,!0,!1),Kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ge,c=Kt();if(De){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ge===null)throw Error(i(349));(Ae&124)!==0||vm(s,t,a)}c.memoizedState=a;var f={value:a,getSnapshot:t};return c.queue=f,Mm(gm.bind(null,s,f,e),[e]),s.flags|=2048,ys(9,Wr(),bm.bind(null,s,f,a,t),null),a},useId:function(){var e=Kt(),t=Ge.identifierPrefix;if(De){var a=va,s=ya;a=(s&~(1<<32-st(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=Jr++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Vb++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Bc,useFormState:Am,useActionState:Am,useOptimistic:function(e){var t=Kt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hc.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Rc,useCacheRefresh:function(){return Kt().memoizedState=Xb.bind(null,ge)}},Pm={readContext:Ot,use:Pr,useCallback:Hm,useContext:Ot,useEffect:Um,useImperativeHandle:Bm,useInsertionEffect:Lm,useLayoutEffect:qm,useMemo:km,useReducer:Ir,useRef:Dm,useState:function(){return Ir(xa)},useDebugValue:Lc,useDeferredValue:function(e,t){var a=dt();return Qm(a,ke.memoizedState,e,t)},useTransition:function(){var e=Ir(xa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:ym,useId:Km,useHostTransitionStatus:Bc,useFormState:Tm,useActionState:Tm,useOptimistic:function(e,t){var a=dt();return wm(a,ke,e,t)},useMemoCache:Rc,useCacheRefresh:Fm},Jb={readContext:Ot,use:Pr,useCallback:Hm,useContext:Ot,useEffect:Um,useImperativeHandle:Bm,useInsertionEffect:Lm,useLayoutEffect:qm,useMemo:km,useReducer:Dc,useRef:Dm,useState:function(){return Dc(xa)},useDebugValue:Lc,useDeferredValue:function(e,t){var a=dt();return ke===null?qc(a,e,t):Qm(a,ke.memoizedState,e,t)},useTransition:function(){var e=Dc(xa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:ym,useId:Km,useHostTransitionStatus:Bc,useFormState:Om,useActionState:Om,useOptimistic:function(e,t){var a=dt();return ke!==null?wm(a,ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:Fm},vs=null,Ti=0;function au(e){var t=Ti;return Ti+=1,vs===null&&(vs=[]),um(vs,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lu(e,t){throw t.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Im(e){var t=e._init;return t(e._payload)}function Wm(e){function t(M,O){if(e){var U=M.deletions;U===null?(M.deletions=[O],M.flags|=16):U.push(O)}}function a(M,O){if(!e)return null;for(;O!==null;)t(M,O),O=O.sibling;return null}function s(M){for(var O=new Map;M!==null;)M.key!==null?O.set(M.key,M):O.set(M.index,M),M=M.sibling;return O}function c(M,O){return M=pa(M,O),M.index=0,M.sibling=null,M}function f(M,O,U){return M.index=U,e?(U=M.alternate,U!==null?(U=U.index,U<O?(M.flags|=67108866,O):U):(M.flags|=67108866,O)):(M.flags|=1048576,O)}function v(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function x(M,O,U,V){return O===null||O.tag!==6?(O=ic(U,M.mode,V),O.return=M,O):(O=c(O,U),O.return=M,O)}function N(M,O,U,V){var ee=U.type;return ee===E?Y(M,O,U.props.children,V,U.key):O!==null&&(O.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===I&&Im(ee)===O.type)?(O=c(O,U.props),Ri(O,U),O.return=M,O):(O=kr(U.type,U.key,U.props,null,M.mode,V),Ri(O,U),O.return=M,O)}function L(M,O,U,V){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=rc(U,M.mode,V),O.return=M,O):(O=c(O,U.children||[]),O.return=M,O)}function Y(M,O,U,V,ee){return O===null||O.tag!==7?(O=_l(U,M.mode,V,ee),O.return=M,O):(O=c(O,U),O.return=M,O)}function K(M,O,U){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=ic(""+O,M.mode,U),O.return=M,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return U=kr(O.type,O.key,O.props,null,M.mode,U),Ri(U,O),U.return=M,U;case C:return O=rc(O,M.mode,U),O.return=M,O;case I:var V=O._init;return O=V(O._payload),K(M,O,U)}if(xe(O)||Ee(O))return O=_l(O,M.mode,U,null),O.return=M,O;if(typeof O.then=="function")return K(M,au(O),U);if(O.$$typeof===R)return K(M,$r(M,O),U);lu(M,O)}return null}function q(M,O,U,V){var ee=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ee!==null?null:x(M,O,""+U,V);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return U.key===ee?N(M,O,U,V):null;case C:return U.key===ee?L(M,O,U,V):null;case I:return ee=U._init,U=ee(U._payload),q(M,O,U,V)}if(xe(U)||Ee(U))return ee!==null?null:Y(M,O,U,V,null);if(typeof U.then=="function")return q(M,O,au(U),V);if(U.$$typeof===R)return q(M,O,$r(M,U),V);lu(M,U)}return null}function z(M,O,U,V,ee){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(U)||null,x(O,M,""+V,ee);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return M=M.get(V.key===null?U:V.key)||null,N(O,M,V,ee);case C:return M=M.get(V.key===null?U:V.key)||null,L(O,M,V,ee);case I:var Se=V._init;return V=Se(V._payload),z(M,O,U,V,ee)}if(xe(V)||Ee(V))return M=M.get(U)||null,Y(O,M,V,ee,null);if(typeof V.then=="function")return z(M,O,U,au(V),ee);if(V.$$typeof===R)return z(M,O,U,$r(O,V),ee);lu(O,V)}return null}function me(M,O,U,V){for(var ee=null,Se=null,le=O,he=O=0,xt=null;le!==null&&he<U.length;he++){le.index>he?(xt=le,le=null):xt=le.sibling;var Te=q(M,le,U[he],V);if(Te===null){le===null&&(le=xt);break}e&&le&&Te.alternate===null&&t(M,le),O=f(Te,O,he),Se===null?ee=Te:Se.sibling=Te,Se=Te,le=xt}if(he===U.length)return a(M,le),De&&jl(M,he),ee;if(le===null){for(;he<U.length;he++)le=K(M,U[he],V),le!==null&&(O=f(le,O,he),Se===null?ee=le:Se.sibling=le,Se=le);return De&&jl(M,he),ee}for(le=s(le);he<U.length;he++)xt=z(le,M,he,U[he],V),xt!==null&&(e&&xt.alternate!==null&&le.delete(xt.key===null?he:xt.key),O=f(xt,O,he),Se===null?ee=xt:Se.sibling=xt,Se=xt);return e&&le.forEach(function(rl){return t(M,rl)}),De&&jl(M,he),ee}function fe(M,O,U,V){if(U==null)throw Error(i(151));for(var ee=null,Se=null,le=O,he=O=0,xt=null,Te=U.next();le!==null&&!Te.done;he++,Te=U.next()){le.index>he?(xt=le,le=null):xt=le.sibling;var rl=q(M,le,Te.value,V);if(rl===null){le===null&&(le=xt);break}e&&le&&rl.alternate===null&&t(M,le),O=f(rl,O,he),Se===null?ee=rl:Se.sibling=rl,Se=rl,le=xt}if(Te.done)return a(M,le),De&&jl(M,he),ee;if(le===null){for(;!Te.done;he++,Te=U.next())Te=K(M,Te.value,V),Te!==null&&(O=f(Te,O,he),Se===null?ee=Te:Se.sibling=Te,Se=Te);return De&&jl(M,he),ee}for(le=s(le);!Te.done;he++,Te=U.next())Te=z(le,M,he,Te.value,V),Te!==null&&(e&&Te.alternate!==null&&le.delete(Te.key===null?he:Te.key),O=f(Te,O,he),Se===null?ee=Te:Se.sibling=Te,Se=Te);return e&&le.forEach(function(Pg){return t(M,Pg)}),De&&jl(M,he),ee}function Ye(M,O,U,V){if(typeof U=="object"&&U!==null&&U.type===E&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case w:e:{for(var ee=U.key;O!==null;){if(O.key===ee){if(ee=U.type,ee===E){if(O.tag===7){a(M,O.sibling),V=c(O,U.props.children),V.return=M,M=V;break e}}else if(O.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===I&&Im(ee)===O.type){a(M,O.sibling),V=c(O,U.props),Ri(V,U),V.return=M,M=V;break e}a(M,O);break}else t(M,O);O=O.sibling}U.type===E?(V=_l(U.props.children,M.mode,V,U.key),V.return=M,M=V):(V=kr(U.type,U.key,U.props,null,M.mode,V),Ri(V,U),V.return=M,M=V)}return v(M);case C:e:{for(ee=U.key;O!==null;){if(O.key===ee)if(O.tag===4&&O.stateNode.containerInfo===U.containerInfo&&O.stateNode.implementation===U.implementation){a(M,O.sibling),V=c(O,U.children||[]),V.return=M,M=V;break e}else{a(M,O);break}else t(M,O);O=O.sibling}V=rc(U,M.mode,V),V.return=M,M=V}return v(M);case I:return ee=U._init,U=ee(U._payload),Ye(M,O,U,V)}if(xe(U))return me(M,O,U,V);if(Ee(U)){if(ee=Ee(U),typeof ee!="function")throw Error(i(150));return U=ee.call(U),fe(M,O,U,V)}if(typeof U.then=="function")return Ye(M,O,au(U),V);if(U.$$typeof===R)return Ye(M,O,$r(M,U),V);lu(M,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,O!==null&&O.tag===6?(a(M,O.sibling),V=c(O,U),V.return=M,M=V):(a(M,O),V=ic(U,M.mode,V),V.return=M,M=V),v(M)):a(M,O)}return function(M,O,U,V){try{Ti=0;var ee=Ye(M,O,U,V);return vs=null,ee}catch(le){if(le===xi||le===Fr)throw le;var Se=an(29,le,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var bs=Wm(!0),ep=Wm(!1),Nn=Q(null),Xn=null;function Fa(e){var t=e.alternate;P(yt,yt.current&1),P(Nn,e),Xn===null&&(t===null||hs.current!==null||t.memoizedState!==null)&&(Xn=e)}function tp(e){if(e.tag===22){if(P(yt,yt.current),P(Nn,e),Xn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Xn=e)}}else Ga()}function Ga(){P(yt,yt.current),P(Nn,Nn.current)}function Sa(e){W(Nn),Xn===e&&(Xn=null),W(yt)}var yt=Q(0);function su(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Rf(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function kc(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Qc={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=un(),c=Va(s);c.payload=t,a!=null&&(c.callback=a),t=$a(e,c,s),t!==null&&(on(t,e,s),wi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=un(),c=Va(s);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=$a(e,c,s),t!==null&&(on(t,e,s),wi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=un(),s=Va(a);s.tag=2,t!=null&&(s.callback=t),t=$a(e,s,a),t!==null&&(on(t,e,a),wi(t,e,a))}};function np(e,t,a,s,c,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,v):t.prototype&&t.prototype.isPureReactComponent?!di(a,s)||!di(c,f):!0}function ap(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&Qc.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}var iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function lp(e){iu(e)}function sp(e){console.error(e)}function ip(e){iu(e)}function ru(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function rp(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Yc(e,t,a){return a=Va(a),a.tag=3,a.payload={element:null},a.callback=function(){ru(e,t)},a}function up(e){return e=Va(e),e.tag=3,e}function op(e,t,a,s){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var f=s.value;e.payload=function(){return c(f)},e.callback=function(){rp(t,a,s)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){rp(t,a,s),typeof c!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function Pb(e,t,a,s,c){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&vi(t,a,c,!0),a=Nn.current,a!==null){switch(a.tag){case 13:return Xn===null?hf():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=c,s===vc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),pf(e,s,c)),!1;case 22:return a.flags|=65536,s===vc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),pf(e,s,c)),!1}throw Error(i(435,a.tag))}return pf(e,s,c),hf(),!1}if(De)return t=Nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,s!==cc&&(e=Error(i(422),{cause:s}),yi(wn(e,a)))):(s!==cc&&(t=Error(i(423),{cause:s}),yi(wn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,s=wn(s,a),c=Yc(e.stateNode,s,c),xc(e,c),at!==4&&(at=2)),!1;var f=Error(i(520),{cause:s});if(f=wn(f,a),zi===null?zi=[f]:zi.push(f),at!==4&&(at=2),t===null)return!0;s=wn(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=Yc(a.stateNode,s,e),xc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Wa===null||!Wa.has(f))))return a.flags|=65536,c&=-c,a.lanes|=c,c=up(c),op(c,e,a,s),xc(a,c),!1}a=a.return}while(a!==null);return!1}var cp=Error(i(461)),bt=!1;function wt(e,t,a,s){t.child=e===null?ep(t,null,a,s):bs(t,e.child,a,s)}function fp(e,t,a,s,c){a=a.render;var f=t.ref;if("ref"in s){var v={};for(var x in s)x!=="ref"&&(v[x]=s[x])}else v=s;return Ol(t),s=_c(e,t,a,v,f,c),x=Nc(),e!==null&&!bt?(jc(e,t,c),wa(e,t,c)):(De&&x&&uc(t),t.flags|=1,wt(e,t,s,c),t.child)}function dp(e,t,a,s,c){if(e===null){var f=a.type;return typeof f=="function"&&!sc(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,hp(e,t,f,s,c)):(e=kr(a.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Jc(e,c)){var v=f.memoizedProps;if(a=a.compare,a=a!==null?a:di,a(v,s)&&e.ref===t.ref)return wa(e,t,c)}return t.flags|=1,e=pa(f,s),e.ref=t.ref,e.return=t,t.child=e}function hp(e,t,a,s,c){if(e!==null){var f=e.memoizedProps;if(di(f,s)&&e.ref===t.ref)if(bt=!1,t.pendingProps=s=f,Jc(e,c))(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,wa(e,t,c)}return Vc(e,t,a,s,c)}function mp(e,t,a){var s=t.pendingProps,c=s.children,f=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=f!==null?f.baseLanes|a:a,e!==null){for(c=t.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;t.childLanes=f&~s}else t.childLanes=0,t.child=null;return pp(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Kr(t,f!==null?f.cachePool:null),f!==null?hm(t,f):wc(),tp(t);else return t.lanes=t.childLanes=536870912,pp(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(Kr(t,f.cachePool),hm(t,f),Ga(),t.memoizedState=null):(e!==null&&Kr(t,null),wc(),Ga());return wt(e,t,c,a),t.child}function pp(e,t,a,s){var c=yc();return c=c===null?null:{parent:pt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Kr(t,null),wc(),tp(t),e!==null&&vi(e,t,s,!0),null}function uu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Vc(e,t,a,s,c){return Ol(t),a=_c(e,t,a,s,void 0,c),s=Nc(),e!==null&&!bt?(jc(e,t,c),wa(e,t,c)):(De&&s&&uc(t),t.flags|=1,wt(e,t,a,c),t.child)}function yp(e,t,a,s,c,f){return Ol(t),t.updateQueue=null,a=pm(t,s,a,c),mm(e),s=Nc(),e!==null&&!bt?(jc(e,t,f),wa(e,t,f)):(De&&s&&uc(t),t.flags|=1,wt(e,t,a,f),t.child)}function vp(e,t,a,s,c){if(Ol(t),t.stateNode===null){var f=us,v=a.contextType;typeof v=="object"&&v!==null&&(f=Ot(v)),f=new a(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Qc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},bc(t),v=a.contextType,f.context=typeof v=="object"&&v!==null?Ot(v):us,f.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(kc(t,a,v,s),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&Qc.enqueueReplaceState(f,f.state,null),Ci(t,s,f,c),Ei(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,N=Ul(a,x);f.props=N;var L=f.context,Y=a.contextType;v=us,typeof Y=="object"&&Y!==null&&(v=Ot(Y));var K=a.getDerivedStateFromProps;Y=typeof K=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Y||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||L!==v)&&ap(t,f,s,v),Ya=!1;var q=t.memoizedState;f.state=q,Ci(t,s,f,c),Ei(),L=t.memoizedState,x||q!==L||Ya?(typeof K=="function"&&(kc(t,a,K,s),L=t.memoizedState),(N=Ya||np(t,a,N,s,q,L,v))?(Y||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=L),f.props=s,f.state=L,f.context=v,s=N):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,gc(e,t),v=t.memoizedProps,Y=Ul(a,v),f.props=Y,K=t.pendingProps,q=f.context,L=a.contextType,N=us,typeof L=="object"&&L!==null&&(N=Ot(L)),x=a.getDerivedStateFromProps,(L=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==K||q!==N)&&ap(t,f,s,N),Ya=!1,q=t.memoizedState,f.state=q,Ci(t,s,f,c),Ei();var z=t.memoizedState;v!==K||q!==z||Ya||e!==null&&e.dependencies!==null&&Vr(e.dependencies)?(typeof x=="function"&&(kc(t,a,x,s),z=t.memoizedState),(Y=Ya||np(t,a,Y,s,q,z,N)||e!==null&&e.dependencies!==null&&Vr(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,z,N),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,z,N)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=z),f.props=s,f.state=z,f.context=N,s=Y):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,uu(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=bs(t,e.child,null,c),t.child=bs(t,null,a,c)):wt(e,t,a,c),t.memoizedState=f.state,e=t.child):e=wa(e,t,c),e}function bp(e,t,a,s){return pi(),t.flags|=256,wt(e,t,a,s),t.child}var $c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(e){return{baseLanes:e,cachePool:sm()}}function Fc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=jn),e}function gp(e,t,a){var s=t.pendingProps,c=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),v&&(c=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(c?Fa(t):Ga(),De){var x=nt,N;if(N=x){e:{for(N=x,x=Gn;N.nodeType!==8;){if(!x){x=null;break e}if(N=Un(N.nextSibling),N===null){x=null;break e}}x=N}x!==null?(t.memoizedState={dehydrated:x,treeContext:Nl!==null?{id:ya,overflow:va}:null,retryLane:536870912,hydrationErrors:null},N=an(18,null,null,0),N.stateNode=x,N.return=t,t.child=N,kt=t,nt=null,N=!0):N=!1}N||Tl(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return Rf(x)?t.lanes=32:t.lanes=536870912,null;Sa(t)}return x=s.children,s=s.fallback,c?(Ga(),c=t.mode,x=ou({mode:"hidden",children:x},c),s=_l(s,c,a,null),x.return=t,s.return=t,x.sibling=s,t.child=x,c=t.child,c.memoizedState=Kc(a),c.childLanes=Fc(e,v,a),t.memoizedState=$c,s):(Fa(t),Gc(t,x))}if(N=e.memoizedState,N!==null&&(x=N.dehydrated,x!==null)){if(f)t.flags&256?(Fa(t),t.flags&=-257,t=Xc(e,t,a)):t.memoizedState!==null?(Ga(),t.child=e.child,t.flags|=128,t=null):(Ga(),c=s.fallback,x=t.mode,s=ou({mode:"visible",children:s.children},x),c=_l(c,x,a,null),c.flags|=2,s.return=t,c.return=t,s.sibling=c,t.child=s,bs(t,e.child,null,a),s=t.child,s.memoizedState=Kc(a),s.childLanes=Fc(e,v,a),t.memoizedState=$c,t=c);else if(Fa(t),Rf(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var L=v.dgst;v=L,s=Error(i(419)),s.stack="",s.digest=v,yi({value:s,source:null,stack:null}),t=Xc(e,t,a)}else if(bt||vi(e,t,a,!1),v=(a&e.childLanes)!==0,bt||v){if(v=Ge,v!==null&&(s=a&-a,s=(s&42)!==0?1:At(s),s=(s&(v.suspendedLanes|a))!==0?0:s,s!==0&&s!==N.retryLane))throw N.retryLane=s,rs(e,s),on(v,e,s),cp;x.data==="$?"||hf(),t=Xc(e,t,a)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,nt=Un(x.nextSibling),kt=t,De=!0,Al=null,Gn=!1,e!==null&&(Cn[_n++]=ya,Cn[_n++]=va,Cn[_n++]=Nl,ya=e.id,va=e.overflow,Nl=t),t=Gc(t,s.children),t.flags|=4096);return t}return c?(Ga(),c=s.fallback,x=t.mode,N=e.child,L=N.sibling,s=pa(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,L!==null?c=pa(L,c):(c=_l(c,x,a,null),c.flags|=2),c.return=t,s.return=t,s.sibling=c,t.child=s,s=c,c=t.child,x=e.child.memoizedState,x===null?x=Kc(a):(N=x.cachePool,N!==null?(L=pt._currentValue,N=N.parent!==L?{parent:L,pool:L}:N):N=sm(),x={baseLanes:x.baseLanes|a,cachePool:N}),c.memoizedState=x,c.childLanes=Fc(e,v,a),t.memoizedState=$c,s):(Fa(t),a=e.child,e=a.sibling,a=pa(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function Gc(e,t){return t=ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ou(e,t){return e=an(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xc(e,t,a){return bs(t,e.child,null,a),e=Gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xp(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),dc(e.return,t,a)}function Zc(e,t,a,s,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=s,f.tail=a,f.tailMode=c)}function Sp(e,t,a){var s=t.pendingProps,c=s.revealOrder,f=s.tail;if(wt(e,t,s.children,a),s=yt.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xp(e,a,t);else if(e.tag===19)xp(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(P(yt,s),c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&su(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),Zc(t,!1,c,a,f);break;case"backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&su(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}Zc(t,!0,a,null,f);break;case"together":Zc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function wa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ia|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(vi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=pa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=pa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vr(e)))}function Ib(e,t,a){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Qa(t,pt,e.memoizedState.cache),pi();break;case 27:case 5:Yn(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Qa(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Fa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?gp(e,t,a):(Fa(t),e=wa(e,t,a),e!==null?e.sibling:null);Fa(t);break;case 19:var c=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(vi(e,t,a,!1),s=(a&t.childLanes)!==0),c){if(s)return Sp(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),P(yt,yt.current),s)break;return null;case 22:case 23:return t.lanes=0,mp(e,t,a);case 24:Qa(t,pt,e.memoizedState.cache)}return wa(e,t,a)}function wp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)bt=!0;else{if(!Jc(e,a)&&(t.flags&128)===0)return bt=!1,Ib(e,t,a);bt=(e.flags&131072)!==0}else bt=!1,De&&(t.flags&1048576)!==0&&Ih(t,Yr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var s=t.elementType,c=s._init;if(s=c(s._payload),t.type=s,typeof s=="function")sc(s)?(e=Ul(s,e),t.tag=1,t=vp(null,t,s,e,a)):(t.tag=0,t=Vc(null,t,s,e,a));else{if(s!=null){if(c=s.$$typeof,c===X){t.tag=11,t=fp(null,t,s,e,a);break e}else if(c===F){t.tag=14,t=dp(null,t,s,e,a);break e}}throw t=ye(s)||s,Error(i(306,t,""))}}return t;case 0:return Vc(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,c=Ul(s,t.pendingProps),vp(e,t,s,c,a);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));s=t.pendingProps;var f=t.memoizedState;c=f.element,gc(e,t),Ci(t,s,null,a);var v=t.memoizedState;if(s=v.cache,Qa(t,pt,s),s!==f.cache&&hc(t,[pt],a,!0),Ei(),s=v.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=bp(e,t,s,a);break e}else if(s!==c){c=wn(Error(i(424)),t),yi(c),t=bp(e,t,s,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=Un(e.firstChild),kt=t,De=!0,Al=null,Gn=!0,a=ep(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(pi(),s===c){t=wa(e,t,a);break e}wt(e,t,s,a)}t=t.child}return t;case 26:return uu(e,t),e===null?(a=N0(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,s=Eu(ce.current).createElement(a),s[Z]=t,s[te]=e,Ct(s,a,e),ut(s),t.stateNode=s):t.memoizedState=N0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yn(t),e===null&&De&&(s=t.stateNode=E0(t.type,t.pendingProps,ce.current),kt=t,Gn=!0,c=nt,nl(t.type)?(Of=c,nt=Un(s.firstChild)):nt=c),wt(e,t,t.pendingProps.children,a),uu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((c=s=nt)&&(s=Ng(s,t.type,t.pendingProps,Gn),s!==null?(t.stateNode=s,kt=t,nt=Un(s.firstChild),Gn=!1,c=!0):c=!1),c||Tl(t)),Yn(t),c=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,s=f.children,jf(c,f)?s=null:v!==null&&jf(c,v)&&(t.flags|=32),t.memoizedState!==null&&(c=_c(e,t,$b,null,null,a),Fi._currentValue=c),uu(e,t),wt(e,t,s,a),t.child;case 6:return e===null&&De&&((e=a=nt)&&(a=jg(a,t.pendingProps,Gn),a!==null?(t.stateNode=a,kt=t,nt=null,e=!0):e=!1),e||Tl(t)),null;case 13:return gp(e,t,a);case 4:return Ue(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=bs(t,null,s,a):wt(e,t,s,a),t.child;case 11:return fp(e,t,t.type,t.pendingProps,a);case 7:return wt(e,t,t.pendingProps,a),t.child;case 8:return wt(e,t,t.pendingProps.children,a),t.child;case 12:return wt(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Qa(t,t.type,s.value),wt(e,t,s.children,a),t.child;case 9:return c=t.type._context,s=t.pendingProps.children,Ol(t),c=Ot(c),s=s(c),t.flags|=1,wt(e,t,s,a),t.child;case 14:return dp(e,t,t.type,t.pendingProps,a);case 15:return hp(e,t,t.type,t.pendingProps,a);case 19:return Sp(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=ou(s,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=pa(e.child,s),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return mp(e,t,a);case 24:return Ol(t),s=Ot(pt),e===null?(c=yc(),c===null&&(c=Ge,f=mc(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=a),c=f),t.memoizedState={parent:s,cache:c},bc(t),Qa(t,pt,c)):((e.lanes&a)!==0&&(gc(e,t),Ci(t,null,null,a),Ei()),c=e.memoizedState,f=t.memoizedState,c.parent!==s?(c={parent:s,cache:s},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Qa(t,pt,s)):(s=f.cache,Qa(t,pt,s),s!==c.cache&&hc(t,[pt],a,!0))),wt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ea(e){e.flags|=4}function Ep(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!O0(t)){if(t=Nn.current,t!==null&&((Ae&4194048)===Ae?Xn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==Xn))throw Si=vc,im;e.flags|=8192}}function cu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fa():536870912,e.lanes|=t,ws|=t)}function Oi(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function Wb(e,t,a){var s=t.pendingProps;switch(oc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ga(pt),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(mi(t)?Ea(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tm())),We(t),null;case 26:return a=t.memoizedState,e===null?(Ea(t),a!==null?(We(t),Ep(t,a)):(We(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Ea(t),We(t),Ep(t,a)):(We(t),t.flags&=-16777217):(e.memoizedProps!==s&&Ea(t),We(t),t.flags&=-16777217),null;case 27:Nt(t),a=ce.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ea(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return We(t),null}e=ie.current,mi(t)?Wh(t):(e=E0(c,s,a),t.stateNode=e,Ea(t))}return We(t),null;case 5:if(Nt(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Ea(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return We(t),null}if(e=ie.current,mi(t))Wh(t);else{switch(c=Eu(ce.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?c.createElement("select",{is:s.is}):c.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?c.createElement(a,{is:s.is}):c.createElement(a)}}e[Z]=t,e[te]=s;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(Ct(e,a,s),a){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ea(t)}}return We(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Ea(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(e=ce.current,mi(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,c=kt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[Z]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||y0(e.nodeValue,a)),e||Tl(t)}else e=Eu(e).createTextNode(s),e[Z]=t,t.stateNode=e}return We(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=mi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[Z]=t}else pi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),c=!1}else c=tm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Sa(t),t):(Sa(t),null)}if(Sa(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=s!==null,e=e!==null&&e.memoizedState!==null,a){s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool);var f=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==c&&(s.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),cu(t,t.updateQueue),We(t),null;case 4:return Ze(),e===null&&wf(t.stateNode.containerInfo),We(t),null;case 10:return ga(t.type),We(t),null;case 19:if(W(yt),c=t.memoizedState,c===null)return We(t),null;if(s=(t.flags&128)!==0,f=c.rendering,f===null)if(s)Oi(c,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=su(e),f!==null){for(t.flags|=128,Oi(c,!1),e=f.updateQueue,t.updateQueue=e,cu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ph(a,e),a=a.sibling;return P(yt,yt.current&1|2),t.child}e=e.sibling}c.tail!==null&&Bt()>hu&&(t.flags|=128,s=!0,Oi(c,!1),t.lanes=4194304)}else{if(!s)if(e=su(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,cu(t,e),Oi(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!De)return We(t),null}else 2*Bt()-c.renderingStartTime>hu&&a!==536870912&&(t.flags|=128,s=!0,Oi(c,!1),t.lanes=4194304);c.isBackwards?(f.sibling=t.child,t.child=f):(e=c.last,e!==null?e.sibling=f:t.child=f,c.last=f)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Bt(),t.sibling=null,e=yt.current,P(yt,s?e&1|2:e&1),t):(We(t),null);case 22:case 23:return Sa(t),Ec(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),a=t.updateQueue,a!==null&&cu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&W(Dl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ga(pt),We(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function eg(e,t){switch(oc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(pt),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Nt(t),null;case 13:if(Sa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(yt),null;case 4:return Ze(),null;case 10:return ga(t.type),null;case 22:case 23:return Sa(t),Ec(),e!==null&&W(Dl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ga(pt),null;case 25:return null;default:return null}}function Cp(e,t){switch(oc(t),t.tag){case 3:ga(pt),Ze();break;case 26:case 27:case 5:Nt(t);break;case 4:Ze();break;case 13:Sa(t);break;case 19:W(yt);break;case 10:ga(t.type);break;case 22:case 23:Sa(t),Ec(),e!==null&&W(Dl);break;case 24:ga(pt)}}function Di(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var c=s.next;a=c;do{if((a.tag&e)===e){s=void 0;var f=a.create,v=a.inst;s=f(),v.destroy=s}a=a.next}while(a!==c)}}catch(x){Ve(t,t.return,x)}}function Xa(e,t,a){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var f=c.next;s=f;do{if((s.tag&e)===e){var v=s.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,c=t;var N=a,L=x;try{L()}catch(Y){Ve(c,N,Y)}}}s=s.next}while(s!==f)}}catch(Y){Ve(t,t.return,Y)}}function _p(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{dm(t,a)}catch(s){Ve(e,e.return,s)}}}function Np(e,t,a){a.props=Ul(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Ve(e,t,s)}}function Mi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(c){Ve(e,t,c)}}function Zn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(c){Ve(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Ve(e,t,c)}else a.current=null}function jp(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(c){Ve(e,e.return,c)}}function Pc(e,t,a){try{var s=e.stateNode;Sg(s,e.type,a,t),s[te]=t}catch(c){Ve(e,e.return,c)}}function Ap(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ap(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&nl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=wu));else if(s!==4&&(s===27&&nl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,a),e=e.sibling;e!==null;)Wc(e,t,a),e=e.sibling}function fu(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&nl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(fu(e,t,a),e=e.sibling;e!==null;)fu(e,t,a),e=e.sibling}function Tp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Ct(t,s,a),t[Z]=e,t[te]=a}catch(f){Ve(e,e.return,f)}}var Ca=!1,ct=!1,ef=!1,Rp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function tg(e,t){if(e=e.containerInfo,_f=Tu,e=Qh(e),Io(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var v=0,x=-1,N=-1,L=0,Y=0,K=e,q=null;t:for(;;){for(var z;K!==a||c!==0&&K.nodeType!==3||(x=v+c),K!==f||s!==0&&K.nodeType!==3||(N=v+s),K.nodeType===3&&(v+=K.nodeValue.length),(z=K.firstChild)!==null;)q=K,K=z;for(;;){if(K===e)break t;if(q===a&&++L===c&&(x=v),q===f&&++Y===s&&(N=v),(z=K.nextSibling)!==null)break;K=q,q=K.parentNode}K=z}a=x===-1||N===-1?null:{start:x,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(Nf={focusedElem:e,selectionRange:a},Tu=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,c=f.memoizedProps,f=f.memoizedState,s=a.stateNode;try{var me=Ul(a.type,c,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(me,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ve(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Tf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function Op(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Za(e,a),s&4&&Di(5,a);break;case 1:if(Za(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){Ve(a,a.return,v)}else{var c=Ul(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Ve(a,a.return,v)}}s&64&&_p(a),s&512&&Mi(a,a.return);break;case 3:if(Za(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{dm(e,t)}catch(v){Ve(a,a.return,v)}}break;case 27:t===null&&s&4&&Tp(a);case 26:case 5:Za(e,a),t===null&&s&4&&jp(a),s&512&&Mi(a,a.return);break;case 12:Za(e,a);break;case 13:Za(e,a),s&4&&Up(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=cg.bind(null,a),Ag(e,a))));break;case 22:if(s=a.memoizedState!==null||Ca,!s){t=t!==null&&t.memoizedState!==null||ct,c=Ca;var f=ct;Ca=s,(ct=t)&&!f?Ja(e,a,(a.subtreeFlags&8772)!==0):Za(e,a),Ca=c,ct=f}break;case 30:break;default:Za(e,a)}}function Dp(e){var t=e.alternate;t!==null&&(e.alternate=null,Dp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,Ft=!1;function _a(e,t,a){for(a=a.child;a!==null;)Mp(e,t,a),a=a.sibling}function Mp(e,t,a){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(pn,a)}catch{}switch(a.tag){case 26:ct||Zn(a,t),_a(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||Zn(a,t);var s=Je,c=Ft;nl(a.type)&&(Je=a.stateNode,Ft=!1),_a(e,t,a),Yi(a.stateNode),Je=s,Ft=c;break;case 5:ct||Zn(a,t);case 6:if(s=Je,c=Ft,Je=null,_a(e,t,a),Je=s,Ft=c,Je!==null)if(Ft)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(a.stateNode)}catch(f){Ve(a,t,f)}else try{Je.removeChild(a.stateNode)}catch(f){Ve(a,t,f)}break;case 18:Je!==null&&(Ft?(e=Je,S0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ji(e)):S0(Je,a.stateNode));break;case 4:s=Je,c=Ft,Je=a.stateNode.containerInfo,Ft=!0,_a(e,t,a),Je=s,Ft=c;break;case 0:case 11:case 14:case 15:ct||Xa(2,a,t),ct||Xa(4,a,t),_a(e,t,a);break;case 1:ct||(Zn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Np(a,t,s)),_a(e,t,a);break;case 21:_a(e,t,a);break;case 22:ct=(s=ct)||a.memoizedState!==null,_a(e,t,a),ct=s;break;default:_a(e,t,a)}}function Up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ji(e)}catch(a){Ve(t,t.return,a)}}function ng(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rp),t;default:throw Error(i(435,e.tag))}}function tf(e,t){var a=ng(e);t.forEach(function(s){var c=fg.bind(null,e,s);a.has(s)||(a.add(s),s.then(c,c))})}function ln(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var c=a[s],f=e,v=t,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(nl(x.type)){Je=x.stateNode,Ft=!1;break e}break;case 5:Je=x.stateNode,Ft=!1;break e;case 3:case 4:Je=x.stateNode.containerInfo,Ft=!0;break e}x=x.return}if(Je===null)throw Error(i(160));Mp(f,v,c),Je=null,Ft=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Lp(t,e),t=t.sibling}var Mn=null;function Lp(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ln(t,e),sn(e),s&4&&(Xa(3,e,e.return),Di(3,e),Xa(5,e,e.return));break;case 1:ln(t,e),sn(e),s&512&&(ct||a===null||Zn(a,a.return)),s&64&&Ca&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var c=Mn;if(ln(t,e),sn(e),s&512&&(ct||a===null||Zn(a,a.return)),s&4){var f=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":f=c.getElementsByTagName("title")[0],(!f||f[rt]||f[Z]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(s),c.head.insertBefore(f,c.querySelector("head > title"))),Ct(f,s,a),f[Z]=e,ut(f),s=f;break e;case"link":var v=T0("link","href",c).get(s+(a.href||""));if(v){for(var x=0;x<v.length;x++)if(f=v[x],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(x,1);break t}}f=c.createElement(s),Ct(f,s,a),c.head.appendChild(f);break;case"meta":if(v=T0("meta","content",c).get(s+(a.content||""))){for(x=0;x<v.length;x++)if(f=v[x],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(x,1);break t}}f=c.createElement(s),Ct(f,s,a),c.head.appendChild(f);break;default:throw Error(i(468,s))}f[Z]=e,ut(f),s=f}e.stateNode=s}else R0(c,e.type,e.stateNode);else e.stateNode=A0(c,s,e.memoizedProps);else f!==s?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,s===null?R0(c,e.type,e.stateNode):A0(c,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Pc(e,e.memoizedProps,a.memoizedProps)}break;case 27:ln(t,e),sn(e),s&512&&(ct||a===null||Zn(a,a.return)),a!==null&&s&4&&Pc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ln(t,e),sn(e),s&512&&(ct||a===null||Zn(a,a.return)),e.flags&32){c=e.stateNode;try{es(c,"")}catch(z){Ve(e,e.return,z)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,Pc(e,c,a!==null?a.memoizedProps:c)),s&1024&&(ef=!0);break;case 6:if(ln(t,e),sn(e),s&4){if(e.stateNode===null)throw Error(i(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(z){Ve(e,e.return,z)}}break;case 3:if(Nu=null,c=Mn,Mn=Cu(t.containerInfo),ln(t,e),Mn=c,sn(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Ji(t.containerInfo)}catch(z){Ve(e,e.return,z)}ef&&(ef=!1,qp(e));break;case 4:s=Mn,Mn=Cu(e.stateNode.containerInfo),ln(t,e),sn(e),Mn=s;break;case 12:ln(t,e),sn(e);break;case 13:ln(t,e),sn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(uf=Bt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tf(e,s)));break;case 22:c=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,L=Ca,Y=ct;if(Ca=L||c,ct=Y||N,ln(t,e),ct=Y,Ca=L,sn(e),s&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||N||Ca||ct||Ll(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(f=N.stateNode,c)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=N.stateNode;var K=N.memoizedProps.style,q=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(z){Ve(N,N.return,z)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=c?"":N.memoizedProps}catch(z){Ve(N,N.return,z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,tf(e,a))));break;case 19:ln(t,e),sn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tf(e,s)));break;case 30:break;case 21:break;default:ln(t,e),sn(e)}}function sn(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(Ap(s)){a=s;break}s=s.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var c=a.stateNode,f=Ic(e);fu(e,f,c);break;case 5:var v=a.stateNode;a.flags&32&&(es(v,""),a.flags&=-33);var x=Ic(e);fu(e,x,v);break;case 3:case 4:var N=a.stateNode.containerInfo,L=Ic(e);Wc(e,L,N);break;default:throw Error(i(161))}}catch(Y){Ve(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Za(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Op(e,t.alternate,t),t=t.sibling}function Ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xa(4,t,t.return),Ll(t);break;case 1:Zn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Np(t,t.return,a),Ll(t);break;case 27:Yi(t.stateNode);case 26:case 5:Zn(t,t.return),Ll(t);break;case 22:t.memoizedState===null&&Ll(t);break;case 30:Ll(t);break;default:Ll(t)}e=e.sibling}}function Ja(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,c=e,f=t,v=f.flags;switch(f.tag){case 0:case 11:case 15:Ja(c,f,a),Di(4,f);break;case 1:if(Ja(c,f,a),s=f,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(L){Ve(s,s.return,L)}if(s=f,c=s.updateQueue,c!==null){var x=s.stateNode;try{var N=c.shared.hiddenCallbacks;if(N!==null)for(c.shared.hiddenCallbacks=null,c=0;c<N.length;c++)fm(N[c],x)}catch(L){Ve(s,s.return,L)}}a&&v&64&&_p(f),Mi(f,f.return);break;case 27:Tp(f);case 26:case 5:Ja(c,f,a),a&&s===null&&v&4&&jp(f),Mi(f,f.return);break;case 12:Ja(c,f,a);break;case 13:Ja(c,f,a),a&&v&4&&Up(c,f);break;case 22:f.memoizedState===null&&Ja(c,f,a),Mi(f,f.return);break;case 30:break;default:Ja(c,f,a)}t=t.sibling}}function nf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&bi(a))}function af(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e))}function Jn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zp(e,t,a,s),t=t.sibling}function zp(e,t,a,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Jn(e,t,a,s),c&2048&&Di(9,t);break;case 1:Jn(e,t,a,s);break;case 3:Jn(e,t,a,s),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e)));break;case 12:if(c&2048){Jn(e,t,a,s),e=t.stateNode;try{var f=t.memoizedProps,v=f.id,x=f.onPostCommit;typeof x=="function"&&x(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ve(t,t.return,N)}}else Jn(e,t,a,s);break;case 13:Jn(e,t,a,s);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?f._visibility&2?Jn(e,t,a,s):Ui(e,t):f._visibility&2?Jn(e,t,a,s):(f._visibility|=2,gs(e,t,a,s,(t.subtreeFlags&10256)!==0)),c&2048&&nf(v,t);break;case 24:Jn(e,t,a,s),c&2048&&af(t.alternate,t);break;default:Jn(e,t,a,s)}}function gs(e,t,a,s,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,v=t,x=a,N=s,L=v.flags;switch(v.tag){case 0:case 11:case 15:gs(f,v,x,N,c),Di(8,v);break;case 23:break;case 22:var Y=v.stateNode;v.memoizedState!==null?Y._visibility&2?gs(f,v,x,N,c):Ui(f,v):(Y._visibility|=2,gs(f,v,x,N,c)),c&&L&2048&&nf(v.alternate,v);break;case 24:gs(f,v,x,N,c),c&&L&2048&&af(v.alternate,v);break;default:gs(f,v,x,N,c)}t=t.sibling}}function Ui(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,c=s.flags;switch(s.tag){case 22:Ui(a,s),c&2048&&nf(s.alternate,s);break;case 24:Ui(a,s),c&2048&&af(s.alternate,s);break;default:Ui(a,s)}t=t.sibling}}var Li=8192;function xs(e){if(e.subtreeFlags&Li)for(e=e.child;e!==null;)Bp(e),e=e.sibling}function Bp(e){switch(e.tag){case 26:xs(e),e.flags&Li&&e.memoizedState!==null&&Qg(Mn,e.memoizedState,e.memoizedProps);break;case 5:xs(e);break;case 3:case 4:var t=Mn;Mn=Cu(e.stateNode.containerInfo),xs(e),Mn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Li,Li=16777216,xs(e),Li=t):xs(e));break;default:xs(e)}}function Hp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function qi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];gt=s,Qp(s,e)}Hp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kp(e),e=e.sibling}function kp(e){switch(e.tag){case 0:case 11:case 15:qi(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:qi(e);break;case 12:qi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,du(e)):qi(e);break;default:qi(e)}}function du(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];gt=s,Qp(s,e)}Hp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),du(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,du(t));break;default:du(t)}e=e.sibling}}function Qp(e,t){for(;gt!==null;){var a=gt;switch(a.tag){case 0:case 11:case 15:Xa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:bi(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,gt=s;else e:for(a=e;gt!==null;){s=gt;var c=s.sibling,f=s.return;if(Dp(s),s===a){gt=null;break e}if(c!==null){c.return=f,gt=c;break e}gt=f}}}var ag={getCacheForType:function(e){var t=Ot(pt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},lg=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ge=null,Ne=null,Ae=0,qe=0,rn=null,Pa=!1,Ss=!1,lf=!1,Na=0,at=0,Ia=0,ql=0,sf=0,jn=0,ws=0,zi=null,Gt=null,rf=!1,uf=0,hu=1/0,mu=null,Wa=null,Et=0,el=null,Es=null,Cs=0,of=0,cf=null,Yp=null,Bi=0,ff=null;function un(){if((Le&2)!==0&&Ae!==0)return Ae&-Ae;if(B.T!==null){var e=fs;return e!==0?e:bf()}return _e()}function Vp(){jn===0&&(jn=(Ae&536870912)===0||De?za():536870912);var e=Nn.current;return e!==null&&(e.flags|=32),jn}function on(e,t,a){(e===Ge&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(_s(e,0),tl(e,Ae,jn,!1)),vn(e,a),((Le&2)===0||e!==Ge)&&(e===Ge&&((Le&2)===0&&(ql|=a),at===4&&tl(e,Ae,jn,!1)),Pn(e))}function $p(e,t,a){if((Le&6)!==0)throw Error(i(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||On(e,t),c=s?rg(e,t):mf(e,t,!0),f=s;do{if(c===0){Ss&&!s&&tl(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!sg(a)){c=mf(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var x=e;c=zi;var N=x.current.memoizedState.isDehydrated;if(N&&(_s(x,v).flags|=256),v=mf(x,v,!1),v!==2){if(lf&&!N){x.errorRecoveryDisabledLanes|=f,ql|=f,c=4;break e}f=Gt,Gt=c,f!==null&&(Gt===null?Gt=f:Gt.push.apply(Gt,f))}c=v}if(f=!1,c!==2)continue}}if(c===1){_s(e,0),tl(e,t,0,!0);break}e:{switch(s=e,f=c,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:tl(s,t,jn,!Pa);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=uf+300-Bt(),10<c)){if(tl(s,t,jn,!Pa),ca(s,0,!0)!==0)break e;s.timeoutHandle=g0(Kp.bind(null,s,a,Gt,mu,rf,t,jn,ql,ws,Pa,f,2,-0,0),c);break e}Kp(s,a,Gt,mu,rf,t,jn,ql,ws,Pa,f,0,-0,0)}}break}while(!0);Pn(e)}function Kp(e,t,a,s,c,f,v,x,N,L,Y,K,q,z){if(e.timeoutHandle=-1,K=t.subtreeFlags,(K&8192||(K&16785408)===16785408)&&(Ki={stylesheets:null,count:0,unsuspend:kg},Bp(t),K=Yg(),K!==null)){e.cancelPendingCommit=K(Ip.bind(null,e,t,f,a,s,c,v,x,N,Y,1,q,z)),tl(e,f,v,!L);return}Ip(e,t,f,a,s,c,v,x,N)}function sg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var c=a[s],f=c.getSnapshot;c=c.value;try{if(!nn(f(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tl(e,t,a,s){t&=~sf,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var c=t;0<c;){var f=31-st(c),v=1<<f;s[f]=-1,c&=~v}a!==0&&gl(e,a,t)}function pu(){return(Le&6)===0?(Hi(0),!1):!0}function df(){if(Ne!==null){if(qe===0)var e=Ne.return;else e=Ne,ba=Rl=null,Ac(e),vs=null,Ti=0,e=Ne;for(;e!==null;)Cp(e.alternate,e),e=e.return;Ne=null}}function _s(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Eg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),df(),Ge=e,Ne=a=pa(e.current,null),Ae=t,qe=0,rn=null,Pa=!1,Ss=On(e,t),lf=!1,ws=jn=sf=ql=Ia=at=0,Gt=zi=null,rf=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var c=31-st(s),f=1<<c;t|=e[c],s&=~f}return Na=t,zr(),a}function Fp(e,t){ge=null,B.H=nu,t===xi||t===Fr?(t=om(),qe=3):t===im?(t=om(),qe=4):qe=t===cp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,Ne===null&&(at=1,ru(e,wn(t,e.current)))}function Gp(){var e=B.H;return B.H=nu,e===null?nu:e}function Xp(){var e=B.A;return B.A=ag,e}function hf(){at=4,Pa||(Ae&4194048)!==Ae&&Nn.current!==null||(Ss=!0),(Ia&134217727)===0&&(ql&134217727)===0||Ge===null||tl(Ge,Ae,jn,!1)}function mf(e,t,a){var s=Le;Le|=2;var c=Gp(),f=Xp();(Ge!==e||Ae!==t)&&(mu=null,_s(e,t)),t=!1;var v=at;e:do try{if(qe!==0&&Ne!==null){var x=Ne,N=rn;switch(qe){case 8:df(),v=6;break e;case 3:case 2:case 9:case 6:Nn.current===null&&(t=!0);var L=qe;if(qe=0,rn=null,Ns(e,x,N,L),a&&Ss){v=0;break e}break;default:L=qe,qe=0,rn=null,Ns(e,x,N,L)}}ig(),v=at;break}catch(Y){Fp(e,Y)}while(!0);return t&&e.shellSuspendCounter++,ba=Rl=null,Le=s,B.H=c,B.A=f,Ne===null&&(Ge=null,Ae=0,zr()),v}function ig(){for(;Ne!==null;)Zp(Ne)}function rg(e,t){var a=Le;Le|=2;var s=Gp(),c=Xp();Ge!==e||Ae!==t?(mu=null,hu=Bt()+500,_s(e,t)):Ss=On(e,t);e:do try{if(qe!==0&&Ne!==null){t=Ne;var f=rn;t:switch(qe){case 1:qe=0,rn=null,Ns(e,t,f,1);break;case 2:case 9:if(rm(f)){qe=0,rn=null,Jp(t);break}t=function(){qe!==2&&qe!==9||Ge!==e||(qe=7),Pn(e)},f.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:rm(f)?(qe=0,rn=null,Jp(t)):(qe=0,rn=null,Ns(e,t,f,7));break;case 5:var v=null;switch(Ne.tag){case 26:v=Ne.memoizedState;case 5:case 27:var x=Ne;if(!v||O0(v)){qe=0,rn=null;var N=x.sibling;if(N!==null)Ne=N;else{var L=x.return;L!==null?(Ne=L,yu(L)):Ne=null}break t}}qe=0,rn=null,Ns(e,t,f,5);break;case 6:qe=0,rn=null,Ns(e,t,f,6);break;case 8:df(),at=6;break e;default:throw Error(i(462))}}ug();break}catch(Y){Fp(e,Y)}while(!0);return ba=Rl=null,B.H=s,B.A=c,Le=a,Ne!==null?0:(Ge=null,Ae=0,zr(),at)}function ug(){for(;Ne!==null&&!ti();)Zp(Ne)}function Zp(e){var t=wp(e.alternate,e,Na);e.memoizedProps=e.pendingProps,t===null?yu(e):Ne=t}function Jp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=yp(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=yp(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Ac(t);default:Cp(a,t),t=Ne=Ph(t,Na),t=wp(a,t,Na)}e.memoizedProps=e.pendingProps,t===null?yu(e):Ne=t}function Ns(e,t,a,s){ba=Rl=null,Ac(t),vs=null,Ti=0;var c=t.return;try{if(Pb(e,c,t,a,Ae)){at=1,ru(e,wn(a,e.current)),Ne=null;return}}catch(f){if(c!==null)throw Ne=c,f;at=1,ru(e,wn(a,e.current)),Ne=null;return}t.flags&32768?(De||s===1?e=!0:Ss||(Ae&536870912)!==0?e=!1:(Pa=e=!0,(s===2||s===9||s===3||s===6)&&(s=Nn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Pp(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){Pp(t,Pa);return}e=t.return;var a=Wb(t.alternate,t,Na);if(a!==null){Ne=a;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);at===0&&(at=5)}function Pp(e,t){do{var a=eg(e.alternate,e);if(a!==null){a.flags&=32767,Ne=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=a}while(e!==null);at=6,Ne=null}function Ip(e,t,a,s,c,f,v,x,N){e.cancelPendingCommit=null;do vu();while(Et!==0);if((Le&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=ac,bl(e,a,f,v,x,N),e===Ge&&(Ne=Ge=null,Ae=0),Es=t,el=e,Cs=a,of=f,cf=c,Yp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dg($n,function(){return a0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null,c=G.p,G.p=2,v=Le,Le|=4;try{tg(e,t,a)}finally{Le=v,G.p=c,B.T=s}}Et=1,Wp(),e0(),t0()}}function Wp(){if(Et===1){Et=0;var e=el,t=Es,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var s=G.p;G.p=2;var c=Le;Le|=4;try{Lp(t,e);var f=Nf,v=Qh(e.containerInfo),x=f.focusedElem,N=f.selectionRange;if(v!==x&&x&&x.ownerDocument&&kh(x.ownerDocument.documentElement,x)){if(N!==null&&Io(x)){var L=N.start,Y=N.end;if(Y===void 0&&(Y=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(Y,x.value.length);else{var K=x.ownerDocument||document,q=K&&K.defaultView||window;if(q.getSelection){var z=q.getSelection(),me=x.textContent.length,fe=Math.min(N.start,me),Ye=N.end===void 0?fe:Math.min(N.end,me);!z.extend&&fe>Ye&&(v=Ye,Ye=fe,fe=v);var M=Hh(x,fe),O=Hh(x,Ye);if(M&&O&&(z.rangeCount!==1||z.anchorNode!==M.node||z.anchorOffset!==M.offset||z.focusNode!==O.node||z.focusOffset!==O.offset)){var U=K.createRange();U.setStart(M.node,M.offset),z.removeAllRanges(),fe>Ye?(z.addRange(U),z.extend(O.node,O.offset)):(U.setEnd(O.node,O.offset),z.addRange(U))}}}}for(K=[],z=x;z=z.parentNode;)z.nodeType===1&&K.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var V=K[x];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Tu=!!_f,Nf=_f=null}finally{Le=c,G.p=s,B.T=a}}e.current=t,Et=2}}function e0(){if(Et===2){Et=0;var e=el,t=Es,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var s=G.p;G.p=2;var c=Le;Le|=4;try{Op(e,t.alternate,t)}finally{Le=c,G.p=s,B.T=a}}Et=3}}function t0(){if(Et===4||Et===3){Et=0,zt();var e=el,t=Es,a=Cs,s=Yp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Et=5:(Et=0,Es=el=null,n0(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Wa=null),ue(a),t=t.stateNode,tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(pn,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=B.T,c=G.p,G.p=2,B.T=null;try{for(var f=e.onRecoverableError,v=0;v<s.length;v++){var x=s[v];f(x.value,{componentStack:x.stack})}}finally{B.T=t,G.p=c}}(Cs&3)!==0&&vu(),Pn(e),c=e.pendingLanes,(a&4194090)!==0&&(c&42)!==0?e===ff?Bi++:(Bi=0,ff=e):Bi=0,Hi(0)}}function n0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bi(t)))}function vu(e){return Wp(),e0(),t0(),a0()}function a0(){if(Et!==5)return!1;var e=el,t=of;of=0;var a=ue(Cs),s=B.T,c=G.p;try{G.p=32>a?32:a,B.T=null,a=cf,cf=null;var f=el,v=Cs;if(Et=0,Es=el=null,Cs=0,(Le&6)!==0)throw Error(i(331));var x=Le;if(Le|=4,kp(f.current),zp(f,f.current,v,a),Le=x,Hi(0,!1),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(pn,f)}catch{}return!0}finally{G.p=c,B.T=s,n0(e,t)}}function l0(e,t,a){t=wn(a,t),t=Yc(e.stateNode,t,2),e=$a(e,t,2),e!==null&&(vn(e,2),Pn(e))}function Ve(e,t,a){if(e.tag===3)l0(e,e,a);else for(;t!==null;){if(t.tag===3){l0(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wa===null||!Wa.has(s))){e=wn(a,e),a=up(2),s=$a(t,a,2),s!==null&&(op(a,s,t,e),vn(s,2),Pn(s));break}}t=t.return}}function pf(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new lg;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(a)||(lf=!0,c.add(a),e=og.bind(null,e,t,a),t.then(e,e))}function og(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(Ae&a)===a&&(at===4||at===3&&(Ae&62914560)===Ae&&300>Bt()-uf?(Le&2)===0&&_s(e,0):sf|=a,ws===Ae&&(ws=0)),Pn(e)}function s0(e,t){t===0&&(t=fa()),e=rs(e,t),e!==null&&(vn(e,t),Pn(e))}function cg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),s0(e,a)}function fg(e,t){var a=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),s0(e,a)}function dg(e,t){return ua(e,t)}var bu=null,js=null,yf=!1,gu=!1,vf=!1,zl=0;function Pn(e){e!==js&&e.next===null&&(js===null?bu=js=e:js=js.next=e),gu=!0,yf||(yf=!0,mg())}function Hi(e,t){if(!vf&&gu){vf=!0;do for(var a=!1,s=bu;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var f=0;else{var v=s.suspendedLanes,x=s.pingedLanes;f=(1<<31-st(42|e)+1)-1,f&=c&~(v&~x),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,o0(s,f))}else f=Ae,f=ca(s,s===Ge?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||On(s,f)||(a=!0,o0(s,f));s=s.next}while(a);vf=!1}}function hg(){i0()}function i0(){gu=yf=!1;var e=0;zl!==0&&(wg()&&(e=zl),zl=0);for(var t=Bt(),a=null,s=bu;s!==null;){var c=s.next,f=r0(s,t);f===0?(s.next=null,a===null?bu=c:a.next=c,c===null&&(js=a)):(a=s,(e!==0||(f&3)!==0)&&(gu=!0)),s=c}Hi(e)}function r0(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var v=31-st(f),x=1<<v,N=c[v];N===-1?((x&a)===0||(x&s)!==0)&&(c[v]=qa(x,t)):N<=t&&(e.expiredLanes|=x),f&=~x}if(t=Ge,a=Ae,a=ca(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&mn(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||On(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&mn(s),ue(a)){case 2:case 8:a=Fe;break;case 32:a=$n;break;case 268435456:a=Ma;break;default:a=$n}return s=u0.bind(null,e),a=ua(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&mn(s),e.callbackPriority=2,e.callbackNode=null,2}function u0(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vu()&&e.callbackNode!==a)return null;var s=Ae;return s=ca(e,e===Ge?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:($p(e,s,t),r0(e,Bt()),e.callbackNode!=null&&e.callbackNode===a?u0.bind(null,e):null)}function o0(e,t){if(vu())return null;$p(e,t,!0)}function mg(){Cg(function(){(Le&6)!==0?ua(Vn,hg):i0()})}function bf(){return zl===0&&(zl=za()),zl}function c0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rr(""+e)}function f0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function pg(e,t,a,s,c){if(t==="submit"&&a&&a.stateNode===c){var f=c0((c[te]||null).action),v=s.submitter;v&&(t=(t=v[te]||null)?c0(t.formAction):v.getAttribute("formAction"),t!==null&&(f=t,v=null));var x=new Ur("action","action",null,s,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(zl!==0){var N=v?f0(c,v):new FormData(c);zc(a,{pending:!0,data:N,method:c.method,action:f},null,N)}}else typeof f=="function"&&(x.preventDefault(),N=v?f0(c,v):new FormData(c),zc(a,{pending:!0,data:N,method:c.method,action:f},f,N))},currentTarget:c}]})}}for(var gf=0;gf<nc.length;gf++){var xf=nc[gf],yg=xf.toLowerCase(),vg=xf[0].toUpperCase()+xf.slice(1);Dn(yg,"on"+vg)}Dn($h,"onAnimationEnd"),Dn(Kh,"onAnimationIteration"),Dn(Fh,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(Ub,"onTransitionRun"),Dn(Lb,"onTransitionStart"),Dn(qb,"onTransitionCancel"),Dn(Gh,"onTransitionEnd"),da("onMouseEnter",["mouseout","mouseover"]),da("onMouseLeave",["mouseout","mouseover"]),da("onPointerEnter",["pointerout","pointerover"]),da("onPointerLeave",["pointerout","pointerover"]),Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),bg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function d0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],c=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var v=s.length-1;0<=v;v--){var x=s[v],N=x.instance,L=x.currentTarget;if(x=x.listener,N!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=L;try{f(c)}catch(Y){iu(Y)}c.currentTarget=null,f=N}else for(v=0;v<s.length;v++){if(x=s[v],N=x.instance,L=x.currentTarget,x=x.listener,N!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=L;try{f(c)}catch(Y){iu(Y)}c.currentTarget=null,f=N}}}}function je(e,t){var a=t[Ie];a===void 0&&(a=t[Ie]=new Set);var s=e+"__bubble";a.has(s)||(h0(t,e,2,!1),a.add(s))}function Sf(e,t,a){var s=0;t&&(s|=4),h0(a,e,s,t)}var xu="_reactListening"+Math.random().toString(36).slice(2);function wf(e){if(!e[xu]){e[xu]=!0,ai.forEach(function(a){a!=="selectionchange"&&(bg.has(a)||Sf(a,!1,e),Sf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xu]||(t[xu]=!0,Sf("selectionchange",!1,t))}}function h0(e,t,a,s){switch(z0(t)){case 2:var c=Kg;break;case 8:c=Fg;break;default:c=qf}a=c.bind(null,t,a,e),c=void 0,!Vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function Ef(e,t,a,s,c){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var x=s.stateNode.containerInfo;if(x===c)break;if(v===4)for(v=s.return;v!==null;){var N=v.tag;if((N===3||N===4)&&v.stateNode.containerInfo===c)return;v=v.return}for(;x!==null;){if(v=Re(x),v===null)return;if(N=v.tag,N===5||N===6||N===26||N===27){s=f=v;continue e}x=x.parentNode}}s=s.return}xh(function(){var L=f,Y=Qo(a),K=[];e:{var q=Xh.get(e);if(q!==void 0){var z=Ur,me=e;switch(e){case"keypress":if(Dr(a)===0)break e;case"keydown":case"keyup":z=db;break;case"focusin":me="focus",z=Go;break;case"focusout":me="blur",z=Go;break;case"beforeblur":case"afterblur":z=Go;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=eb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=pb;break;case $h:case Kh:case Fh:z=ab;break;case Gh:z=vb;break;case"scroll":case"scrollend":z=I1;break;case"wheel":z=gb;break;case"copy":case"cut":case"paste":z=sb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=_h;break;case"toggle":case"beforetoggle":z=Sb}var fe=(t&4)!==0,Ye=!fe&&(e==="scroll"||e==="scrollend"),M=fe?q!==null?q+"Capture":null:q;fe=[];for(var O=L,U;O!==null;){var V=O;if(U=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||U===null||M===null||(V=si(O,M),V!=null&&fe.push(Qi(O,V,U))),Ye)break;O=O.return}0<fe.length&&(q=new z(q,me,null,a,Y),K.push({event:q,listeners:fe}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",q&&a!==ko&&(me=a.relatedTarget||a.fromElement)&&(Re(me)||me[de]))break e;if((z||q)&&(q=Y.window===Y?Y:(q=Y.ownerDocument)?q.defaultView||q.parentWindow:window,z?(me=a.relatedTarget||a.toElement,z=L,me=me?Re(me):null,me!==null&&(Ye=o(me),fe=me.tag,me!==Ye||fe!==5&&fe!==27&&fe!==6)&&(me=null)):(z=null,me=L),z!==me)){if(fe=Eh,V="onMouseLeave",M="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(fe=_h,V="onPointerLeave",M="onPointerEnter",O="pointer"),Ye=z==null?q:xl(z),U=me==null?q:xl(me),q=new fe(V,O+"leave",z,a,Y),q.target=Ye,q.relatedTarget=U,V=null,Re(Y)===L&&(fe=new fe(M,O+"enter",me,a,Y),fe.target=U,fe.relatedTarget=Ye,V=fe),Ye=V,z&&me)t:{for(fe=z,M=me,O=0,U=fe;U;U=As(U))O++;for(U=0,V=M;V;V=As(V))U++;for(;0<O-U;)fe=As(fe),O--;for(;0<U-O;)M=As(M),U--;for(;O--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=As(fe),M=As(M)}fe=null}else fe=null;z!==null&&m0(K,q,z,fe,!1),me!==null&&Ye!==null&&m0(K,Ye,me,fe,!0)}}e:{if(q=L?xl(L):window,z=q.nodeName&&q.nodeName.toLowerCase(),z==="select"||z==="input"&&q.type==="file")var ee=Mh;else if(Oh(q))if(Uh)ee=Ob;else{ee=Tb;var Se=Ab}else z=q.nodeName,!z||z.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?L&&Ho(L.elementType)&&(ee=Mh):ee=Rb;if(ee&&(ee=ee(e,L))){Dh(K,ee,a,Y);break e}Se&&Se(e,q,L),e==="focusout"&&L&&q.type==="number"&&L.memoizedProps.value!=null&&Bo(q,"number",q.value)}switch(Se=L?xl(L):window,e){case"focusin":(Oh(Se)||Se.contentEditable==="true")&&(ls=Se,Wo=L,hi=null);break;case"focusout":hi=Wo=ls=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,Yh(K,a,Y);break;case"selectionchange":if(Mb)break;case"keydown":case"keyup":Yh(K,a,Y)}var le;if(Zo)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else as?Th(e,a)&&(he="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(he="onCompositionStart");he&&(Nh&&a.locale!=="ko"&&(as||he!=="onCompositionStart"?he==="onCompositionEnd"&&as&&(le=Sh()):(ka=Y,$o="value"in ka?ka.value:ka.textContent,as=!0)),Se=Su(L,he),0<Se.length&&(he=new Ch(he,e,null,a,Y),K.push({event:he,listeners:Se}),le?he.data=le:(le=Rh(a),le!==null&&(he.data=le)))),(le=Eb?Cb(e,a):_b(e,a))&&(he=Su(L,"onBeforeInput"),0<he.length&&(Se=new Ch("onBeforeInput","beforeinput",null,a,Y),K.push({event:Se,listeners:he}),Se.data=le)),pg(K,e,L,a,Y)}d0(K,t)})}function Qi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Su(e,t){for(var a=t+"Capture",s=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=si(e,a),c!=null&&s.unshift(Qi(e,c,f)),c=si(e,t),c!=null&&s.push(Qi(e,c,f))),e.tag===3)return s;e=e.return}return[]}function As(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function m0(e,t,a,s,c){for(var f=t._reactName,v=[];a!==null&&a!==s;){var x=a,N=x.alternate,L=x.stateNode;if(x=x.tag,N!==null&&N===s)break;x!==5&&x!==26&&x!==27||L===null||(N=L,c?(L=si(a,f),L!=null&&v.unshift(Qi(a,L,N))):c||(L=si(a,f),L!=null&&v.push(Qi(a,L,N)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var gg=/\r\n?/g,xg=/\u0000|\uFFFD/g;function p0(e){return(typeof e=="string"?e:""+e).replace(gg,`
49
- `).replace(xg,"")}function y0(e,t){return t=p0(t),p0(e)===t}function wu(){}function Qe(e,t,a,s,c,f){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||es(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&es(e,""+s);break;case"className":Ha(e,"class",s);break;case"tabIndex":Ha(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Ha(e,a,s);break;case"style":bh(e,s,f);break;case"data":if(t!=="object"){Ha(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Rr(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"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 f=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",c.name,c,null),Qe(e,t,"formEncType",c.formEncType,c,null),Qe(e,t,"formMethod",c.formMethod,c,null),Qe(e,t,"formTarget",c.formTarget,c,null)):(Qe(e,t,"encType",c.encType,c,null),Qe(e,t,"method",c.method,c,null),Qe(e,t,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Rr(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=wu);break;case"onScroll":s!=null&&je("scroll",e);break;case"onScrollEnd":s!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(a=s.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=Rr(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":je("beforetoggle",e),je("toggle",e),Pl(e,"popover",s);break;case"xlinkActuate":ha(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":ha(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":ha(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":ha(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":ha(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":ha(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":ha(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":ha(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":ha(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Pl(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=J1.get(a)||a,Pl(e,a,s))}}function Cf(e,t,a,s,c,f){switch(a){case"style":bh(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(a=s.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof s=="string"?es(e,s):(typeof s=="number"||typeof s=="bigint")&&es(e,""+s);break;case"onScroll":s!=null&&je("scroll",e);break;case"onScrollEnd":s!=null&&je("scrollend",e);break;case"onClick":s!=null&&(e.onclick=wu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!li.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),t=a.slice(2,c?a.length-7:void 0),f=e[te]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof s=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,c);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):Pl(e,a,s)}}}function Ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var s=!1,c=!1,f;for(f in a)if(a.hasOwnProperty(f)){var v=a[f];if(v!=null)switch(f){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Qe(e,t,f,v,a,null)}}c&&Qe(e,t,"srcSet",a.srcSet,a,null),s&&Qe(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var x=f=v=c=null,N=null,L=null;for(s in a)if(a.hasOwnProperty(s)){var Y=a[s];if(Y!=null)switch(s){case"name":c=Y;break;case"type":v=Y;break;case"checked":N=Y;break;case"defaultChecked":L=Y;break;case"value":f=Y;break;case"defaultValue":x=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Qe(e,t,s,Y,a,null)}}mh(e,f,x,N,L,v,c,!1),Ar(e);return;case"select":je("invalid",e),s=v=f=null;for(c in a)if(a.hasOwnProperty(c)&&(x=a[c],x!=null))switch(c){case"value":f=x;break;case"defaultValue":v=x;break;case"multiple":s=x;default:Qe(e,t,c,x,a,null)}t=f,a=v,e.multiple=!!s,t!=null?Wl(e,!!s,t,!1):a!=null&&Wl(e,!!s,a,!0);return;case"textarea":je("invalid",e),f=c=s=null;for(v in a)if(a.hasOwnProperty(v)&&(x=a[v],x!=null))switch(v){case"value":s=x;break;case"defaultValue":c=x;break;case"children":f=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:Qe(e,t,v,x,a,null)}yh(e,s,c,f),Ar(e);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(s=a[N],s!=null))switch(N){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Qe(e,t,N,s,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(s=0;s<ki.length;s++)je(ki[s],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in a)if(a.hasOwnProperty(L)&&(s=a[L],s!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Qe(e,t,L,s,a,null)}return;default:if(Ho(t)){for(Y in a)a.hasOwnProperty(Y)&&(s=a[Y],s!==void 0&&Cf(e,t,Y,s,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null&&Qe(e,t,x,s,a,null))}function Sg(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,v=null,x=null,N=null,L=null,Y=null;for(z in a){var K=a[z];if(a.hasOwnProperty(z)&&K!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":N=K;default:s.hasOwnProperty(z)||Qe(e,t,z,null,s,K)}}for(var q in s){var z=s[q];if(K=a[q],s.hasOwnProperty(q)&&(z!=null||K!=null))switch(q){case"type":f=z;break;case"name":c=z;break;case"checked":L=z;break;case"defaultChecked":Y=z;break;case"value":v=z;break;case"defaultValue":x=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(i(137,t));break;default:z!==K&&Qe(e,t,q,z,s,K)}}zo(e,v,x,N,L,Y,f,c);return;case"select":z=v=x=q=null;for(f in a)if(N=a[f],a.hasOwnProperty(f)&&N!=null)switch(f){case"value":break;case"multiple":z=N;default:s.hasOwnProperty(f)||Qe(e,t,f,null,s,N)}for(c in s)if(f=s[c],N=a[c],s.hasOwnProperty(c)&&(f!=null||N!=null))switch(c){case"value":q=f;break;case"defaultValue":x=f;break;case"multiple":v=f;default:f!==N&&Qe(e,t,c,f,s,N)}t=x,a=v,s=z,q!=null?Wl(e,!!a,q,!1):!!s!=!!a&&(t!=null?Wl(e,!!a,t,!0):Wl(e,!!a,a?[]:"",!1));return;case"textarea":z=q=null;for(x in a)if(c=a[x],a.hasOwnProperty(x)&&c!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Qe(e,t,x,null,s,c)}for(v in s)if(c=s[v],f=a[v],s.hasOwnProperty(v)&&(c!=null||f!=null))switch(v){case"value":q=c;break;case"defaultValue":z=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==f&&Qe(e,t,v,c,s,f)}ph(e,q,z);return;case"option":for(var me in a)if(q=a[me],a.hasOwnProperty(me)&&q!=null&&!s.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:Qe(e,t,me,null,s,q)}for(N in s)if(q=s[N],z=a[N],s.hasOwnProperty(N)&&q!==z&&(q!=null||z!=null))switch(N){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:Qe(e,t,N,q,s,z)}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 fe in a)q=a[fe],a.hasOwnProperty(fe)&&q!=null&&!s.hasOwnProperty(fe)&&Qe(e,t,fe,null,s,q);for(L in s)if(q=s[L],z=a[L],s.hasOwnProperty(L)&&q!==z&&(q!=null||z!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:Qe(e,t,L,q,s,z)}return;default:if(Ho(t)){for(var Ye in a)q=a[Ye],a.hasOwnProperty(Ye)&&q!==void 0&&!s.hasOwnProperty(Ye)&&Cf(e,t,Ye,void 0,s,q);for(Y in s)q=s[Y],z=a[Y],!s.hasOwnProperty(Y)||q===z||q===void 0&&z===void 0||Cf(e,t,Y,q,s,z);return}}for(var M in a)q=a[M],a.hasOwnProperty(M)&&q!=null&&!s.hasOwnProperty(M)&&Qe(e,t,M,null,s,q);for(K in s)q=s[K],z=a[K],!s.hasOwnProperty(K)||q===z||q==null&&z==null||Qe(e,t,K,q,s,z)}var _f=null,Nf=null;function Eu(e){return e.nodeType===9?e:e.ownerDocument}function v0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function b0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Af=null;function wg(){var e=window.event;return e&&e.type==="popstate"?e===Af?!1:(Af=e,!0):(Af=null,!1)}var g0=typeof setTimeout=="function"?setTimeout:void 0,Eg=typeof clearTimeout=="function"?clearTimeout:void 0,x0=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof x0<"u"?function(e){return x0.resolve(null).then(e).catch(_g)}:g0;function _g(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function S0(e,t){var a=t,s=0,c=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<s&&8>s){a=s;var v=e.ownerDocument;if(a&1&&Yi(v.documentElement),a&2&&Yi(v.body),a&4)for(a=v.head,Yi(a),v=a.firstChild;v;){var x=v.nextSibling,N=v.nodeName;v[rt]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&v.rel.toLowerCase()==="stylesheet"||a.removeChild(v),v=x}}if(c===0){e.removeChild(f),Ji(t);return}c--}else a==="$"||a==="$?"||a==="$!"?c++:s=a.charCodeAt(0)-48;else s=0;a=f}while(a);Ji(t)}function Tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Tf(a),Rt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Ng(e,t,a,s){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[rt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Un(e.nextSibling),e===null)break}return null}function jg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Un(e.nextSibling),e===null))return null;return e}function Rf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ag(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Of=null;function w0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function E0(e,t,a){switch(t=Eu(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Yi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var An=new Map,C0=new Set;function Cu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=G.d;G.d={f:Tg,r:Rg,D:Og,C:Dg,L:Mg,m:Ug,X:qg,S:Lg,M:zg};function Tg(){var e=ja.f(),t=pu();return e||t}function Rg(e){var t=tn(e);t!==null&&t.tag===5&&t.type==="form"?$m(t):ja.r(e)}var Ts=typeof document>"u"?null:document;function _0(e,t,a){var s=Ts;if(s&&typeof t=="string"&&t){var c=Sn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),C0.has(c)||(C0.add(c),e={rel:e,crossOrigin:a,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),Ct(t,"link",e),ut(t),s.head.appendChild(t)))}}function Og(e){ja.D(e),_0("dns-prefetch",e,null)}function Dg(e,t){ja.C(e,t),_0("preconnect",e,t)}function Mg(e,t,a){ja.L(e,t,a);var s=Ts;if(s&&e&&t){var c='link[rel="preload"][as="'+Sn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Sn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Sn(a.imageSizes)+'"]')):c+='[href="'+Sn(e)+'"]';var f=c;switch(t){case"style":f=Rs(e);break;case"script":f=Os(e)}An.has(f)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),An.set(f,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Vi(f))||t==="script"&&s.querySelector($i(f))||(t=s.createElement("link"),Ct(t,"link",e),ut(t),s.head.appendChild(t)))}}function Ug(e,t){ja.m(e,t);var a=Ts;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Sn(s)+'"][href="'+Sn(e)+'"]',f=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Os(e)}if(!An.has(f)&&(e=b({rel:"modulepreload",href:e},t),An.set(f,e),a.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($i(f)))return}s=a.createElement("link"),Ct(s,"link",e),ut(s),a.head.appendChild(s)}}}function Lg(e,t,a){ja.S(e,t,a);var s=Ts;if(s&&e){var c=Ba(s).hoistableStyles,f=Rs(e);t=t||"default";var v=c.get(f);if(!v){var x={loading:0,preload:null};if(v=s.querySelector(Vi(f)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=An.get(f))&&Df(e,a);var N=v=s.createElement("link");ut(N),Ct(N,"link",e),N._p=new Promise(function(L,Y){N.onload=L,N.onerror=Y}),N.addEventListener("load",function(){x.loading|=1}),N.addEventListener("error",function(){x.loading|=2}),x.loading|=4,_u(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:x},c.set(f,v)}}}function qg(e,t){ja.X(e,t);var a=Ts;if(a&&e){var s=Ba(a).hoistableScripts,c=Os(e),f=s.get(c);f||(f=a.querySelector($i(c)),f||(e=b({src:e,async:!0},t),(t=An.get(c))&&Mf(e,t),f=a.createElement("script"),ut(f),Ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(c,f))}}function zg(e,t){ja.M(e,t);var a=Ts;if(a&&e){var s=Ba(a).hoistableScripts,c=Os(e),f=s.get(c);f||(f=a.querySelector($i(c)),f||(e=b({src:e,async:!0,type:"module"},t),(t=An.get(c))&&Mf(e,t),f=a.createElement("script"),ut(f),Ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(c,f))}}function N0(e,t,a,s){var c=(c=ce.current)?Cu(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Rs(a.href),a=Ba(c).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Rs(a.href);var f=Ba(c).hoistableStyles,v=f.get(e);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,v),(f=c.querySelector(Vi(e)))&&!f._p&&(v.instance=f,v.state.loading=5),An.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},An.set(e,a),f||Bg(c,e,a,v.state))),t&&s===null)throw Error(i(528,""));return v}if(t&&s!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Os(a),a=Ba(c).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rs(e){return'href="'+Sn(e)+'"'}function Vi(e){return'link[rel="stylesheet"]['+e+"]"}function j0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Bg(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Ct(t,"link",a),ut(t),e.head.appendChild(t))}function Os(e){return'[src="'+Sn(e)+'"]'}function $i(e){return"script[async]"+e}function A0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Sn(a.href)+'"]');if(s)return t.instance=s,ut(s),s;var c=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ut(s),Ct(s,"style",c),_u(s,a.precedence,e),t.instance=s;case"stylesheet":c=Rs(a.href);var f=e.querySelector(Vi(c));if(f)return t.state.loading|=4,t.instance=f,ut(f),f;s=j0(a),(c=An.get(c))&&Df(s,c),f=(e.ownerDocument||e).createElement("link"),ut(f);var v=f;return v._p=new Promise(function(x,N){v.onload=x,v.onerror=N}),Ct(f,"link",s),t.state.loading|=4,_u(f,a.precedence,e),t.instance=f;case"script":return f=Os(a.src),(c=e.querySelector($i(f)))?(t.instance=c,ut(c),c):(s=a,(c=An.get(f))&&(s=b({},a),Mf(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),ut(c),Ct(c,"link",s),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,_u(s,a.precedence,e));return t.instance}function _u(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,f=c,v=0;v<s.length;v++){var x=s[v];if(x.dataset.precedence===t)f=x;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Df(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nu=null;function T0(e,t,a){if(Nu===null){var s=new Map,c=Nu=new Map;c.set(a,s)}else c=Nu,s=c.get(a),s||(s=new Map,c.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var f=a[c];if(!(f[rt]||f[Z]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(t)||"";v=e+v;var x=s.get(v);x?x.push(f):s.set(v,[f])}}return s}function R0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Hg(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function O0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ki=null;function kg(){}function Qg(e,t,a){if(Ki===null)throw Error(i(475));var s=Ki;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=Rs(a.href),f=e.querySelector(Vi(c));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ju.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=f,ut(f);return}f=e.ownerDocument||e,a=j0(a),(c=An.get(c))&&Df(a,c),f=f.createElement("link"),ut(f);var v=f;v._p=new Promise(function(x,N){v.onload=x,v.onerror=N}),Ct(f,"link",a),t.instance=f}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(s.count++,t=ju.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function Yg(){if(Ki===null)throw Error(i(475));var e=Ki;return e.stylesheets&&e.count===0&&Uf(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Uf(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function ju(){if(this.count--,this.count===0){if(this.stylesheets)Uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Au=null;function Uf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Au=new Map,t.forEach(Vg,e),Au=null,ju.call(e))}function Vg(e,t){if(!(t.state.loading&4)){var a=Au.get(e);if(a)var s=a.get(null);else{a=new Map,Au.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var v=c[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),s=v)}s&&a.set(null,s)}c=t.instance,v=c.getAttribute("data-precedence"),f=a.get(v)||s,f===s&&a.set(null,c),a.set(v,c),this.count++,s=ju.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Fi={$$typeof:R,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function $g(e,t,a,s,c,f,v,x){this.tag=1,this.containerInfo=e,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=Kn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kn(0),this.hiddenUpdates=Kn(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function D0(e,t,a,s,c,f,v,x,N,L,Y,K){return e=new $g(e,t,a,v,x,N,L,K),t=1,f===!0&&(t|=24),f=an(3,null,null,t),e.current=f,f.stateNode=e,t=mc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:a,cache:t},bc(f),e}function M0(e){return e?(e=us,e):us}function U0(e,t,a,s,c,f){c=M0(c),s.context===null?s.context=c:s.pendingContext=c,s=Va(t),s.payload={element:a},f=f===void 0?null:f,f!==null&&(s.callback=f),a=$a(e,s,t),a!==null&&(on(a,e,t),wi(a,e,t))}function L0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lf(e,t){L0(e,t),(e=e.alternate)&&L0(e,t)}function q0(e){if(e.tag===13){var t=rs(e,67108864);t!==null&&on(t,e,67108864),Lf(e,67108864)}}var Tu=!0;function Kg(e,t,a,s){var c=B.T;B.T=null;var f=G.p;try{G.p=2,qf(e,t,a,s)}finally{G.p=f,B.T=c}}function Fg(e,t,a,s){var c=B.T;B.T=null;var f=G.p;try{G.p=8,qf(e,t,a,s)}finally{G.p=f,B.T=c}}function qf(e,t,a,s){if(Tu){var c=zf(s);if(c===null)Ef(e,t,s,Ru,a),B0(e,s);else if(Xg(c,e,t,a,s))s.stopPropagation();else if(B0(e,s),t&4&&-1<Gg.indexOf(e)){for(;c!==null;){var f=tn(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=He(f.pendingLanes);if(v!==0){var x=f;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var N=1<<31-st(v);x.entanglements[1]|=N,v&=~N}Pn(f),(Le&6)===0&&(hu=Bt()+500,Hi(0))}}break;case 13:x=rs(f,2),x!==null&&on(x,f,2),pu(),Lf(f,2)}if(f=zf(s),f===null&&Ef(e,t,s,Ru,a),f===c)break;c=f}c!==null&&s.stopPropagation()}else Ef(e,t,s,null,a)}}function zf(e){return e=Qo(e),Bf(e)}var Ru=null;function Bf(e){if(Ru=null,e=Re(e),e!==null){var t=o(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ru=e,null}function z0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(oa()){case Vn:return 2;case Fe:return 8;case $n:case yl:return 32;case Ma:return 268435456;default:return 32}default:return 32}}var Hf=!1,al=null,ll=null,sl=null,Gi=new Map,Xi=new Map,il=[],Gg="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 B0(e,t){switch(e){case"focusin":case"focusout":al=null;break;case"dragenter":case"dragleave":ll=null;break;case"mouseover":case"mouseout":sl=null;break;case"pointerover":case"pointerout":Gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(t.pointerId)}}function Zi(e,t,a,s,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:f,targetContainers:[c]},t!==null&&(t=tn(t),t!==null&&q0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Xg(e,t,a,s,c){switch(t){case"focusin":return al=Zi(al,e,t,a,s,c),!0;case"dragenter":return ll=Zi(ll,e,t,a,s,c),!0;case"mouseover":return sl=Zi(sl,e,t,a,s,c),!0;case"pointerover":var f=c.pointerId;return Gi.set(f,Zi(Gi.get(f)||null,e,t,a,s,c)),!0;case"gotpointercapture":return f=c.pointerId,Xi.set(f,Zi(Xi.get(f)||null,e,t,a,s,c)),!0}return!1}function H0(e){var t=Re(e.target);if(t!==null){var a=o(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Ht(e.priority,function(){if(a.tag===13){var s=un();s=At(s);var c=rs(a,s);c!==null&&on(c,a,s),Lf(a,s)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zf(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);ko=s,a.target.dispatchEvent(s),ko=null}else return t=tn(a),t!==null&&q0(t),e.blockedOn=a,!1;t.shift()}return!0}function k0(e,t,a){Ou(e)&&a.delete(t)}function Zg(){Hf=!1,al!==null&&Ou(al)&&(al=null),ll!==null&&Ou(ll)&&(ll=null),sl!==null&&Ou(sl)&&(sl=null),Gi.forEach(k0),Xi.forEach(k0)}function Du(e,t){e.blockedOn===t&&(e.blockedOn=null,Hf||(Hf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zg)))}var Mu=null;function Q0(e){Mu!==e&&(Mu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Mu===e&&(Mu=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],c=e[t+2];if(typeof s!="function"){if(Bf(s||a)===null)continue;break}var f=tn(a);f!==null&&(e.splice(t,3),t-=3,zc(f,{pending:!0,data:c,method:a.method,action:s},s,c))}}))}function Ji(e){function t(N){return Du(N,e)}al!==null&&Du(al,e),ll!==null&&Du(ll,e),sl!==null&&Du(sl,e),Gi.forEach(t),Xi.forEach(t);for(var a=0;a<il.length;a++){var s=il[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<il.length&&(a=il[0],a.blockedOn===null);)H0(a),a.blockedOn===null&&il.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var c=a[s],f=a[s+1],v=c[te]||null;if(typeof f=="function")v||Q0(a);else if(v){var x=null;if(f&&f.hasAttribute("formAction")){if(c=f,v=f[te]||null)x=v.formAction;else if(Bf(c)!==null)continue}else x=v.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),Q0(a)}}}function kf(e){this._internalRoot=e}Uu.prototype.render=kf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,s=un();U0(a,s,e,t,null,null)},Uu.prototype.unmount=kf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;U0(e.current,2,null,e,null,null),pu(),t[de]=null}};function Uu(e){this._internalRoot=e}Uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_e();e={blockedOn:null,target:e,priority:t};for(var a=0;a<il.length&&t!==0&&t<il[a].priority;a++);il.splice(a,0,e),a===0&&H0(e)}};var Y0=l.version;if(Y0!=="19.1.0")throw Error(i(527,Y0,"19.1.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=y(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Jg={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{pn=Lu.inject(Jg),tt=Lu}catch{}}return Ii.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,s="",c=lp,f=sp,v=ip,x=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=D0(e,1,!1,null,null,a,s,c,f,v,x,null),e[de]=t.current,wf(e),new kf(t)},Ii.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var s=!1,c="",f=lp,v=sp,x=ip,N=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),t=D0(e,1,!0,t,a??null,s,c,f,v,x,N,L),t.context=M0(null),a=t.current,s=un(),s=At(s),c=Va(s),c.callback=null,$a(a,c,s),a=s,t.current.lanes=a,vn(t,a),Pn(t),e[de]=t.current,wf(e),new Uu(t)},Ii.version="19.1.0",Ii}var I0;function sx(){if(I0)return Vf.exports;I0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Vf.exports=lx(),Vf.exports}var ix=sx();const rx=po(ix);var Wi={},W0;function ux(){if(W0)return Wi;W0=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.parse=d,Wi.serialize=p;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,o=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function d(w,C){const E=new o,T=w.length;if(T<2)return E;const j=(C==null?void 0:C.decode)||b;let _=0;do{const D=w.indexOf("=",_);if(D===-1)break;const R=w.indexOf(";",_),X=R===-1?T:R;if(D>X){_=w.lastIndexOf(";",D-1)+1;continue}const $=m(w,_,D),k=y(w,D,$),F=w.slice($,k);if(E[F]===void 0){let I=m(w,D+1,X),ae=y(w,X,I);const pe=j(w.slice(I,ae));E[F]=pe}_=X+1}while(_<T);return E}function m(w,C,E){do{const T=w.charCodeAt(C);if(T!==32&&T!==9)return C}while(++C<E);return E}function y(w,C,E){for(;C>E;){const T=w.charCodeAt(--C);if(T!==32&&T!==9)return C+1}return E}function p(w,C,E){const T=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const j=T(C);if(!l.test(j))throw new TypeError(`argument val is invalid: ${C}`);let _=w+"="+j;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!S(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function b(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function S(w){return u.call(w)==="[object Date]"}return Wi}ux();var ey="popstate";function ox(n={}){function l(i,u){let{pathname:o,search:d,hash:m}=i.location;return ud("",{pathname:o,search:d,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(i,u){return typeof u=="string"?u:ur(u)}return fx(l,r,null,n)}function et(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function qn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function cx(){return Math.random().toString(36).substring(2,10)}function ty(n,l){return{usr:n.state,key:n.key,idx:l}}function ud(n,l,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?$s(l):l,state:r,key:l&&l.key||i||cx()}}function ur({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function $s(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function fx(n,l,r,i={}){let{window:u=document.defaultView,v5Compat:o=!1}=i,d=u.history,m="POP",y=null,p=b();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function b(){return(d.state||{idx:null}).idx}function S(){m="POP";let j=b(),_=j==null?null:j-p;p=j,y&&y({action:m,location:T.location,delta:_})}function w(j,_){m="PUSH";let D=ud(T.location,j,_);p=b()+1;let R=ty(D,p),X=T.createHref(D);try{d.pushState(R,"",X)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;u.location.assign(X)}o&&y&&y({action:m,location:T.location,delta:1})}function C(j,_){m="REPLACE";let D=ud(T.location,j,_);p=b();let R=ty(D,p),X=T.createHref(D);d.replaceState(R,"",X),o&&y&&y({action:m,location:T.location,delta:0})}function E(j){return dx(j)}let T={get action(){return m},get location(){return n(u,d)},listen(j){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(ey,S),y=j,()=>{u.removeEventListener(ey,S),y=null}},createHref(j){return l(u,j)},createURL:E,encodeLocation(j){let _=E(j);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:C,go(j){return d.go(j)}};return T}function dx(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),et(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:ur(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function lv(n,l,r="/"){return hx(n,l,r,!1)}function hx(n,l,r,i){let u=typeof l=="string"?$s(l):l,o=Oa(u.pathname||"/",r);if(o==null)return null;let d=sv(n);mx(d);let m=null;for(let y=0;m==null&&y<d.length;++y){let p=_x(o);m=Ex(d[y],p,i)}return m}function sv(n,l=[],r=[],i=""){let u=(o,d,m)=>{let y={relativePath:m===void 0?o.path||"":m,caseSensitive:o.caseSensitive===!0,childrenIndex:d,route:o};y.relativePath.startsWith("/")&&(et(y.relativePath.startsWith(i),`Absolute route path "${y.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(i.length));let p=Ra([i,y.relativePath]),b=r.concat(y);o.children&&o.children.length>0&&(et(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),sv(o.children,l,b,p)),!(o.path==null&&!o.index)&&l.push({path:p,score:Sx(p,o.index),routesMeta:b})};return n.forEach((o,d)=>{var m;if(o.path===""||!((m=o.path)!=null&&m.includes("?")))u(o,d);else for(let y of iv(o.path))u(o,d,y)}),l}function iv(n){let l=n.split("/");if(l.length===0)return[];let[r,...i]=l,u=r.endsWith("?"),o=r.replace(/\?$/,"");if(i.length===0)return u?[o,""]:[o];let d=iv(i.join("/")),m=[];return m.push(...d.map(y=>y===""?o:[o,y].join("/"))),u&&m.push(...d),m.map(y=>n.startsWith("/")&&y===""?"/":y)}function mx(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:wx(l.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var px=/^:[\w-]+$/,yx=3,vx=2,bx=1,gx=10,xx=-2,ny=n=>n==="*";function Sx(n,l){let r=n.split("/"),i=r.length;return r.some(ny)&&(i+=xx),l&&(i+=vx),r.filter(u=>!ny(u)).reduce((u,o)=>u+(px.test(o)?yx:o===""?bx:gx),i)}function wx(n,l){return n.length===l.length&&n.slice(0,-1).every((i,u)=>i===l[u])?n[n.length-1]-l[l.length-1]:0}function Ex(n,l,r=!1){let{routesMeta:i}=n,u={},o="/",d=[];for(let m=0;m<i.length;++m){let y=i[m],p=m===i.length-1,b=o==="/"?l:l.slice(o.length)||"/",S=or({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},b),w=y.route;if(!S&&p&&r&&!i[i.length-1].route.index&&(S=or({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!S)return null;Object.assign(u,S.params),d.push({params:u,pathname:Ra([o,S.pathname]),pathnameBase:Tx(Ra([o,S.pathnameBase])),route:w}),S.pathnameBase!=="/"&&(o=Ra([o,S.pathnameBase]))}return d}function or(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=Cx(n.path,n.caseSensitive,n.end),u=l.match(r);if(!u)return null;let o=u[0],d=o.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:i.reduce((p,{paramName:b,isOptional:S},w)=>{if(b==="*"){let E=m[w]||"";d=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const C=m[w];return S&&!C?p[b]=void 0:p[b]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:d,pattern:n}}function Cx(n,l=!1,r=!0){qn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,y)=>(i.push({paramName:m,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),i]}function _x(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return qn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function Oa(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function Nx(n,l="/"){let{pathname:r,search:i="",hash:u=""}=typeof n=="string"?$s(n):n;return{pathname:r?r.startsWith("/")?r:jx(r,l):l,search:Rx(i),hash:Ox(u)}}function jx(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function Gf(n,l,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ax(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function rv(n){let l=Ax(n);return l.map((r,i)=>i===l.length-1?r.pathname:r.pathnameBase)}function uv(n,l,r,i=!1){let u;typeof n=="string"?u=$s(n):(u={...n},et(!u.pathname||!u.pathname.includes("?"),Gf("?","pathname","search",u)),et(!u.pathname||!u.pathname.includes("#"),Gf("#","pathname","hash",u)),et(!u.search||!u.search.includes("#"),Gf("#","search","hash",u)));let o=n===""||u.pathname==="",d=o?"/":u.pathname,m;if(d==null)m=r;else{let S=l.length-1;if(!i&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),S-=1;u.pathname=w.join("/")}m=S>=0?l[S]:"/"}let y=Nx(u,m),p=d&&d!=="/"&&d.endsWith("/"),b=(o||d===".")&&r.endsWith("/");return!y.pathname.endsWith("/")&&(p||b)&&(y.pathname+="/"),y}var Ra=n=>n.join("/").replace(/\/\/+/g,"/"),Tx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Rx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Ox=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Dx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var ov=["POST","PUT","PATCH","DELETE"];new Set(ov);var Mx=["GET",...ov];new Set(Mx);var Ks=g.createContext(null);Ks.displayName="DataRouter";var yo=g.createContext(null);yo.displayName="DataRouterState";var cv=g.createContext({isTransitioning:!1});cv.displayName="ViewTransition";var Ux=g.createContext(new Map);Ux.displayName="Fetchers";var Lx=g.createContext(null);Lx.displayName="Await";var na=g.createContext(null);na.displayName="Navigation";var dr=g.createContext(null);dr.displayName="Location";var aa=g.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Od=g.createContext(null);Od.displayName="RouteError";function qx(n,{relative:l}={}){et(hr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=g.useContext(na),{hash:u,pathname:o,search:d}=mr(n,{relative:l}),m=o;return r!=="/"&&(m=o==="/"?r:Ra([r,o])),i.createHref({pathname:m,search:d,hash:u})}function hr(){return g.useContext(dr)!=null}function Yt(){return et(hr(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(dr).location}var fv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function dv(n){g.useContext(na).static||g.useLayoutEffect(n)}function Lt(){let{isDataRoute:n}=g.useContext(aa);return n?Jx():zx()}function zx(){et(hr(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(Ks),{basename:l,navigator:r}=g.useContext(na),{matches:i}=g.useContext(aa),{pathname:u}=Yt(),o=JSON.stringify(rv(i)),d=g.useRef(!1);return dv(()=>{d.current=!0}),g.useCallback((y,p={})=>{if(qn(d.current,fv),!d.current)return;if(typeof y=="number"){r.go(y);return}let b=uv(y,JSON.parse(o),u,p.relative==="path");n==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Ra([l,b.pathname])),(p.replace?r.replace:r.push)(b,p.state,p)},[l,r,o,u,n])}g.createContext(null);function Bx(){let{matches:n}=g.useContext(aa),l=n[n.length-1];return l?l.params:{}}function mr(n,{relative:l}={}){let{matches:r}=g.useContext(aa),{pathname:i}=Yt(),u=JSON.stringify(rv(r));return g.useMemo(()=>uv(n,JSON.parse(u),i,l==="path"),[n,u,i,l])}function Hx(n,l){return hv(n,l)}function hv(n,l,r,i){var D;et(hr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:o}=g.useContext(na),{matches:d}=g.useContext(aa),m=d[d.length-1],y=m?m.params:{},p=m?m.pathname:"/",b=m?m.pathnameBase:"/",S=m&&m.route;{let R=S&&S.path||"";mv(p,!S||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.
50
-
51
- Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let w=Yt(),C;if(l){let R=typeof l=="string"?$s(l):l;et(b==="/"||((D=R.pathname)==null?void 0:D.startsWith(b)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${R.pathname}" was given in the \`location\` prop.`),C=R}else C=w;let E=C.pathname||"/",T=E;if(b!=="/"){let R=b.replace(/^\//,"").split("/");T="/"+E.replace(/^\//,"").split("/").slice(R.length).join("/")}let j=!o&&r&&r.matches&&r.matches.length>0?r.matches:lv(n,{pathname:T});qn(S||j!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),qn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.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.`);let _=$x(j&&j.map(R=>Object.assign({},R,{params:Object.assign({},y,R.params),pathname:Ra([b,u.encodeLocation?u.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?b:Ra([b,u.encodeLocation?u.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),d,r,i);return l&&_?g.createElement(dr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...C},navigationType:"POP"}},_):_}function kx(){let n=Zx(),l=Dx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},l),r?g.createElement("pre",{style:u},r):null,d)}var Qx=g.createElement(kx,null),Yx=class extends g.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){console.error("React Router caught the following error during render",n,l)}render(){return this.state.error!==void 0?g.createElement(aa.Provider,{value:this.props.routeContext},g.createElement(Od.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Vx({routeContext:n,match:l,children:r}){let i=g.useContext(Ks);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),g.createElement(aa.Provider,{value:n},r)}function $x(n,l=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let u=n,o=r==null?void 0:r.errors;if(o!=null){let y=u.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);et(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),u=u.slice(0,Math.min(u.length,y+1))}let d=!1,m=-1;if(r)for(let y=0;y<u.length;y++){let p=u[y];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(m=y),p.route.id){let{loaderData:b,errors:S}=r,w=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!S||S[p.route.id]===void 0);if(p.route.lazy||w){d=!0,m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}return u.reduceRight((y,p,b)=>{let S,w=!1,C=null,E=null;r&&(S=o&&p.route.id?o[p.route.id]:void 0,C=p.route.errorElement||Qx,d&&(m<0&&b===0?(mv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===b&&(w=!0,E=p.route.hydrateFallbackElement||null)));let T=l.concat(u.slice(0,b+1)),j=()=>{let _;return S?_=C:w?_=E:p.route.Component?_=g.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=y,g.createElement(Vx,{match:p,routeContext:{outlet:y,matches:T,isDataRoute:r!=null},children:_})};return r&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?g.createElement(Yx,{location:r.location,revalidation:r.revalidation,component:C,error:S,children:j(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):j()},null)}function Dd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kx(n){let l=g.useContext(Ks);return et(l,Dd(n)),l}function Fx(n){let l=g.useContext(yo);return et(l,Dd(n)),l}function Gx(n){let l=g.useContext(aa);return et(l,Dd(n)),l}function Md(n){let l=Gx(n),r=l.matches[l.matches.length-1];return et(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Xx(){return Md("useRouteId")}function Zx(){var i;let n=g.useContext(Od),l=Fx("useRouteError"),r=Md("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[r]}function Jx(){let{router:n}=Kx("useNavigate"),l=Md("useNavigate"),r=g.useRef(!1);return dv(()=>{r.current=!0}),g.useCallback(async(u,o={})=>{qn(r.current,fv),r.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:l,...o}))},[n,l])}var ay={};function mv(n,l,r){!l&&!ay[n]&&(ay[n]=!0,qn(!1,r))}g.memo(Px);function Px({routes:n,future:l,state:r}){return hv(n,void 0,r,l)}function sr(n){et(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ix({basename:n="/",children:l=null,location:r,navigationType:i="POP",navigator:u,static:o=!1}){et(!hr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),m=g.useMemo(()=>({basename:d,navigator:u,static:o,future:{}}),[d,u,o]);typeof r=="string"&&(r=$s(r));let{pathname:y="/",search:p="",hash:b="",state:S=null,key:w="default"}=r,C=g.useMemo(()=>{let E=Oa(y,d);return E==null?null:{location:{pathname:E,search:p,hash:b,state:S,key:w},navigationType:i}},[d,y,p,b,S,w,i]);return qn(C!=null,`<Router basename="${d}"> is not able to match the URL "${y}${p}${b}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:g.createElement(na.Provider,{value:m},g.createElement(dr.Provider,{children:l,value:C}))}function Wx({children:n,location:l}){return Hx(od(n),l)}function od(n,l=[]){let r=[];return g.Children.forEach(n,(i,u)=>{if(!g.isValidElement(i))return;let o=[...l,u];if(i.type===g.Fragment){r.push.apply(r,od(i.props.children,o));return}et(i.type===sr,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),et(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=od(i.props.children,o)),r.push(d)}),r}var Vu="get",$u="application/x-www-form-urlencoded";function vo(n){return n!=null&&typeof n.tagName=="string"}function e2(n){return vo(n)&&n.tagName.toLowerCase()==="button"}function t2(n){return vo(n)&&n.tagName.toLowerCase()==="form"}function n2(n){return vo(n)&&n.tagName.toLowerCase()==="input"}function a2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function l2(n,l){return n.button===0&&(!l||l==="_self")&&!a2(n)}function cd(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((l,r)=>{let i=n[r];return l.concat(Array.isArray(i)?i.map(u=>[r,u]):[[r,i]])},[]))}function s2(n,l){let r=cd(n);return l&&l.forEach((i,u)=>{r.has(u)||l.getAll(u).forEach(o=>{r.append(u,o)})}),r}var qu=null;function i2(){if(qu===null)try{new FormData(document.createElement("form"),0),qu=!1}catch{qu=!0}return qu}var r2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xf(n){return n!=null&&!r2.has(n)?(qn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$u}"`),null):n}function u2(n,l){let r,i,u,o,d;if(t2(n)){let m=n.getAttribute("action");i=m?Oa(m,l):null,r=n.getAttribute("method")||Vu,u=Xf(n.getAttribute("enctype"))||$u,o=new FormData(n)}else if(e2(n)||n2(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=n.getAttribute("formaction")||m.getAttribute("action");if(i=y?Oa(y,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Vu,u=Xf(n.getAttribute("formenctype"))||Xf(m.getAttribute("enctype"))||$u,o=new FormData(m,n),!i2()){let{name:p,type:b,value:S}=n;if(b==="image"){let w=p?`${p}.`:"";o.append(`${w}x`,"0"),o.append(`${w}y`,"0")}else p&&o.append(p,S)}}else{if(vo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Vu,i=null,u=$u,d=n}return o&&u==="text/plain"&&(d=o,o=void 0),{action:i,method:r.toLowerCase(),encType:u,formData:o,body:d}}function Ud(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}async function o2(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function c2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function f2(n,l,r){let i=await Promise.all(n.map(async u=>{let o=l.routes[u.route.id];if(o){let d=await o2(o,r);return d.links?d.links():[]}return[]}));return p2(i.flat(1).filter(c2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function ly(n,l,r,i,u,o){let d=(y,p)=>r[p]?y.route.id!==r[p].route.id:!0,m=(y,p)=>{var b;return r[p].pathname!==y.pathname||((b=r[p].route.path)==null?void 0:b.endsWith("*"))&&r[p].params["*"]!==y.params["*"]};return o==="assets"?l.filter((y,p)=>d(y,p)||m(y,p)):o==="data"?l.filter((y,p)=>{var S;let b=i.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(d(y,p)||m(y,p))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((S=r[0])==null?void 0:S.params)||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function d2(n,l,{includeHydrateFallback:r}={}){return h2(n.map(i=>{let u=l.routes[i.route.id];if(!u)return[];let o=[u.module];return u.clientActionModule&&(o=o.concat(u.clientActionModule)),u.clientLoaderModule&&(o=o.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(o=o.concat(u.hydrateFallbackModule)),u.imports&&(o=o.concat(u.imports)),o}).flat(1))}function h2(n){return[...new Set(n)]}function m2(n){let l={},r=Object.keys(n).sort();for(let i of r)l[i]=n[i];return l}function p2(n,l){let r=new Set;return new Set(l),n.reduce((i,u)=>{let o=JSON.stringify(m2(u));return r.has(o)||(r.add(o),i.push({key:o,link:u})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var y2=new Set([100,101,204,205]);function v2(n,l){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":l&&Oa(r.pathname,l)==="/"?r.pathname=`${l.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function pv(){let n=g.useContext(Ks);return Ud(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function b2(){let n=g.useContext(yo);return Ud(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ld=g.createContext(void 0);Ld.displayName="FrameworkContext";function yv(){let n=g.useContext(Ld);return Ud(n,"You must render this element inside a <HydratedRouter> element"),n}function g2(n,l){let r=g.useContext(Ld),[i,u]=g.useState(!1),[o,d]=g.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:b,onTouchStart:S}=l,w=g.useRef(null);g.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let T=_=>{_.forEach(D=>{d(D.isIntersecting)})},j=new IntersectionObserver(T,{threshold:.5});return w.current&&j.observe(w.current),()=>{j.disconnect()}}},[n]),g.useEffect(()=>{if(i){let T=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(T)}}},[i]);let C=()=>{u(!0)},E=()=>{u(!1),d(!1)};return r?n!=="intent"?[o,w,{}]:[o,w,{onFocus:er(m,C),onBlur:er(y,E),onMouseEnter:er(p,C),onMouseLeave:er(b,E),onTouchStart:er(S,C)}]:[!1,w,{}]}function er(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function x2({page:n,...l}){let{router:r}=pv(),i=g.useMemo(()=>lv(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?g.createElement(w2,{page:n,matches:i,...l}):null}function S2(n){let{manifest:l,routeModules:r}=yv(),[i,u]=g.useState([]);return g.useEffect(()=>{let o=!1;return f2(n,l,r).then(d=>{o||u(d)}),()=>{o=!0}},[n,l,r]),i}function w2({page:n,matches:l,...r}){let i=Yt(),{manifest:u,routeModules:o}=yv(),{basename:d}=pv(),{loaderData:m,matches:y}=b2(),p=g.useMemo(()=>ly(n,l,y,u,i,"data"),[n,l,y,u,i]),b=g.useMemo(()=>ly(n,l,y,u,i,"assets"),[n,l,y,u,i]),S=g.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,T=!1;if(l.forEach(_=>{var R;let D=u.routes[_.route.id];!D||!D.hasLoader||(!p.some(X=>X.route.id===_.route.id)&&_.route.id in m&&((R=o[_.route.id])!=null&&R.shouldRevalidate)||D.hasClientLoader?T=!0:E.add(_.route.id))}),E.size===0)return[];let j=v2(n,d);return T&&E.size>0&&j.searchParams.set("_routes",l.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[j.pathname+j.search]},[d,m,i,u,p,l,n,o]),w=g.useMemo(()=>d2(b,u),[b,u]),C=S2(b);return g.createElement(g.Fragment,null,S.map(E=>g.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>g.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),C.map(({key:E,link:T})=>g.createElement("link",{key:E,...T})))}function E2(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var vv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vv&&(window.__reactRouterVersion="7.6.0")}catch{}function C2({basename:n,children:l,window:r}){let i=g.useRef();i.current==null&&(i.current=ox({window:r,v5Compat:!0}));let u=i.current,[o,d]=g.useState({action:u.action,location:u.location}),m=g.useCallback(y=>{g.startTransition(()=>d(y))},[d]);return g.useLayoutEffect(()=>u.listen(m),[u,m]),g.createElement(Ix,{basename:n,children:l,location:o.location,navigationType:o.action,navigator:u})}var bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gv=g.forwardRef(function({onClick:l,discover:r="render",prefetch:i="none",relative:u,reloadDocument:o,replace:d,state:m,target:y,to:p,preventScrollReset:b,viewTransition:S,...w},C){let{basename:E}=g.useContext(na),T=typeof p=="string"&&bv.test(p),j,_=!1;if(typeof p=="string"&&T&&(j=p,vv))try{let ae=new URL(window.location.href),pe=p.startsWith("//")?new URL(ae.protocol+p):new URL(p),Be=Oa(pe.pathname,E);pe.origin===ae.origin&&Be!=null?p=Be+pe.search+pe.hash:_=!0}catch{qn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=qx(p,{relative:u}),[R,X,$]=g2(i,w),k=A2(p,{replace:d,state:m,target:y,preventScrollReset:b,relative:u,viewTransition:S});function F(ae){l&&l(ae),ae.defaultPrevented||k(ae)}let I=g.createElement("a",{...w,...$,href:j||D,onClick:_||o?l:F,ref:E2(C,X),target:y,"data-discover":!T&&r==="render"?"true":void 0});return R&&!T?g.createElement(g.Fragment,null,I,g.createElement(x2,{page:D})):I});gv.displayName="Link";var _2=g.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:i="",end:u=!1,style:o,to:d,viewTransition:m,children:y,...p},b){let S=mr(d,{relative:p.relative}),w=Yt(),C=g.useContext(yo),{navigator:E,basename:T}=g.useContext(na),j=C!=null&&U2(S)&&m===!0,_=E.encodeLocation?E.encodeLocation(S).pathname:S.pathname,D=w.pathname,R=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(D=D.toLowerCase(),R=R?R.toLowerCase():null,_=_.toLowerCase()),R&&T&&(R=Oa(R,T)||R);const X=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let $=D===_||!u&&D.startsWith(_)&&D.charAt(X)==="/",k=R!=null&&(R===_||!u&&R.startsWith(_)&&R.charAt(_.length)==="/"),F={isActive:$,isPending:k,isTransitioning:j},I=$?l:void 0,ae;typeof i=="function"?ae=i(F):ae=[i,$?"active":null,k?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let pe=typeof o=="function"?o(F):o;return g.createElement(gv,{...p,"aria-current":I,className:ae,ref:b,style:pe,to:d,viewTransition:m},typeof y=="function"?y(F):y)});_2.displayName="NavLink";var N2=g.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:i,replace:u,state:o,method:d=Vu,action:m,onSubmit:y,relative:p,preventScrollReset:b,viewTransition:S,...w},C)=>{let E=D2(),T=M2(m,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&bv.test(m),D=R=>{if(y&&y(R),R.defaultPrevented)return;R.preventDefault();let X=R.nativeEvent.submitter,$=(X==null?void 0:X.getAttribute("formmethod"))||d;E(X||R.currentTarget,{fetcherKey:l,method:$,navigate:r,replace:u,state:o,relative:p,preventScrollReset:b,viewTransition:S})};return g.createElement("form",{ref:C,method:j,action:T,onSubmit:i?y:D,...w,"data-discover":!_&&n==="render"?"true":void 0})});N2.displayName="Form";function j2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xv(n){let l=g.useContext(Ks);return et(l,j2(n)),l}function A2(n,{target:l,replace:r,state:i,preventScrollReset:u,relative:o,viewTransition:d}={}){let m=Lt(),y=Yt(),p=mr(n,{relative:o});return g.useCallback(b=>{if(l2(b,l)){b.preventDefault();let S=r!==void 0?r:ur(y)===ur(p);m(n,{replace:S,state:i,preventScrollReset:u,relative:o,viewTransition:d})}},[y,m,p,r,i,l,n,u,o,d])}function T2(n){qn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let l=g.useRef(cd(n)),r=g.useRef(!1),i=Yt(),u=g.useMemo(()=>s2(i.search,r.current?null:l.current),[i.search]),o=Lt(),d=g.useCallback((m,y)=>{const p=cd(typeof m=="function"?m(u):m);r.current=!0,o("?"+p,y)},[o,u]);return[u,d]}var R2=0,O2=()=>`__${String(++R2)}__`;function D2(){let{router:n}=xv("useSubmit"),{basename:l}=g.useContext(na),r=Xx();return g.useCallback(async(i,u={})=>{let{action:o,method:d,encType:m,formData:y,body:p}=u2(i,l);if(u.navigate===!1){let b=u.fetcherKey||O2();await n.fetch(b,r,u.action||o,{preventScrollReset:u.preventScrollReset,formData:y,body:p,formMethod:u.method||d,formEncType:u.encType||m,flushSync:u.flushSync})}else await n.navigate(u.action||o,{preventScrollReset:u.preventScrollReset,formData:y,body:p,formMethod:u.method||d,formEncType:u.encType||m,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,l,r])}function M2(n,{relative:l}={}){let{basename:r}=g.useContext(na),i=g.useContext(aa);et(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),o={...mr(n||".",{relative:l})},d=Yt();if(n==null){o.search=d.search;let m=new URLSearchParams(o.search),y=m.getAll("index");if(y.some(b=>b==="")){m.delete("index"),y.filter(S=>S).forEach(S=>m.append("index",S));let b=m.toString();o.search=b?`?${b}`:""}}return(!n||n===".")&&u.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Ra([r,o.pathname])),ur(o)}function U2(n,l={}){let r=g.useContext(cv);et(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=xv("useViewTransitionState"),u=mr(n,{relative:l.relative});if(!r.isTransitioning)return!1;let o=Oa(r.currentLocation.pathname,i)||r.currentLocation.pathname,d=Oa(r.nextLocation.pathname,i)||r.nextLocation.pathname;return or(u.pathname,d)!=null||or(u.pathname,o)!=null}[...y2];var Sv=av();const L2=po(Sv);function fd(n,l){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fd(n,l)}function Fs(n,l){n.prototype=Object.create(l.prototype),n.prototype.constructor=n,fd(n,l)}var Gs=function(){function n(){this.listeners=[]}var l=n.prototype;return l.subscribe=function(i){var u=this,o=i||function(){};return this.listeners.push(o),this.onSubscribe(),function(){u.listeners=u.listeners.filter(function(d){return d!==o}),u.onUnsubscribe()}},l.hasListeners=function(){return this.listeners.length>0},l.onSubscribe=function(){},l.onUnsubscribe=function(){},n}();function we(){return we=Object.assign?Object.assign.bind():function(n){for(var l=1;l<arguments.length;l++){var r=arguments[l];for(var i in r)({}).hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},we.apply(null,arguments)}var eo=typeof window>"u";function _t(){}function q2(n,l){return typeof n=="function"?n(l):n}function dd(n){return typeof n=="number"&&n>=0&&n!==1/0}function to(n){return Array.isArray(n)?n:[n]}function wv(n,l){return Math.max(n+(l||0)-Date.now(),0)}function Ku(n,l,r){return pr(n)?typeof l=="function"?we({},r,{queryKey:n,queryFn:l}):we({},l,{queryKey:n}):n}function z2(n,l,r){return pr(n)?typeof l=="function"?we({},r,{mutationKey:n,mutationFn:l}):we({},l,{mutationKey:n}):typeof n=="function"?we({},l,{mutationFn:n}):we({},n)}function ul(n,l,r){return pr(n)?[we({},l,{queryKey:n}),r]:[n||{},l]}function B2(n,l){if(n===!0&&l===!0||n==null&&l==null)return"all";if(n===!1&&l===!1)return"none";var r=n??!l;return r?"active":"inactive"}function sy(n,l){var r=n.active,i=n.exact,u=n.fetching,o=n.inactive,d=n.predicate,m=n.queryKey,y=n.stale;if(pr(m)){if(i){if(l.queryHash!==qd(m,l.options))return!1}else if(!no(l.queryKey,m))return!1}var p=B2(r,o);if(p==="none")return!1;if(p!=="all"){var b=l.isActive();if(p==="active"&&!b||p==="inactive"&&b)return!1}return!(typeof y=="boolean"&&l.isStale()!==y||typeof u=="boolean"&&l.isFetching()!==u||d&&!d(l))}function iy(n,l){var r=n.exact,i=n.fetching,u=n.predicate,o=n.mutationKey;if(pr(o)){if(!l.options.mutationKey)return!1;if(r){if(Bl(l.options.mutationKey)!==Bl(o))return!1}else if(!no(l.options.mutationKey,o))return!1}return!(typeof i=="boolean"&&l.state.status==="loading"!==i||u&&!u(l))}function qd(n,l){var r=(l==null?void 0:l.queryKeyHashFn)||Bl;return r(n)}function Bl(n){var l=to(n);return H2(l)}function H2(n){return JSON.stringify(n,function(l,r){return hd(r)?Object.keys(r).sort().reduce(function(i,u){return i[u]=r[u],i},{}):r})}function no(n,l){return Ev(to(n),to(l))}function Ev(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?!Object.keys(l).some(function(r){return!Ev(n[r],l[r])}):!1}function ao(n,l){if(n===l)return n;var r=Array.isArray(n)&&Array.isArray(l);if(r||hd(n)&&hd(l)){for(var i=r?n.length:Object.keys(n).length,u=r?l:Object.keys(l),o=u.length,d=r?[]:{},m=0,y=0;y<o;y++){var p=r?y:u[y];d[p]=ao(n[p],l[p]),d[p]===n[p]&&m++}return i===o&&m===i?n:d}return l}function k2(n,l){if(n&&!l||l&&!n)return!1;for(var r in n)if(n[r]!==l[r])return!1;return!0}function hd(n){if(!ry(n))return!1;var l=n.constructor;if(typeof l>"u")return!0;var r=l.prototype;return!(!ry(r)||!r.hasOwnProperty("isPrototypeOf"))}function ry(n){return Object.prototype.toString.call(n)==="[object Object]"}function pr(n){return typeof n=="string"||Array.isArray(n)}function Q2(n){return new Promise(function(l){setTimeout(l,n)})}function uy(n){Promise.resolve().then(n).catch(function(l){return setTimeout(function(){throw l})})}function Cv(){if(typeof AbortController=="function")return new AbortController}var Y2=function(n){Fs(l,n);function l(){var i;return i=n.call(this)||this,i.setup=function(u){var o;if(!eo&&((o=window)!=null&&o.addEventListener)){var d=function(){return u()};return window.addEventListener("visibilitychange",d,!1),window.addEventListener("focus",d,!1),function(){window.removeEventListener("visibilitychange",d),window.removeEventListener("focus",d)}}},i}var r=l.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var u;(u=this.cleanup)==null||u.call(this),this.cleanup=void 0}},r.setEventListener=function(u){var o,d=this;this.setup=u,(o=this.cleanup)==null||o.call(this),this.cleanup=u(function(m){typeof m=="boolean"?d.setFocused(m):d.onFocus()})},r.setFocused=function(u){this.focused=u,u&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(u){u()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},l}(Gs),ir=new Y2,V2=function(n){Fs(l,n);function l(){var i;return i=n.call(this)||this,i.setup=function(u){var o;if(!eo&&((o=window)!=null&&o.addEventListener)){var d=function(){return u()};return window.addEventListener("online",d,!1),window.addEventListener("offline",d,!1),function(){window.removeEventListener("online",d),window.removeEventListener("offline",d)}}},i}var r=l.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var u;(u=this.cleanup)==null||u.call(this),this.cleanup=void 0}},r.setEventListener=function(u){var o,d=this;this.setup=u,(o=this.cleanup)==null||o.call(this),this.cleanup=u(function(m){typeof m=="boolean"?d.setOnline(m):d.onOnline()})},r.setOnline=function(u){this.online=u,u&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(u){u()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},l}(Gs),Fu=new V2;function $2(n){return Math.min(1e3*Math.pow(2,n),3e4)}function lo(n){return typeof(n==null?void 0:n.cancel)=="function"}var _v=function(l){this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent};function Gu(n){return n instanceof _v}var Nv=function(l){var r=this,i=!1,u,o,d,m;this.abort=l.abort,this.cancel=function(w){return u==null?void 0:u(w)},this.cancelRetry=function(){i=!0},this.continueRetry=function(){i=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(w,C){d=w,m=C});var y=function(C){r.isResolved||(r.isResolved=!0,l.onSuccess==null||l.onSuccess(C),o==null||o(),d(C))},p=function(C){r.isResolved||(r.isResolved=!0,l.onError==null||l.onError(C),o==null||o(),m(C))},b=function(){return new Promise(function(C){o=C,r.isPaused=!0,l.onPause==null||l.onPause()}).then(function(){o=void 0,r.isPaused=!1,l.onContinue==null||l.onContinue()})},S=function w(){if(!r.isResolved){var C;try{C=l.fn()}catch(E){C=Promise.reject(E)}u=function(T){if(!r.isResolved&&(p(new _v(T)),r.abort==null||r.abort(),lo(C)))try{C.cancel()}catch{}},r.isTransportCancelable=lo(C),Promise.resolve(C).then(y).catch(function(E){var T,j;if(!r.isResolved){var _=(T=l.retry)!=null?T:3,D=(j=l.retryDelay)!=null?j:$2,R=typeof D=="function"?D(r.failureCount,E):D,X=_===!0||typeof _=="number"&&r.failureCount<_||typeof _=="function"&&_(r.failureCount,E);if(i||!X){p(E);return}r.failureCount++,l.onFail==null||l.onFail(r.failureCount,E),Q2(R).then(function(){if(!ir.isFocused()||!Fu.isOnline())return b()}).then(function(){i?p(E):w()})}})}};S()},K2=function(){function n(){this.queue=[],this.transactions=0,this.notifyFn=function(r){r()},this.batchNotifyFn=function(r){r()}}var l=n.prototype;return l.batch=function(i){var u;this.transactions++;try{u=i()}finally{this.transactions--,this.transactions||this.flush()}return u},l.schedule=function(i){var u=this;this.transactions?this.queue.push(i):uy(function(){u.notifyFn(i)})},l.batchCalls=function(i){var u=this;return function(){for(var o=arguments.length,d=new Array(o),m=0;m<o;m++)d[m]=arguments[m];u.schedule(function(){i.apply(void 0,d)})}},l.flush=function(){var i=this,u=this.queue;this.queue=[],u.length&&uy(function(){i.batchNotifyFn(function(){u.forEach(function(o){i.notifyFn(o)})})})},l.setNotifyFunction=function(i){this.notifyFn=i},l.setBatchNotifyFunction=function(i){this.batchNotifyFn=i},n}(),Pe=new K2,jv=console;function so(){return jv}function F2(n){jv=n}var G2=function(){function n(r){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=r.meta,this.scheduleGc()}var l=n.prototype;return l.setOptions=function(i){var u;this.options=we({},this.defaultOptions,i),this.meta=i==null?void 0:i.meta,this.cacheTime=Math.max(this.cacheTime||0,(u=this.options.cacheTime)!=null?u:5*60*1e3)},l.setDefaultOptions=function(i){this.defaultOptions=i},l.scheduleGc=function(){var i=this;this.clearGcTimeout(),dd(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){i.optionalRemove()},this.cacheTime))},l.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},l.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},l.setData=function(i,u){var o,d,m=this.state.data,y=q2(i,m);return(o=(d=this.options).isDataEqual)!=null&&o.call(d,m,y)?y=m:this.options.structuralSharing!==!1&&(y=ao(m,y)),this.dispatch({data:y,type:"success",dataUpdatedAt:u==null?void 0:u.updatedAt}),y},l.setState=function(i,u){this.dispatch({type:"setState",state:i,setStateOptions:u})},l.cancel=function(i){var u,o=this.promise;return(u=this.retryer)==null||u.cancel(i),o?o.then(_t).catch(_t):Promise.resolve()},l.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},l.reset=function(){this.destroy(),this.setState(this.initialState)},l.isActive=function(){return this.observers.some(function(i){return i.options.enabled!==!1})},l.isFetching=function(){return this.state.isFetching},l.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(i){return i.getCurrentResult().isStale})},l.isStaleByTime=function(i){return i===void 0&&(i=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!wv(this.state.dataUpdatedAt,i)},l.onFocus=function(){var i,u=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});u&&u.refetch(),(i=this.retryer)==null||i.continue()},l.onOnline=function(){var i,u=this.observers.find(function(o){return o.shouldFetchOnReconnect()});u&&u.refetch(),(i=this.retryer)==null||i.continue()},l.addObserver=function(i){this.observers.indexOf(i)===-1&&(this.observers.push(i),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:i}))},l.removeObserver=function(i){this.observers.indexOf(i)!==-1&&(this.observers=this.observers.filter(function(u){return u!==i}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:i}))},l.getObserversCount=function(){return this.observers.length},l.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},l.fetch=function(i,u){var o=this,d,m,y;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(u!=null&&u.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var p;return(p=this.retryer)==null||p.continueRetry(),this.promise}}if(i&&this.setOptions(i),!this.options.queryFn){var b=this.observers.find(function(D){return D.options.queryFn});b&&this.setOptions(b.options)}var S=to(this.queryKey),w=Cv(),C={queryKey:S,pageParam:void 0,meta:this.meta};Object.defineProperty(C,"signal",{enumerable:!0,get:function(){if(w)return o.abortSignalConsumed=!0,w.signal}});var E=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(C)):Promise.reject("Missing queryFn")},T={fetchOptions:u,options:this.options,queryKey:S,state:this.state,fetchFn:E,meta:this.meta};if((d=this.options.behavior)!=null&&d.onFetch){var j;(j=this.options.behavior)==null||j.onFetch(T)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((m=T.fetchOptions)==null?void 0:m.meta)){var _;this.dispatch({type:"fetch",meta:(_=T.fetchOptions)==null?void 0:_.meta})}return this.retryer=new Nv({fn:T.fetchFn,abort:w==null||(y=w.abort)==null?void 0:y.bind(w),onSuccess:function(R){o.setData(R),o.cache.config.onSuccess==null||o.cache.config.onSuccess(R,o),o.cacheTime===0&&o.optionalRemove()},onError:function(R){Gu(R)&&R.silent||o.dispatch({type:"error",error:R}),Gu(R)||(o.cache.config.onError==null||o.cache.config.onError(R,o),so().error(R)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay}),this.promise=this.retryer.promise,this.promise},l.dispatch=function(i){var u=this;this.state=this.reducer(this.state,i),Pe.batch(function(){u.observers.forEach(function(o){o.onQueryUpdate(i)}),u.cache.notify({query:u,type:"queryUpdated",action:i})})},l.getDefaultState=function(i){var u=typeof i.initialData=="function"?i.initialData():i.initialData,o=typeof i.initialData<"u",d=o?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0,m=typeof u<"u";return{data:u,dataUpdateCount:0,dataUpdatedAt:m?d??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:m?"success":"idle"}},l.reducer=function(i,u){var o,d;switch(u.type){case"failed":return we({},i,{fetchFailureCount:i.fetchFailureCount+1});case"pause":return we({},i,{isPaused:!0});case"continue":return we({},i,{isPaused:!1});case"fetch":return we({},i,{fetchFailureCount:0,fetchMeta:(o=u.meta)!=null?o:null,isFetching:!0,isPaused:!1},!i.dataUpdatedAt&&{error:null,status:"loading"});case"success":return we({},i,{data:u.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:(d=u.dataUpdatedAt)!=null?d:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var m=u.error;return Gu(m)&&m.revert&&this.revertState?we({},this.revertState):we({},i,{error:m,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return we({},i,{isInvalidated:!0});case"setState":return we({},i,u.state);default:return i}},n}(),X2=function(n){Fs(l,n);function l(i){var u;return u=n.call(this)||this,u.config=i||{},u.queries=[],u.queriesMap={},u}var r=l.prototype;return r.build=function(u,o,d){var m,y=o.queryKey,p=(m=o.queryHash)!=null?m:qd(y,o),b=this.get(p);return b||(b=new G2({cache:this,queryKey:y,queryHash:p,options:u.defaultQueryOptions(o),state:d,defaultOptions:u.getQueryDefaults(y),meta:o.meta}),this.add(b)),b},r.add=function(u){this.queriesMap[u.queryHash]||(this.queriesMap[u.queryHash]=u,this.queries.push(u),this.notify({type:"queryAdded",query:u}))},r.remove=function(u){var o=this.queriesMap[u.queryHash];o&&(u.destroy(),this.queries=this.queries.filter(function(d){return d!==u}),o===u&&delete this.queriesMap[u.queryHash],this.notify({type:"queryRemoved",query:u}))},r.clear=function(){var u=this;Pe.batch(function(){u.queries.forEach(function(o){u.remove(o)})})},r.get=function(u){return this.queriesMap[u]},r.getAll=function(){return this.queries},r.find=function(u,o){var d=ul(u,o),m=d[0];return typeof m.exact>"u"&&(m.exact=!0),this.queries.find(function(y){return sy(m,y)})},r.findAll=function(u,o){var d=ul(u,o),m=d[0];return Object.keys(m).length>0?this.queries.filter(function(y){return sy(m,y)}):this.queries},r.notify=function(u){var o=this;Pe.batch(function(){o.listeners.forEach(function(d){d(u)})})},r.onFocus=function(){var u=this;Pe.batch(function(){u.queries.forEach(function(o){o.onFocus()})})},r.onOnline=function(){var u=this;Pe.batch(function(){u.queries.forEach(function(o){o.onOnline()})})},l}(Gs),Z2=function(){function n(r){this.options=we({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||Av(),this.meta=r.meta}var l=n.prototype;return l.setState=function(i){this.dispatch({type:"setState",state:i})},l.addObserver=function(i){this.observers.indexOf(i)===-1&&this.observers.push(i)},l.removeObserver=function(i){this.observers=this.observers.filter(function(u){return u!==i})},l.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(_t).catch(_t)):Promise.resolve()},l.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},l.execute=function(){var i=this,u,o=this.state.status==="loading",d=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),d=d.then(function(){i.mutationCache.config.onMutate==null||i.mutationCache.config.onMutate(i.state.variables,i)}).then(function(){return i.options.onMutate==null?void 0:i.options.onMutate(i.state.variables)}).then(function(m){m!==i.state.context&&i.dispatch({type:"loading",context:m,variables:i.state.variables})})),d.then(function(){return i.executeMutation()}).then(function(m){u=m,i.mutationCache.config.onSuccess==null||i.mutationCache.config.onSuccess(u,i.state.variables,i.state.context,i)}).then(function(){return i.options.onSuccess==null?void 0:i.options.onSuccess(u,i.state.variables,i.state.context)}).then(function(){return i.options.onSettled==null?void 0:i.options.onSettled(u,null,i.state.variables,i.state.context)}).then(function(){return i.dispatch({type:"success",data:u}),u}).catch(function(m){return i.mutationCache.config.onError==null||i.mutationCache.config.onError(m,i.state.variables,i.state.context,i),so().error(m),Promise.resolve().then(function(){return i.options.onError==null?void 0:i.options.onError(m,i.state.variables,i.state.context)}).then(function(){return i.options.onSettled==null?void 0:i.options.onSettled(void 0,m,i.state.variables,i.state.context)}).then(function(){throw i.dispatch({type:"error",error:m}),m})})},l.executeMutation=function(){var i=this,u;return this.retryer=new Nv({fn:function(){return i.options.mutationFn?i.options.mutationFn(i.state.variables):Promise.reject("No mutationFn found")},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:(u=this.options.retry)!=null?u:0,retryDelay:this.options.retryDelay}),this.retryer.promise},l.dispatch=function(i){var u=this;this.state=J2(this.state,i),Pe.batch(function(){u.observers.forEach(function(o){o.onMutationUpdate(i)}),u.mutationCache.notify(u)})},n}();function Av(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function J2(n,l){switch(l.type){case"failed":return we({},n,{failureCount:n.failureCount+1});case"pause":return we({},n,{isPaused:!0});case"continue":return we({},n,{isPaused:!1});case"loading":return we({},n,{context:l.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:l.variables});case"success":return we({},n,{data:l.data,error:null,status:"success",isPaused:!1});case"error":return we({},n,{data:void 0,error:l.error,failureCount:n.failureCount+1,isPaused:!1,status:"error"});case"setState":return we({},n,l.state);default:return n}}var Tv=function(n){Fs(l,n);function l(i){var u;return u=n.call(this)||this,u.config=i||{},u.mutations=[],u.mutationId=0,u}var r=l.prototype;return r.build=function(u,o,d){var m=new Z2({mutationCache:this,mutationId:++this.mutationId,options:u.defaultMutationOptions(o),state:d,defaultOptions:o.mutationKey?u.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(m),m},r.add=function(u){this.mutations.push(u),this.notify(u)},r.remove=function(u){this.mutations=this.mutations.filter(function(o){return o!==u}),u.cancel(),this.notify(u)},r.clear=function(){var u=this;Pe.batch(function(){u.mutations.forEach(function(o){u.remove(o)})})},r.getAll=function(){return this.mutations},r.find=function(u){return typeof u.exact>"u"&&(u.exact=!0),this.mutations.find(function(o){return iy(u,o)})},r.findAll=function(u){return this.mutations.filter(function(o){return iy(u,o)})},r.notify=function(u){var o=this;Pe.batch(function(){o.listeners.forEach(function(d){d(u)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var u=this.mutations.filter(function(o){return o.state.isPaused});return Pe.batch(function(){return u.reduce(function(o,d){return o.then(function(){return d.continue().catch(_t)})},Promise.resolve())})},l}(Gs);function P2(){return{onFetch:function(l){l.fetchFn=function(){var r,i,u,o,d,m,y=(r=l.fetchOptions)==null||(i=r.meta)==null?void 0:i.refetchPage,p=(u=l.fetchOptions)==null||(o=u.meta)==null?void 0:o.fetchMore,b=p==null?void 0:p.pageParam,S=(p==null?void 0:p.direction)==="forward",w=(p==null?void 0:p.direction)==="backward",C=((d=l.state.data)==null?void 0:d.pages)||[],E=((m=l.state.data)==null?void 0:m.pageParams)||[],T=Cv(),j=T==null?void 0:T.signal,_=E,D=!1,R=l.options.queryFn||function(){return Promise.reject("Missing queryFn")},X=function(ye,xe,B,G){return _=G?[xe].concat(_):[].concat(_,[xe]),G?[B].concat(ye):[].concat(ye,[B])},$=function(ye,xe,B,G){if(D)return Promise.reject("Cancelled");if(typeof B>"u"&&!xe&&ye.length)return Promise.resolve(ye);var J={queryKey:l.queryKey,signal:j,pageParam:B,meta:l.meta},oe=R(J),A=Promise.resolve(oe).then(function(W){return X(ye,B,W,G)});if(lo(oe)){var Q=A;Q.cancel=oe.cancel}return A},k;if(!C.length)k=$([]);else if(S){var F=typeof b<"u",I=F?b:oy(l.options,C);k=$(C,F,I)}else if(w){var ae=typeof b<"u",pe=ae?b:I2(l.options,C);k=$(C,ae,pe,!0)}else(function(){_=[];var Ke=typeof l.options.getNextPageParam>"u",ye=y&&C[0]?y(C[0],0,C):!0;k=ye?$([],Ke,E[0]):Promise.resolve(X([],E[0],C[0]));for(var xe=function(J){k=k.then(function(oe){var A=y&&C[J]?y(C[J],J,C):!0;if(A){var Q=Ke?E[J]:oy(l.options,oe);return $(oe,Ke,Q)}return Promise.resolve(X(oe,E[J],C[J]))})},B=1;B<C.length;B++)xe(B)})();var Be=k.then(function(Ke){return{pages:Ke,pageParams:_}}),Ee=Be;return Ee.cancel=function(){D=!0,T==null||T.abort(),lo(k)&&k.cancel()},Be}}}}function oy(n,l){return n.getNextPageParam==null?void 0:n.getNextPageParam(l[l.length-1],l)}function I2(n,l){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(l[0],l)}var W2=function(){function n(r){r===void 0&&(r={}),this.queryCache=r.queryCache||new X2,this.mutationCache=r.mutationCache||new Tv,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var l=n.prototype;return l.mount=function(){var i=this;this.unsubscribeFocus=ir.subscribe(function(){ir.isFocused()&&Fu.isOnline()&&(i.mutationCache.onFocus(),i.queryCache.onFocus())}),this.unsubscribeOnline=Fu.subscribe(function(){ir.isFocused()&&Fu.isOnline()&&(i.mutationCache.onOnline(),i.queryCache.onOnline())})},l.unmount=function(){var i,u;(i=this.unsubscribeFocus)==null||i.call(this),(u=this.unsubscribeOnline)==null||u.call(this)},l.isFetching=function(i,u){var o=ul(i,u),d=o[0];return d.fetching=!0,this.queryCache.findAll(d).length},l.isMutating=function(i){return this.mutationCache.findAll(we({},i,{fetching:!0})).length},l.getQueryData=function(i,u){var o;return(o=this.queryCache.find(i,u))==null?void 0:o.state.data},l.getQueriesData=function(i){return this.getQueryCache().findAll(i).map(function(u){var o=u.queryKey,d=u.state,m=d.data;return[o,m]})},l.setQueryData=function(i,u,o){var d=Ku(i),m=this.defaultQueryOptions(d);return this.queryCache.build(this,m).setData(u,o)},l.setQueriesData=function(i,u,o){var d=this;return Pe.batch(function(){return d.getQueryCache().findAll(i).map(function(m){var y=m.queryKey;return[y,d.setQueryData(y,u,o)]})})},l.getQueryState=function(i,u){var o;return(o=this.queryCache.find(i,u))==null?void 0:o.state},l.removeQueries=function(i,u){var o=ul(i,u),d=o[0],m=this.queryCache;Pe.batch(function(){m.findAll(d).forEach(function(y){m.remove(y)})})},l.resetQueries=function(i,u,o){var d=this,m=ul(i,u,o),y=m[0],p=m[1],b=this.queryCache,S=we({},y,{active:!0});return Pe.batch(function(){return b.findAll(y).forEach(function(w){w.reset()}),d.refetchQueries(S,p)})},l.cancelQueries=function(i,u,o){var d=this,m=ul(i,u,o),y=m[0],p=m[1],b=p===void 0?{}:p;typeof b.revert>"u"&&(b.revert=!0);var S=Pe.batch(function(){return d.queryCache.findAll(y).map(function(w){return w.cancel(b)})});return Promise.all(S).then(_t).catch(_t)},l.invalidateQueries=function(i,u,o){var d,m,y,p=this,b=ul(i,u,o),S=b[0],w=b[1],C=we({},S,{active:(d=(m=S.refetchActive)!=null?m:S.active)!=null?d:!0,inactive:(y=S.refetchInactive)!=null?y:!1});return Pe.batch(function(){return p.queryCache.findAll(S).forEach(function(E){E.invalidate()}),p.refetchQueries(C,w)})},l.refetchQueries=function(i,u,o){var d=this,m=ul(i,u,o),y=m[0],p=m[1],b=Pe.batch(function(){return d.queryCache.findAll(y).map(function(w){return w.fetch(void 0,we({},p,{meta:{refetchPage:y==null?void 0:y.refetchPage}}))})}),S=Promise.all(b).then(_t);return p!=null&&p.throwOnError||(S=S.catch(_t)),S},l.fetchQuery=function(i,u,o){var d=Ku(i,u,o),m=this.defaultQueryOptions(d);typeof m.retry>"u"&&(m.retry=!1);var y=this.queryCache.build(this,m);return y.isStaleByTime(m.staleTime)?y.fetch(m):Promise.resolve(y.state.data)},l.prefetchQuery=function(i,u,o){return this.fetchQuery(i,u,o).then(_t).catch(_t)},l.fetchInfiniteQuery=function(i,u,o){var d=Ku(i,u,o);return d.behavior=P2(),this.fetchQuery(d)},l.prefetchInfiniteQuery=function(i,u,o){return this.fetchInfiniteQuery(i,u,o).then(_t).catch(_t)},l.cancelMutations=function(){var i=this,u=Pe.batch(function(){return i.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(u).then(_t).catch(_t)},l.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},l.executeMutation=function(i){return this.mutationCache.build(this,i).execute()},l.getQueryCache=function(){return this.queryCache},l.getMutationCache=function(){return this.mutationCache},l.getDefaultOptions=function(){return this.defaultOptions},l.setDefaultOptions=function(i){this.defaultOptions=i},l.setQueryDefaults=function(i,u){var o=this.queryDefaults.find(function(d){return Bl(i)===Bl(d.queryKey)});o?o.defaultOptions=u:this.queryDefaults.push({queryKey:i,defaultOptions:u})},l.getQueryDefaults=function(i){var u;return i?(u=this.queryDefaults.find(function(o){return no(i,o.queryKey)}))==null?void 0:u.defaultOptions:void 0},l.setMutationDefaults=function(i,u){var o=this.mutationDefaults.find(function(d){return Bl(i)===Bl(d.mutationKey)});o?o.defaultOptions=u:this.mutationDefaults.push({mutationKey:i,defaultOptions:u})},l.getMutationDefaults=function(i){var u;return i?(u=this.mutationDefaults.find(function(o){return no(i,o.mutationKey)}))==null?void 0:u.defaultOptions:void 0},l.defaultQueryOptions=function(i){if(i!=null&&i._defaulted)return i;var u=we({},this.defaultOptions.queries,this.getQueryDefaults(i==null?void 0:i.queryKey),i,{_defaulted:!0});return!u.queryHash&&u.queryKey&&(u.queryHash=qd(u.queryKey,u)),u},l.defaultQueryObserverOptions=function(i){return this.defaultQueryOptions(i)},l.defaultMutationOptions=function(i){return i!=null&&i._defaulted?i:we({},this.defaultOptions.mutations,this.getMutationDefaults(i==null?void 0:i.mutationKey),i,{_defaulted:!0})},l.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},n}(),eS=function(n){Fs(l,n);function l(i,u){var o;return o=n.call(this)||this,o.client=i,o.options=u,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(u),o}var r=l.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),cy(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return md(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return md(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(u,o){var d=this.options,m=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(u),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=d.queryKey),this.updateQuery();var y=this.hasListeners();y&&fy(this.currentQuery,m,this.options,d)&&this.executeFetch(),this.updateResult(o),y&&(this.currentQuery!==m||this.options.enabled!==d.enabled||this.options.staleTime!==d.staleTime)&&this.updateStaleTimeout();var p=this.computeRefetchInterval();y&&(this.currentQuery!==m||this.options.enabled!==d.enabled||p!==this.currentRefetchInterval)&&this.updateRefetchInterval(p)},r.getOptimisticResult=function(u){var o=this.client.defaultQueryObserverOptions(u),d=this.client.getQueryCache().build(this.client,o);return this.createResult(d,o)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(u,o){var d=this,m={},y=function(b){d.trackedProps.includes(b)||d.trackedProps.push(b)};return Object.keys(u).forEach(function(p){Object.defineProperty(m,p,{configurable:!1,enumerable:!0,get:function(){return y(p),u[p]}})}),(o.useErrorBoundary||o.suspense)&&y("error"),m},r.getNextResult=function(u){var o=this;return new Promise(function(d,m){var y=o.subscribe(function(p){p.isFetching||(y(),p.isError&&(u!=null&&u.throwOnError)?m(p.error):d(p))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(u){return this.fetch(we({},u,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))},r.fetchOptimistic=function(u){var o=this,d=this.client.defaultQueryObserverOptions(u),m=this.client.getQueryCache().build(this.client,d);return m.fetch().then(function(){return o.createResult(m,d)})},r.fetch=function(u){var o=this;return this.executeFetch(u).then(function(){return o.updateResult(),o.currentResult})},r.executeFetch=function(u){this.updateQuery();var o=this.currentQuery.fetch(this.options,u);return u!=null&&u.throwOnError||(o=o.catch(_t)),o},r.updateStaleTimeout=function(){var u=this;if(this.clearStaleTimeout(),!(eo||this.currentResult.isStale||!dd(this.options.staleTime))){var o=wv(this.currentResult.dataUpdatedAt,this.options.staleTime),d=o+1;this.staleTimeoutId=setTimeout(function(){u.currentResult.isStale||u.updateResult()},d)}},r.computeRefetchInterval=function(){var u;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(u=this.options.refetchInterval)!=null?u:!1},r.updateRefetchInterval=function(u){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=u,!(eo||this.options.enabled===!1||!dd(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||ir.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(u,o){var d=this.currentQuery,m=this.options,y=this.currentResult,p=this.currentResultState,b=this.currentResultOptions,S=u!==d,w=S?u.state:this.currentQueryInitialState,C=S?this.currentResult:this.previousQueryResult,E=u.state,T=E.dataUpdatedAt,j=E.error,_=E.errorUpdatedAt,D=E.isFetching,R=E.status,X=!1,$=!1,k;if(o.optimisticResults){var F=this.hasListeners(),I=!F&&cy(u,o),ae=F&&fy(u,d,o,m);(I||ae)&&(D=!0,T||(R="loading"))}if(o.keepPreviousData&&!E.dataUpdateCount&&(C!=null&&C.isSuccess)&&R!=="error")k=C.data,T=C.dataUpdatedAt,R=C.status,X=!0;else if(o.select&&typeof E.data<"u")if(y&&E.data===(p==null?void 0:p.data)&&o.select===this.selectFn)k=this.selectResult;else try{this.selectFn=o.select,k=o.select(E.data),o.structuralSharing!==!1&&(k=ao(y==null?void 0:y.data,k)),this.selectResult=k,this.selectError=null}catch(Ee){so().error(Ee),this.selectError=Ee}else k=E.data;if(typeof o.placeholderData<"u"&&typeof k>"u"&&(R==="loading"||R==="idle")){var pe;if(y!=null&&y.isPlaceholderData&&o.placeholderData===(b==null?void 0:b.placeholderData))pe=y.data;else if(pe=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof pe<"u")try{pe=o.select(pe),o.structuralSharing!==!1&&(pe=ao(y==null?void 0:y.data,pe)),this.selectError=null}catch(Ee){so().error(Ee),this.selectError=Ee}typeof pe<"u"&&(R="success",k=pe,$=!0)}this.selectError&&(j=this.selectError,k=this.selectResult,_=Date.now(),R="error");var Be={status:R,isLoading:R==="loading",isSuccess:R==="success",isError:R==="error",isIdle:R==="idle",data:k,dataUpdatedAt:T,error:j,errorUpdatedAt:_,failureCount:E.fetchFailureCount,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>w.dataUpdateCount||E.errorUpdateCount>w.errorUpdateCount,isFetching:D,isRefetching:D&&R!=="loading",isLoadingError:R==="error"&&E.dataUpdatedAt===0,isPlaceholderData:$,isPreviousData:X,isRefetchError:R==="error"&&E.dataUpdatedAt!==0,isStale:zd(u,o),refetch:this.refetch,remove:this.remove};return Be},r.shouldNotifyListeners=function(u,o){if(!o)return!0;var d=this.options,m=d.notifyOnChangeProps,y=d.notifyOnChangePropsExclusions;if(!m&&!y||m==="tracked"&&!this.trackedProps.length)return!0;var p=m==="tracked"?this.trackedProps:m;return Object.keys(u).some(function(b){var S=b,w=u[S]!==o[S],C=p==null?void 0:p.some(function(T){return T===b}),E=y==null?void 0:y.some(function(T){return T===b});return w&&!E&&(!p||C)})},r.updateResult=function(u){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!k2(this.currentResult,o)){var d={cache:!0};(u==null?void 0:u.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(d.listeners=!0),this.notify(we({},d,u))}},r.updateQuery=function(){var u=this.client.getQueryCache().build(this.client,this.options);if(u!==this.currentQuery){var o=this.currentQuery;this.currentQuery=u,this.currentQueryInitialState=u.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),u.addObserver(this))}},r.onQueryUpdate=function(u){var o={};u.type==="success"?o.onSuccess=!0:u.type==="error"&&!Gu(u.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},r.notify=function(u){var o=this;Pe.batch(function(){u.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):u.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),u.listeners&&o.listeners.forEach(function(d){d(o.currentResult)}),u.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},l}(Gs);function tS(n,l){return l.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&l.retryOnMount===!1)}function cy(n,l){return tS(n,l)||n.state.dataUpdatedAt>0&&md(n,l,l.refetchOnMount)}function md(n,l,r){if(l.enabled!==!1){var i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&zd(n,l)}return!1}function fy(n,l,r,i){return r.enabled!==!1&&(n!==l||i.enabled===!1)&&(!r.suspense||n.state.status!=="error")&&zd(n,r)}function zd(n,l){return n.isStaleByTime(l.staleTime)}var nS=function(n){Fs(l,n);function l(i,u){var o;return o=n.call(this)||this,o.client=i,o.setOptions(u),o.bindMethods(),o.updateResult(),o}var r=l.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(u){this.options=this.client.defaultMutationOptions(u)},r.onUnsubscribe=function(){if(!this.listeners.length){var u;(u=this.currentMutation)==null||u.removeObserver(this)}},r.onMutationUpdate=function(u){this.updateResult();var o={listeners:!0};u.type==="success"?o.onSuccess=!0:u.type==="error"&&(o.onError=!0),this.notify(o)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(u,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,we({},this.options,{variables:typeof u<"u"?u:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var u=this.currentMutation?this.currentMutation.state:Av(),o=we({},u,{isLoading:u.status==="loading",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},r.notify=function(u){var o=this;Pe.batch(function(){o.mutateOptions&&(u.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):u.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),u.listeners&&o.listeners.forEach(function(d){d(o.currentResult)})})},l}(Gs),aS=L2.unstable_batchedUpdates;Pe.setBatchNotifyFunction(aS);var lS=console;F2(lS);var dy=$e.createContext(void 0),Rv=$e.createContext(!1);function Ov(n){return n&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=dy),window.ReactQueryClientContext):dy}var Dv=function(){var l=$e.useContext(Ov($e.useContext(Rv)));if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},sS=function(l){var r=l.client,i=l.contextSharing,u=i===void 0?!1:i,o=l.children;$e.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var d=Ov(u);return $e.createElement(Rv.Provider,{value:u},$e.createElement(d.Provider,{value:r},o))};function iS(){var n=!1;return{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}}var rS=$e.createContext(iS()),uS=function(){return $e.useContext(rS)};function Mv(n,l,r){return typeof l=="function"?l.apply(void 0,r):typeof l=="boolean"?l:!!n}function qt(n,l,r){var i=$e.useRef(!1),u=$e.useState(0),o=u[1],d=z2(n,l,r),m=Dv(),y=$e.useRef();y.current?y.current.setOptions(d):y.current=new nS(m,d);var p=y.current.getCurrentResult();$e.useEffect(function(){i.current=!0;var S=y.current.subscribe(Pe.batchCalls(function(){i.current&&o(function(w){return w+1})}));return function(){i.current=!1,S()}},[]);var b=$e.useCallback(function(S,w){y.current.mutate(S,w).catch(_t)},[]);if(p.error&&Mv(void 0,y.current.options.useErrorBoundary,[p.error]))throw p.error;return we({},p,{mutate:b,mutateAsync:p.mutate})}function oS(n,l){var r=$e.useRef(!1),i=$e.useState(0),u=i[1],o=Dv(),d=uS(),m=o.defaultQueryObserverOptions(n);m.optimisticResults=!0,m.onError&&(m.onError=Pe.batchCalls(m.onError)),m.onSuccess&&(m.onSuccess=Pe.batchCalls(m.onSuccess)),m.onSettled&&(m.onSettled=Pe.batchCalls(m.onSettled)),m.suspense&&(typeof m.staleTime!="number"&&(m.staleTime=1e3),m.cacheTime===0&&(m.cacheTime=1)),(m.suspense||m.useErrorBoundary)&&(d.isReset()||(m.retryOnMount=!1));var y=$e.useState(function(){return new l(o,m)}),p=y[0],b=p.getOptimisticResult(m);if($e.useEffect(function(){r.current=!0,d.clearReset();var S=p.subscribe(Pe.batchCalls(function(){r.current&&u(function(w){return w+1})}));return p.updateResult(),function(){r.current=!1,S()}},[d,p]),$e.useEffect(function(){p.setOptions(m,{listeners:!1})},[m,p]),m.suspense&&b.isLoading)throw p.fetchOptimistic(m).then(function(S){var w=S.data;m.onSuccess==null||m.onSuccess(w),m.onSettled==null||m.onSettled(w,null)}).catch(function(S){d.clearReset(),m.onError==null||m.onError(S),m.onSettled==null||m.onSettled(void 0,S)});if(b.isError&&!d.isReset()&&!b.isFetching&&Mv(m.suspense,m.useErrorBoundary,[b.error,p.getCurrentQuery()]))throw b.error;return m.notifyOnChangeProps==="tracked"&&(b=p.trackResult(b,m)),b}function Wt(n,l,r){var i=Ku(n,l,r);return oS(i,eS)}function Uv(n,l){return function(){return n.apply(l,arguments)}}const{toString:cS}=Object.prototype,{getPrototypeOf:Bd}=Object,{iterator:bo,toStringTag:Lv}=Symbol,go=(n=>l=>{const r=cS.call(l);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Hn=n=>(n=n.toLowerCase(),l=>go(l)===n),xo=n=>l=>typeof l===n,{isArray:Xs}=Array,cr=xo("undefined");function fS(n){return n!==null&&!cr(n)&&n.constructor!==null&&!cr(n.constructor)&&Zt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const qv=Hn("ArrayBuffer");function dS(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&qv(n.buffer),l}const hS=xo("string"),Zt=xo("function"),zv=xo("number"),So=n=>n!==null&&typeof n=="object",mS=n=>n===!0||n===!1,Xu=n=>{if(go(n)!=="object")return!1;const l=Bd(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Lv in n)&&!(bo in n)},pS=Hn("Date"),yS=Hn("File"),vS=Hn("Blob"),bS=Hn("FileList"),gS=n=>So(n)&&Zt(n.pipe),xS=n=>{let l;return n&&(typeof FormData=="function"&&n instanceof FormData||Zt(n.append)&&((l=go(n))==="formdata"||l==="object"&&Zt(n.toString)&&n.toString()==="[object FormData]"))},SS=Hn("URLSearchParams"),[wS,ES,CS,_S]=["ReadableStream","Request","Response","Headers"].map(Hn),NS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yr(n,l,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let i,u;if(typeof n!="object"&&(n=[n]),Xs(n))for(i=0,u=n.length;i<u;i++)l.call(null,n[i],i,n);else{const o=r?Object.getOwnPropertyNames(n):Object.keys(n),d=o.length;let m;for(i=0;i<d;i++)m=o[i],l.call(null,n[m],m,n)}}function Bv(n,l){l=l.toLowerCase();const r=Object.keys(n);let i=r.length,u;for(;i-- >0;)if(u=r[i],l===u.toLowerCase())return u;return null}const Hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hv=n=>!cr(n)&&n!==Hl;function pd(){const{caseless:n}=Hv(this)&&this||{},l={},r=(i,u)=>{const o=n&&Bv(l,u)||u;Xu(l[o])&&Xu(i)?l[o]=pd(l[o],i):Xu(i)?l[o]=pd({},i):Xs(i)?l[o]=i.slice():l[o]=i};for(let i=0,u=arguments.length;i<u;i++)arguments[i]&&yr(arguments[i],r);return l}const jS=(n,l,r,{allOwnKeys:i}={})=>(yr(l,(u,o)=>{r&&Zt(u)?n[o]=Uv(u,r):n[o]=u},{allOwnKeys:i}),n),AS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),TS=(n,l,r,i)=>{n.prototype=Object.create(l.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:l.prototype}),r&&Object.assign(n.prototype,r)},RS=(n,l,r,i)=>{let u,o,d;const m={};if(l=l||{},n==null)return l;do{for(u=Object.getOwnPropertyNames(n),o=u.length;o-- >0;)d=u[o],(!i||i(d,n,l))&&!m[d]&&(l[d]=n[d],m[d]=!0);n=r!==!1&&Bd(n)}while(n&&(!r||r(n,l))&&n!==Object.prototype);return l},OS=(n,l,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=l.length;const i=n.indexOf(l,r);return i!==-1&&i===r},DS=n=>{if(!n)return null;if(Xs(n))return n;let l=n.length;if(!zv(l))return null;const r=new Array(l);for(;l-- >0;)r[l]=n[l];return r},MS=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&Bd(Uint8Array)),US=(n,l)=>{const i=(n&&n[bo]).call(n);let u;for(;(u=i.next())&&!u.done;){const o=u.value;l.call(n,o[0],o[1])}},LS=(n,l)=>{let r;const i=[];for(;(r=n.exec(l))!==null;)i.push(r);return i},qS=Hn("HTMLFormElement"),zS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,u){return i.toUpperCase()+u}),hy=(({hasOwnProperty:n})=>(l,r)=>n.call(l,r))(Object.prototype),BS=Hn("RegExp"),kv=(n,l)=>{const r=Object.getOwnPropertyDescriptors(n),i={};yr(r,(u,o)=>{let d;(d=l(u,o,n))!==!1&&(i[o]=d||u)}),Object.defineProperties(n,i)},HS=n=>{kv(n,(l,r)=>{if(Zt(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=n[r];if(Zt(i)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},kS=(n,l)=>{const r={},i=u=>{u.forEach(o=>{r[o]=!0})};return Xs(n)?i(n):i(String(n).split(l)),r},QS=()=>{},YS=(n,l)=>n!=null&&Number.isFinite(n=+n)?n:l;function VS(n){return!!(n&&Zt(n.append)&&n[Lv]==="FormData"&&n[bo])}const $S=n=>{const l=new Array(10),r=(i,u)=>{if(So(i)){if(l.indexOf(i)>=0)return;if(!("toJSON"in i)){l[u]=i;const o=Xs(i)?[]:{};return yr(i,(d,m)=>{const y=r(d,u+1);!cr(y)&&(o[m]=y)}),l[u]=void 0,o}}return i};return r(n,0)},KS=Hn("AsyncFunction"),FS=n=>n&&(So(n)||Zt(n))&&Zt(n.then)&&Zt(n.catch),Qv=((n,l)=>n?setImmediate:l?((r,i)=>(Hl.addEventListener("message",({source:u,data:o})=>{u===Hl&&o===r&&i.length&&i.shift()()},!1),u=>{i.push(u),Hl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Zt(Hl.postMessage)),GS=typeof queueMicrotask<"u"?queueMicrotask.bind(Hl):typeof process<"u"&&process.nextTick||Qv,XS=n=>n!=null&&Zt(n[bo]),H={isArray:Xs,isArrayBuffer:qv,isBuffer:fS,isFormData:xS,isArrayBufferView:dS,isString:hS,isNumber:zv,isBoolean:mS,isObject:So,isPlainObject:Xu,isReadableStream:wS,isRequest:ES,isResponse:CS,isHeaders:_S,isUndefined:cr,isDate:pS,isFile:yS,isBlob:vS,isRegExp:BS,isFunction:Zt,isStream:gS,isURLSearchParams:SS,isTypedArray:MS,isFileList:bS,forEach:yr,merge:pd,extend:jS,trim:NS,stripBOM:AS,inherits:TS,toFlatObject:RS,kindOf:go,kindOfTest:Hn,endsWith:OS,toArray:DS,forEachEntry:US,matchAll:LS,isHTMLForm:qS,hasOwnProperty:hy,hasOwnProp:hy,reduceDescriptors:kv,freezeMethods:HS,toObjectSet:kS,toCamelCase:zS,noop:QS,toFiniteNumber:YS,findKey:Bv,global:Hl,isContextDefined:Hv,isSpecCompliantForm:VS,toJSONObject:$S,isAsyncFn:KS,isThenable:FS,setImmediate:Qv,asap:GS,isIterable:XS};function ve(n,l,r,i,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",l&&(this.code=l),r&&(this.config=r),i&&(this.request=i),u&&(this.response=u,this.status=u.status?u.status:null)}H.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Yv=ve.prototype,Vv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Vv[n]={value:n}});Object.defineProperties(ve,Vv);Object.defineProperty(Yv,"isAxiosError",{value:!0});ve.from=(n,l,r,i,u,o)=>{const d=Object.create(Yv);return H.toFlatObject(n,d,function(y){return y!==Error.prototype},m=>m!=="isAxiosError"),ve.call(d,n.message,l,r,i,u),d.cause=n,d.name=n.name,o&&Object.assign(d,o),d};const ZS=null;function yd(n){return H.isPlainObject(n)||H.isArray(n)}function $v(n){return H.endsWith(n,"[]")?n.slice(0,-2):n}function my(n,l,r){return n?n.concat(l).map(function(u,o){return u=$v(u),!r&&o?"["+u+"]":u}).join(r?".":""):l}function JS(n){return H.isArray(n)&&!n.some(yd)}const PS=H.toFlatObject(H,{},null,function(l){return/^is[A-Z]/.test(l)});function wo(n,l,r){if(!H.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,j){return!H.isUndefined(j[T])});const i=r.metaTokens,u=r.visitor||b,o=r.dots,d=r.indexes,y=(r.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(l);if(!H.isFunction(u))throw new TypeError("visitor must be a function");function p(E){if(E===null)return"";if(H.isDate(E))return E.toISOString();if(!y&&H.isBlob(E))throw new ve("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(E)||H.isTypedArray(E)?y&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function b(E,T,j){let _=E;if(E&&!j&&typeof E=="object"){if(H.endsWith(T,"{}"))T=i?T:T.slice(0,-2),E=JSON.stringify(E);else if(H.isArray(E)&&JS(E)||(H.isFileList(E)||H.endsWith(T,"[]"))&&(_=H.toArray(E)))return T=$v(T),_.forEach(function(R,X){!(H.isUndefined(R)||R===null)&&l.append(d===!0?my([T],X,o):d===null?T:T+"[]",p(R))}),!1}return yd(E)?!0:(l.append(my(j,T,o),p(E)),!1)}const S=[],w=Object.assign(PS,{defaultVisitor:b,convertValue:p,isVisitable:yd});function C(E,T){if(!H.isUndefined(E)){if(S.indexOf(E)!==-1)throw Error("Circular reference detected in "+T.join("."));S.push(E),H.forEach(E,function(_,D){(!(H.isUndefined(_)||_===null)&&u.call(l,_,H.isString(D)?D.trim():D,T,w))===!0&&C(_,T?T.concat(D):[D])}),S.pop()}}if(!H.isObject(n))throw new TypeError("data must be an object");return C(n),l}function py(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return l[i]})}function Hd(n,l){this._pairs=[],n&&wo(n,this,l)}const Kv=Hd.prototype;Kv.append=function(l,r){this._pairs.push([l,r])};Kv.toString=function(l){const r=l?function(i){return l.call(this,i,py)}:py;return this._pairs.map(function(u){return r(u[0])+"="+r(u[1])},"").join("&")};function IS(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fv(n,l,r){if(!l)return n;const i=r&&r.encode||IS;H.isFunction(r)&&(r={serialize:r});const u=r&&r.serialize;let o;if(u?o=u(l,r):o=H.isURLSearchParams(l)?l.toString():new Hd(l,r).toString(i),o){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class yy{constructor(){this.handlers=[]}use(l,r,i){return this.handlers.push({fulfilled:l,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){H.forEach(this.handlers,function(i){i!==null&&l(i)})}}const Gv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},WS=typeof URLSearchParams<"u"?URLSearchParams:Hd,e3=typeof FormData<"u"?FormData:null,t3=typeof Blob<"u"?Blob:null,n3={isBrowser:!0,classes:{URLSearchParams:WS,FormData:e3,Blob:t3},protocols:["http","https","file","blob","url","data"]},kd=typeof window<"u"&&typeof document<"u",vd=typeof navigator=="object"&&navigator||void 0,a3=kd&&(!vd||["ReactNative","NativeScript","NS"].indexOf(vd.product)<0),l3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",s3=kd&&window.location.href||"http://localhost",i3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kd,hasStandardBrowserEnv:a3,hasStandardBrowserWebWorkerEnv:l3,navigator:vd,origin:s3},Symbol.toStringTag,{value:"Module"})),Mt={...i3,...n3};function r3(n,l){return wo(n,new Mt.classes.URLSearchParams,Object.assign({visitor:function(r,i,u,o){return Mt.isNode&&H.isBuffer(r)?(this.append(i,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},l))}function u3(n){return H.matchAll(/\w+|\[(\w*)]/g,n).map(l=>l[0]==="[]"?"":l[1]||l[0])}function o3(n){const l={},r=Object.keys(n);let i;const u=r.length;let o;for(i=0;i<u;i++)o=r[i],l[o]=n[o];return l}function Xv(n){function l(r,i,u,o){let d=r[o++];if(d==="__proto__")return!0;const m=Number.isFinite(+d),y=o>=r.length;return d=!d&&H.isArray(u)?u.length:d,y?(H.hasOwnProp(u,d)?u[d]=[u[d],i]:u[d]=i,!m):((!u[d]||!H.isObject(u[d]))&&(u[d]=[]),l(r,i,u[d],o)&&H.isArray(u[d])&&(u[d]=o3(u[d])),!m)}if(H.isFormData(n)&&H.isFunction(n.entries)){const r={};return H.forEachEntry(n,(i,u)=>{l(u3(i),u,r,0)}),r}return null}function c3(n,l,r){if(H.isString(n))try{return(l||JSON.parse)(n),H.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(n)}const vr={transitional:Gv,adapter:["xhr","http","fetch"],transformRequest:[function(l,r){const i=r.getContentType()||"",u=i.indexOf("application/json")>-1,o=H.isObject(l);if(o&&H.isHTMLForm(l)&&(l=new FormData(l)),H.isFormData(l))return u?JSON.stringify(Xv(l)):l;if(H.isArrayBuffer(l)||H.isBuffer(l)||H.isStream(l)||H.isFile(l)||H.isBlob(l)||H.isReadableStream(l))return l;if(H.isArrayBufferView(l))return l.buffer;if(H.isURLSearchParams(l))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let m;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return r3(l,this.formSerializer).toString();if((m=H.isFileList(l))||i.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return wo(m?{"files[]":l}:l,y&&new y,this.formSerializer)}}return o||u?(r.setContentType("application/json",!1),c3(l)):l}],transformResponse:[function(l){const r=this.transitional||vr.transitional,i=r&&r.forcedJSONParsing,u=this.responseType==="json";if(H.isResponse(l)||H.isReadableStream(l))return l;if(l&&H.isString(l)&&(i&&!this.responseType||u)){const d=!(r&&r.silentJSONParsing)&&u;try{return JSON.parse(l)}catch(m){if(d)throw m.name==="SyntaxError"?ve.from(m,ve.ERR_BAD_RESPONSE,this,null,this.response):m}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mt.classes.FormData,Blob:Mt.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],n=>{vr.headers[n]={}});const f3=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),d3=n=>{const l={};let r,i,u;return n&&n.split(`
52
- `).forEach(function(d){u=d.indexOf(":"),r=d.substring(0,u).trim().toLowerCase(),i=d.substring(u+1).trim(),!(!r||l[r]&&f3[r])&&(r==="set-cookie"?l[r]?l[r].push(i):l[r]=[i]:l[r]=l[r]?l[r]+", "+i:i)}),l},vy=Symbol("internals");function tr(n){return n&&String(n).trim().toLowerCase()}function Zu(n){return n===!1||n==null?n:H.isArray(n)?n.map(Zu):String(n)}function h3(n){const l=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(n);)l[i[1]]=i[2];return l}const m3=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Zf(n,l,r,i,u){if(H.isFunction(i))return i.call(this,l,r);if(u&&(l=r),!!H.isString(l)){if(H.isString(i))return l.indexOf(i)!==-1;if(H.isRegExp(i))return i.test(l)}}function p3(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,r,i)=>r.toUpperCase()+i)}function y3(n,l){const r=H.toCamelCase(" "+l);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+r,{value:function(u,o,d){return this[i].call(this,l,u,o,d)},configurable:!0})})}let Jt=class{constructor(l){l&&this.set(l)}set(l,r,i){const u=this;function o(m,y,p){const b=tr(y);if(!b)throw new Error("header name must be a non-empty string");const S=H.findKey(u,b);(!S||u[S]===void 0||p===!0||p===void 0&&u[S]!==!1)&&(u[S||y]=Zu(m))}const d=(m,y)=>H.forEach(m,(p,b)=>o(p,b,y));if(H.isPlainObject(l)||l instanceof this.constructor)d(l,r);else if(H.isString(l)&&(l=l.trim())&&!m3(l))d(d3(l),r);else if(H.isObject(l)&&H.isIterable(l)){let m={},y,p;for(const b of l){if(!H.isArray(b))throw TypeError("Object iterator must return a key-value pair");m[p=b[0]]=(y=m[p])?H.isArray(y)?[...y,b[1]]:[y,b[1]]:b[1]}d(m,r)}else l!=null&&o(r,l,i);return this}get(l,r){if(l=tr(l),l){const i=H.findKey(this,l);if(i){const u=this[i];if(!r)return u;if(r===!0)return h3(u);if(H.isFunction(r))return r.call(this,u,i);if(H.isRegExp(r))return r.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,r){if(l=tr(l),l){const i=H.findKey(this,l);return!!(i&&this[i]!==void 0&&(!r||Zf(this,this[i],i,r)))}return!1}delete(l,r){const i=this;let u=!1;function o(d){if(d=tr(d),d){const m=H.findKey(i,d);m&&(!r||Zf(i,i[m],m,r))&&(delete i[m],u=!0)}}return H.isArray(l)?l.forEach(o):o(l),u}clear(l){const r=Object.keys(this);let i=r.length,u=!1;for(;i--;){const o=r[i];(!l||Zf(this,this[o],o,l,!0))&&(delete this[o],u=!0)}return u}normalize(l){const r=this,i={};return H.forEach(this,(u,o)=>{const d=H.findKey(i,o);if(d){r[d]=Zu(u),delete r[o];return}const m=l?p3(o):String(o).trim();m!==o&&delete r[o],r[m]=Zu(u),i[m]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const r=Object.create(null);return H.forEach(this,(i,u)=>{i!=null&&i!==!1&&(r[u]=l&&H.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,r])=>l+": "+r).join(`
53
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...r){const i=new this(l);return r.forEach(u=>i.set(u)),i}static accessor(l){const i=(this[vy]=this[vy]={accessors:{}}).accessors,u=this.prototype;function o(d){const m=tr(d);i[m]||(y3(u,d),i[m]=!0)}return H.isArray(l)?l.forEach(o):o(l),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(Jt.prototype,({value:n},l)=>{let r=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(i){this[r]=i}}});H.freezeMethods(Jt);function Jf(n,l){const r=this||vr,i=l||r,u=Jt.from(i.headers);let o=i.data;return H.forEach(n,function(m){o=m.call(r,o,u.normalize(),l?l.status:void 0)}),u.normalize(),o}function Zv(n){return!!(n&&n.__CANCEL__)}function Zs(n,l,r){ve.call(this,n??"canceled",ve.ERR_CANCELED,l,r),this.name="CanceledError"}H.inherits(Zs,ve,{__CANCEL__:!0});function Jv(n,l,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?n(r):l(new ve("Request failed with status code "+r.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function v3(n){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return l&&l[1]||""}function b3(n,l){n=n||10;const r=new Array(n),i=new Array(n);let u=0,o=0,d;return l=l!==void 0?l:1e3,function(y){const p=Date.now(),b=i[o];d||(d=p),r[u]=y,i[u]=p;let S=o,w=0;for(;S!==u;)w+=r[S++],S=S%n;if(u=(u+1)%n,u===o&&(o=(o+1)%n),p-d<l)return;const C=b&&p-b;return C?Math.round(w*1e3/C):void 0}}function g3(n,l){let r=0,i=1e3/l,u,o;const d=(p,b=Date.now())=>{r=b,u=null,o&&(clearTimeout(o),o=null),n.apply(null,p)};return[(...p)=>{const b=Date.now(),S=b-r;S>=i?d(p,b):(u=p,o||(o=setTimeout(()=>{o=null,d(u)},i-S)))},()=>u&&d(u)]}const io=(n,l,r=3)=>{let i=0;const u=b3(50,250);return g3(o=>{const d=o.loaded,m=o.lengthComputable?o.total:void 0,y=d-i,p=u(y),b=d<=m;i=d;const S={loaded:d,total:m,progress:m?d/m:void 0,bytes:y,rate:p||void 0,estimated:p&&m&&b?(m-d)/p:void 0,event:o,lengthComputable:m!=null,[l?"download":"upload"]:!0};n(S)},r)},by=(n,l)=>{const r=n!=null;return[i=>l[0]({lengthComputable:r,total:n,loaded:i}),l[1]]},gy=n=>(...l)=>H.asap(()=>n(...l)),x3=Mt.hasStandardBrowserEnv?((n,l)=>r=>(r=new URL(r,Mt.origin),n.protocol===r.protocol&&n.host===r.host&&(l||n.port===r.port)))(new URL(Mt.origin),Mt.navigator&&/(msie|trident)/i.test(Mt.navigator.userAgent)):()=>!0,S3=Mt.hasStandardBrowserEnv?{write(n,l,r,i,u,o){const d=[n+"="+encodeURIComponent(l)];H.isNumber(r)&&d.push("expires="+new Date(r).toGMTString()),H.isString(i)&&d.push("path="+i),H.isString(u)&&d.push("domain="+u),o===!0&&d.push("secure"),document.cookie=d.join("; ")},read(n){const l=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return l?decodeURIComponent(l[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function w3(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function E3(n,l){return l?n.replace(/\/?\/$/,"")+"/"+l.replace(/^\/+/,""):n}function Pv(n,l,r){let i=!w3(l);return n&&(i||r==!1)?E3(n,l):l}const xy=n=>n instanceof Jt?{...n}:n;function $l(n,l){l=l||{};const r={};function i(p,b,S,w){return H.isPlainObject(p)&&H.isPlainObject(b)?H.merge.call({caseless:w},p,b):H.isPlainObject(b)?H.merge({},b):H.isArray(b)?b.slice():b}function u(p,b,S,w){if(H.isUndefined(b)){if(!H.isUndefined(p))return i(void 0,p,S,w)}else return i(p,b,S,w)}function o(p,b){if(!H.isUndefined(b))return i(void 0,b)}function d(p,b){if(H.isUndefined(b)){if(!H.isUndefined(p))return i(void 0,p)}else return i(void 0,b)}function m(p,b,S){if(S in l)return i(p,b);if(S in n)return i(void 0,p)}const y={url:o,method:o,data:o,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:m,headers:(p,b,S)=>u(xy(p),xy(b),S,!0)};return H.forEach(Object.keys(Object.assign({},n,l)),function(b){const S=y[b]||u,w=S(n[b],l[b],b);H.isUndefined(w)&&S!==m||(r[b]=w)}),r}const Iv=n=>{const l=$l({},n);let{data:r,withXSRFToken:i,xsrfHeaderName:u,xsrfCookieName:o,headers:d,auth:m}=l;l.headers=d=Jt.from(d),l.url=Fv(Pv(l.baseURL,l.url,l.allowAbsoluteUrls),n.params,n.paramsSerializer),m&&d.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let y;if(H.isFormData(r)){if(Mt.hasStandardBrowserEnv||Mt.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((y=d.getContentType())!==!1){const[p,...b]=y?y.split(";").map(S=>S.trim()).filter(Boolean):[];d.setContentType([p||"multipart/form-data",...b].join("; "))}}if(Mt.hasStandardBrowserEnv&&(i&&H.isFunction(i)&&(i=i(l)),i||i!==!1&&x3(l.url))){const p=u&&o&&S3.read(o);p&&d.set(u,p)}return l},C3=typeof XMLHttpRequest<"u",_3=C3&&function(n){return new Promise(function(r,i){const u=Iv(n);let o=u.data;const d=Jt.from(u.headers).normalize();let{responseType:m,onUploadProgress:y,onDownloadProgress:p}=u,b,S,w,C,E;function T(){C&&C(),E&&E(),u.cancelToken&&u.cancelToken.unsubscribe(b),u.signal&&u.signal.removeEventListener("abort",b)}let j=new XMLHttpRequest;j.open(u.method.toUpperCase(),u.url,!0),j.timeout=u.timeout;function _(){if(!j)return;const R=Jt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),$={data:!m||m==="text"||m==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:R,config:n,request:j};Jv(function(F){r(F),T()},function(F){i(F),T()},$),j=null}"onloadend"in j?j.onloadend=_:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(_)},j.onabort=function(){j&&(i(new ve("Request aborted",ve.ECONNABORTED,n,j)),j=null)},j.onerror=function(){i(new ve("Network Error",ve.ERR_NETWORK,n,j)),j=null},j.ontimeout=function(){let X=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const $=u.transitional||Gv;u.timeoutErrorMessage&&(X=u.timeoutErrorMessage),i(new ve(X,$.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,n,j)),j=null},o===void 0&&d.setContentType(null),"setRequestHeader"in j&&H.forEach(d.toJSON(),function(X,$){j.setRequestHeader($,X)}),H.isUndefined(u.withCredentials)||(j.withCredentials=!!u.withCredentials),m&&m!=="json"&&(j.responseType=u.responseType),p&&([w,E]=io(p,!0),j.addEventListener("progress",w)),y&&j.upload&&([S,C]=io(y),j.upload.addEventListener("progress",S),j.upload.addEventListener("loadend",C)),(u.cancelToken||u.signal)&&(b=R=>{j&&(i(!R||R.type?new Zs(null,n,j):R),j.abort(),j=null)},u.cancelToken&&u.cancelToken.subscribe(b),u.signal&&(u.signal.aborted?b():u.signal.addEventListener("abort",b)));const D=v3(u.url);if(D&&Mt.protocols.indexOf(D)===-1){i(new ve("Unsupported protocol "+D+":",ve.ERR_BAD_REQUEST,n));return}j.send(o||null)})},N3=(n,l)=>{const{length:r}=n=n?n.filter(Boolean):[];if(l||r){let i=new AbortController,u;const o=function(p){if(!u){u=!0,m();const b=p instanceof Error?p:this.reason;i.abort(b instanceof ve?b:new Zs(b instanceof Error?b.message:b))}};let d=l&&setTimeout(()=>{d=null,o(new ve(`timeout ${l} of ms exceeded`,ve.ETIMEDOUT))},l);const m=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),n=null)};n.forEach(p=>p.addEventListener("abort",o));const{signal:y}=i;return y.unsubscribe=()=>H.asap(m),y}},j3=function*(n,l){let r=n.byteLength;if(r<l){yield n;return}let i=0,u;for(;i<r;)u=i+l,yield n.slice(i,u),i=u},A3=async function*(n,l){for await(const r of T3(n))yield*j3(r,l)},T3=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const l=n.getReader();try{for(;;){const{done:r,value:i}=await l.read();if(r)break;yield i}}finally{await l.cancel()}},Sy=(n,l,r,i)=>{const u=A3(n,l);let o=0,d,m=y=>{d||(d=!0,i&&i(y))};return new ReadableStream({async pull(y){try{const{done:p,value:b}=await u.next();if(p){m(),y.close();return}let S=b.byteLength;if(r){let w=o+=S;r(w)}y.enqueue(new Uint8Array(b))}catch(p){throw m(p),p}},cancel(y){return m(y),u.return()}},{highWaterMark:2})},Eo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wv=Eo&&typeof ReadableStream=="function",R3=Eo&&(typeof TextEncoder=="function"?(n=>l=>n.encode(l))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),e1=(n,...l)=>{try{return!!n(...l)}catch{return!1}},O3=Wv&&e1(()=>{let n=!1;const l=new Request(Mt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!l}),wy=64*1024,bd=Wv&&e1(()=>H.isReadableStream(new Response("").body)),ro={stream:bd&&(n=>n.body)};Eo&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(l=>{!ro[l]&&(ro[l]=H.isFunction(n[l])?r=>r[l]():(r,i)=>{throw new ve(`Response type '${l}' is not supported`,ve.ERR_NOT_SUPPORT,i)})})})(new Response);const D3=async n=>{if(n==null)return 0;if(H.isBlob(n))return n.size;if(H.isSpecCompliantForm(n))return(await new Request(Mt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(H.isArrayBufferView(n)||H.isArrayBuffer(n))return n.byteLength;if(H.isURLSearchParams(n)&&(n=n+""),H.isString(n))return(await R3(n)).byteLength},M3=async(n,l)=>{const r=H.toFiniteNumber(n.getContentLength());return r??D3(l)},U3=Eo&&(async n=>{let{url:l,method:r,data:i,signal:u,cancelToken:o,timeout:d,onDownloadProgress:m,onUploadProgress:y,responseType:p,headers:b,withCredentials:S="same-origin",fetchOptions:w}=Iv(n);p=p?(p+"").toLowerCase():"text";let C=N3([u,o&&o.toAbortSignal()],d),E;const T=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let j;try{if(y&&O3&&r!=="get"&&r!=="head"&&(j=await M3(b,i))!==0){let $=new Request(l,{method:"POST",body:i,duplex:"half"}),k;if(H.isFormData(i)&&(k=$.headers.get("content-type"))&&b.setContentType(k),$.body){const[F,I]=by(j,io(gy(y)));i=Sy($.body,wy,F,I)}}H.isString(S)||(S=S?"include":"omit");const _="credentials"in Request.prototype;E=new Request(l,{...w,signal:C,method:r.toUpperCase(),headers:b.normalize().toJSON(),body:i,duplex:"half",credentials:_?S:void 0});let D=await fetch(E);const R=bd&&(p==="stream"||p==="response");if(bd&&(m||R&&T)){const $={};["status","statusText","headers"].forEach(ae=>{$[ae]=D[ae]});const k=H.toFiniteNumber(D.headers.get("content-length")),[F,I]=m&&by(k,io(gy(m),!0))||[];D=new Response(Sy(D.body,wy,F,()=>{I&&I(),T&&T()}),$)}p=p||"text";let X=await ro[H.findKey(ro,p)||"text"](D,n);return!R&&T&&T(),await new Promise(($,k)=>{Jv($,k,{data:X,headers:Jt.from(D.headers),status:D.status,statusText:D.statusText,config:n,request:E})})}catch(_){throw T&&T(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,n,E),{cause:_.cause||_}):ve.from(_,_&&_.code,n,E)}}),gd={http:ZS,xhr:_3,fetch:U3};H.forEach(gd,(n,l)=>{if(n){try{Object.defineProperty(n,"name",{value:l})}catch{}Object.defineProperty(n,"adapterName",{value:l})}});const Ey=n=>`- ${n}`,L3=n=>H.isFunction(n)||n===null||n===!1,t1={getAdapter:n=>{n=H.isArray(n)?n:[n];const{length:l}=n;let r,i;const u={};for(let o=0;o<l;o++){r=n[o];let d;if(i=r,!L3(r)&&(i=gd[(d=String(r)).toLowerCase()],i===void 0))throw new ve(`Unknown adapter '${d}'`);if(i)break;u[d||"#"+o]=i}if(!i){const o=Object.entries(u).map(([m,y])=>`adapter ${m} `+(y===!1?"is not supported by the environment":"is not available in the build"));let d=l?o.length>1?`since :
54
- `+o.map(Ey).join(`
55
- `):" "+Ey(o[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:gd};function Pf(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zs(null,n)}function Cy(n){return Pf(n),n.headers=Jt.from(n.headers),n.data=Jf.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),t1.getAdapter(n.adapter||vr.adapter)(n).then(function(i){return Pf(n),i.data=Jf.call(n,n.transformResponse,i),i.headers=Jt.from(i.headers),i},function(i){return Zv(i)||(Pf(n),i&&i.response&&(i.response.data=Jf.call(n,n.transformResponse,i.response),i.response.headers=Jt.from(i.response.headers))),Promise.reject(i)})}const n1="1.9.0",Co={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Co[n]=function(i){return typeof i===n||"a"+(l<1?"n ":" ")+n}});const _y={};Co.transitional=function(l,r,i){function u(o,d){return"[Axios v"+n1+"] Transitional option '"+o+"'"+d+(i?". "+i:"")}return(o,d,m)=>{if(l===!1)throw new ve(u(d," has been removed"+(r?" in "+r:"")),ve.ERR_DEPRECATED);return r&&!_y[d]&&(_y[d]=!0,console.warn(u(d," has been deprecated since v"+r+" and will be removed in the near future"))),l?l(o,d,m):!0}};Co.spelling=function(l){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${l}`),!0)};function q3(n,l,r){if(typeof n!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let u=i.length;for(;u-- >0;){const o=i[u],d=l[o];if(d){const m=n[o],y=m===void 0||d(m,o,n);if(y!==!0)throw new ve("option "+o+" must be "+y,ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}const Ju={assertOptions:q3,validators:Co},In=Ju.validators;let Ql=class{constructor(l){this.defaults=l||{},this.interceptors={request:new yy,response:new yy}}async request(l,r){try{return await this._request(l,r)}catch(i){if(i instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const o=u.stack?u.stack.replace(/^.+\n/,""):"";try{i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=`
56
- `+o):i.stack=o}catch{}}throw i}}_request(l,r){typeof l=="string"?(r=r||{},r.url=l):r=l||{},r=$l(this.defaults,r);const{transitional:i,paramsSerializer:u,headers:o}=r;i!==void 0&&Ju.assertOptions(i,{silentJSONParsing:In.transitional(In.boolean),forcedJSONParsing:In.transitional(In.boolean),clarifyTimeoutError:In.transitional(In.boolean)},!1),u!=null&&(H.isFunction(u)?r.paramsSerializer={serialize:u}:Ju.assertOptions(u,{encode:In.function,serialize:In.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ju.assertOptions(r,{baseUrl:In.spelling("baseURL"),withXsrfToken:In.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],E=>{delete o[E]}),r.headers=Jt.concat(d,o);const m=[];let y=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(r)===!1||(y=y&&T.synchronous,m.unshift(T.fulfilled,T.rejected))});const p=[];this.interceptors.response.forEach(function(T){p.push(T.fulfilled,T.rejected)});let b,S=0,w;if(!y){const E=[Cy.bind(this),void 0];for(E.unshift.apply(E,m),E.push.apply(E,p),w=E.length,b=Promise.resolve(r);S<w;)b=b.then(E[S++],E[S++]);return b}w=m.length;let C=r;for(S=0;S<w;){const E=m[S++],T=m[S++];try{C=E(C)}catch(j){T.call(this,j);break}}try{b=Cy.call(this,C)}catch(E){return Promise.reject(E)}for(S=0,w=p.length;S<w;)b=b.then(p[S++],p[S++]);return b}getUri(l){l=$l(this.defaults,l);const r=Pv(l.baseURL,l.url,l.allowAbsoluteUrls);return Fv(r,l.params,l.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(l){Ql.prototype[l]=function(r,i){return this.request($l(i||{},{method:l,url:r,data:(i||{}).data}))}});H.forEach(["post","put","patch"],function(l){function r(i){return function(o,d,m){return this.request($l(m||{},{method:l,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:d}))}}Ql.prototype[l]=r(),Ql.prototype[l+"Form"]=r(!0)});let z3=class a1{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const i=this;this.promise.then(u=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](u);i._listeners=null}),this.promise.then=u=>{let o;const d=new Promise(m=>{i.subscribe(m),o=m}).then(u);return d.cancel=function(){i.unsubscribe(o)},d},l(function(o,d,m){i.reason||(i.reason=new Zs(o,d,m),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const r=this._listeners.indexOf(l);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const l=new AbortController,r=i=>{l.abort(i)};return this.subscribe(r),l.signal.unsubscribe=()=>this.unsubscribe(r),l.signal}static source(){let l;return{token:new a1(function(u){l=u}),cancel:l}}};function B3(n){return function(r){return n.apply(null,r)}}function H3(n){return H.isObject(n)&&n.isAxiosError===!0}const xd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xd).forEach(([n,l])=>{xd[l]=n});function l1(n){const l=new Ql(n),r=Uv(Ql.prototype.request,l);return H.extend(r,Ql.prototype,l,{allOwnKeys:!0}),H.extend(r,l,null,{allOwnKeys:!0}),r.create=function(u){return l1($l(n,u))},r}const lt=l1(vr);lt.Axios=Ql;lt.CanceledError=Zs;lt.CancelToken=z3;lt.isCancel=Zv;lt.VERSION=n1;lt.toFormData=wo;lt.AxiosError=ve;lt.Cancel=lt.CanceledError;lt.all=function(l){return Promise.all(l)};lt.spread=B3;lt.isAxiosError=H3;lt.mergeConfig=$l;lt.AxiosHeaders=Jt;lt.formToJSON=n=>Xv(H.isHTMLForm(n)?new FormData(n):n);lt.getAdapter=t1.getAdapter;lt.HttpStatusCode=xd;lt.default=lt;const{Axios:UN,AxiosError:k3,CanceledError:LN,isCancel:qN,CancelToken:zN,VERSION:BN,all:HN,Cancel:kN,isAxiosError:uo,spread:QN,toFormData:YN,AxiosHeaders:VN,HttpStatusCode:$N,formToJSON:KN,getAdapter:FN,mergeConfig:GN}=lt,Sd="__access_token__",Q3=()=>{try{const n=localStorage.getItem(Sd);return n||void 0}catch{return}},zu=n=>{n?localStorage.setItem(Sd,n):localStorage.removeItem(Sd)};let Y3={data:""},V3=n=>typeof window=="object"?((n?n.querySelector("#_goober"):window._goober)||Object.assign((n||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:n||Y3,$3=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,K3=/\/\*[^]*?\*\/| +/g,Ny=/\n+/g,ol=(n,l)=>{let r="",i="",u="";for(let o in n){let d=n[o];o[0]=="@"?o[1]=="i"?r=o+" "+d+";":i+=o[1]=="f"?ol(d,o):o+"{"+ol(d,o[1]=="k"?"":l)+"}":typeof d=="object"?i+=ol(d,l?l.replace(/([^,])+/g,m=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,y=>/&/.test(y)?y.replace(/&/g,m):m?m+" "+y:y)):o):d!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),u+=ol.p?ol.p(o,d):o+":"+d+";")}return r+(l&&u?l+"{"+u+"}":u)+i},Aa={},s1=n=>{if(typeof n=="object"){let l="";for(let r in n)l+=r+s1(n[r]);return l}return n},F3=(n,l,r,i,u)=>{let o=s1(n),d=Aa[o]||(Aa[o]=(y=>{let p=0,b=11;for(;p<y.length;)b=101*b+y.charCodeAt(p++)>>>0;return"go"+b})(o));if(!Aa[d]){let y=o!==n?n:(p=>{let b,S,w=[{}];for(;b=$3.exec(p.replace(K3,""));)b[4]?w.shift():b[3]?(S=b[3].replace(Ny," ").trim(),w.unshift(w[0][S]=w[0][S]||{})):w[0][b[1]]=b[2].replace(Ny," ").trim();return w[0]})(n);Aa[d]=ol(u?{["@keyframes "+d]:y}:y,r?"":"."+d)}let m=r&&Aa.g?Aa.g:null;return r&&(Aa.g=Aa[d]),((y,p,b,S)=>{S?p.data=p.data.replace(S,y):p.data.indexOf(y)===-1&&(p.data=b?y+p.data:p.data+y)})(Aa[d],l,i,m),d},G3=(n,l,r)=>n.reduce((i,u,o)=>{let d=l[o];if(d&&d.call){let m=d(r),y=m&&m.props&&m.props.className||/^go/.test(m)&&m;d=y?"."+y:m&&typeof m=="object"?m.props?"":ol(m,""):m===!1?"":m}return i+u+(d??"")},"");function _o(n){let l=this||{},r=n.call?n(l.p):n;return F3(r.unshift?r.raw?G3(r,[].slice.call(arguments,1),l.p):r.reduce((i,u)=>Object.assign(i,u&&u.call?u(l.p):u),{}):r,V3(l.target),l.g,l.o,l.k)}let i1,wd,Ed;_o.bind({g:1});let Da=_o.bind({k:1});function X3(n,l,r,i){ol.p=l,i1=n,wd=r,Ed=i}function ml(n,l){let r=this||{};return function(){let i=arguments;function u(o,d){let m=Object.assign({},o),y=m.className||u.className;r.p=Object.assign({theme:wd&&wd()},m),r.o=/ *go\d+/.test(y),m.className=_o.apply(r,i)+(y?" "+y:"");let p=n;return n[0]&&(p=m.as||n,delete m.as),Ed&&p[0]&&Ed(m),i1(p,m)}return u}}var Z3=n=>typeof n=="function",oo=(n,l)=>Z3(n)?n(l):n,J3=(()=>{let n=0;return()=>(++n).toString()})(),r1=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let l=matchMedia("(prefers-reduced-motion: reduce)");n=!l||l.matches}return n}})(),P3=20,u1=(n,l)=>{switch(l.type){case 0:return{...n,toasts:[l.toast,...n.toasts].slice(0,P3)};case 1:return{...n,toasts:n.toasts.map(o=>o.id===l.toast.id?{...o,...l.toast}:o)};case 2:let{toast:r}=l;return u1(n,{type:n.toasts.find(o=>o.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=l;return{...n,toasts:n.toasts.map(o=>o.id===i||i===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return l.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(o=>o.id!==l.toastId)};case 5:return{...n,pausedAt:l.time};case 6:let u=l.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+u}))}}},Pu=[],kl={toasts:[],pausedAt:void 0},Xl=n=>{kl=u1(kl,n),Pu.forEach(l=>{l(kl)})},I3={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},W3=(n={})=>{let[l,r]=g.useState(kl),i=g.useRef(kl);g.useEffect(()=>(i.current!==kl&&r(kl),Pu.push(r),()=>{let o=Pu.indexOf(r);o>-1&&Pu.splice(o,1)}),[]);let u=l.toasts.map(o=>{var d,m,y;return{...n,...n[o.type],...o,removeDelay:o.removeDelay||((d=n[o.type])==null?void 0:d.removeDelay)||(n==null?void 0:n.removeDelay),duration:o.duration||((m=n[o.type])==null?void 0:m.duration)||(n==null?void 0:n.duration)||I3[o.type],style:{...n.style,...(y=n[o.type])==null?void 0:y.style,...o.style}}});return{...l,toasts:u}},ew=(n,l="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:l,ariaProps:{role:"status","aria-live":"polite"},message:n,pauseDuration:0,...r,id:(r==null?void 0:r.id)||J3()}),br=n=>(l,r)=>{let i=ew(l,n,r);return Xl({type:2,toast:i}),i.id},Qt=(n,l)=>br("blank")(n,l);Qt.error=br("error");Qt.success=br("success");Qt.loading=br("loading");Qt.custom=br("custom");Qt.dismiss=n=>{Xl({type:3,toastId:n})};Qt.remove=n=>Xl({type:4,toastId:n});Qt.promise=(n,l,r)=>{let i=Qt.loading(l.loading,{...r,...r==null?void 0:r.loading});return typeof n=="function"&&(n=n()),n.then(u=>{let o=l.success?oo(l.success,u):void 0;return o?Qt.success(o,{id:i,...r,...r==null?void 0:r.success}):Qt.dismiss(i),u}).catch(u=>{let o=l.error?oo(l.error,u):void 0;o?Qt.error(o,{id:i,...r,...r==null?void 0:r.error}):Qt.dismiss(i)}),n};var tw=(n,l)=>{Xl({type:1,toast:{id:n,height:l}})},nw=()=>{Xl({type:5,time:Date.now()})},rr=new Map,aw=1e3,lw=(n,l=aw)=>{if(rr.has(n))return;let r=setTimeout(()=>{rr.delete(n),Xl({type:4,toastId:n})},l);rr.set(n,r)},sw=n=>{let{toasts:l,pausedAt:r}=W3(n);g.useEffect(()=>{if(r)return;let o=Date.now(),d=l.map(m=>{if(m.duration===1/0)return;let y=(m.duration||0)+m.pauseDuration-(o-m.createdAt);if(y<0){m.visible&&Qt.dismiss(m.id);return}return setTimeout(()=>Qt.dismiss(m.id),y)});return()=>{d.forEach(m=>m&&clearTimeout(m))}},[l,r]);let i=g.useCallback(()=>{r&&Xl({type:6,time:Date.now()})},[r]),u=g.useCallback((o,d)=>{let{reverseOrder:m=!1,gutter:y=8,defaultPosition:p}=d||{},b=l.filter(C=>(C.position||p)===(o.position||p)&&C.height),S=b.findIndex(C=>C.id===o.id),w=b.filter((C,E)=>E<S&&C.visible).length;return b.filter(C=>C.visible).slice(...m?[w+1]:[0,w]).reduce((C,E)=>C+(E.height||0)+y,0)},[l]);return g.useEffect(()=>{l.forEach(o=>{if(o.dismissed)lw(o.id,o.removeDelay);else{let d=rr.get(o.id);d&&(clearTimeout(d),rr.delete(o.id))}})},[l]),{toasts:l,handlers:{updateHeight:tw,startPause:nw,endPause:i,calculateOffset:u}}},iw=Da`
57
- from {
58
- transform: scale(0) rotate(45deg);
59
- opacity: 0;
60
- }
61
- to {
62
- transform: scale(1) rotate(45deg);
63
- opacity: 1;
64
- }`,rw=Da`
65
- from {
66
- transform: scale(0);
67
- opacity: 0;
68
- }
69
- to {
70
- transform: scale(1);
71
- opacity: 1;
72
- }`,uw=Da`
73
- from {
74
- transform: scale(0) rotate(90deg);
75
- opacity: 0;
76
- }
77
- to {
78
- transform: scale(1) rotate(90deg);
79
- opacity: 1;
80
- }`,ow=ml("div")`
81
- width: 20px;
82
- opacity: 0;
83
- height: 20px;
84
- border-radius: 10px;
85
- background: ${n=>n.primary||"#ff4b4b"};
86
- position: relative;
87
- transform: rotate(45deg);
88
-
89
- animation: ${iw} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
90
- forwards;
91
- animation-delay: 100ms;
92
-
93
- &:after,
94
- &:before {
95
- content: '';
96
- animation: ${rw} 0.15s ease-out forwards;
97
- animation-delay: 150ms;
98
- position: absolute;
99
- border-radius: 3px;
100
- opacity: 0;
101
- background: ${n=>n.secondary||"#fff"};
102
- bottom: 9px;
103
- left: 4px;
104
- height: 2px;
105
- width: 12px;
106
- }
107
-
108
- &:before {
109
- animation: ${uw} 0.15s ease-out forwards;
110
- animation-delay: 180ms;
111
- transform: rotate(90deg);
112
- }
113
- `,cw=Da`
114
- from {
115
- transform: rotate(0deg);
116
- }
117
- to {
118
- transform: rotate(360deg);
119
- }
120
- `,fw=ml("div")`
121
- width: 12px;
122
- height: 12px;
123
- box-sizing: border-box;
124
- border: 2px solid;
125
- border-radius: 100%;
126
- border-color: ${n=>n.secondary||"#e0e0e0"};
127
- border-right-color: ${n=>n.primary||"#616161"};
128
- animation: ${cw} 1s linear infinite;
129
- `,dw=Da`
130
- from {
131
- transform: scale(0) rotate(45deg);
132
- opacity: 0;
133
- }
134
- to {
135
- transform: scale(1) rotate(45deg);
136
- opacity: 1;
137
- }`,hw=Da`
138
- 0% {
139
- height: 0;
140
- width: 0;
141
- opacity: 0;
142
- }
143
- 40% {
144
- height: 0;
145
- width: 6px;
146
- opacity: 1;
147
- }
148
- 100% {
149
- opacity: 1;
150
- height: 10px;
151
- }`,mw=ml("div")`
152
- width: 20px;
153
- opacity: 0;
154
- height: 20px;
155
- border-radius: 10px;
156
- background: ${n=>n.primary||"#61d345"};
157
- position: relative;
158
- transform: rotate(45deg);
159
-
160
- animation: ${dw} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
161
- forwards;
162
- animation-delay: 100ms;
163
- &:after {
164
- content: '';
165
- box-sizing: border-box;
166
- animation: ${hw} 0.2s ease-out forwards;
167
- opacity: 0;
168
- animation-delay: 200ms;
169
- position: absolute;
170
- border-right: 2px solid;
171
- border-bottom: 2px solid;
172
- border-color: ${n=>n.secondary||"#fff"};
173
- bottom: 6px;
174
- left: 6px;
175
- height: 10px;
176
- width: 6px;
177
- }
178
- `,pw=ml("div")`
179
- position: absolute;
180
- `,yw=ml("div")`
181
- position: relative;
182
- display: flex;
183
- justify-content: center;
184
- align-items: center;
185
- min-width: 20px;
186
- min-height: 20px;
187
- `,vw=Da`
188
- from {
189
- transform: scale(0.6);
190
- opacity: 0.4;
191
- }
192
- to {
193
- transform: scale(1);
194
- opacity: 1;
195
- }`,bw=ml("div")`
196
- position: relative;
197
- transform: scale(0.6);
198
- opacity: 0.4;
199
- min-width: 20px;
200
- animation: ${vw} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
- forwards;
202
- `,gw=({toast:n})=>{let{icon:l,type:r,iconTheme:i}=n;return l!==void 0?typeof l=="string"?g.createElement(bw,null,l):l:r==="blank"?null:g.createElement(yw,null,g.createElement(fw,{...i}),r!=="loading"&&g.createElement(pw,null,r==="error"?g.createElement(ow,{...i}):g.createElement(mw,{...i})))},xw=n=>`
203
- 0% {transform: translate3d(0,${n*-200}%,0) scale(.6); opacity:.5;}
204
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
205
- `,Sw=n=>`
206
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
207
- 100% {transform: translate3d(0,${n*-150}%,-1px) scale(.6); opacity:0;}
208
- `,ww="0%{opacity:0;} 100%{opacity:1;}",Ew="0%{opacity:1;} 100%{opacity:0;}",Cw=ml("div")`
209
- display: flex;
210
- align-items: center;
211
- background: #fff;
212
- color: #363636;
213
- line-height: 1.3;
214
- will-change: transform;
215
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
216
- max-width: 350px;
217
- pointer-events: auto;
218
- padding: 8px 10px;
219
- border-radius: 8px;
220
- `,_w=ml("div")`
221
- display: flex;
222
- justify-content: center;
223
- margin: 4px 10px;
224
- color: inherit;
225
- flex: 1 1 auto;
226
- white-space: pre-line;
227
- `,Nw=(n,l)=>{let r=n.includes("top")?1:-1,[i,u]=r1()?[ww,Ew]:[xw(r),Sw(r)];return{animation:l?`${Da(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Da(u)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},jw=g.memo(({toast:n,position:l,style:r,children:i})=>{let u=n.height?Nw(n.position||l||"top-center",n.visible):{opacity:0},o=g.createElement(gw,{toast:n}),d=g.createElement(_w,{...n.ariaProps},oo(n.message,n));return g.createElement(Cw,{className:n.className,style:{...u,...r,...n.style}},typeof i=="function"?i({icon:o,message:d}):g.createElement(g.Fragment,null,o,d))});X3(g.createElement);var Aw=({id:n,className:l,style:r,onHeightUpdate:i,children:u})=>{let o=g.useCallback(d=>{if(d){let m=()=>{let y=d.getBoundingClientRect().height;i(n,y)};m(),new MutationObserver(m).observe(d,{subtree:!0,childList:!0,characterData:!0})}},[n,i]);return g.createElement("div",{ref:o,className:l,style:r},u)},Tw=(n,l)=>{let r=n.includes("top"),i=r?{top:0}:{bottom:0},u=n.includes("center")?{justifyContent:"center"}:n.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:r1()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${l*(r?1:-1)}px)`,...i,...u}},Rw=_o`
228
- z-index: 9999;
229
- > * {
230
- pointer-events: auto;
231
- }
232
- `,Bu=16,Ow=({reverseOrder:n,position:l="top-center",toastOptions:r,gutter:i,children:u,containerStyle:o,containerClassName:d})=>{let{toasts:m,handlers:y}=sw(r);return g.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Bu,left:Bu,right:Bu,bottom:Bu,pointerEvents:"none",...o},className:d,onMouseEnter:y.startPause,onMouseLeave:y.endPause},m.map(p=>{let b=p.position||l,S=y.calculateOffset(p,{reverseOrder:n,gutter:i,defaultPosition:l}),w=Tw(b,S);return g.createElement(Aw,{id:p.id,key:p.id,onHeightUpdate:y.updateHeight,className:p.visible?Rw:"",style:w},p.type==="custom"?oo(p.message,p):u?u(p):g.createElement(jw,{toast:p,position:b}))}))},Pt=Qt;const ht=new W2({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(n,l)=>{var r;return uo(l)&&((r=l.response)==null?void 0:r.status)===404?!1:n<3}}},mutationCache:new Tv({onError:n=>{var l;uo(n)&&n.status&&n.status>=400&&n.status<500&&(l=n.response)!=null&&l.data.error&&Pt.error(n.response.data.error)}})}),Dw=async()=>{const{data:n}=await Qd.post("/auth/refresh");return n.data.accessToken},Mw=async n=>{const{data:l}=await Qd.post("/auth/login",n);return l.data.accessToken},If=()=>{ht.invalidateQueries({queryKey:["accessToken"]})},gr=(()=>{let n=Promise.resolve(Q3()),l=!1;const r=async()=>{await Qd.post("/auth/logout"),zu(void 0),window.location.reload()};return{get:async()=>n.then(d=>(If(),d)),refresh:()=>(l||(l=!0,n=Dw().then(d=>(zu(d),d)).catch(()=>{zu(void 0),r()}).finally(()=>{l=!1,If()})),n),login:d=>(l||(l=!0,n=Mw(d).then(m=>(zu(m),m)).finally(()=>{l=!1,If()})),n),logout:r}})(),o1=location.hostname.includes("app.dataramen.xyz")?"http://localhost:4466/api":"/api",Me=lt.create({baseURL:o1,withCredentials:!0});Me.interceptors.request.use(async n=>{const l=await gr.get();return l&&(n.headers.Authorization=`Bearer ${l}`),n});Me.interceptors.response.use(n=>n,n=>{var l;return uo(n)&&n.status===401&&((l=n==null?void 0:n.response)==null?void 0:l.data.error)!=="Missing auth token"&&gr.refresh(),Promise.reject(n)});const Qd=lt.create({baseURL:o1,withCredentials:!0}),pl="data-sources",c1="auth-user",Uw=n=>Wt({queryKey:["project","datasources",n],queryFn:async()=>{const{data:l}=await Me.get(`/project/team/${n}/datasources`);return l.data},enabled:!!n}),Lw=n=>Wt({queryKey:["project","saved-queries",n],queryFn:async()=>{const{data:l}=await Me.get(`/project/team/${n}/queries`);return l.data},enabled:!!n}),Js=n=>{const l=["project","datasources"],r=["project","saved-queries"];return Promise.all([ht.invalidateQueries(l),ht.invalidateQueries(r)])},qw=n=>{const l=["trash","team"];return ht.invalidateQueries(l)},zw=(n,l)=>Wt({queryKey:["project",l.teamId,"tables",n,l.selectedDataSources],queryFn:async()=>{const{data:r}=await Me.get(`/project/team/${l.teamId}/query`,{params:{size:30,search:n,selectedDataSources:l.selectedDataSources}});return r.data},enabled:!!l.teamId,staleTime:0,keepPreviousData:!0}),Bw=(n,l)=>{},Hw=()=>{},kw={event:Bw,pageView:Hw},No=n=>Wt([pl,n],async()=>{const{data:l}=await Me.get("/data-sources/"+n);return l.data},{enabled:!!n}),Yd=n=>Wt({queryKey:[pl,n.teamId],queryFn:async()=>{const{data:l}=await Me.get("/data-sources",{params:n});return l.data},enabled:n.teamId!==void 0}),Ps=n=>Wt({queryKey:[pl,n,"inspections"],queryFn:async()=>{const{data:l}=await Me.get(`/data-sources/${n}/inspections`);return l.data},enabled:!!n}),Qw=()=>qt(async n=>{const{data:l}=await Me.post("/data-sources",n);return l.data},{onSuccess:()=>{ht.invalidateQueries([pl]),Js()},onError:()=>{}}),Yw=()=>qt({mutationFn:async({dataSource:n,id:l})=>{const{data:r}=await Me.put(`/data-sources/${l}`,n);return r.data},onSuccess:()=>{ht.invalidateQueries([pl]),Js()}}),f1=()=>qt({mutationFn:async n=>{await Me.post(`/data-sources/${n}/inspect`)},onSuccess:()=>{ht.invalidateQueries([pl])}}),Vw=()=>qt({mutationFn:async n=>{await Me.delete(`/data-sources/${n}`)},onSuccess:()=>{ht.invalidateQueries([pl]),Js()}}),d1=()=>Wt(["accessToken"],gr.get),la=()=>{const{data:n}=d1();return Wt({queryKey:[c1],queryFn:async()=>{const{data:l}=await Me.get("/users");return l.data},enabled:!!n,retry:(l,r)=>uo(r)&&r.code==="ERR_NETWORK"?!1:l<3})},$w=()=>qt({mutationFn:async n=>{const{data:l}=await Me.patch("/users",n);return l.data},onSuccess:async n=>{ht.setQueryData([c1],n)}}),Kw=()=>qt({mutationFn:async n=>(await Me.post("/users",n),!0),onSuccess:()=>{ht.invalidateQueries({queryKey:["team-users"]})}}),Fw="_alert_1cdq8_2",Gw="_info_1cdq8_2",Xw="_danger_1cdq8_2",Zw="_success_1cdq8_2",Jw="_warning_1cdq8_2",Pw="_dark_1cdq8_2",Ds={alert:Fw,info:Gw,danger:Xw,success:Zw,warning:Jw,dark:Pw};function h1(n){var l,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(l=0;l<u;l++)n[l]&&(r=h1(n[l]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function se(){for(var n,l,r=0,i="",u=arguments.length;r<u;r++)(n=arguments[r])&&(l=h1(n))&&(i&&(i+=" "),i+=l);return i}const Ut=({variant:n,noRounded:l,className:r,children:i,...u})=>h.jsx("div",{className:se(Ds.alert,!l&&"rounded-lg",(n==="info"||!n)&&Ds.info,n==="danger"&&Ds.danger,n==="dark"&&Ds.dark,n==="warning"&&Ds.warning,n==="success"&&Ds.success,r),role:"alert",...u,children:i}),fn=n=>{const l=new Set;let r=n;const i=m=>(l.add(m),()=>l.delete(m)),u=m=>(l.forEach(y=>y(m)),!0),o=m=>{r=typeof m=="function"?m(r):m,u(r)},d=m=>()=>m?m(r):r;return[m=>g.useSyncExternalStore(i,d(m),d(m)),o,{get:()=>r,subscribe:m=>(m(r),i(m))}]};function Iw(n){const l=[];for(const r of n)for(const i of r.columns)i.ref&&(l.push({id:`${r.tableName}->${i.ref.table}.${i.ref.field}`,name:`${r.tableName} in ${i.ref.table}`,where:`${r.tableName}.${i.name} = ${i.ref.table}.${i.ref.field}`,on:{fromTable:i.ref.table,toTable:r.tableName,fromColumn:i.ref.field,toColumn:i.name}}),l.push({id:`${i.ref.table}->${r.tableName}.${i.name}`,name:`${i.ref.table} in ${r.tableName}`,where:`${i.ref.table}.${i.ref.field} = ${r.tableName}.${i.name}`,on:{fromTable:r.tableName,toTable:i.ref.table,fromColumn:i.name,toColumn:i.ref.field}}));return l}const Ww=n=>Wt({queryKey:["hooks",n],queryFn:async()=>{const l=await ht.fetchQuery({queryKey:[pl,n,"inspections"],queryFn:async()=>{const{data:r}=await Me.get(`/data-sources/${n}/inspections`);return r.data}});return Iw(l)},enabled:!!n}),Vd=[{value:"=",label:"equals"},{value:"<>",label:"not equal"},{value:">",label:"greater than"},{value:">=",label:"greater than or equal"},{value:"<",label:"less than"},{value:"<=",label:"less than or equal"},{value:"LIKE",label:"contains"},{value:"NOT LIKE",label:"not contains"},{value:"IN",label:"in list"},{value:"NOT IN",label:"not in list"},{value:"IS NULL",label:"is null"},{value:"IS NOT NULL",label:"is not null"}],$d=Vd.reduce((n,l)=>(n[l.value]=l.label,n),{}),Kd=Vd.reduce((n,l)=>(n[l.label]=l.value,n),{}),Is=n=>n.map(l=>({label:$d[l],value:l})),e4=Is(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),t4=Is(["=","<>","LIKE","NOT LIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);Is(["=","<>","IS NULL","IS NOT NULL"]);const n4=Is(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);Is(["IS NULL","IS NOT NULL"]);Is(["IN","NOT IN"]);const m1=n=>n!=="IS NULL"&&n!=="IS NOT NULL",a4=(n,l)=>m1(n)?n==="IN"||n==="NOT IN"?l.split(",").map(r=>({value:r.trim(),isColumn:!1})):[{value:l,isColumn:!1}]:[],l4=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],s4=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],i4=["date","time","datetime","timestamp","year","date","time","time without time zone","time with time zone","timestamp","timestamp without time zone","timestamp with time zone","interval"],r4=["date","datetime","timestamp","timestamptz"].reduce((n,l)=>(n[l]=!0,n),{}),Wn=n=>n.fn?n.distinct===!0?`${n.fn} distinct ${n.value}`:`${n.fn} ${n.value}`:n.value;var Xt=(n=>(n.OWNER="owner",n.ADMIN="admin",n.EDITOR="editor",n.READ_ONLY="read_only",n))(Xt||{});const jy={[Xt.READ_ONLY]:10,[Xt.EDITOR]:20,[Xt.ADMIN]:30,[Xt.OWNER]:40};function u4(n,l){if(!n||!l)return{};const r=new Set;for(const u of l)u.table&&r.add(u.table);const i={};for(const u of r){const o=n.find(d=>d.tableName===u);if(o){i[u]=[];const d=o.columns.filter(m=>m.isPrimary);for(const m of d)if(l.find(p=>p.table===u&&p.column===m.name))i[u].push(m.name);else{delete i[u];break}}}return i}function o4(n,l,r,i){const{data:u}=Ww(l),{data:o}=Ps(l);return g.useMemo(()=>{const d=u4(o,n==null?void 0:n.result.columns);return{name:r,tabId:i,hooks:(()=>{const m=[];if(!u||!n||!n.result.columns)return m;for(const y of u)(n.result.tables.includes(y.on.toTable)||n.result.tables.includes(y.on.fromTable))&&m.push(y);return m})(),availableJoins:(()=>{const m=[];if(!u||!n||!n.result.columns)return m;for(const y of u)!n.result.tables.includes(y.on.toTable)&&n.result.tables.includes(y.on.fromTable)&&m.push(y);return m})(),allColumns:(n==null?void 0:n.result.allColumns)||[],dataSourceId:l,entities:Object.keys(d),getValue:(m,y)=>{var S;const p=Wn(y),b=(S=n==null?void 0:n.result.columns)==null?void 0:S.findIndex(w=>w.full===p);if(b!=null&&b>-1)return m[b]},getEntityKey:(m,y)=>d[m].reduce((p,b)=>{var w;const S=(w=n==null?void 0:n.result.columns)==null?void 0:w.findIndex(C=>C.column===b&&C.table===m);return S!=null&&S>-1&&p.push([b,y[S]]),p},[]),getColumnType:m=>{const y=n==null?void 0:n.result.allColumns.find(p=>p.full===m);if(y)return y.type}}},[n,l,u,o,r])}function c4(n,l){return g.useMemo(()=>({state:n,setState:l}),[n,l])}function Hs(n){return{dataSourceId:n.dataSourceId||"",page:(n==null?void 0:n.page)||0,size:(n==null?void 0:n.size)||50,table:n.table||"",filters:(n==null?void 0:n.filters)||[],joins:(n==null?void 0:n.joins)??[],orderBy:(n==null?void 0:n.orderBy)??[],columns:(n==null?void 0:n.columns)??[],groupBy:(n==null?void 0:n.groupBy)??[],aggregations:(n==null?void 0:n.aggregations)??[]}}const Xe={home:{path:"/"},workbench:{path:"/workbench"},share:{path:"/share"},login:{path:"/login"}},Fd=n=>{ht.setQueryData(["workbench-tabs"],l=>n(l||[]))},f4=(n,l)=>{ht.setQueryData(["workbench-tabs",n],r=>r&&l(r))},Gd=()=>Wt({queryKey:["workbench-tabs"],queryFn:async()=>{const{data:n}=await Me.get("/workbench-tabs");return n.data}}),d4=n=>Wt({queryKey:["workbench-tabs",n],queryFn:async()=>{const{data:l}=await Me.get(`/workbench-tabs/${n}`);return l.data}}),Ws=()=>qt({mutationFn:async n=>{const{data:l}=await Me.post("/workbench-tabs",n);return l.data},onSuccess:async n=>{Fd(l=>[...l,n])}}),h4=()=>qt({mutationFn:async n=>(await Me.patch(`/workbench-tabs/${n}`,{archived:!0}),n),onMutate:n=>{Fd(l=>l.filter(r=>r.id!==n))}}),m4=()=>qt({mutationFn:async({id:n,payload:l})=>(await Me.patch(`/workbench-tabs/${n}`,l),!0),onMutate:({id:n,payload:l})=>{f4(n,r=>({...r,...l})),Fd(r=>r.map(i=>i.id!==n?i:{...i,name:l.name||i.name}))}}),p4=(n,l)=>{const{dataSourceId:r,searchAll:i,table:u,filters:o,joins:d,orderBy:m,groupBy:y,columns:p,aggregations:b,page:S=0,size:w=20}=l;return Wt({queryKey:["workbench-tab-runner",n,r,u,S,w,o,b,d,m,y,p,i],queryFn:async()=>{const{data:C}=await Me.post(`/workbench-tabs/${n}/run`,l);return C.data},retry:1,enabled:!!u&&!!r,cacheTime:0})},p1=n=>ht.invalidateQueries({queryKey:["workbench-tab-runner",n]}),[y4,Wf,v4]=fn(void 0),b4=async()=>new Promise(n=>{Wf({onCancel:()=>{Wf(void 0),n(void 0)},onConfirm:(l,r,i)=>{Wf(void 0),n({dsId:i,id:r,type:l})}})}),xr=n=>{const l=Lt(),r=Ws();return g.useEffect(()=>{var i;(i=r==null?void 0:r.data)!=null&&i.id&&l(`${Xe.workbench.path}/tab/${r.data.id}`)},[r.data]),g.useCallback(()=>{v4.get()||b4().then(u=>{(u==null?void 0:u.type)==="table"?r.mutate({name:u.id,opts:Hs({table:u.id,dataSourceId:u.dsId})}):(u==null?void 0:u.type)==="query"&&r.mutate({queryId:u.id})})},[l,n])},Sr=n=>{const{data:l}=la();return g.useMemo(()=>l?jy[l.teamRole]>=jy[n]:!1,[l,n])},g4="_input_1r9ep_2",x4="_small_1r9ep_2",S4="_content_1r9ep_2",w4="_form_1r9ep_2",E4="_mode-select_1r9ep_2",ze={input:g4,small:x4,content:S4,form:w4,switch:"_switch_1r9ep_2",modeSelect:E4},C4="_modal_115vq_2",_4="_modal-visible_115vq_2",N4="_modal-invisible_115vq_2",j4="_backdrop_115vq_2",A4="_modal-container_115vq_2",T4="_close-button_115vq_2",qs={modal:C4,modalVisible:_4,modalInvisible:N4,backdrop:j4,modalContainer:A4,closeButton:T4},kn=n=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...n},g.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M368 368L144 144M368 144L144 368"})),dn=({children:n,backdropClose:l,isVisible:r,onClose:i,onClosed:u,noPadding:o=!1,portal:d=!1})=>{const[m,y]=g.useState(!1),p=()=>{l&&i()},b=w=>{r||getComputedStyle(w.currentTarget).opacity==="0"&&(y(!1),u&&u())};g.useEffect(()=>{r&&y(!0)},[r]);const S=h.jsxs("div",{onTransitionEnd:b,className:se(qs.modal,r?qs.modalVisible:qs.modalInvisible),children:[h.jsx("div",{onClick:p,className:qs.backdrop}),h.jsx("div",{className:se(qs.modalContainer,o!==!0&&"p-4"),children:m&&n})]});return d?Sv.createPortal(S,document.body):S},sa=({onClick:n})=>{const l=g.useRef(n);return l.current=n,g.useEffect(()=>{const r=i=>{var u;i.key==="Escape"&&((u=l.current)==null||u.call(l))};return window.addEventListener("keyup",r),()=>{window.removeEventListener("keyup",r)}},[]),h.jsx("button",{className:qs.closeButton,onClick:n,children:h.jsx(kn,{width:20,height:20})})},y1=({children:n})=>h.jsx("h2",{className:"text-xl font-semibold",children:n}),wr=n=>{const[l,r]=g.useState(n),[i,u]=g.useState([]),o=g.useRef(n),d=g.useCallback((p,b)=>{r(S=>({...S,[p]:b}))},[]),m=g.useCallback(p=>b=>{b.target.type==="checkbox"?d(p,b.target.checked):d(p,b.target.value),u(S=>S.includes(p)?S:[...S,p])},[d]),y=g.useCallback(()=>{r(o.current),u([])},[]);return[l,{set:d,change:m,reset:y,touched:i}]},R4=({form:n,change:l})=>h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Database URL"}),h.jsx("input",{value:n.dbUrl,onChange:l("dbUrl"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Database port"}),h.jsx("input",{value:n.dbPort,onChange:l("dbPort"),type:"number",className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"User"}),h.jsx("input",{value:n.dbUser,onChange:l("dbUser"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Password"}),h.jsx("input",{type:"password",value:n.dbPassword,onChange:l("dbPassword"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Database"}),h.jsx("input",{value:n.dbDatabase,onChange:l("dbDatabase"),className:"input"})]})]}),O4=({form:n,change:l})=>h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Database URL"}),h.jsx("input",{value:n.dbUrl,onChange:l("dbUrl"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Database port"}),h.jsx("input",{value:n.dbPort,onChange:l("dbPort"),type:"number",className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"User"}),h.jsx("input",{value:n.dbUser,onChange:l("dbUser"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Password"}),h.jsx("input",{type:"password",value:n.dbPassword,onChange:l("dbPassword"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Database"}),h.jsx("input",{value:n.dbDatabase,onChange:l("dbDatabase"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,ze.small),children:[h.jsx("label",{children:"Schema"}),h.jsx("input",{value:n.dbSchema,onChange:l("dbSchema"),className:"input"})]})]}),Ms=[{label:"PostgreSQL",tag:"postgres"},{label:"MySQL",tag:"mysql"}],D4=({show:n,onClose:l,dbType:r="postgres"})=>{const i=Qw(),u=f1(),{data:o}=la(),[d,{change:m,set:y}]=wr({name:"",dbType:r,dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:"",allowInsert:!1,allowUpdate:!1}),p=async()=>{const E=await i.mutateAsync({...d,dbPort:Number(d.dbPort),teamId:o.teamId,ownerId:o.id});await u.mutateAsync(E.id),l(),kw.event("Create Datasource",{dbType:d.dbType})},b=E=>{y("allowInsert",!E),y("allowUpdate",!E)},S=()=>{l()},w=i.isLoading||u.isLoading,C=!d.allowInsert&&!d.allowUpdate;return h.jsxs(dn,{isVisible:n,onClose:S,children:[h.jsx(sa,{onClick:S}),h.jsxs(Ut,{variant:"warning",className:"text-sm mb-2 max-w-xl",children:["DataRamen is currently under active development. In production-like environments, ",h.jsx("span",{className:"font-semibold underline",children:"it’s recommended to use read-only database credentials"}),"."]}),i.isError&&h.jsx(Ut,{variant:"danger",className:"mb-2",children:h.jsx("span",{children:"Failed to connect to the database. Please check if the data are correct and retry."})}),i.isLoading&&h.jsx(Ut,{className:"mb-2",variant:"info",children:"Creating connection"}),u.isLoading&&h.jsx(Ut,{className:"mb-2",variant:"info",children:"Inspecting connection"}),h.jsxs("div",{className:ze.switch,children:[h.jsxs("label",{className:"button tertiary",children:[h.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:d.dbType===Ms[0].tag,onChange:()=>y("dbType",Ms[0].tag)}),h.jsx("span",{children:Ms[0].label})]}),h.jsxs("label",{className:"button tertiary",children:[h.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:d.dbType===Ms[1].tag,onChange:()=>y("dbType",Ms[1].tag)}),h.jsx("span",{children:Ms[1].label})]})]}),h.jsxs("div",{className:"overflow-y-auto mt-2",children:[h.jsx("div",{className:ze.content,children:h.jsxs("div",{className:ze.form,children:[h.jsxs("div",{className:se(ze.input,"col-span-2"),children:[h.jsx("label",{children:"Name"}),h.jsx("input",{value:d.name,onChange:m("name"),className:"input"})]}),h.jsxs("div",{className:se(ze.input,"col-span-2"),children:[h.jsx("label",{children:"Description"}),h.jsx("textarea",{value:d.description,onChange:m("description"),className:"input"})]}),d.dbType==="mysql"&&h.jsx(R4,{form:d,change:m}),d.dbType==="postgres"&&h.jsx(O4,{form:d,change:m})]})}),h.jsxs("div",{className:"mt-4",children:[h.jsxs("label",{className:ze.modeSelect,children:[h.jsxs("div",{children:[h.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:C,onChange:()=>b(!0)}),h.jsx("span",{className:"text-sm font-semibold",children:"Production mode"})]}),h.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",h.jsx("strong",{children:"forbidden"}),". You won't be able to insert new rows or edit existing data. Tables in this data source are read-only."]})]}),h.jsxs("label",{className:ze.modeSelect,children:[h.jsxs("div",{children:[h.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:!C,onChange:()=>b(!1)}),h.jsx("span",{className:"text-sm font-semibold",children:"Dev mode"})]}),h.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",h.jsx("strong",{children:"allowed"}),". You will be able to insert new rows and edit existing data."]})]})]})]}),h.jsxs("div",{className:"flex justify-end gap-1 mt-2",children:[h.jsx("button",{onClick:S,className:"button tertiary",disabled:w,children:"Cancel"}),h.jsx("button",{onClick:p,className:"button primary",disabled:w,children:"Create"})]})]})},M4="_data-source-entry_anisg_2",U4="_action-title_anisg_2",L4="_action-subtext_anisg_2",q4="_dev-tag_anisg_2",z4="_prod-tag_anisg_2",Rn={dataSourceEntry:M4,actionTitle:U4,actionSubtext:L4,devTag:q4,prodTag:z4},B4=n=>g.createElement("svg",{fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n},g.createElement("path",{d:"m24.129 23.412-.508-.484c-.251-.331-.518-.624-.809-.891l-.005-.004q-.448-.407-.931-.774-.387-.266-1.064-.641c-.371-.167-.661-.46-.818-.824l-.004-.01-.048-.024c.212-.021.406-.06.592-.115l-.023.006.57-.157c.236-.074.509-.122.792-.133h.006c.298-.012.579-.06.847-.139l-.025.006q.194-.048.399-.109t.351-.109v-.169q-.145-.217-.351-.496c-.131-.178-.278-.333-.443-.468l-.005-.004q-.629-.556-1.303-1.076c-.396-.309-.845-.624-1.311-.916l-.068-.04c-.246-.162-.528-.312-.825-.435l-.034-.012q-.448-.182-.883-.399c-.097-.048-.21-.09-.327-.119l-.011-.002c-.117-.024-.217-.084-.29-.169l-.001-.001c-.138-.182-.259-.389-.355-.609l-.008-.02q-.145-.339-.314-.651-.363-.702-.702-1.427t-.651-1.452q-.217-.484-.399-.967c-.134-.354-.285-.657-.461-.942l.013.023c-.432-.736-.863-1.364-1.331-1.961l.028.038c-.463-.584-.943-1.106-1.459-1.59l-.008-.007c-.509-.478-1.057-.934-1.632-1.356l-.049-.035q-.896-.651-1.96-1.282c-.285-.168-.616-.305-.965-.393l-.026-.006-1.113-.278-.629-.048q-.314-.024-.629-.024c-.148-.078-.275-.171-.387-.279-.11-.105-.229-.204-.353-.295l-.01-.007c-.605-.353-1.308-.676-2.043-.93l-.085-.026c-.193-.113-.425-.179-.672-.179-.176 0-.345.034-.499.095l.009-.003c-.38.151-.67.458-.795.84l-.003.01c-.073.172-.115.371-.115.581 0 .368.13.705.347.968l-.002-.003q.544.725.834 1.14.217.291.448.605c.141.188.266.403.367.63l.008.021c.056.119.105.261.141.407l.003.016q.048.206.121.448.217.556.411 1.14c.141.425.297.785.478 1.128l-.019-.04q.145.266.291.52t.314.496c.065.098.147.179.241.242l.003.002c.099.072.164.185.169.313v.001c-.114.168-.191.369-.217.586l-.001.006c-.035.253-.085.478-.153.695l.008-.03c-.223.666-.351 1.434-.351 2.231 0 .258.013.512.04.763l-.003-.031c.06.958.349 1.838.812 2.6l-.014-.025c.197.295.408.552.641.787.168.188.412.306.684.306.152 0 .296-.037.422-.103l-.005.002c.35-.126.599-.446.617-.827v-.002c.048-.474.12-.898.219-1.312l-.013.067c.024-.063.038-.135.038-.211 0-.015-.001-.03-.002-.045v.002q-.012-.109.133-.206v.048q.145.339.302.677t.326.677c.295.449.608.841.952 1.202l-.003-.003c.345.372.721.706 1.127 1.001l.022.015c.212.162.398.337.566.528l.004.004c.158.186.347.339.56.454l.01.005v-.024h.048c-.039-.087-.102-.157-.18-.205l-.002-.001c-.079-.044-.147-.088-.211-.136l.005.003q-.217-.217-.448-.484t-.423-.508q-.508-.702-.969-1.467t-.871-1.555q-.194-.387-.375-.798t-.351-.798c-.049-.099-.083-.213-.096-.334v-.005c-.006-.115-.072-.214-.168-.265l-.002-.001c-.121.206-.255.384-.408.545l.001-.001c-.159.167-.289.364-.382.58l-.005.013c-.141.342-.244.739-.289 1.154l-.002.019q-.072.641-.145 1.318l-.048.024-.024.024c-.26-.053-.474-.219-.59-.443l-.002-.005q-.182-.351-.326-.69c-.248-.637-.402-1.374-.423-2.144v-.009c-.009-.122-.013-.265-.013-.408 0-.666.105-1.308.299-1.91l-.012.044q.072-.266.314-.896t.097-.871c-.05-.165-.143-.304-.265-.41l-.001-.001c-.122-.106-.233-.217-.335-.335l-.003-.004q-.169-.244-.326-.52t-.278-.544c-.165-.382-.334-.861-.474-1.353l-.022-.089c-.159-.565-.336-1.043-.546-1.503l.026.064c-.111-.252-.24-.47-.39-.669l.006.008q-.244-.326-.436-.617-.244-.314-.484-.605c-.163-.197-.308-.419-.426-.657l-.009-.02c-.048-.097-.09-.21-.119-.327l-.002-.011c-.011-.035-.017-.076-.017-.117 0-.082.024-.159.066-.223l-.001.002c.011-.056.037-.105.073-.145.039-.035.089-.061.143-.072h.002c.085-.055.188-.088.3-.088.084 0 .165.019.236.053l-.003-.001c.219.062.396.124.569.195l-.036-.013q.459.194.847.375c.298.142.552.292.792.459l-.018-.012q.194.121.387.266t.411.291h.339q.387 0 .822.037c.293.023.564.078.822.164l-.024-.007c.481.143.894.312 1.286.515l-.041-.019q.593.302 1.125.641c.589.367 1.098.743 1.577 1.154l-.017-.014c.5.428.954.867 1.38 1.331l.01.012c.416.454.813.947 1.176 1.464l.031.047c.334.472.671 1.018.974 1.584l.042.085c.081.154.163.343.234.536l.011.033q.097.278.217.57.266.605.57 1.221t.57 1.198l.532 1.161c.187.406.396.756.639 1.079l-.011-.015c.203.217.474.369.778.422l.008.001c.368.092.678.196.978.319l-.047-.017c.143.065.327.134.516.195l.04.011c.212.065.396.151.565.259l-.009-.005c.327.183.604.363.868.559l-.021-.015q.411.302.822.57.194.145.651.423t.484.52c-.114-.004-.249-.007-.384-.007-.492 0-.976.032-1.45.094l.056-.006c-.536.072-1.022.203-1.479.39l.04-.014c-.113.049-.248.094-.388.129l-.019.004c-.142.021-.252.135-.266.277v.001c.061.076.11.164.143.26l.002.006c.034.102.075.19.125.272l-.003-.006c.119.211.247.393.391.561l-.004-.005c.141.174.3.325.476.454l.007.005q.244.194.508.399c.161.126.343.25.532.362l.024.013c.284.174.614.34.958.479l.046.016c.374.15.695.324.993.531l-.016-.011q.291.169.58.375t.556.399c.073.072.137.152.191.239l.003.005c.091.104.217.175.36.193h.003v-.048c-.088-.067-.153-.16-.184-.267l-.001-.004c-.025-.102-.062-.191-.112-.273l.002.004zm-18.576-19.205q-.194 0-.363.012c-.115.008-.222.029-.323.063l.009-.003v.024h.048q.097.145.244.326t.266.351l.387.798.048-.024c.113-.082.2-.192.252-.321l.002-.005c.052-.139.082-.301.082-.469 0-.018 0-.036-.001-.054v.003c-.045-.044-.082-.096-.108-.154l-.001-.003-.081-.182c-.053-.084-.127-.15-.214-.192l-.003-.001c-.094-.045-.174-.102-.244-.169z"})),H4=n=>g.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...n},g.createElement("title",null,"file_type_pgsql"),g.createElement("path",{d:"M29.507,18.773a1.378,1.378,0,0,0-1.144-.921,2.619,2.619,0,0,0-.913.051,8.2,8.2,0,0,1-1.406.185,27.125,27.125,0,0,0,2.872-6.83c.953-3.689.444-5.369-.151-6.13A8.239,8.239,0,0,0,22.121,2a11.773,11.773,0,0,0-3.453.484A12.858,12.858,0,0,0,16.648,2.3a6.565,6.565,0,0,0-3.518.867,16.039,16.039,0,0,0-2.484-.624,7.694,7.694,0,0,0-5.819.924C3.093,4.691,2.289,6.819,2.438,9.792A36.351,36.351,0,0,0,3.844,16.33a22.579,22.579,0,0,0,1.514,3.863A4.786,4.786,0,0,0,7.8,22.742a2.4,2.4,0,0,0,2.379-.516,2.08,2.08,0,0,0,.5.43,3.328,3.328,0,0,0,.944.4,5.069,5.069,0,0,0,3.3-.2c.006.171.011.335.014.477.006.229.013.454.021.665a11.641,11.641,0,0,0,.441,3.3c.016.043.037.107.059.176a3.975,3.975,0,0,0,.991,1.745,2.955,2.955,0,0,0,2.09.777,4.7,4.7,0,0,0,.977-.109A4.592,4.592,0,0,0,22.607,28.1c.811-1.155,1.206-2.894,1.277-5.635.009-.078.018-.152.026-.222l.017-.145.191.017.049,0a7.562,7.562,0,0,0,3.163-.548c.631-.293,2.654-1.361,2.177-2.8"}),g.createElement("path",{d:"M27.689,19.053c-3.163.652-3.38-.418-3.38-.418C27.648,13.68,29.044,7.39,27.839,5.851c-3.286-4.2-8.975-2.213-9.07-2.162l-.031.006a11.28,11.28,0,0,0-2.11-.22,5.212,5.212,0,0,0-3.34,1S3.14.294,3.612,9.733c.1,2.008,2.878,15.194,6.191,11.211,1.211-1.456,2.381-2.688,2.381-2.688a3.071,3.071,0,0,0,2.006.512l.057-.048a2.21,2.21,0,0,0,.023.567c-.854.954-.6,1.121-2.309,1.472-1.726.356-.712.989-.05,1.155a3.508,3.508,0,0,0,3.915-1.272l-.05.2c.334.268.569,1.742.53,3.079a8.481,8.481,0,0,0,.2,2.971c.264.717.526,2.329,2.769,1.849a3.307,3.307,0,0,0,2.98-3.179c.1-1.234.313-1.052.326-2.155l.174-.522c.2-1.673.032-2.213,1.186-1.962l.281.025a6.4,6.4,0,0,0,2.615-.44c1.406-.652,2.239-1.742.853-1.455h0",style:{fill:"#336791"}}),g.createElement("path",{d:"M13.882,10.631a.981.981,0,0,0-.674.1.247.247,0,0,0-.1.164.48.48,0,0,0,.117.314.881.881,0,0,0,.559.349.637.637,0,0,0,.09.006.725.725,0,0,0,.687-.467c.035-.248-.326-.414-.676-.463m9.442.008c-.027-.195-.374-.25-.7-.2s-.647.194-.62.389a.667.667,0,0,0,.62.411.592.592,0,0,0,.083-.006.8.8,0,0,0,.451-.247.5.5,0,0,0,.169-.343",style:{fill:"#fff"}}),g.createElement("path",{d:"M28.741,18.979c-.121-.365-.509-.482-1.154-.349-1.915.4-2.6.121-2.826-.044a26.327,26.327,0,0,0,3.373-7.565,14.374,14.374,0,0,0,.5-3.253,3.513,3.513,0,0,0-.509-2.2,7.482,7.482,0,0,0-6.049-2.825,10.363,10.363,0,0,0-3.5.551,8.717,8.717,0,0,0-1.968-.253,5.684,5.684,0,0,0-3.372.929,15.051,15.051,0,0,0-2.74-.718,6.978,6.978,0,0,0-5.242.805c-1.5,1.064-2.2,2.966-2.061,5.653a35.489,35.489,0,0,0,1.373,6.348c1.07,3.505,2.233,5.49,3.457,5.9a1.548,1.548,0,0,0,.491.081,2.049,2.049,0,0,0,1.563-.886q1.042-1.25,2.155-2.438a3.472,3.472,0,0,0,1.55.417l0,.042q-.14.166-.273.338c-.375.475-.452.574-1.658.823-.343.071-1.254.259-1.267.9-.014.7,1.077.991,1.2,1.022a5.144,5.144,0,0,0,1.249.162,3.634,3.634,0,0,0,2.5-.934,23.674,23.674,0,0,0,.381,5.684,2.854,2.854,0,0,0,2.729,2.1,4.378,4.378,0,0,0,.917-.1,3.462,3.462,0,0,0,3.156-3.212c.177-1.026.481-3.475.624-4.789a3.859,3.859,0,0,0,1.11.137,6.6,6.6,0,0,0,2.519-.48c.712-.331,2-1.141,1.763-1.846ZM24.051,10.1a7.968,7.968,0,0,1-.116,1.107,10.229,10.229,0,0,0-.14,1.3,9.859,9.859,0,0,0,.1,1.47,5.236,5.236,0,0,1-.229,2.986,3.882,3.882,0,0,1-.207-.426c-.058-.141-.185-.368-.359-.681-.68-1.22-2.274-4.078-1.458-5.244.243-.347.86-.7,2.408-.512ZM22.174,3.531a6.617,6.617,0,0,1,5.334,2.522c.975,1.245-.1,6.912-3.205,11.8l-.094-.119-.039-.049a5.524,5.524,0,0,0,.506-3.8,9.114,9.114,0,0,1-.1-1.352,9.572,9.572,0,0,1,.131-1.206,7.614,7.614,0,0,0,.123-1.493.619.619,0,0,0,.013-.21,8.381,8.381,0,0,0-1.912-3.6,8.61,8.61,0,0,0-3.039-2.284,10.246,10.246,0,0,1,2.28-.214ZM9.479,20.654c-.627.754-1.061.61-1.2.562-.928-.31-2.006-2.272-2.955-5.384a35.167,35.167,0,0,1-1.34-6.159c-.12-2.4.462-4.074,1.73-4.974,2.063-1.463,5.456-.587,6.819-.143-.02.019-.04.037-.059.057-2.237,2.259-2.184,6.119-2.178,6.355,0,.091.007.22.018.4a15.969,15.969,0,0,1-.081,3.226A4.08,4.08,0,0,0,11.3,18.007q.133.138.278.262c-.383.41-1.216,1.318-2.1,2.385Zm2.39-3.19a3.3,3.3,0,0,1-.865-2.764,16.7,16.7,0,0,0,.087-3.381c-.006-.095-.011-.178-.014-.243A4.3,4.3,0,0,1,14,10.223a1.188,1.188,0,0,1,.918,1.026c.646,2.989.085,4.234-.365,5.235-.093.206-.181.4-.255.6l-.058.156a10.218,10.218,0,0,0-.368,1.109,2.788,2.788,0,0,1-2-.887Zm.113,4.03a1.733,1.733,0,0,1-.523-.225,2.553,2.553,0,0,1,.557-.166c1.418-.292,1.637-.5,2.116-1.105.11-.139.234-.3.406-.489h0c.256-.287.374-.238.586-.15a.829.829,0,0,1,.408.525.585.585,0,0,1-.05.491A3.1,3.1,0,0,1,11.983,21.495ZM19.406,28.4a2.113,2.113,0,0,1-2.754-1.526,31.129,31.129,0,0,1-.3-6.853.392.392,0,0,0-.017-.124,1.643,1.643,0,0,0-.048-.23,1.589,1.589,0,0,0-.862-1.034,1.216,1.216,0,0,0-.793-.1,9.586,9.586,0,0,1,.342-1.022l.058-.157c.066-.177.148-.36.235-.554.471-1.047,1.117-2.482.416-5.722a2.044,2.044,0,0,0-2.468-1.669A5.694,5.694,0,0,0,11.328,10c-.078.04-.15.078-.216.115A8.244,8.244,0,0,1,13.03,5.163,4.711,4.711,0,0,1,16.6,3.827,7.567,7.567,0,0,1,22.381,6.59,8.774,8.774,0,0,1,23.963,9.3c-1.463-.149-2.458.14-2.962.861-1.1,1.568.6,4.612,1.416,6.075.15.268.279.5.319.6a5.432,5.432,0,0,0,.861,1.387c.077.1.152.189.208.271-.443.128-1.239.423-1.166,1.9-.058.74-.474,4.205-.686,5.43-.279,1.617-.874,2.22-2.548,2.579Zm7.242-8.288a5.714,5.714,0,0,1-1.931.4,2.422,2.422,0,0,1-1.3-.167c-.045-.919.3-1.015.66-1.117.057-.016.112-.032.166-.05a1.353,1.353,0,0,0,.11.08c.639.422,1.78.467,3.39.135l.018,0a4.334,4.334,0,0,1-1.116.72Z",style:{fill:"#fff"}})),Xd=({size:n,type:l})=>l==="mysql"?h.jsx(B4,{width:n,height:n}):h.jsx(H4,{width:n,height:n}),[k4,ks]=fn(void 0),Q4=()=>{const n=xr("Home");return h.jsxs("div",{className:"card-white lg:col-span-2",onClick:n,children:[h.jsxs("h2",{className:Rn.actionTitle,children:[h.jsx("span",{children:"🔎 Start new query"}),h.jsx("span",{className:"hotkey",children:"N"})]}),h.jsx("input",{className:"input mt-3 w-full",placeholder:"Search table or query to start"})]})},Y4=()=>{const[n,l]=g.useState(void 0),r=Sr(Xt.EDITOR),i=u=>{r?l(u):Pt.error("You don't have permission to connect new data sources in this team")};return h.jsxs("div",{children:[n&&h.jsx(D4,{show:!0,dbType:n,onClose:()=>l(void 0)}),h.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:()=>i("postgres"),children:[h.jsx("p",{className:Rn.actionTitle,children:"🧙‍♂️ Connection wizard"}),h.jsx("p",{className:Rn.actionSubtext,children:"Configure new database connection."})]})]})},V4=()=>{const n=Lt(),{data:l}=Gd(),r=xr("Home"),i=()=>{l&&l.length>0?n(`${Xe.workbench.path}/tab/${l[0].id}`):r()};return h.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:i,children:[h.jsxs("h2",{className:Rn.actionTitle,children:[h.jsx("span",{children:"🛠️ Workbench"}),h.jsx("span",{className:"hotkey",children:"W"})]}),h.jsx("p",{className:Rn.actionSubtext,children:"Continue your work from where you left."})]})},$4=()=>{const{data:n}=la(),{data:l}=Yd({teamId:n==null?void 0:n.teamId}),r=i=>{ks(i)};return!l||l.length===0?null:h.jsxs("div",{className:"mt-8",children:[h.jsx("h2",{className:"font-semibold text-gray-700",children:"Data sources"}),h.jsx("div",{className:"grid lg:grid-cols-3 gap-2 mt-4",children:l==null?void 0:l.map(i=>h.jsxs("div",{className:Rn.dataSourceEntry,onClick:()=>r(i.id),tabIndex:0,children:[h.jsx(Xd,{size:32,type:i.dbType}),h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:"font-semibold truncate text-gray-800 flex-1",children:i.name}),i.allowInsert?h.jsx("span",{className:Rn.devTag,children:"dev"}):h.jsx("span",{className:Rn.prodTag,children:"prod"})]})]},i.id))})]})},K4=()=>h.jsxs("div",{className:"mt-8",children:[h.jsx("h2",{className:"font-semibold text-gray-700",children:"Useful links"}),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:[h.jsxs("a",{className:"card-white hover:bg-gray-50!",href:"https://dataramen.xyz/",children:[h.jsx("p",{className:Rn.actionTitle,children:"Documentation"}),h.jsx("p",{className:Rn.actionSubtext,children:"Learn how to use DataRamen"})]}),h.jsxs("a",{className:"card-white hover:bg-gray-50!",href:"https://github.com/OleksandrDemian/dataramen",children:[h.jsx("p",{className:Rn.actionTitle,children:"Github"}),h.jsx("p",{className:Rn.actionSubtext,children:"Codebase is open sourced on Github"})]})]})]}),F4=()=>{const{data:n}=la(),{data:l}=Yd({teamId:n==null?void 0:n.teamId}),r=!!l&&l.length>0,i=!!n;return h.jsx("div",{className:"page-container h-screen max-h-screen bg-(--bg)",children:h.jsxs("div",{className:"page-content h-full pb-12 overflow-y-auto",children:[h.jsx("h2",{className:"font-semibold text-gray-700 mt-4 hidden lg:block",children:"Quick actions"}),i&&!r&&h.jsx(Ut,{variant:"warning",className:"font-semibold mt-4",children:"Connect at least one datasource to start using DataRamen"}),h.jsxs("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:[h.jsx(Q4,{}),h.jsx(Y4,{}),i&&h.jsx(V4,{})]}),i&&h.jsx($4,{}),h.jsx(K4,{})]})})},[G4,Zd]=fn(void 0),X4=()=>Zd(void 0);function Yl(n,l){if(n==null)return"";switch(l){case"json":case"jsonb":return JSON.stringify(n,null,2)}if(n===0||n===!1)return n.toString();switch(typeof n){case"string":return n;case"number":case"boolean":return n.toString();default:return JSON.stringify(n)}}const cl=n=>{let l=n.replace(/[_-]+/g," ");return l=l.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),l=l.toLowerCase().replace(/\b\w/g,r=>r.toUpperCase()),l},Z4="_container_gbgr7_2",J4="_header_gbgr7_2",P4="_fields-container_gbgr7_2",I4="_field-label_gbgr7_2",W4="_actions_gbgr7_2",nr={container:Z4,header:J4,fieldsContainer:P4,fieldLabel:I4,actions:W4},dl=()=>Date.now().toString(36)+Math.random().toString(36).substring(2),eE=(n,l,r)=>Wt({queryKey:["entity",n,l,r],queryFn:async()=>{const i=r?r.map(([o,d])=>({id:dl(),column:o,operator:"=",value:[{value:d}],connector:"AND"})):[],{data:u}=await Me.post("/runner/select",{datasourceId:n,opts:{table:l,filters:i,joins:[],columns:[],orderBy:[],groupBy:[],aggregations:[]},size:1,page:0,name:`Select ${l}: [${r==null?void 0:r.join()}]`});return u.data},retry:1,enabled:!!l&&!!n&&!!r,staleTime:0,cacheTime:0}),tE=()=>qt({mutationFn:async n=>{const{data:l}=await Me.post("/runner/update",n);return l.data}}),nE=()=>qt({mutationFn:async n=>{const{data:l}=await Me.post("/runner/insert",n);return l.data}}),Jd=n=>g.useMemo(()=>{var l,r,i;if(n)return n instanceof k3?(l=n.response)!=null&&l.data.error?n.response.data.error:(i=(r=n.response)==null?void 0:r.data)!=null&&i.message?n.response.data.message:n.message:n instanceof Error?n.message:"Undefined error"},[n]),Pd=()=>{const{pathname:n}=Yt();return g.useMemo(()=>{const l=or({path:`${Xe.workbench.path}/tab/:id`,end:!1},n);return l==null?void 0:l.params.id},[n])},aE=({data:n})=>{const[l,{change:r,touched:i}]=wr({}),u=Pd(),{mutateAsync:o,error:d}=nE(),m=Jd(d),{data:y}=Ps(n.dataSourceId),[p,b]=g.useState(""),S=g.useMemo(()=>y==null?void 0:y.find(E=>E.tableName===n.table),[y,n.table]),w=g.useMemo(()=>{if(!S)return[];if(!p)return S.columns.map(T=>({...T,label:cl(T.name)}));const E=p.toLowerCase();return S.columns.filter(T=>T.name.toLowerCase().includes(E)).map(T=>({...T,label:cl(T.name)}))},[p,S]),C=()=>{const E=[];for(const T of i)E.push({value:l[T],column:T});o({datasourceId:n.dataSourceId,table:n.table,values:E}).then(()=>{X4(),u&&p1(u)})};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:nr.header,children:[h.jsxs("p",{className:"text-lg font-semibold",children:["Insert new row in ",h.jsx("span",{className:"underline",children:n.table})]}),m&&h.jsx(Ut,{variant:"danger",children:h.jsx("p",{children:m})})]}),h.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:h.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),h.jsx("div",{className:nr.container,children:h.jsx("div",{className:nr.fieldsContainer,children:w.map(E=>h.jsxs("label",{className:nr.fieldLabel,children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsxs("p",{children:[E.isPrimary?"🔐":"🏷️"," ",E.label]}),h.jsxs("p",{className:"text-blue-800 text-sm",children:["[",E.name,": ",E.type,"]"]})]}),h.jsx("input",{className:"input w-full",value:Yl(l[E.name]),onChange:r(E.name),placeholder:E.name})]},E.name))})}),h.jsxs("div",{className:nr.actions,children:[h.jsxs("label",{children:[h.jsx("span",{className:"mr-2",children:"🔎"}),h.jsx("input",{className:"input bg-white!",value:p,onChange:E=>b(E.target.value),placeholder:"Filter columns"})]}),h.jsx("span",{className:"flex-1"}),h.jsx("button",{disabled:!i.length,className:"button primary",onClick:C,children:"Run insert"})]})]})},lE=()=>{const n=G4(),[l,r]=g.useState(void 0);g.useEffect(()=>{n&&r(n)},[n]);const i=()=>Zd(void 0);return h.jsxs(dn,{isVisible:n!=null,onClose:i,onClosed:()=>r(void 0),noPadding:!0,children:[h.jsx(sa,{onClick:i}),l&&h.jsx(aE,{data:l})]})},[sE,Id]=fn(void 0),iE=()=>Id(void 0),rE="_container_1dcr5_2",uE="_header_1dcr5_2",oE="_key_1dcr5_2",cE="_fields-container_1dcr5_2",fE="_field-label_1dcr5_2",dE="_actions_1dcr5_2",Us={container:rE,header:uE,key:oE,fieldsContainer:cE,fieldLabel:fE,actions:dE},hE=({data:n})=>{const[l,{change:r,set:i,reset:u,touched:o}]=wr({}),d=Pd(),[m,y]=g.useState(""),{data:p,isLoading:b}=eE(n.dataSourceId,n.tableName,n.entityId),{mutateAsync:S,error:w}=tE(),C=Jd(w),E=Sr(Xt.EDITOR),{data:T}=Ps(n.dataSourceId),{data:j}=No(n.dataSourceId),_=g.useMemo(()=>T==null?void 0:T.find(k=>k.tableName===n.tableName),[n.tableName,T]),D=g.useMemo(()=>{if(!_)return[];if(!m)return _.columns.map(F=>({...F,label:cl(F.name)}));const k=m.toLowerCase();return _.columns.filter(F=>F.name.toLowerCase().includes(k)).map(F=>({...F,label:cl(F.name)}))},[m,_]);g.useEffect(()=>{const k=p==null?void 0:p.rows[0];if(u(),k&&(p!=null&&p.columns))for(let F=0;F<p.columns.length;F++){const I=p.columns[F];i(I.column,Yl(k[F]))}},[p,i,u]);const R=()=>{const k=[];for(const F of o)k.push({value:l[F],column:F});S({datasourceId:n.dataSourceId,table:n.tableName,filters:n.entityId.map(F=>({id:dl(),value:[{value:F[1]}],column:F[0],connector:"AND",operator:"="})),values:k}).then(()=>{iE(),d&&p1(d)})},X=n.entityId.map(([k,F])=>`${k} = ${F}`).join(", ")||"",$=!(j!=null&&j.allowUpdate)||!E;return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:Us.header,children:[h.jsxs("p",{className:"text-lg font-semibold",children:[$?"View":"Edit"," row in ",h.jsx("span",{className:"underline",children:n==null?void 0:n.tableName})]}),h.jsx("span",{className:Us.key,children:X}),C&&h.jsx(Ut,{variant:"danger",children:h.jsx("p",{children:C})})]}),!$&&h.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:h.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),h.jsx("div",{className:Us.container,children:h.jsx("div",{className:Us.fieldsContainer,children:D.map(k=>h.jsxs("label",{className:Us.fieldLabel,children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsxs("p",{children:[k.isPrimary?"🔐":"🏷️"," ",k.label]}),h.jsxs("p",{className:"text-blue-800 text-sm",children:["[",k.name,": ",k.type,"]"]})]}),h.jsx("input",{disabled:k.isPrimary||b||$,className:"input w-full",value:Yl(l[k.name]),onChange:r(k.name),placeholder:k.name})]},k.name))})}),h.jsxs("div",{className:Us.actions,children:[h.jsxs("label",{children:[h.jsx("span",{className:"mr-2",children:"🔎"}),h.jsx("input",{className:"input bg-white!",value:m,onChange:k=>y(k.target.value),placeholder:"Filter columns"})]}),h.jsx("span",{className:"flex-1"}),!$&&h.jsx("button",{disabled:!o.length,className:"button primary",onClick:R,children:"Run update"})]})]})},mE=()=>{const n=sE(),[l,r]=g.useState(void 0);g.useEffect(()=>{n&&r(n)},[n]);const i=()=>Id(void 0);return h.jsxs(dn,{isVisible:n!=null,onClose:i,onClosed:()=>r(void 0),noPadding:!0,children:[h.jsx(sa,{onClick:i}),l&&h.jsx(hE,{data:l})]})},[pE,ed]=fn(void 0),v1=async n=>new Promise(l=>{ed({message:n,onCancel:()=>{l(!1),ed(void 0)},onConfirm:()=>{l(!0),ed(void 0)}})}),yE=({confirm:n})=>h.jsxs("div",{children:[h.jsx("p",{children:n.message}),h.jsxs("div",{className:"flex gap-2 justify-end mt-4",children:[h.jsx("button",{className:"button tertiary",onClick:n.onCancel,children:"Cancel"}),h.jsx("button",{className:"button primary",onClick:n.onConfirm,children:"Confirm"})]})]}),vE=()=>{const n=pE(),[l,r]=g.useState(void 0);return g.useEffect(()=>{n&&r(n)},[n]),h.jsx(dn,{isVisible:!!n,onClose:()=>n==null?void 0:n.onCancel(),onClosed:()=>r(void 0),children:l&&h.jsx(yE,{confirm:l})})},[bE,Iu]=fn(void 0),Er=async(n,l,r)=>new Promise(i=>{Iu({message:n,defaultValue:l,alert:r,onCancel:()=>{Iu(void 0),i(void 0)},onConfirm:u=>{Iu(void 0),i(u)}})}),gE="_root_12mtw_1",xE={root:gE},SE=({data:n})=>{const[l,r]=g.useState("");g.useEffect(()=>{n.defaultValue&&r(n.defaultValue)},[n]);const i=o=>{r(o.target.value)},u=o=>{o.key==="Enter"&&(o.preventDefault(),n.onConfirm(l)),o.key==="Escape"&&(o.preventDefault(),n.onCancel())};return h.jsxs("div",{className:xE.root,children:[h.jsx("h2",{className:"text-xl font-semibold",children:n.message}),n.alert&&h.jsx(Ut,{variant:n.alert.type,className:"mt-2",children:n.alert.message}),h.jsx("input",{autoFocus:!0,className:"w-full input my-2",value:l,onChange:i,onKeyDown:u}),h.jsxs("div",{className:"flex justify-end gap-2",children:[h.jsx("button",{className:"button tertiary",onClick:n.onCancel,children:"Cancel"}),h.jsx("button",{className:"button primary",onClick:()=>n.onConfirm(l),children:"Confirm"})]})]})},wE=()=>{const n=bE(),[l,r]=g.useState(void 0);return g.useEffect(()=>{n&&r(n)},[n]),h.jsx(dn,{isVisible:!!n,onClose:()=>Iu(void 0),onClosed:()=>r(void 0),children:l&&h.jsx(SE,{data:l})})},[EE,CE]=fn(void 0),b1=n=>{CE(n)},_E="_textarea_nos9p_2",NE={textarea:_E},jE=()=>{const n=EE(),l=()=>{n&&(navigator.clipboard.writeText(n.toString()),Pt.success("Copied!"))},r=()=>b1(void 0);return h.jsxs(dn,{isVisible:!!n,onClose:r,backdropClose:!0,children:[h.jsx("textarea",{className:NE.textarea,readOnly:!0,defaultValue:n==null?void 0:n.toString()}),h.jsxs("div",{className:"mt-2 flex gap-1 justify-end",children:[h.jsx("button",{className:"button primary",onClick:l,children:"Copy"}),h.jsx("button",{className:"button tertiary",onClick:r,children:"Close"})]})]})},AE="_tabs_j1vhg_2",TE="_mobile_j1vhg_2",RE="_tab_j1vhg_2",OE="_active_j1vhg_2",DE="_close-button_j1vhg_2",ar={tabs:AE,mobile:TE,tab:RE,active:OE,closeButton:DE},Ay=n=>window.matchMedia(n).matches;function Wd(n,{defaultValue:l=!1,initializeWithValue:r=!0}={}){const[i,u]=g.useState(()=>r?Ay(n):l);return g.useLayoutEffect(()=>{const o=window.matchMedia(n);function d(){u(()=>Ay(n))}return d(),o.addListener?o.addListener(d):o.addEventListener("change",d),()=>{o.removeListener?o.removeListener(d):o.removeEventListener("change",d)}},[n]),i}const jo={laptop:"(min-width: 1024px)"},ME=()=>window.matchMedia(jo.laptop).matches,UE="_table_csbi9_2",LE="_semi-transparent_csbi9_2",qE="_table-loading_csbi9_2",zE="_table-empty_csbi9_2",BE="_table-row-cells_csbi9_2",HE="_header-cell_csbi9_2",kE="_header-actions_csbi9_2",QE="_cell_csbi9_2",YE="_cell-actions_csbi9_2",VE="_table-config_csbi9_2",$E="_table-action_csbi9_2",KE="_blue_csbi9_2",FE="_red_csbi9_2",GE="_modal_csbi9_2",XE="_size_csbi9_2",ZE="_options-container_csbi9_2",JE="_underlying-rows-btn_csbi9_2",PE="_option-item_csbi9_2",ne={table:UE,semiTransparent:LE,tableLoading:qE,tableEmpty:zE,tableRowCells:BE,headerCell:HE,headerActions:kE,cell:QE,cellActions:YE,tableConfig:VE,tableAction:$E,blue:KE,red:FE,modal:GE,size:XE,optionsContainer:ZE,underlyingRowsBtn:JE,optionItem:PE},ia=g.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),mt=g.createContext({state:Hs({}),setState:()=>{}}),Qn=g.createContext({}),g1=()=>{const[n,l]=g.useState();return g.useMemo(()=>({show:!!n,position:n,open:i=>{i.preventDefault(),l({x:i.clientX-1,y:i.clientY-1})},close:()=>{l(void 0)}}),[n])},IE=n=>{if(n==="ASC")return"DESC";if(n!=="DESC")return"ASC"},WE=()=>{const{state:n,setState:l}=g.useContext(mt),r=g.useCallback(i=>{l(u=>{const o=u.orderBy[0];if(o&&o.column===i){const d=IE(o.direction);return d?{...u,orderBy:[{column:i,direction:d}]}:{...u,orderBy:[]}}return{...u,orderBy:[{column:i,direction:"ASC"}]}})},[l]);return{orderBy:n.orderBy,updateOrderBy:r}};function eC(n){var r;const l=(r=n.target)==null?void 0:r.dataset;if(l){if(l.copyCol&&l.copyRow)return{col:parseInt(l.copyCol),row:parseInt(l.copyRow),action:"copy"};if(l.showCol&&l.showRow)return{col:parseInt(l.showCol),row:parseInt(l.showRow),action:"show"};if(l.filterCol&&l.filterRow)return{col:parseInt(l.filterCol),row:parseInt(l.filterRow),action:"filter"}}}function td(n,l,r){var o,d,m;const i=(d=(o=n==null?void 0:n.rows)==null?void 0:o[l])==null?void 0:d[r],u=(m=n==null?void 0:n.columns)==null?void 0:m[r];return{value:i,column:u}}const tC=()=>{const{data:n}=g.useContext(Qn),{getColumnType:l}=g.useContext(ia),{setState:r}=g.useContext(mt),i=m=>{const{value:y,column:p}=td(n==null?void 0:n.result,m.row,m.col);if(p){const b=Yl(y,l(p.full));navigator.clipboard.writeText(b),Pt.success("Copied!")}},u=m=>{const{value:y,column:p}=td(n==null?void 0:n.result,m.row,m.col);if(p){const b=Yl(y,l(p.full));b1(b)}},o=m=>{const{value:y,column:p}=td(n==null?void 0:n.result,m.row,m.col);let b=(p==null?void 0:p.full)||"",S;if((p==null?void 0:p.table)===""){Pt.error("Filtering on aggregated column is not supported yet");return}if(b){let w;if(y==null)w={id:dl(),isEnabled:!0,column:b,connector:"AND",operator:"IS NULL"};else{const C=Yl(y,l(b));w={id:dl(),isEnabled:!0,column:b,connector:"AND",operator:"=",fn:S,value:[{value:C}]}}r(C=>({...C,filters:[...C.filters,w]})),Pt.success(`Added new filter on column ${p==null?void 0:p.alias}`)}};return m=>{const y=eC(m);y&&(y.action==="copy"?i(y):y.action==="show"?u(y):y.action==="filter"&&o(y))}},nC="_container_ja489_2",aC="_content_ja489_2",lC="_backdrop_ja489_2",nd={container:nC,content:aC,backdrop:lC},x1=({children:n,handler:l})=>{const r=g.useRef(l.close);r.current=l.close;const i=g.useMemo(()=>{if(!l.position)return;const u={};if(typeof window<"u"){const o=l.position.y>window.innerHeight/2,d=l.position.x>window.innerWidth/2;o?u.bottom=window.innerHeight-l.position.y:u.top=l.position.y,ME()?d?u.right=window.innerWidth-l.position.x:u.left=l.position.x:(u.right=36,u.left=36)}return u},[l]);return g.useEffect(()=>{const u=o=>{o.code==="Escape"&&r.current()};return window.addEventListener("keyup",u),()=>{window.removeEventListener("keyup",u)}},[]),i?h.jsxs("div",{className:nd.container,children:[h.jsx("div",{className:nd.backdrop,onClick:u=>{u.stopPropagation(),u.preventDefault(),l.close()}}),h.jsx("div",{className:nd.content,style:i,children:n})]}):null},sC="_table_7lh03_2",iC="_root_7lh03_2",rC="_content_7lh03_2",uC="_sub_7lh03_2",Hu={table:sC,root:iC,content:rC,sub:uC},S1=({hook:n,onClick:l})=>h.jsxs("button",{className:Hu.root,onClick:l,children:[h.jsx("span",{children:"📄"}),h.jsxs("div",{className:Hu.content,children:[h.jsxs("p",{className:Hu.table,children:[" ",n.on.toTable]}),h.jsxs("span",{className:Hu.sub,children:[n.on.toColumn," = ",n.on.fromTable,".",n.on.fromColumn]})]})]},n.where),Kl=(n,l)=>n!=null&&n>l,oC=({handler:n,rowIndex:l})=>{const{hooks:r,entities:i,dataSourceId:u,getEntityKey:o,getValue:d}=g.useContext(ia),{state:m}=g.useContext(mt),{data:y}=g.useContext(Qn),[p,b]=g.useState(""),[S,w]=g.useState(""),C=g.useMemo(()=>y==null?void 0:y.result.rows[l],[y,l]),E=Ws(),T=Lt(),j=()=>{C&&E.mutateAsync({name:"⬇️ "+m.table,opts:Hs({joins:m.joins,table:m.table,dataSourceId:m.dataSourceId,filters:[...m.filters,...m.groupBy.map(k=>({id:dl(),connector:"AND",column:k.value,operator:"=",value:[{value:d(C,k)}]}))]})}).then(k=>{T(`${Xe.workbench.path}/tab/${k.id}`),n.close()})},_=k=>{if(!C)return;const F=d(C,{value:`${k.on.fromTable}.${k.on.fromColumn}`});E.mutateAsync({name:`↗️ ${k.on.toColumn} equals ${F}`,opts:Hs({table:k.on.toTable,dataSourceId:u,filters:[{id:dl(),column:`${k.on.toTable}.${k.on.toColumn}`,operator:F==null?"IS NULL":"=",connector:"AND",value:F!=null?[{value:F,isColumn:!1}]:void 0}]})}).then(I=>{T(`${Xe.workbench.path}/tab/${I.id}`),n.close()})},D=k=>{if(!C)return;const F=o(k,C);n.close(),Id({tableName:k,dataSourceId:u,entityId:F}),n.close()},R=g.useMemo(()=>p?i.filter(k=>k.includes(p)):i,[i,p]),X=g.useMemo(()=>{if(!y)return[];const k=S.toLowerCase();return r.filter(F=>y.result.columns.some(ae=>ae.column===F.on.fromColumn&&ae.table===F.on.fromTable)?F.on.toTable.toLowerCase().includes(k):!1)},[S,r,y]),$=m.groupBy.length>0;return h.jsxs(x1,{handler:n,children:[i.length>0&&h.jsxs("div",{className:ne.optionsContainer,children:[h.jsxs("label",{className:"flex items-center gap-2 border-b border-b-gray-200 p-2 bg-(--bg)",children:[h.jsx("span",{className:"font-semibold",children:"📝"}),h.jsx("input",{className:"flex-1 outline-0",placeholder:"Edit/View row",value:p,onChange:k=>b(k.target.value)})]}),h.jsx("div",{className:"flex flex-col overflow-y-auto",children:Kl(R.length,0)?R.map(k=>h.jsx("button",{className:se(ne.optionItem,"font-semibold"),onClick:()=>D(k),children:h.jsxs("span",{children:["📄 ",k]})},k)):h.jsx("p",{className:"text-center p-2 text-gray-800",children:"Empty"})})]}),r.length>0&&h.jsxs("div",{className:ne.optionsContainer,children:[h.jsxs("label",{className:"flex items-center gap-2 border-b border-b-gray-200 p-2 bg-(--bg)",children:[h.jsx("span",{className:"font-semibold",children:"↗️"}),h.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:S,onChange:k=>w(k.target.value)})]}),h.jsx("div",{className:"flex flex-col overflow-y-auto",children:X.length>0?X.map(k=>h.jsx(S1,{hook:k,onClick:()=>_(k)},k.where)):h.jsx("p",{className:"text-center p-2 text-gray-800",children:"Empty"})})]}),$&&h.jsx("button",{onClick:j,className:ne.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},cC={ASC:"⬆️",DESC:"⬇️"},fC=()=>{const{data:n}=g.useContext(Qn),{orderBy:l,updateOrderBy:r}=WE(),i=(n==null?void 0:n.result.columns)||[],u=l[0];return h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("td",{className:"p-1 text-center w-8 text-sm text-gray-600",children:"#"}),i.map(o=>h.jsxs("td",{className:ne.headerCell,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:"text-xs truncate",children:o.table||"-"}),h.jsx("p",{className:"text-sm font-bold truncate",children:o.column})]}),h.jsx("div",{className:ne.headerActions,children:h.jsx("button",{onClick:()=>r(o.full),children:(u==null?void 0:u.column)===o.full?cC[u.direction]:"↕️"})})]},o.full))]})})};function dC({value:n,row:l,col:r}){if(n==="")return h.jsx("span",{className:"pointer-events-none text-black/30 truncate",children:"<EMPTY STRING>"});if(n==null)return h.jsx("span",{className:"pointer-events-none text-black/30",children:"<NULL>"});const i=Yl(n);return h.jsxs(h.Fragment,{children:[h.jsx("span",{"data-row":l,className:"truncate block pointer-events-none",children:i}),h.jsxs("div",{className:ne.cellActions,children:[h.jsx("button",{"data-copy-col":r,"data-copy-row":l,children:"📋"}),h.jsx("button",{"data-show-col":r,"data-show-row":l,children:"👀"}),h.jsx("button",{"data-filter-col":r,"data-filter-row":l,children:"🔎"})]})]})}const hC=g.memo(({row:n,isLastRow:l,index:r,offset:i})=>h.jsxs("tr",{className:se(ne.tableRowCells,l&&"rounded-b-lg"),children:[h.jsx("td",{className:"p-1 text-center align-middle text-xs w-8 text-blue-500",children:r+1+i}),n.map((u,o)=>h.jsx("td",{className:ne.cell,"data-row":r,children:h.jsx(dC,{value:u,col:o,row:r})},o))]})),mC=()=>{var C,E;const{data:n,error:l,isLoading:r,isFetching:i}=g.useContext(Qn),{state:{page:u,size:o}}=g.useContext(mt),d=Jd(l),m=tC(),y=g1(),[p,b]=g.useState(void 0),S=T=>{var D;const j=(D=T.target)==null?void 0:D.dataset,_=j==null?void 0:j.row;_!=null&&(b(parseInt(_)),y.open(T))},w=u*o;return h.jsxs(h.Fragment,{children:[p!=null&&y.show&&h.jsx(oC,{handler:y,rowIndex:p}),d&&h.jsx(Ut,{className:"my-4",variant:"danger",children:d}),r&&h.jsx("div",{className:ne.tableLoading,children:"Loading data"}),n&&h.jsxs("table",{className:se(ne.table,i&&ne.semiTransparent),onContextMenu:S,onClick:m,children:[h.jsx(fC,{}),h.jsxs("tbody",{children:[((C=n.result.rows)==null?void 0:C.length)<1&&h.jsx("tr",{className:ne.tableEmpty,children:h.jsx("td",{colSpan:n.result.columns.length+1,children:"No data"})}),(E=n.result.rows)==null?void 0:E.map((T,j)=>h.jsx(hC,{index:j,offset:w,row:T,isLastRow:j===n.result.rows.length-1},j))]})]})]})},pC="_root_13r6e_2",yC="_root-show_13r6e_2",vC="_content-desktop_13r6e_2",bC="_content-mobile_13r6e_2",gC="_card_13r6e_2",xC="_cards-list_13r6e_2",SC="_sub-text_13r6e_2",wC="_text_13r6e_2",EC="_section-title_13r6e_2",CC="_sidebar-action_13r6e_2",_C="_sidebar-add-action_13r6e_2",NC="_section-container_13r6e_2",jC="_close-button_13r6e_2",AC="_section-open-btn_13r6e_2",TC="_show_13r6e_2",re={root:pC,rootShow:yC,contentDesktop:vC,contentMobile:bC,card:gC,cardsList:xC,subText:SC,text:wC,sectionTitle:EC,sidebarAction:CC,sidebarAddAction:_C,sectionContainer:NC,closeButton:jC,sectionOpenBtn:AC,show:TC};function RC(n,l){if(!n&&!l)return!0;if(!n||!l||n.length!==l.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==l[r])return!1;return!0}const w1=()=>{const{state:n,setState:l}=g.useContext(mt),r=g.useCallback(u=>{l(o=>({...o,filters:u}))},[l]),i=g.useCallback(u=>{l(o=>({...o,filters:o.filters.filter(d=>!(u.column===d.column&&u.operator===d.operator&&RC(u.value,d.value)))}))},[l]);return{filters:n.filters,removeFilter:i,setFilters:r}},OC=(n,l)=>n.type!==l.type||n.on!==l.on||n.table!==l.table,DC=(n,l)=>n.type===l.type&&n.on===l.on&&n.table===l.table,E1=()=>{const{state:n,setState:l}=g.useContext(mt),r=g.useCallback(i=>{l(u=>{const o=u.joins;if(o.some(m=>DC(m,i))){const m=i.table+".";return{...u,joins:o.filter(y=>OC(y,i)),columns:u.columns.filter(y=>!y.value.startsWith(m)),groupBy:u.groupBy.filter(y=>!y.value.startsWith(m)),orderBy:u.orderBy.filter(y=>!y.column.startsWith(m)),aggregations:u.aggregations.filter(y=>!y.value.startsWith(m)),filters:u.filters.filter(y=>!y.column.startsWith(m))}}return{...u,joins:[...o,i]}})},[l]);return{joins:n.joins,toggle:r}},Ao=n=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...n},g.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})),[MC,UC]=fn(!1),eh=()=>UC(n=>!n),LC="_sidebar_1nucs_2",qC="_sidebar-visible_1nucs_2",zC="_sidebar-container_1nucs_2",BC="_sidebar-invisible_1nucs_2",HC="_backdrop_1nucs_2",lr={sidebar:LC,sidebarVisible:qC,sidebarContainer:zC,sidebarInvisible:BC,backdrop:HC},C1=({children:n,backdropClose:l,isVisible:r,onClose:i,onClosed:u,contentClassName:o})=>{const[d,m]=g.useState(!1),y=g.useRef(i);y.current=i;const p=()=>{l&&i()},b=S=>{r||getComputedStyle(S.currentTarget).opacity==="0"&&(m(!1),u&&u())};return g.useEffect(()=>{r&&m(!0)},[r]),g.useEffect(()=>{const S=w=>{r&&w.key==="Escape"&&y.current()};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[r]),h.jsxs("div",{onTransitionEnd:b,className:se(lr.sidebar,r?lr.sidebarVisible:lr.sidebarInvisible),children:[h.jsx("div",{onClick:p,className:lr.backdrop}),h.jsx("div",{className:se(lr.sidebarContainer,o),children:d&&n})]})},[To,th]=fn({filters:!1,joins:!1,columns:!1,groupBy:!1,aggregate:!1}),Ln=n=>th(l=>({...l,[n]:!0})),Ro=n=>th(l=>({...l,[n]:!1})),co=n=>th(l=>({...l,[n]:!l[n]})),_1=()=>{const n=Pd(),l=m4();return{rename:async i=>{if(n){const u=await Er("New tab name",i);u&&await l.mutateAsync({id:n,payload:{name:u}})}return Promise.resolve()}}},kC=()=>{const n=MC();return Wd(jo.laptop)?h.jsx("div",{className:se(re.root,n&&re.rootShow),children:h.jsxs("div",{className:se(re.contentDesktop,"no-scrollbar"),children:[h.jsx(Ry,{}),h.jsx(Ty,{}),h.jsx(qy,{}),h.jsx(Ly,{}),h.jsx(Uy,{}),h.jsx(Dy,{}),h.jsx(My,{}),h.jsx(Oy,{})]})}):h.jsx(C1,{isVisible:n,onClose:eh,backdropClose:!0,children:h.jsxs("div",{className:re.contentMobile,children:[h.jsx(Ry,{}),h.jsx(Ty,{}),h.jsx(qy,{}),h.jsx(Ly,{}),h.jsx(Uy,{}),h.jsx(Dy,{}),h.jsx(My,{}),h.jsx(Oy,{})]})})};function Cr({onShow:n,show:l,title:r,items:i}){return h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("p",{className:re.sectionTitle,children:r}),i>0&&h.jsxs("button",{className:se(re.sectionOpenBtn,l&&re.show),onClick:n,children:[h.jsx("span",{children:i}),h.jsx(Ao,{width:16,height:16})]})]})}function Ty(){const{name:n}=g.useContext(ia),{data:l}=g.useContext(Qn),{rename:r}=_1(),i=()=>{l!=null&&l.result.query&&(navigator.clipboard.writeText(l.result.query),Pt.success("Query copied to clipboard"))};return h.jsxs("div",{className:"grid lg:grid-cols-2 gap-1 px-2 mb-4",children:[h.jsx("button",{className:re.sidebarAction,onClick:()=>r(n),children:h.jsx("span",{children:"✏️ Rename tab"})}),h.jsx("button",{className:re.sidebarAction,onClick:i,children:h.jsx("span",{children:"🖋️ Copy SQL"})})]})}function Ry(){const{state:n}=g.useContext(mt),{data:l}=No(n.dataSourceId);return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx("div",{className:re.card,children:h.jsxs("div",{children:[h.jsx("p",{className:re.subText,children:"📄 Table"}),h.jsx("p",{className:se(re.text,"text-blue-600"),children:n.table})]})}),h.jsx("div",{className:se(re.card,"mt-2"),children:h.jsxs("div",{children:[h.jsx("p",{className:re.subText,children:"📦 Data source"}),h.jsx("p",{className:se(re.text,"text-blue-600"),children:l==null?void 0:l.name})]})})]})}function Oy(){const{state:n,setState:l}=g.useContext(mt),[r,i]=g.useState(!0),u=o=>{l(d=>({...d,groupBy:d.groupBy.filter(m=>Wn(m)!==o)}))};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Cr,{title:"📚 Group by",show:r,onShow:()=>i(!r),items:n.groupBy.length}),r&&n.groupBy.length>0&&h.jsx("div",{className:re.cardsList,children:n.groupBy.map(o=>h.jsxs("div",{className:re.card,children:[h.jsx("span",{className:re.text,children:Wn(o)}),h.jsx("button",{className:re.closeButton,onClick:()=>u(Wn(o)),children:h.jsx(kn,{width:20,height:20})})]},Wn(o)))}),h.jsxs("button",{className:re.sidebarAddAction,onClick:()=>Ln("groupBy"),children:[h.jsx("span",{className:"hotkey",children:"G"}),h.jsx("span",{children:"Add group by"})]})]})}function Dy(){const{state:n,setState:l}=g.useContext(mt),[r,i]=g.useState(!1),u=d=>{l(m=>({...m,columns:m.columns.filter(y=>Wn(y)!==d)}))},o=n.aggregations.length>0||n.groupBy.length>0;return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Cr,{title:"👀 Columns",show:r,onShow:()=>i(!r),items:o?0:n.columns.length}),o&&h.jsx(Ut,{variant:"warning",className:"border border-yellow-800 my-2",children:h.jsx("span",{className:re.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!o&&r&&n.columns.length>0&&h.jsx("div",{className:re.cardsList,children:n.columns.map(d=>h.jsxs("div",{className:re.card,children:[h.jsx("span",{className:re.text,children:Wn(d)}),h.jsx("button",{className:re.closeButton,onClick:()=>u(Wn(d)),children:h.jsx(kn,{width:20,height:20})})]}))}),!o&&h.jsxs("button",{className:re.sidebarAddAction,onClick:()=>Ln("columns"),children:[h.jsx("span",{className:"hotkey",children:"C"}),h.jsx("span",{children:"Show/Hide columns"})]})]})}function My(){const{state:n,setState:l}=g.useContext(mt),[r,i]=g.useState(!0),u=o=>{const d=Wn(o);l(m=>({...m,aggregations:m.aggregations.filter(y=>y.fn!==o.fn||y.value!==o.value),orderBy:m.orderBy.filter(y=>y.column!==d)}))};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Cr,{title:"🔢 Aggregations",show:r,onShow:()=>i(!r),items:n.aggregations.length}),r&&n.aggregations.length>0&&h.jsx("div",{className:re.cardsList,children:n.aggregations.map(o=>h.jsxs("div",{className:re.card,children:[h.jsxs("span",{className:re.text,children:[o.fn," ",o.value]}),h.jsx("button",{className:re.closeButton,onClick:()=>u(o),children:h.jsx(kn,{width:20,height:20})})]}))}),h.jsxs("button",{className:re.sidebarAddAction,onClick:()=>Ln("aggregate"),children:[h.jsx("span",{className:"hotkey",children:"A"}),h.jsx("span",{children:"Aggregate data"})]})]})}const QC=n=>(n==null?void 0:n.map(l=>l.value).join(", "))||"";function Uy(){const{state:n}=g.useContext(mt),{removeFilter:l}=w1(),[r,i]=g.useState(!0),u=()=>{Ln("filters")};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Cr,{title:"🎚️ Filters",show:r,onShow:()=>i(!r),items:n.filters.length}),r&&n.filters.length>0&&h.jsx("div",{className:re.cardsList,children:n.filters.map((o,d)=>h.jsxs("div",{className:re.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:se(re.subText,"truncate"),children:o.column}),h.jsxs("p",{className:se(re.text,"truncate"),children:[$d[o.operator]," ",QC(o.value)]})]}),h.jsx("button",{className:re.closeButton,onClick:()=>l(o),children:h.jsx(kn,{width:20,height:20})})]},d))}),h.jsxs("button",{className:re.sidebarAddAction,onClick:u,children:[h.jsx("span",{className:"hotkey",children:"F"}),h.jsx("span",{children:"Filter data"})]})]})}function Ly(){const{toggle:n}=E1(),{availableJoins:l}=g.useContext(ia),{state:r}=g.useContext(mt),[i,u]=g.useState(!0);return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx(Cr,{title:"📄 Joins",show:i,onShow:()=>u(!i),items:r.joins.length}),i&&r.joins.length>0&&h.jsx("div",{className:re.cardsList,children:r.joins.map((o,d)=>h.jsxs("div",{className:re.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsxs("p",{className:se(re.subText,"truncate"),children:["on ",o.on]}),h.jsx("p",{className:re.text,children:o.table})]}),d===r.joins.length-1&&h.jsx("button",{className:re.closeButton,onClick:()=>n(o),children:h.jsx(kn,{width:20,height:20})})]},o.table+o.on))}),l.length>0&&h.jsxs("button",{onClick:()=>Ln("joins"),className:re.sidebarAddAction,children:[h.jsx("span",{className:"hotkey",children:"J"}),h.jsx("span",{children:"Join table"})]})]})}function qy(){const{state:n,setState:l}=g.useContext(mt);if(!n.orderBy.length)return null;const r=i=>{l(u=>({...u,orderBy:u.orderBy.filter(o=>o.column!==i.column&&o.direction!==i.direction)}))};return h.jsxs("div",{className:re.sectionContainer,children:[h.jsx("p",{className:re.sectionTitle,children:"Order by"}),h.jsx("div",{className:re.cardsList,children:n.orderBy.map((i,u)=>h.jsxs("div",{className:re.card,children:[h.jsxs("div",{className:"overflow-hidden",children:[h.jsx("p",{className:se(re.subText,"truncate"),children:i.direction}),h.jsx("p",{className:re.text,children:i.column})]}),h.jsx("button",{className:re.closeButton,onClick:()=>r(i),children:h.jsx(kn,{width:20,height:20})})]},u))})]})}const N1=()=>{const{state:n,setState:l}=g.useContext(mt),r=g.useCallback(u=>{l(o=>({...o,page:u}))},[l]),i=g.useCallback(u=>{l(o=>({...o,size:u}))},[l]);return{page:n.page,size:n.size,setSize:i,setPage:r}},YC=()=>qt({mutationFn:async n=>{const{data:l}=await Me.post("/saved-queries",n);return l.data},onSuccess:()=>{ht.invalidateQueries(["queries"]),Js()}}),VC=()=>qt({mutationFn:async n=>Me.delete("/saved-queries/"+n),onSuccess:()=>{Js()}}),$C=()=>qt({mutationFn:async({id:n,payload:l})=>{const{data:r}=await Me.patch("/queries/"+n,l);return r.data},onSuccess:n=>{ht.invalidateQueries(["query",n.id]),Js(),qw(),n.isTrash}}),zs=new Map,KC=n=>{const l=[];return n.ctrlKey&&l.push("CTRL"),n.altKey&&l.push("ALT"),n.shiftKey&&l.push("SHIFT"),n.metaKey&&l.push("META"),l.push(n.key.toLowerCase()),l.join("+")},FC=n=>{var i,u,o;const l=(u=(i=n.target)==null?void 0:i.tagName)==null?void 0:u.toLowerCase();if(n.ctrlKey||n.altKey||n.metaKey||["input","textarea","select"].includes(l)||(o=n.target)!=null&&o.isContentEditable)return;const r=zs.get(KC(n));r&&r.length>0&&r[r.length-1].callback()},GC=(n,l,r="")=>{const i=n.toLowerCase(),u=zs.get(n);return u?zs.set(n,[...u,{callback:l,label:r}]):zs.set(i,[{callback:l,label:r}]),()=>{const o=n.toLowerCase(),d=zs.get(o);d&&zs.set(o,d.filter(m=>m.callback!==l))}};window.addEventListener("keyup",FC);function It(n,l,r){const i=g.useRef({callback:l,label:r});i.current.callback=l,g.useEffect(()=>GC(n,()=>{i.current.callback()},i.current.label),[n])}const XC=()=>{const n=xr("Hotkey"),l=Lt(),r=Yt(),{data:i}=la(),{data:u}=Gd();It("n",()=>{i&&n()},"📖 New query"),It("w",()=>{i&&(u&&u.length>0?l(`${Xe.workbench.path}/tab/${u[0].id}`):n())},"🛠️ Open Workbench"),It("h",()=>{r.pathname!==Xe.home.path&&l(Xe.home.path)},"🏠 Go home")},Qs=Math.min,Vl=Math.max,fo=Math.round,ku=Math.floor,ea=n=>({x:n,y:n}),ZC={left:"right",right:"left",bottom:"top",top:"bottom"},JC={start:"end",end:"start"};function Cd(n,l,r){return Vl(n,Qs(l,r))}function _r(n,l){return typeof n=="function"?n(l):n}function Fl(n){return n.split("-")[0]}function Nr(n){return n.split("-")[1]}function j1(n){return n==="x"?"y":"x"}function nh(n){return n==="y"?"height":"width"}function fl(n){return["top","bottom"].includes(Fl(n))?"y":"x"}function ah(n){return j1(fl(n))}function PC(n,l,r){r===void 0&&(r=!1);const i=Nr(n),u=ah(n),o=nh(u);let d=u==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[o]>l.floating[o]&&(d=ho(d)),[d,ho(d)]}function IC(n){const l=ho(n);return[_d(n),l,_d(l)]}function _d(n){return n.replace(/start|end/g,l=>JC[l])}function WC(n,l,r){const i=["left","right"],u=["right","left"],o=["top","bottom"],d=["bottom","top"];switch(n){case"top":case"bottom":return r?l?u:i:l?i:u;case"left":case"right":return l?o:d;default:return[]}}function e_(n,l,r,i){const u=Nr(n);let o=WC(Fl(n),r==="start",i);return u&&(o=o.map(d=>d+"-"+u),l&&(o=o.concat(o.map(_d)))),o}function ho(n){return n.replace(/left|right|bottom|top/g,l=>ZC[l])}function t_(n){return{top:0,right:0,bottom:0,left:0,...n}}function A1(n){return typeof n!="number"?t_(n):{top:n,right:n,bottom:n,left:n}}function mo(n){const{x:l,y:r,width:i,height:u}=n;return{width:i,height:u,top:r,left:l,right:l+i,bottom:r+u,x:l,y:r}}function zy(n,l,r){let{reference:i,floating:u}=n;const o=fl(l),d=ah(l),m=nh(d),y=Fl(l),p=o==="y",b=i.x+i.width/2-u.width/2,S=i.y+i.height/2-u.height/2,w=i[m]/2-u[m]/2;let C;switch(y){case"top":C={x:b,y:i.y-u.height};break;case"bottom":C={x:b,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:S};break;case"left":C={x:i.x-u.width,y:S};break;default:C={x:i.x,y:i.y}}switch(Nr(l)){case"start":C[d]-=w*(r&&p?-1:1);break;case"end":C[d]+=w*(r&&p?-1:1);break}return C}const n_=async(n,l,r)=>{const{placement:i="bottom",strategy:u="absolute",middleware:o=[],platform:d}=r,m=o.filter(Boolean),y=await(d.isRTL==null?void 0:d.isRTL(l));let p=await d.getElementRects({reference:n,floating:l,strategy:u}),{x:b,y:S}=zy(p,i,y),w=i,C={},E=0;for(let T=0;T<m.length;T++){const{name:j,fn:_}=m[T],{x:D,y:R,data:X,reset:$}=await _({x:b,y:S,initialPlacement:i,placement:w,strategy:u,middlewareData:C,rects:p,platform:d,elements:{reference:n,floating:l}});b=D??b,S=R??S,C={...C,[j]:{...C[j],...X}},$&&E<=50&&(E++,typeof $=="object"&&($.placement&&(w=$.placement),$.rects&&(p=$.rects===!0?await d.getElementRects({reference:n,floating:l,strategy:u}):$.rects),{x:b,y:S}=zy(p,w,y)),T=-1)}return{x:b,y:S,placement:w,strategy:u,middlewareData:C}};async function T1(n,l){var r;l===void 0&&(l={});const{x:i,y:u,platform:o,rects:d,elements:m,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:S="floating",altBoundary:w=!1,padding:C=0}=_r(l,n),E=A1(C),j=m[w?S==="floating"?"reference":"floating":S],_=mo(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(j)))==null||r?j:j.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(m.floating)),boundary:p,rootBoundary:b,strategy:y})),D=S==="floating"?{x:i,y:u,width:d.floating.width,height:d.floating.height}:d.reference,R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(m.floating)),X=await(o.isElement==null?void 0:o.isElement(R))?await(o.getScale==null?void 0:o.getScale(R))||{x:1,y:1}:{x:1,y:1},$=mo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:D,offsetParent:R,strategy:y}):D);return{top:(_.top-$.top+E.top)/X.y,bottom:($.bottom-_.bottom+E.bottom)/X.y,left:(_.left-$.left+E.left)/X.x,right:($.right-_.right+E.right)/X.x}}const a_=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:i,placement:u,rects:o,platform:d,elements:m,middlewareData:y}=l,{element:p,padding:b=0}=_r(n,l)||{};if(p==null)return{};const S=A1(b),w={x:r,y:i},C=ah(u),E=nh(C),T=await d.getDimensions(p),j=C==="y",_=j?"top":"left",D=j?"bottom":"right",R=j?"clientHeight":"clientWidth",X=o.reference[E]+o.reference[C]-w[C]-o.floating[E],$=w[C]-o.reference[C],k=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let F=k?k[R]:0;(!F||!await(d.isElement==null?void 0:d.isElement(k)))&&(F=m.floating[R]||o.floating[E]);const I=X/2-$/2,ae=F/2-T[E]/2-1,pe=Qs(S[_],ae),Be=Qs(S[D],ae),Ee=pe,Ke=F-T[E]-Be,ye=F/2-T[E]/2+I,xe=Cd(Ee,ye,Ke),B=!y.arrow&&Nr(u)!=null&&ye!==xe&&o.reference[E]/2-(ye<Ee?pe:Be)-T[E]/2<0,G=B?ye<Ee?ye-Ee:ye-Ke:0;return{[C]:w[C]+G,data:{[C]:xe,centerOffset:ye-xe-G,...B&&{alignmentOffset:G}},reset:B}}}),l_=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,i;const{placement:u,middlewareData:o,rects:d,initialPlacement:m,platform:y,elements:p}=l,{mainAxis:b=!0,crossAxis:S=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...j}=_r(n,l);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const _=Fl(u),D=fl(m),R=Fl(m)===m,X=await(y.isRTL==null?void 0:y.isRTL(p.floating)),$=w||(R||!T?[ho(m)]:IC(m)),k=E!=="none";!w&&k&&$.push(...e_(m,T,E,X));const F=[m,...$],I=await T1(l,j),ae=[];let pe=((i=o.flip)==null?void 0:i.overflows)||[];if(b&&ae.push(I[_]),S){const ye=PC(u,d,X);ae.push(I[ye[0]],I[ye[1]])}if(pe=[...pe,{placement:u,overflows:ae}],!ae.every(ye=>ye<=0)){var Be,Ee;const ye=(((Be=o.flip)==null?void 0:Be.index)||0)+1,xe=F[ye];if(xe&&(!(S==="alignment"?D!==fl(xe):!1)||pe.every(J=>J.overflows[0]>0&&fl(J.placement)===D)))return{data:{index:ye,overflows:pe},reset:{placement:xe}};let B=(Ee=pe.filter(G=>G.overflows[0]<=0).sort((G,J)=>G.overflows[1]-J.overflows[1])[0])==null?void 0:Ee.placement;if(!B)switch(C){case"bestFit":{var Ke;const G=(Ke=pe.filter(J=>{if(k){const oe=fl(J.placement);return oe===D||oe==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(oe=>oe>0).reduce((oe,A)=>oe+A,0)]).sort((J,oe)=>J[1]-oe[1])[0])==null?void 0:Ke[0];G&&(B=G);break}case"initialPlacement":B=m;break}if(u!==B)return{reset:{placement:B}}}return{}}}};async function s_(n,l){const{placement:r,platform:i,elements:u}=n,o=await(i.isRTL==null?void 0:i.isRTL(u.floating)),d=Fl(r),m=Nr(r),y=fl(r)==="y",p=["left","top"].includes(d)?-1:1,b=o&&y?-1:1,S=_r(l,n);let{mainAxis:w,crossAxis:C,alignmentAxis:E}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return m&&typeof E=="number"&&(C=m==="end"?E*-1:E),y?{x:C*b,y:w*p}:{x:w*p,y:C*b}}const i_=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,i;const{x:u,y:o,placement:d,middlewareData:m}=l,y=await s_(l,n);return d===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:u+y.x,y:o+y.y,data:{...y,placement:d}}}}},r_=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:i,placement:u}=l,{mainAxis:o=!0,crossAxis:d=!1,limiter:m={fn:j=>{let{x:_,y:D}=j;return{x:_,y:D}}},...y}=_r(n,l),p={x:r,y:i},b=await T1(l,y),S=fl(Fl(u)),w=j1(S);let C=p[w],E=p[S];if(o){const j=w==="y"?"top":"left",_=w==="y"?"bottom":"right",D=C+b[j],R=C-b[_];C=Cd(D,C,R)}if(d){const j=S==="y"?"top":"left",_=S==="y"?"bottom":"right",D=E+b[j],R=E-b[_];E=Cd(D,E,R)}const T=m.fn({...l,[w]:C,[S]:E});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[w]:o,[S]:d}}}}}};function Oo(){return typeof window<"u"}function ei(n){return R1(n)?(n.nodeName||"").toLowerCase():"#document"}function cn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function ra(n){var l;return(l=(R1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function R1(n){return Oo()?n instanceof Node||n instanceof cn(n).Node:!1}function zn(n){return Oo()?n instanceof Element||n instanceof cn(n).Element:!1}function ta(n){return Oo()?n instanceof HTMLElement||n instanceof cn(n).HTMLElement:!1}function By(n){return!Oo()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof cn(n).ShadowRoot}function jr(n){const{overflow:l,overflowX:r,overflowY:i,display:u}=Bn(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+r)&&!["inline","contents"].includes(u)}function u_(n){return["table","td","th"].includes(ei(n))}function Do(n){return[":popover-open",":modal"].some(l=>{try{return n.matches(l)}catch{return!1}})}function lh(n){const l=sh(),r=zn(n)?Bn(n):n;return["transform","translate","scale","rotate","perspective"].some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!l&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!l&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function o_(n){let l=hl(n);for(;ta(l)&&!Ys(l);){if(lh(l))return l;if(Do(l))return null;l=hl(l)}return null}function sh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ys(n){return["html","body","#document"].includes(ei(n))}function Bn(n){return cn(n).getComputedStyle(n)}function Mo(n){return zn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function hl(n){if(ei(n)==="html")return n;const l=n.assignedSlot||n.parentNode||By(n)&&n.host||ra(n);return By(l)?l.host:l}function O1(n){const l=hl(n);return Ys(l)?n.ownerDocument?n.ownerDocument.body:n.body:ta(l)&&jr(l)?l:O1(l)}function fr(n,l,r){var i;l===void 0&&(l=[]),r===void 0&&(r=!0);const u=O1(n),o=u===((i=n.ownerDocument)==null?void 0:i.body),d=cn(u);if(o){const m=Nd(d);return l.concat(d,d.visualViewport||[],jr(u)?u:[],m&&r?fr(m):[])}return l.concat(u,fr(u,[],r))}function Nd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function D1(n){const l=Bn(n);let r=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const u=ta(n),o=u?n.offsetWidth:r,d=u?n.offsetHeight:i,m=fo(r)!==o||fo(i)!==d;return m&&(r=o,i=d),{width:r,height:i,$:m}}function ih(n){return zn(n)?n:n.contextElement}function Bs(n){const l=ih(n);if(!ta(l))return ea(1);const r=l.getBoundingClientRect(),{width:i,height:u,$:o}=D1(l);let d=(o?fo(r.width):r.width)/i,m=(o?fo(r.height):r.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const c_=ea(0);function M1(n){const l=cn(n);return!sh()||!l.visualViewport?c_:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function f_(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==cn(n)?!1:l}function Gl(n,l,r,i){l===void 0&&(l=!1),r===void 0&&(r=!1);const u=n.getBoundingClientRect(),o=ih(n);let d=ea(1);l&&(i?zn(i)&&(d=Bs(i)):d=Bs(n));const m=f_(o,r,i)?M1(o):ea(0);let y=(u.left+m.x)/d.x,p=(u.top+m.y)/d.y,b=u.width/d.x,S=u.height/d.y;if(o){const w=cn(o),C=i&&zn(i)?cn(i):i;let E=w,T=Nd(E);for(;T&&i&&C!==E;){const j=Bs(T),_=T.getBoundingClientRect(),D=Bn(T),R=_.left+(T.clientLeft+parseFloat(D.paddingLeft))*j.x,X=_.top+(T.clientTop+parseFloat(D.paddingTop))*j.y;y*=j.x,p*=j.y,b*=j.x,S*=j.y,y+=R,p+=X,E=cn(T),T=Nd(E)}}return mo({width:b,height:S,x:y,y:p})}function rh(n,l){const r=Mo(n).scrollLeft;return l?l.left+r:Gl(ra(n)).left+r}function U1(n,l,r){r===void 0&&(r=!1);const i=n.getBoundingClientRect(),u=i.left+l.scrollLeft-(r?0:rh(n,i)),o=i.top+l.scrollTop;return{x:u,y:o}}function d_(n){let{elements:l,rect:r,offsetParent:i,strategy:u}=n;const o=u==="fixed",d=ra(i),m=l?Do(l.floating):!1;if(i===d||m&&o)return r;let y={scrollLeft:0,scrollTop:0},p=ea(1);const b=ea(0),S=ta(i);if((S||!S&&!o)&&((ei(i)!=="body"||jr(d))&&(y=Mo(i)),ta(i))){const C=Gl(i);p=Bs(i),b.x=C.x+i.clientLeft,b.y=C.y+i.clientTop}const w=d&&!S&&!o?U1(d,y,!0):ea(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-y.scrollLeft*p.x+b.x+w.x,y:r.y*p.y-y.scrollTop*p.y+b.y+w.y}}function h_(n){return Array.from(n.getClientRects())}function m_(n){const l=ra(n),r=Mo(n),i=n.ownerDocument.body,u=Vl(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),o=Vl(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let d=-r.scrollLeft+rh(n);const m=-r.scrollTop;return Bn(i).direction==="rtl"&&(d+=Vl(l.clientWidth,i.clientWidth)-u),{width:u,height:o,x:d,y:m}}function p_(n,l){const r=cn(n),i=ra(n),u=r.visualViewport;let o=i.clientWidth,d=i.clientHeight,m=0,y=0;if(u){o=u.width,d=u.height;const p=sh();(!p||p&&l==="fixed")&&(m=u.offsetLeft,y=u.offsetTop)}return{width:o,height:d,x:m,y}}function y_(n,l){const r=Gl(n,!0,l==="fixed"),i=r.top+n.clientTop,u=r.left+n.clientLeft,o=ta(n)?Bs(n):ea(1),d=n.clientWidth*o.x,m=n.clientHeight*o.y,y=u*o.x,p=i*o.y;return{width:d,height:m,x:y,y:p}}function Hy(n,l,r){let i;if(l==="viewport")i=p_(n,r);else if(l==="document")i=m_(ra(n));else if(zn(l))i=y_(l,r);else{const u=M1(n);i={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return mo(i)}function L1(n,l){const r=hl(n);return r===l||!zn(r)||Ys(r)?!1:Bn(r).position==="fixed"||L1(r,l)}function v_(n,l){const r=l.get(n);if(r)return r;let i=fr(n,[],!1).filter(m=>zn(m)&&ei(m)!=="body"),u=null;const o=Bn(n).position==="fixed";let d=o?hl(n):n;for(;zn(d)&&!Ys(d);){const m=Bn(d),y=lh(d);!y&&m.position==="fixed"&&(u=null),(o?!y&&!u:!y&&m.position==="static"&&!!u&&["absolute","fixed"].includes(u.position)||jr(d)&&!y&&L1(n,d))?i=i.filter(b=>b!==d):u=m,d=hl(d)}return l.set(n,i),i}function b_(n){let{element:l,boundary:r,rootBoundary:i,strategy:u}=n;const d=[...r==="clippingAncestors"?Do(l)?[]:v_(l,this._c):[].concat(r),i],m=d[0],y=d.reduce((p,b)=>{const S=Hy(l,b,u);return p.top=Vl(S.top,p.top),p.right=Qs(S.right,p.right),p.bottom=Qs(S.bottom,p.bottom),p.left=Vl(S.left,p.left),p},Hy(l,m,u));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function g_(n){const{width:l,height:r}=D1(n);return{width:l,height:r}}function x_(n,l,r){const i=ta(l),u=ra(l),o=r==="fixed",d=Gl(n,!0,o,l);let m={scrollLeft:0,scrollTop:0};const y=ea(0);function p(){y.x=rh(u)}if(i||!i&&!o)if((ei(l)!=="body"||jr(u))&&(m=Mo(l)),i){const C=Gl(l,!0,o,l);y.x=C.x+l.clientLeft,y.y=C.y+l.clientTop}else u&&p();o&&!i&&u&&p();const b=u&&!i&&!o?U1(u,m):ea(0),S=d.left+m.scrollLeft-y.x-b.x,w=d.top+m.scrollTop-y.y-b.y;return{x:S,y:w,width:d.width,height:d.height}}function ad(n){return Bn(n).position==="static"}function ky(n,l){if(!ta(n)||Bn(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return ra(n)===r&&(r=r.ownerDocument.body),r}function q1(n,l){const r=cn(n);if(Do(n))return r;if(!ta(n)){let u=hl(n);for(;u&&!Ys(u);){if(zn(u)&&!ad(u))return u;u=hl(u)}return r}let i=ky(n,l);for(;i&&u_(i)&&ad(i);)i=ky(i,l);return i&&Ys(i)&&ad(i)&&!lh(i)?r:i||o_(n)||r}const S_=async function(n){const l=this.getOffsetParent||q1,r=this.getDimensions,i=await r(n.floating);return{reference:x_(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function w_(n){return Bn(n).direction==="rtl"}const E_={convertOffsetParentRelativeRectToViewportRelativeRect:d_,getDocumentElement:ra,getClippingRect:b_,getOffsetParent:q1,getElementRects:S_,getClientRects:h_,getDimensions:g_,getScale:Bs,isElement:zn,isRTL:w_};function z1(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function C_(n,l){let r=null,i;const u=ra(n);function o(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function d(m,y){m===void 0&&(m=!1),y===void 0&&(y=1),o();const p=n.getBoundingClientRect(),{left:b,top:S,width:w,height:C}=p;if(m||l(),!w||!C)return;const E=ku(S),T=ku(u.clientWidth-(b+w)),j=ku(u.clientHeight-(S+C)),_=ku(b),R={rootMargin:-E+"px "+-T+"px "+-j+"px "+-_+"px",threshold:Vl(0,Qs(1,y))||1};let X=!0;function $(k){const F=k[0].intersectionRatio;if(F!==y){if(!X)return d();F?d(!1,F):i=setTimeout(()=>{d(!1,1e-7)},1e3)}F===1&&!z1(p,n.getBoundingClientRect())&&d(),X=!1}try{r=new IntersectionObserver($,{...R,root:u.ownerDocument})}catch{r=new IntersectionObserver($,R)}r.observe(n)}return d(!0),o}function __(n,l,r,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:o=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,p=ih(n),b=u||o?[...p?fr(p):[],...fr(l)]:[];b.forEach(_=>{u&&_.addEventListener("scroll",r,{passive:!0}),o&&_.addEventListener("resize",r)});const S=p&&m?C_(p,r):null;let w=-1,C=null;d&&(C=new ResizeObserver(_=>{let[D]=_;D&&D.target===p&&C&&(C.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=C)==null||R.observe(l)})),r()}),p&&!y&&C.observe(p),C.observe(l));let E,T=y?Gl(n):null;y&&j();function j(){const _=Gl(n);T&&!z1(T,_)&&r(),T=_,E=requestAnimationFrame(j)}return r(),()=>{var _;b.forEach(D=>{u&&D.removeEventListener("scroll",r),o&&D.removeEventListener("resize",r)}),S==null||S(),(_=C)==null||_.disconnect(),C=null,y&&cancelAnimationFrame(E)}}const N_=i_,j_=r_,A_=l_,T_=a_,Qy=(n,l,r)=>{const i=new Map,u={platform:E_,...r},o={...u.platform,_c:i};return n_(n,l,{...u,platform:o})};var ld={exports:{}};/*!
233
- Copyright (c) 2018 Jed Watson.
234
- Licensed under the MIT License (MIT), see
235
- http://jedwatson.github.io/classnames
236
- */var Yy;function R_(){return Yy||(Yy=1,function(n){(function(){var l={}.hasOwnProperty;function r(){for(var o="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(o=u(o,i(m)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var d="";for(var m in o)l.call(o,m)&&o[m]&&(d=u(d,m));return d}function u(o,d){return d?o?o+" "+d:o+d:o}n.exports?(r.default=r,n.exports=r):window.classNames=r})()}(ld)),ld.exports}var O_=R_();const jd=po(O_);var Vy={};const D_="react-tooltip-core-styles",M_="react-tooltip-base-styles",$y={core:!1,base:!1};function Ky({css:n,id:l=M_,type:r="base",ref:i}){var u,o;if(!n||typeof document>"u"||$y[r]||r==="core"&&typeof process<"u"&&(!((u=process==null?void 0:Vy)===null||u===void 0)&&u.REACT_TOOLTIP_DISABLE_CORE_STYLES)||r!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:Vy)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;r==="core"&&(l=D_),i||(i={});const{insertAt:d}=i;if(document.getElementById(l))return;const m=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");y.id=l,y.type="text/css",d==="top"&&m.firstChild?m.insertBefore(y,m.firstChild):m.appendChild(y),y.styleSheet?y.styleSheet.cssText=n:y.appendChild(document.createTextNode(n)),$y[r]=!0}const Fy=async({elementReference:n=null,tooltipReference:l=null,tooltipArrowReference:r=null,place:i="top",offset:u=10,strategy:o="absolute",middlewares:d=[N_(Number(u)),A_({fallbackAxisSideDirection:"start"}),j_({padding:5})],border:m,arrowSize:y=8})=>{if(!n)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(l===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const p=d;return r?(p.push(T_({element:r,padding:5})),Qy(n,l,{placement:i,strategy:o,middleware:p}).then(({x:b,y:S,placement:w,middlewareData:C})=>{var E,T;const j={left:`${b}px`,top:`${S}px`,border:m},{x:_,y:D}=(E=C.arrow)!==null&&E!==void 0?E:{x:0,y:0},R=(T={top:"bottom",right:"left",bottom:"top",left:"right"}[w.split("-")[0]])!==null&&T!==void 0?T:"bottom",X=m&&{borderBottom:m,borderRight:m};let $=0;if(m){const k=`${m}`.match(/(\d+)px/);$=k!=null&&k[1]?Number(k[1]):1}return{tooltipStyles:j,tooltipArrowStyles:{left:_!=null?`${_}px`:"",top:D!=null?`${D}px`:"",right:"",bottom:"",...X,[R]:`-${y/2+$}px`},place:w}})):Qy(n,l,{placement:"bottom",strategy:o,middleware:p}).then(({x:b,y:S,placement:w})=>({tooltipStyles:{left:`${b}px`,top:`${S}px`},tooltipArrowStyles:{},place:w}))},Gy=(n,l)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(n,l),Xy=(n,l,r)=>{let i=null;const u=function(...o){const d=()=>{i=null};!i&&(n.apply(this,o),i=setTimeout(d,l))};return u.cancel=()=>{i&&(clearTimeout(i),i=null)},u},Zy=n=>n!==null&&!Array.isArray(n)&&typeof n=="object",Ad=(n,l)=>{if(n===l)return!0;if(Array.isArray(n)&&Array.isArray(l))return n.length===l.length&&n.every((u,o)=>Ad(u,l[o]));if(Array.isArray(n)!==Array.isArray(l))return!1;if(!Zy(n)||!Zy(l))return n===l;const r=Object.keys(n),i=Object.keys(l);return r.length===i.length&&r.every(u=>Ad(n[u],l[u]))},U_=n=>{if(!(n instanceof HTMLElement||n instanceof SVGElement))return!1;const l=getComputedStyle(n);return["overflow","overflow-x","overflow-y"].some(r=>{const i=l.getPropertyValue(r);return i==="auto"||i==="scroll"})},Jy=n=>{if(!n)return null;let l=n.parentElement;for(;l;){if(U_(l))return l;l=l.parentElement}return document.scrollingElement||document.documentElement},L_=typeof window<"u"?g.useLayoutEffect:g.useEffect,Tn=n=>{n.current&&(clearTimeout(n.current),n.current=null)},q_="DEFAULT_TOOLTIP_ID",z_={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},B_=g.createContext({getTooltipData:()=>z_});function B1(n=q_){return g.useContext(B_).getTooltipData(n)}var Ls={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},sd={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const H_=({forwardRef:n,id:l,className:r,classNameArrow:i,variant:u="dark",anchorId:o,anchorSelect:d,place:m="top",offset:y=10,events:p=["hover"],openOnClick:b=!1,positionStrategy:S="absolute",middlewares:w,wrapper:C,delayShow:E=0,delayHide:T=0,float:j=!1,hidden:_=!1,noArrow:D=!1,clickable:R=!1,closeOnEsc:X=!1,closeOnScroll:$=!1,closeOnResize:k=!1,openEvents:F,closeEvents:I,globalCloseEvents:ae,imperativeModeOnly:pe,style:Be,position:Ee,afterShow:Ke,afterHide:ye,disableTooltip:xe,content:B,contentWrapperRef:G,isOpen:J,defaultIsOpen:oe=!1,setIsOpen:A,activeAnchor:Q,setActiveAnchor:W,border:P,opacity:ie,arrowColor:Ce,arrowSize:ce=8,role:St="tooltip"})=>{var Ue;const Ze=g.useRef(null),Yn=g.useRef(null),Nt=g.useRef(null),hn=g.useRef(null),ua=g.useRef(null),[mn,ti]=g.useState({tooltipStyles:{},tooltipArrowStyles:{},place:m}),[zt,Bt]=g.useState(!1),[oa,Vn]=g.useState(!1),[Fe,$n]=g.useState(null),yl=g.useRef(!1),Ma=g.useRef(null),{anchorRefs:vl,setActiveAnchor:Zl}=B1(l),pn=g.useRef(!1),[tt,Vt]=g.useState([]),st=g.useRef(!1),Ua=b||p.includes("click"),ni=Ua||(F==null?void 0:F.click)||(F==null?void 0:F.dblclick)||(F==null?void 0:F.mousedown),La=F?{...F}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!F&&Ua&&Object.assign(La,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const yn=I?{...I}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!I&&Ua&&Object.assign(yn,{mouseleave:!1,blur:!1,mouseout:!1});const jt=ae?{...ae}:{escape:X||!1,scroll:$||!1,resize:k||!1,clickOutsideAnchor:ni||!1};pe&&(Object.assign(La,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(yn,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(jt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),L_(()=>(st.current=!0,()=>{st.current=!1}),[]);const He=Z=>{st.current&&(Z&&Vn(!0),setTimeout(()=>{st.current&&(A==null||A(Z),J===void 0&&Bt(Z))},10))};g.useEffect(()=>{if(J===void 0)return()=>null;J&&Vn(!0);const Z=setTimeout(()=>{Bt(J)},10);return()=>{clearTimeout(Z)}},[J]),g.useEffect(()=>{if(zt!==yl.current)if(Tn(ua),yl.current=zt,zt)Ke==null||Ke();else{const Z=(te=>{const de=te.match(/^([\d.]+)(ms|s)$/);if(!de)return 0;const[,Ie,vt]=de;return Number(Ie)*(vt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ua.current=setTimeout(()=>{Vn(!1),$n(null),ye==null||ye()},Z+25)}},[zt]);const ca=Z=>{ti(te=>Ad(te,Z)?te:Z)},On=(Z=E)=>{Tn(Nt),oa?He(!0):Nt.current=setTimeout(()=>{He(!0)},Z)},qa=(Z=T)=>{Tn(hn),hn.current=setTimeout(()=>{pn.current||He(!1)},Z)},za=Z=>{var te;if(!Z)return;const de=(te=Z.currentTarget)!==null&&te!==void 0?te:Z.target;if(!(de!=null&&de.isConnected))return W(null),void Zl({current:null});E?On():He(!0),W(de),Zl({current:de}),Tn(hn)},fa=()=>{R?qa(T||100):T?qa():He(!1),Tn(Nt)},Kn=({x:Z,y:te})=>{var de;const Ie={getBoundingClientRect:()=>({x:Z,y:te,width:0,height:0,top:te,left:Z,right:Z,bottom:te})};Fy({place:(de=Fe==null?void 0:Fe.place)!==null&&de!==void 0?de:m,offset:y,elementReference:Ie,tooltipReference:Ze.current,tooltipArrowReference:Yn.current,strategy:S,middlewares:w,border:P,arrowSize:ce}).then(vt=>{ca(vt)})},vn=Z=>{if(!Z)return;const te=Z,de={x:te.clientX,y:te.clientY};Kn(de),Ma.current=de},bl=Z=>{var te;if(!zt)return;const de=Z.target;de.isConnected&&(!((te=Ze.current)===null||te===void 0)&&te.contains(de)||[document.querySelector(`[id='${o}']`),...tt].some(Ie=>Ie==null?void 0:Ie.contains(de))||(He(!1),Tn(Nt)))},gl=Xy(za,50),it=Xy(fa,50),At=Z=>{it.cancel(),gl(Z)},ue=()=>{gl.cancel(),it()},_e=g.useCallback(()=>{var Z,te;const de=(Z=Fe==null?void 0:Fe.position)!==null&&Z!==void 0?Z:Ee;de?Kn(de):j?Ma.current&&Kn(Ma.current):Q!=null&&Q.isConnected&&Fy({place:(te=Fe==null?void 0:Fe.place)!==null&&te!==void 0?te:m,offset:y,elementReference:Q,tooltipReference:Ze.current,tooltipArrowReference:Yn.current,strategy:S,middlewares:w,border:P,arrowSize:ce}).then(Ie=>{st.current&&ca(Ie)})},[zt,Q,B,Be,m,Fe==null?void 0:Fe.place,y,S,Ee,Fe==null?void 0:Fe.position,j,ce]);g.useEffect(()=>{var Z,te;const de=new Set(vl);tt.forEach(Oe=>{xe!=null&&xe(Oe)||de.add({current:Oe})});const Ie=document.querySelector(`[id='${o}']`);Ie&&!(xe!=null&&xe(Ie))&&de.add({current:Ie});const vt=()=>{He(!1)},bn=Jy(Q),en=Jy(Ze.current);jt.scroll&&(window.addEventListener("scroll",vt),bn==null||bn.addEventListener("scroll",vt),en==null||en.addEventListener("scroll",vt));let rt=null;jt.resize?window.addEventListener("resize",vt):Q&&Ze.current&&(rt=__(Q,Ze.current,_e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Rt=Oe=>{Oe.key==="Escape"&&He(!1)};jt.escape&&window.addEventListener("keydown",Rt),jt.clickOutsideAnchor&&window.addEventListener("click",bl);const Re=[],tn=Oe=>!!(Oe!=null&&Oe.target&&(Q!=null&&Q.contains(Oe.target))),xl=Oe=>{zt&&tn(Oe)||za(Oe)},Ba=Oe=>{zt&&tn(Oe)&&fa()},ut=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ai=["click","dblclick","mousedown","mouseup"];Object.entries(La).forEach(([Oe,gn])=>{gn&&(ut.includes(Oe)?Re.push({event:Oe,listener:At}):ai.includes(Oe)&&Re.push({event:Oe,listener:xl}))}),Object.entries(yn).forEach(([Oe,gn])=>{gn&&(ut.includes(Oe)?Re.push({event:Oe,listener:ue}):ai.includes(Oe)&&Re.push({event:Oe,listener:Ba}))}),j&&Re.push({event:"pointermove",listener:vn});const li=()=>{pn.current=!0},Fn=()=>{pn.current=!1,fa()},da=R&&(yn.mouseout||yn.mouseleave);return da&&((Z=Ze.current)===null||Z===void 0||Z.addEventListener("mouseover",li),(te=Ze.current)===null||te===void 0||te.addEventListener("mouseout",Fn)),Re.forEach(({event:Oe,listener:gn})=>{de.forEach(Jl=>{var Sl;(Sl=Jl.current)===null||Sl===void 0||Sl.addEventListener(Oe,gn)})}),()=>{var Oe,gn;jt.scroll&&(window.removeEventListener("scroll",vt),bn==null||bn.removeEventListener("scroll",vt),en==null||en.removeEventListener("scroll",vt)),jt.resize?window.removeEventListener("resize",vt):rt==null||rt(),jt.clickOutsideAnchor&&window.removeEventListener("click",bl),jt.escape&&window.removeEventListener("keydown",Rt),da&&((Oe=Ze.current)===null||Oe===void 0||Oe.removeEventListener("mouseover",li),(gn=Ze.current)===null||gn===void 0||gn.removeEventListener("mouseout",Fn)),Re.forEach(({event:Jl,listener:Sl})=>{de.forEach(Pl=>{var Ha;(Ha=Pl.current)===null||Ha===void 0||Ha.removeEventListener(Jl,Sl)})})}},[Q,_e,oa,vl,tt,F,I,ae,Ua,E,T]),g.useEffect(()=>{var Z,te;let de=(te=(Z=Fe==null?void 0:Fe.anchorSelect)!==null&&Z!==void 0?Z:d)!==null&&te!==void 0?te:"";!de&&l&&(de=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`);const Ie=new MutationObserver(vt=>{const bn=[],en=[];vt.forEach(rt=>{if(rt.type==="attributes"&&rt.attributeName==="data-tooltip-id"&&(rt.target.getAttribute("data-tooltip-id")===l?bn.push(rt.target):rt.oldValue===l&&en.push(rt.target)),rt.type==="childList"){if(Q){const Rt=[...rt.removedNodes].filter(Re=>Re.nodeType===1);if(de)try{en.push(...Rt.filter(Re=>Re.matches(de))),en.push(...Rt.flatMap(Re=>[...Re.querySelectorAll(de)]))}catch{}Rt.some(Re=>{var tn;return!!(!((tn=Re==null?void 0:Re.contains)===null||tn===void 0)&&tn.call(Re,Q))&&(Vn(!1),He(!1),W(null),Tn(Nt),Tn(hn),!0)})}if(de)try{const Rt=[...rt.addedNodes].filter(Re=>Re.nodeType===1);bn.push(...Rt.filter(Re=>Re.matches(de))),bn.push(...Rt.flatMap(Re=>[...Re.querySelectorAll(de)]))}catch{}}}),(bn.length||en.length)&&Vt(rt=>[...rt.filter(Rt=>!en.includes(Rt)),...bn])});return Ie.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ie.disconnect()}},[l,d,Fe==null?void 0:Fe.anchorSelect,Q]),g.useEffect(()=>{_e()},[_e]),g.useEffect(()=>{if(!(G!=null&&G.current))return()=>null;const Z=new ResizeObserver(()=>{setTimeout(()=>_e())});return Z.observe(G.current),()=>{Z.disconnect()}},[B,G==null?void 0:G.current]),g.useEffect(()=>{var Z;const te=document.querySelector(`[id='${o}']`),de=[...tt,te];Q&&de.includes(Q)||W((Z=tt[0])!==null&&Z!==void 0?Z:te)},[o,tt,Q]),g.useEffect(()=>(oe&&He(!0),()=>{Tn(Nt),Tn(hn)}),[]),g.useEffect(()=>{var Z;let te=(Z=Fe==null?void 0:Fe.anchorSelect)!==null&&Z!==void 0?Z:d;if(!te&&l&&(te=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`),te)try{const de=Array.from(document.querySelectorAll(te));Vt(de)}catch{Vt([])}},[l,d,Fe==null?void 0:Fe.anchorSelect]),g.useEffect(()=>{Nt.current&&(Tn(Nt),On(E))},[E]);const Ht=(Ue=Fe==null?void 0:Fe.content)!==null&&Ue!==void 0?Ue:B,Tt=zt&&Object.keys(mn.tooltipStyles).length>0;return g.useImperativeHandle(n,()=>({open:Z=>{if(Z!=null&&Z.anchorSelect)try{document.querySelector(Z.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Z.anchorSelect}" is not a valid CSS selector`)}$n(Z??null),Z!=null&&Z.delay?On(Z.delay):He(!0)},close:Z=>{Z!=null&&Z.delay?qa(Z.delay):He(!1)},activeAnchor:Q,place:mn.place,isOpen:!!(oa&&!_&&Ht&&Tt)})),oa&&!_&&Ht?$e.createElement(C,{id:l,role:St,className:jd("react-tooltip",Ls.tooltip,sd.tooltip,sd[u],r,`react-tooltip__place-${mn.place}`,Ls[Tt?"show":"closing"],Tt?"react-tooltip__show":"react-tooltip__closing",S==="fixed"&&Ls.fixed,R&&Ls.clickable),onTransitionEnd:Z=>{Tn(ua),zt||Z.propertyName!=="opacity"||(Vn(!1),$n(null),ye==null||ye())},style:{...Be,...mn.tooltipStyles,opacity:ie!==void 0&&Tt?ie:void 0},ref:Ze},Ht,$e.createElement(C,{className:jd("react-tooltip-arrow",Ls.arrow,sd.arrow,i,D&&Ls.noArrow),style:{...mn.tooltipArrowStyles,background:Ce?`linear-gradient(to right bottom, transparent 50%, ${Ce} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Yn})):null},k_=({content:n})=>$e.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),uh=$e.forwardRef(({id:n,anchorId:l,anchorSelect:r,content:i,html:u,render:o,className:d,classNameArrow:m,variant:y="dark",place:p="top",offset:b=10,wrapper:S="div",children:w=null,events:C=["hover"],openOnClick:E=!1,positionStrategy:T="absolute",middlewares:j,delayShow:_=0,delayHide:D=0,float:R=!1,hidden:X=!1,noArrow:$=!1,clickable:k=!1,closeOnEsc:F=!1,closeOnScroll:I=!1,closeOnResize:ae=!1,openEvents:pe,closeEvents:Be,globalCloseEvents:Ee,imperativeModeOnly:Ke=!1,style:ye,position:xe,isOpen:B,defaultIsOpen:G=!1,disableStyleInjection:J=!1,border:oe,opacity:A,arrowColor:Q,arrowSize:W,setIsOpen:P,afterShow:ie,afterHide:Ce,disableTooltip:ce,role:St="tooltip"},Ue)=>{const[Ze,Yn]=g.useState(i),[Nt,hn]=g.useState(u),[ua,mn]=g.useState(p),[ti,zt]=g.useState(y),[Bt,oa]=g.useState(b),[Vn,Fe]=g.useState(_),[$n,yl]=g.useState(D),[Ma,vl]=g.useState(R),[Zl,pn]=g.useState(X),[tt,Vt]=g.useState(S),[st,Ua]=g.useState(C),[ni,La]=g.useState(T),[yn,jt]=g.useState(null),[He,ca]=g.useState(null),On=g.useRef(J),{anchorRefs:qa,activeAnchor:za}=B1(n),fa=it=>it==null?void 0:it.getAttributeNames().reduce((At,ue)=>{var _e;return ue.startsWith("data-tooltip-")&&(At[ue.replace(/^data-tooltip-/,"")]=(_e=it==null?void 0:it.getAttribute(ue))!==null&&_e!==void 0?_e:null),At},{}),Kn=it=>{const At={place:ue=>{var _e;mn((_e=ue)!==null&&_e!==void 0?_e:p)},content:ue=>{Yn(ue??i)},html:ue=>{hn(ue??u)},variant:ue=>{var _e;zt((_e=ue)!==null&&_e!==void 0?_e:y)},offset:ue=>{oa(ue===null?b:Number(ue))},wrapper:ue=>{var _e;Vt((_e=ue)!==null&&_e!==void 0?_e:S)},events:ue=>{const _e=ue==null?void 0:ue.split(" ");Ua(_e??C)},"position-strategy":ue=>{var _e;La((_e=ue)!==null&&_e!==void 0?_e:T)},"delay-show":ue=>{Fe(ue===null?_:Number(ue))},"delay-hide":ue=>{yl(ue===null?D:Number(ue))},float:ue=>{vl(ue===null?R:ue==="true")},hidden:ue=>{pn(ue===null?X:ue==="true")},"class-name":ue=>{jt(ue)}};Object.values(At).forEach(ue=>ue(null)),Object.entries(it).forEach(([ue,_e])=>{var Ht;(Ht=At[ue])===null||Ht===void 0||Ht.call(At,_e)})};g.useEffect(()=>{Yn(i)},[i]),g.useEffect(()=>{hn(u)},[u]),g.useEffect(()=>{mn(p)},[p]),g.useEffect(()=>{zt(y)},[y]),g.useEffect(()=>{oa(b)},[b]),g.useEffect(()=>{Fe(_)},[_]),g.useEffect(()=>{yl(D)},[D]),g.useEffect(()=>{vl(R)},[R]),g.useEffect(()=>{pn(X)},[X]),g.useEffect(()=>{La(T)},[T]),g.useEffect(()=>{On.current!==J&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[J]),g.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:J==="core",disableBase:J}}))},[]),g.useEffect(()=>{var it;const At=new Set(qa);let ue=r;if(!ue&&n&&(ue=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),ue)try{document.querySelectorAll(ue).forEach(te=>{At.add({current:te})})}catch{console.warn(`[react-tooltip] "${ue}" is not a valid CSS selector`)}const _e=document.querySelector(`[id='${l}']`);if(_e&&At.add({current:_e}),!At.size)return()=>null;const Ht=(it=He??_e)!==null&&it!==void 0?it:za.current,Tt=new MutationObserver(te=>{te.forEach(de=>{var Ie;if(!Ht||de.type!=="attributes"||!(!((Ie=de.attributeName)===null||Ie===void 0)&&Ie.startsWith("data-tooltip-")))return;const vt=fa(Ht);Kn(vt)})}),Z={attributes:!0,childList:!1,subtree:!1};if(Ht){const te=fa(Ht);Kn(te),Tt.observe(Ht,Z)}return()=>{Tt.disconnect()}},[qa,za,He,l,r]),g.useEffect(()=>{ye!=null&&ye.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),oe&&!Gy("border",`${oe}`)&&console.warn(`[react-tooltip] "${oe}" is not a valid \`border\`.`),ye!=null&&ye.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),A&&!Gy("opacity",`${A}`)&&console.warn(`[react-tooltip] "${A}" is not a valid \`opacity\`.`)},[]);let vn=w;const bl=g.useRef(null);if(o){const it=o({content:(He==null?void 0:He.getAttribute("data-tooltip-content"))||Ze||null,activeAnchor:He});vn=it?$e.createElement("div",{ref:bl,className:"react-tooltip-content-wrapper"},it):null}else Ze&&(vn=Ze);Nt&&(vn=$e.createElement(k_,{content:Nt}));const gl={forwardRef:Ue,id:n,anchorId:l,anchorSelect:r,className:jd(d,yn),classNameArrow:m,content:vn,contentWrapperRef:bl,place:ua,variant:ti,offset:Bt,wrapper:tt,events:st,openOnClick:E,positionStrategy:ni,middlewares:j,delayShow:Vn,delayHide:$n,float:Ma,hidden:Zl,noArrow:$,clickable:k,closeOnEsc:F,closeOnScroll:I,closeOnResize:ae,openEvents:pe,closeEvents:Be,globalCloseEvents:Ee,imperativeModeOnly:Ke,style:ye,position:xe,isOpen:B,defaultIsOpen:G,border:oe,opacity:A,arrowColor:Q,arrowSize:W,setIsOpen:P,afterShow:ie,afterHide:Ce,disableTooltip:ce,activeAnchor:He,setActiveAnchor:it=>ca(it),role:St};return $e.createElement(H_,{...gl})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",n=>{n.detail.disableCore||Ky({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),n.detail.disableBase||Ky({css:`
237
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function Q_(){return h.jsxs("div",{className:"flex items-center bg-white border-b border-gray-200 overflow-auto no-scrollbar",children:[h.jsx(Y_,{}),h.jsx($_,{}),h.jsx(K_,{})]})}function Y_(){const{dataSourceId:n,name:l}=g.useContext(ia),{data:r}=No(n),{data:i}=g.useContext(Qn),u=Sr(Xt.EDITOR),o=YC(),d=()=>{var y,p;(y=i==null?void 0:i.result.columns)!=null&&y[0].table&&Zd({table:(p=i==null?void 0:i.result.columns)==null?void 0:p[0].table,dataSourceId:n})},m=async()=>{const y=await Er("Query name",l);!y||!(i!=null&&i.result.queryHistoryId)||o.mutate({name:y,queryId:i.result.queryHistoryId})};return It("s",m,"Save query"),h.jsxs("div",{className:ne.tableConfig,children:[h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Manage filters",onClick:()=>Ln("filters"),className:se(ne.tableAction,ne.blue),children:[h.jsx("span",{children:"Filter"}),h.jsx("span",{className:"hotkey",children:"F"})]}),h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Join tables",onClick:()=>Ln("joins"),className:se(ne.tableAction,ne.blue),children:[h.jsx("span",{children:"Join"}),h.jsx("span",{className:"hotkey",children:"J"})]}),h.jsx(F_,{}),h.jsxs("button",{"data-tooltip-id":"explorer-more-actions",className:se(ne.tableAction,ne.blue),children:[h.jsx("span",{className:"whitespace-nowrap",children:"More actions"}),h.jsx(Ao,{width:16,height:16,className:"rotate-90"})]}),h.jsxs(uh,{id:"explorer-more-actions",className:"z-10 shadow-md flex flex-col",clickable:!0,variant:"light",opacity:1,children:[h.jsxs("button",{onClick:()=>Ln("columns"),className:se(ne.tableAction,ne.modal,ne.blue,"justify-between"),children:[h.jsx("span",{children:"Columns"}),h.jsx("span",{className:"hotkey",children:"C"})]}),h.jsxs("button",{onClick:()=>Ln("groupBy"),className:se(ne.tableAction,ne.modal,ne.blue,"justify-between"),children:[h.jsx("span",{children:"Group by"}),h.jsx("span",{className:"hotkey",children:"G"})]}),h.jsxs("button",{onClick:()=>Ln("aggregate"),className:se(ne.tableAction,ne.modal,ne.blue,"justify-between"),children:[h.jsx("span",{children:"Aggregate"}),h.jsx("span",{className:"hotkey",children:"A"})]}),h.jsxs("button",{onClick:eh,className:se(ne.tableAction,ne.modal,ne.blue,"justify-between"),children:[h.jsx("span",{children:"Query editor"}),h.jsx("span",{className:"hotkey",children:"E"})]}),u&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"h-0.5 my-2 bg-gray-100"}),h.jsxs("button",{onClick:m,className:se(ne.tableAction,ne.modal,ne.blue),children:[h.jsx("span",{children:"Save query"}),h.jsx("span",{className:"hotkey",children:"S"})]}),(r==null?void 0:r.allowInsert)===!0&&h.jsx("button",{onClick:d,className:se(ne.tableAction,ne.modal,ne.blue),children:"Insert new row"})]})]})]})}const V_=[5,10,20,50,100,200];function $_(){const{name:n}=g.useContext(ia),{state:l}=g.useContext(mt),{refetch:r,data:i}=g.useContext(Qn),{size:u,setSize:o}=N1(),d=Ws(),m=Lt(),{rename:y}=_1(),p=(window==null?void 0:window.location.hostname)!=="localhost",b=()=>{d.mutateAsync({name:n,opts:l}).then(C=>{m(`${Xe.workbench.path}/tab/${C.id}`)})},S=()=>{if(i!=null&&i.result.queryHistoryId){const C=new URL(window.location.href);C.pathname=Xe.share.path,C.searchParams.set("shareId",i.result.queryHistoryId),navigator.clipboard.writeText(C.toString()),Pt.success("Share link copied to clipboard")}},w=()=>y(n);return It("e",eh,"Show editor sidebar"),It("d",b,"Clone tab"),It("r",w,"Rename tab"),h.jsxs("div",{className:ne.tableConfig,children:[h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:r,className:se(ne.tableAction,ne.blue),children:"Refresh"}),p&&h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Share query",onClick:S,className:se(ne.tableAction,ne.blue),children:"Share"}),h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Clone in a new tab",onClick:b,className:se(ne.tableAction,ne.blue),children:[h.jsx("span",{children:"Clone"}),h.jsx("span",{className:"hotkey",children:"D"})]}),h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Clone in a new tab",onClick:w,className:se(ne.tableAction,ne.blue),children:[h.jsx("span",{children:"Rename"}),h.jsx("span",{className:"hotkey",children:"R"})]}),h.jsxs("button",{"data-tooltip-id":"rows-num",className:se(ne.tableAction,ne.size,ne.blue),children:[h.jsxs("span",{className:"whitespace-nowrap",children:[u," rows"]}),h.jsx(Ao,{width:16,height:16,className:"rotate-90"})]}),h.jsx(uh,{id:"rows-num",className:"z-10 shadow-md flex",clickable:!0,variant:"light",opacity:1,children:V_.map(C=>h.jsx("button",{onClick:()=>o(C),className:se(ne.tableAction,ne.blue),children:h.jsx("span",{children:C})}))})]})}function K_(){const{page:n,size:l,setPage:r}=N1(),{data:i}=g.useContext(Qn),u=(i==null?void 0:i.result.rows.length)===l;return h.jsxs("div",{className:ne.tableConfig,children:[h.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:n<=0,className:se(ne.tableAction,ne.blue),onClick:()=>r(n-1),children:"Prev"}),h.jsx("span",{className:"text-sm bg-gray-50 rounded-md px-2 border border-gray-200",children:n+1}),h.jsx("button",{"data-tooltip-content":"Next page","data-tooltip-id":"default",disabled:!u,className:se(ne.tableAction,ne.blue),onClick:()=>r(n+1),children:"Next"})]})}function F_(){const{state:n,setState:l}=g.useContext(mt),r=()=>{l(u=>({...u,searchAll:void 0}))},i=()=>{Er("Search all text values for",n.searchAll||"",{type:"info",message:"This will search all text values using LIKE operator (numbers, dates and other non string values are not searched)."}).then(u=>{u!==void 0&&l(o=>({...o,searchAll:u.length>0?u:void 0}))})};return It("k",i,"Search text"),n.searchAll?h.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:r,className:se(ne.tableAction,ne.red),children:h.jsxs("span",{className:"truncate px-1",children:["❌ ",n.searchAll]})}):h.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Search text in all columns",onClick:i,className:se(ne.tableAction,ne.blue),children:[h.jsx("span",{className:"whitespace-nowrap",children:"Search text"}),h.jsx("span",{className:"hotkey",children:"K"})]})}const G_="_drop-container_5b2c6_2",X_="_item_5b2c6_2",Py={dropContainer:G_,item:X_},Td=({dataSourceId:n,focusId:l,placeholder:r="Column",onChange:i,value:u,autoFocus:o,allowTables:d})=>{const{data:m}=Ps(n),y=g.useRef(null),p=g.useMemo(()=>{if(!m)return[];let _=m;return d&&(_=m.filter(D=>d.includes(D.tableName))),_.flatMap(D=>D.columns.map(R=>({value:D.tableName+"."+R.name,label:R.name,table:D.tableName,searchValue:R.name.toLowerCase()})))},[m,d]),b=g.useMemo(()=>{const _=u.toLowerCase()||"",D=[];for(let R=0;R<p.length&&D.length<10;R++)p[R].searchValue.includes(_)&&D.push(p[R]);return D},[p,u]),[S,w]=g.useState(!1),[C,E]=g.useState(0),T=_=>{var D;if(_.key==="ArrowDown")_.preventDefault(),E(R=>(R+1)%b.length);else if(_.key==="ArrowUp")_.preventDefault(),E(R=>(R-1+b.length)%b.length);else if(_.key==="Enter"&&C>=0&&C<b.length){_.preventDefault();const R=b[C].value;w(!1);const X=p.findIndex($=>$.value===R)>-1;i(((D=b[C])==null?void 0:D.value)||R,X,!0)}};g.useEffect(()=>{var D;const _=(D=y.current)==null?void 0:D.querySelector('[data-is-active="true"]');_&&_.scrollIntoView({behavior:"smooth",block:"nearest"})},[C]);const j=_=>{const D=_.currentTarget.value,R=p.findIndex(X=>X.value===D)>-1;i(D,R,!1)};return h.jsxs("div",{className:"relative",onFocus:()=>w(!0),onBlur:()=>w(!1),children:[h.jsx("input",{autoFocus:o,onKeyDown:T,value:u,onChange:j,className:"input w-full",placeholder:r,"data-focus":l}),S&&b.length>0&&h.jsx("div",{className:Py.dropContainer,ref:y,tabIndex:-1,children:b.map((_,D)=>h.jsxs("div",{className:Py.item,"data-is-active":C===D,onMouseDownCapture:R=>{R.preventDefault(),w(!1),i(_.value,!0,!0)},children:[h.jsx("span",{className:"text-xs font-semibold truncate",children:_.table}),h.jsx("p",{className:"truncate text-sm",children:_.label})]},D))})]})},Z_="_drop-container_12ddy_2",J_="_item_12ddy_2",Iy={dropContainer:Z_,item:J_};function P_(n){return l4.includes(n)?t4:s4.includes(n)?e4:i4.includes(n)?n4:Vd}const I_=({value:n,onChange:l,autoFocus:r,focusId:i,colType:u})=>{const o=g.useMemo(()=>{const w=n.toLowerCase()||"";return P_(u||"").filter(C=>C.label.includes(w))},[n,u]),d=g.useRef(null),[m,y]=g.useState(!1),[p,b]=g.useState(0),S=w=>{var C;w.key==="ArrowDown"?(w.preventDefault(),b(E=>(E+1)%o.length)):w.key==="ArrowUp"?(w.preventDefault(),b(E=>(E-1+o.length)%o.length)):w.key==="Enter"&&(p>=0&&p<o.length?(w.preventDefault(),y(!1),l(((C=o[p])==null?void 0:C.label)||"",!0)):l(n,!0))};return g.useEffect(()=>{var C;const w=(C=d.current)==null?void 0:C.querySelector('[data-is-active="true"]');w&&w.scrollIntoView({behavior:"smooth",block:"nearest"})},[p]),h.jsxs("div",{className:"relative",children:[h.jsx("input",{onKeyDown:S,value:n,onChange:w=>l(w.target.value,!1),className:"input w-full",placeholder:"Operator",autoFocus:r,onFocus:()=>y(!0),onBlur:()=>y(!1),"data-focus":i}),m&&o.length>0&&h.jsx("ul",{className:Iy.dropContainer,ref:d,tabIndex:-1,children:o.map((w,C)=>h.jsx("li",{className:Iy.item,"data-is-active":p===C,onMouseDownCapture:E=>{E.preventDefault(),y(!1),l(w.label,!0)},children:w.label},C))})]})},W_="_actions_asod8_2",e6="_filter-actions_asod8_2",H1={actions:W_,filterActions:e6},t6=["=","<",">",">=","<>","!=","<="];function n6(n){for(let l=0;l<n.length;l++){const r=n[l];if(!r.operator.length&&!r.value.length&&!r.column.length)continue;if(!r.column.includes("."))return Pt.error(`Filter #${l+1} has invalid column value`),!1;const i=Kd[r.operator];if(!i)return Pt.error(`Filter #${l+1} has invalid operator`),!1;if(r.isColumnRef&&!t6.includes(i))return Pt.error(`Filter #${l+1} cannot reference another column because it uses '${r.operator}' operator`),!1}return!0}function a6(n){const l=[];return n.forEach(r=>{if(!r.operator.length||!r.column.length||r.operator!=="is null"&&r.operator!=="is not null"&&!r.value.length)return;const i=Kd[r.operator];l.push({id:r.id,value:r.isColumnRef?[{value:r.value,isColumn:!0}]:a4(i,r.value),operator:i,column:r.column,isEnabled:r.isEnabled,connector:"AND"})}),l}function l6(n){let l="";if(n.value)for(let r=0;r<n.value.length;r++)l+=n.value[r].value,r<n.value.length-1&&(l+=", ");return l}const s6=({filter:n,dataSourceId:l,allowedTables:r,inspections:i,autoFocus:u,onChangeColumn:o,onChangeOperator:d,onChangeValue:m,onRemoveFilter:y,triggerIsEnabled:p,onIsColumnChange:b})=>{const S=g.useMemo(()=>{if(!i)return"";let w=null;for(const C of i)for(const E of C.columns)C.tableName+"."+E.name===n.column&&(w=E);return w!=null&&w.type?w.type:""},[n.column,i]);return h.jsxs("div",{className:"flex gap-2 items-center",children:[h.jsx("label",{children:h.jsx("input",{type:"checkbox",checked:n.isEnabled!==!1,onClick:()=>p(n.id)})}),h.jsx("label",{className:"w-full",children:h.jsx(Td,{dataSourceId:l,onChange:w=>o(n.id,w),value:n.column,allowTables:r,focusId:"column",autoFocus:u})}),h.jsx("label",{children:h.jsx(I_,{onChange:w=>d(n.id,w),focusId:"operator",colType:S,value:n.operator})}),m1(Kd[n.operator])&&h.jsx("label",{className:"w-full",children:n.isColumnRef?h.jsx(Td,{dataSourceId:l,onChange:w=>m(n.id,w),value:n.value,allowTables:r,focusId:"value",placeholder:"Search column"}):h.jsx("input",{className:"input w-full",placeholder:"Filter value",value:n.value,onChange:w=>m(n.id,w.currentTarget.value),"data-focus":"value"})}),h.jsxs("div",{className:H1.filterActions,children:[h.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"If enabled, the value will reference another column instead of being raw string",className:se("p-0.5 cursor-pointer rounded-lg border",n.isColumnRef?"bg-blue-50 border-blue-200":"bg-white border-white"),onClick:()=>b(n.id,!n.isColumnRef),children:"🏷️"}),h.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"Remove filter",className:"p-0.5 text-sm cursor-pointer",onClick:()=>y(n.id),children:h.jsx(kn,{width:20,height:20,className:"text-red-600"})})]})]})},i6=()=>{const{state:n}=g.useContext(mt),{setFilters:l}=w1(),r=To(j=>j.filters),{data:i}=Ps(n.dataSourceId),u=g.useMemo(()=>[n.table,...n.joins.map(j=>j.table)],[n.table,n.joins]),[o,d]=g.useState([]),m=(j,_)=>{d(D=>[...D.map(R=>R.id===j?{...R,column:_}:R)])},y=(j,_)=>{d(D=>[...D.map(R=>R.id===j?{...R,operator:_}:R)])},p=(j,_)=>{d(D=>[...D.map(R=>R.id===j?{...R,value:_}:R)])},b=()=>{d(j=>[...j,{id:dl(),value:"",column:"",operator:"",isColumnRef:!1,isEnabled:!0}])},S=(j,_)=>{d(D=>[...D.map(R=>R.id===j?{...R,isColumnRef:_}:R)])},w=j=>{d(_=>_.filter(D=>D.id!==j))},C=()=>Ro("filters"),E=()=>{n6(o)&&(l(a6(o)),C())},T=j=>{d(_=>_.map(D=>D.id===j?{...D,isEnabled:!D.isEnabled}:D))};return g.useEffect(()=>{if(!r){d([]);return}d(()=>{const j=n.filters.map(_=>{var D,R;return{id:_.id,value:l6(_),column:_.column,operator:$d[_.operator],isColumnRef:!!((R=(D=_.value)==null?void 0:D[0])!=null&&R.isColumn),isEnabled:_.isEnabled}});return j.push({id:dl(),value:"",column:"",operator:"",isColumnRef:!1,isEnabled:!0}),j})},[r]),It("f",()=>{co("filters")},"Add new filter"),It("ctrl+f",()=>{alert("Save filters")},"Save filters"),h.jsxs(dn,{isVisible:r,onClose:C,portal:!0,children:[h.jsx(sa,{onClick:C}),h.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),h.jsxs("div",{className:"flex gap-4 flex-col w-full lg:w-lg my-4",children:[o.length<1&&h.jsx("p",{className:"p-1 text-center rounded-lg bg-gray-50 border border-gray-200",children:"No filters"}),o.map((j,_)=>h.jsx(s6,{filter:j,dataSourceId:n.dataSourceId,allowedTables:u,inspections:i||[],onChangeColumn:m,onChangeOperator:y,onChangeValue:p,onRemoveFilter:w,onIsColumnChange:S,triggerIsEnabled:T,autoFocus:_===o.length-1},j.id))]}),h.jsxs("div",{className:H1.actions,children:[h.jsx("button",{className:"button tertiary",onClick:b,children:"Add filter"}),h.jsx("button",{className:"button primary",onClick:E,children:"Apply filters"})]})]})},r6="_card_zn2b6_2",u6="_cards-list_zn2b6_2",o6="_join-modal_zn2b6_2",c6="_close-button_zn2b6_2",Qu={card:r6,cardsList:u6,joinModal:o6,closeButton:c6},f6=()=>{const{isFetching:n}=g.useContext(Qn),l=To(p=>p.joins),{toggle:r,joins:i}=E1(),{availableJoins:u}=g.useContext(ia),[o,d]=g.useState(""),m=g.useMemo(()=>{const p=o.toLowerCase();return u.filter(b=>b.on.toTable.toLowerCase().includes(p))},[u,o]),y=()=>Ro("joins");return It("j",()=>{u.length>0?Ln("joins"):Pt.error("No available tables to join")},"Add new join"),h.jsxs(dn,{isVisible:l,onClose:y,portal:!0,children:[h.jsx(sa,{onClick:y}),h.jsxs("div",{className:Qu.joinModal,children:[h.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),i.length>0&&h.jsx("div",{className:Qu.cardsList,children:i.map((p,b)=>h.jsxs("div",{className:Qu.card,children:[h.jsxs("p",{className:"text-sm truncate",children:[p.table," on ",p.on]}),b===i.length-1&&h.jsx("button",{className:Qu.closeButton,onClick:()=>r(p),disabled:n,children:h.jsx(kn,{width:20,height:20})})]},p.table+p.on))}),u.length>0?h.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:p=>d(p.target.value),value:o,disabled:n}):h.jsx(Ut,{variant:"warning",children:h.jsx("p",{className:"text-sm truncate",children:"No more tables to join"})}),h.jsx("div",{className:`flex flex-col mt-2 overflow-y-auto ${n?"opacity-40":""}`,children:m.map(p=>h.jsx(S1,{hook:p,onClick:()=>{n||(r({table:p.on.toTable,type:"LEFT",on:p.where}),d(""))}},p.where))})]})]})};function d6(n){return n.reduce((l,r)=>(l[r]=!0,l),{})}function Wy(n){return n.reduce((l,r)=>(l[r]=!0,l),{})}const h6="_container_1abtj_2",m6="_column-label_1abtj_2",p6="_not-active_1abtj_2",Wu={container:h6,columnLabel:m6,notActive:p6};function y6(n){if(!n)return[];const l={};return n.forEach(r=>{l[r.table]?l[r.table].push({value:r.full,ogColumn:r.column,label:cl(r.column),type:r.type}):l[r.table]=[{value:r.full,ogColumn:r.column,label:cl(r.column),type:r.type}],r4[r.type]&&["YEAR","MONTH","DAY"].forEach(i=>{l[r.table].push({value:i+" "+r.full,ogColumn:r.column,label:i+" "+cl(r.column),type:"number",nested:!0})})}),Object.entries(l).reduce((r,[i,u])=>(r.push({name:cl(i),columns:u}),r),[])}function v6(n,l){const r=l.toLowerCase();return n.map(i=>{const u=i.columns.filter(o=>o.label.toLowerCase().includes(r)||o.ogColumn.toLowerCase().includes(r));return{...i,columns:u}}).filter(i=>i.columns.length>0)}const b6=({column:n,selected:l,onCheck:r})=>h.jsxs("label",{className:se(Wu.columnLabel,l?Wu.active:Wu.notActive,n.nested&&"pl-5!"),children:[h.jsx("input",{type:"checkbox",checked:l[n.value],name:n.value,onChange:r}),h.jsxs("p",{className:"flex justify-between w-full",children:[h.jsx("span",{"data-tooltip-content":n.value,"data-tooltip-id":"default",children:n.label}),h.jsx("span",{className:"text-blue-600",children:n.type})]})]},n.value),g6={columns:"c",groupBy:"g"},ev=({mode:n})=>{const l=To(_=>_[n]),{allColumns:r}=g.useContext(ia),{state:i,setState:u}=g.useContext(mt),[o,d]=g.useState({}),[m,y]=g.useState(""),p=g.useMemo(()=>y6(r),[r]),b=i.aggregations.length>0||i.groupBy.length>0,S=g.useMemo(()=>m?v6(p,m):p,[m,p]),w=_=>{d(D=>({...D,[_.target.name]:_.target.checked}))},C=_=>{const D=_.target.checked;d(R=>{for(const X of r)R[X.full]=D;return{...R}})},E=()=>{Ro(n)},T=()=>{const _=[];for(const[D,R]of Object.entries(o))if(R){const[X,$]=D.split(" ");_.push({value:$||X,fn:$?X:void 0})}u(D=>({...D,[n]:_})),E()},j=g.useMemo(()=>{for(const _ of r)if(!o[_.full])return!1;return!0},[o,r]);return It(g6[n],()=>{n==="columns"?b?Pt.error("Columns are ignored when there is at least one aggregation or group by"):co("columns"):co("groupBy")},"Manage "+n),g.useEffect(()=>{if(!l){d({});return}d(()=>d6(i[n].map(_=>_.fn?_.fn+" "+_.value:_.value)))},[l,d]),h.jsxs(dn,{isVisible:l,onClose:E,portal:!0,children:[h.jsx(sa,{onClick:E}),h.jsxs("div",{className:Wu.container,children:[h.jsx("h2",{className:"text-lg font-semibold",children:n==="groupBy"?"Group by":"Show columns"}),h.jsx("input",{autoFocus:!0,className:"input my-2",placeholder:"Filter",value:m,onChange:_=>y(_.target.value)}),h.jsx("div",{className:"overflow-y-auto",children:S.map(_=>h.jsxs("div",{className:"my-2",children:[h.jsxs("p",{className:"font-semibold sticky top-0 bg-white p-1 z-1",children:["📄 ",_.name]}),_.columns.map(D=>h.jsx(b6,{column:D,selected:o,onCheck:w},D.value))]},_.name))}),h.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[h.jsxs("label",{className:"button tertiary flex gap-2 items-center",children:[h.jsx("input",{type:"checkbox",checked:j,onChange:C}),h.jsx("span",{children:"Select all"})]}),h.jsx("span",{className:"flex-1"}),h.jsx("button",{className:"button tertiary",onClick:E,children:"Cancel"}),h.jsx("button",{className:"button primary",onClick:T,children:"Apply"})]})]})]})},x6="_options-container_lkhy4_2",S6={optionsContainer:x6},id="COUNT all",w6=n=>n.distinct?[n.fn,"DISTINCT",n.value].join(" "):[n.fn,n.value].join(" "),E6=()=>{const n=To(E=>E.aggregate),{dataSourceId:l}=g.useContext(ia),{setState:r,state:i}=g.useContext(mt),{data:u}=g.useContext(Qn),[o,d]=g.useState({fn:"",col:""}),m=E=>d({...o,fn:E.currentTarget.value}),y=E=>d({...o,col:E}),p=()=>Ro("aggregate"),b=()=>{const E=o.fn===id?{value:"*",fn:"COUNT"}:{fn:o.fn,value:o.col,distinct:o.fn==="COUNT"};r(T=>({...T,aggregations:[...T.aggregations,E]}))},S=o.fn===id,w=S?!1:!o.col||!o.fn,C=E=>{const T=Wn(E);r(j=>({...j,aggregations:j.aggregations.filter(_=>_.fn!==E.fn||_.value!==E.value),orderBy:j.orderBy.filter(_=>_.column!==T)}))};return It("a",()=>{co("aggregate")},"Aggregate data"),h.jsxs(dn,{isVisible:n,onClose:p,backdropClose:!0,portal:!0,children:[h.jsx(sa,{onClick:p}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),Kl(i.aggregations.length,0)&&h.jsx("div",{className:"flex flex-col gap-1 mt-4",children:i.aggregations.map((E,T)=>h.jsxs("p",{className:"p-2 rounded-md bg-gray-50 flex items-center justify-between",children:[h.jsx("span",{children:w6(E)}),h.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"Remove aggregation",className:"p-0.5 text-sm cursor-pointer",onClick:()=>C(E),children:h.jsx(kn,{width:20,height:20,className:"text-red-600"})})]},T))}),h.jsxs("div",{className:S6.optionsContainer,children:[h.jsxs("label",{className:se(S&&"col-span-2"),children:[h.jsx("p",{className:"font-semibold text-xs",children:"Function"}),h.jsxs("select",{className:"input w-full",value:o.fn,onChange:m,autoFocus:!0,children:[h.jsx("option",{value:"",disabled:!0,children:"Select function"}),h.jsx("option",{value:id,children:"Count all rows"}),h.jsx("option",{value:"COUNT",children:"Count"}),h.jsx("option",{value:"SUM",children:"Sum"}),h.jsx("option",{value:"MAX",children:"Max"}),h.jsx("option",{value:"MIN",children:"Min"}),h.jsx("option",{value:"AVG",children:"Avg"})]})]}),!S&&h.jsxs("label",{children:[h.jsx("p",{className:"font-semibold text-xs",children:"Column"}),h.jsx(Td,{dataSourceId:l,allowTables:(u==null?void 0:u.result.tables)||[],onChange:y,value:o.col})]}),h.jsx("button",{className:"button primary",disabled:w,onClick:b,children:"Add"})]})]})]})},C6=({options:n,updater:l,name:r,tabId:i})=>{const u=c4(n,l),o=p4(i,u.state),d=o4(o.data,u.state.dataSourceId,r,i);return h.jsx(ia,{value:d,children:h.jsx(mt,{value:u,children:h.jsxs(Qn,{value:o,children:[h.jsx(Q_,{}),h.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[h.jsxs("div",{className:"m-2 flex-1 overflow-auto pb-24 lg:pb-12 no-scrollbar",children:[h.jsx("div",{className:"pb-0.5 sticky bottom-0"}),h.jsx(mC,{})]}),h.jsx(i6,{}),h.jsx(f6,{}),h.jsx(ev,{mode:"columns"}),h.jsx(ev,{mode:"groupBy"}),h.jsx(E6,{}),h.jsx(kC,{})]})]})})})},k1=()=>h.jsxs("div",{role:"status",children:[h.jsxs("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),h.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),h.jsx("span",{className:"sr-only",children:"Loading..."})]}),_6=({id:n})=>{const{data:l}=d4(n),r=g.useCallback(i=>{if(!l)return;const u=i(Hs(l.opts));ht.setQueryData(["workbench-tabs",l.id],{...l,opts:{...l.opts,...u}})},[l]);return l?h.jsx(C6,{updater:r,options:l.opts,name:l.name,tabId:l.id}):h.jsx("div",{className:"flex-1 flex justify-center items-center",children:h.jsx(k1,{})})},N6=()=>{const{id:n}=Bx(),l=Lt(),{data:r}=Gd(),i=h4(),u=Wd(jo.laptop),o=y=>{if(y===n&&r){if(r.length===1)return l(Xe.home.path);if(r.length>1){const p=r.find(b=>b.id!==y);if(p)return l(`/workbench/tab/${p.id}`)}}},d=y=>{y.stopPropagation(),y.preventDefault();const p=y.currentTarget.getAttribute("data-tab-id");p&&(i.mutate(p),o(p))},m=y=>{if(y.button===1){const p=y.currentTarget.dataset.tabId;i.mutate(p),o(p)}};return h.jsxs("div",{className:"h-screen max-h-screen bg-(--bg) flex flex-col",children:[n&&h.jsx(_6,{id:n}),h.jsx("div",{className:se(ar.tabs,"no-scrollbar",!u&&ar.mobile),children:r==null?void 0:r.map(y=>h.jsxs("div",{onClick:()=>l(`${Xe.workbench.path}/tab/${y.id}`),className:se(ar.tab,y.id===n&&ar.active),"data-tab-id":y.id,"data-tooltip-id":"tab","data-tooltip-content":y.name,onAuxClick:m,children:[h.jsxs("span",{className:"truncate w-full",children:["📄 ",y.name]}),h.jsx("button",{"data-tab-id":y.id,className:ar.closeButton,onClick:d,children:h.jsx(kn,{width:20,height:20})})]},y.id))})]})},j6="_root_1emn0_2",A6="_down_1emn0_2",T6="_chevron_1emn0_2",R6="_table-name-container_1emn0_2",O6="_link_1emn0_2",D6="_table-name_1emn0_2",M6="_ul_1emn0_2",U6="_column-type_1emn0_2",Ta={root:j6,down:A6,chevron:T6,tableNameContainer:R6,link:O6,tableName:D6,ul:M6,columnType:U6},[XN,L6]=fn(!1),Q1=()=>L6(!1),q6=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function z6(n,l){if(l&&n.toLowerCase().includes(l))return"bg-yellow-200"}const B6=({insp:n,filter:l,expanded:r})=>{const i=g.useMemo(()=>r?n.columns:l.length<1?[]:n.columns.filter(u=>u.name.toLowerCase().includes(l)),[n,l,r]);return h.jsx("ul",{className:Ta.ul,children:i.map(u=>h.jsx(h.Fragment,{children:h.jsxs("li",{children:[u.isPrimary?"🔐":"🏷️"," ",h.jsx("span",{className:z6(u.name,l),children:u.name})," ",h.jsxs("span",{className:Ta.columnType,children:["[",u.type,"]"]}),u.ref&&h.jsxs("span",{children:[" ➡️ ",h.jsx("span",{className:Ta.columnType,children:u.ref.table}),".",u.ref.field]})]},u.name+u.type)}))},n.id)};function H6({id:n}){const{data:l}=No(n),{data:r}=Ps(n),i=Lt(),u=Yw(),o=f1(),d=Vw(),m=Ws(),y=g.useMemo(()=>l!=null&&l.lastInspected?q6.format(new Date(l.lastInspected)):"--",[l]),[p,b]=g.useState({}),[S,w]=g.useState(""),[C,E]=g.useState("table"),T=Sr(Xt.EDITOR),j=S.toLowerCase(),_=g.useMemo(()=>{if(!j||!r)return r||[];const I=[];for(const ae of r){if(ae.tableName.toLowerCase().includes(j)){I.push(ae);continue}C!=="table"&&ae.columns.findIndex(pe=>pe.name.toLowerCase().includes(j))>=0&&I.push(ae)}return I},[j,r,C]),D=I=>{b(ae=>({...ae,[I]:!ae[I]}))},R=I=>{m.mutateAsync({name:I,opts:Hs({table:I,dataSourceId:n})}).then(ae=>{ks(void 0),Q1(),i(`${Xe.workbench.path}/tab/${ae.id}`)})},X=()=>{o.mutate(n)},$=async()=>{const I=await Er("Enter name",l==null?void 0:l.name);I&&u.mutate({id:n,dataSource:{name:I}})},k=async()=>{await v1("Are you sure you want to delete this data source?")&&(d.mutate(n),ks(void 0))},F=C==="column";return h.jsxs("div",{className:Ta.root,children:[h.jsxs("h3",{className:"page-head flex gap-2",children:[l&&h.jsx(Xd,{size:32,type:l.dbType}),h.jsx("span",{className:"truncate",children:l==null?void 0:l.name})]}),h.jsx("p",{className:"mt-2 text-xs text-gray-800",children:"Last DB inspection"}),h.jsx("p",{className:"text-sm font-semibold",children:y}),T&&h.jsxs("div",{className:"mt-2 flex gap-2",children:[h.jsx("button",{disabled:o.isLoading,onClick:X,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),h.jsx("button",{disabled:o.isLoading,onClick:$,className:"button tertiary",children:"Rename"}),h.jsx("button",{disabled:o.isLoading,onClick:k,className:"button tertiary",children:"Delete"})]}),h.jsxs("div",{className:"flex gap-2 items-center mb-2 mt-4",children:[h.jsxs("select",{className:"input",value:C,onChange:I=>E(I.currentTarget.value),children:[h.jsx("option",{value:"table",children:"Table"}),h.jsx("option",{value:"column",children:"Column"})]}),h.jsx("input",{className:"input flex-1 bg-gray-50",placeholder:F?"Search column":"Search table",value:S,onChange:I=>w(I.target.value),autoFocus:!0})]}),h.jsx("div",{className:"overflow-y-auto",children:_==null?void 0:_.map(I=>h.jsxs("div",{children:[h.jsxs("div",{className:Ta.tableNameContainer,children:[h.jsx("button",{className:se(Ta.chevron,p[I.id]&&Ta.down),onClick:()=>D(I.id),children:h.jsx(Ao,{width:16,height:16})}),h.jsx("button",{className:se(Ta.tableName,"flex-1"),onClick:()=>D(I.id),children:I.tableName}),h.jsx("button",{className:Ta.link,onClick:()=>R(I.tableName),children:"↗️"})]}),(p[I.id]||S.length>0)&&h.jsx(B6,{insp:I,filter:F?j:"",expanded:p[I.id]})]},I.id))})]})}const k6=()=>{const n=k4(),[l,r]=g.useState(void 0);g.useEffect(()=>{n&&r(n)},[n]);const i=()=>ks(void 0);return h.jsx(C1,{isVisible:n!=null,onClose:i,onClosed:()=>r(void 0),backdropClose:!0,children:l&&h.jsx(H6,{id:l})})};function Q6(n,l=500){const[r,i]=g.useState(n);return g.useEffect(()=>{const u=setTimeout(()=>i(n),l);return()=>clearTimeout(u)},[n,l]),r}const Y6="_search_5e0jq_2",V6="_entry_5e0jq_2",$6="_ds_5e0jq_2",K6="_ds-entry_5e0jq_2",Yu={search:Y6,entry:V6,ds:$6,dsEntry:K6};function F6(n,l,r){try{const i=r.getItem(n);if(i)return JSON.parse(i)}catch(i){console.warn("Failed to restore tabs",i)}return l}const G6=({storage:n=localStorage,localStorageKey:l,initialData:r})=>{const i=fn(F6(l,r,n));return i[2].subscribe(u=>{n.setItem(l,JSON.stringify(u))}),i},[X6,Z6]=G6({initialData:[],localStorageKey:"selected-data-sources-v1"}),J6=n=>Z6(l=>{const r=l.indexOf(n);return r>-1?(l.splice(r,1),[...l]):[...l,n]}),P6={table:"📄",query:"📖"},I6=({onTable:n,onQuery:l,autoFocus:r})=>{const[i,u]=g.useState(""),[o,d]=g.useState(-1),m=Q6(i,200),y=X6(),{data:p}=la(),{data:b}=Yd({teamId:p==null?void 0:p.teamId}),S=g.useMemo(()=>{const _=[],D=Wy(y);if(!b||b.length===0)return[];for(const R of b)D[R.id]&&_.push(R.id);return _},[y,b]),{data:w}=zw(m,{teamId:p==null?void 0:p.teamId,selectedDataSources:S}),C=_=>{_.type==="table"?n(_.name,_.dataSourceId):_.type==="query"&&l(_.id,_.dataSourceId)},E=_=>{var D;w&&(_.key==="ArrowDown"?(_.preventDefault(),d(R=>(R+1)%w.length)):_.key==="ArrowUp"?(_.preventDefault(),d(R=>(R-1+w.length)%w.length)):_.key==="Enter"&&o>=0&&(D=w[o])!=null&&D.name&&(_.preventDefault(),C(w[o])))},T=_=>{const D=_.currentTarget.dataset.tableId,R=w==null?void 0:w.find(X=>X.id===D);R&&C(R)},j=g.useMemo(()=>Wy(y),[y]);return h.jsxs("div",{className:"overflow-hidden flex flex-col w-full lg:w-lg",children:[Kl(b==null?void 0:b.length,0)&&h.jsx("div",{className:"flex overflow-x-auto mb-2 gap-2 no-scrollbar",children:b.map(_=>h.jsxs("label",{className:Yu.dsEntry,children:[h.jsx("input",{type:"checkbox",checked:j[_.id]===!0,onChange:()=>J6(_.id)}),h.jsx("span",{children:_.name})]},_.id))}),h.jsx("input",{className:Yu.search,placeholder:"Search table or saved query to start from",value:i,onChange:_=>u(_.target.value),onKeyDown:E,autoFocus:r}),Kl(w==null?void 0:w.length,0)&&h.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:w.map((_,D)=>h.jsxs("button",{className:Yu.entry,"data-is-active":o===D,"data-table-id":_.id,onClick:T,children:[h.jsxs("p",{className:"font-semibold",children:[P6[_.type]," ",_.name]}),h.jsxs("p",{className:Yu.ds,children:["📦 ",_.dataSourceName]})]},_.id))})]})},W6=()=>{const n=y4(),l=(u,o)=>{n==null||n.onConfirm("table",u,o)},r=(u,o)=>{n==null||n.onConfirm("query",u,o)},i=()=>{n==null||n.onCancel()};return h.jsxs(dn,{isVisible:!!n,onClose:i,children:[h.jsx(sa,{onClick:i}),h.jsx(I6,{autoFocus:!0,onTable:l,onQuery:r})]})},eN=()=>{const n=Yt();g.useEffect(()=>{},[n.pathname])},[tN,Y1]=fn(!1),rd=()=>Y1(!1),V1=()=>Y1(!0),nN=({repeatPassword:n,password:l})=>l.length<1?null:l.length<8?h.jsx(Ut,{variant:"warning",children:"New password should be at least 8 characters long"}):l!==n?h.jsx(Ut,{variant:"warning",children:"Repeat password should match new password"}):null,aN=()=>{const n=tN(),{data:l}=la(),{mutateAsync:r,isLoading:i}=$w(),u=Lt(),[{password:o,repeatPassword:d},{change:m,touched:y,reset:p}]=wr({password:"",repeatPassword:""}),b=()=>{u("/"),gr.logout().then(()=>{rd()})},S=()=>{r({password:o}).then(()=>{p(),Pt.success("Password successfully updated!")})},w=o.length<8||o!==d||i,C=y.includes("password");return h.jsxs(dn,{isVisible:n,onClose:rd,children:[h.jsx(sa,{onClick:rd}),h.jsxs("div",{className:"w-full lg:w-lg flex flex-col gap-2",children:[h.jsx(y1,{children:"Account settings"}),h.jsxs("label",{children:[h.jsx("p",{className:"text-xs font-semibold mb-1",children:"Username"}),h.jsx("input",{className:"input w-full",readOnly:!0,disabled:!0,value:l==null?void 0:l.username})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[h.jsxs("label",{children:[h.jsx("p",{className:"text-xs font-semibold mb-1",children:"Change password"}),h.jsx("input",{className:"input w-full",type:"password",name:"newPassword",autoComplete:"new-password",value:o,onChange:m("password")})]}),h.jsxs("label",{children:[h.jsx("p",{className:"text-xs font-semibold mb-1",children:"Repeat password"}),h.jsx("input",{className:"input w-full",type:"password",value:d,onChange:m("repeatPassword")})]})]}),C&&h.jsx(nN,{password:o,repeatPassword:d}),h.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[h.jsx("button",{className:"button tertiary",disabled:w,onClick:S,children:"Update password"}),h.jsx("button",{className:"button danger",onClick:b,children:"Log out"})]})]})]})},[lN,$1]=fn(!1),K1=()=>$1(!0),tv=()=>$1(!1),sN=n=>Wt({queryKey:["team-users"],queryFn:async()=>{const{data:l}=await Me.get("/teams/"+n+"/users");return l.data},enabled:!!n}),iN=()=>qt({mutationFn:async({role:n,teamId:l,userId:r})=>(await Me.patch("/teams/"+l+"/user-role",{role:n,userId:r}),!0),onSuccess:()=>{ht.invalidateQueries({queryKey:["team-users"]})}}),rN=()=>qt({mutationFn:async({teamId:n,userId:l})=>(await Me.delete("/teams/"+n,{params:{userId:l}}),!0),onSuccess:()=>{ht.invalidateQueries({queryKey:["team-users"]})}}),uN="_user-entry_1cw8s_2",oN="_select-container_1cw8s_2",nv={userEntry:uN,selectContainer:oN},cN=()=>{const n=lN(),{data:l}=la(),{data:r}=sN(l==null?void 0:l.teamId),{mutate:i,isLoading:u}=Kw(),{mutate:o,isLoading:d}=iN(),{mutate:m,isLoading:y}=rN(),[p,{change:b,reset:S}]=wr({password:"",username:""}),w=()=>{i({username:p.username,password:p.password,teamId:(l==null?void 0:l.teamId)||""}),S()},C=(_,D)=>{o({teamId:l.teamId,role:D,userId:_})},E=_=>{v1("Are you sure you want to remove this user?").then(D=>{D&&m({userId:_,teamId:l.teamId})})},T=Sr(Xt.ADMIN),j=u||d||y;return h.jsxs(dn,{isVisible:n,onClose:tv,backdropClose:!0,children:[h.jsx(sa,{onClick:tv}),h.jsxs("div",{className:"w-full lg:w-lg flex flex-col overflow-hidden",children:[h.jsx(y1,{children:"Manage users"}),Kl(r==null?void 0:r.length,0)&&h.jsx("div",{className:"mt-4 overflow-y-auto flex-1",children:r.map(_=>h.jsxs("div",{className:nv.userEntry,children:[h.jsx("div",{className:nv.selectContainer,children:h.jsxs("select",{value:_.role,disabled:!T||j,onChange:D=>C(_.id,D.currentTarget.value),children:[h.jsx("option",{value:Xt.OWNER,children:"Owner"}),h.jsx("option",{value:Xt.ADMIN,children:"Admin"}),h.jsx("option",{value:Xt.EDITOR,children:"Editor"}),h.jsx("option",{value:Xt.READ_ONLY,children:"Reader"})]})}),h.jsx("p",{className:"flex-1 mx-2",children:_.name}),T&&h.jsx("button",{className:"p-1 cursor-pointer text-red-500 text-sm",onClick:()=>E(_.id),children:"❌"})]},_.id))}),T&&h.jsxs("div",{className:"mt-4",children:[h.jsx("p",{className:"font-semibold",children:"Create new user"}),h.jsxs("div",{className:"flex flex-col lg:flex-row gap-2 lg:items-center mt-2",children:[h.jsx("input",{className:"input flex-1",onChange:b("username"),value:p.username,placeholder:"Username",disabled:j}),h.jsx("input",{className:"input",onChange:b("password"),value:p.password,type:"password",name:"newPassword",autoComplete:"new-password",placeholder:"Password",disabled:j}),h.jsx("button",{className:"button primary",onClick:w,disabled:j,children:"Create user"})]}),h.jsx("p",{className:"text-xs mt-1 text-gray-600",children:"You should create default password for the new account. The user should change it after the first login."})]})]})]})},fN=()=>{const[n,l]=g.useState(""),[r,i]=g.useState(""),[u,o]=g.useState(),[d,m]=g.useState(!1),y=Lt(),p=b=>{b.preventDefault(),o(void 0),gr.login({password:r,username:n}).then(()=>{y("/",{replace:!0})}).catch(o)};return h.jsx("div",{className:"page-container bg-(--bg) h-screen",children:h.jsx("div",{className:"page-content items-center",children:h.jsxs("form",{className:"flex flex-col gap-2 w-full lg:w-lg",onSubmit:p,children:[h.jsx("p",{className:"font-semibold text-xl min-w-md",children:"Login"}),u&&h.jsx(Ut,{variant:"danger",children:"Failed to login. Please verify your credentials"}),h.jsx("input",{value:n,onChange:b=>l(b.currentTarget.value),className:"input",placeholder:"User name"}),h.jsx("input",{value:r,onChange:b=>i(b.currentTarget.value),className:"input",type:"password",placeholder:"Password"}),h.jsx("button",{type:"submit",className:"button primary",children:"Login"}),d?h.jsxs(Ut,{className:"w-full border border-blue-500",children:[h.jsx("p",{children:"If this is your first login, the default credentials are:"}),h.jsxs("ul",{className:"mt-2",children:[h.jsxs("li",{children:["Username: ",h.jsx("strong",{children:"admin"})]}),h.jsxs("li",{children:["Password: ",h.jsx("strong",{children:"admin"})]})]}),h.jsx("p",{className:"mt-2",children:"Please make sure to change the default password to a secure one."})]}):h.jsx("button",{className:"button tertiary",onClick:()=>m(!0),children:"First login?"})]})})})},dN=()=>{const n=Lt(),{pathname:l}=Yt(),{data:r,isLoading:i}=d1();g.useEffect(()=>{!r&&!i&&l!==Xe.login.path&&n(Xe.login.path)},[r,i,n,l])},hN=()=>{const[n]=T2(),l=Lt(),r=Ws(),i=n.get("shareId");return g.useEffect(()=>{i&&r.mutateAsync({queryId:i}).then(u=>{l(`${Xe.workbench.path}/tab/${u.id}`,{replace:!0})})},[i]),h.jsxs("div",{className:"page-container flex items-center justify-center h-screen",children:[r.isLoading&&h.jsxs("div",{className:"flex items-center flex-col gap-2",children:[h.jsx(k1,{}),h.jsx("p",{children:"Fetching query information"})]}),r.isError&&h.jsx(Ut,{variant:"danger",children:"Failed to load query information"})]})};function mN(){return XC(),eN(),dN(),h.jsxs(h.Fragment,{children:[h.jsxs(Wx,{children:[h.jsx(sr,{path:Xe.home.path,element:h.jsx(F4,{})}),h.jsx(sr,{path:`${Xe.workbench.path}/tab/:id`,element:h.jsx(N6,{})}),h.jsx(sr,{path:Xe.login.path,element:h.jsx(fN,{})}),h.jsx(sr,{path:Xe.share.path,element:h.jsx(hN,{})})]}),h.jsx(lE,{}),h.jsx(mE,{}),h.jsx(jE,{}),h.jsx(k6,{}),h.jsx(W6,{}),h.jsx(aN,{}),h.jsx(cN,{}),h.jsx(wE,{}),h.jsx(vE,{})]})}const pN="_desktop-layout_51ivf_2",yN="_mobile-layout_51ivf_2",vN="_nav_51ivf_2",bN="_main_51ivf_2",gN="_header_51ivf_2",Vs={desktopLayout:pN,mobileLayout:yN,nav:vN,main:bN,header:gN},xN="_container_mte33_2",SN="_menu_mte33_2",oh={container:xN,menu:SN},wN=({name:n,id:l,onRename:r,onDelete:i,onOpen:u})=>{const o=g1();return h.jsxs("button",{className:oh.menu,onContextMenu:o.open,onClick:()=>u(l),children:[h.jsx(x1,{handler:o,children:h.jsxs("div",{className:"context-menu-container",children:[h.jsx("button",{onClick:d=>{d.preventDefault(),d.stopPropagation(),o.close(),r(l)},className:"context-menu-item",children:"✏️ Rename"}),h.jsx("button",{onClick:d=>{d.preventDefault(),d.stopPropagation(),o.close(),i(l)},className:"context-menu-item",children:"🗑️ Delete"})]})}),h.jsxs("span",{children:["📖 ",n]})]})},EN=({dataSource:n,index:l})=>{const r=()=>{ks(n.id)};return It(l.toString(),()=>{ks(i=>{if(i!==n.id)return n.id})},n.name),h.jsxs("button",{className:oh.menu,onClick:r,children:[h.jsx(Xd,{size:20,type:n.dbType}),h.jsx("p",{className:"truncate flex-1 text-left mx-1.5",children:n.name}),h.jsx("span",{className:"hotkey",children:l})]})},CN=()=>{const n=Lt(),{data:l}=la(),{data:r}=Uw(l==null?void 0:l.teamId),{data:i}=Lw(l==null?void 0:l.teamId),u=Ws(),o=$C(),d=VC(),m=b=>{u.mutateAsync({queryId:b}).then(S=>{n(`${Xe.workbench.path}/tab/${S.id}`)})},y=async b=>{const S=i==null?void 0:i.find(C=>C.id===b),w=await Er("New name?",S==null?void 0:S.name);w&&o.mutate({id:b,payload:{name:w}})},p=b=>{var w;const S=(w=i==null?void 0:i.find(C=>C.id===b))==null?void 0:w.savedQueryId;S&&d.mutate(S)};return h.jsx("div",{className:oh.container,children:h.jsxs("div",{className:"flex-1 overflow-y-auto",children:[Kl(r==null?void 0:r.length,0)&&h.jsxs("div",{className:"mt-4",children:[h.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"DATA SOURCES"}),r.map((b,S)=>h.jsx(EN,{dataSource:b,index:S+1},b.id))]}),Kl(i==null?void 0:i.length,0)&&h.jsxs("div",{className:"mt-4",children:[h.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"SAVED QUERIES"}),i.map(b=>h.jsx(wN,{onDelete:p,onRename:y,onOpen:m,name:b.name,id:b.id},b.savedQueryId))]})]})})},_N=()=>{const n=Lt(),{pathname:l}=Yt(),{data:r}=la(),i=xr("Desktop nav"),u=()=>{Q1(),l!==Xe.home.path&&n(Xe.home.path)};return h.jsxs("nav",{className:Vs.nav,children:[r&&h.jsxs("div",{className:Vs.header,children:[h.jsxs("button",{onClick:u,className:"flex justify-between items-center",children:[h.jsx("span",{children:"🏠 Home"}),h.jsx("span",{className:"hotkey",children:"H"})]}),h.jsxs("button",{onClick:i,className:"flex justify-between items-center",children:[h.jsx("span",{children:"🔎 New query"}),h.jsx("span",{className:"hotkey",children:"N"})]}),h.jsxs("button",{onClick:V1,children:["🪪 ",r.username]}),h.jsx("button",{onClick:K1,children:"👥 Manage users"})]}),h.jsx(CN,{})]})},NN="_root_lx2ta_2",jN={root:NN},AN=()=>{const{pathname:n}=Yt(),l=Lt(),r=xr("Mobile nav"),i=()=>{n!==Xe.home.path&&l(Xe.home.path)};return h.jsxs("div",{className:jN.root,children:[h.jsxs("button",{onClick:i,children:[h.jsx("p",{children:"🏠"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Home"})]}),h.jsxs("button",{onClick:r,children:[h.jsx("p",{children:"🔎"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"New query"})]}),h.jsxs("button",{onClick:V1,children:[h.jsx("p",{children:"🪪"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Account"})]}),h.jsxs("button",{onClick:K1,children:[h.jsx("p",{children:"👥"}),h.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Users"})]})]})},TN=({children:n,isLogin:l})=>h.jsxs("div",{className:Vs.desktopLayout,children:[h.jsx(uh,{id:"default",className:"z-100"}),!l&&h.jsx(_N,{}),h.jsx("main",{className:Vs.main,children:n})]}),RN=({children:n,isLogin:l})=>h.jsxs("div",{className:Vs.mobileLayout,children:[h.jsx("main",{className:Vs.main,children:n}),!l&&h.jsx(AN,{})]}),ON=({children:n})=>{const l=Wd(jo.laptop),{pathname:r}=Yt(),i=r===Xe.login.path;return l?h.jsx(TN,{isLogin:i,children:n}):h.jsx(RN,{isLogin:i,children:n})};rx.createRoot(document.getElementById("root")).render(h.jsxs($e.StrictMode,{children:[h.jsx(Ow,{}),h.jsx(sS,{client:ht,children:h.jsx(C2,{children:h.jsx(ON,{children:h.jsx(mN,{})})})})]}));