@agent-team-foundation/first-tree-hub 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.mjs +636 -0
- package/dist/core-CD3xEbyB.mjs +27914 -0
- package/dist/drizzle/0000_shocking_darkhawk.sql +92 -0
- package/dist/drizzle/0001_v2_schema_updates.sql +26 -0
- package/dist/drizzle/0002_adapter_tables.sql +64 -0
- package/dist/drizzle/0003_feishu_adapter.sql +21 -0
- package/dist/drizzle/0004_adapter_refactor.sql +13 -0
- package/dist/drizzle/0005_delegate_mention.sql +1 -0
- package/dist/drizzle/meta/0000_snapshot.json +687 -0
- package/dist/drizzle/meta/0001_snapshot.json +687 -0
- package/dist/drizzle/meta/_journal.json +48 -0
- package/dist/index.mjs +2 -0
- package/dist/web/assets/index-CHZINY3I.js +229 -0
- package/dist/web/assets/index-Drt799Rs.css +1 -0
- package/dist/web/favicon.svg +21 -0
- package/dist/web/index.html +14 -0
- package/package.json +64 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
var xv=l=>{throw TypeError(l)};var ed=(l,a,r)=>a.has(l)||xv("Cannot "+r);var E=(l,a,r)=>(ed(l,a,"read from private field"),r?r.call(l):a.get(l)),pe=(l,a,r)=>a.has(l)?xv("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(l):a.set(l,r),te=(l,a,r,s)=>(ed(l,a,"write to private field"),s?s.call(l,r):a.set(l,r),r),je=(l,a,r)=>(ed(l,a,"access private method"),r);var Wu=(l,a,r,s)=>({set _(o){te(l,a,o,r)},get _(){return E(l,a,s)}});function gS(l,a){for(var r=0;r<a.length;r++){const s=a[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in l)){const f=Object.getOwnPropertyDescriptor(s,o);f&&Object.defineProperty(l,o,f.get?f:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(o){if(o.ep)return;o.ep=!0;const f=r(o);fetch(o.href,f)}})();function Gg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var td={exports:{}},ms={};/**
|
|
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 Sv;function bS(){if(Sv)return ms;Sv=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:l,type:s,key:h,ref:o!==void 0?o:null,props:f}}return ms.Fragment=a,ms.jsx=r,ms.jsxs=r,ms}var _v;function xS(){return _v||(_v=1,td.exports=bS()),td.exports}var d=xS(),nd={exports:{}},_e={};/**
|
|
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 Ev;function SS(){if(Ev)return _e;Ev=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.iterator;function M(T){return T===null||typeof T!="object"?null:(T=C&&T[C]||T["@@iterator"],typeof T=="function"?T:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function z(T,Q,ee){this.props=T,this.context=Q,this.refs=A,this.updater=ee||L}z.prototype.isReactComponent={},z.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Q,"setState")},z.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function J(){}J.prototype=z.prototype;function H(T,Q,ee){this.props=T,this.context=Q,this.refs=A,this.updater=ee||L}var V=H.prototype=new J;V.constructor=H,j(V,z.prototype),V.isPureReactComponent=!0;var Y=Array.isArray;function X(){}var $={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function he(T,Q,ee){var ae=ee.ref;return{$$typeof:l,type:T,key:Q,ref:ae!==void 0?ae:null,props:ee}}function Ne(T,Q){return he(T.type,Q,T.props)}function Qe(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function qe(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ee){return Q[ee]})}var pt=/\/+/g;function it(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?qe(""+T.key):Q.toString(36)}function De(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(X,X):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function U(T,Q,ee,ae,ce){var me=typeof T;(me==="undefined"||me==="boolean")&&(T=null);var Ee=!1;if(T===null)Ee=!0;else switch(me){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(T.$$typeof){case l:case a:Ee=!0;break;case x:return Ee=T._init,U(Ee(T._payload),Q,ee,ae,ce)}}if(Ee)return ce=ce(T),Ee=ae===""?"."+it(T,0):ae,Y(ce)?(ee="",Ee!=null&&(ee=Ee.replace(pt,"$&/")+"/"),U(ce,Q,ee,"",function(Rn){return Rn})):ce!=null&&(Qe(ce)&&(ce=Ne(ce,ee+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(pt,"$&/")+"/")+Ee)),Q.push(ce)),1;Ee=0;var dt=ae===""?".":ae+":";if(Y(T))for(var Se=0;Se<T.length;Se++)ae=T[Se],me=dt+it(ae,Se),Ee+=U(ae,Q,ee,me,ce);else if(Se=M(T),typeof Se=="function")for(T=Se.call(T),Se=0;!(ae=T.next()).done;)ae=ae.value,me=dt+it(ae,Se++),Ee+=U(ae,Q,ee,me,ce);else if(me==="object"){if(typeof T.then=="function")return U(De(T),Q,ee,ae,ce);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function F(T,Q,ee){if(T==null)return T;var ae=[],ce=0;return U(T,ae,"","",function(me){return Q.call(ee,me,ce++)}),ae}function oe(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(ee){(T._status===0||T._status===-1)&&(T._status=1,T._result=ee)},function(ee){(T._status===0||T._status===-1)&&(T._status=2,T._result=ee)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var Re=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},W={map:F,forEach:function(T,Q,ee){F(T,function(){Q.apply(this,arguments)},ee)},count:function(T){var Q=0;return F(T,function(){Q++}),Q},toArray:function(T){return F(T,function(Q){return Q})||[]},only:function(T){if(!Qe(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return _e.Activity=S,_e.Children=W,_e.Component=z,_e.Fragment=r,_e.Profiler=o,_e.PureComponent=H,_e.StrictMode=s,_e.Suspense=v,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,_e.__COMPILER_RUNTIME={__proto__:null,c:function(T){return $.H.useMemoCache(T)}},_e.cache=function(T){return function(){return T.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(T,Q,ee){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ae=j({},T.props),ce=T.key;if(Q!=null)for(me in Q.key!==void 0&&(ce=""+Q.key),Q)!G.call(Q,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Q.ref===void 0||(ae[me]=Q[me]);var me=arguments.length-2;if(me===1)ae.children=ee;else if(1<me){for(var Ee=Array(me),dt=0;dt<me;dt++)Ee[dt]=arguments[dt+2];ae.children=Ee}return he(T.type,ce,ae)},_e.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},_e.createElement=function(T,Q,ee){var ae,ce={},me=null;if(Q!=null)for(ae in Q.key!==void 0&&(me=""+Q.key),Q)G.call(Q,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ce[ae]=Q[ae]);var Ee=arguments.length-2;if(Ee===1)ce.children=ee;else if(1<Ee){for(var dt=Array(Ee),Se=0;Se<Ee;Se++)dt[Se]=arguments[Se+2];ce.children=dt}if(T&&T.defaultProps)for(ae in Ee=T.defaultProps,Ee)ce[ae]===void 0&&(ce[ae]=Ee[ae]);return he(T,me,ce)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(T){return{$$typeof:m,render:T}},_e.isValidElement=Qe,_e.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:oe}},_e.memo=function(T,Q){return{$$typeof:y,type:T,compare:Q===void 0?null:Q}},_e.startTransition=function(T){var Q=$.T,ee={};$.T=ee;try{var ae=T(),ce=$.S;ce!==null&&ce(ee,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(X,Re)}catch(me){Re(me)}finally{Q!==null&&ee.types!==null&&(Q.types=ee.types),$.T=Q}},_e.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},_e.use=function(T){return $.H.use(T)},_e.useActionState=function(T,Q,ee){return $.H.useActionState(T,Q,ee)},_e.useCallback=function(T,Q){return $.H.useCallback(T,Q)},_e.useContext=function(T){return $.H.useContext(T)},_e.useDebugValue=function(){},_e.useDeferredValue=function(T,Q){return $.H.useDeferredValue(T,Q)},_e.useEffect=function(T,Q){return $.H.useEffect(T,Q)},_e.useEffectEvent=function(T){return $.H.useEffectEvent(T)},_e.useId=function(){return $.H.useId()},_e.useImperativeHandle=function(T,Q,ee){return $.H.useImperativeHandle(T,Q,ee)},_e.useInsertionEffect=function(T,Q){return $.H.useInsertionEffect(T,Q)},_e.useLayoutEffect=function(T,Q){return $.H.useLayoutEffect(T,Q)},_e.useMemo=function(T,Q){return $.H.useMemo(T,Q)},_e.useOptimistic=function(T,Q){return $.H.useOptimistic(T,Q)},_e.useReducer=function(T,Q,ee){return $.H.useReducer(T,Q,ee)},_e.useRef=function(T){return $.H.useRef(T)},_e.useState=function(T){return $.H.useState(T)},_e.useSyncExternalStore=function(T,Q,ee){return $.H.useSyncExternalStore(T,Q,ee)},_e.useTransition=function(){return $.H.useTransition()},_e.version="19.2.4",_e}var Cv;function $d(){return Cv||(Cv=1,nd.exports=SS()),nd.exports}var b=$d();const _S=Gg(b),Id=gS({__proto__:null,default:_S},[b]);var ad={exports:{}},ps={},ld={exports:{}},id={};/**
|
|
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 Nv;function ES(){return Nv||(Nv=1,(function(l){function a(U,F){var oe=U.length;U.push(F);e:for(;0<oe;){var Re=oe-1>>>1,W=U[Re];if(0<o(W,F))U[Re]=F,U[oe]=W,oe=Re;else break e}}function r(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var F=U[0],oe=U.pop();if(oe!==F){U[0]=oe;e:for(var Re=0,W=U.length,T=W>>>1;Re<T;){var Q=2*(Re+1)-1,ee=U[Q],ae=Q+1,ce=U[ae];if(0>o(ee,oe))ae<W&&0>o(ce,ee)?(U[Re]=ce,U[ae]=oe,Re=ae):(U[Re]=ee,U[Q]=oe,Re=Q);else if(ae<W&&0>o(ce,oe))U[Re]=ce,U[ae]=oe,Re=ae;else break e}}return F}function o(U,F){var oe=U.sortIndex-F.sortIndex;return oe!==0?oe:U.id-F.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();l.unstable_now=function(){return h.now()-m}}var v=[],y=[],x=1,S=null,C=3,M=!1,L=!1,j=!1,A=!1,z=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function V(U){for(var F=r(y);F!==null;){if(F.callback===null)s(y);else if(F.startTime<=U)s(y),F.sortIndex=F.expirationTime,a(v,F);else break;F=r(y)}}function Y(U){if(j=!1,V(U),!L)if(r(v)!==null)L=!0,X||(X=!0,qe());else{var F=r(y);F!==null&&De(Y,F.startTime-U)}}var X=!1,$=-1,G=5,he=-1;function Ne(){return A?!0:!(l.unstable_now()-he<G)}function Qe(){if(A=!1,X){var U=l.unstable_now();he=U;var F=!0;try{e:{L=!1,j&&(j=!1,J($),$=-1),M=!0;var oe=C;try{t:{for(V(U),S=r(v);S!==null&&!(S.expirationTime>U&&Ne());){var Re=S.callback;if(typeof Re=="function"){S.callback=null,C=S.priorityLevel;var W=Re(S.expirationTime<=U);if(U=l.unstable_now(),typeof W=="function"){S.callback=W,V(U),F=!0;break t}S===r(v)&&s(v),V(U)}else s(v);S=r(v)}if(S!==null)F=!0;else{var T=r(y);T!==null&&De(Y,T.startTime-U),F=!1}}break e}finally{S=null,C=oe,M=!1}F=void 0}}finally{F?qe():X=!1}}}var qe;if(typeof H=="function")qe=function(){H(Qe)};else if(typeof MessageChannel<"u"){var pt=new MessageChannel,it=pt.port2;pt.port1.onmessage=Qe,qe=function(){it.postMessage(null)}}else qe=function(){z(Qe,0)};function De(U,F){$=z(function(){U(l.unstable_now())},F)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return C},l.unstable_next=function(U){switch(C){case 1:case 2:case 3:var F=3;break;default:F=C}var oe=C;C=F;try{return U()}finally{C=oe}},l.unstable_requestPaint=function(){A=!0},l.unstable_runWithPriority=function(U,F){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var oe=C;C=U;try{return F()}finally{C=oe}},l.unstable_scheduleCallback=function(U,F,oe){var Re=l.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?Re+oe:Re):oe=Re,U){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=oe+W,U={id:x++,callback:F,priorityLevel:U,startTime:oe,expirationTime:W,sortIndex:-1},oe>Re?(U.sortIndex=oe,a(y,U),r(v)===null&&U===r(y)&&(j?(J($),$=-1):j=!0,De(Y,oe-Re))):(U.sortIndex=W,a(v,U),L||M||(L=!0,X||(X=!0,qe()))),U},l.unstable_shouldYield=Ne,l.unstable_wrapCallback=function(U){var F=C;return function(){var oe=C;C=F;try{return U.apply(this,arguments)}finally{C=oe}}}})(id)),id}var Tv;function CS(){return Tv||(Tv=1,ld.exports=ES()),ld.exports}var rd={exports:{}},zt={};/**
|
|
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 jv;function NS(){if(jv)return zt;jv=1;var l=$d();function a(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(v,y,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:v,containerInfo:y,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,zt.createPortal=function(v,y){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(v,y,null,x)},zt.flushSync=function(v){var y=h.T,x=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=y,s.p=x,s.d.f()}},zt.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},zt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},zt.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var x=y.as,S=m(x,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,M=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:M}):x==="script"&&s.d.X(v,{crossOrigin:S,integrity:C,fetchPriority:M,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},zt.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var x=m(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},zt.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var x=y.as,S=m(x,y.crossOrigin);s.d.L(v,x,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},zt.preloadModule=function(v,y){if(typeof v=="string")if(y){var x=m(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},zt.requestFormReset=function(v){s.d.r(v)},zt.unstable_batchedUpdates=function(v,y){return v(y)},zt.useFormState=function(v,y,x){return h.H.useFormState(v,y,x)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.2.4",zt}var wv;function Yg(){if(wv)return rd.exports;wv=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),rd.exports=NS(),rd.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 Av;function TS(){if(Av)return ps;Av=1;var l=CS(),a=$d(),r=Yg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){n=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return v(u),e;if(c===i)return v(u),t;c=c.sibling}throw Error(s(188))}if(n.return!==i.return)n=u,i=c;else{for(var p=!1,g=u.child;g;){if(g===n){p=!0,n=u,i=c;break}if(g===i){p=!0,i=u,n=c;break}g=g.sibling}if(!p){for(g=c.child;g;){if(g===n){p=!0,n=c,i=u;break}if(g===i){p=!0,i=c,n=u;break}g=g.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,C=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),H=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Ne=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=Qe&&e[Qe]||e["@@iterator"],typeof e=="function"?e:null)}var pt=Symbol.for("react.client.reference");function it(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case z:return"Profiler";case A:return"StrictMode";case Y:return"Suspense";case X:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case H:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:it(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return it(e(t))}catch{}}return null}var De=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},Re=[],W=-1;function T(e){return{current:e}}function Q(e){0>W||(e.current=Re[W],Re[W]=null,W--)}function ee(e,t){W++,Re[W]=e.current,e.current=t}var ae=T(null),ce=T(null),me=T(null),Ee=T(null);function dt(e,t){switch(ee(me,t),ee(ce,e),ee(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vy(t),e=Gy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(ae),ee(ae,e)}function Se(){Q(ae),Q(ce),Q(me)}function Rn(e){e.memoizedState!==null&&ee(Ee,e);var t=ae.current,n=Gy(t,e.type);t!==n&&(ee(ce,e),ee(ae,n))}function mn(e){ce.current===e&&(Q(ae),Q(ce)),Ee.current===e&&(Q(Ee),cs._currentValue=oe)}var On,la;function Lt(e){if(On===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);On=t&&t[1]||"",la=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+On+e+la}var P=!1;function jt(e,t){if(!e||P)return"";P=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(k){var D=k}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(k){D=k}e.call(Z.prototype)}}else{try{throw Error()}catch(k){D=k}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(k){if(k&&D&&typeof k.stack=="string")return[k.stack,D.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),p=c[0],g=c[1];if(p&&g){var _=p.split(`
|
|
44
|
+
`),O=g.split(`
|
|
45
|
+
`);for(u=i=0;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(i===_.length||u===O.length)for(i=_.length-1,u=O.length-1;1<=i&&0<=u&&_[i]!==O[u];)u--;for(;1<=i&&0<=u;i--,u--)if(_[i]!==O[u]){if(i!==1||u!==1)do if(i--,u--,0>u||_[i]!==O[u]){var B=`
|
|
46
|
+
`+_[i].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=i&&0<=u);break}}}finally{P=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Lt(n):""}function Lo(e,t){switch(e.tag){case 26:case 27:case 5:return Lt(e.type);case 16:return Lt("Lazy");case 13:return e.child!==t&&t!==null?Lt("Suspense Fallback"):Lt("Suspense");case 19:return Lt("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return Lt("Activity");default:return""}}function xh(e){try{var t="",n=null;do t+=Lo(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var Bo=Object.prototype.hasOwnProperty,qo=l.unstable_scheduleCallback,Ho=l.unstable_cancelCallback,$0=l.unstable_shouldYield,I0=l.unstable_requestPaint,en=l.unstable_now,P0=l.unstable_getCurrentPriorityLevel,Sh=l.unstable_ImmediatePriority,_h=l.unstable_UserBlockingPriority,Us=l.unstable_NormalPriority,W0=l.unstable_LowPriority,Eh=l.unstable_IdlePriority,ex=l.log,tx=l.unstable_setDisableYieldValue,_r=null,tn=null;function Ba(e){if(typeof ex=="function"&&tx(e),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(_r,e)}catch{}}var nn=Math.clz32?Math.clz32:lx,nx=Math.log,ax=Math.LN2;function lx(e){return e>>>=0,e===0?32:31-(nx(e)/ax|0)|0}var Ls=256,Bs=262144,qs=4194304;function wl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hs(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~c,i!==0?u=wl(i):(p&=g,p!==0?u=wl(p):n||(n=g&~e,n!==0&&(u=wl(n))))):(g=i&~c,g!==0?u=wl(g):p!==0?u=wl(p):n||(n=i&~e,n!==0&&(u=wl(n)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:u}function Er(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ix(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 Ch(){var e=qs;return qs<<=1,(qs&62914560)===0&&(qs=4194304),e}function Qo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rx(e,t,n,i,u,c){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,_=e.expirationTimes,O=e.hiddenUpdates;for(n=p&~n;0<n;){var B=31-nn(n),Z=1<<B;g[B]=0,_[B]=-1;var D=O[B];if(D!==null)for(O[B]=null,B=0;B<D.length;B++){var k=D[B];k!==null&&(k.lane&=-536870913)}n&=~Z}i!==0&&Nh(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Nh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-nn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Th(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-nn(n),u=1<<i;u&t|e[i]&t&&(e[i]|=t),n&=~u}}function jh(e,t){var n=t&-t;return n=(n&42)!==0?1:Zo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Zo(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 Vo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function wh(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:hv(e.type))}function Ah(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var qa=Math.random().toString(36).slice(2),wt="__reactFiber$"+qa,Vt="__reactProps$"+qa,ci="__reactContainer$"+qa,Go="__reactEvents$"+qa,sx="__reactListeners$"+qa,ux="__reactHandles$"+qa,Rh="__reactResources$"+qa,Nr="__reactMarker$"+qa;function Yo(e){delete e[wt],delete e[Vt],delete e[Go],delete e[sx],delete e[ux]}function fi(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ci]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Iy(e);e!==null;){if(n=e[wt])return n;e=Iy(e)}return t}e=n,n=e.parentNode}return null}function di(e){if(e=e[wt]||e[ci]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function hi(e){var t=e[Rh];return t||(t=e[Rh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[Nr]=!0}var Oh=new Set,Mh={};function Al(e,t){mi(e,t),mi(e+"Capture",t)}function mi(e,t){for(Mh[e]=t,e=0;e<t.length;e++)Oh.add(t[e])}var ox=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]*$"),Dh={},zh={};function cx(e){return Bo.call(zh,e)?!0:Bo.call(Dh,e)?!1:ox.test(e)?zh[e]=!0:(Dh[e]=!0,!1)}function Qs(e,t,n){if(cx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Zs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ia(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fx(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xo(e){if(!e._valueTracker){var t=kh(e)?"checked":"value";e._valueTracker=fx(e,t,""+e[t])}}function Uh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=kh(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Vs(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 dx=/[\n"\\]/g;function yn(e){return e.replace(dx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ko(e,t,n,i,u,c,p,g){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Fo(e,p,pn(t)):n!=null?Fo(e,p,pn(n)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+pn(g):e.removeAttribute("name")}function Lh(e,t,n,i,u,c,p,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Xo(e);return}n=n!=null?""+pn(n):"",t=t!=null?""+pn(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Xo(e)}function Fo(e,t,n){t==="number"&&Vs(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pi(e,t,n,i){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&i&&(e[n].defaultSelected=!0)}else{for(n=""+pn(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Bh(e,t,n){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+pn(n):""}function qh(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(De(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=pn(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Xo(e)}function yi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hx=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 Hh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||hx.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Qh(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&n[u]!==i&&Hh(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&Hh(e,c,t[c])}function Jo(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 mx=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"]]),px=/^[\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 Gs(e){return px.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var $o=null;function Io(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,gi=null;function Zh(e){var t=di(e);if(t&&(e=t.stateNode)){var n=e[Vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ko(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var u=i[Vt]||null;if(!u)throw Error(s(90));Ko(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Uh(i)}break e;case"textarea":Bh(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pi(e,!!n.multiple,t,!1)}}}var Po=!1;function Vh(e,t,n){if(Po)return e(t,n);Po=!0;try{var i=e(t);return i}finally{if(Po=!1,(vi!==null||gi!==null)&&(Ou(),vi&&(t=vi,e=gi,gi=vi=null,Zh(t),e)))for(t=0;t<e.length;t++)Zh(e[t])}}function jr(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Vt]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(sa)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{Wo=!1}var Ha=null,ec=null,Ys=null;function Gh(){if(Ys)return Ys;var e,t=ec,n=t.length,i,u="value"in Ha?Ha.value:Ha.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var p=n-e;for(i=1;i<=p&&t[n-i]===u[c-i];i++);return Ys=u.slice(e,1<i?1-i:void 0)}function Xs(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 Ks(){return!0}function Yh(){return!1}function Gt(e){function t(n,i,u,c,p){this._reactName=n,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ks:Yh,this.isPropagationStopped=Yh,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),t}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fs=Gt(Rl),Ar=S({},Rl,{view:0,detail:0}),yx=Gt(Ar),tc,nc,Rr,Js=S({},Ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lc,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!==Rr&&(Rr&&e.type==="mousemove"?(tc=e.screenX-Rr.screenX,nc=e.screenY-Rr.screenY):nc=tc=0,Rr=e),tc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),Xh=Gt(Js),vx=S({},Js,{dataTransfer:0}),gx=Gt(vx),bx=S({},Ar,{relatedTarget:0}),ac=Gt(bx),xx=S({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Sx=Gt(xx),_x=S({},Rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ex=Gt(_x),Cx=S({},Rl,{data:0}),Kh=Gt(Cx),Nx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tx={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"},jx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jx[e])?!!t[e]:!1}function lc(){return wx}var Ax=S({},Ar,{key:function(e){if(e.key){var t=Nx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lc,charCode:function(e){return e.type==="keypress"?Xs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rx=Gt(Ax),Ox=S({},Js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=Gt(Ox),Mx=S({},Ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lc}),Dx=Gt(Mx),zx=S({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),kx=Gt(zx),Ux=S({},Js,{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}),Lx=Gt(Ux),Bx=S({},Rl,{newState:0,oldState:0}),qx=Gt(Bx),Hx=[9,13,27,32],ic=sa&&"CompositionEvent"in window,Or=null;sa&&"documentMode"in document&&(Or=document.documentMode);var Qx=sa&&"TextEvent"in window&&!Or,Jh=sa&&(!ic||Or&&8<Or&&11>=Or),$h=" ",Ih=!1;function Ph(e,t){switch(e){case"keyup":return Hx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bi=!1;function Zx(e,t){switch(e){case"compositionend":return Wh(t);case"keypress":return t.which!==32?null:(Ih=!0,$h);case"textInput":return e=t.data,e===$h&&Ih?null:e;default:return null}}function Vx(e,t){if(bi)return e==="compositionend"||!ic&&Ph(e,t)?(e=Gh(),Ys=ec=Ha=null,bi=!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 Jh&&t.locale!=="ko"?null:t.data;default:return null}}var Gx={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 em(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gx[e.type]:t==="textarea"}function tm(e,t,n,i){vi?gi?gi.push(i):gi=[i]:vi=i,t=Bu(t,"onChange"),0<t.length&&(n=new Fs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Mr=null,Dr=null;function Yx(e){Ly(e,0)}function $s(e){var t=Tr(e);if(Uh(t))return e}function nm(e,t){if(e==="change")return t}var am=!1;if(sa){var rc;if(sa){var sc="oninput"in document;if(!sc){var lm=document.createElement("div");lm.setAttribute("oninput","return;"),sc=typeof lm.oninput=="function"}rc=sc}else rc=!1;am=rc&&(!document.documentMode||9<document.documentMode)}function im(){Mr&&(Mr.detachEvent("onpropertychange",rm),Dr=Mr=null)}function rm(e){if(e.propertyName==="value"&&$s(Dr)){var t=[];tm(t,Dr,e,Io(e)),Vh(Yx,t)}}function Xx(e,t,n){e==="focusin"?(im(),Mr=t,Dr=n,Mr.attachEvent("onpropertychange",rm)):e==="focusout"&&im()}function Kx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $s(Dr)}function Fx(e,t){if(e==="click")return $s(t)}function Jx(e,t){if(e==="input"||e==="change")return $s(t)}function $x(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var an=typeof Object.is=="function"?Object.is:$x;function zr(e,t){if(an(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var u=n[i];if(!Bo.call(t,u)||!an(e[u],t[u]))return!1}return!0}function sm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function um(e,t){var n=sm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sm(n)}}function om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vs(e.document)}return t}function uc(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 Ix=sa&&"documentMode"in document&&11>=document.documentMode,xi=null,oc=null,kr=null,cc=!1;function fm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||xi==null||xi!==Vs(i)||(i=xi,"selectionStart"in i&&uc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),kr&&zr(kr,i)||(kr=i,i=Bu(oc,"onSelect"),0<i.length&&(t=new Fs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=xi)))}function Ol(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Si={animationend:Ol("Animation","AnimationEnd"),animationiteration:Ol("Animation","AnimationIteration"),animationstart:Ol("Animation","AnimationStart"),transitionrun:Ol("Transition","TransitionRun"),transitionstart:Ol("Transition","TransitionStart"),transitioncancel:Ol("Transition","TransitionCancel"),transitionend:Ol("Transition","TransitionEnd")},fc={},dm={};sa&&(dm=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function Ml(e){if(fc[e])return fc[e];if(!Si[e])return e;var t=Si[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dm)return fc[e]=t[n];return e}var hm=Ml("animationend"),mm=Ml("animationiteration"),pm=Ml("animationstart"),Px=Ml("transitionrun"),Wx=Ml("transitionstart"),e1=Ml("transitioncancel"),ym=Ml("transitionend"),vm=new Map,dc="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(" ");dc.push("scrollEnd");function Mn(e,t){vm.set(e,t),Al(t,[e])}var Is=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)},vn=[],_i=0,hc=0;function Ps(){for(var e=_i,t=hc=_i=0;t<e;){var n=vn[t];vn[t++]=null;var i=vn[t];vn[t++]=null;var u=vn[t];vn[t++]=null;var c=vn[t];if(vn[t++]=null,i!==null&&u!==null){var p=i.pending;p===null?u.next=u:(u.next=p.next,p.next=u),i.pending=u}c!==0&&gm(n,u,c)}}function Ws(e,t,n,i){vn[_i++]=e,vn[_i++]=t,vn[_i++]=n,vn[_i++]=i,hc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function mc(e,t,n,i){return Ws(e,t,n,i),eu(e)}function Dl(e,t){return Ws(e,null,null,t),eu(e)}function gm(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var u=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-nn(n),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=n|536870912),c):null}function eu(e){if(50<as)throw as=0,Cf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ei={};function t1(e,t,n,i){this.tag=e,this.key=n,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(e,t,n,i){return new t1(e,t,n,i)}function pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var n=e.alternate;return n===null?(n=ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function bm(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function tu(e,t,n,i,u,c){var p=0;if(i=e,typeof e=="function")pc(e)&&(p=1);else if(typeof e=="string")p=rS(e,n,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=ln(31,n,t,u),e.elementType=he,e.lanes=c,e;case j:return zl(n.children,u,c,t);case A:p=8,u|=24;break;case z:return e=ln(12,n,t,u|2),e.elementType=z,e.lanes=c,e;case Y:return e=ln(13,n,t,u),e.elementType=Y,e.lanes=c,e;case X:return e=ln(19,n,t,u),e.elementType=X,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:p=10;break e;case J:p=9;break e;case V:p=11;break e;case $:p=14;break e;case G:p=16,i=null;break e}p=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ln(p,n,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function zl(e,t,n,i){return e=ln(7,e,i,t),e.lanes=n,e}function yc(e,t,n){return e=ln(6,e,null,t),e.lanes=n,e}function xm(e){var t=ln(18,null,null,0);return t.stateNode=e,t}function vc(e,t,n){return t=ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Sm=new WeakMap;function gn(e,t){if(typeof e=="object"&&e!==null){var n=Sm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:xh(t)},Sm.set(e,t),t)}return{value:e,source:t,stack:xh(t)}}var Ci=[],Ni=0,nu=null,Ur=0,bn=[],xn=0,Qa=null,Gn=1,Yn="";function oa(e,t){Ci[Ni++]=Ur,Ci[Ni++]=nu,nu=e,Ur=t}function _m(e,t,n){bn[xn++]=Gn,bn[xn++]=Yn,bn[xn++]=Qa,Qa=e;var i=Gn;e=Yn;var u=32-nn(i)-1;i&=~(1<<u),n+=1;var c=32-nn(t)+u;if(30<c){var p=u-u%5;c=(i&(1<<p)-1).toString(32),i>>=p,u-=p,Gn=1<<32-nn(t)+u|n<<u|i,Yn=c+e}else Gn=1<<c|n<<u|i,Yn=e}function gc(e){e.return!==null&&(oa(e,1),_m(e,1,0))}function bc(e){for(;e===nu;)nu=Ci[--Ni],Ci[Ni]=null,Ur=Ci[--Ni],Ci[Ni]=null;for(;e===Qa;)Qa=bn[--xn],bn[xn]=null,Yn=bn[--xn],bn[xn]=null,Gn=bn[--xn],bn[xn]=null}function Em(e,t){bn[xn++]=Gn,bn[xn++]=Yn,bn[xn++]=Qa,Gn=t.id,Yn=t.overflow,Qa=e}var At=null,nt=null,Ue=!1,Za=null,Sn=!1,xc=Error(s(519));function Va(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Lr(gn(t,e)),xc}function Cm(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[wt]=e,t[Vt]=i,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<is.length;n++)Me(is[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),Lh(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),qh(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Qy(t.textContent,n)?(i.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),i.onScroll!=null&&Me("scroll",t),i.onScrollEnd!=null&&Me("scrollend",t),i.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||Va(e,!0)}function Nm(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:At=At.return}}function Ti(e){if(e!==At)return!1;if(!Ue)return Nm(e),Ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||qf(e.type,e.memoizedProps)),n=!n),n&&nt&&Va(e),Nm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));nt=$y(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));nt=$y(e)}else t===27?(t=nt,al(e.type)?(e=Gf,Gf=null,nt=e):nt=t):nt=At?En(e.stateNode.nextSibling):null;return!0}function kl(){nt=At=null,Ue=!1}function Sc(){var e=Za;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),Za=null),e}function Lr(e){Za===null?Za=[e]:Za.push(e)}var _c=T(null),Ul=null,ca=null;function Ga(e,t,n){ee(_c,t._currentValue),t._currentValue=n}function fa(e){e._currentValue=_c.current,Q(_c)}function Ec(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Cc(e,t,n,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var p=u.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=u;for(var _=0;_<t.length;_++)if(g.context===t[_]){c.lanes|=n,g=c.alternate,g!==null&&(g.lanes|=n),Ec(c.return,n,e),i||(p=null);break e}c=g.next}}else if(u.tag===18){if(p=u.return,p===null)throw Error(s(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),Ec(p,n,e),p=null}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}if(u=p.sibling,u!==null){u.return=p.return,p=u;break}p=p.return}u=p}}function ji(e,t,n,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var p=u.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var g=u.type;an(u.pendingProps.value,p.value)||(e!==null?e.push(g):e=[g])}}else if(u===Ee.current){if(p=u.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(cs):e=[cs])}u=u.return}e!==null&&Cc(t,e,n,i),t.flags|=262144}function au(e){for(e=e.firstContext;e!==null;){if(!an(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ll(e){Ul=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return Tm(Ul,e)}function lu(e,t){return Ul===null&&Ll(e),Tm(e,t)}function Tm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ca===null){if(e===null)throw Error(s(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return n}var n1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},a1=l.unstable_scheduleCallback,l1=l.unstable_NormalPriority,yt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nc(){return{controller:new n1,data:new Map,refCount:0}}function Br(e){e.refCount--,e.refCount===0&&a1(l1,function(){e.controller.abort()})}var qr=null,Tc=0,wi=0,Ai=null;function i1(e,t){if(qr===null){var n=qr=[];Tc=0,wi=Rf(),Ai={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Tc++,t.then(jm,jm),t}function jm(){if(--Tc===0&&qr!==null){Ai!==null&&(Ai.status="fulfilled");var e=qr;qr=null,wi=0,Ai=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function r1(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),i}var wm=U.S;U.S=function(e,t){fy=en(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&i1(e,t),wm!==null&&wm(e,t)};var Bl=T(null);function jc(){var e=Bl.current;return e!==null?e:We.pooledCache}function iu(e,t){t===null?ee(Bl,Bl.current):ee(Bl,t.pool)}function Am(){var e=jc();return e===null?null:{parent:yt._currentValue,pool:e}}var Ri=Error(s(460)),wc=Error(s(474)),ru=Error(s(542)),su={then:function(){}};function Rm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Om(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ra,ra),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Dm(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Dm(e),e}throw Hl=t,Ri}}function ql(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Hl=n,Ri):n}}var Hl=null;function Mm(){if(Hl===null)throw Error(s(459));var e=Hl;return Hl=null,e}function Dm(e){if(e===Ri||e===ru)throw Error(s(483))}var Oi=null,Hr=0;function uu(e){var t=Hr;return Hr+=1,Oi===null&&(Oi=[]),Om(Oi,e,t)}function Qr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ou(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zm(e){function t(w,N){if(e){var R=w.deletions;R===null?(w.deletions=[N],w.flags|=16):R.push(N)}}function n(w,N){if(!e)return null;for(;N!==null;)t(w,N),N=N.sibling;return null}function i(w){for(var N=new Map;w!==null;)w.key!==null?N.set(w.key,w):N.set(w.index,w),w=w.sibling;return N}function u(w,N){return w=ua(w,N),w.index=0,w.sibling=null,w}function c(w,N,R){return w.index=R,e?(R=w.alternate,R!==null?(R=R.index,R<N?(w.flags|=67108866,N):R):(w.flags|=67108866,N)):(w.flags|=1048576,N)}function p(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function g(w,N,R,q){return N===null||N.tag!==6?(N=yc(R,w.mode,q),N.return=w,N):(N=u(N,R),N.return=w,N)}function _(w,N,R,q){var ye=R.type;return ye===j?B(w,N,R.props.children,q,R.key):N!==null&&(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===G&&ql(ye)===N.type)?(N=u(N,R.props),Qr(N,R),N.return=w,N):(N=tu(R.type,R.key,R.props,null,w.mode,q),Qr(N,R),N.return=w,N)}function O(w,N,R,q){return N===null||N.tag!==4||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation?(N=vc(R,w.mode,q),N.return=w,N):(N=u(N,R.children||[]),N.return=w,N)}function B(w,N,R,q,ye){return N===null||N.tag!==7?(N=zl(R,w.mode,q,ye),N.return=w,N):(N=u(N,R),N.return=w,N)}function Z(w,N,R){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=yc(""+N,w.mode,R),N.return=w,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case M:return R=tu(N.type,N.key,N.props,null,w.mode,R),Qr(R,N),R.return=w,R;case L:return N=vc(N,w.mode,R),N.return=w,N;case G:return N=ql(N),Z(w,N,R)}if(De(N)||qe(N))return N=zl(N,w.mode,R,null),N.return=w,N;if(typeof N.then=="function")return Z(w,uu(N),R);if(N.$$typeof===H)return Z(w,lu(w,N),R);ou(w,N)}return null}function D(w,N,R,q){var ye=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ye!==null?null:g(w,N,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return R.key===ye?_(w,N,R,q):null;case L:return R.key===ye?O(w,N,R,q):null;case G:return R=ql(R),D(w,N,R,q)}if(De(R)||qe(R))return ye!==null?null:B(w,N,R,q,null);if(typeof R.then=="function")return D(w,N,uu(R),q);if(R.$$typeof===H)return D(w,N,lu(w,R),q);ou(w,R)}return null}function k(w,N,R,q,ye){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return w=w.get(R)||null,g(N,w,""+q,ye);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case M:return w=w.get(q.key===null?R:q.key)||null,_(N,w,q,ye);case L:return w=w.get(q.key===null?R:q.key)||null,O(N,w,q,ye);case G:return q=ql(q),k(w,N,R,q,ye)}if(De(q)||qe(q))return w=w.get(R)||null,B(N,w,q,ye,null);if(typeof q.then=="function")return k(w,N,R,uu(q),ye);if(q.$$typeof===H)return k(w,N,R,lu(N,q),ye);ou(N,q)}return null}function le(w,N,R,q){for(var ye=null,Ze=null,fe=N,Te=N=0,ke=null;fe!==null&&Te<R.length;Te++){fe.index>Te?(ke=fe,fe=null):ke=fe.sibling;var Ve=D(w,fe,R[Te],q);if(Ve===null){fe===null&&(fe=ke);break}e&&fe&&Ve.alternate===null&&t(w,fe),N=c(Ve,N,Te),Ze===null?ye=Ve:Ze.sibling=Ve,Ze=Ve,fe=ke}if(Te===R.length)return n(w,fe),Ue&&oa(w,Te),ye;if(fe===null){for(;Te<R.length;Te++)fe=Z(w,R[Te],q),fe!==null&&(N=c(fe,N,Te),Ze===null?ye=fe:Ze.sibling=fe,Ze=fe);return Ue&&oa(w,Te),ye}for(fe=i(fe);Te<R.length;Te++)ke=k(fe,w,Te,R[Te],q),ke!==null&&(e&&ke.alternate!==null&&fe.delete(ke.key===null?Te:ke.key),N=c(ke,N,Te),Ze===null?ye=ke:Ze.sibling=ke,Ze=ke);return e&&fe.forEach(function(ul){return t(w,ul)}),Ue&&oa(w,Te),ye}function ve(w,N,R,q){if(R==null)throw Error(s(151));for(var ye=null,Ze=null,fe=N,Te=N=0,ke=null,Ve=R.next();fe!==null&&!Ve.done;Te++,Ve=R.next()){fe.index>Te?(ke=fe,fe=null):ke=fe.sibling;var ul=D(w,fe,Ve.value,q);if(ul===null){fe===null&&(fe=ke);break}e&&fe&&ul.alternate===null&&t(w,fe),N=c(ul,N,Te),Ze===null?ye=ul:Ze.sibling=ul,Ze=ul,fe=ke}if(Ve.done)return n(w,fe),Ue&&oa(w,Te),ye;if(fe===null){for(;!Ve.done;Te++,Ve=R.next())Ve=Z(w,Ve.value,q),Ve!==null&&(N=c(Ve,N,Te),Ze===null?ye=Ve:Ze.sibling=Ve,Ze=Ve);return Ue&&oa(w,Te),ye}for(fe=i(fe);!Ve.done;Te++,Ve=R.next())Ve=k(fe,w,Te,Ve.value,q),Ve!==null&&(e&&Ve.alternate!==null&&fe.delete(Ve.key===null?Te:Ve.key),N=c(Ve,N,Te),Ze===null?ye=Ve:Ze.sibling=Ve,Ze=Ve);return e&&fe.forEach(function(vS){return t(w,vS)}),Ue&&oa(w,Te),ye}function Pe(w,N,R,q){if(typeof R=="object"&&R!==null&&R.type===j&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case M:e:{for(var ye=R.key;N!==null;){if(N.key===ye){if(ye=R.type,ye===j){if(N.tag===7){n(w,N.sibling),q=u(N,R.props.children),q.return=w,w=q;break e}}else if(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===G&&ql(ye)===N.type){n(w,N.sibling),q=u(N,R.props),Qr(q,R),q.return=w,w=q;break e}n(w,N);break}else t(w,N);N=N.sibling}R.type===j?(q=zl(R.props.children,w.mode,q,R.key),q.return=w,w=q):(q=tu(R.type,R.key,R.props,null,w.mode,q),Qr(q,R),q.return=w,w=q)}return p(w);case L:e:{for(ye=R.key;N!==null;){if(N.key===ye)if(N.tag===4&&N.stateNode.containerInfo===R.containerInfo&&N.stateNode.implementation===R.implementation){n(w,N.sibling),q=u(N,R.children||[]),q.return=w,w=q;break e}else{n(w,N);break}else t(w,N);N=N.sibling}q=vc(R,w.mode,q),q.return=w,w=q}return p(w);case G:return R=ql(R),Pe(w,N,R,q)}if(De(R))return le(w,N,R,q);if(qe(R)){if(ye=qe(R),typeof ye!="function")throw Error(s(150));return R=ye.call(R),ve(w,N,R,q)}if(typeof R.then=="function")return Pe(w,N,uu(R),q);if(R.$$typeof===H)return Pe(w,N,lu(w,R),q);ou(w,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,N!==null&&N.tag===6?(n(w,N.sibling),q=u(N,R),q.return=w,w=q):(n(w,N),q=yc(R,w.mode,q),q.return=w,w=q),p(w)):n(w,N)}return function(w,N,R,q){try{Hr=0;var ye=Pe(w,N,R,q);return Oi=null,ye}catch(fe){if(fe===Ri||fe===ru)throw fe;var Ze=ln(29,fe,null,w.mode);return Ze.lanes=q,Ze.return=w,Ze}finally{}}}var Ql=zm(!0),km=zm(!1),Ya=!1;function Ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rc(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=eu(e),gm(e,null,n),t}return Ws(e,i,t,n),eu(e)}function Zr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Th(e,n)}}function Oc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=p:c=c.next=p,n=n.next}while(n!==null);c===null?u=c=t:c=c.next=t}else u=c=t;n={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Mc=!1;function Vr(){if(Mc){var e=Ai;if(e!==null)throw e}}function Gr(e,t,n,i){Mc=!1;var u=e.updateQueue;Ya=!1;var c=u.firstBaseUpdate,p=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var _=g,O=_.next;_.next=null,p===null?c=O:p.next=O,p=_;var B=e.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==p&&(g===null?B.firstBaseUpdate=O:g.next=O,B.lastBaseUpdate=_))}if(c!==null){var Z=u.baseState;p=0,B=O=_=null,g=c;do{var D=g.lane&-536870913,k=D!==g.lane;if(k?(ze&D)===D:(i&D)===D){D!==0&&D===wi&&(Mc=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var le=e,ve=g;D=t;var Pe=n;switch(ve.tag){case 1:if(le=ve.payload,typeof le=="function"){Z=le.call(Pe,Z,D);break e}Z=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ve.payload,D=typeof le=="function"?le.call(Pe,Z,D):le,D==null)break e;Z=S({},Z,D);break e;case 2:Ya=!0}}D=g.callback,D!==null&&(e.flags|=64,k&&(e.flags|=8192),k=u.callbacks,k===null?u.callbacks=[D]:k.push(D))}else k={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(O=B=k,_=Z):B=B.next=k,p|=D;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;k=g,g=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);B===null&&(_=Z),u.baseState=_,u.firstBaseUpdate=O,u.lastBaseUpdate=B,c===null&&(u.shared.lanes=0),Pa|=p,e.lanes=p,e.memoizedState=Z}}function Um(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Lm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Um(n[e],t)}var Mi=T(null),cu=T(0);function Bm(e,t){e=xa,ee(cu,e),ee(Mi,t),xa=e|t.baseLanes}function Dc(){ee(cu,xa),ee(Mi,Mi.current)}function zc(){xa=cu.current,Q(Mi),Q(cu)}var rn=T(null),_n=null;function Fa(e){var t=e.alternate;ee(ht,ht.current&1),ee(rn,e),_n===null&&(t===null||Mi.current!==null||t.memoizedState!==null)&&(_n=e)}function kc(e){ee(ht,ht.current),ee(rn,e),_n===null&&(_n=e)}function qm(e){e.tag===22?(ee(ht,ht.current),ee(rn,e),_n===null&&(_n=e)):Ja()}function Ja(){ee(ht,ht.current),ee(rn,rn.current)}function sn(e){Q(rn),_n===e&&(_n=null),Q(ht)}var ht=T(0);function fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Zf(n)||Vf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var da=0,Ce=null,$e=null,vt=null,du=!1,Di=!1,Zl=!1,hu=0,Yr=0,zi=null,s1=0;function ut(){throw Error(s(321))}function Uc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!an(e[n],t[n]))return!1;return!0}function Lc(e,t,n,i,u,c){return da=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?_p:Pc,Zl=!1,c=n(i,u),Zl=!1,Di&&(c=Qm(t,n,i,u)),Hm(e),c}function Hm(e){U.H=Fr;var t=$e!==null&&$e.next!==null;if(da=0,vt=$e=Ce=null,du=!1,Yr=0,zi=null,t)throw Error(s(300));e===null||gt||(e=e.dependencies,e!==null&&au(e)&&(gt=!0))}function Qm(e,t,n,i){Ce=e;var u=0;do{if(Di&&(zi=null),Yr=0,Di=!1,25<=u)throw Error(s(301));if(u+=1,vt=$e=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Ep,c=t(n,i)}while(Di);return c}function u1(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Xr(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Bc(){var e=hu!==0;return hu=0,e}function qc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Hc(e){if(du){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}du=!1}da=0,vt=$e=Ce=null,Di=!1,Yr=hu=0,zi=null}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Ce.memoizedState=vt=e:vt=vt.next=e,vt}function mt(){if($e===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=vt===null?Ce.memoizedState:vt.next;if(t!==null)vt=t,$e=e;else{if(e===null)throw Ce.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},vt===null?Ce.memoizedState=vt=e:vt=vt.next=e}return vt}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xr(e){var t=Yr;return Yr+=1,zi===null&&(zi=[]),e=Om(zi,e,t),t=Ce,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?_p:Pc),e}function pu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xr(e);if(e.$$typeof===H)return Rt(e)}throw Error(s(438,String(e)))}function Qc(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mu(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=Ne;return t.index++,n}function ha(e,t){return typeof t=="function"?t(e):t}function yu(e){var t=mt();return Zc(t,$e,e)}function Zc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var p=u.next;u.next=c.next,c.next=p}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var g=p=null,_=null,O=t,B=!1;do{var Z=O.lane&-536870913;if(Z!==O.lane?(ze&Z)===Z:(da&Z)===Z){var D=O.revertLane;if(D===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Z===wi&&(B=!0);else if((da&D)===D){O=O.next,D===wi&&(B=!0);continue}else Z={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(g=_=Z,p=c):_=_.next=Z,Ce.lanes|=D,Pa|=D;Z=O.action,Zl&&n(c,Z),c=O.hasEagerState?O.eagerState:n(c,Z)}else D={lane:Z,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(g=_=D,p=c):_=_.next=D,Ce.lanes|=Z,Pa|=Z;O=O.next}while(O!==null&&O!==t);if(_===null?p=c:_.next=g,!an(c,e.memoizedState)&&(gt=!0,B&&(n=Ai,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=_,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Vc(e){var t=mt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,u=n.pending,c=t.memoizedState;if(u!==null){n.pending=null;var p=u=u.next;do c=e(c,p.action),p=p.next;while(p!==u);an(c,t.memoizedState)||(gt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function Zm(e,t,n){var i=Ce,u=mt(),c=Ue;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var p=!an(($e||u).memoizedState,n);if(p&&(u.memoizedState=n,gt=!0),u=u.queue,Xc(Ym.bind(null,i,u,e),[e]),u.getSnapshot!==t||p||vt!==null&&vt.memoizedState.tag&1){if(i.flags|=2048,ki(9,{destroy:void 0},Gm.bind(null,i,u,n,t),null),We===null)throw Error(s(349));c||(da&127)!==0||Vm(i,t,n)}return n}function Vm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=mu(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gm(e,t,n,i){t.value=n,t.getSnapshot=i,Xm(t)&&Km(e)}function Ym(e,t,n){return n(function(){Xm(t)&&Km(e)})}function Xm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!an(e,n)}catch{return!0}}function Km(e){var t=Dl(e,2);t!==null&&Jt(t,e,2)}function Gc(e){var t=Bt();if(typeof e=="function"){var n=e;if(e=n(),Zl){Ba(!0);try{n()}finally{Ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function Fm(e,t,n,i){return e.baseState=n,Zc(e,$e,typeof i=="function"?i:ha)}function o1(e,t,n,i,u){if(bu(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};U.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,Jm(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Jm(e,t){var n=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=U.T,p={};U.T=p;try{var g=n(u,i),_=U.S;_!==null&&_(p,g),$m(e,t,g)}catch(O){Yc(e,t,O)}finally{c!==null&&p.types!==null&&(c.types=p.types),U.T=c}}else try{c=n(u,i),$m(e,t,c)}catch(O){Yc(e,t,O)}}function $m(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Im(e,t,i)},function(i){return Yc(e,t,i)}):Im(e,t,n)}function Im(e,t,n){t.status="fulfilled",t.value=n,Pm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jm(e,n)))}function Yc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Pm(t),t=t.next;while(t!==i)}e.action=null}function Pm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wm(e,t){return t}function ep(e,t){if(Ue){var n=We.formState;if(n!==null){e:{var i=Ce;if(Ue){if(nt){t:{for(var u=nt,c=Sn;u.nodeType!==8;){if(!c){u=null;break t}if(u=En(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){nt=En(u.nextSibling),i=u.data==="F!";break e}}Va(i)}i=!1}i&&(t=n[0])}}return n=Bt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wm,lastRenderedState:t},n.queue=i,n=bp.bind(null,Ce,i),i.dispatch=n,i=Gc(!1),c=Ic.bind(null,Ce,!1,i.queue),i=Bt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,n=o1.bind(null,Ce,u,c,n),u.dispatch=n,i.memoizedState=e,[t,n,!1]}function tp(e){var t=mt();return np(t,$e,e)}function np(e,t,n){if(t=Zc(e,t,Wm)[0],e=yu(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Xr(t)}catch(p){throw p===Ri?ru:p}else i=t;t=mt();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,ki(9,{destroy:void 0},c1.bind(null,u,n),null)),[i,c,e]}function c1(e,t){e.action=t}function ap(e){var t=mt(),n=$e;if(n!==null)return np(t,n,e);mt(),t=t.memoizedState,n=mt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function ki(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=mu(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function lp(){return mt().memoizedState}function vu(e,t,n,i){var u=Bt();Ce.flags|=e,u.memoizedState=ki(1|t,{destroy:void 0},n,i===void 0?null:i)}function gu(e,t,n,i){var u=mt();i=i===void 0?null:i;var c=u.memoizedState.inst;$e!==null&&i!==null&&Uc(i,$e.memoizedState.deps)?u.memoizedState=ki(t,c,n,i):(Ce.flags|=e,u.memoizedState=ki(1|t,c,n,i))}function ip(e,t){vu(8390656,8,e,t)}function Xc(e,t){gu(2048,8,e,t)}function f1(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=mu(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function rp(e){var t=mt().memoizedState;return f1({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function sp(e,t){return gu(4,2,e,t)}function up(e,t){return gu(4,4,e,t)}function op(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cp(e,t,n){n=n!=null?n.concat([e]):null,gu(4,4,op.bind(null,t,e),n)}function Kc(){}function fp(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Uc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function dp(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Uc(t,i[1]))return i[0];if(i=e(),Zl){Ba(!0);try{e()}finally{Ba(!1)}}return n.memoizedState=[i,t],i}function Fc(e,t,n){return n===void 0||(da&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=hy(),Ce.lanes|=e,Pa|=e,n)}function hp(e,t,n,i){return an(n,t)?n:Mi.current!==null?(e=Fc(e,n,i),an(e,t)||(gt=!0),e):(da&42)===0||(da&1073741824)!==0&&(ze&261930)===0?(gt=!0,e.memoizedState=n):(e=hy(),Ce.lanes|=e,Pa|=e,t)}function mp(e,t,n,i,u){var c=F.p;F.p=c!==0&&8>c?c:8;var p=U.T,g={};U.T=g,Ic(e,!1,t,n);try{var _=u(),O=U.S;if(O!==null&&O(g,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var B=r1(_,i);Kr(e,t,B,cn(e))}else Kr(e,t,i,cn(e))}catch(Z){Kr(e,t,{then:function(){},status:"rejected",reason:Z},cn())}finally{F.p=c,p!==null&&g.types!==null&&(p.types=g.types),U.T=p}}function d1(){}function Jc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var u=pp(e).queue;mp(e,u,t,oe,n===null?d1:function(){return yp(e),n(i)})}function pp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yp(e){var t=pp(e);t.next===null&&(t=e.alternate.memoizedState),Kr(e,t.next.queue,{},cn())}function $c(){return Rt(cs)}function vp(){return mt().memoizedState}function gp(){return mt().memoizedState}function h1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=cn();e=Xa(n);var i=Ka(t,e,n);i!==null&&(Jt(i,t,n),Zr(i,t,n)),t={cache:Nc()},e.payload=t;return}t=t.return}}function m1(e,t,n){var i=cn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},bu(e)?xp(t,n):(n=mc(e,t,n,i),n!==null&&(Jt(n,e,i),Sp(n,t,i)))}function bp(e,t,n){var i=cn();Kr(e,t,n,i)}function Kr(e,t,n,i){var u={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(bu(e))xp(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,g=c(p,n);if(u.hasEagerState=!0,u.eagerState=g,an(g,p))return Ws(e,t,u,0),We===null&&Ps(),!1}catch{}finally{}if(n=mc(e,t,u,i),n!==null)return Jt(n,e,i),Sp(n,t,i),!0}return!1}function Ic(e,t,n,i){if(i={lane:2,revertLane:Rf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},bu(e)){if(t)throw Error(s(479))}else t=mc(e,n,i,2),t!==null&&Jt(t,e,2)}function bu(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function xp(e,t){Di=du=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sp(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Th(e,n)}}var Fr={readContext:Rt,use:pu,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};Fr.useEffectEvent=ut;var _p={readContext:Rt,use:pu,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:ip,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,vu(4194308,4,op.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var n=Bt();t=t===void 0?null:t;var i=e();if(Zl){Ba(!0);try{e()}finally{Ba(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Bt();if(n!==void 0){var u=n(t);if(Zl){Ba(!0);try{n(t)}finally{Ba(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=m1.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gc(e);var t=e.queue,n=bp.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Kc,useDeferredValue:function(e,t){var n=Bt();return Fc(n,e,t)},useTransition:function(){var e=Gc(!1);return e=mp.bind(null,Ce,e.queue,!0,!1),Bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,u=Bt();if(Ue){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),We===null)throw Error(s(349));(ze&127)!==0||Vm(i,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,ip(Ym.bind(null,i,c,e),[e]),i.flags|=2048,ki(9,{destroy:void 0},Gm.bind(null,i,c,n,t),null),n},useId:function(){var e=Bt(),t=We.identifierPrefix;if(Ue){var n=Yn,i=Gn;n=(i&~(1<<32-nn(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=hu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=s1++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$c,useFormState:ep,useActionState:ep,useOptimistic:function(e){var t=Bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ic.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Qc,useCacheRefresh:function(){return Bt().memoizedState=h1.bind(null,Ce)},useEffectEvent:function(e){var t=Bt(),n={impl:e};return t.memoizedState=n,function(){if((Xe&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Pc={readContext:Rt,use:pu,useCallback:fp,useContext:Rt,useEffect:Xc,useImperativeHandle:cp,useInsertionEffect:sp,useLayoutEffect:up,useMemo:dp,useReducer:yu,useRef:lp,useState:function(){return yu(ha)},useDebugValue:Kc,useDeferredValue:function(e,t){var n=mt();return hp(n,$e.memoizedState,e,t)},useTransition:function(){var e=yu(ha)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:Xr(e),t]},useSyncExternalStore:Zm,useId:vp,useHostTransitionStatus:$c,useFormState:tp,useActionState:tp,useOptimistic:function(e,t){var n=mt();return Fm(n,$e,e,t)},useMemoCache:Qc,useCacheRefresh:gp};Pc.useEffectEvent=rp;var Ep={readContext:Rt,use:pu,useCallback:fp,useContext:Rt,useEffect:Xc,useImperativeHandle:cp,useInsertionEffect:sp,useLayoutEffect:up,useMemo:dp,useReducer:Vc,useRef:lp,useState:function(){return Vc(ha)},useDebugValue:Kc,useDeferredValue:function(e,t){var n=mt();return $e===null?Fc(n,e,t):hp(n,$e.memoizedState,e,t)},useTransition:function(){var e=Vc(ha)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:Xr(e),t]},useSyncExternalStore:Zm,useId:vp,useHostTransitionStatus:$c,useFormState:ap,useActionState:ap,useOptimistic:function(e,t){var n=mt();return $e!==null?Fm(n,$e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Qc,useCacheRefresh:gp};Ep.useEffectEvent=rp;function Wc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ef={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=cn(),u=Xa(i);u.payload=t,n!=null&&(u.callback=n),t=Ka(e,u,i),t!==null&&(Jt(t,e,i),Zr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=cn(),u=Xa(i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Ka(e,u,i),t!==null&&(Jt(t,e,i),Zr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cn(),i=Xa(n);i.tag=2,t!=null&&(i.callback=t),t=Ka(e,i,n),t!==null&&(Jt(t,e,n),Zr(t,e,n))}};function Cp(e,t,n,i,u,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,p):t.prototype&&t.prototype.isPureReactComponent?!zr(n,i)||!zr(u,c):!0}function Np(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&ef.enqueueReplaceState(t,t.state,null)}function Vl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Tp(e){Is(e)}function jp(e){console.error(e)}function wp(e){Is(e)}function xu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Ap(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function tf(e,t,n){return n=Xa(n),n.tag=3,n.payload={element:null},n.callback=function(){xu(e,t)},n}function Rp(e){return e=Xa(e),e.tag=3,e}function Op(e,t,n,i){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){Ap(t,n,i)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Ap(t,n,i),typeof u!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function p1(e,t,n,i,u){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ji(t,n,u,!0),n=rn.current,n!==null){switch(n.tag){case 31:case 13:return _n===null?Mu():n.alternate===null&&ot===0&&(ot=3),n.flags&=-257,n.flags|=65536,n.lanes=u,i===su?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),jf(e,i,u)),!1;case 22:return n.flags|=65536,i===su?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),jf(e,i,u)),!1}throw Error(s(435,n.tag))}return jf(e,i,u),Mu(),!1}if(Ue)return t=rn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==xc&&(e=Error(s(422),{cause:i}),Lr(gn(e,n)))):(i!==xc&&(t=Error(s(423),{cause:i}),Lr(gn(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=gn(i,n),u=tf(e.stateNode,i,u),Oc(e,u),ot!==4&&(ot=2)),!1;var c=Error(s(520),{cause:i});if(c=gn(c,n),ns===null?ns=[c]:ns.push(c),ot!==4&&(ot=2),t===null)return!0;i=gn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=tf(n.stateNode,i,e),Oc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Wa===null||!Wa.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Rp(u),Op(u,e,n,i),Oc(n,u),!1}n=n.return}while(n!==null);return!1}var nf=Error(s(461)),gt=!1;function Ot(e,t,n,i){t.child=e===null?km(t,null,n,i):Ql(t,e.child,n,i)}function Mp(e,t,n,i,u){n=n.render;var c=t.ref;if("ref"in i){var p={};for(var g in i)g!=="ref"&&(p[g]=i[g])}else p=i;return Ll(t),i=Lc(e,t,n,p,c,u),g=Bc(),e!==null&&!gt?(qc(e,t,u),ma(e,t,u)):(Ue&&g&&gc(t),t.flags|=1,Ot(e,t,i,u),t.child)}function Dp(e,t,n,i,u){if(e===null){var c=n.type;return typeof c=="function"&&!pc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,zp(e,t,c,i,u)):(e=tu(n.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ff(e,u)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:zr,n(p,i)&&e.ref===t.ref)return ma(e,t,u)}return t.flags|=1,e=ua(c,i),e.ref=t.ref,e.return=t,t.child=e}function zp(e,t,n,i,u){if(e!==null){var c=e.memoizedProps;if(zr(c,i)&&e.ref===t.ref)if(gt=!1,t.pendingProps=i=c,ff(e,u))(e.flags&131072)!==0&&(gt=!0);else return t.lanes=e.lanes,ma(e,t,u)}return af(e,t,n,i,u)}function kp(e,t,n,i){var u=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return Up(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&iu(t,c!==null?c.cachePool:null),c!==null?Bm(t,c):Dc(),qm(t);else return i=t.lanes=536870912,Up(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(iu(t,c.cachePool),Bm(t,c),Ja(),t.memoizedState=null):(e!==null&&iu(t,null),Dc(),Ja());return Ot(e,t,u,n),t.child}function Jr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Up(e,t,n,i,u){var c=jc();return c=c===null?null:{parent:yt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&iu(t,null),Dc(),qm(t),e!==null&&ji(e,t,i,!0),t.childLanes=u,null}function Su(e,t){return t=Eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lp(e,t,n){return Ql(t,e.child,null,n),e=Su(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function y1(e,t,n){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(i.mode==="hidden")return e=Su(t,i),t.lanes=536870912,Jr(null,e);if(kc(t),(e=nt)?(e=Jy(e,Sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=xm(e),n.return=t,t.child=n,At=t,nt=null)):e=null,e===null)throw Va(t);return t.lanes=536870912,null}return Su(t,i)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(kc(t),u)if(t.flags&256)t.flags&=-257,t=Lp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(gt||ji(e,t,n,!1),u=(n&e.childLanes)!==0,gt||u){if(i=We,i!==null&&(p=jh(i,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,Dl(e,p),Jt(i,e,p),nf;Mu(),t=Lp(e,t,n)}else e=c.treeContext,nt=En(p.nextSibling),At=t,Ue=!0,Za=null,Sn=!1,e!==null&&Em(t,e),t=Su(t,i),t.flags|=4096;return t}return e=ua(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _u(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function af(e,t,n,i,u){return Ll(t),n=Lc(e,t,n,i,void 0,u),i=Bc(),e!==null&&!gt?(qc(e,t,u),ma(e,t,u)):(Ue&&i&&gc(t),t.flags|=1,Ot(e,t,n,u),t.child)}function Bp(e,t,n,i,u,c){return Ll(t),t.updateQueue=null,n=Qm(t,i,n,u),Hm(e),i=Bc(),e!==null&&!gt?(qc(e,t,c),ma(e,t,c)):(Ue&&i&&gc(t),t.flags|=1,Ot(e,t,n,c),t.child)}function qp(e,t,n,i,u){if(Ll(t),t.stateNode===null){var c=Ei,p=n.contextType;typeof p=="object"&&p!==null&&(c=Rt(p)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ef,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Ac(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?Rt(p):Ei,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Wc(t,n,p,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&ef.enqueueReplaceState(c,c.state,null),Gr(t,i,c,u),Vr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,_=Vl(n,g);c.props=_;var O=c.context,B=n.contextType;p=Ei,typeof B=="object"&&B!==null&&(p=Rt(B));var Z=n.getDerivedStateFromProps;B=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||O!==p)&&Np(t,c,i,p),Ya=!1;var D=t.memoizedState;c.state=D,Gr(t,i,c,u),Vr(),O=t.memoizedState,g||D!==O||Ya?(typeof Z=="function"&&(Wc(t,n,Z,i),O=t.memoizedState),(_=Ya||Cp(t,n,_,i,D,O,p))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=O),c.props=i,c.state=O,c.context=p,i=_):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Rc(e,t),p=t.memoizedProps,B=Vl(n,p),c.props=B,Z=t.pendingProps,D=c.context,O=n.contextType,_=Ei,typeof O=="object"&&O!==null&&(_=Rt(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Z||D!==_)&&Np(t,c,i,_),Ya=!1,D=t.memoizedState,c.state=D,Gr(t,i,c,u),Vr();var k=t.memoizedState;p!==Z||D!==k||Ya||e!==null&&e.dependencies!==null&&au(e.dependencies)?(typeof g=="function"&&(Wc(t,n,g,i),k=t.memoizedState),(B=Ya||Cp(t,n,B,i,D,k,_)||e!==null&&e.dependencies!==null&&au(e.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,k,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,k,_)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=k),c.props=i,c.state=k,c.context=_,i=B):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,_u(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Ql(t,e.child,null,u),t.child=Ql(t,null,n,u)):Ot(e,t,n,u),t.memoizedState=c.state,e=t.child):e=ma(e,t,u),e}function Hp(e,t,n,i){return kl(),t.flags|=256,Ot(e,t,n,i),t.child}var lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rf(e){return{baseLanes:e,cachePool:Am()}}function sf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=on),e}function Qp(e,t,n){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),p&&(u=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(u?Fa(t):Ja(),(e=nt)?(e=Jy(e,Sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=xm(e),n.return=t,t.child=n,At=t,nt=null)):e=null,e===null)throw Va(t);return Vf(e)?t.lanes=32:t.lanes=536870912,null}var g=i.children;return i=i.fallback,u?(Ja(),u=t.mode,g=Eu({mode:"hidden",children:g},u),i=zl(i,u,n,null),g.return=t,i.return=t,g.sibling=i,t.child=g,i=t.child,i.memoizedState=rf(n),i.childLanes=sf(e,p,n),t.memoizedState=lf,Jr(null,i)):(Fa(t),uf(t,g))}var _=e.memoizedState;if(_!==null&&(g=_.dehydrated,g!==null)){if(c)t.flags&256?(Fa(t),t.flags&=-257,t=of(e,t,n)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,t=null):(Ja(),g=i.fallback,u=t.mode,i=Eu({mode:"visible",children:i.children},u),g=zl(g,u,n,null),g.flags|=2,i.return=t,g.return=t,i.sibling=g,t.child=i,Ql(t,e.child,null,n),i=t.child,i.memoizedState=rf(n),i.childLanes=sf(e,p,n),t.memoizedState=lf,t=Jr(null,i));else if(Fa(t),Vf(g)){if(p=g.nextSibling&&g.nextSibling.dataset,p)var O=p.dgst;p=O,i=Error(s(419)),i.stack="",i.digest=p,Lr({value:i,source:null,stack:null}),t=of(e,t,n)}else if(gt||ji(e,t,n,!1),p=(n&e.childLanes)!==0,gt||p){if(p=We,p!==null&&(i=jh(p,n),i!==0&&i!==_.retryLane))throw _.retryLane=i,Dl(e,i),Jt(p,e,i),nf;Zf(g)||Mu(),t=of(e,t,n)}else Zf(g)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,nt=En(g.nextSibling),At=t,Ue=!0,Za=null,Sn=!1,e!==null&&Em(t,e),t=uf(t,i.children),t.flags|=4096);return t}return u?(Ja(),g=i.fallback,u=t.mode,_=e.child,O=_.sibling,i=ua(_,{mode:"hidden",children:i.children}),i.subtreeFlags=_.subtreeFlags&65011712,O!==null?g=ua(O,g):(g=zl(g,u,n,null),g.flags|=2),g.return=t,i.return=t,i.sibling=g,t.child=i,Jr(null,i),i=t.child,g=e.child.memoizedState,g===null?g=rf(n):(u=g.cachePool,u!==null?(_=yt._currentValue,u=u.parent!==_?{parent:_,pool:_}:u):u=Am(),g={baseLanes:g.baseLanes|n,cachePool:u}),i.memoizedState=g,i.childLanes=sf(e,p,n),t.memoizedState=lf,Jr(e.child,i)):(Fa(t),n=e.child,e=n.sibling,n=ua(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function uf(e,t){return t=Eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eu(e,t){return e=ln(22,e,null,t),e.lanes=0,e}function of(e,t,n){return Ql(t,e.child,null,n),e=uf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ec(e.return,t,n)}function cf(e,t,n,i,u,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:u,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=n,p.tailMode=u,p.treeForkCount=c)}function Vp(e,t,n){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var p=ht.current,g=(p&2)!==0;if(g?(p=p&1|2,t.flags|=128):p&=1,ee(ht,p),Ot(e,t,i,n),i=Ue?Ur:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zp(e,n,t);else if(e.tag===19)Zp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&fu(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),cf(t,!1,u,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&fu(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}cf(t,!0,n,null,c,i);break;case"together":cf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function ma(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ji(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ff(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&au(e)))}function v1(e,t,n){switch(t.tag){case 3:dt(t,t.stateNode.containerInfo),Ga(t,yt,e.memoizedState.cache),kl();break;case 27:case 5:Rn(t);break;case 4:dt(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,kc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Fa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Qp(e,t,n):(Fa(t),e=ma(e,t,n),e!==null?e.sibling:null);Fa(t);break;case 19:var u=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(ji(e,t,n,!1),i=(n&t.childLanes)!==0),u){if(i)return Vp(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(ht,ht.current),i)break;return null;case 22:return t.lanes=0,kp(e,t,n,t.pendingProps);case 24:Ga(t,yt,e.memoizedState.cache)}return ma(e,t,n)}function Gp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!ff(e,n)&&(t.flags&128)===0)return gt=!1,v1(e,t,n);gt=(e.flags&131072)!==0}else gt=!1,Ue&&(t.flags&1048576)!==0&&_m(t,Ur,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ql(t.elementType),t.type=e,typeof e=="function")pc(e)?(i=Vl(e,i),t.tag=1,t=qp(null,t,e,i,n)):(t.tag=0,t=af(null,t,e,i,n));else{if(e!=null){var u=e.$$typeof;if(u===V){t.tag=11,t=Mp(null,t,e,i,n);break e}else if(u===$){t.tag=14,t=Dp(null,t,e,i,n);break e}}throw t=it(e)||e,Error(s(306,t,""))}}return t;case 0:return af(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,u=Vl(i,t.pendingProps),qp(e,t,i,u,n);case 3:e:{if(dt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,Rc(e,t),Gr(t,i,null,n);var p=t.memoizedState;if(i=p.cache,Ga(t,yt,i),i!==c.cache&&Cc(t,[yt],n,!0),Vr(),i=p.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Hp(e,t,i,n);break e}else if(i!==u){u=gn(Error(s(424)),t),Lr(u),t=Hp(e,t,i,n);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=En(e.firstChild),At=t,Ue=!0,Za=null,Sn=!0,n=km(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(kl(),i===u){t=ma(e,t,n);break e}Ot(e,t,i,n)}t=t.child}return t;case 26:return _u(e,t),e===null?(n=tv(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ue||(n=t.type,e=t.pendingProps,i=qu(me.current).createElement(n),i[wt]=t,i[Vt]=e,Mt(i,n,e),Ct(i),t.stateNode=i):t.memoizedState=tv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Rn(t),e===null&&Ue&&(i=t.stateNode=Py(t.type,t.pendingProps,me.current),At=t,Sn=!0,u=nt,al(t.type)?(Gf=u,nt=En(i.firstChild)):nt=u),Ot(e,t,t.pendingProps.children,n),_u(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((u=i=nt)&&(i=K1(i,t.type,t.pendingProps,Sn),i!==null?(t.stateNode=i,At=t,nt=En(i.firstChild),Sn=!1,u=!0):u=!1),u||Va(t)),Rn(t),u=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,i=c.children,qf(u,c)?i=null:p!==null&&qf(u,p)&&(t.flags|=32),t.memoizedState!==null&&(u=Lc(e,t,u1,null,null,n),cs._currentValue=u),_u(e,t),Ot(e,t,i,n),t.child;case 6:return e===null&&Ue&&((e=n=nt)&&(n=F1(n,t.pendingProps,Sn),n!==null?(t.stateNode=n,At=t,nt=null,e=!0):e=!1),e||Va(t)),null;case 13:return Qp(e,t,n);case 4:return dt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ql(t,null,i,n):Ot(e,t,i,n),t.child;case 11:return Mp(e,t,t.type,t.pendingProps,n);case 7:return Ot(e,t,t.pendingProps,n),t.child;case 8:return Ot(e,t,t.pendingProps.children,n),t.child;case 12:return Ot(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Ga(t,t.type,i.value),Ot(e,t,i.children,n),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Ll(t),u=Rt(u),i=i(u),t.flags|=1,Ot(e,t,i,n),t.child;case 14:return Dp(e,t,t.type,t.pendingProps,n);case 15:return zp(e,t,t.type,t.pendingProps,n);case 19:return Vp(e,t,n);case 31:return y1(e,t,n);case 22:return kp(e,t,n,t.pendingProps);case 24:return Ll(t),i=Rt(yt),e===null?(u=jc(),u===null&&(u=We,c=Nc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:i,cache:u},Ac(t),Ga(t,yt,u)):((e.lanes&n)!==0&&(Rc(e,t),Gr(t,null,null,n),Vr()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ga(t,yt,i)):(i=c.cache,Ga(t,yt,i),i!==u.cache&&Cc(t,[yt],n,!0))),Ot(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function pa(e){e.flags|=4}function df(e,t,n,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(vy())e.flags|=8192;else throw Hl=su,wc}else e.flags&=-16777217}function Yp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rv(t))if(vy())e.flags|=8192;else throw Hl=su,wc}function Cu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ch():536870912,e.lanes|=t,qi|=t)}function $r(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function g1(e,t,n){var i=t.pendingProps;switch(bc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fa(yt),Se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ti(t)?pa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Sc())),at(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(pa(t),c!==null?(at(t),Yp(t,c)):(at(t),df(t,u,null,i,n))):c?c!==e.memoizedState?(pa(t),at(t),Yp(t,c)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&pa(t),at(t),df(t,u,e,i,n)),null;case 27:if(mn(t),n=me.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pa(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return at(t),null}e=ae.current,Ti(t)?Cm(t):(e=Py(u,i,n),t.stateNode=e,pa(t))}return at(t),null;case 5:if(mn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pa(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return at(t),null}if(c=ae.current,Ti(t))Cm(t);else{var p=qu(me.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?p.createElement(u,{is:i.is}):p.createElement(u)}}c[wt]=t,c[Vt]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(Mt(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&pa(t)}}return at(t),df(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&pa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=me.current,Ti(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,u=At,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Qy(e.nodeValue,n)),e||Va(t,!0)}else e=qu(e).createTextNode(i),e[wt]=t,t.stateNode=e}return at(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ti(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[wt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else n=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return at(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ti(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[wt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),u=!1}else u=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Cu(t,t.updateQueue),at(t),null);case 4:return Se(),e===null&&zf(t.stateNode.containerInfo),at(t),null;case 10:return fa(t.type),at(t),null;case 19:if(Q(ht),i=t.memoizedState,i===null)return at(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)$r(i,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fu(e),c!==null){for(t.flags|=128,$r(i,!1),e=c.updateQueue,t.updateQueue=e,Cu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bm(n,e),n=n.sibling;return ee(ht,ht.current&1|2),Ue&&oa(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&en()>Au&&(t.flags|=128,u=!0,$r(i,!1),t.lanes=4194304)}else{if(!u)if(e=fu(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Cu(t,e),$r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ue)return at(t),null}else 2*en()-i.renderingStartTime>Au&&n!==536870912&&(t.flags|=128,u=!0,$r(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=en(),e.sibling=null,n=ht.current,ee(ht,u?n&1|2:n&1),Ue&&oa(t,i.treeForkCount),e):(at(t),null);case 22:case 23:return sn(t),zc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),n=t.updateQueue,n!==null&&Cu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Q(Bl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(yt),at(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function b1(e,t){switch(bc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(yt),Se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mn(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error(s(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(ht),null;case 4:return Se(),null;case 10:return fa(t.type),null;case 22:case 23:return sn(t),zc(),e!==null&&Q(Bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(yt),null;case 25:return null;default:return null}}function Xp(e,t){switch(bc(t),t.tag){case 3:fa(yt),Se();break;case 26:case 27:case 5:mn(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:Q(ht);break;case 10:fa(t.type);break;case 22:case 23:sn(t),zc(),e!==null&&Q(Bl);break;case 24:fa(yt)}}function Ir(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&e)===e){i=void 0;var c=n.create,p=n.inst;i=c(),p.destroy=i}n=n.next}while(n!==u)}}catch(g){Je(t,t.return,g)}}function $a(e,t,n){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var p=i.inst,g=p.destroy;if(g!==void 0){p.destroy=void 0,u=t;var _=n,O=g;try{O()}catch(B){Je(u,_,B)}}}i=i.next}while(i!==c)}}catch(B){Je(t,t.return,B)}}function Kp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Lm(t,n)}catch(i){Je(e,e.return,i)}}}function Fp(e,t,n){n.props=Vl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Je(e,t,i)}}function Pr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(u){Je(e,t,u)}}function Xn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(u){Je(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Je(e,t,u)}else n.current=null}function Jp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(u){Je(e,e.return,u)}}function hf(e,t,n){try{var i=e.stateNode;Q1(i,e.type,n,t),i[Vt]=t}catch(u){Je(e,e.return,u)}}function $p(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&al(e.type)||e.tag===4}function mf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$p(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&&al(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 pf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ra));else if(i!==4&&(i===27&&al(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(pf(e,t,n),e=e.sibling;e!==null;)pf(e,t,n),e=e.sibling}function Nu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&al(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}function Ip(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Mt(t,i,n),t[wt]=e,t[Vt]=n}catch(c){Je(e,e.return,c)}}var ya=!1,bt=!1,yf=!1,Pp=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function x1(e,t){if(e=e.containerInfo,Lf=Xu,e=cm(e),uc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var p=0,g=-1,_=-1,O=0,B=0,Z=e,D=null;t:for(;;){for(var k;Z!==n||u!==0&&Z.nodeType!==3||(g=p+u),Z!==c||i!==0&&Z.nodeType!==3||(_=p+i),Z.nodeType===3&&(p+=Z.nodeValue.length),(k=Z.firstChild)!==null;)D=Z,Z=k;for(;;){if(Z===e)break t;if(D===n&&++O===u&&(g=p),D===c&&++B===i&&(_=p),(k=Z.nextSibling)!==null)break;Z=D,D=Z.parentNode}Z=k}n=g===-1||_===-1?null:{start:g,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bf={focusedElem:e,selectionRange:n},Xu=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,u=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var le=Vl(n.type,u);e=i.getSnapshotBeforeUpdate(le,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Je(n,n.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Qf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qf(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function Wp(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ga(e,n),i&4&&Ir(5,n);break;case 1:if(ga(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Je(n,n.return,p)}else{var u=Vl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Je(n,n.return,p)}}i&64&&Kp(n),i&512&&Pr(n,n.return);break;case 3:if(ga(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Lm(e,t)}catch(p){Je(n,n.return,p)}}break;case 27:t===null&&i&4&&Ip(n);case 26:case 5:ga(e,n),t===null&&i&4&&Jp(n),i&512&&Pr(n,n.return);break;case 12:ga(e,n);break;case 31:ga(e,n),i&4&&ny(e,n);break;case 13:ga(e,n),i&4&&ay(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=A1.bind(null,n),J1(e,n))));break;case 22:if(i=n.memoizedState!==null||ya,!i){t=t!==null&&t.memoizedState!==null||bt,u=ya;var c=bt;ya=i,(bt=t)&&!c?ba(e,n,(n.subtreeFlags&8772)!==0):ga(e,n),ya=u,bt=c}break;case 30:break;default:ga(e,n)}}function ey(e){var t=e.alternate;t!==null&&(e.alternate=null,ey(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yo(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 rt=null,Yt=!1;function va(e,t,n){for(n=n.child;n!==null;)ty(e,t,n),n=n.sibling}function ty(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(_r,n)}catch{}switch(n.tag){case 26:bt||Xn(n,t),va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:bt||Xn(n,t);var i=rt,u=Yt;al(n.type)&&(rt=n.stateNode,Yt=!1),va(e,t,n),ss(n.stateNode),rt=i,Yt=u;break;case 5:bt||Xn(n,t);case 6:if(i=rt,u=Yt,rt=null,va(e,t,n),rt=i,Yt=u,rt!==null)if(Yt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(n.stateNode)}catch(c){Je(n,t,c)}else try{rt.removeChild(n.stateNode)}catch(c){Je(n,t,c)}break;case 18:rt!==null&&(Yt?(e=rt,Ky(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ki(e)):Ky(rt,n.stateNode));break;case 4:i=rt,u=Yt,rt=n.stateNode.containerInfo,Yt=!0,va(e,t,n),rt=i,Yt=u;break;case 0:case 11:case 14:case 15:$a(2,n,t),bt||$a(4,n,t),va(e,t,n);break;case 1:bt||(Xn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Fp(n,t,i)),va(e,t,n);break;case 21:va(e,t,n);break;case 22:bt=(i=bt)||n.memoizedState!==null,va(e,t,n),bt=i;break;default:va(e,t,n)}}function ny(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ki(e)}catch(n){Je(t,t.return,n)}}}function ay(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ki(e)}catch(n){Je(t,t.return,n)}}function S1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Pp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Pp),t;default:throw Error(s(435,e.tag))}}function Tu(e,t){var n=S1(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var u=R1.bind(null,e,i);i.then(u,u)}})}function Xt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var u=n[i],c=e,p=t,g=p;e:for(;g!==null;){switch(g.tag){case 27:if(al(g.type)){rt=g.stateNode,Yt=!1;break e}break;case 5:rt=g.stateNode,Yt=!1;break e;case 3:case 4:rt=g.stateNode.containerInfo,Yt=!0;break e}g=g.return}if(rt===null)throw Error(s(160));ty(c,p,u),rt=null,Yt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ly(t,e),t=t.sibling}var Dn=null;function ly(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),Kt(e),i&4&&($a(3,e,e.return),Ir(3,e),$a(5,e,e.return));break;case 1:Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),i&64&&ya&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var u=Dn;if(Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Nr]||c[wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),Mt(c,i,n),c[wt]=e,Ct(c),i=c;break e;case"link":var p=lv("link","href",u).get(i+(n.href||""));if(p){for(var g=0;g<p.length;g++)if(c=p[g],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(g,1);break t}}c=u.createElement(i),Mt(c,i,n),u.head.appendChild(c);break;case"meta":if(p=lv("meta","content",u).get(i+(n.content||""))){for(g=0;g<p.length;g++)if(c=p[g],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(g,1);break t}}c=u.createElement(i),Mt(c,i,n),u.head.appendChild(c);break;default:throw Error(s(468,i))}c[wt]=e,Ct(c),i=c}e.stateNode=i}else iv(u,e.type,e.stateNode);else e.stateNode=av(u,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?iv(u,e.type,e.stateNode):av(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&hf(e,e.memoizedProps,n.memoizedProps)}break;case 27:Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),n!==null&&i&4&&hf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),e.flags&32){u=e.stateNode;try{yi(u,"")}catch(le){Je(e,e.return,le)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,hf(e,u,n!==null?n.memoizedProps:u)),i&1024&&(yf=!0);break;case 6:if(Xt(t,e),Kt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(le){Je(e,e.return,le)}}break;case 3:if(Zu=null,u=Dn,Dn=Hu(t.containerInfo),Xt(t,e),Dn=u,Kt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ki(t.containerInfo)}catch(le){Je(e,e.return,le)}yf&&(yf=!1,iy(e));break;case 4:i=Dn,Dn=Hu(e.stateNode.containerInfo),Xt(t,e),Kt(e),Dn=i;break;case 12:Xt(t,e),Kt(e);break;case 31:Xt(t,e),Kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Tu(e,i)));break;case 13:Xt(t,e),Kt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(wu=en()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Tu(e,i)));break;case 22:u=e.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,O=ya,B=bt;if(ya=O||u,bt=B||_,Xt(t,e),bt=B,ya=O,Kt(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||_||ya||bt||Gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){_=n=t;try{if(c=_.stateNode,u)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{g=_.stateNode;var Z=_.memoizedProps.style,D=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(le){Je(_,_.return,le)}}}else if(t.tag===6){if(n===null){_=t;try{_.stateNode.nodeValue=u?"":_.memoizedProps}catch(le){Je(_,_.return,le)}}}else if(t.tag===18){if(n===null){_=t;try{var k=_.stateNode;u?Fy(k,!0):Fy(_.stateNode,!1)}catch(le){Je(_,_.return,le)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Tu(e,n))));break;case 19:Xt(t,e),Kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Tu(e,i)));break;case 30:break;case 21:break;default:Xt(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if($p(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,c=mf(e);Nu(e,c,u);break;case 5:var p=n.stateNode;n.flags&32&&(yi(p,""),n.flags&=-33);var g=mf(e);Nu(e,g,p);break;case 3:case 4:var _=n.stateNode.containerInfo,O=mf(e);pf(e,O,_);break;default:throw Error(s(161))}}catch(B){Je(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;iy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ga(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wp(e,t.alternate,t),t=t.sibling}function Gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$a(4,t,t.return),Gl(t);break;case 1:Xn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Fp(t,t.return,n),Gl(t);break;case 27:ss(t.stateNode);case 26:case 5:Xn(t,t.return),Gl(t);break;case 22:t.memoizedState===null&&Gl(t);break;case 30:Gl(t);break;default:Gl(t)}e=e.sibling}}function ba(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:ba(u,c,n),Ir(4,c);break;case 1:if(ba(u,c,n),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(O){Je(i,i.return,O)}if(i=c,u=i.updateQueue,u!==null){var g=i.stateNode;try{var _=u.shared.hiddenCallbacks;if(_!==null)for(u.shared.hiddenCallbacks=null,u=0;u<_.length;u++)Um(_[u],g)}catch(O){Je(i,i.return,O)}}n&&p&64&&Kp(c),Pr(c,c.return);break;case 27:Ip(c);case 26:case 5:ba(u,c,n),n&&i===null&&p&4&&Jp(c),Pr(c,c.return);break;case 12:ba(u,c,n);break;case 31:ba(u,c,n),n&&p&4&&ny(u,c);break;case 13:ba(u,c,n),n&&p&4&&ay(u,c);break;case 22:c.memoizedState===null&&ba(u,c,n),Pr(c,c.return);break;case 30:break;default:ba(u,c,n)}t=t.sibling}}function vf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Br(n))}function gf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Br(e))}function zn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ry(e,t,n,i),t=t.sibling}function ry(e,t,n,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:zn(e,t,n,i),u&2048&&Ir(9,t);break;case 1:zn(e,t,n,i);break;case 3:zn(e,t,n,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Br(e)));break;case 12:if(u&2048){zn(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,g=c.onPostCommit;typeof g=="function"&&g(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Je(t,t.return,_)}}else zn(e,t,n,i);break;case 31:zn(e,t,n,i);break;case 13:zn(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?zn(e,t,n,i):Wr(e,t):c._visibility&2?zn(e,t,n,i):(c._visibility|=2,Ui(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&vf(p,t);break;case 24:zn(e,t,n,i),u&2048&&gf(t.alternate,t);break;default:zn(e,t,n,i)}}function Ui(e,t,n,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,g=n,_=i,O=p.flags;switch(p.tag){case 0:case 11:case 15:Ui(c,p,g,_,u),Ir(8,p);break;case 23:break;case 22:var B=p.stateNode;p.memoizedState!==null?B._visibility&2?Ui(c,p,g,_,u):Wr(c,p):(B._visibility|=2,Ui(c,p,g,_,u)),u&&O&2048&&vf(p.alternate,p);break;case 24:Ui(c,p,g,_,u),u&&O&2048&&gf(p.alternate,p);break;default:Ui(c,p,g,_,u)}t=t.sibling}}function Wr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,u=i.flags;switch(i.tag){case 22:Wr(n,i),u&2048&&vf(i.alternate,i);break;case 24:Wr(n,i),u&2048&&gf(i.alternate,i);break;default:Wr(n,i)}t=t.sibling}}var es=8192;function Li(e,t,n){if(e.subtreeFlags&es)for(e=e.child;e!==null;)sy(e,t,n),e=e.sibling}function sy(e,t,n){switch(e.tag){case 26:Li(e,t,n),e.flags&es&&e.memoizedState!==null&&sS(n,Dn,e.memoizedState,e.memoizedProps);break;case 5:Li(e,t,n);break;case 3:case 4:var i=Dn;Dn=Hu(e.stateNode.containerInfo),Li(e,t,n),Dn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=es,es=16777216,Li(e,t,n),es=i):Li(e,t,n));break;default:Li(e,t,n)}}function uy(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 ts(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Nt=i,cy(i,e)}uy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oy(e),e=e.sibling}function oy(e){switch(e.tag){case 0:case 11:case 15:ts(e),e.flags&2048&&$a(9,e,e.return);break;case 3:ts(e);break;case 12:ts(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ju(e)):ts(e);break;default:ts(e)}}function ju(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Nt=i,cy(i,e)}uy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$a(8,t,t.return),ju(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ju(t));break;default:ju(t)}e=e.sibling}}function cy(e,t){for(;Nt!==null;){var n=Nt;switch(n.tag){case 0:case 11:case 15:$a(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Br(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Nt=i;else e:for(n=e;Nt!==null;){i=Nt;var u=i.sibling,c=i.return;if(ey(i),i===n){Nt=null;break e}if(u!==null){u.return=c,Nt=u;break e}Nt=c}}}var _1={getCacheForType:function(e){var t=Rt(yt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Rt(yt).controller.signal}},E1=typeof WeakMap=="function"?WeakMap:Map,Xe=0,We=null,Oe=null,ze=0,Fe=0,un=null,Ia=!1,Bi=!1,bf=!1,xa=0,ot=0,Pa=0,Yl=0,xf=0,on=0,qi=0,ns=null,Ft=null,Sf=!1,wu=0,fy=0,Au=1/0,Ru=null,Wa=null,St=0,el=null,Hi=null,Sa=0,_f=0,Ef=null,dy=null,as=0,Cf=null;function cn(){return(Xe&2)!==0&&ze!==0?ze&-ze:U.T!==null?Rf():wh()}function hy(){if(on===0)if((ze&536870912)===0||Ue){var e=Bs;Bs<<=1,(Bs&3932160)===0&&(Bs=262144),on=e}else on=536870912;return e=rn.current,e!==null&&(e.flags|=32),on}function Jt(e,t,n){(e===We&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Qi(e,0),tl(e,ze,on,!1)),Cr(e,n),((Xe&2)===0||e!==We)&&(e===We&&((Xe&2)===0&&(Yl|=n),ot===4&&tl(e,ze,on,!1)),Kn(e))}function my(e,t,n){if((Xe&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Er(e,t),u=i?T1(e,t):Tf(e,t,!0),c=i;do{if(u===0){Bi&&!i&&tl(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!C1(n)){u=Tf(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var g=e;u=ns;var _=g.current.memoizedState.isDehydrated;if(_&&(Qi(g,p).flags|=256),p=Tf(g,p,!1),p!==2){if(bf&&!_){g.errorRecoveryDisabledLanes|=c,Yl|=c,u=4;break e}c=Ft,Ft=u,c!==null&&(Ft===null?Ft=c:Ft.push.apply(Ft,c))}u=p}if(c=!1,u!==2)continue}}if(u===1){Qi(e,0),tl(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:tl(i,t,on,!Ia);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=wu+300-en(),10<u)){if(tl(i,t,on,!Ia),Hs(i,0,!0)!==0)break e;Sa=t,i.timeoutHandle=Yy(py.bind(null,i,n,Ft,Ru,Sf,t,on,Yl,qi,Ia,c,"Throttled",-0,0),u);break e}py(i,n,Ft,Ru,Sf,t,on,Yl,qi,Ia,c,null,-0,0)}}break}while(!0);Kn(e)}function py(e,t,n,i,u,c,p,g,_,O,B,Z,D,k){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ra},sy(t,c,Z);var le=(c&62914560)===c?wu-en():(c&4194048)===c?fy-en():0;if(le=uS(Z,le),le!==null){Sa=c,e.cancelPendingCommit=le(Ey.bind(null,e,t,c,n,i,u,p,g,_,B,Z,null,D,k)),tl(e,c,p,!O);return}}Ey(e,t,c,n,i,u,p,g,_)}function C1(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var u=n[i],c=u.getSnapshot;u=u.value;try{if(!an(c(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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,n,i){t&=~xf,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-nn(u),p=1<<c;i[c]=-1,u&=~p}n!==0&&Nh(e,n,t)}function Ou(){return(Xe&6)===0?(ls(0),!1):!0}function Nf(){if(Oe!==null){if(Fe===0)var e=Oe.return;else e=Oe,ca=Ul=null,Hc(e),Oi=null,Hr=0,e=Oe;for(;e!==null;)Xp(e.alternate,e),e=e.return;Oe=null}}function Qi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,G1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sa=0,Nf(),We=e,Oe=n=ua(e.current,null),ze=t,Fe=0,un=null,Ia=!1,Bi=Er(e,t),bf=!1,qi=on=xf=Yl=Pa=ot=0,Ft=ns=null,Sf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-nn(i),c=1<<u;t|=e[u],i&=~c}return xa=t,Ps(),n}function yy(e,t){Ce=null,U.H=Fr,t===Ri||t===ru?(t=Mm(),Fe=3):t===wc?(t=Mm(),Fe=4):Fe=t===nf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,un=t,Oe===null&&(ot=1,xu(e,gn(t,e.current)))}function vy(){var e=rn.current;return e===null?!0:(ze&4194048)===ze?_n===null:(ze&62914560)===ze||(ze&536870912)!==0?e===_n:!1}function gy(){var e=U.H;return U.H=Fr,e===null?Fr:e}function by(){var e=U.A;return U.A=_1,e}function Mu(){ot=4,Ia||(ze&4194048)!==ze&&rn.current!==null||(Bi=!0),(Pa&134217727)===0&&(Yl&134217727)===0||We===null||tl(We,ze,on,!1)}function Tf(e,t,n){var i=Xe;Xe|=2;var u=gy(),c=by();(We!==e||ze!==t)&&(Ru=null,Qi(e,t)),t=!1;var p=ot;e:do try{if(Fe!==0&&Oe!==null){var g=Oe,_=un;switch(Fe){case 8:Nf(),p=6;break e;case 3:case 2:case 9:case 6:rn.current===null&&(t=!0);var O=Fe;if(Fe=0,un=null,Zi(e,g,_,O),n&&Bi){p=0;break e}break;default:O=Fe,Fe=0,un=null,Zi(e,g,_,O)}}N1(),p=ot;break}catch(B){yy(e,B)}while(!0);return t&&e.shellSuspendCounter++,ca=Ul=null,Xe=i,U.H=u,U.A=c,Oe===null&&(We=null,ze=0,Ps()),p}function N1(){for(;Oe!==null;)xy(Oe)}function T1(e,t){var n=Xe;Xe|=2;var i=gy(),u=by();We!==e||ze!==t?(Ru=null,Au=en()+500,Qi(e,t)):Bi=Er(e,t);e:do try{if(Fe!==0&&Oe!==null){t=Oe;var c=un;t:switch(Fe){case 1:Fe=0,un=null,Zi(e,t,c,1);break;case 2:case 9:if(Rm(c)){Fe=0,un=null,Sy(t);break}t=function(){Fe!==2&&Fe!==9||We!==e||(Fe=7),Kn(e)},c.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Rm(c)?(Fe=0,un=null,Sy(t)):(Fe=0,un=null,Zi(e,t,c,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var g=Oe;if(p?rv(p):g.stateNode.complete){Fe=0,un=null;var _=g.sibling;if(_!==null)Oe=_;else{var O=g.return;O!==null?(Oe=O,Du(O)):Oe=null}break t}}Fe=0,un=null,Zi(e,t,c,5);break;case 6:Fe=0,un=null,Zi(e,t,c,6);break;case 8:Nf(),ot=6;break e;default:throw Error(s(462))}}j1();break}catch(B){yy(e,B)}while(!0);return ca=Ul=null,U.H=i,U.A=u,Xe=n,Oe!==null?0:(We=null,ze=0,Ps(),ot)}function j1(){for(;Oe!==null&&!$0();)xy(Oe)}function xy(e){var t=Gp(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?Du(e):Oe=t}function Sy(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bp(n,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Bp(n,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Hc(t);default:Xp(n,t),t=Oe=bm(t,xa),t=Gp(n,t,xa)}e.memoizedProps=e.pendingProps,t===null?Du(e):Oe=t}function Zi(e,t,n,i){ca=Ul=null,Hc(t),Oi=null,Hr=0;var u=t.return;try{if(p1(e,u,t,n,ze)){ot=1,xu(e,gn(n,e.current)),Oe=null;return}}catch(c){if(u!==null)throw Oe=u,c;ot=1,xu(e,gn(n,e.current)),Oe=null;return}t.flags&32768?(Ue||i===1?e=!0:Bi||(ze&536870912)!==0?e=!1:(Ia=e=!0,(i===2||i===9||i===3||i===6)&&(i=rn.current,i!==null&&i.tag===13&&(i.flags|=16384))),_y(t,e)):Du(t)}function Du(e){var t=e;do{if((t.flags&32768)!==0){_y(t,Ia);return}e=t.return;var n=g1(t.alternate,t,xa);if(n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);ot===0&&(ot=5)}function _y(e,t){do{var n=b1(e.alternate,e);if(n!==null){n.flags&=32767,Oe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=n}while(e!==null);ot=6,Oe=null}function Ey(e,t,n,i,u,c,p,g,_){e.cancelPendingCommit=null;do zu();while(St!==0);if((Xe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=hc,rx(e,n,c,p,g,_),e===We&&(Oe=We=null,ze=0),Hi=t,el=e,Sa=n,_f=c,Ef=u,dy=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,O1(Us,function(){return wy(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null,u=F.p,F.p=2,p=Xe,Xe|=4;try{x1(e,t,n)}finally{Xe=p,F.p=u,U.T=i}}St=1,Cy(),Ny(),Ty()}}function Cy(){if(St===1){St=0;var e=el,t=Hi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var i=F.p;F.p=2;var u=Xe;Xe|=4;try{ly(t,e);var c=Bf,p=cm(e.containerInfo),g=c.focusedElem,_=c.selectionRange;if(p!==g&&g&&g.ownerDocument&&om(g.ownerDocument.documentElement,g)){if(_!==null&&uc(g)){var O=_.start,B=_.end;if(B===void 0&&(B=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(B,g.value.length);else{var Z=g.ownerDocument||document,D=Z&&Z.defaultView||window;if(D.getSelection){var k=D.getSelection(),le=g.textContent.length,ve=Math.min(_.start,le),Pe=_.end===void 0?ve:Math.min(_.end,le);!k.extend&&ve>Pe&&(p=Pe,Pe=ve,ve=p);var w=um(g,ve),N=um(g,Pe);if(w&&N&&(k.rangeCount!==1||k.anchorNode!==w.node||k.anchorOffset!==w.offset||k.focusNode!==N.node||k.focusOffset!==N.offset)){var R=Z.createRange();R.setStart(w.node,w.offset),k.removeAllRanges(),ve>Pe?(k.addRange(R),k.extend(N.node,N.offset)):(R.setEnd(N.node,N.offset),k.addRange(R))}}}}for(Z=[],k=g;k=k.parentNode;)k.nodeType===1&&Z.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Z.length;g++){var q=Z[g];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Xu=!!Lf,Bf=Lf=null}finally{Xe=u,F.p=i,U.T=n}}e.current=t,St=2}}function Ny(){if(St===2){St=0;var e=el,t=Hi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var i=F.p;F.p=2;var u=Xe;Xe|=4;try{Wp(e,t.alternate,t)}finally{Xe=u,F.p=i,U.T=n}}St=3}}function Ty(){if(St===4||St===3){St=0,I0();var e=el,t=Hi,n=Sa,i=dy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?St=5:(St=0,Hi=el=null,jy(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Wa=null),Vo(n),t=t.stateNode,tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(_r,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=U.T,u=F.p,F.p=2,U.T=null;try{for(var c=e.onRecoverableError,p=0;p<i.length;p++){var g=i[p];c(g.value,{componentStack:g.stack})}}finally{U.T=t,F.p=u}}(Sa&3)!==0&&zu(),Kn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Cf?as++:(as=0,Cf=e):as=0,ls(0)}}function jy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Br(t)))}function zu(){return Cy(),Ny(),Ty(),wy()}function wy(){if(St!==5)return!1;var e=el,t=_f;_f=0;var n=Vo(Sa),i=U.T,u=F.p;try{F.p=32>n?32:n,U.T=null,n=Ef,Ef=null;var c=el,p=Sa;if(St=0,Hi=el=null,Sa=0,(Xe&6)!==0)throw Error(s(331));var g=Xe;if(Xe|=4,oy(c.current),ry(c,c.current,p,n),Xe=g,ls(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(_r,c)}catch{}return!0}finally{F.p=u,U.T=i,jy(e,t)}}function Ay(e,t,n){t=gn(n,t),t=tf(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(Cr(e,2),Kn(e))}function Je(e,t,n){if(e.tag===3)Ay(e,e,n);else for(;t!==null;){if(t.tag===3){Ay(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Wa===null||!Wa.has(i))){e=gn(n,e),n=Rp(2),i=Ka(t,n,2),i!==null&&(Op(n,i,t,e),Cr(i,2),Kn(i));break}}t=t.return}}function jf(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new E1;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(n)||(bf=!0,u.add(n),e=w1.bind(null,e,t,n),t.then(e,e))}function w1(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,We===e&&(ze&n)===n&&(ot===4||ot===3&&(ze&62914560)===ze&&300>en()-wu?(Xe&2)===0&&Qi(e,0):xf|=n,qi===ze&&(qi=0)),Kn(e)}function Ry(e,t){t===0&&(t=Ch()),e=Dl(e,t),e!==null&&(Cr(e,t),Kn(e))}function A1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function R1(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Ry(e,n)}function O1(e,t){return qo(e,t)}var ku=null,Vi=null,wf=!1,Uu=!1,Af=!1,nl=0;function Kn(e){e!==Vi&&e.next===null&&(Vi===null?ku=Vi=e:Vi=Vi.next=e),Uu=!0,wf||(wf=!0,D1())}function ls(e,t){if(!Af&&Uu){Af=!0;do for(var n=!1,i=ku;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var p=i.suspendedLanes,g=i.pingedLanes;c=(1<<31-nn(42|e)+1)-1,c&=u&~(p&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,zy(i,c))}else c=ze,c=Hs(i,i===We?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Er(i,c)||(n=!0,zy(i,c));i=i.next}while(n);Af=!1}}function M1(){Oy()}function Oy(){Uu=wf=!1;var e=0;nl!==0&&V1()&&(e=nl);for(var t=en(),n=null,i=ku;i!==null;){var u=i.next,c=My(i,t);c===0?(i.next=null,n===null?ku=u:n.next=u,u===null&&(Vi=n)):(n=i,(e!==0||(c&3)!==0)&&(Uu=!0)),i=u}St!==0&&St!==5||ls(e),nl!==0&&(nl=0)}function My(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-nn(c),g=1<<p,_=u[p];_===-1?((g&n)===0||(g&i)!==0)&&(u[p]=ix(g,t)):_<=t&&(e.expiredLanes|=g),c&=~g}if(t=We,n=ze,n=Hs(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ho(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Er(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Ho(i),Vo(n)){case 2:case 8:n=_h;break;case 32:n=Us;break;case 268435456:n=Eh;break;default:n=Us}return i=Dy.bind(null,e),n=qo(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Ho(i),e.callbackPriority=2,e.callbackNode=null,2}function Dy(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zu()&&e.callbackNode!==n)return null;var i=ze;return i=Hs(e,e===We?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(my(e,i,t),My(e,en()),e.callbackNode!=null&&e.callbackNode===n?Dy.bind(null,e):null)}function zy(e,t){if(zu())return null;my(e,t,!0)}function D1(){Y1(function(){(Xe&6)!==0?qo(Sh,M1):Oy()})}function Rf(){if(nl===0){var e=wi;e===0&&(e=Ls,Ls<<=1,(Ls&261888)===0&&(Ls=256)),nl=e}return nl}function ky(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gs(""+e)}function Uy(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function z1(e,t,n,i,u){if(t==="submit"&&n&&n.stateNode===u){var c=ky((u[Vt]||null).action),p=i.submitter;p&&(t=(t=p[Vt]||null)?ky(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var g=new Fs("action","action",null,i,u);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(nl!==0){var _=p?Uy(u,p):new FormData(u);Jc(n,{pending:!0,data:_,method:u.method,action:c},null,_)}}else typeof c=="function"&&(g.preventDefault(),_=p?Uy(u,p):new FormData(u),Jc(n,{pending:!0,data:_,method:u.method,action:c},c,_))},currentTarget:u}]})}}for(var Of=0;Of<dc.length;Of++){var Mf=dc[Of],k1=Mf.toLowerCase(),U1=Mf[0].toUpperCase()+Mf.slice(1);Mn(k1,"on"+U1)}Mn(hm,"onAnimationEnd"),Mn(mm,"onAnimationIteration"),Mn(pm,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(Px,"onTransitionRun"),Mn(Wx,"onTransitionStart"),Mn(e1,"onTransitionCancel"),Mn(ym,"onTransitionEnd"),mi("onMouseEnter",["mouseout","mouseover"]),mi("onMouseLeave",["mouseout","mouseover"]),mi("onPointerEnter",["pointerout","pointerover"]),mi("onPointerLeave",["pointerout","pointerover"]),Al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Al("onBeforeInput",["compositionend","keypress","textInput","paste"]),Al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var is="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(" "),L1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(is));function Ly(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var p=i.length-1;0<=p;p--){var g=i[p],_=g.instance,O=g.currentTarget;if(g=g.listener,_!==c&&u.isPropagationStopped())break e;c=g,u.currentTarget=O;try{c(u)}catch(B){Is(B)}u.currentTarget=null,c=_}else for(p=0;p<i.length;p++){if(g=i[p],_=g.instance,O=g.currentTarget,g=g.listener,_!==c&&u.isPropagationStopped())break e;c=g,u.currentTarget=O;try{c(u)}catch(B){Is(B)}u.currentTarget=null,c=_}}}}function Me(e,t){var n=t[Go];n===void 0&&(n=t[Go]=new Set);var i=e+"__bubble";n.has(i)||(By(t,e,2,!1),n.add(i))}function Df(e,t,n){var i=0;t&&(i|=4),By(n,e,i,t)}var Lu="_reactListening"+Math.random().toString(36).slice(2);function zf(e){if(!e[Lu]){e[Lu]=!0,Oh.forEach(function(n){n!=="selectionchange"&&(L1.has(n)||Df(n,!1,e),Df(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Lu]||(t[Lu]=!0,Df("selectionchange",!1,t))}}function By(e,t,n,i){switch(hv(t)){case 2:var u=fS;break;case 8:u=dS;break;default:u=Jf}n=u.bind(null,t,n,e),u=void 0,!Wo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function kf(e,t,n,i,u){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var g=i.stateNode.containerInfo;if(g===u)break;if(p===4)for(p=i.return;p!==null;){var _=p.tag;if((_===3||_===4)&&p.stateNode.containerInfo===u)return;p=p.return}for(;g!==null;){if(p=fi(g),p===null)return;if(_=p.tag,_===5||_===6||_===26||_===27){i=c=p;continue e}g=g.parentNode}}i=i.return}Vh(function(){var O=c,B=Io(n),Z=[];e:{var D=vm.get(e);if(D!==void 0){var k=Fs,le=e;switch(e){case"keypress":if(Xs(n)===0)break e;case"keydown":case"keyup":k=Rx;break;case"focusin":le="focus",k=ac;break;case"focusout":le="blur",k=ac;break;case"beforeblur":case"afterblur":k=ac;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=gx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Dx;break;case hm:case mm:case pm:k=Sx;break;case ym:k=kx;break;case"scroll":case"scrollend":k=yx;break;case"wheel":k=Lx;break;case"copy":case"cut":case"paste":k=Ex;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Fh;break;case"toggle":case"beforetoggle":k=qx}var ve=(t&4)!==0,Pe=!ve&&(e==="scroll"||e==="scrollend"),w=ve?D!==null?D+"Capture":null:D;ve=[];for(var N=O,R;N!==null;){var q=N;if(R=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||R===null||w===null||(q=jr(N,w),q!=null&&ve.push(rs(N,q,R))),Pe)break;N=N.return}0<ve.length&&(D=new k(D,le,null,n,B),Z.push({event:D,listeners:ve}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",D&&n!==$o&&(le=n.relatedTarget||n.fromElement)&&(fi(le)||le[ci]))break e;if((k||D)&&(D=B.window===B?B:(D=B.ownerDocument)?D.defaultView||D.parentWindow:window,k?(le=n.relatedTarget||n.toElement,k=O,le=le?fi(le):null,le!==null&&(Pe=f(le),ve=le.tag,le!==Pe||ve!==5&&ve!==27&&ve!==6)&&(le=null)):(k=null,le=O),k!==le)){if(ve=Xh,q="onMouseLeave",w="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ve=Fh,q="onPointerLeave",w="onPointerEnter",N="pointer"),Pe=k==null?D:Tr(k),R=le==null?D:Tr(le),D=new ve(q,N+"leave",k,n,B),D.target=Pe,D.relatedTarget=R,q=null,fi(B)===O&&(ve=new ve(w,N+"enter",le,n,B),ve.target=R,ve.relatedTarget=Pe,q=ve),Pe=q,k&&le)t:{for(ve=B1,w=k,N=le,R=0,q=w;q;q=ve(q))R++;q=0;for(var ye=N;ye;ye=ve(ye))q++;for(;0<R-q;)w=ve(w),R--;for(;0<q-R;)N=ve(N),q--;for(;R--;){if(w===N||N!==null&&w===N.alternate){ve=w;break t}w=ve(w),N=ve(N)}ve=null}else ve=null;k!==null&&qy(Z,D,k,ve,!1),le!==null&&Pe!==null&&qy(Z,Pe,le,ve,!0)}}e:{if(D=O?Tr(O):window,k=D.nodeName&&D.nodeName.toLowerCase(),k==="select"||k==="input"&&D.type==="file")var Ze=nm;else if(em(D))if(am)Ze=Jx;else{Ze=Kx;var fe=Xx}else k=D.nodeName,!k||k.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&Jo(O.elementType)&&(Ze=nm):Ze=Fx;if(Ze&&(Ze=Ze(e,O))){tm(Z,Ze,n,B);break e}fe&&fe(e,D,O),e==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&Fo(D,"number",D.value)}switch(fe=O?Tr(O):window,e){case"focusin":(em(fe)||fe.contentEditable==="true")&&(xi=fe,oc=O,kr=null);break;case"focusout":kr=oc=xi=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,fm(Z,n,B);break;case"selectionchange":if(Ix)break;case"keydown":case"keyup":fm(Z,n,B)}var Te;if(ic)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else bi?Ph(e,n)&&(ke="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ke="onCompositionStart");ke&&(Jh&&n.locale!=="ko"&&(bi||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&bi&&(Te=Gh()):(Ha=B,ec="value"in Ha?Ha.value:Ha.textContent,bi=!0)),fe=Bu(O,ke),0<fe.length&&(ke=new Kh(ke,e,null,n,B),Z.push({event:ke,listeners:fe}),Te?ke.data=Te:(Te=Wh(n),Te!==null&&(ke.data=Te)))),(Te=Qx?Zx(e,n):Vx(e,n))&&(ke=Bu(O,"onBeforeInput"),0<ke.length&&(fe=new Kh("onBeforeInput","beforeinput",null,n,B),Z.push({event:fe,listeners:ke}),fe.data=Te)),z1(Z,e,O,n,B)}Ly(Z,t)})}function rs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bu(e,t){for(var n=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=jr(e,n),u!=null&&i.unshift(rs(e,u,c)),u=jr(e,t),u!=null&&i.push(rs(e,u,c))),e.tag===3)return i;e=e.return}return[]}function B1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qy(e,t,n,i,u){for(var c=t._reactName,p=[];n!==null&&n!==i;){var g=n,_=g.alternate,O=g.stateNode;if(g=g.tag,_!==null&&_===i)break;g!==5&&g!==26&&g!==27||O===null||(_=O,u?(O=jr(n,c),O!=null&&p.unshift(rs(n,O,_))):u||(O=jr(n,c),O!=null&&p.push(rs(n,O,_)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var q1=/\r\n?/g,H1=/\u0000|\uFFFD/g;function Hy(e){return(typeof e=="string"?e:""+e).replace(q1,`
|
|
49
|
+
`).replace(H1,"")}function Qy(e,t){return t=Hy(t),Hy(e)===t}function Ie(e,t,n,i,u,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||yi(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&yi(e,""+i);break;case"className":Zs(e,"class",i);break;case"tabIndex":Zs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Zs(e,n,i);break;case"style":Qh(e,i,c);break;case"data":if(t!=="object"){Zs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Gs(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&Ie(e,t,"name",u.name,u,null),Ie(e,t,"formEncType",u.formEncType,u,null),Ie(e,t,"formMethod",u.formMethod,u,null),Ie(e,t,"formTarget",u.formTarget,u,null)):(Ie(e,t,"encType",u.encType,u,null),Ie(e,t,"method",u.method,u,null),Ie(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Gs(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ra);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Gs(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Qs(e,"popover",i);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Qs(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=mx.get(n)||n,Qs(e,n,i))}}function Uf(e,t,n,i,u,c){switch(n){case"style":Qh(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?yi(e,i):(typeof i=="number"||typeof i=="bigint")&&yi(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mh.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),c=e[Vt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,u);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Qs(e,n,i)}}}function Mt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ie(e,t,c,p,n,null)}}u&&Ie(e,t,"srcSet",n.srcSet,n,null),i&&Ie(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var g=c=p=u=null,_=null,O=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":u=B;break;case"type":p=B;break;case"checked":_=B;break;case"defaultChecked":O=B;break;case"value":c=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Ie(e,t,i,B,n,null)}}Lh(e,c,g,_,O,p,u,!1);return;case"select":Me("invalid",e),i=p=c=null;for(u in n)if(n.hasOwnProperty(u)&&(g=n[u],g!=null))switch(u){case"value":c=g;break;case"defaultValue":p=g;break;case"multiple":i=g;default:Ie(e,t,u,g,n,null)}t=c,n=p,e.multiple=!!i,t!=null?pi(e,!!i,t,!1):n!=null&&pi(e,!!i,n,!0);return;case"textarea":Me("invalid",e),c=u=i=null;for(p in n)if(n.hasOwnProperty(p)&&(g=n[p],g!=null))switch(p){case"value":i=g;break;case"defaultValue":u=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:Ie(e,t,p,g,n,null)}qh(e,i,u,c);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(i=n[_],i!=null))switch(_){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ie(e,t,_,i,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<is.length;i++)Me(is[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(O in n)if(n.hasOwnProperty(O)&&(i=n[O],i!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ie(e,t,O,i,n,null)}return;default:if(Jo(t)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&Uf(e,t,B,i,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(i=n[g],i!=null&&Ie(e,t,g,i,n,null))}function Q1(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,p=null,g=null,_=null,O=null,B=null;for(k in n){var Z=n[k];if(n.hasOwnProperty(k)&&Z!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":_=Z;default:i.hasOwnProperty(k)||Ie(e,t,k,null,i,Z)}}for(var D in i){var k=i[D];if(Z=n[D],i.hasOwnProperty(D)&&(k!=null||Z!=null))switch(D){case"type":c=k;break;case"name":u=k;break;case"checked":O=k;break;case"defaultChecked":B=k;break;case"value":p=k;break;case"defaultValue":g=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==Z&&Ie(e,t,D,k,i,Z)}}Ko(e,p,g,_,O,B,c,u);return;case"select":k=p=g=D=null;for(c in n)if(_=n[c],n.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":k=_;default:i.hasOwnProperty(c)||Ie(e,t,c,null,i,_)}for(u in i)if(c=i[u],_=n[u],i.hasOwnProperty(u)&&(c!=null||_!=null))switch(u){case"value":D=c;break;case"defaultValue":g=c;break;case"multiple":p=c;default:c!==_&&Ie(e,t,u,c,i,_)}t=g,n=p,i=k,D!=null?pi(e,!!n,D,!1):!!i!=!!n&&(t!=null?pi(e,!!n,t,!0):pi(e,!!n,n?[]:"",!1));return;case"textarea":k=D=null;for(g in n)if(u=n[g],n.hasOwnProperty(g)&&u!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ie(e,t,g,null,i,u)}for(p in i)if(u=i[p],c=n[p],i.hasOwnProperty(p)&&(u!=null||c!=null))switch(p){case"value":D=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Ie(e,t,p,u,i,c)}Bh(e,D,k);return;case"option":for(var le in n)if(D=n[le],n.hasOwnProperty(le)&&D!=null&&!i.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Ie(e,t,le,null,i,D)}for(_ in i)if(D=i[_],k=n[_],i.hasOwnProperty(_)&&D!==k&&(D!=null||k!=null))switch(_){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Ie(e,t,_,D,i,k)}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 ve in n)D=n[ve],n.hasOwnProperty(ve)&&D!=null&&!i.hasOwnProperty(ve)&&Ie(e,t,ve,null,i,D);for(O in i)if(D=i[O],k=n[O],i.hasOwnProperty(O)&&D!==k&&(D!=null||k!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Ie(e,t,O,D,i,k)}return;default:if(Jo(t)){for(var Pe in n)D=n[Pe],n.hasOwnProperty(Pe)&&D!==void 0&&!i.hasOwnProperty(Pe)&&Uf(e,t,Pe,void 0,i,D);for(B in i)D=i[B],k=n[B],!i.hasOwnProperty(B)||D===k||D===void 0&&k===void 0||Uf(e,t,B,D,i,k);return}}for(var w in n)D=n[w],n.hasOwnProperty(w)&&D!=null&&!i.hasOwnProperty(w)&&Ie(e,t,w,null,i,D);for(Z in i)D=i[Z],k=n[Z],!i.hasOwnProperty(Z)||D===k||D==null&&k==null||Ie(e,t,Z,D,i,k)}function Zy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var u=n[i],c=u.transferSize,p=u.initiatorType,g=u.duration;if(c&&g&&Zy(p)){for(p=0,g=u.responseEnd,i+=1;i<n.length;i++){var _=n[i],O=_.startTime;if(O>g)break;var B=_.transferSize,Z=_.initiatorType;B&&Zy(Z)&&(_=_.responseEnd,p+=B*(_<g?1:(g-O)/(_-O)))}if(--i,t+=8*(c+p)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Lf=null,Bf=null;function qu(e){return e.nodeType===9?e:e.ownerDocument}function Vy(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 Gy(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 qf(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 Hf=null;function V1(){var e=window.event;return e&&e.type==="popstate"?e===Hf?!1:(Hf=e,!0):(Hf=null,!1)}var Yy=typeof setTimeout=="function"?setTimeout:void 0,G1=typeof clearTimeout=="function"?clearTimeout:void 0,Xy=typeof Promise=="function"?Promise:void 0,Y1=typeof queueMicrotask=="function"?queueMicrotask:typeof Xy<"u"?function(e){return Xy.resolve(null).then(e).catch(X1)}:Yy;function X1(e){setTimeout(function(){throw e})}function al(e){return e==="head"}function Ky(e,t){var n=t,i=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(u),Ki(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")ss(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ss(n);for(var c=n.firstChild;c;){var p=c.nextSibling,g=c.nodeName;c[Nr]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&ss(e.ownerDocument.body);n=u}while(n);Ki(t)}function Fy(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Qf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qf(n),Yo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function K1(e,t,n,i){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Nr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=En(e.nextSibling),e===null)break}return null}function F1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=En(e.nextSibling),e===null))return null;return e}function Jy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=En(e.nextSibling),e===null))return null;return e}function Zf(e){return e.data==="$?"||e.data==="$~"}function Vf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function J1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function En(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==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gf=null;function $y(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return En(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Iy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Py(e,t,n){switch(t=qu(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ss(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yo(e)}var Cn=new Map,Wy=new Set;function Hu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _a=F.d;F.d={f:$1,r:I1,D:P1,C:W1,L:eS,m:tS,X:aS,S:nS,M:lS};function $1(){var e=_a.f(),t=Ou();return e||t}function I1(e){var t=di(e);t!==null&&t.tag===5&&t.type==="form"?yp(t):_a.r(e)}var Gi=typeof document>"u"?null:document;function ev(e,t,n){var i=Gi;if(i&&typeof t=="string"&&t){var u=yn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Wy.has(u)||(Wy.add(u),e={rel:e,crossOrigin:n,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Mt(t,"link",e),Ct(t),i.head.appendChild(t)))}}function P1(e){_a.D(e),ev("dns-prefetch",e,null)}function W1(e,t){_a.C(e,t),ev("preconnect",e,t)}function eS(e,t,n){_a.L(e,t,n);var i=Gi;if(i&&e&&t){var u='link[rel="preload"][as="'+yn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+yn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+yn(n.imageSizes)+'"]')):u+='[href="'+yn(e)+'"]';var c=u;switch(t){case"style":c=Yi(e);break;case"script":c=Xi(e)}Cn.has(c)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Cn.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(us(c))||t==="script"&&i.querySelector(os(c))||(t=i.createElement("link"),Mt(t,"link",e),Ct(t),i.head.appendChild(t)))}}function tS(e,t){_a.m(e,t);var n=Gi;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+yn(i)+'"][href="'+yn(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Xi(e)}if(!Cn.has(c)&&(e=S({rel:"modulepreload",href:e},t),Cn.set(c,e),n.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(os(c)))return}i=n.createElement("link"),Mt(i,"link",e),Ct(i),n.head.appendChild(i)}}}function nS(e,t,n){_a.S(e,t,n);var i=Gi;if(i&&e){var u=hi(i).hoistableStyles,c=Yi(e);t=t||"default";var p=u.get(c);if(!p){var g={loading:0,preload:null};if(p=i.querySelector(us(c)))g.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cn.get(c))&&Yf(e,n);var _=p=i.createElement("link");Ct(_),Mt(_,"link",e),_._p=new Promise(function(O,B){_.onload=O,_.onerror=B}),_.addEventListener("load",function(){g.loading|=1}),_.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Qu(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:g},u.set(c,p)}}}function aS(e,t){_a.X(e,t);var n=Gi;if(n&&e){var i=hi(n).hoistableScripts,u=Xi(e),c=i.get(u);c||(c=n.querySelector(os(u)),c||(e=S({src:e,async:!0},t),(t=Cn.get(u))&&Xf(e,t),c=n.createElement("script"),Ct(c),Mt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function lS(e,t){_a.M(e,t);var n=Gi;if(n&&e){var i=hi(n).hoistableScripts,u=Xi(e),c=i.get(u);c||(c=n.querySelector(os(u)),c||(e=S({src:e,async:!0,type:"module"},t),(t=Cn.get(u))&&Xf(e,t),c=n.createElement("script"),Ct(c),Mt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function tv(e,t,n,i){var u=(u=me.current)?Hu(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Yi(n.href),n=hi(u).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Yi(n.href);var c=hi(u).hoistableStyles,p=c.get(e);if(p||(u=u.ownerDocument||u,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=u.querySelector(us(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cn.set(e,n),c||iS(u,e,n,p.state))),t&&i===null)throw Error(s(528,""));return p}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xi(n),n=hi(u).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Yi(e){return'href="'+yn(e)+'"'}function us(e){return'link[rel="stylesheet"]['+e+"]"}function nv(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function iS(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Mt(t,"link",n),Ct(t),e.head.appendChild(t))}function Xi(e){return'[src="'+yn(e)+'"]'}function os(e){return"script[async]"+e}function av(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+yn(n.href)+'"]');if(i)return t.instance=i,Ct(i),i;var u=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ct(i),Mt(i,"style",u),Qu(i,n.precedence,e),t.instance=i;case"stylesheet":u=Yi(n.href);var c=e.querySelector(us(u));if(c)return t.state.loading|=4,t.instance=c,Ct(c),c;i=nv(n),(u=Cn.get(u))&&Yf(i,u),c=(e.ownerDocument||e).createElement("link"),Ct(c);var p=c;return p._p=new Promise(function(g,_){p.onload=g,p.onerror=_}),Mt(c,"link",i),t.state.loading|=4,Qu(c,n.precedence,e),t.instance=c;case"script":return c=Xi(n.src),(u=e.querySelector(os(c)))?(t.instance=u,Ct(u),u):(i=n,(u=Cn.get(c))&&(i=S({},n),Xf(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ct(u),Mt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Qu(i,n.precedence,e));return t.instance}function Qu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,p=0;p<i.length;p++){var g=i[p];if(g.dataset.precedence===t)c=g;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Yf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zu=null;function lv(e,t,n){if(Zu===null){var i=new Map,u=Zu=new Map;u.set(n,i)}else u=Zu,i=u.get(n),i||(i=new Map,u.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var c=n[u];if(!(c[Nr]||c[wt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var g=i.get(p);g?g.push(c):i.set(p,[c])}}return i}function iv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function rS(e,t,n){if(n===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 rv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function sS(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Yi(i.href),c=t.querySelector(us(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Ct(c);return}c=t.ownerDocument||t,i=nv(i),(u=Cn.get(u))&&Yf(i,u),c=c.createElement("link"),Ct(c);var p=c;p._p=new Promise(function(g,_){p.onload=g,p.onerror=_}),Mt(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Vu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Kf=0;function uS(e,t){return e.stylesheets&&e.count===0&&Yu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Z1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gu=null;function Yu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gu=new Map,t.forEach(oS,e),Gu=null,Vu.call(e))}function oS(e,t){if(!(t.state.loading&4)){var n=Gu.get(e);if(n)var i=n.get(null);else{n=new Map,Gu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var p=u[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),i=p)}i&&n.set(null,i)}u=t.instance,p=u.getAttribute("data-precedence"),c=n.get(p)||i,c===i&&n.set(null,u),n.set(p,u),this.count++,i=Vu.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var cs={$$typeof:H,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function cS(e,t,n,i,u,c,p,g,_){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=Qo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qo(0),this.hiddenUpdates=Qo(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function sv(e,t,n,i,u,c,p,g,_,O,B,Z){return e=new cS(e,t,n,p,_,O,B,Z,g),t=1,c===!0&&(t|=24),c=ln(3,null,null,t),e.current=c,c.stateNode=e,t=Nc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Ac(c),e}function uv(e){return e?(e=Ei,e):Ei}function ov(e,t,n,i,u,c){u=uv(u),i.context===null?i.context=u:i.pendingContext=u,i=Xa(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Ka(e,i,t),n!==null&&(Jt(n,e,t),Zr(n,e,t))}function cv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ff(e,t){cv(e,t),(e=e.alternate)&&cv(e,t)}function fv(e){if(e.tag===13||e.tag===31){var t=Dl(e,67108864);t!==null&&Jt(t,e,67108864),Ff(e,67108864)}}function dv(e){if(e.tag===13||e.tag===31){var t=cn();t=Zo(t);var n=Dl(e,t);n!==null&&Jt(n,e,t),Ff(e,t)}}var Xu=!0;function fS(e,t,n,i){var u=U.T;U.T=null;var c=F.p;try{F.p=2,Jf(e,t,n,i)}finally{F.p=c,U.T=u}}function dS(e,t,n,i){var u=U.T;U.T=null;var c=F.p;try{F.p=8,Jf(e,t,n,i)}finally{F.p=c,U.T=u}}function Jf(e,t,n,i){if(Xu){var u=$f(i);if(u===null)kf(e,t,i,Ku,n),mv(e,i);else if(mS(u,e,t,n,i))i.stopPropagation();else if(mv(e,i),t&4&&-1<hS.indexOf(e)){for(;u!==null;){var c=di(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=wl(c.pendingLanes);if(p!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;p;){var _=1<<31-nn(p);g.entanglements[1]|=_,p&=~_}Kn(c),(Xe&6)===0&&(Au=en()+500,ls(0))}}break;case 31:case 13:g=Dl(c,2),g!==null&&Jt(g,c,2),Ou(),Ff(c,2)}if(c=$f(i),c===null&&kf(e,t,i,Ku,n),c===u)break;u=c}u!==null&&i.stopPropagation()}else kf(e,t,i,null,n)}}function $f(e){return e=Io(e),If(e)}var Ku=null;function If(e){if(Ku=null,e=fi(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ku=e,null}function hv(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(P0()){case Sh:return 2;case _h:return 8;case Us:case W0:return 32;case Eh:return 268435456;default:return 32}default:return 32}}var Pf=!1,ll=null,il=null,rl=null,fs=new Map,ds=new Map,sl=[],hS="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 mv(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":il=null;break;case"mouseover":case"mouseout":rl=null;break;case"pointerover":case"pointerout":fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ds.delete(t.pointerId)}}function hs(e,t,n,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=di(t),t!==null&&fv(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function mS(e,t,n,i,u){switch(t){case"focusin":return ll=hs(ll,e,t,n,i,u),!0;case"dragenter":return il=hs(il,e,t,n,i,u),!0;case"mouseover":return rl=hs(rl,e,t,n,i,u),!0;case"pointerover":var c=u.pointerId;return fs.set(c,hs(fs.get(c)||null,e,t,n,i,u)),!0;case"gotpointercapture":return c=u.pointerId,ds.set(c,hs(ds.get(c)||null,e,t,n,i,u)),!0}return!1}function pv(e){var t=fi(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Ah(e.priority,function(){dv(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Ah(e.priority,function(){dv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$f(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);$o=i,n.target.dispatchEvent(i),$o=null}else return t=di(n),t!==null&&fv(t),e.blockedOn=n,!1;t.shift()}return!0}function yv(e,t,n){Fu(e)&&n.delete(t)}function pS(){Pf=!1,ll!==null&&Fu(ll)&&(ll=null),il!==null&&Fu(il)&&(il=null),rl!==null&&Fu(rl)&&(rl=null),fs.forEach(yv),ds.forEach(yv)}function Ju(e,t){e.blockedOn===t&&(e.blockedOn=null,Pf||(Pf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,pS)))}var $u=null;function vv(e){$u!==e&&($u=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){$u===e&&($u=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(If(i||n)===null)continue;break}var c=di(n);c!==null&&(e.splice(t,3),t-=3,Jc(c,{pending:!0,data:u,method:n.method,action:i},i,u))}}))}function Ki(e){function t(_){return Ju(_,e)}ll!==null&&Ju(ll,e),il!==null&&Ju(il,e),rl!==null&&Ju(rl,e),fs.forEach(t),ds.forEach(t);for(var n=0;n<sl.length;n++){var i=sl[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<sl.length&&(n=sl[0],n.blockedOn===null);)pv(n),n.blockedOn===null&&sl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var u=n[i],c=n[i+1],p=u[Vt]||null;if(typeof c=="function")p||vv(n);else if(p){var g=null;if(c&&c.hasAttribute("formAction")){if(u=c,p=c[Vt]||null)g=p.formAction;else if(If(u)!==null)continue}else g=p.action;typeof g=="function"?n[i+1]=g:(n.splice(i,3),i-=3),vv(n)}}}function gv(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return u=p})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Wf(e){this._internalRoot=e}Iu.prototype.render=Wf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=cn();ov(n,i,e,t,null,null)},Iu.prototype.unmount=Wf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ov(e.current,2,null,e,null,null),Ou(),t[ci]=null}};function Iu(e){this._internalRoot=e}Iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sl.length&&t!==0&&t<sl[n].priority;n++);sl.splice(n,0,e),n===0&&pv(e)}};var bv=a.version;if(bv!=="19.2.4")throw Error(s(527,bv,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var yS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{_r=Pu.inject(yS),tn=Pu}catch{}}return ps.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,i="",u=Tp,c=jp,p=wp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=sv(e,1,!1,null,null,n,i,null,u,c,p,gv),e[ci]=t.current,zf(e),new Wf(t)},ps.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var i=!1,u="",c=Tp,p=jp,g=wp,_=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),t=sv(e,1,!0,t,n??null,i,u,_,c,p,g,gv),t.context=uv(null),n=t.current,i=cn(),i=Zo(i),u=Xa(i),u.callback=null,Ka(n,u,i),n=i,t.current.lanes=n,Cr(t,n),Kn(t),e[ci]=t.current,zf(e),new Iu(t)},ps.version="19.2.4",ps}var Rv;function jS(){if(Rv)return ad.exports;Rv=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),ad.exports=TS(),ad.exports}var wS=jS(),vr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fl,ml,er,Dg,AS=(Dg=class extends vr{constructor(){super();pe(this,Fl);pe(this,ml);pe(this,er);te(this,er,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,ml)||this.setEventListener(E(this,er))}onUnsubscribe(){var a;this.hasListeners()||((a=E(this,ml))==null||a.call(this),te(this,ml,void 0))}setEventListener(a){var r;te(this,er,a),(r=E(this,ml))==null||r.call(this),te(this,ml,a(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(a){E(this,Fl)!==a&&(te(this,Fl,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof E(this,Fl)=="boolean"?E(this,Fl):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Fl=new WeakMap,ml=new WeakMap,er=new WeakMap,Dg),Pd=new AS,RS={setTimeout:(l,a)=>setTimeout(l,a),clearTimeout:l=>clearTimeout(l),setInterval:(l,a)=>setInterval(l,a),clearInterval:l=>clearInterval(l)},pl,Jd,zg,OS=(zg=class{constructor(){pe(this,pl,RS);pe(this,Jd,!1)}setTimeoutProvider(l){te(this,pl,l)}setTimeout(l,a){return E(this,pl).setTimeout(l,a)}clearTimeout(l){E(this,pl).clearTimeout(l)}setInterval(l,a){return E(this,pl).setInterval(l,a)}clearInterval(l){E(this,pl).clearInterval(l)}},pl=new WeakMap,Jd=new WeakMap,zg),Kl=new OS;function MS(l){setTimeout(l,0)}var DS=typeof window>"u"||"Deno"in globalThis;function Ht(){}function zS(l,a){return typeof l=="function"?l(a):l}function Sd(l){return typeof l=="number"&&l>=0&&l!==1/0}function Xg(l,a){return Math.max(l+(a||0)-Date.now(),0)}function El(l,a){return typeof l=="function"?l(a):l}function Tn(l,a){return typeof l=="function"?l(a):l}function Ov(l,a){const{type:r="all",exact:s,fetchStatus:o,predicate:f,queryKey:h,stale:m}=l;if(h){if(s){if(a.queryHash!==Wd(h,a.options))return!1}else if(!_s(a.queryKey,h))return!1}if(r!=="all"){const v=a.isActive();if(r==="active"&&!v||r==="inactive"&&v)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||f&&!f(a))}function Mv(l,a){const{exact:r,status:s,predicate:o,mutationKey:f}=l;if(f){if(!a.options.mutationKey)return!1;if(r){if(ai(a.options.mutationKey)!==ai(f))return!1}else if(!_s(a.options.mutationKey,f))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function Wd(l,a){return((a==null?void 0:a.queryKeyHashFn)||ai)(l)}function ai(l){return JSON.stringify(l,(a,r)=>_d(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r)}function _s(l,a){return l===a?!0:typeof l!=typeof a?!1:l&&a&&typeof l=="object"&&typeof a=="object"?Object.keys(a).every(r=>_s(l[r],a[r])):!1}var kS=Object.prototype.hasOwnProperty;function Kg(l,a,r=0){if(l===a)return l;if(r>500)return a;const s=Dv(l)&&Dv(a);if(!s&&!(_d(l)&&_d(a)))return a;const f=(s?l:Object.keys(l)).length,h=s?a:Object.keys(a),m=h.length,v=s?new Array(m):{};let y=0;for(let x=0;x<m;x++){const S=s?x:h[x],C=l[S],M=a[S];if(C===M){v[S]=C,(s?x<f:kS.call(l,S))&&y++;continue}if(C===null||M===null||typeof C!="object"||typeof M!="object"){v[S]=M;continue}const L=Kg(C,M,r+1);v[S]=L,L===C&&y++}return f===m&&y===f?l:v}function vo(l,a){if(!a||Object.keys(l).length!==Object.keys(a).length)return!1;for(const r in l)if(l[r]!==a[r])return!1;return!0}function Dv(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function _d(l){if(!zv(l))return!1;const a=l.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!zv(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function zv(l){return Object.prototype.toString.call(l)==="[object Object]"}function US(l){return new Promise(a=>{Kl.setTimeout(a,l)})}function Ed(l,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(l,a):r.structuralSharing!==!1?Kg(l,a):a}function LS(l,a,r=0){const s=[...l,a];return r&&s.length>r?s.slice(1):s}function BS(l,a,r=0){const s=[a,...l];return r&&s.length>r?s.slice(0,-1):s}var eh=Symbol();function Fg(l,a){return!l.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!l.queryFn||l.queryFn===eh?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function th(l,a){return typeof l=="function"?l(...a):!!l}function qS(l,a,r){let s=!1,o;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??(o=a()),s||(s=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),l}var Es=(()=>{let l=()=>DS;return{isServer(){return l()},setIsServer(a){l=a}}})();function Cd(){let l,a;const r=new Promise((o,f)=>{l=o,a=f});r.status="pending",r.catch(()=>{});function s(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{s({status:"fulfilled",value:o}),l(o)},r.reject=o=>{s({status:"rejected",reason:o}),a(o)},r}var HS=MS;function QS(){let l=[],a=0,r=m=>{m()},s=m=>{m()},o=HS;const f=m=>{a?l.push(m):o(()=>{r(m)})},h=()=>{const m=l;l=[],m.length&&o(()=>{s(()=>{m.forEach(v=>{r(v)})})})};return{batch:m=>{let v;a++;try{v=m()}finally{a--,a||h()}return v},batchCalls:m=>(...v)=>{f(()=>{m(...v)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{o=m}}}var Et=QS(),tr,yl,nr,kg,ZS=(kg=class extends vr{constructor(){super();pe(this,tr,!0);pe(this,yl);pe(this,nr);te(this,nr,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){E(this,yl)||this.setEventListener(E(this,nr))}onUnsubscribe(){var a;this.hasListeners()||((a=E(this,yl))==null||a.call(this),te(this,yl,void 0))}setEventListener(a){var r;te(this,nr,a),(r=E(this,yl))==null||r.call(this),te(this,yl,a(this.setOnline.bind(this)))}setOnline(a){E(this,tr)!==a&&(te(this,tr,a),this.listeners.forEach(s=>{s(a)}))}isOnline(){return E(this,tr)}},tr=new WeakMap,yl=new WeakMap,nr=new WeakMap,kg),go=new ZS;function VS(l){return Math.min(1e3*2**l,3e4)}function Jg(l){return(l??"online")==="online"?go.isOnline():!0}var Nd=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function $g(l){let a=!1,r=0,s;const o=Cd(),f=()=>o.status!=="pending",h=j=>{var A;if(!f()){const z=new Nd(j);C(z),(A=l.onCancel)==null||A.call(l,z)}},m=()=>{a=!0},v=()=>{a=!1},y=()=>Pd.isFocused()&&(l.networkMode==="always"||go.isOnline())&&l.canRun(),x=()=>Jg(l.networkMode)&&l.canRun(),S=j=>{f()||(s==null||s(),o.resolve(j))},C=j=>{f()||(s==null||s(),o.reject(j))},M=()=>new Promise(j=>{var A;s=z=>{(f()||y())&&j(z)},(A=l.onPause)==null||A.call(l)}).then(()=>{var j;s=void 0,f()||(j=l.onContinue)==null||j.call(l)}),L=()=>{if(f())return;let j;const A=r===0?l.initialPromise:void 0;try{j=A??l.fn()}catch(z){j=Promise.reject(z)}Promise.resolve(j).then(S).catch(z=>{var X;if(f())return;const J=l.retry??(Es.isServer()?0:3),H=l.retryDelay??VS,V=typeof H=="function"?H(r,z):H,Y=J===!0||typeof J=="number"&&r<J||typeof J=="function"&&J(r,z);if(a||!Y){C(z);return}r++,(X=l.onFail)==null||X.call(l,r,z),US(V).then(()=>y()?void 0:M()).then(()=>{a?C(z):L()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(s==null||s(),o),cancelRetry:m,continueRetry:v,canStart:x,start:()=>(x()?L():M().then(L),o)}}var Jl,Ug,Ig=(Ug=class{constructor(){pe(this,Jl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sd(this.gcTime)&&te(this,Jl,Kl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Es.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,Jl)&&(Kl.clearTimeout(E(this,Jl)),te(this,Jl,void 0))}},Jl=new WeakMap,Ug),$l,ar,Nn,Il,Tt,ws,Pl,dn,Pg,Ca,Lg,GS=(Lg=class extends Ig{constructor(a){super();pe(this,dn);pe(this,$l);pe(this,ar);pe(this,Nn);pe(this,Il);pe(this,Tt);pe(this,ws);pe(this,Pl);te(this,Pl,!1),te(this,ws,a.defaultOptions),this.setOptions(a.options),this.observers=[],te(this,Il,a.client),te(this,Nn,E(this,Il).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,te(this,$l,Uv(this.options)),this.state=a.state??E(this,$l),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=E(this,Tt))==null?void 0:a.promise}setOptions(a){if(this.options={...E(this,ws),...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Uv(this.options);r.data!==void 0&&(this.setState(kv(r.data,r.dataUpdatedAt)),te(this,$l,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Nn).remove(this)}setData(a,r){const s=Ed(this.state.data,a,this.options);return je(this,dn,Ca).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(a,r){je(this,dn,Ca).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var s,o;const r=(s=E(this,Tt))==null?void 0:s.promise;return(o=E(this,Tt))==null||o.cancel(a),r?r.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,$l)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>Tn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>El(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!Xg(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(s=>s.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=E(this,Tt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(s=>s.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=E(this,Tt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),E(this,Nn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(E(this,Tt)&&(E(this,Pl)||je(this,dn,Pg).call(this)?E(this,Tt).cancel({revert:!0}):E(this,Tt).cancelRetry()),this.scheduleGc()),E(this,Nn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,dn,Ca).call(this,{type:"invalidate"})}async fetch(a,r){var v,y,x,S,C,M,L,j,A,z,J,H;if(this.state.fetchStatus!=="idle"&&((v=E(this,Tt))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,Tt))return E(this,Tt).continueRetry(),E(this,Tt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const V=this.observers.find(Y=>Y.options.queryFn);V&&this.setOptions(V.options)}const s=new AbortController,o=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(te(this,Pl,!0),s.signal)})},f=()=>{const V=Fg(this.options,r),X=(()=>{const $={client:E(this,Il),queryKey:this.queryKey,meta:this.meta};return o($),$})();return te(this,Pl,!1),this.options.persister?this.options.persister(V,X,this):V(X)},m=(()=>{const V={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,Il),state:this.state,fetchFn:f};return o(V),V})();(y=this.options.behavior)==null||y.onFetch(m,this),te(this,ar,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&je(this,dn,Ca).call(this,{type:"fetch",meta:(S=m.fetchOptions)==null?void 0:S.meta}),te(this,Tt,$g({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:V=>{V instanceof Nd&&V.revert&&this.setState({...E(this,ar),fetchStatus:"idle"}),s.abort()},onFail:(V,Y)=>{je(this,dn,Ca).call(this,{type:"failed",failureCount:V,error:Y})},onPause:()=>{je(this,dn,Ca).call(this,{type:"pause"})},onContinue:()=>{je(this,dn,Ca).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const V=await E(this,Tt).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(M=(C=E(this,Nn).config).onSuccess)==null||M.call(C,V,this),(j=(L=E(this,Nn).config).onSettled)==null||j.call(L,V,this.state.error,this),V}catch(V){if(V instanceof Nd){if(V.silent)return E(this,Tt).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw je(this,dn,Ca).call(this,{type:"error",error:V}),(z=(A=E(this,Nn).config).onError)==null||z.call(A,V,this),(H=(J=E(this,Nn).config).onSettled)==null||H.call(J,this.state.data,V,this),V}finally{this.scheduleGc()}}},$l=new WeakMap,ar=new WeakMap,Nn=new WeakMap,Il=new WeakMap,Tt=new WeakMap,ws=new WeakMap,Pl=new WeakMap,dn=new WeakSet,Pg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ca=function(a){const r=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Wg(s.data,this.options),fetchMeta:a.meta??null};case"success":const o={...s,...kv(a.data,a.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,ar,a.manual?o:void 0),o;case"error":const f=a.error;return{...s,error:f,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=r(this.state),Et.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),E(this,Nn).notify({query:this,type:"updated",action:a})})},Lg);function Wg(l,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jg(a.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function kv(l,a){return{data:l,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Uv(l){const a=typeof l.initialData=="function"?l.initialData():l.initialData,r=a!==void 0,s=r?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var $t,Le,As,qt,Wl,lr,Na,vl,Rs,ir,rr,ei,ti,gl,sr,Ke,bs,Td,jd,wd,Ad,Rd,Od,Md,eb,Bg,YS=(Bg=class extends vr{constructor(a,r){super();pe(this,Ke);pe(this,$t);pe(this,Le);pe(this,As);pe(this,qt);pe(this,Wl);pe(this,lr);pe(this,Na);pe(this,vl);pe(this,Rs);pe(this,ir);pe(this,rr);pe(this,ei);pe(this,ti);pe(this,gl);pe(this,sr,new Set);this.options=r,te(this,$t,a),te(this,vl,null),te(this,Na,Cd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Le).addObserver(this),Lv(E(this,Le),this.options)?je(this,Ke,bs).call(this):this.updateResult(),je(this,Ke,Ad).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Dd(E(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Dd(E(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,je(this,Ke,Rd).call(this),je(this,Ke,Od).call(this),E(this,Le).removeObserver(this)}setOptions(a){const r=this.options,s=E(this,Le);if(this.options=E(this,$t).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tn(this.options.enabled,E(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");je(this,Ke,Md).call(this),E(this,Le).setOptions(this.options),r._defaulted&&!vo(this.options,r)&&E(this,$t).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Le),observer:this});const o=this.hasListeners();o&&Bv(E(this,Le),s,this.options,r)&&je(this,Ke,bs).call(this),this.updateResult(),o&&(E(this,Le)!==s||Tn(this.options.enabled,E(this,Le))!==Tn(r.enabled,E(this,Le))||El(this.options.staleTime,E(this,Le))!==El(r.staleTime,E(this,Le)))&&je(this,Ke,Td).call(this);const f=je(this,Ke,jd).call(this);o&&(E(this,Le)!==s||Tn(this.options.enabled,E(this,Le))!==Tn(r.enabled,E(this,Le))||f!==E(this,gl))&&je(this,Ke,wd).call(this,f)}getOptimisticResult(a){const r=E(this,$t).getQueryCache().build(E(this,$t),a),s=this.createResult(r,a);return KS(this,s)&&(te(this,qt,s),te(this,lr,this.options),te(this,Wl,E(this,Le).state)),s}getCurrentResult(){return E(this,qt)}trackResult(a,r){return new Proxy(a,{get:(s,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Na).status==="pending"&&E(this,Na).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(a){E(this,sr).add(a)}getCurrentQuery(){return E(this,Le)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=E(this,$t).defaultQueryOptions(a),s=E(this,$t).getQueryCache().build(E(this,$t),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(a){return je(this,Ke,bs).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,qt)))}createResult(a,r){var he;const s=E(this,Le),o=this.options,f=E(this,qt),h=E(this,Wl),m=E(this,lr),y=a!==s?a.state:E(this,As),{state:x}=a;let S={...x},C=!1,M;if(r._optimisticResults){const Ne=this.hasListeners(),Qe=!Ne&&Lv(a,r),qe=Ne&&Bv(a,s,r,o);(Qe||qe)&&(S={...S,...Wg(x.data,a.options)}),r._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:L,errorUpdatedAt:j,status:A}=S;M=S.data;let z=!1;if(r.placeholderData!==void 0&&M===void 0&&A==="pending"){let Ne;f!=null&&f.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(Ne=f.data,z=!0):Ne=typeof r.placeholderData=="function"?r.placeholderData((he=E(this,rr))==null?void 0:he.state.data,E(this,rr)):r.placeholderData,Ne!==void 0&&(A="success",M=Ed(f==null?void 0:f.data,Ne,r),C=!0)}if(r.select&&M!==void 0&&!z)if(f&&M===(h==null?void 0:h.data)&&r.select===E(this,Rs))M=E(this,ir);else try{te(this,Rs,r.select),M=r.select(M),M=Ed(f==null?void 0:f.data,M,r),te(this,ir,M),te(this,vl,null)}catch(Ne){te(this,vl,Ne)}E(this,vl)&&(L=E(this,vl),M=E(this,ir),j=Date.now(),A="error");const J=S.fetchStatus==="fetching",H=A==="pending",V=A==="error",Y=H&&J,X=M!==void 0,G={status:A,fetchStatus:S.fetchStatus,isPending:H,isSuccess:A==="success",isError:V,isInitialLoading:Y,isLoading:Y,data:M,dataUpdatedAt:S.dataUpdatedAt,error:L,errorUpdatedAt:j,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:J,isRefetching:J&&!H,isLoadingError:V&&!X,isPaused:S.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:V&&X,isStale:nh(a,r),refetch:this.refetch,promise:E(this,Na),isEnabled:Tn(r.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const Ne=G.data!==void 0,Qe=G.status==="error"&&!Ne,qe=De=>{Qe?De.reject(G.error):Ne&&De.resolve(G.data)},pt=()=>{const De=te(this,Na,G.promise=Cd());qe(De)},it=E(this,Na);switch(it.status){case"pending":a.queryHash===s.queryHash&&qe(it);break;case"fulfilled":(Qe||G.data!==it.value)&&pt();break;case"rejected":(!Qe||G.error!==it.reason)&&pt();break}}return G}updateResult(){const a=E(this,qt),r=this.createResult(E(this,Le),this.options);if(te(this,Wl,E(this,Le).state),te(this,lr,this.options),E(this,Wl).data!==void 0&&te(this,rr,E(this,Le)),vo(r,a))return;te(this,qt,r);const s=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!E(this,sr).size)return!0;const h=new Set(f??E(this,sr));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,qt)).some(m=>{const v=m;return E(this,qt)[v]!==a[v]&&h.has(v)})};je(this,Ke,eb).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&je(this,Ke,Ad).call(this)}},$t=new WeakMap,Le=new WeakMap,As=new WeakMap,qt=new WeakMap,Wl=new WeakMap,lr=new WeakMap,Na=new WeakMap,vl=new WeakMap,Rs=new WeakMap,ir=new WeakMap,rr=new WeakMap,ei=new WeakMap,ti=new WeakMap,gl=new WeakMap,sr=new WeakMap,Ke=new WeakSet,bs=function(a){je(this,Ke,Md).call(this);let r=E(this,Le).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Ht)),r},Td=function(){je(this,Ke,Rd).call(this);const a=El(this.options.staleTime,E(this,Le));if(Es.isServer()||E(this,qt).isStale||!Sd(a))return;const s=Xg(E(this,qt).dataUpdatedAt,a)+1;te(this,ei,Kl.setTimeout(()=>{E(this,qt).isStale||this.updateResult()},s))},jd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Le)):this.options.refetchInterval)??!1},wd=function(a){je(this,Ke,Od).call(this),te(this,gl,a),!(Es.isServer()||Tn(this.options.enabled,E(this,Le))===!1||!Sd(E(this,gl))||E(this,gl)===0)&&te(this,ti,Kl.setInterval(()=>{(this.options.refetchIntervalInBackground||Pd.isFocused())&&je(this,Ke,bs).call(this)},E(this,gl)))},Ad=function(){je(this,Ke,Td).call(this),je(this,Ke,wd).call(this,je(this,Ke,jd).call(this))},Rd=function(){E(this,ei)&&(Kl.clearTimeout(E(this,ei)),te(this,ei,void 0))},Od=function(){E(this,ti)&&(Kl.clearInterval(E(this,ti)),te(this,ti,void 0))},Md=function(){const a=E(this,$t).getQueryCache().build(E(this,$t),this.options);if(a===E(this,Le))return;const r=E(this,Le);te(this,Le,a),te(this,As,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},eb=function(a){Et.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(E(this,qt))}),E(this,$t).getQueryCache().notify({query:E(this,Le),type:"observerResultsUpdated"})})},Bg);function XS(l,a){return Tn(a.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&a.retryOnMount===!1)}function Lv(l,a){return XS(l,a)||l.state.data!==void 0&&Dd(l,a,a.refetchOnMount)}function Dd(l,a,r){if(Tn(a.enabled,l)!==!1&&El(a.staleTime,l)!=="static"){const s=typeof r=="function"?r(l):r;return s==="always"||s!==!1&&nh(l,a)}return!1}function Bv(l,a,r,s){return(l!==a||Tn(s.enabled,l)===!1)&&(!r.suspense||l.state.status!=="error")&&nh(l,r)}function nh(l,a){return Tn(a.enabled,l)!==!1&&l.isStaleByTime(El(a.staleTime,l))}function KS(l,a){return!vo(l.getCurrentResult(),a)}function qv(l){return{onFetch:(a,r)=>{var x,S,C,M,L;const s=a.options,o=(C=(S=(x=a.fetchOptions)==null?void 0:x.meta)==null?void 0:S.fetchMore)==null?void 0:C.direction,f=((M=a.state.data)==null?void 0:M.pages)||[],h=((L=a.state.data)==null?void 0:L.pageParams)||[];let m={pages:[],pageParams:[]},v=0;const y=async()=>{let j=!1;const A=H=>{qS(H,()=>a.signal,()=>j=!0)},z=Fg(a.options,a.fetchOptions),J=async(H,V,Y)=>{if(j)return Promise.reject();if(V==null&&H.pages.length)return Promise.resolve(H);const $=(()=>{const Qe={client:a.client,queryKey:a.queryKey,pageParam:V,direction:Y?"backward":"forward",meta:a.options.meta};return A(Qe),Qe})(),G=await z($),{maxPages:he}=a.options,Ne=Y?BS:LS;return{pages:Ne(H.pages,G,he),pageParams:Ne(H.pageParams,V,he)}};if(o&&f.length){const H=o==="backward",V=H?FS:Hv,Y={pages:f,pageParams:h},X=V(s,Y);m=await J(Y,X,H)}else{const H=l??f.length;do{const V=v===0?h[0]??s.initialPageParam:Hv(s,m);if(v>0&&V==null)break;m=await J(m,V),v++}while(v<H)}return m};a.options.persister?a.fetchFn=()=>{var j,A;return(A=(j=a.options).persister)==null?void 0:A.call(j,y,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=y}}}function Hv(l,{pages:a,pageParams:r}){const s=a.length-1;return a.length>0?l.getNextPageParam(a[s],a,r[s],r):void 0}function FS(l,{pages:a,pageParams:r}){var s;return a.length>0?(s=l.getPreviousPageParam)==null?void 0:s.call(l,a[0],a,r[0],r):void 0}var Os,Fn,kt,ni,Jn,fl,qg,JS=(qg=class extends Ig{constructor(a){super();pe(this,Jn);pe(this,Os);pe(this,Fn);pe(this,kt);pe(this,ni);te(this,Os,a.client),this.mutationId=a.mutationId,te(this,kt,a.mutationCache),te(this,Fn,[]),this.state=a.state||tb(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){E(this,Fn).includes(a)||(E(this,Fn).push(a),this.clearGcTimeout(),E(this,kt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){te(this,Fn,E(this,Fn).filter(r=>r!==a)),this.scheduleGc(),E(this,kt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){E(this,Fn).length||(this.state.status==="pending"?this.scheduleGc():E(this,kt).remove(this))}continue(){var a;return((a=E(this,ni))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var h,m,v,y,x,S,C,M,L,j,A,z,J,H,V,Y,X,$;const r=()=>{je(this,Jn,fl).call(this,{type:"continue"})},s={client:E(this,Os),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,ni,$g({fn:()=>this.options.mutationFn?this.options.mutationFn(a,s):Promise.reject(new Error("No mutationFn found")),onFail:(G,he)=>{je(this,Jn,fl).call(this,{type:"failed",failureCount:G,error:he})},onPause:()=>{je(this,Jn,fl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,kt).canRun(this)}));const o=this.state.status==="pending",f=!E(this,ni).canStart();try{if(o)r();else{je(this,Jn,fl).call(this,{type:"pending",variables:a,isPaused:f}),E(this,kt).config.onMutate&&await E(this,kt).config.onMutate(a,this,s);const he=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,a,s));he!==this.state.context&&je(this,Jn,fl).call(this,{type:"pending",context:he,variables:a,isPaused:f})}const G=await E(this,ni).start();return await((y=(v=E(this,kt).config).onSuccess)==null?void 0:y.call(v,G,a,this.state.context,this,s)),await((S=(x=this.options).onSuccess)==null?void 0:S.call(x,G,a,this.state.context,s)),await((M=(C=E(this,kt).config).onSettled)==null?void 0:M.call(C,G,null,this.state.variables,this.state.context,this,s)),await((j=(L=this.options).onSettled)==null?void 0:j.call(L,G,null,a,this.state.context,s)),je(this,Jn,fl).call(this,{type:"success",data:G}),G}catch(G){try{await((z=(A=E(this,kt).config).onError)==null?void 0:z.call(A,G,a,this.state.context,this,s))}catch(he){Promise.reject(he)}try{await((H=(J=this.options).onError)==null?void 0:H.call(J,G,a,this.state.context,s))}catch(he){Promise.reject(he)}try{await((Y=(V=E(this,kt).config).onSettled)==null?void 0:Y.call(V,void 0,G,this.state.variables,this.state.context,this,s))}catch(he){Promise.reject(he)}try{await(($=(X=this.options).onSettled)==null?void 0:$.call(X,void 0,G,a,this.state.context,s))}catch(he){Promise.reject(he)}throw je(this,Jn,fl).call(this,{type:"error",error:G}),G}finally{E(this,kt).runNext(this)}}},Os=new WeakMap,Fn=new WeakMap,kt=new WeakMap,ni=new WeakMap,Jn=new WeakSet,fl=function(a){const r=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Et.batch(()=>{E(this,Fn).forEach(s=>{s.onMutationUpdate(a)}),E(this,kt).notify({mutation:this,type:"updated",action:a})})},qg);function tb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ta,Un,Ms,Hg,$S=(Hg=class extends vr{constructor(a={}){super();pe(this,Ta);pe(this,Un);pe(this,Ms);this.config=a,te(this,Ta,new Set),te(this,Un,new Map),te(this,Ms,0)}build(a,r,s){const o=new JS({client:a,mutationCache:this,mutationId:++Wu(this,Ms)._,options:a.defaultMutationOptions(r),state:s});return this.add(o),o}add(a){E(this,Ta).add(a);const r=eo(a);if(typeof r=="string"){const s=E(this,Un).get(r);s?s.push(a):E(this,Un).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(E(this,Ta).delete(a)){const r=eo(a);if(typeof r=="string"){const s=E(this,Un).get(r);if(s)if(s.length>1){const o=s.indexOf(a);o!==-1&&s.splice(o,1)}else s[0]===a&&E(this,Un).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=eo(a);if(typeof r=="string"){const s=E(this,Un).get(r),o=s==null?void 0:s.find(f=>f.state.status==="pending");return!o||o===a}else return!0}runNext(a){var s;const r=eo(a);if(typeof r=="string"){const o=(s=E(this,Un).get(r))==null?void 0:s.find(f=>f!==a&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Et.batch(()=>{E(this,Ta).forEach(a=>{this.notify({type:"removed",mutation:a})}),E(this,Ta).clear(),E(this,Un).clear()})}getAll(){return Array.from(E(this,Ta))}find(a){const r={exact:!0,...a};return this.getAll().find(s=>Mv(r,s))}findAll(a={}){return this.getAll().filter(r=>Mv(a,r))}notify(a){Et.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return Et.batch(()=>Promise.all(a.map(r=>r.continue().catch(Ht))))}},Ta=new WeakMap,Un=new WeakMap,Ms=new WeakMap,Hg);function eo(l){var a;return(a=l.options.scope)==null?void 0:a.id}var ja,bl,It,wa,Da,co,zd,Qg,IS=(Qg=class extends vr{constructor(r,s){super();pe(this,Da);pe(this,ja);pe(this,bl);pe(this,It);pe(this,wa);te(this,ja,r),this.setOptions(s),this.bindMethods(),je(this,Da,co).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const s=this.options;this.options=E(this,ja).defaultMutationOptions(r),vo(this.options,s)||E(this,ja).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,It),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ai(s.mutationKey)!==ai(this.options.mutationKey)?this.reset():((o=E(this,It))==null?void 0:o.state.status)==="pending"&&E(this,It).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=E(this,It))==null||r.removeObserver(this)}onMutationUpdate(r){je(this,Da,co).call(this),je(this,Da,zd).call(this,r)}getCurrentResult(){return E(this,bl)}reset(){var r;(r=E(this,It))==null||r.removeObserver(this),te(this,It,void 0),je(this,Da,co).call(this),je(this,Da,zd).call(this)}mutate(r,s){var o;return te(this,wa,s),(o=E(this,It))==null||o.removeObserver(this),te(this,It,E(this,ja).getMutationCache().build(E(this,ja),this.options)),E(this,It).addObserver(this),E(this,It).execute(r)}},ja=new WeakMap,bl=new WeakMap,It=new WeakMap,wa=new WeakMap,Da=new WeakSet,co=function(){var s;const r=((s=E(this,It))==null?void 0:s.state)??tb();te(this,bl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},zd=function(r){Et.batch(()=>{var s,o,f,h,m,v,y,x;if(E(this,wa)&&this.hasListeners()){const S=E(this,bl).variables,C=E(this,bl).context,M={client:E(this,ja),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(o=(s=E(this,wa)).onSuccess)==null||o.call(s,r.data,S,C,M)}catch(L){Promise.reject(L)}try{(h=(f=E(this,wa)).onSettled)==null||h.call(f,r.data,null,S,C,M)}catch(L){Promise.reject(L)}}else if((r==null?void 0:r.type)==="error"){try{(v=(m=E(this,wa)).onError)==null||v.call(m,r.error,S,C,M)}catch(L){Promise.reject(L)}try{(x=(y=E(this,wa)).onSettled)==null||x.call(y,void 0,r.error,S,C,M)}catch(L){Promise.reject(L)}}}this.listeners.forEach(S=>{S(E(this,bl))})})},Qg),$n,Zg,PS=(Zg=class extends vr{constructor(a={}){super();pe(this,$n);this.config=a,te(this,$n,new Map)}build(a,r,s){const o=r.queryKey,f=r.queryHash??Wd(o,r);let h=this.get(f);return h||(h=new GS({client:a,queryKey:o,queryHash:f,options:a.defaultQueryOptions(r),state:s,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){E(this,$n).has(a.queryHash)||(E(this,$n).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=E(this,$n).get(a.queryHash);r&&(a.destroy(),r===a&&E(this,$n).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Et.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return E(this,$n).get(a)}getAll(){return[...E(this,$n).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(s=>Ov(r,s))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(s=>Ov(a,s)):r}notify(a){Et.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},$n=new WeakMap,Zg),ct,xl,Sl,ur,or,_l,cr,fr,Vg,WS=(Vg=class{constructor(l={}){pe(this,ct);pe(this,xl);pe(this,Sl);pe(this,ur);pe(this,or);pe(this,_l);pe(this,cr);pe(this,fr);te(this,ct,l.queryCache||new PS),te(this,xl,l.mutationCache||new $S),te(this,Sl,l.defaultOptions||{}),te(this,ur,new Map),te(this,or,new Map),te(this,_l,0)}mount(){Wu(this,_l)._++,E(this,_l)===1&&(te(this,cr,Pd.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,ct).onFocus())})),te(this,fr,go.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,ct).onOnline())})))}unmount(){var l,a;Wu(this,_l)._--,E(this,_l)===0&&((l=E(this,cr))==null||l.call(this),te(this,cr,void 0),(a=E(this,fr))==null||a.call(this),te(this,fr,void 0))}isFetching(l){return E(this,ct).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return E(this,xl).findAll({...l,status:"pending"}).length}getQueryData(l){var r;const a=this.defaultQueryOptions({queryKey:l});return(r=E(this,ct).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(l){const a=this.defaultQueryOptions(l),r=E(this,ct).build(this,a),s=r.state.data;return s===void 0?this.fetchQuery(l):(l.revalidateIfStale&&r.isStaleByTime(El(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(l){return E(this,ct).findAll(l).map(({queryKey:a,state:r})=>{const s=r.data;return[a,s]})}setQueryData(l,a,r){const s=this.defaultQueryOptions({queryKey:l}),o=E(this,ct).get(s.queryHash),f=o==null?void 0:o.state.data,h=zS(a,f);if(h!==void 0)return E(this,ct).build(this,s).setData(h,{...r,manual:!0})}setQueriesData(l,a,r){return Et.batch(()=>E(this,ct).findAll(l).map(({queryKey:s})=>[s,this.setQueryData(s,a,r)]))}getQueryState(l){var r;const a=this.defaultQueryOptions({queryKey:l});return(r=E(this,ct).get(a.queryHash))==null?void 0:r.state}removeQueries(l){const a=E(this,ct);Et.batch(()=>{a.findAll(l).forEach(r=>{a.remove(r)})})}resetQueries(l,a){const r=E(this,ct);return Et.batch(()=>(r.findAll(l).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...l},a)))}cancelQueries(l,a={}){const r={revert:!0,...a},s=Et.batch(()=>E(this,ct).findAll(l).map(o=>o.cancel(r)));return Promise.all(s).then(Ht).catch(Ht)}invalidateQueries(l,a={}){return Et.batch(()=>(E(this,ct).findAll(l).forEach(r=>{r.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},a)))}refetchQueries(l,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},s=Et.batch(()=>E(this,ct).findAll(l).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,r);return r.throwOnError||(f=f.catch(Ht)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(Ht)}fetchQuery(l){const a=this.defaultQueryOptions(l);a.retry===void 0&&(a.retry=!1);const r=E(this,ct).build(this,a);return r.isStaleByTime(El(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(Ht).catch(Ht)}fetchInfiniteQuery(l){return l.behavior=qv(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(Ht).catch(Ht)}ensureInfiniteQueryData(l){return l.behavior=qv(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return go.isOnline()?E(this,xl).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,ct)}getMutationCache(){return E(this,xl)}getDefaultOptions(){return E(this,Sl)}setDefaultOptions(l){te(this,Sl,l)}setQueryDefaults(l,a){E(this,ur).set(ai(l),{queryKey:l,defaultOptions:a})}getQueryDefaults(l){const a=[...E(this,ur).values()],r={};return a.forEach(s=>{_s(l,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(l,a){E(this,or).set(ai(l),{mutationKey:l,defaultOptions:a})}getMutationDefaults(l){const a=[...E(this,or).values()],r={};return a.forEach(s=>{_s(l,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(l){if(l._defaulted)return l;const a={...E(this,Sl).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return a.queryHash||(a.queryHash=Wd(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===eh&&(a.enabled=!1),a}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...E(this,Sl).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){E(this,ct).clear(),E(this,xl).clear()}},ct=new WeakMap,xl=new WeakMap,Sl=new WeakMap,ur=new WeakMap,or=new WeakMap,_l=new WeakMap,cr=new WeakMap,fr=new WeakMap,Vg),nb=b.createContext(void 0),gr=l=>{const a=b.useContext(nb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},e_=({client:l,children:a})=>(b.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),d.jsx(nb.Provider,{value:l,children:a})),ab=b.createContext(!1),t_=()=>b.useContext(ab);ab.Provider;function n_(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var a_=b.createContext(n_()),l_=()=>b.useContext(a_),i_=(l,a,r)=>{const s=r!=null&&r.state.error&&typeof l.throwOnError=="function"?th(l.throwOnError,[r.state.error,r]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||s)&&(a.isReset()||(l.retryOnMount=!1))},r_=l=>{b.useEffect(()=>{l.clearReset()},[l])},s_=({result:l,errorResetBoundary:a,throwOnError:r,query:s,suspense:o})=>l.isError&&!a.isReset()&&!l.isFetching&&s&&(o&&l.data===void 0||th(r,[l.error,s])),u_=l=>{if(l.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),s=l.staleTime;l.staleTime=typeof s=="function"?(...o)=>r(s(...o)):r(s),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},o_=(l,a)=>l.isLoading&&l.isFetching&&!a,c_=(l,a)=>(l==null?void 0:l.suspense)&&a.isPending,Qv=(l,a,r)=>a.fetchOptimistic(l).catch(()=>{r.clearReset()});function f_(l,a,r){var C,M,L,j;const s=t_(),o=l_(),f=gr(),h=f.defaultQueryOptions(l);(M=(C=f.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||M.call(C,h);const m=f.getQueryCache().get(h.queryHash);h._optimisticResults=s?"isRestoring":"optimistic",u_(h),i_(h,o,m),r_(o);const v=!f.getQueryCache().get(h.queryHash),[y]=b.useState(()=>new a(f,h)),x=y.getOptimisticResult(h),S=!s&&l.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(A=>{const z=S?y.subscribe(Et.batchCalls(A)):Ht;return y.updateResult(),z},[y,S]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),b.useEffect(()=>{y.setOptions(h)},[h,y]),c_(h,x))throw Qv(h,y,o);if(s_({result:x,errorResetBoundary:o,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw x.error;if((j=(L=f.getDefaultOptions().queries)==null?void 0:L._experimental_afterQuery)==null||j.call(L,h,x),h.experimental_prefetchInRender&&!Es.isServer()&&o_(x,s)){const A=v?Qv(h,y,o):m==null?void 0:m.promise;A==null||A.catch(Ht).finally(()=>{y.updateResult()})}return h.notifyOnChangeProps?x:y.trackResult(x)}function Ut(l,a){return f_(l,YS)}function fn(l,a){const r=gr(),[s]=b.useState(()=>new IS(r,l));b.useEffect(()=>{s.setOptions(l)},[s,l]);const o=b.useSyncExternalStore(b.useCallback(h=>s.subscribe(Et.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=b.useCallback((h,m)=>{s.mutate(h,m).catch(Ht)},[s]);if(o.error&&th(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}/**
|
|
50
|
+
* react-router v7.13.1
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Zv="popstate";function Vv(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function d_(l={}){function a(s,o){var y;let f=(y=o.state)==null?void 0:y.masked,{pathname:h,search:m,hash:v}=f||s.location;return kd("",{pathname:h,search:m,hash:v},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,o){return typeof o=="string"?o:Cs(o)}return m_(a,r,null,l)}function st(l,a){if(l===!1||l===null||typeof l>"u")throw new Error(a)}function Qn(l,a){if(!l){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function h_(){return Math.random().toString(36).substring(2,10)}function Gv(l,a){return{usr:l.state,key:l.key,idx:a,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function kd(l,a,r=null,s,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof a=="string"?br(a):a,state:r,key:a&&a.key||s||h_(),unstable_mask:o}}function Cs({pathname:l="/",search:a="",hash:r=""}){return a&&a!=="?"&&(l+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(l+=r.charAt(0)==="#"?r:"#"+r),l}function br(l){let a={};if(l){let r=l.indexOf("#");r>=0&&(a.hash=l.substring(r),l=l.substring(0,r));let s=l.indexOf("?");s>=0&&(a.search=l.substring(s),l=l.substring(0,s)),l&&(a.pathname=l)}return a}function m_(l,a,r,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,h=o.history,m="POP",v=null,y=x();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function x(){return(h.state||{idx:null}).idx}function S(){m="POP";let A=x(),z=A==null?null:A-y;y=A,v&&v({action:m,location:j.location,delta:z})}function C(A,z){m="PUSH";let J=Vv(A)?A:kd(j.location,A,z);y=x()+1;let H=Gv(J,y),V=j.createHref(J.unstable_mask||J);try{h.pushState(H,"",V)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;o.location.assign(V)}f&&v&&v({action:m,location:j.location,delta:1})}function M(A,z){m="REPLACE";let J=Vv(A)?A:kd(j.location,A,z);y=x();let H=Gv(J,y),V=j.createHref(J.unstable_mask||J);h.replaceState(H,"",V),f&&v&&v({action:m,location:j.location,delta:0})}function L(A){return p_(A)}let j={get action(){return m},get location(){return l(o,h)},listen(A){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Zv,S),v=A,()=>{o.removeEventListener(Zv,S),v=null}},createHref(A){return a(o,A)},createURL:L,encodeLocation(A){let z=L(A);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:C,replace:M,go(A){return h.go(A)}};return j}function p_(l,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),st(r,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:Cs(l);return s=s.replace(/ $/,"%20"),!a&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function lb(l,a,r="/"){return y_(l,a,r,!1)}function y_(l,a,r,s){let o=typeof a=="string"?br(a):a,f=za(o.pathname||"/",r);if(f==null)return null;let h=ib(l);v_(h);let m=null;for(let v=0;m==null&&v<h.length;++v){let y=w_(f);m=T_(h[v],y,s)}return m}function ib(l,a=[],r=[],s="",o=!1){let f=(h,m,v=o,y)=>{let x={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&v)return;st(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let S=ea([s,x.relativePath]),C=r.concat(x);h.children&&h.children.length>0&&(st(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),ib(h.children,a,C,S,v)),!(h.path==null&&!h.index)&&a.push({path:S,score:C_(S,h.index),routesMeta:C})};return l.forEach((h,m)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))f(h,m);else for(let y of rb(h.path))f(h,m,!0,y)}),a}function rb(l){let a=l.split("/");if(a.length===0)return[];let[r,...s]=a,o=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let h=rb(s.join("/")),m=[];return m.push(...h.map(v=>v===""?f:[f,v].join("/"))),o&&m.push(...h),m.map(v=>l.startsWith("/")&&v===""?"/":v)}function v_(l){l.sort((a,r)=>a.score!==r.score?r.score-a.score:N_(a.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var g_=/^:[\w-]+$/,b_=3,x_=2,S_=1,__=10,E_=-2,Yv=l=>l==="*";function C_(l,a){let r=l.split("/"),s=r.length;return r.some(Yv)&&(s+=E_),a&&(s+=x_),r.filter(o=>!Yv(o)).reduce((o,f)=>o+(g_.test(f)?b_:f===""?S_:__),s)}function N_(l,a){return l.length===a.length&&l.slice(0,-1).every((s,o)=>s===a[o])?l[l.length-1]-a[a.length-1]:0}function T_(l,a,r=!1){let{routesMeta:s}=l,o={},f="/",h=[];for(let m=0;m<s.length;++m){let v=s[m],y=m===s.length-1,x=f==="/"?a:a.slice(f.length)||"/",S=bo({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},x),C=v.route;if(!S&&y&&r&&!s[s.length-1].route.index&&(S=bo({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!S)return null;Object.assign(o,S.params),h.push({params:o,pathname:ea([f,S.pathname]),pathnameBase:M_(ea([f,S.pathnameBase])),route:C}),S.pathnameBase!=="/"&&(f=ea([f,S.pathnameBase]))}return h}function bo(l,a){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[r,s]=j_(l.path,l.caseSensitive,l.end),o=a.match(r);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:s.reduce((y,{paramName:x,isOptional:S},C)=>{if(x==="*"){let L=m[C]||"";h=f.slice(0,f.length-L.length).replace(/(.)\/+$/,"$1")}const M=m[C];return S&&!M?y[x]=void 0:y[x]=(M||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:h,pattern:l}}function j_(l,a=!1,r=!0){Qn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,v,y,x)=>{if(s.push({paramName:m,isOptional:v!=null}),v){let S=x.charAt(y+h.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),s]}function w_(l){try{return l.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Qn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),l}}function za(l,a){if(a==="/")return l;if(!l.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,s=l.charAt(r);return s&&s!=="/"?null:l.slice(r)||"/"}var A_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function R_(l,a="/"){let{pathname:r,search:s="",hash:o=""}=typeof l=="string"?br(l):l,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=Xv(r.substring(1),"/"):f=Xv(r,a)):f=a,{pathname:f,search:D_(s),hash:z_(o)}}function Xv(l,a){let r=a.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function sd(l,a,r,s){return`Cannot include a '${l}' character in a manually specified \`to.${a}\` field [${JSON.stringify(s)}]. 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 O_(l){return l.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function ah(l){let a=O_(l);return a.map((r,s)=>s===a.length-1?r.pathname:r.pathnameBase)}function Oo(l,a,r,s=!1){let o;typeof l=="string"?o=br(l):(o={...l},st(!o.pathname||!o.pathname.includes("?"),sd("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),sd("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),sd("#","search","hash",o)));let f=l===""||o.pathname==="",h=f?"/":o.pathname,m;if(h==null)m=r;else{let S=a.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),S-=1;o.pathname=C.join("/")}m=S>=0?a[S]:"/"}let v=R_(o,m),y=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(y||x)&&(v.pathname+="/"),v}var ea=l=>l.join("/").replace(/\/\/+/g,"/"),M_=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),D_=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,z_=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,k_=class{constructor(l,a,r,s=!1){this.status=l,this.statusText=a||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function U_(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function L_(l){return l.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var sb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ub(l,a){let r=l;if(typeof r!="string"||!A_.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,o=!1;if(sb)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=za(h.pathname,a);h.origin===f.origin&&m!=null?r=m+h.search+h.hash:o=!0}catch{Qn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ob=["POST","PUT","PATCH","DELETE"];new Set(ob);var B_=["GET",...ob];new Set(B_);var xr=b.createContext(null);xr.displayName="DataRouter";var Mo=b.createContext(null);Mo.displayName="DataRouterState";var q_=b.createContext(!1),cb=b.createContext({isTransitioning:!1});cb.displayName="ViewTransition";var H_=b.createContext(new Map);H_.displayName="Fetchers";var Q_=b.createContext(null);Q_.displayName="Await";var hn=b.createContext(null);hn.displayName="Navigation";var Ds=b.createContext(null);Ds.displayName="Location";var wn=b.createContext({outlet:null,matches:[],isDataRoute:!1});wn.displayName="Route";var lh=b.createContext(null);lh.displayName="RouteError";var fb="REACT_ROUTER_ERROR",Z_="REDIRECT",V_="ROUTE_ERROR_RESPONSE";function G_(l){if(l.startsWith(`${fb}:${Z_}:{`))try{let a=JSON.parse(l.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function Y_(l){if(l.startsWith(`${fb}:${V_}:{`))try{let a=JSON.parse(l.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new k_(a.status,a.statusText,a.data)}catch{}}function X_(l,{relative:a}={}){st(Sr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=b.useContext(hn),{hash:o,pathname:f,search:h}=ks(l,{relative:a}),m=f;return r!=="/"&&(m=f==="/"?r:ea([r,f])),s.createHref({pathname:m,search:h,hash:o})}function Sr(){return b.useContext(Ds)!=null}function Ua(){return st(Sr(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Ds).location}var db="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hb(l){b.useContext(hn).static||b.useLayoutEffect(l)}function zs(){let{isDataRoute:l}=b.useContext(wn);return l?uE():K_()}function K_(){st(Sr(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(xr),{basename:a,navigator:r}=b.useContext(hn),{matches:s}=b.useContext(wn),{pathname:o}=Ua(),f=JSON.stringify(ah(s)),h=b.useRef(!1);return hb(()=>{h.current=!0}),b.useCallback((v,y={})=>{if(Qn(h.current,db),!h.current)return;if(typeof v=="number"){r.go(v);return}let x=Oo(v,JSON.parse(f),o,y.relative==="path");l==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:ea([a,x.pathname])),(y.replace?r.replace:r.push)(x,y.state,y)},[a,r,f,o,l])}var F_=b.createContext(null);function J_(l){let a=b.useContext(wn).outlet;return b.useMemo(()=>a&&b.createElement(F_.Provider,{value:l},a),[a,l])}function $_(){let{matches:l}=b.useContext(wn),a=l[l.length-1];return a?a.params:{}}function ks(l,{relative:a}={}){let{matches:r}=b.useContext(wn),{pathname:s}=Ua(),o=JSON.stringify(ah(r));return b.useMemo(()=>Oo(l,JSON.parse(o),s,a==="path"),[l,o,s,a])}function I_(l,a){return mb(l,a)}function mb(l,a,r){var A;st(Sr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(hn),{matches:o}=b.useContext(wn),f=o[o.length-1],h=f?f.params:{},m=f?f.pathname:"/",v=f?f.pathnameBase:"/",y=f&&f.route;{let z=y&&y.path||"";yb(m,!y||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${z}">) 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.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let x=Ua(),S;if(a){let z=typeof a=="string"?br(a):a;st(v==="/"||((A=z.pathname)==null?void 0:A.startsWith(v)),`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 "${v}" but pathname "${z.pathname}" was given in the \`location\` prop.`),S=z}else S=x;let C=S.pathname||"/",M=C;if(v!=="/"){let z=v.replace(/^\//,"").split("/");M="/"+C.replace(/^\//,"").split("/").slice(z.length).join("/")}let L=lb(l,{pathname:M});Qn(y||L!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Qn(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 j=nE(L&&L.map(z=>Object.assign({},z,{params:Object.assign({},h,z.params),pathname:ea([v,s.encodeLocation?s.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?v:ea([v,s.encodeLocation?s.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),o,r);return a&&j?b.createElement(Ds.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...S},navigationType:"POP"}},j):j}function P_(){let l=sE(),a=U_(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),r=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},a),r?b.createElement("pre",{style:o},r):null,h)}var W_=b.createElement(P_,null),pb=class extends b.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,a){return a.location!==l.location||a.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:a.error,location:a.location,revalidation:l.revalidation||a.revalidation}}componentDidCatch(l,a){this.props.onError?this.props.onError(l,a):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const r=Y_(l.digest);r&&(l=r)}let a=l!==void 0?b.createElement(wn.Provider,{value:this.props.routeContext},b.createElement(lh.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?b.createElement(eE,{error:l},a):a}};pb.contextType=q_;var ud=new WeakMap;function eE({children:l,error:a}){let{basename:r}=b.useContext(hn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let s=G_(a.digest);if(s){let o=ud.get(a);if(o)throw o;let f=ub(s.location,r);if(sb&&!ud.get(a))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw ud.set(a,h),h}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function tE({routeContext:l,match:a,children:r}){let s=b.useContext(xr);return s&&s.static&&s.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=a.route.id),b.createElement(wn.Provider,{value:l},r)}function nE(l,a=[],r){let s=r==null?void 0:r.state;if(l==null){if(!s)return null;if(s.errors)l=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)l=s.matches;else return null}let o=l,f=s==null?void 0:s.errors;if(f!=null){let x=o.findIndex(S=>S.route.id&&(f==null?void 0:f[S.route.id])!==void 0);st(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let h=!1,m=-1;if(r&&s){h=s.renderFallback;for(let x=0;x<o.length;x++){let S=o[x];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(m=x),S.route.id){let{loaderData:C,errors:M}=s,L=S.route.loader&&!C.hasOwnProperty(S.route.id)&&(!M||M[S.route.id]===void 0);if(S.route.lazy||L){r.isStatic&&(h=!0),m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let v=r==null?void 0:r.onError,y=s&&v?(x,S)=>{var C,M;v(x,{location:s.location,params:((M=(C=s.matches)==null?void 0:C[0])==null?void 0:M.params)??{},unstable_pattern:L_(s.matches),errorInfo:S})}:void 0;return o.reduceRight((x,S,C)=>{let M,L=!1,j=null,A=null;s&&(M=f&&S.route.id?f[S.route.id]:void 0,j=S.route.errorElement||W_,h&&(m<0&&C===0?(yb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,A=null):m===C&&(L=!0,A=S.route.hydrateFallbackElement||null)));let z=a.concat(o.slice(0,C+1)),J=()=>{let H;return M?H=j:L?H=A:S.route.Component?H=b.createElement(S.route.Component,null):S.route.element?H=S.route.element:H=x,b.createElement(tE,{match:S,routeContext:{outlet:x,matches:z,isDataRoute:s!=null},children:H})};return s&&(S.route.ErrorBoundary||S.route.errorElement||C===0)?b.createElement(pb,{location:s.location,revalidation:s.revalidation,component:j,error:M,children:J(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:y}):J()},null)}function ih(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aE(l){let a=b.useContext(xr);return st(a,ih(l)),a}function lE(l){let a=b.useContext(Mo);return st(a,ih(l)),a}function iE(l){let a=b.useContext(wn);return st(a,ih(l)),a}function rh(l){let a=iE(l),r=a.matches[a.matches.length-1];return st(r.route.id,`${l} can only be used on routes that contain a unique "id"`),r.route.id}function rE(){return rh("useRouteId")}function sE(){var s;let l=b.useContext(lh),a=lE("useRouteError"),r=rh("useRouteError");return l!==void 0?l:(s=a.errors)==null?void 0:s[r]}function uE(){let{router:l}=aE("useNavigate"),a=rh("useNavigate"),r=b.useRef(!1);return hb(()=>{r.current=!0}),b.useCallback(async(o,f={})=>{Qn(r.current,db),r.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:a,...f}))},[l,a])}var Kv={};function yb(l,a,r){!a&&!Kv[l]&&(Kv[l]=!0,Qn(!1,r))}b.memo(oE);function oE({routes:l,future:a,state:r,isStatic:s,onError:o}){return mb(l,void 0,{state:r,isStatic:s,onError:o})}function vb({to:l,replace:a,state:r,relative:s}){st(Sr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=b.useContext(hn);Qn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=b.useContext(wn),{pathname:h}=Ua(),m=zs(),v=Oo(l,ah(f),h,s==="path"),y=JSON.stringify(v);return b.useEffect(()=>{m(JSON.parse(y),{replace:a,state:r,relative:s})},[m,y,s,a,r]),null}function gb(l){return J_(l.context)}function kn(l){st(!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 cE({basename:l="/",children:a=null,location:r,navigationType:s="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){st(!Sr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=l.replace(/^\/*/,"/"),v=b.useMemo(()=>({basename:m,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[m,o,f,h]);typeof r=="string"&&(r=br(r));let{pathname:y="/",search:x="",hash:S="",state:C=null,key:M="default",unstable_mask:L}=r,j=b.useMemo(()=>{let A=za(y,m);return A==null?null:{location:{pathname:A,search:x,hash:S,state:C,key:M,unstable_mask:L},navigationType:s}},[m,y,x,S,C,M,s,L]);return Qn(j!=null,`<Router basename="${m}"> is not able to match the URL "${y}${x}${S}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:b.createElement(hn.Provider,{value:v},b.createElement(Ds.Provider,{children:a,value:j}))}function fE({children:l,location:a}){return I_(Ud(l),a)}function Ud(l,a=[]){let r=[];return b.Children.forEach(l,(s,o)=>{if(!b.isValidElement(s))return;let f=[...a,o];if(s.type===b.Fragment){r.push.apply(r,Ud(s.props.children,f));return}st(s.type===kn,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),st(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Ud(s.props.children,f)),r.push(h)}),r}var fo="get",ho="application/x-www-form-urlencoded";function Do(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function dE(l){return Do(l)&&l.tagName.toLowerCase()==="button"}function hE(l){return Do(l)&&l.tagName.toLowerCase()==="form"}function mE(l){return Do(l)&&l.tagName.toLowerCase()==="input"}function pE(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function yE(l,a){return l.button===0&&(!a||a==="_self")&&!pE(l)}var to=null;function vE(){if(to===null)try{new FormData(document.createElement("form"),0),to=!1}catch{to=!0}return to}var gE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function od(l){return l!=null&&!gE.has(l)?(Qn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ho}"`),null):l}function bE(l,a){let r,s,o,f,h;if(hE(l)){let m=l.getAttribute("action");s=m?za(m,a):null,r=l.getAttribute("method")||fo,o=od(l.getAttribute("enctype"))||ho,f=new FormData(l)}else if(dE(l)||mE(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||m.getAttribute("action");if(s=v?za(v,a):null,r=l.getAttribute("formmethod")||m.getAttribute("method")||fo,o=od(l.getAttribute("formenctype"))||od(m.getAttribute("enctype"))||ho,f=new FormData(m,l),!vE()){let{name:y,type:x,value:S}=l;if(x==="image"){let C=y?`${y}.`:"";f.append(`${C}x`,"0"),f.append(`${C}y`,"0")}else y&&f.append(y,S)}}else{if(Do(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=fo,s=null,o=ho,h=l}return f&&o==="text/plain"&&(h=f,f=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sh(l,a){if(l===!1||l===null||typeof l>"u")throw new Error(a)}function xE(l,a,r,s){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${s}`:o.pathname=`${o.pathname}.${s}`:o.pathname==="/"?o.pathname=`_root.${s}`:a&&za(o.pathname,a)==="/"?o.pathname=`${a.replace(/\/$/,"")}/_root.${s}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${s}`,o}async function SE(l,a){if(l.id in a)return a[l.id];try{let r=await import(l.module);return a[l.id]=r,r}catch(r){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _E(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function EE(l,a,r){let s=await Promise.all(l.map(async o=>{let f=a.routes[o.route.id];if(f){let h=await SE(f,r);return h.links?h.links():[]}return[]}));return jE(s.flat(1).filter(_E).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Fv(l,a,r,s,o,f){let h=(v,y)=>r[y]?v.route.id!==r[y].route.id:!0,m=(v,y)=>{var x;return r[y].pathname!==v.pathname||((x=r[y].route.path)==null?void 0:x.endsWith("*"))&&r[y].params["*"]!==v.params["*"]};return f==="assets"?a.filter((v,y)=>h(v,y)||m(v,y)):f==="data"?a.filter((v,y)=>{var S;let x=s.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(h(v,y)||m(v,y))return!0;if(v.route.shouldRevalidate){let C=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((S=r[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function CE(l,a,{includeHydrateFallback:r}={}){return NE(l.map(s=>{let o=a.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function NE(l){return[...new Set(l)]}function TE(l){let a={},r=Object.keys(l).sort();for(let s of r)a[s]=l[s];return a}function jE(l,a){let r=new Set;return new Set(a),l.reduce((s,o)=>{let f=JSON.stringify(TE(o));return r.has(f)||(r.add(f),s.push({key:f,link:o})),s},[])}function bb(){let l=b.useContext(xr);return sh(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function wE(){let l=b.useContext(Mo);return sh(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var uh=b.createContext(void 0);uh.displayName="FrameworkContext";function xb(){let l=b.useContext(uh);return sh(l,"You must render this element inside a <HydratedRouter> element"),l}function AE(l,a){let r=b.useContext(uh),[s,o]=b.useState(!1),[f,h]=b.useState(!1),{onFocus:m,onBlur:v,onMouseEnter:y,onMouseLeave:x,onTouchStart:S}=a,C=b.useRef(null);b.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let j=z=>{z.forEach(J=>{h(J.isIntersecting)})},A=new IntersectionObserver(j,{threshold:.5});return C.current&&A.observe(C.current),()=>{A.disconnect()}}},[l]),b.useEffect(()=>{if(s){let j=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(j)}}},[s]);let M=()=>{o(!0)},L=()=>{o(!1),h(!1)};return r?l!=="intent"?[f,C,{}]:[f,C,{onFocus:ys(m,M),onBlur:ys(v,L),onMouseEnter:ys(y,M),onMouseLeave:ys(x,L),onTouchStart:ys(S,M)}]:[!1,C,{}]}function ys(l,a){return r=>{l&&l(r),r.defaultPrevented||a(r)}}function RE({page:l,...a}){let{router:r}=bb(),s=b.useMemo(()=>lb(r.routes,l,r.basename),[r.routes,l,r.basename]);return s?b.createElement(ME,{page:l,matches:s,...a}):null}function OE(l){let{manifest:a,routeModules:r}=xb(),[s,o]=b.useState([]);return b.useEffect(()=>{let f=!1;return EE(l,a,r).then(h=>{f||o(h)}),()=>{f=!0}},[l,a,r]),s}function ME({page:l,matches:a,...r}){let s=Ua(),{future:o,manifest:f,routeModules:h}=xb(),{basename:m}=bb(),{loaderData:v,matches:y}=wE(),x=b.useMemo(()=>Fv(l,a,y,f,s,"data"),[l,a,y,f,s]),S=b.useMemo(()=>Fv(l,a,y,f,s,"assets"),[l,a,y,f,s]),C=b.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let j=new Set,A=!1;if(a.forEach(J=>{var V;let H=f.routes[J.route.id];!H||!H.hasLoader||(!x.some(Y=>Y.route.id===J.route.id)&&J.route.id in v&&((V=h[J.route.id])!=null&&V.shouldRevalidate)||H.hasClientLoader?A=!0:j.add(J.route.id))}),j.size===0)return[];let z=xE(l,m,o.unstable_trailingSlashAwareDataRequests,"data");return A&&j.size>0&&z.searchParams.set("_routes",a.filter(J=>j.has(J.route.id)).map(J=>J.route.id).join(",")),[z.pathname+z.search]},[m,o.unstable_trailingSlashAwareDataRequests,v,s,f,x,a,l,h]),M=b.useMemo(()=>CE(S,f),[S,f]),L=OE(S);return b.createElement(b.Fragment,null,C.map(j=>b.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),M.map(j=>b.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),L.map(({key:j,link:A})=>b.createElement("link",{key:j,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function DE(...l){return a=>{l.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var zE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zE&&(window.__reactRouterVersion="7.13.1")}catch{}function kE({basename:l,children:a,unstable_useTransitions:r,window:s}){let o=b.useRef();o.current==null&&(o.current=d_({window:s,v5Compat:!0}));let f=o.current,[h,m]=b.useState({action:f.action,location:f.location}),v=b.useCallback(y=>{r===!1?m(y):b.startTransition(()=>m(y))},[r]);return b.useLayoutEffect(()=>f.listen(v),[f,v]),b.createElement(cE,{basename:l,children:a,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:r})}var Sb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_b=b.forwardRef(function({onClick:a,discover:r="render",prefetch:s="none",relative:o,reloadDocument:f,replace:h,unstable_mask:m,state:v,target:y,to:x,preventScrollReset:S,viewTransition:C,unstable_defaultShouldRevalidate:M,...L},j){let{basename:A,navigator:z,unstable_useTransitions:J}=b.useContext(hn),H=typeof x=="string"&&Sb.test(x),V=ub(x,A);x=V.to;let Y=X_(x,{relative:o}),X=Ua(),$=null;if(m){let De=Oo(m,[],X.unstable_mask?X.unstable_mask.pathname:"/",!0);A!=="/"&&(De.pathname=De.pathname==="/"?A:ea([A,De.pathname])),$=z.createHref(De)}let[G,he,Ne]=AE(s,L),Qe=BE(x,{replace:h,unstable_mask:m,state:v,target:y,preventScrollReset:S,relative:o,viewTransition:C,unstable_defaultShouldRevalidate:M,unstable_useTransitions:J});function qe(De){a&&a(De),De.defaultPrevented||Qe(De)}let pt=!(V.isExternal||f),it=b.createElement("a",{...L,...Ne,href:(pt?$:void 0)||V.absoluteURL||Y,onClick:pt?qe:a,ref:DE(j,he),target:y,"data-discover":!H&&r==="render"?"true":void 0});return G&&!H?b.createElement(b.Fragment,null,it,b.createElement(RE,{page:Y})):it});_b.displayName="Link";var Eb=b.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:s="",end:o=!1,style:f,to:h,viewTransition:m,children:v,...y},x){let S=ks(h,{relative:y.relative}),C=Ua(),M=b.useContext(Mo),{navigator:L,basename:j}=b.useContext(hn),A=M!=null&&VE(S)&&m===!0,z=L.encodeLocation?L.encodeLocation(S).pathname:S.pathname,J=C.pathname,H=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;r||(J=J.toLowerCase(),H=H?H.toLowerCase():null,z=z.toLowerCase()),H&&j&&(H=za(H,j)||H);const V=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Y=J===z||!o&&J.startsWith(z)&&J.charAt(V)==="/",X=H!=null&&(H===z||!o&&H.startsWith(z)&&H.charAt(z.length)==="/"),$={isActive:Y,isPending:X,isTransitioning:A},G=Y?a:void 0,he;typeof s=="function"?he=s($):he=[s,Y?"active":null,X?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let Ne=typeof f=="function"?f($):f;return b.createElement(_b,{...y,"aria-current":G,className:he,ref:x,style:Ne,to:h,viewTransition:m},typeof v=="function"?v($):v)});Eb.displayName="NavLink";var UE=b.forwardRef(({discover:l="render",fetcherKey:a,navigate:r,reloadDocument:s,replace:o,state:f,method:h=fo,action:m,onSubmit:v,relative:y,preventScrollReset:x,viewTransition:S,unstable_defaultShouldRevalidate:C,...M},L)=>{let{unstable_useTransitions:j}=b.useContext(hn),A=QE(),z=ZE(m,{relative:y}),J=h.toLowerCase()==="get"?"get":"post",H=typeof m=="string"&&Sb.test(m),V=Y=>{if(v&&v(Y),Y.defaultPrevented)return;Y.preventDefault();let X=Y.nativeEvent.submitter,$=(X==null?void 0:X.getAttribute("formmethod"))||h,G=()=>A(X||Y.currentTarget,{fetcherKey:a,method:$,navigate:r,replace:o,state:f,relative:y,preventScrollReset:x,viewTransition:S,unstable_defaultShouldRevalidate:C});j&&r!==!1?b.startTransition(()=>G()):G()};return b.createElement("form",{ref:L,method:J,action:z,onSubmit:s?v:V,...M,"data-discover":!H&&l==="render"?"true":void 0})});UE.displayName="Form";function LE(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cb(l){let a=b.useContext(xr);return st(a,LE(l)),a}function BE(l,{target:a,replace:r,unstable_mask:s,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:v,unstable_useTransitions:y}={}){let x=zs(),S=Ua(),C=ks(l,{relative:h});return b.useCallback(M=>{if(yE(M,a)){M.preventDefault();let L=r!==void 0?r:Cs(S)===Cs(C),j=()=>x(l,{replace:L,unstable_mask:s,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:v});y?b.startTransition(()=>j()):j()}},[S,x,C,r,s,o,a,l,f,h,m,v,y])}var qE=0,HE=()=>`__${String(++qE)}__`;function QE(){let{router:l}=Cb("useSubmit"),{basename:a}=b.useContext(hn),r=rE(),s=l.fetch,o=l.navigate;return b.useCallback(async(f,h={})=>{let{action:m,method:v,encType:y,formData:x,body:S}=bE(f,a);if(h.navigate===!1){let C=h.fetcherKey||HE();await s(C,r,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:S,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await o(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:S,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,o,a,r])}function ZE(l,{relative:a}={}){let{basename:r}=b.useContext(hn),s=b.useContext(wn);st(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...ks(l||".",{relative:a})},h=Ua();if(l==null){f.search=h.search;let m=new URLSearchParams(f.search),v=m.getAll("index");if(v.some(x=>x==="")){m.delete("index"),v.filter(S=>S).forEach(S=>m.append("index",S));let x=m.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:ea([r,f.pathname])),Cs(f)}function VE(l,{relative:a}={}){let r=b.useContext(cb);st(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Cb("useViewTransitionState"),o=ks(l,{relative:a});if(!r.isTransitioning)return!1;let f=za(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=za(r.nextLocation.pathname,s)||r.nextLocation.pathname;return bo(o.pathname,h)!=null||bo(o.pathname,f)!=null}const GE="/api/v1";async function YE(l,a){const r=await fetch(`${GE}/admin/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:l,password:a})});if(!r.ok){const s=await r.text();let o;try{o=JSON.parse(s).error??s}catch{o=s}throw new Error(o)}return await r.json()}const Nb="/api/v1",oh="first-tree-hub:tokens";function Tb(){const l=localStorage.getItem(oh);if(!l)return null;try{return JSON.parse(l)}catch{return null}}function jb(l){localStorage.setItem(oh,JSON.stringify(l))}function wb(){localStorage.removeItem(oh)}class XE extends Error{constructor(a,r){super(r),this.status=a,this.name="ApiError"}}let vs=null;async function KE(l){return vs||(vs=(async()=>{try{const a=await fetch(`${Nb}/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:l})});if(!a.ok)return null;const r=await a.json(),s={accessToken:r.accessToken,refreshToken:r.refreshToken??l};return jb(s),s}catch{return null}finally{vs=null}})(),vs)}async function no(l,a){const{method:r="GET",body:s}=a??{},o=m=>{const v={};return m&&(v.Authorization=`Bearer ${m}`),s!==void 0&&(v["Content-Type"]="application/json"),fetch(`${Nb}${l}`,{method:r,headers:v,body:s!==void 0?JSON.stringify(s):void 0})},f=Tb();let h=await o(f==null?void 0:f.accessToken);if(h.status===401&&(f!=null&&f.refreshToken)){const m=await KE(f.refreshToken);m&&(h=await o(m.accessToken))}if(!h.ok){h.status===401&&(wb(),window.dispatchEvent(new CustomEvent("auth:logout")));const m=await h.text();let v;try{v=JSON.parse(m).error??m}catch{v=m}throw new XE(h.status,v)}if(h.status!==204)return await h.json()}const tt={get:l=>no(l),post:(l,a)=>no(l,{method:"POST",body:a}),patch:(l,a)=>no(l,{method:"PATCH",body:a}),delete:l=>no(l,{method:"DELETE"})},Ab=b.createContext(null);function FE({children:l}){const[a,r]=b.useState(()=>!!Tb()),s=b.useCallback(()=>{wb(),r(!1)},[]),o=b.useCallback(async(f,h)=>{const m=await YE(f,h);jb({accessToken:m.accessToken,refreshToken:m.refreshToken}),r(!0)},[]);return b.useEffect(()=>{const f=()=>s();return window.addEventListener("auth:logout",f),()=>window.removeEventListener("auth:logout",f)},[s]),d.jsx(Ab.Provider,{value:{isAuthenticated:a,login:o,logout:s},children:l})}function ch(){const l=b.useContext(Ab);if(!l)throw new Error("useAuth must be used within AuthProvider");return l}function JE(){const{isAuthenticated:l}=ch();return l?d.jsx(gb,{}):d.jsx(vb,{to:"/login",replace:!0})}/**
|
|
61
|
+
* @license lucide-react v0.577.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const Rb=(...l)=>l.filter((a,r,s)=>!!a&&a.trim()!==""&&s.indexOf(a)===r).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.577.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const $E=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
71
|
+
* @license lucide-react v0.577.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const IE=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,s)=>s?s.toUpperCase():r.toLowerCase());/**
|
|
76
|
+
* @license lucide-react v0.577.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const Jv=l=>{const a=IE(l);return a.charAt(0).toUpperCase()+a.slice(1)};/**
|
|
81
|
+
* @license lucide-react v0.577.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/var PE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
86
|
+
* @license lucide-react v0.577.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const WE=l=>{for(const a in l)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
|
|
91
|
+
* @license lucide-react v0.577.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const e2=b.forwardRef(({color:l="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:h,...m},v)=>b.createElement("svg",{ref:v,...PE,width:a,height:a,stroke:l,strokeWidth:s?Number(r)*24/Number(a):r,className:Rb("lucide",o),...!f&&!WE(m)&&{"aria-hidden":"true"},...m},[...h.map(([y,x])=>b.createElement(y,x)),...Array.isArray(f)?f:[f]]));/**
|
|
96
|
+
* @license lucide-react v0.577.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const Dt=(l,a)=>{const r=b.forwardRef(({className:s,...o},f)=>b.createElement(e2,{ref:f,iconNode:a,className:Rb(`lucide-${$E(Jv(l))}`,`lucide-${l}`,s),...o}));return r.displayName=Jv(l),r};/**
|
|
101
|
+
* @license lucide-react v0.577.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const t2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ob=Dt("arrow-left",t2);/**
|
|
106
|
+
* @license lucide-react v0.577.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const n2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Mb=Dt("bot",n2);/**
|
|
111
|
+
* @license lucide-react v0.577.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const a2=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Db=Dt("cable",a2);/**
|
|
116
|
+
* @license lucide-react v0.577.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const l2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],i2=Dt("copy",l2);/**
|
|
121
|
+
* @license lucide-react v0.577.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const r2=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],s2=Dt("key",r2);/**
|
|
126
|
+
* @license lucide-react v0.577.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const u2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],o2=Dt("layout-dashboard",u2);/**
|
|
131
|
+
* @license lucide-react v0.577.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const c2=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],f2=Dt("link-2",c2);/**
|
|
136
|
+
* @license lucide-react v0.577.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const d2=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],h2=Dt("log-out",d2);/**
|
|
141
|
+
* @license lucide-react v0.577.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const m2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],fh=Dt("message-square",m2);/**
|
|
146
|
+
* @license lucide-react v0.577.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const p2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],zb=Dt("pencil",p2);/**
|
|
151
|
+
* @license lucide-react v0.577.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const y2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ld=Dt("plus",y2);/**
|
|
156
|
+
* @license lucide-react v0.577.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const v2=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],g2=Dt("radio",v2);/**
|
|
161
|
+
* @license lucide-react v0.577.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const b2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],x2=Dt("refresh-cw",b2);/**
|
|
166
|
+
* @license lucide-react v0.577.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const S2=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_2=Dt("settings",S2);/**
|
|
171
|
+
* @license lucide-react v0.577.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const E2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],C2=Dt("shield",E2);/**
|
|
176
|
+
* @license lucide-react v0.577.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const N2=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],xs=Dt("trash-2",N2);/**
|
|
181
|
+
* @license lucide-react v0.577.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const T2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],j2=Dt("x",T2);function kb(l){var a,r,s="";if(typeof l=="string"||typeof l=="number")s+=l;else if(typeof l=="object")if(Array.isArray(l)){var o=l.length;for(a=0;a<o;a++)l[a]&&(r=kb(l[a]))&&(s&&(s+=" "),s+=r)}else for(r in l)l[r]&&(s&&(s+=" "),s+=r);return s}function Ub(){for(var l,a,r=0,s="",o=arguments.length;r<o;r++)(l=arguments[r])&&(a=kb(l))&&(s&&(s+=" "),s+=a);return s}const w2=(l,a)=>{const r=new Array(l.length+a.length);for(let s=0;s<l.length;s++)r[s]=l[s];for(let s=0;s<a.length;s++)r[l.length+s]=a[s];return r},A2=(l,a)=>({classGroupId:l,validator:a}),Lb=(l=new Map,a=null,r)=>({nextPart:l,validators:a,classGroupId:r}),xo="-",$v=[],R2="arbitrary..",O2=l=>{const a=D2(l),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=l;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return M2(h);const m=h.split(xo),v=m[0]===""&&m.length>1?1:0;return Bb(m,v,a)},getConflictingClassGroupIds:(h,m)=>{if(m){const v=s[h],y=r[h];return v?y?w2(y,v):v:y||$v}return r[h]||$v}}},Bb=(l,a,r)=>{if(l.length-a===0)return r.classGroupId;const o=l[a],f=r.nextPart.get(o);if(f){const y=Bb(l,a+1,f);if(y)return y}const h=r.validators;if(h===null)return;const m=a===0?l.join(xo):l.slice(a).join(xo),v=h.length;for(let y=0;y<v;y++){const x=h[y];if(x.validator(m))return x.classGroupId}},M2=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=l.slice(1,-1),r=a.indexOf(":"),s=a.slice(0,r);return s?R2+s:void 0})(),D2=l=>{const{theme:a,classGroups:r}=l;return z2(r,a)},z2=(l,a)=>{const r=Lb();for(const s in l){const o=l[s];dh(o,r,s,a)}return r},dh=(l,a,r,s)=>{const o=l.length;for(let f=0;f<o;f++){const h=l[f];k2(h,a,r,s)}},k2=(l,a,r,s)=>{if(typeof l=="string"){U2(l,a,r);return}if(typeof l=="function"){L2(l,a,r,s);return}B2(l,a,r,s)},U2=(l,a,r)=>{const s=l===""?a:qb(a,l);s.classGroupId=r},L2=(l,a,r,s)=>{if(q2(l)){dh(l(s),a,r,s);return}a.validators===null&&(a.validators=[]),a.validators.push(A2(r,l))},B2=(l,a,r,s)=>{const o=Object.entries(l),f=o.length;for(let h=0;h<f;h++){const[m,v]=o[h];dh(v,qb(a,m),r,s)}},qb=(l,a)=>{let r=l;const s=a.split(xo),o=s.length;for(let f=0;f<o;f++){const h=s[f];let m=r.nextPart.get(h);m||(m=Lb(),r.nextPart.set(h,m)),r=m}return r},q2=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,H2=l=>{if(l<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),s=Object.create(null);const o=(f,h)=>{r[f]=h,a++,a>l&&(a=0,s=r,r=Object.create(null))};return{get(f){let h=r[f];if(h!==void 0)return h;if((h=s[f])!==void 0)return o(f,h),h},set(f,h){f in r?r[f]=h:o(f,h)}}},Bd="!",Iv=":",Q2=[],Pv=(l,a,r,s,o)=>({modifiers:l,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:s,isExternal:o}),Z2=l=>{const{prefix:a,experimentalParseClassName:r}=l;let s=o=>{const f=[];let h=0,m=0,v=0,y;const x=o.length;for(let j=0;j<x;j++){const A=o[j];if(h===0&&m===0){if(A===Iv){f.push(o.slice(v,j)),v=j+1;continue}if(A==="/"){y=j;continue}}A==="["?h++:A==="]"?h--:A==="("?m++:A===")"&&m--}const S=f.length===0?o:o.slice(v);let C=S,M=!1;S.endsWith(Bd)?(C=S.slice(0,-1),M=!0):S.startsWith(Bd)&&(C=S.slice(1),M=!0);const L=y&&y>v?y-v:void 0;return Pv(f,M,C,L)};if(a){const o=a+Iv,f=s;s=h=>h.startsWith(o)?f(h.slice(o.length)):Pv(Q2,!1,h,void 0,!0)}if(r){const o=s;s=f=>r({className:f,parseClassName:o})}return s},V2=l=>{const a=new Map;return l.orderSensitiveModifiers.forEach((r,s)=>{a.set(r,1e6+s)}),r=>{const s=[];let o=[];for(let f=0;f<r.length;f++){const h=r[f],m=h[0]==="[",v=a.has(h);m||v?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(h)):o.push(h)}return o.length>0&&(o.sort(),s.push(...o)),s}},G2=l=>({cache:H2(l.cacheSize),parseClassName:Z2(l),sortModifiers:V2(l),...O2(l)}),Y2=/\s+/,X2=(l,a)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:f}=a,h=[],m=l.trim().split(Y2);let v="";for(let y=m.length-1;y>=0;y-=1){const x=m[y],{isExternal:S,modifiers:C,hasImportantModifier:M,baseClassName:L,maybePostfixModifierPosition:j}=r(x);if(S){v=x+(v.length>0?" "+v:v);continue}let A=!!j,z=s(A?L.substring(0,j):L);if(!z){if(!A){v=x+(v.length>0?" "+v:v);continue}if(z=s(L),!z){v=x+(v.length>0?" "+v:v);continue}A=!1}const J=C.length===0?"":C.length===1?C[0]:f(C).join(":"),H=M?J+Bd:J,V=H+z;if(h.indexOf(V)>-1)continue;h.push(V);const Y=o(z,A);for(let X=0;X<Y.length;++X){const $=Y[X];h.push(H+$)}v=x+(v.length>0?" "+v:v)}return v},K2=(...l)=>{let a=0,r,s,o="";for(;a<l.length;)(r=l[a++])&&(s=Hb(r))&&(o&&(o+=" "),o+=s);return o},Hb=l=>{if(typeof l=="string")return l;let a,r="";for(let s=0;s<l.length;s++)l[s]&&(a=Hb(l[s]))&&(r&&(r+=" "),r+=a);return r},F2=(l,...a)=>{let r,s,o,f;const h=v=>{const y=a.reduce((x,S)=>S(x),l());return r=G2(y),s=r.cache.get,o=r.cache.set,f=m,m(v)},m=v=>{const y=s(v);if(y)return y;const x=X2(v,r);return o(v,x),x};return f=h,(...v)=>f(K2(...v))},J2=[],_t=l=>{const a=r=>r[l]||J2;return a.isThemeGetter=!0,a},Qb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,I2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,W2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ol=l=>$2.test(l),Ae=l=>!!l&&!Number.isNaN(Number(l)),cl=l=>!!l&&Number.isInteger(Number(l)),cd=l=>l.endsWith("%")&&Ae(l.slice(0,-1)),Ea=l=>I2.test(l),Vb=()=>!0,nC=l=>P2.test(l)&&!W2.test(l),hh=()=>!1,aC=l=>eC.test(l),lC=l=>tC.test(l),iC=l=>!ie(l)&&!se(l),rC=l=>jl(l,Xb,hh),ie=l=>Qb.test(l),Xl=l=>jl(l,Kb,nC),Wv=l=>jl(l,mC,Ae),sC=l=>jl(l,Jb,Vb),uC=l=>jl(l,Fb,hh),eg=l=>jl(l,Gb,hh),oC=l=>jl(l,Yb,lC),ao=l=>jl(l,$b,aC),se=l=>Zb.test(l),gs=l=>ui(l,Kb),cC=l=>ui(l,Fb),tg=l=>ui(l,Gb),fC=l=>ui(l,Xb),dC=l=>ui(l,Yb),lo=l=>ui(l,$b,!0),hC=l=>ui(l,Jb,!0),jl=(l,a,r)=>{const s=Qb.exec(l);return s?s[1]?a(s[1]):r(s[2]):!1},ui=(l,a,r=!1)=>{const s=Zb.exec(l);return s?s[1]?a(s[1]):r:!1},Gb=l=>l==="position"||l==="percentage",Yb=l=>l==="image"||l==="url",Xb=l=>l==="length"||l==="size"||l==="bg-size",Kb=l=>l==="length",mC=l=>l==="number",Fb=l=>l==="family-name",Jb=l=>l==="number"||l==="weight",$b=l=>l==="shadow",pC=()=>{const l=_t("color"),a=_t("font"),r=_t("text"),s=_t("font-weight"),o=_t("tracking"),f=_t("leading"),h=_t("breakpoint"),m=_t("container"),v=_t("spacing"),y=_t("radius"),x=_t("shadow"),S=_t("inset-shadow"),C=_t("text-shadow"),M=_t("drop-shadow"),L=_t("blur"),j=_t("perspective"),A=_t("aspect"),z=_t("ease"),J=_t("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...V(),se,ie],X=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],G=()=>[se,ie,v],he=()=>[ol,"full","auto",...G()],Ne=()=>[cl,"none","subgrid",se,ie],Qe=()=>["auto",{span:["full",cl,se,ie]},cl,se,ie],qe=()=>[cl,"auto",se,ie],pt=()=>["auto","min","max","fr",se,ie],it=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],De=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...G()],F=()=>[ol,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],oe=()=>[ol,"screen","full","dvw","lvw","svw","min","max","fit",...G()],Re=()=>[ol,"screen","full","lh","dvh","lvh","svh","min","max","fit",...G()],W=()=>[l,se,ie],T=()=>[...V(),tg,eg,{position:[se,ie]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",fC,rC,{size:[se,ie]}],ae=()=>[cd,gs,Xl],ce=()=>["","none","full",y,se,ie],me=()=>["",Ae,gs,Xl],Ee=()=>["solid","dashed","dotted","double"],dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Ae,cd,tg,eg],Rn=()=>["","none",L,se,ie],mn=()=>["none",Ae,se,ie],On=()=>["none",Ae,se,ie],la=()=>[Ae,se,ie],Lt=()=>[ol,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ea],breakpoint:[Ea],color:[Vb],container:[Ea],"drop-shadow":[Ea],ease:["in","out","in-out"],font:[iC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ea],shadow:[Ea],spacing:["px",Ae],text:[Ea],"text-shadow":[Ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ol,ie,se,A]}],container:["container"],columns:[{columns:[Ae,ie,se,m]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:he()}],"inset-x":[{"inset-x":he()}],"inset-y":[{"inset-y":he()}],start:[{"inset-s":he(),start:he()}],end:[{"inset-e":he(),end:he()}],"inset-bs":[{"inset-bs":he()}],"inset-be":[{"inset-be":he()}],top:[{top:he()}],right:[{right:he()}],bottom:[{bottom:he()}],left:[{left:he()}],visibility:["visible","invisible","collapse"],z:[{z:[cl,"auto",se,ie]}],basis:[{basis:[ol,"full","auto",m,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,ol,"auto","initial","none",ie]}],grow:[{grow:["",Ae,se,ie]}],shrink:[{shrink:["",Ae,se,ie]}],order:[{order:[cl,"first","last","none",se,ie]}],"grid-cols":[{"grid-cols":Ne()}],"col-start-end":[{col:Qe()}],"col-start":[{"col-start":qe()}],"col-end":[{"col-end":qe()}],"grid-rows":[{"grid-rows":Ne()}],"row-start-end":[{row:Qe()}],"row-start":[{"row-start":qe()}],"row-end":[{"row-end":qe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pt()}],"auto-rows":[{"auto-rows":pt()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...it(),"normal"]}],"justify-items":[{"justify-items":[...De(),"normal"]}],"justify-self":[{"justify-self":["auto",...De()]}],"align-content":[{content:["normal",...it()]}],"align-items":[{items:[...De(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...De(),{baseline:["","last"]}]}],"place-content":[{"place-content":it()}],"place-items":[{"place-items":[...De(),"baseline"]}],"place-self":[{"place-self":["auto",...De()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pbs:[{pbs:G()}],pbe:[{pbe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...Re()]}],"min-block-size":[{"min-block":["auto",...Re()]}],"max-block-size":[{"max-block":["none",...Re()]}],w:[{w:[m,"screen",...F()]}],"min-w":[{"min-w":[m,"screen","none",...F()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,gs,Xl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,hC,sC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cd,ie]}],"font-family":[{font:[cC,uC,a]}],"font-features":[{"font-features":[ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,se,ie]}],"line-clamp":[{"line-clamp":[Ae,"none",se,Wv]}],leading:[{leading:[f,...G()]}],"list-image":[{"list-image":["none",se,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",se,Xl]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Ae,"auto",se,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cl,se,ie],radial:["",se,ie],conic:[cl,se,ie]},dC,oC]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,se,ie]}],"outline-w":[{outline:["",Ae,gs,Xl]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",x,lo,ao]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",S,lo,ao]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Ae,Xl]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",C,lo,ao]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Ae,se,ie]}],"mix-blend":[{"mix-blend":[...dt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":dt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[se,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ie]}],filter:[{filter:["","none",se,ie]}],blur:[{blur:Rn()}],brightness:[{brightness:[Ae,se,ie]}],contrast:[{contrast:[Ae,se,ie]}],"drop-shadow":[{"drop-shadow":["","none",M,lo,ao]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Ae,se,ie]}],"hue-rotate":[{"hue-rotate":[Ae,se,ie]}],invert:[{invert:["",Ae,se,ie]}],saturate:[{saturate:[Ae,se,ie]}],sepia:[{sepia:["",Ae,se,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ie]}],"backdrop-blur":[{"backdrop-blur":Rn()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,se,ie]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,se,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,se,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,se,ie]}],"backdrop-invert":[{"backdrop-invert":["",Ae,se,ie]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,se,ie]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,se,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,se,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",se,ie]}],ease:[{ease:["linear","initial",z,se,ie]}],delay:[{delay:[Ae,se,ie]}],animate:[{animate:["none",J,se,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,se,ie]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:mn()}],"rotate-x":[{"rotate-x":mn()}],"rotate-y":[{"rotate-y":mn()}],"rotate-z":[{"rotate-z":mn()}],scale:[{scale:On()}],"scale-x":[{"scale-x":On()}],"scale-y":[{"scale-y":On()}],"scale-z":[{"scale-z":On()}],"scale-3d":["scale-3d"],skew:[{skew:la()}],"skew-x":[{"skew-x":la()}],"skew-y":[{"skew-y":la()}],transform:[{transform:[se,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Lt()}],"translate-x":[{"translate-x":Lt()}],"translate-y":[{"translate-y":Lt()}],"translate-z":[{"translate-z":Lt()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mbs":[{"scroll-mbs":G()}],"scroll-mbe":[{"scroll-mbe":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pbs":[{"scroll-pbs":G()}],"scroll-pbe":[{"scroll-pbe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,ie]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Ae,gs,Xl,Wv]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yC=F2(pC);function et(...l){return yC(Ub(l))}function Pt(l){return l?new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(new Date(l)):"—"}const vC=[{to:"/",icon:o2,label:"Overview"},{to:"/agents",icon:Mb,label:"Agents"},{to:"/bindings",icon:Db,label:"Bindings"},{to:"/chats",icon:fh,label:"Chats"},{to:"/admin-users",icon:C2,label:"Admin Users"},{to:"/settings",icon:_2,label:"Settings"}];function gC(){const{logout:l}=ch();return d.jsxs("div",{className:"flex h-screen bg-background",children:[d.jsxs("aside",{className:"w-60 shrink-0 border-r border-border bg-card flex flex-col",children:[d.jsxs("div",{className:"p-4 border-b border-border",children:[d.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"First Tree"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Admin Console"})]}),d.jsx("nav",{className:"flex-1 p-2 space-y-1",children:vC.map(a=>d.jsxs(Eb,{to:a.to,end:a.to==="/",className:({isActive:r})=>et("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[d.jsx(a.icon,{className:"h-4 w-4"}),a.label]},a.to))}),d.jsx("div",{className:"p-2 border-t border-border",children:d.jsxs("button",{type:"button",onClick:l,className:"flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors",children:[d.jsx(h2,{className:"h-4 w-4"}),"Logout"]})})]}),d.jsx("main",{className:"flex-1 overflow-auto",children:d.jsx("div",{className:"p-6 max-w-5xl",children:d.jsx(gb,{})})})]})}var Ge;(function(l){l.assertEqual=o=>{};function a(o){}l.assertIs=a;function r(o){throw new Error}l.assertNever=r,l.arrayToEnum=o=>{const f={};for(const h of o)f[h]=h;return f},l.getValidEnumValues=o=>{const f=l.objectKeys(o).filter(m=>typeof o[o[m]]!="number"),h={};for(const m of f)h[m]=o[m];return l.objectValues(h)},l.objectValues=o=>l.objectKeys(o).map(function(f){return o[f]}),l.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const f=[];for(const h in o)Object.prototype.hasOwnProperty.call(o,h)&&f.push(h);return f},l.find=(o,f)=>{for(const h of o)if(f(h))return h},l.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function s(o,f=" | "){return o.map(h=>typeof h=="string"?`'${h}'`:h).join(f)}l.joinValues=s,l.jsonStringifyReplacer=(o,f)=>typeof f=="bigint"?f.toString():f})(Ge||(Ge={}));var ng;(function(l){l.mergeShapes=(a,r)=>({...a,...r})})(ng||(ng={}));const re=Ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),hl=l=>{switch(typeof l){case"undefined":return re.undefined;case"string":return re.string;case"number":return Number.isNaN(l)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(l)?re.array:l===null?re.null:l.then&&typeof l.then=="function"&&l.catch&&typeof l.catch=="function"?re.promise:typeof Map<"u"&&l instanceof Map?re.map:typeof Set<"u"&&l instanceof Set?re.set:typeof Date<"u"&&l instanceof Date?re.date:re.object;default:return re.unknown}},I=Ge.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ka extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=a}format(a){const r=a||function(f){return f.message},s={_errors:[]},o=f=>{for(const h of f.issues)if(h.code==="invalid_union")h.unionErrors.map(o);else if(h.code==="invalid_return_type")o(h.returnTypeError);else if(h.code==="invalid_arguments")o(h.argumentsError);else if(h.path.length===0)s._errors.push(r(h));else{let m=s,v=0;for(;v<h.path.length;){const y=h.path[v];v===h.path.length-1?(m[y]=m[y]||{_errors:[]},m[y]._errors.push(r(h))):m[y]=m[y]||{_errors:[]},m=m[y],v++}}};return o(this),s}static assert(a){if(!(a instanceof ka))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ge.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=r=>r.message){const r={},s=[];for(const o of this.issues)if(o.path.length>0){const f=o.path[0];r[f]=r[f]||[],r[f].push(a(o))}else s.push(a(o));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}ka.create=l=>new ka(l);const qd=(l,a)=>{let r;switch(l.code){case I.invalid_type:l.received===re.undefined?r="Required":r=`Expected ${l.expected}, received ${l.received}`;break;case I.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(l.expected,Ge.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ge.joinValues(l.keys,", ")}`;break;case I.invalid_union:r="Invalid input";break;case I.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ge.joinValues(l.options)}`;break;case I.invalid_enum_value:r=`Invalid enum value. Expected ${Ge.joinValues(l.options)}, received '${l.received}'`;break;case I.invalid_arguments:r="Invalid function arguments";break;case I.invalid_return_type:r="Invalid function return type";break;case I.invalid_date:r="Invalid date";break;case I.invalid_string:typeof l.validation=="object"?"includes"in l.validation?(r=`Invalid input: must include "${l.validation.includes}"`,typeof l.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${l.validation.position}`)):"startsWith"in l.validation?r=`Invalid input: must start with "${l.validation.startsWith}"`:"endsWith"in l.validation?r=`Invalid input: must end with "${l.validation.endsWith}"`:Ge.assertNever(l.validation):l.validation!=="regex"?r=`Invalid ${l.validation}`:r="Invalid";break;case I.too_small:l.type==="array"?r=`Array must contain ${l.exact?"exactly":l.inclusive?"at least":"more than"} ${l.minimum} element(s)`:l.type==="string"?r=`String must contain ${l.exact?"exactly":l.inclusive?"at least":"over"} ${l.minimum} character(s)`:l.type==="number"?r=`Number must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${l.minimum}`:l.type==="bigint"?r=`Number must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${l.minimum}`:l.type==="date"?r=`Date must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(l.minimum))}`:r="Invalid input";break;case I.too_big:l.type==="array"?r=`Array must contain ${l.exact?"exactly":l.inclusive?"at most":"less than"} ${l.maximum} element(s)`:l.type==="string"?r=`String must contain ${l.exact?"exactly":l.inclusive?"at most":"under"} ${l.maximum} character(s)`:l.type==="number"?r=`Number must be ${l.exact?"exactly":l.inclusive?"less than or equal to":"less than"} ${l.maximum}`:l.type==="bigint"?r=`BigInt must be ${l.exact?"exactly":l.inclusive?"less than or equal to":"less than"} ${l.maximum}`:l.type==="date"?r=`Date must be ${l.exact?"exactly":l.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(l.maximum))}`:r="Invalid input";break;case I.custom:r="Invalid input";break;case I.invalid_intersection_types:r="Intersection results could not be merged";break;case I.not_multiple_of:r=`Number must be a multiple of ${l.multipleOf}`;break;case I.not_finite:r="Number must be finite";break;default:r=a.defaultError,Ge.assertNever(l)}return{message:r}};let bC=qd;function xC(){return bC}const SC=l=>{const{data:a,path:r,errorMaps:s,issueData:o}=l,f=[...r,...o.path||[]],h={...o,path:f};if(o.message!==void 0)return{...o,path:f,message:o.message};let m="";const v=s.filter(y=>!!y).slice().reverse();for(const y of v)m=y(h,{data:a,defaultError:m}).message;return{...o,path:f,message:m}};function ne(l,a){const r=xC(),s=SC({issueData:a,data:l.data,path:l.path,errorMaps:[l.common.contextualErrorMap,l.schemaErrorMap,r,r===qd?void 0:qd].filter(o=>!!o)});l.common.issues.push(s)}class Zt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,r){const s=[];for(const o of r){if(o.status==="aborted")return xe;o.status==="dirty"&&a.dirty(),s.push(o.value)}return{status:a.value,value:s}}static async mergeObjectAsync(a,r){const s=[];for(const o of r){const f=await o.key,h=await o.value;s.push({key:f,value:h})}return Zt.mergeObjectSync(a,s)}static mergeObjectSync(a,r){const s={};for(const o of r){const{key:f,value:h}=o;if(f.status==="aborted"||h.status==="aborted")return xe;f.status==="dirty"&&a.dirty(),h.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof h.value<"u"||o.alwaysSet)&&(s[f.value]=h.value)}return{status:a.value,value:s}}}const xe=Object.freeze({status:"aborted"}),Ss=l=>({status:"dirty",value:l}),An=l=>({status:"valid",value:l}),ag=l=>l.status==="aborted",lg=l=>l.status==="dirty",dr=l=>l.status==="valid",So=l=>typeof Promise<"u"&&l instanceof Promise;var de;(function(l){l.errToObj=a=>typeof a=="string"?{message:a}:a||{},l.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(de||(de={}));class na{constructor(a,r,s,o){this._cachedPath=[],this.parent=a,this.data=r,this._path=s,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ig=(l,a)=>{if(dr(a))return{success:!0,data:a.value};if(!l.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ka(l.common.issues);return this._error=r,this._error}}};function we(l){if(!l)return{};const{errorMap:a,invalid_type_error:r,required_error:s,description:o}=l;if(a&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:o}:{errorMap:(h,m)=>{const{message:v}=l;return h.code==="invalid_enum_value"?{message:v??m.defaultError}:typeof m.data>"u"?{message:v??s??m.defaultError}:h.code!=="invalid_type"?{message:m.defaultError}:{message:v??r??m.defaultError}},description:o}}class Be{get description(){return this._def.description}_getType(a){return hl(a.data)}_getOrReturnCtx(a,r){return r||{common:a.parent.common,data:a.data,parsedType:hl(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Zt,ctx:{common:a.parent.common,data:a.data,parsedType:hl(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const r=this._parse(a);if(So(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(a){const r=this._parse(a);return Promise.resolve(r)}parse(a,r){const s=this.safeParse(a,r);if(s.success)return s.data;throw s.error}safeParse(a,r){const s={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:hl(a)},o=this._parseSync({data:a,path:s.path,parent:s});return ig(s,o)}"~validate"(a){var s,o;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:hl(a)};if(!this["~standard"].async)try{const f=this._parseSync({data:a,path:[],parent:r});return dr(f)?{value:f.value}:{issues:r.common.issues}}catch(f){(o=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:r}).then(f=>dr(f)?{value:f.value}:{issues:r.common.issues})}async parseAsync(a,r){const s=await this.safeParseAsync(a,r);if(s.success)return s.data;throw s.error}async safeParseAsync(a,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:hl(a)},o=this._parse({data:a,path:s.path,parent:s}),f=await(So(o)?o:Promise.resolve(o));return ig(s,f)}refine(a,r){const s=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,f)=>{const h=a(o),m=()=>f.addIssue({code:I.custom,...s(o)});return typeof Promise<"u"&&h instanceof Promise?h.then(v=>v?!0:(m(),!1)):h?!0:(m(),!1)})}refinement(a,r){return this._refinement((s,o)=>a(s)?!0:(o.addIssue(typeof r=="function"?r(s,o):r),!1))}_refinement(a){return new pr({schema:this,typeName:be.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Cl.create(this,this._def)}nullable(){return yr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ta.create(this)}promise(){return To.create(this,this._def)}or(a){return Eo.create([this,a],this._def)}and(a){return Co.create(this,a,this._def)}transform(a){return new pr({...we(this._def),schema:this,typeName:be.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const r=typeof a=="function"?a:()=>a;return new Zd({...we(this._def),innerType:this,defaultValue:r,typeName:be.ZodDefault})}brand(){return new GC({typeName:be.ZodBranded,type:this,...we(this._def)})}catch(a){const r=typeof a=="function"?a:()=>a;return new Vd({...we(this._def),innerType:this,catchValue:r,typeName:be.ZodCatch})}describe(a){const r=this.constructor;return new r({...this._def,description:a})}pipe(a){return mh.create(this,a)}readonly(){return Gd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const _C=/^c[^\s-]{8,}$/i,EC=/^[0-9a-z]+$/,CC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,NC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,TC=/^[a-z0-9_-]{21}$/i,jC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,AC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,RC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let fd;const OC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,MC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,DC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,zC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,UC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ib="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",LC=new RegExp(`^${Ib}$`);function Pb(l){let a="[0-5]\\d";l.precision?a=`${a}\\.\\d{${l.precision}}`:l.precision==null&&(a=`${a}(\\.\\d+)?`);const r=l.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${r}`}function BC(l){return new RegExp(`^${Pb(l)}$`)}function qC(l){let a=`${Ib}T${Pb(l)}`;const r=[];return r.push(l.local?"Z?":"Z"),l.offset&&r.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${r.join("|")})`,new RegExp(`^${a}$`)}function HC(l,a){return!!((a==="v4"||!a)&&OC.test(l)||(a==="v6"||!a)&&DC.test(l))}function QC(l,a){if(!jC.test(l))return!1;try{const[r]=l.split(".");if(!r)return!1;const s=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||a&&o.alg!==a)}catch{return!1}}function ZC(l,a){return!!((a==="v4"||!a)&&MC.test(l)||(a==="v6"||!a)&&zC.test(l))}class Wn extends Be{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==re.string){const f=this._getOrReturnCtx(a);return ne(f,{code:I.invalid_type,expected:re.string,received:f.parsedType}),xe}const s=new Zt;let o;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(o=this._getOrReturnCtx(a,o),ne(o,{code:I.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")a.data.length>f.value&&(o=this._getOrReturnCtx(a,o),ne(o,{code:I.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const h=a.data.length>f.value,m=a.data.length<f.value;(h||m)&&(o=this._getOrReturnCtx(a,o),h?ne(o,{code:I.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&ne(o,{code:I.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")AC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"email",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")fd||(fd=new RegExp(RC,"u")),fd.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"emoji",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")NC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"uuid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")TC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"nanoid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")_C.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"cuid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")EC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"cuid2",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")CC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"ulid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{o=this._getOrReturnCtx(a,o),ne(o,{validation:"url",code:I.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"regex",code:I.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(o=this._getOrReturnCtx(a,o),ne(o,{code:I.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(o=this._getOrReturnCtx(a,o),ne(o,{code:I.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(o=this._getOrReturnCtx(a,o),ne(o,{code:I.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?qC(f).test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{code:I.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?LC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{code:I.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?BC(f).test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{code:I.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?wC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"duration",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?HC(a.data,f.version)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"ip",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?QC(a.data,f.alg)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"jwt",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?ZC(a.data,f.version)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"cidr",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?kC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"base64",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?UC.test(a.data)||(o=this._getOrReturnCtx(a,o),ne(o,{validation:"base64url",code:I.invalid_string,message:f.message}),s.dirty()):Ge.assertNever(f);return{status:s.value,value:a.data}}_regex(a,r,s){return this.refinement(o=>a.test(o),{validation:r,code:I.invalid_string,...de.errToObj(s)})}_addCheck(a){return new Wn({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...de.errToObj(a)})}url(a){return this._addCheck({kind:"url",...de.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...de.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...de.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...de.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...de.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...de.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...de.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...de.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...de.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...de.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...de.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...de.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,...de.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...de.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...de.errToObj(a)})}regex(a,r){return this._addCheck({kind:"regex",regex:a,...de.errToObj(r)})}includes(a,r){return this._addCheck({kind:"includes",value:a,position:r==null?void 0:r.position,...de.errToObj(r==null?void 0:r.message)})}startsWith(a,r){return this._addCheck({kind:"startsWith",value:a,...de.errToObj(r)})}endsWith(a,r){return this._addCheck({kind:"endsWith",value:a,...de.errToObj(r)})}min(a,r){return this._addCheck({kind:"min",value:a,...de.errToObj(r)})}max(a,r){return this._addCheck({kind:"max",value:a,...de.errToObj(r)})}length(a,r){return this._addCheck({kind:"length",value:a,...de.errToObj(r)})}nonempty(a){return this.min(1,de.errToObj(a))}trim(){return new Wn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Wn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Wn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a}get maxLength(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a}}Wn.create=l=>new Wn({checks:[],typeName:be.ZodString,coerce:(l==null?void 0:l.coerce)??!1,...we(l)});function VC(l,a){const r=(l.toString().split(".")[1]||"").length,s=(a.toString().split(".")[1]||"").length,o=r>s?r:s,f=Number.parseInt(l.toFixed(o).replace(".","")),h=Number.parseInt(a.toFixed(o).replace(".",""));return f%h/10**o}class li extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==re.number){const f=this._getOrReturnCtx(a);return ne(f,{code:I.invalid_type,expected:re.number,received:f.parsedType}),xe}let s;const o=new Zt;for(const f of this._def.checks)f.kind==="int"?Ge.isInteger(a.data)||(s=this._getOrReturnCtx(a,s),ne(s,{code:I.invalid_type,expected:"integer",received:"float",message:f.message}),o.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(s=this._getOrReturnCtx(a,s),ne(s,{code:I.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(s=this._getOrReturnCtx(a,s),ne(s,{code:I.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="multipleOf"?VC(a.data,f.value)!==0&&(s=this._getOrReturnCtx(a,s),ne(s,{code:I.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(s=this._getOrReturnCtx(a,s),ne(s,{code:I.not_finite,message:f.message}),o.dirty()):Ge.assertNever(f);return{status:o.value,value:a.data}}gte(a,r){return this.setLimit("min",a,!0,de.toString(r))}gt(a,r){return this.setLimit("min",a,!1,de.toString(r))}lte(a,r){return this.setLimit("max",a,!0,de.toString(r))}lt(a,r){return this.setLimit("max",a,!1,de.toString(r))}setLimit(a,r,s,o){return new li({...this._def,checks:[...this._def.checks,{kind:a,value:r,inclusive:s,message:de.toString(o)}]})}_addCheck(a){return new li({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:de.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:de.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:de.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:de.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:de.toString(a)})}multipleOf(a,r){return this._addCheck({kind:"multipleOf",value:a,message:de.toString(r)})}finite(a){return this._addCheck({kind:"finite",message:de.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:de.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:de.toString(a)})}get minValue(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a}get maxValue(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Ge.isInteger(a.value))}get isFinite(){let a=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(a===null||s.value<a)&&(a=s.value)}return Number.isFinite(r)&&Number.isFinite(a)}}li.create=l=>new li({checks:[],typeName:be.ZodNumber,coerce:(l==null?void 0:l.coerce)||!1,...we(l)});class ii extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==re.bigint)return this._getInvalidInput(a);let s;const o=new Zt;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(s=this._getOrReturnCtx(a,s),ne(s,{code:I.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(s=this._getOrReturnCtx(a,s),ne(s,{code:I.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(a,s),ne(s,{code:I.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):Ge.assertNever(f);return{status:o.value,value:a.data}}_getInvalidInput(a){const r=this._getOrReturnCtx(a);return ne(r,{code:I.invalid_type,expected:re.bigint,received:r.parsedType}),xe}gte(a,r){return this.setLimit("min",a,!0,de.toString(r))}gt(a,r){return this.setLimit("min",a,!1,de.toString(r))}lte(a,r){return this.setLimit("max",a,!0,de.toString(r))}lt(a,r){return this.setLimit("max",a,!1,de.toString(r))}setLimit(a,r,s,o){return new ii({...this._def,checks:[...this._def.checks,{kind:a,value:r,inclusive:s,message:de.toString(o)}]})}_addCheck(a){return new ii({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:de.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:de.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:de.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:de.toString(a)})}multipleOf(a,r){return this._addCheck({kind:"multipleOf",value:a,message:de.toString(r)})}get minValue(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a}get maxValue(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a}}ii.create=l=>new ii({checks:[],typeName:be.ZodBigInt,coerce:(l==null?void 0:l.coerce)??!1,...we(l)});class _o extends Be{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==re.boolean){const s=this._getOrReturnCtx(a);return ne(s,{code:I.invalid_type,expected:re.boolean,received:s.parsedType}),xe}return An(a.data)}}_o.create=l=>new _o({typeName:be.ZodBoolean,coerce:(l==null?void 0:l.coerce)||!1,...we(l)});class hr extends Be{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==re.date){const f=this._getOrReturnCtx(a);return ne(f,{code:I.invalid_type,expected:re.date,received:f.parsedType}),xe}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return ne(f,{code:I.invalid_date}),xe}const s=new Zt;let o;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(o=this._getOrReturnCtx(a,o),ne(o,{code:I.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(o=this._getOrReturnCtx(a,o),ne(o,{code:I.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):Ge.assertNever(f);return{status:s.value,value:new Date(a.data.getTime())}}_addCheck(a){return new hr({...this._def,checks:[...this._def.checks,a]})}min(a,r){return this._addCheck({kind:"min",value:a.getTime(),message:de.toString(r)})}max(a,r){return this._addCheck({kind:"max",value:a.getTime(),message:de.toString(r)})}get minDate(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a!=null?new Date(a):null}}hr.create=l=>new hr({checks:[],coerce:(l==null?void 0:l.coerce)||!1,typeName:be.ZodDate,...we(l)});class rg extends Be{_parse(a){if(this._getType(a)!==re.symbol){const s=this._getOrReturnCtx(a);return ne(s,{code:I.invalid_type,expected:re.symbol,received:s.parsedType}),xe}return An(a.data)}}rg.create=l=>new rg({typeName:be.ZodSymbol,...we(l)});class sg extends Be{_parse(a){if(this._getType(a)!==re.undefined){const s=this._getOrReturnCtx(a);return ne(s,{code:I.invalid_type,expected:re.undefined,received:s.parsedType}),xe}return An(a.data)}}sg.create=l=>new sg({typeName:be.ZodUndefined,...we(l)});class ug extends Be{_parse(a){if(this._getType(a)!==re.null){const s=this._getOrReturnCtx(a);return ne(s,{code:I.invalid_type,expected:re.null,received:s.parsedType}),xe}return An(a.data)}}ug.create=l=>new ug({typeName:be.ZodNull,...we(l)});class og extends Be{constructor(){super(...arguments),this._any=!0}_parse(a){return An(a.data)}}og.create=l=>new og({typeName:be.ZodAny,...we(l)});class Hd extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(a){return An(a.data)}}Hd.create=l=>new Hd({typeName:be.ZodUnknown,...we(l)});class Tl extends Be{_parse(a){const r=this._getOrReturnCtx(a);return ne(r,{code:I.invalid_type,expected:re.never,received:r.parsedType}),xe}}Tl.create=l=>new Tl({typeName:be.ZodNever,...we(l)});class cg extends Be{_parse(a){if(this._getType(a)!==re.undefined){const s=this._getOrReturnCtx(a);return ne(s,{code:I.invalid_type,expected:re.void,received:s.parsedType}),xe}return An(a.data)}}cg.create=l=>new cg({typeName:be.ZodVoid,...we(l)});class ta extends Be{_parse(a){const{ctx:r,status:s}=this._processInputParams(a),o=this._def;if(r.parsedType!==re.array)return ne(r,{code:I.invalid_type,expected:re.array,received:r.parsedType}),xe;if(o.exactLength!==null){const h=r.data.length>o.exactLength.value,m=r.data.length<o.exactLength.value;(h||m)&&(ne(r,{code:h?I.too_big:I.too_small,minimum:m?o.exactLength.value:void 0,maximum:h?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(ne(r,{code:I.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(ne(r,{code:I.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((h,m)=>o.type._parseAsync(new na(r,h,r.path,m)))).then(h=>Zt.mergeArray(s,h));const f=[...r.data].map((h,m)=>o.type._parseSync(new na(r,h,r.path,m)));return Zt.mergeArray(s,f)}get element(){return this._def.type}min(a,r){return new ta({...this._def,minLength:{value:a,message:de.toString(r)}})}max(a,r){return new ta({...this._def,maxLength:{value:a,message:de.toString(r)}})}length(a,r){return new ta({...this._def,exactLength:{value:a,message:de.toString(r)}})}nonempty(a){return this.min(1,a)}}ta.create=(l,a)=>new ta({type:l,minLength:null,maxLength:null,exactLength:null,typeName:be.ZodArray,...we(a)});function Ii(l){if(l instanceof xt){const a={};for(const r in l.shape){const s=l.shape[r];a[r]=Cl.create(Ii(s))}return new xt({...l._def,shape:()=>a})}else return l instanceof ta?new ta({...l._def,type:Ii(l.element)}):l instanceof Cl?Cl.create(Ii(l.unwrap())):l instanceof yr?yr.create(Ii(l.unwrap())):l instanceof ri?ri.create(l.items.map(a=>Ii(a))):l}class xt extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),r=Ge.objectKeys(a);return this._cached={shape:a,keys:r},this._cached}_parse(a){if(this._getType(a)!==re.object){const y=this._getOrReturnCtx(a);return ne(y,{code:I.invalid_type,expected:re.object,received:y.parsedType}),xe}const{status:s,ctx:o}=this._processInputParams(a),{shape:f,keys:h}=this._getCached(),m=[];if(!(this._def.catchall instanceof Tl&&this._def.unknownKeys==="strip"))for(const y in o.data)h.includes(y)||m.push(y);const v=[];for(const y of h){const x=f[y],S=o.data[y];v.push({key:{status:"valid",value:y},value:x._parse(new na(o,S,o.path,y)),alwaysSet:y in o.data})}if(this._def.catchall instanceof Tl){const y=this._def.unknownKeys;if(y==="passthrough")for(const x of m)v.push({key:{status:"valid",value:x},value:{status:"valid",value:o.data[x]}});else if(y==="strict")m.length>0&&(ne(o,{code:I.unrecognized_keys,keys:m}),s.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const x of m){const S=o.data[x];v.push({key:{status:"valid",value:x},value:y._parse(new na(o,S,o.path,x)),alwaysSet:x in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const y=[];for(const x of v){const S=await x.key,C=await x.value;y.push({key:S,value:C,alwaysSet:x.alwaysSet})}return y}).then(y=>Zt.mergeObjectSync(s,y)):Zt.mergeObjectSync(s,v)}get shape(){return this._def.shape()}strict(a){return de.errToObj,new xt({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(r,s)=>{var f,h;const o=((h=(f=this._def).errorMap)==null?void 0:h.call(f,r,s).message)??s.defaultError;return r.code==="unrecognized_keys"?{message:de.errToObj(a).message??o}:{message:o}}}:{}})}strip(){return new xt({...this._def,unknownKeys:"strip"})}passthrough(){return new xt({...this._def,unknownKeys:"passthrough"})}extend(a){return new xt({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new xt({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:be.ZodObject})}setKey(a,r){return this.augment({[a]:r})}catchall(a){return new xt({...this._def,catchall:a})}pick(a){const r={};for(const s of Ge.objectKeys(a))a[s]&&this.shape[s]&&(r[s]=this.shape[s]);return new xt({...this._def,shape:()=>r})}omit(a){const r={};for(const s of Ge.objectKeys(this.shape))a[s]||(r[s]=this.shape[s]);return new xt({...this._def,shape:()=>r})}deepPartial(){return Ii(this)}partial(a){const r={};for(const s of Ge.objectKeys(this.shape)){const o=this.shape[s];a&&!a[s]?r[s]=o:r[s]=o.optional()}return new xt({...this._def,shape:()=>r})}required(a){const r={};for(const s of Ge.objectKeys(this.shape))if(a&&!a[s])r[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof Cl;)f=f._def.innerType;r[s]=f}return new xt({...this._def,shape:()=>r})}keyof(){return Wb(Ge.objectKeys(this.shape))}}xt.create=(l,a)=>new xt({shape:()=>l,unknownKeys:"strip",catchall:Tl.create(),typeName:be.ZodObject,...we(a)});xt.strictCreate=(l,a)=>new xt({shape:()=>l,unknownKeys:"strict",catchall:Tl.create(),typeName:be.ZodObject,...we(a)});xt.lazycreate=(l,a)=>new xt({shape:l,unknownKeys:"strip",catchall:Tl.create(),typeName:be.ZodObject,...we(a)});class Eo extends Be{_parse(a){const{ctx:r}=this._processInputParams(a),s=this._def.options;function o(f){for(const m of f)if(m.result.status==="valid")return m.result;for(const m of f)if(m.result.status==="dirty")return r.common.issues.push(...m.ctx.common.issues),m.result;const h=f.map(m=>new ka(m.ctx.common.issues));return ne(r,{code:I.invalid_union,unionErrors:h}),xe}if(r.common.async)return Promise.all(s.map(async f=>{const h={...r,common:{...r.common,issues:[]},parent:null};return{result:await f._parseAsync({data:r.data,path:r.path,parent:h}),ctx:h}})).then(o);{let f;const h=[];for(const v of s){const y={...r,common:{...r.common,issues:[]},parent:null},x=v._parseSync({data:r.data,path:r.path,parent:y});if(x.status==="valid")return x;x.status==="dirty"&&!f&&(f={result:x,ctx:y}),y.common.issues.length&&h.push(y.common.issues)}if(f)return r.common.issues.push(...f.ctx.common.issues),f.result;const m=h.map(v=>new ka(v));return ne(r,{code:I.invalid_union,unionErrors:m}),xe}}get options(){return this._def.options}}Eo.create=(l,a)=>new Eo({options:l,typeName:be.ZodUnion,...we(a)});function Qd(l,a){const r=hl(l),s=hl(a);if(l===a)return{valid:!0,data:l};if(r===re.object&&s===re.object){const o=Ge.objectKeys(a),f=Ge.objectKeys(l).filter(m=>o.indexOf(m)!==-1),h={...l,...a};for(const m of f){const v=Qd(l[m],a[m]);if(!v.valid)return{valid:!1};h[m]=v.data}return{valid:!0,data:h}}else if(r===re.array&&s===re.array){if(l.length!==a.length)return{valid:!1};const o=[];for(let f=0;f<l.length;f++){const h=l[f],m=a[f],v=Qd(h,m);if(!v.valid)return{valid:!1};o.push(v.data)}return{valid:!0,data:o}}else return r===re.date&&s===re.date&&+l==+a?{valid:!0,data:l}:{valid:!1}}class Co extends Be{_parse(a){const{status:r,ctx:s}=this._processInputParams(a),o=(f,h)=>{if(ag(f)||ag(h))return xe;const m=Qd(f.value,h.value);return m.valid?((lg(f)||lg(h))&&r.dirty(),{status:r.value,value:m.data}):(ne(s,{code:I.invalid_intersection_types}),xe)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,h])=>o(f,h)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Co.create=(l,a,r)=>new Co({left:l,right:a,typeName:be.ZodIntersection,...we(r)});class ri extends Be{_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==re.array)return ne(s,{code:I.invalid_type,expected:re.array,received:s.parsedType}),xe;if(s.data.length<this._def.items.length)return ne(s,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&s.data.length>this._def.items.length&&(ne(s,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const f=[...s.data].map((h,m)=>{const v=this._def.items[m]||this._def.rest;return v?v._parse(new na(s,h,s.path,m)):null}).filter(h=>!!h);return s.common.async?Promise.all(f).then(h=>Zt.mergeArray(r,h)):Zt.mergeArray(r,f)}get items(){return this._def.items}rest(a){return new ri({...this._def,rest:a})}}ri.create=(l,a)=>{if(!Array.isArray(l))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ri({items:l,typeName:be.ZodTuple,rest:null,...we(a)})};class No extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==re.object)return ne(s,{code:I.invalid_type,expected:re.object,received:s.parsedType}),xe;const o=[],f=this._def.keyType,h=this._def.valueType;for(const m in s.data)o.push({key:f._parse(new na(s,m,s.path,m)),value:h._parse(new na(s,s.data[m],s.path,m)),alwaysSet:m in s.data});return s.common.async?Zt.mergeObjectAsync(r,o):Zt.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(a,r,s){return r instanceof Be?new No({keyType:a,valueType:r,typeName:be.ZodRecord,...we(s)}):new No({keyType:Wn.create(),valueType:a,typeName:be.ZodRecord,...we(r)})}}class fg extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==re.map)return ne(s,{code:I.invalid_type,expected:re.map,received:s.parsedType}),xe;const o=this._def.keyType,f=this._def.valueType,h=[...s.data.entries()].map(([m,v],y)=>({key:o._parse(new na(s,m,s.path,[y,"key"])),value:f._parse(new na(s,v,s.path,[y,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const v of h){const y=await v.key,x=await v.value;if(y.status==="aborted"||x.status==="aborted")return xe;(y.status==="dirty"||x.status==="dirty")&&r.dirty(),m.set(y.value,x.value)}return{status:r.value,value:m}})}else{const m=new Map;for(const v of h){const y=v.key,x=v.value;if(y.status==="aborted"||x.status==="aborted")return xe;(y.status==="dirty"||x.status==="dirty")&&r.dirty(),m.set(y.value,x.value)}return{status:r.value,value:m}}}}fg.create=(l,a,r)=>new fg({valueType:a,keyType:l,typeName:be.ZodMap,...we(r)});class Ns extends Be{_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==re.set)return ne(s,{code:I.invalid_type,expected:re.set,received:s.parsedType}),xe;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ne(s,{code:I.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ne(s,{code:I.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const f=this._def.valueType;function h(v){const y=new Set;for(const x of v){if(x.status==="aborted")return xe;x.status==="dirty"&&r.dirty(),y.add(x.value)}return{status:r.value,value:y}}const m=[...s.data.values()].map((v,y)=>f._parse(new na(s,v,s.path,y)));return s.common.async?Promise.all(m).then(v=>h(v)):h(m)}min(a,r){return new Ns({...this._def,minSize:{value:a,message:de.toString(r)}})}max(a,r){return new Ns({...this._def,maxSize:{value:a,message:de.toString(r)}})}size(a,r){return this.min(a,r).max(a,r)}nonempty(a){return this.min(1,a)}}Ns.create=(l,a)=>new Ns({valueType:l,minSize:null,maxSize:null,typeName:be.ZodSet,...we(a)});class dg extends Be{get schema(){return this._def.getter()}_parse(a){const{ctx:r}=this._processInputParams(a);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}dg.create=(l,a)=>new dg({getter:l,typeName:be.ZodLazy,...we(a)});class hg extends Be{_parse(a){if(a.data!==this._def.value){const r=this._getOrReturnCtx(a);return ne(r,{received:r.data,code:I.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:a.data}}get value(){return this._def.value}}hg.create=(l,a)=>new hg({value:l,typeName:be.ZodLiteral,...we(a)});function Wb(l,a){return new mr({values:l,typeName:be.ZodEnum,...we(a)})}class mr extends Be{_parse(a){if(typeof a.data!="string"){const r=this._getOrReturnCtx(a),s=this._def.values;return ne(r,{expected:Ge.joinValues(s),received:r.parsedType,code:I.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const r=this._getOrReturnCtx(a),s=this._def.values;return ne(r,{received:r.data,code:I.invalid_enum_value,options:s}),xe}return An(a.data)}get options(){return this._def.values}get enum(){const a={};for(const r of this._def.values)a[r]=r;return a}get Values(){const a={};for(const r of this._def.values)a[r]=r;return a}get Enum(){const a={};for(const r of this._def.values)a[r]=r;return a}extract(a,r=this._def){return mr.create(a,{...this._def,...r})}exclude(a,r=this._def){return mr.create(this.options.filter(s=>!a.includes(s)),{...this._def,...r})}}mr.create=Wb;class mg extends Be{_parse(a){const r=Ge.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(a);if(s.parsedType!==re.string&&s.parsedType!==re.number){const o=Ge.objectValues(r);return ne(s,{expected:Ge.joinValues(o),received:s.parsedType,code:I.invalid_type}),xe}if(this._cache||(this._cache=new Set(Ge.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const o=Ge.objectValues(r);return ne(s,{received:s.data,code:I.invalid_enum_value,options:o}),xe}return An(a.data)}get enum(){return this._def.values}}mg.create=(l,a)=>new mg({values:l,typeName:be.ZodNativeEnum,...we(a)});class To extends Be{unwrap(){return this._def.type}_parse(a){const{ctx:r}=this._processInputParams(a);if(r.parsedType!==re.promise&&r.common.async===!1)return ne(r,{code:I.invalid_type,expected:re.promise,received:r.parsedType}),xe;const s=r.parsedType===re.promise?r.data:Promise.resolve(r.data);return An(s.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}To.create=(l,a)=>new To({type:l,typeName:be.ZodPromise,...we(a)});class pr extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:r,ctx:s}=this._processInputParams(a),o=this._def.effect||null,f={addIssue:h=>{ne(s,h),h.fatal?r.abort():r.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),o.type==="preprocess"){const h=o.transform(s.data,f);if(s.common.async)return Promise.resolve(h).then(async m=>{if(r.value==="aborted")return xe;const v=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return v.status==="aborted"?xe:v.status==="dirty"||r.value==="dirty"?Ss(v.value):v});{if(r.value==="aborted")return xe;const m=this._def.schema._parseSync({data:h,path:s.path,parent:s});return m.status==="aborted"?xe:m.status==="dirty"||r.value==="dirty"?Ss(m.value):m}}if(o.type==="refinement"){const h=m=>{const v=o.refinement(m,f);if(s.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(s.common.async===!1){const m=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return m.status==="aborted"?xe:(m.status==="dirty"&&r.dirty(),h(m.value),{status:r.value,value:m.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(m=>m.status==="aborted"?xe:(m.status==="dirty"&&r.dirty(),h(m.value).then(()=>({status:r.value,value:m.value}))))}if(o.type==="transform")if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!dr(h))return xe;const m=o.transform(h.value,f);if(m instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:m}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>dr(h)?Promise.resolve(o.transform(h.value,f)).then(m=>({status:r.value,value:m})):xe);Ge.assertNever(o)}}pr.create=(l,a,r)=>new pr({schema:l,typeName:be.ZodEffects,effect:a,...we(r)});pr.createWithPreprocess=(l,a,r)=>new pr({schema:a,effect:{type:"preprocess",transform:l},typeName:be.ZodEffects,...we(r)});class Cl extends Be{_parse(a){return this._getType(a)===re.undefined?An(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Cl.create=(l,a)=>new Cl({innerType:l,typeName:be.ZodOptional,...we(a)});class yr extends Be{_parse(a){return this._getType(a)===re.null?An(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}yr.create=(l,a)=>new yr({innerType:l,typeName:be.ZodNullable,...we(a)});class Zd extends Be{_parse(a){const{ctx:r}=this._processInputParams(a);let s=r.data;return r.parsedType===re.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Zd.create=(l,a)=>new Zd({innerType:l,typeName:be.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...we(a)});class Vd extends Be{_parse(a){const{ctx:r}=this._processInputParams(a),s={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return So(o)?o.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new ka(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ka(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Vd.create=(l,a)=>new Vd({innerType:l,typeName:be.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...we(a)});class pg extends Be{_parse(a){if(this._getType(a)!==re.nan){const s=this._getOrReturnCtx(a);return ne(s,{code:I.invalid_type,expected:re.nan,received:s.parsedType}),xe}return{status:"valid",value:a.data}}}pg.create=l=>new pg({typeName:be.ZodNaN,...we(l)});class GC extends Be{_parse(a){const{ctx:r}=this._processInputParams(a),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class mh extends Be{_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?xe:f.status==="dirty"?(r.dirty(),Ss(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?xe:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(a,r){return new mh({in:a,out:r,typeName:be.ZodPipeline})}}class Gd extends Be{_parse(a){const r=this._def.innerType._parse(a),s=o=>(dr(o)&&(o.value=Object.freeze(o.value)),o);return So(r)?r.then(o=>s(o)):s(r)}unwrap(){return this._def.innerType}}Gd.create=(l,a)=>new Gd({innerType:l,typeName:be.ZodReadonly,...we(a)});var be;(function(l){l.ZodString="ZodString",l.ZodNumber="ZodNumber",l.ZodNaN="ZodNaN",l.ZodBigInt="ZodBigInt",l.ZodBoolean="ZodBoolean",l.ZodDate="ZodDate",l.ZodSymbol="ZodSymbol",l.ZodUndefined="ZodUndefined",l.ZodNull="ZodNull",l.ZodAny="ZodAny",l.ZodUnknown="ZodUnknown",l.ZodNever="ZodNever",l.ZodVoid="ZodVoid",l.ZodArray="ZodArray",l.ZodObject="ZodObject",l.ZodUnion="ZodUnion",l.ZodDiscriminatedUnion="ZodDiscriminatedUnion",l.ZodIntersection="ZodIntersection",l.ZodTuple="ZodTuple",l.ZodRecord="ZodRecord",l.ZodMap="ZodMap",l.ZodSet="ZodSet",l.ZodFunction="ZodFunction",l.ZodLazy="ZodLazy",l.ZodLiteral="ZodLiteral",l.ZodEnum="ZodEnum",l.ZodEffects="ZodEffects",l.ZodNativeEnum="ZodNativeEnum",l.ZodOptional="ZodOptional",l.ZodNullable="ZodNullable",l.ZodDefault="ZodDefault",l.ZodCatch="ZodCatch",l.ZodPromise="ZodPromise",l.ZodBranded="ZodBranded",l.ZodPipeline="ZodPipeline",l.ZodReadonly="ZodReadonly"})(be||(be={}));const K=Wn.create,In=li.create;ii.create;const e0=_o.create;hr.create;const Wt=Hd.create;Tl.create;const Pi=ta.create,Ye=xt.create;Eo.create;Co.create;ri.create;const aa=No.create,Zn=mr.create;To.create;Cl.create;yr.create;const t0={string:(l=>Wn.create({...l,coerce:!0})),number:(l=>li.create({...l,coerce:!0})),boolean:(l=>_o.create({...l,coerce:!0})),bigint:(l=>ii.create({...l,coerce:!0})),date:(l=>hr.create({...l,coerce:!0}))},YC={FEISHU:"feishu",SLACK:"slack"},n0=Zn(["feishu","slack"]),a0=Zn(["active","inactive"]);Ye({platform:n0,agentId:K().min(1),credentials:aa(Wt()),status:a0.default("active")});Ye({agentId:K().min(1).optional(),credentials:aa(Wt()).optional(),status:a0.optional()});Ye({id:In(),platform:K(),agentId:K(),hasCredentials:e0(),status:K(),createdAt:K(),updatedAt:K()});const XC=Zn(["code","reverse_token","oauth","manual"]);Ye({platform:n0,externalUserId:K().min(1),agentId:K().min(1),boundVia:XC.default("manual"),displayName:K().max(200).optional()});Ye({id:In(),platform:K(),externalUserId:K(),agentId:K(),boundVia:K().nullable(),displayName:K().nullable(),createdAt:K()});Ye({configId:In(),platform:K(),agentId:K(),appId:K(),connected:e0(),lastActiveAt:K().nullable()});Ye({username:K().min(1),password:K().min(1)});Ye({accessToken:K(),refreshToken:K()});Ye({refreshToken:K().min(1)});const KC={SUPER_ADMIN:"super_admin",ADMIN:"admin"},ph=Zn(["super_admin","admin"]);Ye({id:K(),username:K(),role:ph,createdAt:K(),lastLoginAt:K().nullable()});Ye({username:K().min(1).max(100),password:K().min(8).max(200),role:ph.default("admin")});Ye({role:ph.optional(),password:K().min(8).max(200).optional()});const l0=Zn(["online","offline"]);Ye({agentId:K(),status:l0,connectedAt:K().nullable(),lastSeenAt:K()});const FC={HUMAN:"human",PERSONAL_ASSISTANT:"personal_assistant",AUTONOMOUS_AGENT:"autonomous_agent"},i0=Zn(["human","personal_assistant","autonomous_agent"]);Zn(["active","suspended"]);Ye({id:K().min(1).max(100).regex(/^[a-z0-9_-]+$/,"Only lowercase alphanumeric, hyphens, and underscores").optional(),type:i0,displayName:K().max(200).optional(),organizationId:K().max(100).optional(),metadata:aa(Wt()).optional()});Ye({syncedAt:K(),treePath:K(),summary:Ye({created:In(),updated:In(),suspended:In(),unchanged:In(),errors:In()}),created:Pi(K()),updated:Pi(K()),suspended:Pi(K()),errors:Pi(Ye({memberId:K(),error:K()}))});Ye({id:K(),organizationId:K(),type:i0,displayName:K().nullable(),delegateMention:K().nullable(),inboxId:K(),status:K(),metadata:aa(Wt()),presenceStatus:l0.optional(),createdAt:K(),updatedAt:K()});Ye({name:K().max(100).optional(),expiresAt:K().datetime().optional()});const JC=Ye({id:K(),agentId:K(),name:K().nullable(),expiresAt:K().nullable(),revokedAt:K().nullable(),createdAt:K(),lastUsedAt:K().nullable()});JC.extend({token:K()});const $C=Zn(["direct","group","thread"]);Ye({type:$C,topic:K().max(500).optional(),participantIds:Pi(K()).min(1),metadata:aa(Wt()).optional()});const IC=Ye({agentId:K(),role:K(),mode:K(),joinedAt:K()}),PC=Ye({id:K(),organizationId:K(),type:K(),topic:K().nullable(),lifecyclePolicy:K().nullable().optional(),metadata:aa(Wt()),createdAt:K(),updatedAt:K()});PC.extend({participants:Pi(IC)});Ye({agentId:K().min(1),mode:Zn(["full","mention_only"]).default("full")});Ye({agentId:K().min(1)});Ye({limit:t0.number().int().min(1).max(100).default(20),cursor:K().optional()});const r0=Zn(["text","markdown","card","reference","file"]);Ye({format:r0.default("text"),content:Wt(),metadata:aa(Wt()).optional(),inReplyTo:K().optional(),replyToInbox:K().optional(),replyToChat:K().optional()});Ye({format:r0.default("text"),content:Wt(),metadata:aa(Wt()).optional(),replyToInbox:K().optional(),replyToChat:K().optional()});const WC=Ye({id:K(),chatId:K(),senderId:K(),format:K(),content:Wt(),metadata:aa(Wt()),replyToInbox:K().nullable(),replyToChat:K().nullable(),inReplyTo:K().nullable(),createdAt:K()});Zn(["pending","delivered","acked","failed"]);const eN=Ye({id:In(),inboxId:K(),messageId:K(),chatId:K().nullable(),status:K(),retryCount:In(),createdAt:K(),deliveredAt:K().nullable(),ackedAt:K().nullable()});eN.extend({message:WC});Ye({limit:t0.number().int().min(1).max(50).default(10)});Ye({key:K(),value:Wt(),updatedAt:K()});aa(K(),Wt());const Aa={INBOX_TIMEOUT_SECONDS:"inbox_timeout_seconds",MAX_RETRY_COUNT:"max_retry_count",POLLING_INTERVAL_SECONDS:"polling_interval_seconds",PRESENCE_CLEANUP_SECONDS:"presence_cleanup_seconds"},dd={[Aa.INBOX_TIMEOUT_SECONDS]:300,[Aa.MAX_RETRY_COUNT]:3,[Aa.POLLING_INTERVAL_SECONDS]:5,[Aa.PRESENCE_CLEANUP_SECONDS]:60};function tN(){return tt.get("/admin/users")}function nN(l){return tt.post("/admin/users",l)}function aN(l,a){return tt.patch(`/admin/users/${encodeURIComponent(l)}`,a)}function lN(l){return tt.delete(`/admin/users/${encodeURIComponent(l)}`)}const yg=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,vg=Ub,s0=(l,a)=>r=>{var s;if((a==null?void 0:a.variants)==null)return vg(l,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:f}=a,h=Object.keys(o).map(y=>{const x=r==null?void 0:r[y],S=f==null?void 0:f[y];if(x===null)return null;const C=yg(x)||yg(S);return o[y][C]}),m=r&&Object.entries(r).reduce((y,x)=>{let[S,C]=x;return C===void 0||(y[S]=C),y},{}),v=a==null||(s=a.compoundVariants)===null||s===void 0?void 0:s.reduce((y,x)=>{let{class:S,className:C,...M}=x;return Object.entries(M).every(L=>{let[j,A]=L;return Array.isArray(A)?A.includes({...f,...m}[j]):{...f,...m}[j]===A})?[...y,S,C]:y},[]);return vg(l,h,v,r==null?void 0:r.class,r==null?void 0:r.className)},iN=s0("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive/10 text-destructive",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ft({className:l,variant:a,...r}){return d.jsx("div",{className:et(iN({variant:a}),l),...r})}function gg(l,a){if(typeof l=="function")return l(a);l!=null&&(l.current=a)}function yh(...l){return a=>{let r=!1;const s=l.map(o=>{const f=gg(o,a);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let o=0;o<s.length;o++){const f=s[o];typeof f=="function"?f():gg(l[o],null)}}}}function oi(...l){return b.useCallback(yh(...l),l)}var rN=Symbol.for("react.lazy"),jo=Id[" use ".trim().toString()];function sN(l){return typeof l=="object"&&l!==null&&"then"in l}function u0(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===rN&&"_payload"in l&&sN(l._payload)}function o0(l){const a=oN(l),r=b.forwardRef((s,o)=>{let{children:f,...h}=s;u0(f)&&typeof jo=="function"&&(f=jo(f._payload));const m=b.Children.toArray(f),v=m.find(fN);if(v){const y=v.props.children,x=m.map(S=>S===v?b.Children.count(y)>1?b.Children.only(null):b.isValidElement(y)?y.props.children:null:S);return d.jsx(a,{...h,ref:o,children:b.isValidElement(y)?b.cloneElement(y,void 0,x):null})}return d.jsx(a,{...h,ref:o,children:f})});return r.displayName=`${l}.Slot`,r}var uN=o0("Slot");function oN(l){const a=b.forwardRef((r,s)=>{let{children:o,...f}=r;if(u0(o)&&typeof jo=="function"&&(o=jo(o._payload)),b.isValidElement(o)){const h=hN(o),m=dN(f,o.props);return o.type!==b.Fragment&&(m.ref=s?yh(s,h):h),b.cloneElement(o,m)}return b.Children.count(o)>1?b.Children.only(null):null});return a.displayName=`${l}.SlotClone`,a}var cN=Symbol("radix.slottable");function fN(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===cN}function dN(l,a){const r={...a};for(const s in a){const o=l[s],f=a[s];/^on[A-Z]/.test(s)?o&&f?r[s]=(...m)=>{const v=f(...m);return o(...m),v}:o&&(r[s]=o):s==="style"?r[s]={...o,...f}:s==="className"&&(r[s]=[o,f].filter(Boolean).join(" "))}return{...l,...r}}function hN(l){var s,o;let a=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?l.ref:(a=(o=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}const mN=s0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-white shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),lt=b.forwardRef(({className:l,variant:a,size:r,asChild:s=!1,...o},f)=>{const h=s?uN:"button";return d.jsx(h,{className:et(mN({variant:a,size:r,className:l})),ref:f,...o})});lt.displayName="Button";function Nl(l,a,{checkForDefaultPrevented:r=!0}={}){return function(o){if(l==null||l(o),r===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function pN(l,a){const r=b.createContext(a),s=f=>{const{children:h,...m}=f,v=b.useMemo(()=>m,Object.values(m));return d.jsx(r.Provider,{value:v,children:h})};s.displayName=l+"Provider";function o(f){const h=b.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[s,o]}function yN(l,a=[]){let r=[];function s(f,h){const m=b.createContext(h),v=r.length;r=[...r,h];const y=S=>{var z;const{scope:C,children:M,...L}=S,j=((z=C==null?void 0:C[l])==null?void 0:z[v])||m,A=b.useMemo(()=>L,Object.values(L));return d.jsx(j.Provider,{value:A,children:M})};y.displayName=f+"Provider";function x(S,C){var j;const M=((j=C==null?void 0:C[l])==null?void 0:j[v])||m,L=b.useContext(M);if(L)return L;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[y,x]}const o=()=>{const f=r.map(h=>b.createContext(h));return function(m){const v=(m==null?void 0:m[l])||f;return b.useMemo(()=>({[`__scope${l}`]:{...m,[l]:v}}),[m,v])}};return o.scopeName=l,[s,vN(o,...a)]}function vN(...l){const a=l[0];if(l.length===1)return a;const r=()=>{const s=l.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(f){const h=s.reduce((m,{useScope:v,scopeName:y})=>{const S=v(f)[`__scope${y}`];return{...m,...S}},{});return b.useMemo(()=>({[`__scope${a.scopeName}`]:h}),[h])}};return r.scopeName=a.scopeName,r}var Ts=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},gN=Id[" useId ".trim().toString()]||(()=>{}),bN=0;function hd(l){const[a,r]=b.useState(gN());return Ts(()=>{r(s=>s??String(bN++))},[l]),l||(a?`radix-${a}`:"")}var xN=Id[" useInsertionEffect ".trim().toString()]||Ts;function SN({prop:l,defaultProp:a,onChange:r=()=>{},caller:s}){const[o,f,h]=_N({defaultProp:a,onChange:r}),m=l!==void 0,v=m?l:o;{const x=b.useRef(l!==void 0);b.useEffect(()=>{const S=x.current;S!==m&&console.warn(`${s} is changing from ${S?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,s])}const y=b.useCallback(x=>{var S;if(m){const C=EN(x)?x(l):x;C!==l&&((S=h.current)==null||S.call(h,C))}else f(x)},[m,l,f,h]);return[v,y]}function _N({defaultProp:l,onChange:a}){const[r,s]=b.useState(l),o=b.useRef(r),f=b.useRef(a);return xN(()=>{f.current=a},[a]),b.useEffect(()=>{var h;o.current!==r&&((h=f.current)==null||h.call(f,r),o.current=r)},[r,o]),[r,s,f]}function EN(l){return typeof l=="function"}var c0=Yg();const CN=Gg(c0);function f0(l){const a=NN(l),r=b.forwardRef((s,o)=>{const{children:f,...h}=s,m=b.Children.toArray(f),v=m.find(jN);if(v){const y=v.props.children,x=m.map(S=>S===v?b.Children.count(y)>1?b.Children.only(null):b.isValidElement(y)?y.props.children:null:S);return d.jsx(a,{...h,ref:o,children:b.isValidElement(y)?b.cloneElement(y,void 0,x):null})}return d.jsx(a,{...h,ref:o,children:f})});return r.displayName=`${l}.Slot`,r}function NN(l){const a=b.forwardRef((r,s)=>{const{children:o,...f}=r;if(b.isValidElement(o)){const h=AN(o),m=wN(f,o.props);return o.type!==b.Fragment&&(m.ref=s?yh(s,h):h),b.cloneElement(o,m)}return b.Children.count(o)>1?b.Children.only(null):null});return a.displayName=`${l}.SlotClone`,a}var TN=Symbol("radix.slottable");function jN(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===TN}function wN(l,a){const r={...a};for(const s in a){const o=l[s],f=a[s];/^on[A-Z]/.test(s)?o&&f?r[s]=(...m)=>{const v=f(...m);return o(...m),v}:o&&(r[s]=o):s==="style"?r[s]={...o,...f}:s==="className"&&(r[s]=[o,f].filter(Boolean).join(" "))}return{...l,...r}}function AN(l){var s,o;let a=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?l.ref:(a=(o=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}var RN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],La=RN.reduce((l,a)=>{const r=f0(`Primitive.${a}`),s=b.forwardRef((o,f)=>{const{asChild:h,...m}=o,v=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${a}`,{...l,[a]:s}},{});function ON(l,a){l&&c0.flushSync(()=>l.dispatchEvent(a))}function js(l){const a=b.useRef(l);return b.useEffect(()=>{a.current=l}),b.useMemo(()=>(...r)=>{var s;return(s=a.current)==null?void 0:s.call(a,...r)},[])}function MN(l,a=globalThis==null?void 0:globalThis.document){const r=js(l);b.useEffect(()=>{const s=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",s,{capture:!0}),()=>a.removeEventListener("keydown",s,{capture:!0})},[r,a])}var DN="DismissableLayer",Yd="dismissableLayer.update",zN="dismissableLayer.pointerDownOutside",kN="dismissableLayer.focusOutside",bg,d0=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h0=b.forwardRef((l,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...v}=l,y=b.useContext(d0),[x,S]=b.useState(null),C=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,M]=b.useState({}),L=oi(a,$=>S($)),j=Array.from(y.layers),[A]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),z=j.indexOf(A),J=x?j.indexOf(x):-1,H=y.layersWithOutsidePointerEventsDisabled.size>0,V=J>=z,Y=BN($=>{const G=$.target,he=[...y.branches].some(Ne=>Ne.contains(G));!V||he||(o==null||o($),h==null||h($),$.defaultPrevented||m==null||m())},C),X=qN($=>{const G=$.target;[...y.branches].some(Ne=>Ne.contains(G))||(f==null||f($),h==null||h($),$.defaultPrevented||m==null||m())},C);return MN($=>{J===y.layers.size-1&&(s==null||s($),!$.defaultPrevented&&m&&($.preventDefault(),m()))},C),b.useEffect(()=>{if(x)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(bg=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(x)),y.layers.add(x),xg(),()=>{r&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=bg)}},[x,C,r,y]),b.useEffect(()=>()=>{x&&(y.layers.delete(x),y.layersWithOutsidePointerEventsDisabled.delete(x),xg())},[x,y]),b.useEffect(()=>{const $=()=>M({});return document.addEventListener(Yd,$),()=>document.removeEventListener(Yd,$)},[]),d.jsx(La.div,{...v,ref:L,style:{pointerEvents:H?V?"auto":"none":void 0,...l.style},onFocusCapture:Nl(l.onFocusCapture,X.onFocusCapture),onBlurCapture:Nl(l.onBlurCapture,X.onBlurCapture),onPointerDownCapture:Nl(l.onPointerDownCapture,Y.onPointerDownCapture)})});h0.displayName=DN;var UN="DismissableLayerBranch",LN=b.forwardRef((l,a)=>{const r=b.useContext(d0),s=b.useRef(null),o=oi(a,s);return b.useEffect(()=>{const f=s.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),d.jsx(La.div,{...l,ref:o})});LN.displayName=UN;function BN(l,a=globalThis==null?void 0:globalThis.document){const r=js(l),s=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const f=m=>{if(m.target&&!s.current){let v=function(){m0(zN,r,y,{discrete:!0})};const y={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=v,a.addEventListener("click",o.current,{once:!0})):v()}else a.removeEventListener("click",o.current);s.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",f),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>s.current=!0}}function qN(l,a=globalThis==null?void 0:globalThis.document){const r=js(l),s=b.useRef(!1);return b.useEffect(()=>{const o=f=>{f.target&&!s.current&&m0(kN,r,{originalEvent:f},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function xg(){const l=new CustomEvent(Yd);document.dispatchEvent(l)}function m0(l,a,r,{discrete:s}){const o=r.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(l,a,{once:!0}),s?ON(o,f):o.dispatchEvent(f)}var md="focusScope.autoFocusOnMount",pd="focusScope.autoFocusOnUnmount",Sg={bubbles:!1,cancelable:!0},HN="FocusScope",p0=b.forwardRef((l,a)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:f,...h}=l,[m,v]=b.useState(null),y=js(o),x=js(f),S=b.useRef(null),C=oi(a,j=>v(j)),M=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let j=function(H){if(M.paused||!m)return;const V=H.target;m.contains(V)?S.current=V:dl(S.current,{select:!0})},A=function(H){if(M.paused||!m)return;const V=H.relatedTarget;V!==null&&(m.contains(V)||dl(S.current,{select:!0}))},z=function(H){if(document.activeElement===document.body)for(const Y of H)Y.removedNodes.length>0&&dl(m)};document.addEventListener("focusin",j),document.addEventListener("focusout",A);const J=new MutationObserver(z);return m&&J.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",A),J.disconnect()}}},[s,m,M.paused]),b.useEffect(()=>{if(m){Eg.add(M);const j=document.activeElement;if(!m.contains(j)){const z=new CustomEvent(md,Sg);m.addEventListener(md,y),m.dispatchEvent(z),z.defaultPrevented||(QN(XN(y0(m)),{select:!0}),document.activeElement===j&&dl(m))}return()=>{m.removeEventListener(md,y),setTimeout(()=>{const z=new CustomEvent(pd,Sg);m.addEventListener(pd,x),m.dispatchEvent(z),z.defaultPrevented||dl(j??document.body,{select:!0}),m.removeEventListener(pd,x),Eg.remove(M)},0)}}},[m,y,x,M]);const L=b.useCallback(j=>{if(!r&&!s||M.paused)return;const A=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,z=document.activeElement;if(A&&z){const J=j.currentTarget,[H,V]=ZN(J);H&&V?!j.shiftKey&&z===V?(j.preventDefault(),r&&dl(H,{select:!0})):j.shiftKey&&z===H&&(j.preventDefault(),r&&dl(V,{select:!0})):z===J&&j.preventDefault()}},[r,s,M.paused]);return d.jsx(La.div,{tabIndex:-1,...h,ref:C,onKeyDown:L})});p0.displayName=HN;function QN(l,{select:a=!1}={}){const r=document.activeElement;for(const s of l)if(dl(s,{select:a}),document.activeElement!==r)return}function ZN(l){const a=y0(l),r=_g(a,l),s=_g(a.reverse(),l);return[r,s]}function y0(l){const a=[],r=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function _g(l,a){for(const r of l)if(!VN(r,{upTo:a}))return r}function VN(l,{upTo:a}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(a!==void 0&&l===a)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function GN(l){return l instanceof HTMLInputElement&&"select"in l}function dl(l,{select:a=!1}={}){if(l&&l.focus){const r=document.activeElement;l.focus({preventScroll:!0}),l!==r&&GN(l)&&a&&l.select()}}var Eg=YN();function YN(){let l=[];return{add(a){const r=l[0];a!==r&&(r==null||r.pause()),l=Cg(l,a),l.unshift(a)},remove(a){var r;l=Cg(l,a),(r=l[0])==null||r.resume()}}}function Cg(l,a){const r=[...l],s=r.indexOf(a);return s!==-1&&r.splice(s,1),r}function XN(l){return l.filter(a=>a.tagName!=="A")}var KN="Portal",v0=b.forwardRef((l,a)=>{var m;const{container:r,...s}=l,[o,f]=b.useState(!1);Ts(()=>f(!0),[]);const h=r||o&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?CN.createPortal(d.jsx(La.div,{...s,ref:a}),h):null});v0.displayName=KN;function FN(l,a){return b.useReducer((r,s)=>a[r][s]??r,l)}var zo=l=>{const{present:a,children:r}=l,s=JN(a),o=typeof r=="function"?r({present:s.isPresent}):b.Children.only(r),f=oi(s.ref,$N(o));return typeof r=="function"||s.isPresent?b.cloneElement(o,{ref:f}):null};zo.displayName="Presence";function JN(l){const[a,r]=b.useState(),s=b.useRef(null),o=b.useRef(l),f=b.useRef("none"),h=l?"mounted":"unmounted",[m,v]=FN(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const y=io(s.current);f.current=m==="mounted"?y:"none"},[m]),Ts(()=>{const y=s.current,x=o.current;if(x!==l){const C=f.current,M=io(y);l?v("MOUNT"):M==="none"||(y==null?void 0:y.display)==="none"?v("UNMOUNT"):v(x&&C!==M?"ANIMATION_OUT":"UNMOUNT"),o.current=l}},[l,v]),Ts(()=>{if(a){let y;const x=a.ownerDocument.defaultView??window,S=M=>{const j=io(s.current).includes(CSS.escape(M.animationName));if(M.target===a&&j&&(v("ANIMATION_END"),!o.current)){const A=a.style.animationFillMode;a.style.animationFillMode="forwards",y=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=A)})}},C=M=>{M.target===a&&(f.current=io(s.current))};return a.addEventListener("animationstart",C),a.addEventListener("animationcancel",S),a.addEventListener("animationend",S),()=>{x.clearTimeout(y),a.removeEventListener("animationstart",C),a.removeEventListener("animationcancel",S),a.removeEventListener("animationend",S)}}else v("ANIMATION_END")},[a,v]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(y=>{s.current=y?getComputedStyle(y):null,r(y)},[])}}function io(l){return(l==null?void 0:l.animationName)||"none"}function $N(l){var s,o;let a=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?l.ref:(a=(o=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}var yd=0;function IN(){b.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??Ng()),document.body.insertAdjacentElement("beforeend",l[1]??Ng()),yd++,()=>{yd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),yd--}},[])}function Ng(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var Pn=function(){return Pn=Object.assign||function(a){for(var r,s=1,o=arguments.length;s<o;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(a[f]=r[f])}return a},Pn.apply(this,arguments)};function g0(l,a){var r={};for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&a.indexOf(s)<0&&(r[s]=l[s]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(l);o<s.length;o++)a.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(l,s[o])&&(r[s[o]]=l[s[o]]);return r}function PN(l,a,r){if(r||arguments.length===2)for(var s=0,o=a.length,f;s<o;s++)(f||!(s in a))&&(f||(f=Array.prototype.slice.call(a,0,s)),f[s]=a[s]);return l.concat(f||Array.prototype.slice.call(a))}var mo="right-scroll-bar-position",po="width-before-scroll-bar",WN="with-scroll-bars-hidden",eT="--removed-body-scroll-bar-size";function vd(l,a){return typeof l=="function"?l(a):l&&(l.current=a),l}function tT(l,a){var r=b.useState(function(){return{value:l,callback:a,facade:{get current(){return r.value},set current(s){var o=r.value;o!==s&&(r.value=s,r.callback(s,o))}}}})[0];return r.callback=a,r.facade}var nT=typeof window<"u"?b.useLayoutEffect:b.useEffect,Tg=new WeakMap;function aT(l,a){var r=tT(null,function(s){return l.forEach(function(o){return vd(o,s)})});return nT(function(){var s=Tg.get(r);if(s){var o=new Set(s),f=new Set(l),h=r.current;o.forEach(function(m){f.has(m)||vd(m,null)}),f.forEach(function(m){o.has(m)||vd(m,h)})}Tg.set(r,l)},[l]),r}function lT(l){return l}function iT(l,a){a===void 0&&(a=lT);var r=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:l},useMedium:function(f){var h=a(f,s);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(s=!0;r.length;){var h=r;r=[],h.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){s=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(f),h=r}var v=function(){var x=h;h=[],x.forEach(f)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(x){h.push(x),y()},filter:function(x){return h=h.filter(x),r}}}};return o}function rT(l){l===void 0&&(l={});var a=iT(null);return a.options=Pn({async:!0,ssr:!1},l),a}var b0=function(l){var a=l.sideCar,r=g0(l,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=a.read();if(!s)throw new Error("Sidecar medium not found");return b.createElement(s,Pn({},r))};b0.isSideCarExport=!0;function sT(l,a){return l.useMedium(a),b0}var x0=rT(),gd=function(){},ko=b.forwardRef(function(l,a){var r=b.useRef(null),s=b.useState({onScrollCapture:gd,onWheelCapture:gd,onTouchMoveCapture:gd}),o=s[0],f=s[1],h=l.forwardProps,m=l.children,v=l.className,y=l.removeScrollBar,x=l.enabled,S=l.shards,C=l.sideCar,M=l.noRelative,L=l.noIsolation,j=l.inert,A=l.allowPinchZoom,z=l.as,J=z===void 0?"div":z,H=l.gapMode,V=g0(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=C,X=aT([r,a]),$=Pn(Pn({},V),o);return b.createElement(b.Fragment,null,x&&b.createElement(Y,{sideCar:x0,removeScrollBar:y,shards:S,noRelative:M,noIsolation:L,inert:j,setCallbacks:f,allowPinchZoom:!!A,lockRef:r,gapMode:H}),h?b.cloneElement(b.Children.only(m),Pn(Pn({},$),{ref:X})):b.createElement(J,Pn({},$,{className:v,ref:X}),m))});ko.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ko.classNames={fullWidth:po,zeroRight:mo};var uT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oT(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var a=uT();return a&&l.setAttribute("nonce",a),l}function cT(l,a){l.styleSheet?l.styleSheet.cssText=a:l.appendChild(document.createTextNode(a))}function fT(l){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(l)}var dT=function(){var l=0,a=null;return{add:function(r){l==0&&(a=oT())&&(cT(a,r),fT(a)),l++},remove:function(){l--,!l&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},hT=function(){var l=dT();return function(a,r){b.useEffect(function(){return l.add(a),function(){l.remove()}},[a&&r])}},S0=function(){var l=hT(),a=function(r){var s=r.styles,o=r.dynamic;return l(s,o),null};return a},mT={left:0,top:0,right:0,gap:0},bd=function(l){return parseInt(l||"",10)||0},pT=function(l){var a=window.getComputedStyle(document.body),r=a[l==="padding"?"paddingLeft":"marginLeft"],s=a[l==="padding"?"paddingTop":"marginTop"],o=a[l==="padding"?"paddingRight":"marginRight"];return[bd(r),bd(s),bd(o)]},yT=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return mT;var a=pT(l),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,s-r+a[2]-a[0])}},vT=S0(),Wi="data-scroll-locked",gT=function(l,a,r,s){var o=l.left,f=l.top,h=l.right,m=l.gap;return r===void 0&&(r="margin"),`
|
|
186
|
+
.`.concat(WN,` {
|
|
187
|
+
overflow: hidden `).concat(s,`;
|
|
188
|
+
padding-right: `).concat(m,"px ").concat(s,`;
|
|
189
|
+
}
|
|
190
|
+
body[`).concat(Wi,`] {
|
|
191
|
+
overflow: hidden `).concat(s,`;
|
|
192
|
+
overscroll-behavior: contain;
|
|
193
|
+
`).concat([a&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
194
|
+
padding-left: `.concat(o,`px;
|
|
195
|
+
padding-top: `).concat(f,`px;
|
|
196
|
+
padding-right: `).concat(h,`px;
|
|
197
|
+
margin-left:0;
|
|
198
|
+
margin-top:0;
|
|
199
|
+
margin-right: `).concat(m,"px ").concat(s,`;
|
|
200
|
+
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.`).concat(mo,` {
|
|
204
|
+
right: `).concat(m,"px ").concat(s,`;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.`).concat(po,` {
|
|
208
|
+
margin-right: `).concat(m,"px ").concat(s,`;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.`).concat(mo," .").concat(mo,` {
|
|
212
|
+
right: 0 `).concat(s,`;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.`).concat(po," .").concat(po,` {
|
|
216
|
+
margin-right: 0 `).concat(s,`;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
body[`).concat(Wi,`] {
|
|
220
|
+
`).concat(eT,": ").concat(m,`px;
|
|
221
|
+
}
|
|
222
|
+
`)},jg=function(){var l=parseInt(document.body.getAttribute(Wi)||"0",10);return isFinite(l)?l:0},bT=function(){b.useEffect(function(){return document.body.setAttribute(Wi,(jg()+1).toString()),function(){var l=jg()-1;l<=0?document.body.removeAttribute(Wi):document.body.setAttribute(Wi,l.toString())}},[])},xT=function(l){var a=l.noRelative,r=l.noImportant,s=l.gapMode,o=s===void 0?"margin":s;bT();var f=b.useMemo(function(){return yT(o)},[o]);return b.createElement(vT,{styles:gT(f,!a,o,r?"":"!important")})},Xd=!1;if(typeof window<"u")try{var ro=Object.defineProperty({},"passive",{get:function(){return Xd=!0,!0}});window.addEventListener("test",ro,ro),window.removeEventListener("test",ro,ro)}catch{Xd=!1}var Fi=Xd?{passive:!1}:!1,ST=function(l){return l.tagName==="TEXTAREA"},_0=function(l,a){if(!(l instanceof Element))return!1;var r=window.getComputedStyle(l);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!ST(l)&&r[a]==="visible")},_T=function(l){return _0(l,"overflowY")},ET=function(l){return _0(l,"overflowX")},wg=function(l,a){var r=a.ownerDocument,s=a;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=E0(l,s);if(o){var f=C0(l,s),h=f[1],m=f[2];if(h>m)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},CT=function(l){var a=l.scrollTop,r=l.scrollHeight,s=l.clientHeight;return[a,r,s]},NT=function(l){var a=l.scrollLeft,r=l.scrollWidth,s=l.clientWidth;return[a,r,s]},E0=function(l,a){return l==="v"?_T(a):ET(a)},C0=function(l,a){return l==="v"?CT(a):NT(a)},TT=function(l,a){return l==="h"&&a==="rtl"?-1:1},jT=function(l,a,r,s,o){var f=TT(l,window.getComputedStyle(a).direction),h=f*s,m=r.target,v=a.contains(m),y=!1,x=h>0,S=0,C=0;do{if(!m)break;var M=C0(l,m),L=M[0],j=M[1],A=M[2],z=j-A-f*L;(L||z)&&E0(l,m)&&(S+=z,C+=L);var J=m.parentNode;m=J&&J.nodeType===Node.DOCUMENT_FRAGMENT_NODE?J.host:J}while(!v&&m!==document.body||v&&(a.contains(m)||a===m));return(x&&Math.abs(S)<1||!x&&Math.abs(C)<1)&&(y=!0),y},so=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},Ag=function(l){return[l.deltaX,l.deltaY]},Rg=function(l){return l&&"current"in l?l.current:l},wT=function(l,a){return l[0]===a[0]&&l[1]===a[1]},AT=function(l){return`
|
|
223
|
+
.block-interactivity-`.concat(l,` {pointer-events: none;}
|
|
224
|
+
.allow-interactivity-`).concat(l,` {pointer-events: all;}
|
|
225
|
+
`)},RT=0,Ji=[];function OT(l){var a=b.useRef([]),r=b.useRef([0,0]),s=b.useRef(),o=b.useState(RT++)[0],f=b.useState(S0)[0],h=b.useRef(l);b.useEffect(function(){h.current=l},[l]),b.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(o));var j=PN([l.lockRef.current],(l.shards||[]).map(Rg),!0).filter(Boolean);return j.forEach(function(A){return A.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),j.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(o))})}}},[l.inert,l.lockRef.current,l.shards]);var m=b.useCallback(function(j,A){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!h.current.allowPinchZoom;var z=so(j),J=r.current,H="deltaX"in j?j.deltaX:J[0]-z[0],V="deltaY"in j?j.deltaY:J[1]-z[1],Y,X=j.target,$=Math.abs(H)>Math.abs(V)?"h":"v";if("touches"in j&&$==="h"&&X.type==="range")return!1;var G=window.getSelection(),he=G&&G.anchorNode,Ne=he?he===X||he.contains(X):!1;if(Ne)return!1;var Qe=wg($,X);if(!Qe)return!0;if(Qe?Y=$:(Y=$==="v"?"h":"v",Qe=wg($,X)),!Qe)return!1;if(!s.current&&"changedTouches"in j&&(H||V)&&(s.current=Y),!Y)return!0;var qe=s.current||Y;return jT(qe,A,j,qe==="h"?H:V)},[]),v=b.useCallback(function(j){var A=j;if(!(!Ji.length||Ji[Ji.length-1]!==f)){var z="deltaY"in A?Ag(A):so(A),J=a.current.filter(function(Y){return Y.name===A.type&&(Y.target===A.target||A.target===Y.shadowParent)&&wT(Y.delta,z)})[0];if(J&&J.should){A.cancelable&&A.preventDefault();return}if(!J){var H=(h.current.shards||[]).map(Rg).filter(Boolean).filter(function(Y){return Y.contains(A.target)}),V=H.length>0?m(A,H[0]):!h.current.noIsolation;V&&A.cancelable&&A.preventDefault()}}},[]),y=b.useCallback(function(j,A,z,J){var H={name:j,delta:A,target:z,should:J,shadowParent:MT(z)};a.current.push(H),setTimeout(function(){a.current=a.current.filter(function(V){return V!==H})},1)},[]),x=b.useCallback(function(j){r.current=so(j),s.current=void 0},[]),S=b.useCallback(function(j){y(j.type,Ag(j),j.target,m(j,l.lockRef.current))},[]),C=b.useCallback(function(j){y(j.type,so(j),j.target,m(j,l.lockRef.current))},[]);b.useEffect(function(){return Ji.push(f),l.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Fi),document.addEventListener("touchmove",v,Fi),document.addEventListener("touchstart",x,Fi),function(){Ji=Ji.filter(function(j){return j!==f}),document.removeEventListener("wheel",v,Fi),document.removeEventListener("touchmove",v,Fi),document.removeEventListener("touchstart",x,Fi)}},[]);var M=l.removeScrollBar,L=l.inert;return b.createElement(b.Fragment,null,L?b.createElement(f,{styles:AT(o)}):null,M?b.createElement(xT,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function MT(l){for(var a=null;l!==null;)l instanceof ShadowRoot&&(a=l.host,l=l.host),l=l.parentNode;return a}const DT=sT(x0,OT);var N0=b.forwardRef(function(l,a){return b.createElement(ko,Pn({},l,{ref:a,sideCar:DT}))});N0.classNames=ko.classNames;var zT=function(l){if(typeof document>"u")return null;var a=Array.isArray(l)?l[0]:l;return a.ownerDocument.body},$i=new WeakMap,uo=new WeakMap,oo={},xd=0,T0=function(l){return l&&(l.host||T0(l.parentNode))},kT=function(l,a){return a.map(function(r){if(l.contains(r))return r;var s=T0(r);return s&&l.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",l,". Doing nothing"),null)}).filter(function(r){return!!r})},UT=function(l,a,r,s){var o=kT(a,Array.isArray(l)?l:[l]);oo[r]||(oo[r]=new WeakMap);var f=oo[r],h=[],m=new Set,v=new Set(o),y=function(S){!S||m.has(S)||(m.add(S),y(S.parentNode))};o.forEach(y);var x=function(S){!S||v.has(S)||Array.prototype.forEach.call(S.children,function(C){if(m.has(C))x(C);else try{var M=C.getAttribute(s),L=M!==null&&M!=="false",j=($i.get(C)||0)+1,A=(f.get(C)||0)+1;$i.set(C,j),f.set(C,A),h.push(C),j===1&&L&&uo.set(C,!0),A===1&&C.setAttribute(r,"true"),L||C.setAttribute(s,"true")}catch(z){console.error("aria-hidden: cannot operate on ",C,z)}})};return x(a),m.clear(),xd++,function(){h.forEach(function(S){var C=$i.get(S)-1,M=f.get(S)-1;$i.set(S,C),f.set(S,M),C||(uo.has(S)||S.removeAttribute(s),uo.delete(S)),M||S.removeAttribute(r)}),xd--,xd||($i=new WeakMap,$i=new WeakMap,uo=new WeakMap,oo={})}},LT=function(l,a,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(l)?l:[l]),o=zT(l);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),UT(s,o,r,"aria-hidden")):function(){return null}},Uo="Dialog",[j0]=yN(Uo),[BT,Vn]=j0(Uo),w0=l=>{const{__scopeDialog:a,children:r,open:s,defaultOpen:o,onOpenChange:f,modal:h=!0}=l,m=b.useRef(null),v=b.useRef(null),[y,x]=SN({prop:s,defaultProp:o??!1,onChange:f,caller:Uo});return d.jsx(BT,{scope:a,triggerRef:m,contentRef:v,contentId:hd(),titleId:hd(),descriptionId:hd(),open:y,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(S=>!S),[x]),modal:h,children:r})};w0.displayName=Uo;var A0="DialogTrigger",R0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(A0,r),f=oi(a,o.triggerRef);return d.jsx(La.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bh(o.open),...s,ref:f,onClick:Nl(l.onClick,o.onOpenToggle)})});R0.displayName=A0;var vh="DialogPortal",[qT,O0]=j0(vh,{forceMount:void 0}),M0=l=>{const{__scopeDialog:a,forceMount:r,children:s,container:o}=l,f=Vn(vh,a);return d.jsx(qT,{scope:a,forceMount:r,children:b.Children.map(s,h=>d.jsx(zo,{present:r||f.open,children:d.jsx(v0,{asChild:!0,container:o,children:h})}))})};M0.displayName=vh;var wo="DialogOverlay",D0=b.forwardRef((l,a)=>{const r=O0(wo,l.__scopeDialog),{forceMount:s=r.forceMount,...o}=l,f=Vn(wo,l.__scopeDialog);return f.modal?d.jsx(zo,{present:s||f.open,children:d.jsx(QT,{...o,ref:a})}):null});D0.displayName=wo;var HT=f0("DialogOverlay.RemoveScroll"),QT=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(wo,r);return d.jsx(N0,{as:HT,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(La.div,{"data-state":bh(o.open),...s,ref:a,style:{pointerEvents:"auto",...s.style}})})}),si="DialogContent",z0=b.forwardRef((l,a)=>{const r=O0(si,l.__scopeDialog),{forceMount:s=r.forceMount,...o}=l,f=Vn(si,l.__scopeDialog);return d.jsx(zo,{present:s||f.open,children:f.modal?d.jsx(ZT,{...o,ref:a}):d.jsx(VT,{...o,ref:a})})});z0.displayName=si;var ZT=b.forwardRef((l,a)=>{const r=Vn(si,l.__scopeDialog),s=b.useRef(null),o=oi(a,r.contentRef,s);return b.useEffect(()=>{const f=s.current;if(f)return LT(f)},[]),d.jsx(k0,{...l,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nl(l.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Nl(l.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:Nl(l.onFocusOutside,f=>f.preventDefault())})}),VT=b.forwardRef((l,a)=>{const r=Vn(si,l.__scopeDialog),s=b.useRef(!1),o=b.useRef(!1);return d.jsx(k0,{...l,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=l.onCloseAutoFocus)==null||h.call(l,f),f.defaultPrevented||(s.current||(m=r.triggerRef.current)==null||m.focus(),f.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:f=>{var v,y;(v=l.onInteractOutside)==null||v.call(l,f),f.defaultPrevented||(s.current=!0,f.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const h=f.target;((y=r.triggerRef.current)==null?void 0:y.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&o.current&&f.preventDefault()}})}),k0=b.forwardRef((l,a)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:f,...h}=l,m=Vn(si,r),v=b.useRef(null),y=oi(a,v);return IN(),d.jsxs(d.Fragment,{children:[d.jsx(p0,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:f,children:d.jsx(h0,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":bh(m.open),...h,ref:y,onDismiss:()=>m.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(GT,{titleId:m.titleId}),d.jsx(XT,{contentRef:v,descriptionId:m.descriptionId})]})]})}),gh="DialogTitle",U0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(gh,r);return d.jsx(La.h2,{id:o.titleId,...s,ref:a})});U0.displayName=gh;var L0="DialogDescription",B0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(L0,r);return d.jsx(La.p,{id:o.descriptionId,...s,ref:a})});B0.displayName=L0;var q0="DialogClose",H0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(q0,r);return d.jsx(La.button,{type:"button",...s,ref:a,onClick:Nl(l.onClick,()=>o.onOpenChange(!1))})});H0.displayName=q0;function bh(l){return l?"open":"closed"}var Q0="DialogTitleWarning",[Xj,Z0]=pN(Q0,{contentName:si,titleName:gh,docsSlug:"dialog"}),GT=({titleId:l})=>{const a=Z0(Q0),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
226
|
+
|
|
227
|
+
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
228
|
+
|
|
229
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return b.useEffect(()=>{l&&(document.getElementById(l)||console.error(r))},[r,l]),null},YT="DialogDescriptionWarning",XT=({contentRef:l,descriptionId:a})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Z0(YT).contentName}}.`;return b.useEffect(()=>{var f;const o=(f=l.current)==null?void 0:f.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(s))},[s,l,a]),null},KT=w0,FT=R0,JT=M0,$T=D0,IT=z0,PT=U0,WT=B0,ej=H0;const Kd=KT,tj=FT,nj=JT,V0=b.forwardRef(({className:l,...a},r)=>d.jsx($T,{ref:r,className:et("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",l),...a}));V0.displayName="DialogOverlay";const Ao=b.forwardRef(({className:l,children:a,...r},s)=>d.jsxs(nj,{children:[d.jsx(V0,{}),d.jsxs(IT,{ref:s,className:et("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",l),...r,children:[a,d.jsxs(ej,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(j2,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ao.displayName="DialogContent";function Fd({className:l,...a}){return d.jsx("div",{className:et("flex flex-col space-y-1.5 text-center sm:text-left",l),...a})}function yo({className:l,...a}){return d.jsx("div",{className:et("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",l),...a})}const Ro=b.forwardRef(({className:l,...a},r)=>d.jsx(PT,{ref:r,className:et("text-lg font-semibold leading-none tracking-tight",l),...a}));Ro.displayName="DialogTitle";const aj=b.forwardRef(({className:l,...a},r)=>d.jsx(WT,{ref:r,className:et("text-sm text-muted-foreground",l),...a}));aj.displayName="DialogDescription";const jn=b.forwardRef(({className:l,type:a,...r},s)=>d.jsx("input",{type:a,className:et("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",l),ref:s,...r}));jn.displayName="Input";var lj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ij=lj.reduce((l,a)=>{const r=o0(`Primitive.${a}`),s=b.forwardRef((o,f)=>{const{asChild:h,...m}=o,v=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${a}`,{...l,[a]:s}},{}),rj="Label",G0=b.forwardRef((l,a)=>d.jsx(ij.label,{...l,ref:a,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=l.onMouseDown)==null||o.call(l,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));G0.displayName=rj;var sj=G0;const Qt=b.forwardRef(({className:l,...a},r)=>d.jsx(sj,{ref:r,className:et("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",l),...a}));Qt.displayName="Label";const Ra=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:r,className:et("w-full caption-bottom text-sm",l),...a})}));Ra.displayName="Table";const Oa=b.forwardRef(({className:l,...a},r)=>d.jsx("thead",{ref:r,className:et("[&_tr]:border-b",l),...a}));Oa.displayName="TableHeader";const Ma=b.forwardRef(({className:l,...a},r)=>d.jsx("tbody",{ref:r,className:et("[&_tr:last-child]:border-0",l),...a}));Ma.displayName="TableBody";const He=b.forwardRef(({className:l,...a},r)=>d.jsx("tr",{ref:r,className:et("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",l),...a}));He.displayName="TableRow";const ge=b.forwardRef(({className:l,...a},r)=>d.jsx("th",{ref:r,className:et("h-10 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",l),...a}));ge.displayName="TableHead";const ue=b.forwardRef(({className:l,...a},r)=>d.jsx("td",{ref:r,className:et("p-4 align-middle [&:has([role=checkbox])]:pr-0",l),...a}));ue.displayName="TableCell";const uj=Object.values(KC);function oj(){const l=gr(),[a,r]=b.useState(!1),[s,o]=b.useState("create"),[f,h]=b.useState(null),[m,v]=b.useState({username:"",password:"",role:"admin"}),{data:y,isLoading:x,error:S}=Ut({queryKey:["admin-users"],queryFn:tN}),C=fn({mutationFn:()=>nN({username:m.username,password:m.password,role:m.role}),onSuccess:()=>{l.invalidateQueries({queryKey:["admin-users"]}),j()}}),M=fn({mutationFn:()=>{if(!f)throw new Error("No user selected");const X={};return s==="edit"&&(X.role=m.role),s==="reset-password"&&(X.password=m.password),aN(f,X)},onSuccess:()=>{l.invalidateQueries({queryKey:["admin-users"]}),j()}}),L=fn({mutationFn:lN,onSuccess:()=>l.invalidateQueries({queryKey:["admin-users"]})});function j(){r(!1),o("create"),h(null),v({username:"",password:"",role:"admin"})}function A(X){h(X.id),o("edit"),v({username:"",password:"",role:X.role}),r(!0)}function z(X){h(X),o("reset-password"),v({username:"",password:"",role:"admin"}),r(!0)}function J(X){X.preventDefault(),s==="create"?C.mutate():M.mutate()}function H(X){window.confirm("Delete this admin user?")&&L.mutate(X)}const V=C.error??M.error,Y=C.isPending||M.isPending;return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Admin Users"}),d.jsxs(Kd,{open:a,onOpenChange:X=>X?r(!0):j(),children:[d.jsx(tj,{asChild:!0,children:d.jsxs(lt,{onClick:()=>o("create"),children:[d.jsx(Ld,{className:"h-4 w-4 mr-2"}),"Add Admin"]})}),d.jsxs(Ao,{children:[d.jsx(Fd,{children:d.jsx(Ro,{children:s==="create"?"Create Admin User":s==="edit"?"Edit Role":"Reset Password"})}),d.jsxs("form",{onSubmit:J,className:"space-y-4",children:[s==="create"&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"admin-username",children:"Username"}),d.jsx(jn,{id:"admin-username",value:m.username,onChange:X=>v({...m,username:X.target.value}),required:!0})]}),(s==="create"||s==="reset-password")&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"admin-password",children:"Password"}),d.jsx(jn,{id:"admin-password",type:"password",autoComplete:"new-password",value:m.password,onChange:X=>v({...m,password:X.target.value}),required:!0,minLength:8})]}),(s==="create"||s==="edit")&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"admin-role",children:"Role"}),d.jsx("select",{id:"admin-role",value:m.role,onChange:X=>v({...m,role:X.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:uj.map(X=>d.jsx("option",{value:X,children:X},X))})]}),V instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:V.message}),d.jsx(yo,{children:d.jsx(lt,{type:"submit",disabled:Y,children:Y?"Saving...":"Save"})})]})]})]})]}),d.jsx("div",{className:"border rounded-lg",children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"Username"}),d.jsx(ge,{children:"Role"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{children:"Last Login"}),d.jsx(ge,{className:"w-32"})]})}),d.jsx(Ma,{children:x?d.jsx(He,{children:d.jsx(ue,{colSpan:5,className:"text-center py-8 text-muted-foreground",children:"Loading..."})}):S?d.jsx(He,{children:d.jsxs(ue,{colSpan:5,className:"text-center py-8 text-destructive",children:["Failed to load admin users: ",S instanceof Error?S.message:"Unknown error"]})}):(y==null?void 0:y.length)===0?d.jsx(He,{children:d.jsx(ue,{colSpan:5,className:"text-center py-8 text-muted-foreground",children:"No admin users"})}):y==null?void 0:y.map(X=>d.jsxs(He,{children:[d.jsx(ue,{className:"font-medium",children:X.username}),d.jsx(ue,{children:d.jsx(ft,{variant:X.role==="super_admin"?"default":"secondary",children:X.role})}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(X.createdAt)}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(X.lastLoginAt)}),d.jsx(ue,{children:d.jsxs("div",{className:"flex gap-1",children:[d.jsx(lt,{variant:"ghost",size:"icon",onClick:()=>A(X),title:"Edit role",children:d.jsx(zb,{className:"h-4 w-4"})}),d.jsx(lt,{variant:"ghost",size:"sm",onClick:()=>z(X.id),title:"Reset password",children:"Reset PW"}),d.jsx(lt,{variant:"ghost",size:"icon",onClick:()=>H(X.id),disabled:L.isPending,title:"Delete",children:d.jsx(xs,{className:"h-4 w-4"})})]})})]},X.id))})]})})]})}function Y0(){return tt.get("/admin/adapter-mappings")}function cj(l){return tt.post("/admin/adapter-mappings",l)}function fj(l){return tt.delete(`/admin/adapter-mappings/${l}`)}function X0(){return tt.get("/admin/adapters/status")}function K0(){return tt.get("/admin/adapters")}function dj(l){return tt.post("/admin/adapters",l)}function hj(l,a){return tt.patch(`/admin/adapters/${l}`,a)}function mj(l){return tt.delete(`/admin/adapters/${l}`)}function pj(l){const a=new URLSearchParams;a.set("limit",String(l.limit)),l!=null&&l.cursor&&a.set("cursor",l.cursor);const r=a.toString();return tt.get(`/admin/agents${r?`?${r}`:""}`)}function yj(l){return tt.get(`/admin/agents/${encodeURIComponent(l)}`)}function vj(l){return tt.delete(`/admin/agents/${encodeURIComponent(l)}`)}function gj(){return tt.post("/admin/agents/sync",{})}function bj(){return tt.get("/admin/agents/sync/status")}function xj(l){return tt.get(`/admin/agents/${encodeURIComponent(l)}/tokens`)}function Sj(l,a){return tt.post(`/admin/agents/${encodeURIComponent(l)}/tokens`,a)}function _j(l,a){return tt.delete(`/admin/agents/${encodeURIComponent(l)}/tokens/${encodeURIComponent(a)}`)}const Ln=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:et("rounded-xl border bg-card text-card-foreground shadow-sm",l),...a}));Ln.displayName="Card";const Bn=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:et("flex flex-col space-y-1.5 p-6",l),...a}));Bn.displayName="CardHeader";const qn=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:et("font-semibold leading-none tracking-tight",l),...a}));qn.displayName="CardTitle";const F0=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:et("text-sm text-muted-foreground",l),...a}));F0.displayName="CardDescription";const Hn=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:et("p-6 pt-0",l),...a}));Hn.displayName="CardContent";const Ej=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:et("flex items-center p-6 pt-0",l),...a}));Ej.displayName="CardFooter";const Cj=Object.values(YC);function Nj(){var Rn,mn,On,la,Lt;const a=$_().agentId??"",r=zs(),s=gr(),o=Ut({queryKey:["agent",a],queryFn:()=>yj(a),enabled:!!a}),f=Ut({queryKey:["tokens",a],queryFn:()=>xj(a),enabled:!!a&&o.isSuccess&&((Rn=o.data)==null?void 0:Rn.type)!=="human"}),h=Ut({queryKey:["adapters"],queryFn:K0}),m=Ut({queryKey:["adapter-mappings"],queryFn:Y0}),{data:v}=Ut({queryKey:["adapter-statuses"],queryFn:X0,refetchInterval:15e3}),y=((mn=h.data)==null?void 0:mn.filter(P=>P.agentId===a))??[],x=((On=m.data)==null?void 0:On.filter(P=>P.agentId===a))??[],[S,C]=b.useState(!1),[M,L]=b.useState(""),[j,A]=b.useState(null),[z,J]=b.useState(!1),[H,V]=b.useState(null),[Y,X]=b.useState({platform:"feishu",feishuAppId:"",feishuAppSecret:"",credentialsJson:"{}",status:"active",externalUserId:"",displayName:""}),[$,G]=b.useState(""),he=fn({mutationFn:()=>vj(a),onSuccess:()=>r("/agents")}),Ne=fn({mutationFn:P=>Sj(a,{name:P||void 0}),onSuccess:P=>{A(P.token),L(""),s.invalidateQueries({queryKey:["tokens",a]})}}),Qe=fn({mutationFn:P=>_j(a,P),onSuccess:()=>s.invalidateQueries({queryKey:["tokens",a]})}),qe=fn({mutationFn:()=>{const P=Og(Y);if(!P)throw new Error("Credentials are required");return dj({platform:Y.platform,agentId:a,credentials:P,status:Y.status})},onSuccess:()=>{s.invalidateQueries({queryKey:["adapters"]}),Re()}}),pt=fn({mutationFn:()=>{if(!H)throw new Error("No adapter selected");const P={status:Y.status},jt=Og(Y);return jt&&(P.credentials=jt),hj(H,P)},onSuccess:()=>{s.invalidateQueries({queryKey:["adapters"]}),Re()}}),it=fn({mutationFn:mj,onSuccess:()=>s.invalidateQueries({queryKey:["adapters"]})}),De=fn({mutationFn:()=>cj({platform:Y.platform,externalUserId:Y.externalUserId,agentId:a,boundVia:"manual",displayName:Y.displayName||void 0}),onSuccess:()=>{s.invalidateQueries({queryKey:["adapter-mappings"]}),Re()}}),U=fn({mutationFn:fj,onSuccess:()=>s.invalidateQueries({queryKey:["adapter-mappings"]})}),F=o.data,oe=(F==null?void 0:F.type)==="human";function Re(){J(!1),V(null),X({platform:"feishu",feishuAppId:"",feishuAppSecret:"",credentialsJson:"{}",status:"active",externalUserId:"",displayName:""}),G("")}function W(P){V(P.id),X({platform:P.platform,feishuAppId:"",feishuAppSecret:"",credentialsJson:"",status:P.status,externalUserId:"",displayName:""}),J(!0)}function T(P){if(P.preventDefault(),G(""),oe){if(!Y.externalUserId)return;De.mutate();return}if(Y.platform==="feishu"){if(!H&&(!Y.feishuAppId||!Y.feishuAppSecret)){G("App ID and App Secret are required");return}}else{const jt=Y.credentialsJson.trim();if(!H&&!jt){G("Credentials are required");return}if(jt)try{JSON.parse(jt)}catch{G("Invalid JSON");return}}H?pt.mutate():qe.mutate()}if(o.isLoading)return d.jsx("div",{className:"text-muted-foreground",children:"Loading..."});if(o.error)return d.jsxs("div",{className:"text-destructive",children:["Failed to load agent: ",o.error instanceof Error?o.error.message:"Unknown error"]});if(!F)return d.jsx("div",{className:"text-muted-foreground",children:"Agent not found"});const Q=()=>{window.confirm("Are you sure you want to delete this agent? This cannot be undone.")&&he.mutate()},ee=P=>{P.preventDefault(),Ne.mutate(M)},ae=qe.error??pt.error??De.error,ce=qe.isPending||pt.isPending||De.isPending,me=F.metadata,Ee=me==null?void 0:me.tree,dt=Ee==null?void 0:Ee.role,Se=Ee==null?void 0:Ee.domains;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(lt,{variant:"ghost",size:"icon",onClick:()=>r("/agents"),children:d.jsx(Ob,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex-1",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:F.displayName??F.id}),d.jsx("p",{className:"text-sm text-muted-foreground font-mono",children:F.id})]}),F.status==="suspended"&&d.jsxs(lt,{variant:"destructive",size:"sm",onClick:Q,children:[d.jsx(xs,{className:"h-4 w-4 mr-2"}),"Delete"]})]}),d.jsxs(Ln,{children:[d.jsxs(Bn,{className:"flex flex-row items-center justify-between",children:[d.jsx(qn,{children:"Agent Info"}),d.jsx("span",{className:"text-xs text-muted-foreground",children:"Managed by Context Tree"})]}),d.jsx(Hn,{children:d.jsxs("dl",{className:"grid grid-cols-2 gap-4 text-sm",children:[d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Display Name"}),d.jsx("dd",{children:F.displayName??"—"})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Type"}),d.jsx("dd",{children:d.jsx(ft,{variant:"secondary",children:F.type})})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Status"}),d.jsx("dd",{children:d.jsx(ft,{variant:F.status==="active"?"default":"destructive",children:F.status})})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Inbox ID"}),d.jsx("dd",{className:"font-mono",children:F.inboxId})]}),F.delegateMention&&d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Delegate Mention"}),d.jsx("dd",{className:"font-mono",children:F.delegateMention})]}),dt&&d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Role"}),d.jsx("dd",{children:dt})]}),Se&&Se.length>0&&d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Domains"}),d.jsx("dd",{className:"flex flex-wrap gap-1",children:Se.map(P=>d.jsx(ft,{variant:"outline",children:P},P))})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Organization"}),d.jsx("dd",{className:"font-mono",children:F.organizationId})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Created"}),d.jsx("dd",{children:Pt(F.createdAt)})]})]})})]}),d.jsxs(Ln,{children:[d.jsxs(Bn,{className:"flex flex-row items-center justify-between",children:[d.jsxs(qn,{className:"flex items-center gap-2",children:[oe?d.jsx(f2,{className:"h-4 w-4"}):d.jsx(Db,{className:"h-4 w-4"}),"Platform Bindings"]}),d.jsxs(lt,{size:"sm",onClick:()=>J(!0),children:[d.jsx(Ld,{className:"h-4 w-4 mr-2"}),oe?"Bind User":"Bind Bot"]})]}),d.jsx(Hn,{children:oe?d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"External User ID"}),d.jsx(ge,{children:"Display Name"}),d.jsx(ge,{children:"Bound Via"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{className:"w-16"})]})}),d.jsx(Ma,{children:x.length===0?d.jsx(He,{children:d.jsx(ue,{colSpan:6,className:"text-center py-4 text-muted-foreground",children:"No platform bindings"})}):x.map(P=>d.jsxs(He,{children:[d.jsx(ue,{children:d.jsx(ft,{variant:"secondary",children:P.platform})}),d.jsx(ue,{className:"font-mono text-sm",children:P.externalUserId}),d.jsx(ue,{children:P.displayName??"—"}),d.jsx(ue,{children:d.jsx(ft,{variant:"outline",children:P.boundVia??"—"})}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(P.createdAt)}),d.jsx(ue,{children:d.jsx(lt,{variant:"ghost",size:"icon",onClick:()=>{window.confirm("Remove this binding?")&&U.mutate(P.id)},disabled:U.isPending,children:d.jsx(xs,{className:"h-4 w-4"})})})]},P.id))})]}):d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"Status"}),d.jsx(ge,{children:"Connection"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{className:"w-24"})]})}),d.jsx(Ma,{children:y.length===0?d.jsx(He,{children:d.jsx(ue,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"No platform bindings"})}):y.map(P=>{const jt=v==null?void 0:v.find(Lo=>Lo.configId===P.id);return d.jsxs(He,{children:[d.jsx(ue,{children:d.jsx(ft,{variant:"secondary",children:P.platform})}),d.jsx(ue,{children:d.jsx(ft,{variant:P.status==="active"?"default":"destructive",children:P.status})}),d.jsx(ue,{children:d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx("span",{className:et("inline-block h-2 w-2 rounded-full",jt!=null&&jt.connected?"bg-green-500":"bg-gray-300")}),d.jsx("span",{className:"text-xs text-muted-foreground",children:jt!=null&&jt.connected?"Online":"Offline"})]})}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(P.createdAt)}),d.jsx(ue,{children:d.jsxs("div",{className:"flex gap-1",children:[d.jsx(lt,{variant:"ghost",size:"icon",onClick:()=>W(P),title:"Edit",children:d.jsx(zb,{className:"h-4 w-4"})}),d.jsx(lt,{variant:"ghost",size:"icon",onClick:()=>{window.confirm("Remove this bot binding?")&&it.mutate(P.id)},disabled:it.isPending,title:"Delete",children:d.jsx(xs,{className:"h-4 w-4"})})]})})]},P.id)})})]})})]}),!oe&&d.jsxs(Ln,{children:[d.jsxs(Bn,{className:"flex flex-row items-center justify-between",children:[d.jsxs(qn,{className:"flex items-center gap-2",children:[d.jsx(s2,{className:"h-4 w-4"}),"Tokens"]}),d.jsxs(lt,{size:"sm",onClick:()=>{A(null),L(""),C(!0)},children:[d.jsx(Ld,{className:"h-4 w-4 mr-2"}),"Create Token"]})]}),d.jsx(Hn,{children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"Name"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{children:"Last Used"}),d.jsx(ge,{children:"Expires"}),d.jsx(ge,{className:"w-20"})]})}),d.jsx(Ma,{children:((la=f.data)==null?void 0:la.length)===0?d.jsx(He,{children:d.jsx(ue,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"No tokens"})}):(Lt=f.data)==null?void 0:Lt.map(P=>d.jsxs(He,{children:[d.jsx(ue,{children:P.name??"—"}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(P.createdAt)}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(P.lastUsedAt)}),d.jsx(ue,{className:"text-muted-foreground",children:P.revokedAt?d.jsx(ft,{variant:"destructive",children:"Revoked"}):P.expiresAt?Pt(P.expiresAt):"Never"}),d.jsx(ue,{children:!P.revokedAt&&d.jsx(lt,{variant:"ghost",size:"sm",onClick:()=>Qe.mutate(P.id),disabled:Qe.isPending,children:d.jsx(xs,{className:"h-4 w-4"})})})]},P.id))})]})})]}),d.jsx(Kd,{open:z,onOpenChange:P=>P?J(!0):Re(),children:d.jsxs(Ao,{children:[d.jsx(Fd,{children:d.jsx(Ro,{children:oe?"Bind External User":H?"Edit Bot Binding":"Bind Bot"})}),d.jsxs("form",{onSubmit:T,className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-platform",children:"Platform"}),d.jsx("select",{id:"binding-platform",value:Y.platform,onChange:P=>X({...Y,platform:P.target.value}),disabled:!!H,className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50",children:Cj.map(P=>d.jsx("option",{value:P,children:P},P))})]}),oe?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-ext-id",children:"External User ID"}),d.jsx(jn,{id:"binding-ext-id",value:Y.externalUserId,onChange:P=>X({...Y,externalUserId:P.target.value}),placeholder:"ou_xxxxxxxx...",className:"font-mono",required:!0})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-name",children:"Display Name (optional)"}),d.jsx(jn,{id:"binding-name",value:Y.displayName,onChange:P=>X({...Y,displayName:P.target.value})})]})]}):d.jsxs(d.Fragment,{children:[Y.platform==="feishu"?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs(Qt,{htmlFor:"feishu-app-id",children:["App ID",H?" — leave empty to keep existing":""]}),d.jsx(jn,{id:"feishu-app-id",value:Y.feishuAppId,onChange:P=>X({...Y,feishuAppId:P.target.value}),placeholder:"cli_xxxxxxxx",className:"font-mono",autoComplete:"off"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs(Qt,{htmlFor:"feishu-app-secret",children:["App Secret",H?" — leave empty to keep existing":""]}),d.jsx(jn,{id:"feishu-app-secret",type:"password",autoComplete:"new-password",value:Y.feishuAppSecret,onChange:P=>X({...Y,feishuAppSecret:P.target.value}),placeholder:"••••••••"})]})]}):d.jsxs("div",{className:"space-y-2",children:[d.jsxs(Qt,{htmlFor:"binding-creds",children:["Credentials (JSON)",H?" — leave empty to keep existing":""]}),d.jsx("textarea",{id:"binding-creds",value:Y.credentialsJson,onChange:P=>X({...Y,credentialsJson:P.target.value}),rows:4,className:"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm font-mono transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",placeholder:'{"bot_token": "xoxb-...", "signing_secret": "..."}'})]}),$&&d.jsx("p",{className:"text-sm text-destructive",children:$}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-status",children:"Status"}),d.jsxs("select",{id:"binding-status",value:Y.status,onChange:P=>X({...Y,status:P.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[d.jsx("option",{value:"active",children:"active"}),d.jsx("option",{value:"inactive",children:"inactive"})]})]})]}),ae instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:ae.message}),d.jsx(yo,{children:d.jsx(lt,{type:"submit",disabled:ce,children:ce?"Saving...":H?"Update":"Create"})})]})]})}),!oe&&d.jsx(Kd,{open:S,onOpenChange:P=>{C(P),P||A(null)},children:d.jsxs(Ao,{children:[d.jsx(Fd,{children:d.jsx(Ro,{children:j?"Token Created":"Create Token"})}),j?d.jsxs("div",{className:"space-y-4",children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Copy this token now. It will not be shown again."}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(jn,{value:j,readOnly:!0,className:"font-mono text-xs"}),d.jsx(lt,{variant:"outline",size:"icon",onClick:()=>navigator.clipboard.writeText(j),children:d.jsx(i2,{className:"h-4 w-4"})})]}),d.jsx(yo,{children:d.jsx(lt,{onClick:()=>C(!1),children:"Done"})})]}):d.jsxs("form",{onSubmit:ee,className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{children:"Name (optional)"}),d.jsx(jn,{value:M,onChange:P=>L(P.target.value),placeholder:"e.g. production"})]}),Ne.error instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:Ne.error.message}),d.jsx(yo,{children:d.jsx(lt,{type:"submit",disabled:Ne.isPending,children:Ne.isPending?"Creating...":"Create"})})]})]})})]})}function Og(l){if(l.platform==="feishu"){if(!l.feishuAppId&&!l.feishuAppSecret)return null;if(!l.feishuAppId||!l.feishuAppSecret)throw new Error("Both App ID and App Secret are required");return{app_id:l.feishuAppId,app_secret:l.feishuAppSecret}}const a=l.credentialsJson.trim();return a?JSON.parse(a):null}const Tj=Object.values(FC);function jj(){const l=zs(),a=gr(),[r,s]=b.useState(),[o,f]=b.useState(""),{data:h,isLoading:m,error:v}=Ut({queryKey:["agents",r],queryFn:()=>pj({limit:20,cursor:r})}),{data:y}=Ut({queryKey:["sync-status"],queryFn:bj,refetchInterval:3e4}),x=fn({mutationFn:gj,onSuccess:()=>{a.invalidateQueries({queryKey:["agents"]}),a.invalidateQueries({queryKey:["sync-status"]})}});return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Agents"}),d.jsxs("select",{value:o,onChange:S=>{f(S.target.value),s(void 0)},className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[d.jsx("option",{value:"",children:"All types"}),Tj.map(S=>d.jsx("option",{value:S,children:S},S))]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[(y==null?void 0:y.lastSync)&&d.jsxs("span",{className:"text-xs text-muted-foreground",children:["Last sync: ",Pt(y.lastSync.syncedAt)]}),d.jsxs(lt,{variant:"outline",size:"sm",onClick:()=>x.mutate(),disabled:x.isPending,children:[d.jsx(x2,{className:et("h-4 w-4 mr-2",x.isPending&&"animate-spin")}),x.isPending?"Syncing...":"Sync Now"]})]})]}),x.data&&d.jsxs("div",{className:"mb-4 rounded-md border bg-muted/50 p-3 text-sm",children:[d.jsx("span",{className:"font-medium",children:"Sync complete: "}),x.data.summary.created>0&&d.jsxs(ft,{variant:"default",className:"mr-1",children:["+",x.data.summary.created," created"]}),x.data.summary.updated>0&&d.jsxs(ft,{variant:"secondary",className:"mr-1",children:[x.data.summary.updated," updated"]}),x.data.summary.suspended>0&&d.jsxs(ft,{variant:"destructive",className:"mr-1",children:[x.data.summary.suspended," suspended"]}),x.data.summary.unchanged>0&&d.jsxs("span",{className:"text-muted-foreground mr-1",children:[x.data.summary.unchanged," unchanged"]}),x.data.summary.errors>0&&d.jsxs(ft,{variant:"destructive",children:[x.data.summary.errors," errors"]})]}),x.error instanceof Error&&d.jsx("div",{className:"mb-4 text-sm text-destructive",children:x.error.message}),d.jsx("div",{className:"border rounded-lg",children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"ID"}),d.jsx(ge,{children:"Display Name"}),d.jsx(ge,{children:"Type"}),d.jsx(ge,{children:"Delegate"}),d.jsx(ge,{children:"Online"}),d.jsx(ge,{children:"Status"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:m?d.jsx(He,{children:d.jsx(ue,{colSpan:7,className:"text-center py-8 text-muted-foreground",children:"Loading..."})}):v?d.jsx(He,{children:d.jsxs(ue,{colSpan:7,className:"text-center py-8 text-destructive",children:["Failed to load agents: ",v instanceof Error?v.message:"Unknown error"]})}):(()=>{const S=o?h==null?void 0:h.items.filter(C=>C.type===o):h==null?void 0:h.items;return!S||S.length===0?d.jsx(He,{children:d.jsx(ue,{colSpan:7,className:"text-center py-8 text-muted-foreground",children:o?`No ${o} agents`:"No agents yet — click Sync Now to import from Context Tree"})}):S.map(C=>d.jsxs(He,{className:"cursor-pointer",onClick:()=>l(`/agents/${C.id}`),children:[d.jsx(ue,{className:"font-mono text-sm",children:C.id}),d.jsx(ue,{children:C.displayName??"—"}),d.jsx(ue,{children:d.jsx(ft,{variant:"secondary",children:C.type})}),d.jsx(ue,{className:"font-mono text-sm text-muted-foreground",children:C.delegateMention??"—"}),d.jsx(ue,{children:d.jsx("span",{className:et("inline-block h-2 w-2 rounded-full",C.presenceStatus==="online"?"bg-green-500":"bg-gray-300"),title:C.presenceStatus??"offline"})}),d.jsx(ue,{children:d.jsx(ft,{variant:C.status==="active"?"default":"destructive",children:C.status})}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(C.createdAt)})]},C.id))})()})]})}),(h==null?void 0:h.nextCursor)&&d.jsx("div",{className:"flex justify-end mt-4",children:d.jsx(lt,{variant:"outline",onClick:()=>s(h.nextCursor??void 0),children:"Next Page"})})]})}function wj(){const l=zs(),{data:a,isLoading:r}=Ut({queryKey:["adapters"],queryFn:K0}),{data:s,isLoading:o}=Ut({queryKey:["adapter-mappings"],queryFn:Y0}),{data:f}=Ut({queryKey:["adapter-statuses"],queryFn:X0,refetchInterval:15e3}),h=r||o;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Platform Bindings"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Overview of all platform bindings. Manage bindings from each Agent's detail page."})]}),d.jsxs(Ln,{children:[d.jsx(Bn,{children:d.jsx(qn,{children:"Bot Bindings"})}),d.jsx(Hn,{children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"Agent"}),d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"Status"}),d.jsx(ge,{children:"Connection"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:h?d.jsx(He,{children:d.jsx(ue,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"Loading..."})}):a!=null&&a.length?a.map(m=>{const v=f==null?void 0:f.find(y=>y.configId===m.id);return d.jsxs(He,{className:"cursor-pointer",onClick:()=>l(`/agents/${m.agentId}`),children:[d.jsx(ue,{className:"font-mono text-sm",children:m.agentId}),d.jsx(ue,{children:d.jsx(ft,{variant:"secondary",children:m.platform})}),d.jsx(ue,{children:d.jsx(ft,{variant:m.status==="active"?"default":"destructive",children:m.status})}),d.jsx(ue,{children:d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx("span",{className:et("inline-block h-2 w-2 rounded-full",v!=null&&v.connected?"bg-green-500":"bg-gray-300")}),d.jsx("span",{className:"text-xs text-muted-foreground",children:v!=null&&v.connected?"Online":"Offline"})]})}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(m.createdAt)})]},m.id)}):d.jsx(He,{children:d.jsx(ue,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"No bot bindings"})})})]})})]}),d.jsxs(Ln,{children:[d.jsx(Bn,{children:d.jsx(qn,{children:"User Bindings"})}),d.jsx(Hn,{children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"Agent"}),d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"External User ID"}),d.jsx(ge,{children:"Display Name"}),d.jsx(ge,{children:"Bound Via"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:h?d.jsx(He,{children:d.jsx(ue,{colSpan:6,className:"text-center py-4 text-muted-foreground",children:"Loading..."})}):s!=null&&s.length?s.map(m=>d.jsxs(He,{className:"cursor-pointer",onClick:()=>l(`/agents/${m.agentId}`),children:[d.jsx(ue,{className:"font-mono text-sm",children:m.agentId}),d.jsx(ue,{children:d.jsx(ft,{variant:"secondary",children:m.platform})}),d.jsx(ue,{className:"font-mono text-sm",children:m.externalUserId}),d.jsx(ue,{children:m.displayName??"—"}),d.jsx(ue,{children:d.jsx(ft,{variant:"outline",children:m.boundVia??"—"})}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(m.createdAt)})]},m.id)):d.jsx(He,{children:d.jsx(ue,{colSpan:6,className:"text-center py-4 text-muted-foreground",children:"No user bindings"})})})]})})]})]})}function Aj(l){const a=new URLSearchParams;a.set("limit",String(l.limit)),l!=null&&l.cursor&&a.set("cursor",l.cursor);const r=a.toString();return tt.get(`/admin/chats${r?`?${r}`:""}`)}function Rj(l){return tt.get(`/admin/chats/${encodeURIComponent(l)}`)}function Oj(l,a){const r=new URLSearchParams;r.set("limit",String(a.limit)),a!=null&&a.cursor&&r.set("cursor",a.cursor);const s=r.toString();return tt.get(`/admin/chats/${encodeURIComponent(l)}/messages${s?`?${s}`:""}`)}function Mj(){const[l,a]=b.useState(),[r,s]=b.useState(null);return r?d.jsx(zj,{chatId:r,onBack:()=>s(null)}):d.jsx(Dj,{cursor:l,setCursor:a,onSelect:s})}function Dj({cursor:l,setCursor:a,onSelect:r}){const{data:s,isLoading:o,error:f}=Ut({queryKey:["chats",l],queryFn:()=>Aj({limit:20,cursor:l})});return d.jsxs("div",{children:[d.jsx("div",{className:"flex items-center justify-between mb-6",children:d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Chats"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Browse chat history (read-only)"})]})}),d.jsx("div",{className:"border rounded-lg",children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(He,{children:[d.jsx(ge,{children:"ID"}),d.jsx(ge,{children:"Type"}),d.jsx(ge,{children:"Topic"}),d.jsx(ge,{children:"Participants"}),d.jsx(ge,{children:"Lifecycle"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:o?d.jsx(He,{children:d.jsx(ue,{colSpan:6,className:"text-center py-8 text-muted-foreground",children:"Loading..."})}):f?d.jsx(He,{children:d.jsxs(ue,{colSpan:6,className:"text-center py-8 text-destructive",children:["Failed to load chats: ",f instanceof Error?f.message:"Unknown error"]})}):(s==null?void 0:s.items.length)===0?d.jsx(He,{children:d.jsx(ue,{colSpan:6,className:"text-center py-8 text-muted-foreground",children:"No chats"})}):s==null?void 0:s.items.map(h=>d.jsxs(He,{className:"cursor-pointer",onClick:()=>r(h.id),children:[d.jsx(ue,{className:"font-mono text-xs max-w-[200px] truncate",children:h.id}),d.jsx(ue,{children:d.jsx(ft,{variant:"secondary",children:h.type})}),d.jsx(ue,{children:h.topic??"—"}),d.jsx(ue,{children:h.participantCount}),d.jsx(ue,{className:"text-muted-foreground text-xs",children:h.lifecyclePolicy??"—"}),d.jsx(ue,{className:"text-muted-foreground",children:Pt(h.createdAt)})]},h.id))})]})}),(s==null?void 0:s.nextCursor)&&d.jsx("div",{className:"flex justify-end mt-4",children:d.jsx(lt,{variant:"outline",onClick:()=>a(s.nextCursor??void 0),children:"Next Page"})})]})}function zj({chatId:l,onBack:a}){const[r,s]=b.useState(),o=Ut({queryKey:["chat",l],queryFn:()=>Rj(l)}),f=Ut({queryKey:["chat-messages",l,r],queryFn:()=>Oj(l,{limit:50,cursor:r})}),h=o.data,m=f.data;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(lt,{variant:"ghost",size:"icon",onClick:a,children:d.jsx(Ob,{className:"h-4 w-4"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold",children:(h==null?void 0:h.topic)??"Chat"}),d.jsx("p",{className:"text-sm text-muted-foreground font-mono",children:l})]})]}),h&&d.jsxs(Ln,{children:[d.jsx(Bn,{children:d.jsx(qn,{children:"Participants"})}),d.jsx(Hn,{children:d.jsx("div",{className:"flex flex-wrap gap-2",children:h.participants.map(v=>d.jsxs(ft,{variant:"outline",children:[v.agentId," (",v.role,")"]},v.agentId))})})]}),d.jsxs(Ln,{children:[d.jsx(Bn,{children:d.jsxs(qn,{className:"flex items-center gap-2",children:[d.jsx(fh,{className:"h-4 w-4"}),"Messages"]})}),d.jsxs(Hn,{children:[f.isLoading?d.jsx("div",{className:"text-muted-foreground py-4 text-center",children:"Loading messages..."}):(m==null?void 0:m.items.length)===0?d.jsx("div",{className:"text-muted-foreground py-4 text-center",children:"No messages"}):d.jsx("div",{className:"space-y-3",children:m==null?void 0:m.items.map(v=>d.jsxs("div",{className:"border rounded-md p-3",children:[d.jsxs("div",{className:"flex items-center justify-between mb-1",children:[d.jsx("span",{className:"font-mono text-sm font-medium",children:v.senderId}),d.jsx("span",{className:"text-xs text-muted-foreground",children:Pt(v.createdAt)})]}),d.jsx("div",{className:"text-sm",children:v.format==="text"?d.jsx("p",{className:"whitespace-pre-wrap",children:typeof v.content=="string"?v.content:JSON.stringify(v.content)}):d.jsx("pre",{className:"text-xs bg-muted p-2 rounded overflow-auto max-h-40",children:JSON.stringify(v.content,null,2)})}),d.jsx("div",{className:"flex gap-2 mt-1",children:d.jsx(ft,{variant:"outline",className:"text-xs",children:v.format})})]},v.id))}),(m==null?void 0:m.nextCursor)&&d.jsx("div",{className:"flex justify-center mt-4",children:d.jsx(lt,{variant:"outline",size:"sm",onClick:()=>s(m.nextCursor??void 0),children:"Load More"})})]})]})]})}function kj(){const{isAuthenticated:l,login:a}=ch(),[r,s]=b.useState(""),[o,f]=b.useState(""),[h,m]=b.useState(null),[v,y]=b.useState(!1);if(l)return d.jsx(vb,{to:"/",replace:!0});const x=async S=>{S.preventDefault(),m(null),y(!0);try{await a(r,o)}catch(C){m(C instanceof Error?C.message:"Login failed")}finally{y(!1)}};return d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:d.jsxs(Ln,{className:"w-full max-w-sm",children:[d.jsxs(Bn,{className:"text-center",children:[d.jsx(qn,{className:"text-2xl",children:"First Tree"}),d.jsx(F0,{children:"Sign in to admin console"})]}),d.jsx(Hn,{children:d.jsxs("form",{onSubmit:x,className:"space-y-4",children:[h&&d.jsx("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:h}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"username",children:"Username"}),d.jsx(jn,{id:"username",value:r,onChange:S=>s(S.target.value),required:!0,autoFocus:!0})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"password",children:"Password"}),d.jsx(jn,{id:"password",type:"password",value:o,onChange:S=>f(S.target.value),required:!0})]}),d.jsx(lt,{type:"submit",className:"w-full",disabled:v,children:v?"Signing in...":"Sign in"})]})})]})})}function Uj(){return tt.get("/admin/overview")}function Lj(){const{data:l,isLoading:a,error:r}=Ut({queryKey:["overview"],queryFn:Uj,refetchInterval:3e4}),s=[{label:"Total Agents",value:l==null?void 0:l.agents,icon:Mb},{label:"Online Agents",value:l==null?void 0:l.onlineAgents,icon:g2},{label:"Total Chats",value:l==null?void 0:l.chats,icon:fh}];return d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold mb-6",children:"Overview"}),r&&d.jsxs("div",{className:"mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:["Failed to load overview: ",r instanceof Error?r.message:"Unknown error"]}),d.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(o=>d.jsxs(Ln,{children:[d.jsxs(Bn,{className:"flex flex-row items-center justify-between pb-2",children:[d.jsx(qn,{className:"text-sm font-medium text-muted-foreground",children:o.label}),d.jsx(o.icon,{className:"h-4 w-4 text-muted-foreground"})]}),d.jsx(Hn,{children:d.jsx("div",{className:"text-3xl font-bold",children:a?"...":o.value??"—"})})]},o.label))})]})}function Bj(){return tt.get("/admin/system/config")}function qj(l){return tt.patch("/admin/system/config",l)}const Hj={[Aa.INBOX_TIMEOUT_SECONDS]:"Inbox Timeout (seconds)",[Aa.MAX_RETRY_COUNT]:"Max Retry Count",[Aa.POLLING_INTERVAL_SECONDS]:"Polling Interval (seconds)",[Aa.PRESENCE_CLEANUP_SECONDS]:"Presence Cleanup (seconds)"},Mg=Object.values(Aa);function Qj(){const l=gr(),{data:a,isLoading:r}=Ut({queryKey:["system-config"],queryFn:Bj}),[s,o]=b.useState({}),[f,h]=b.useState(!1);b.useEffect(()=>{if(!a)return;const y={};for(const x of Mg){const S=a[x]??dd[x]??"";y[x]=String(S)}o(y)},[a]);const m=fn({mutationFn:()=>{const y={};for(const[x,S]of Object.entries(s)){const C=S.trim();if(C==="")y[x]=dd[x]??0;else{const M=Number(C);y[x]=Number.isNaN(M)?C:M}}return qj(y)},onSuccess:()=>{l.invalidateQueries({queryKey:["system-config"]}),h(!0),setTimeout(()=>h(!1),2e3)}}),v=y=>{y.preventDefault(),m.mutate()};return r?d.jsx("div",{className:"text-muted-foreground",children:"Loading..."}):d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold mb-6",children:"Settings"}),d.jsxs(Ln,{children:[d.jsx(Bn,{children:d.jsx(qn,{children:"System Configuration"})}),d.jsx(Hn,{children:d.jsxs("form",{onSubmit:v,className:"space-y-4",children:[Mg.map(y=>d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:y,children:Hj[y]??y}),d.jsx(jn,{id:y,value:s[y]??"",onChange:x=>o({...s,[y]:x.target.value})}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Default: ",String(dd[y]??"—")]})]},y)),m.error instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:m.error.message}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(lt,{type:"submit",disabled:m.isPending,children:m.isPending?"Saving...":"Save Changes"}),f&&d.jsx("span",{className:"text-sm text-green-600",children:"Saved!"})]})]})})]})]})}const Zj=new WS({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});function Vj(){return d.jsx(e_,{client:Zj,children:d.jsx(FE,{children:d.jsx(kE,{children:d.jsxs(fE,{children:[d.jsx(kn,{path:"/login",element:d.jsx(kj,{})}),d.jsx(kn,{element:d.jsx(JE,{}),children:d.jsxs(kn,{element:d.jsx(gC,{}),children:[d.jsx(kn,{index:!0,element:d.jsx(Lj,{})}),d.jsx(kn,{path:"agents",element:d.jsx(jj,{})}),d.jsx(kn,{path:"agents/:agentId",element:d.jsx(Nj,{})}),d.jsx(kn,{path:"bindings",element:d.jsx(wj,{})}),d.jsx(kn,{path:"chats",element:d.jsx(Mj,{})}),d.jsx(kn,{path:"admin-users",element:d.jsx(oj,{})}),d.jsx(kn,{path:"settings",element:d.jsx(Qj,{})})]})})]})})})})}const J0=document.getElementById("root");if(!J0)throw new Error("Root element not found");wS.createRoot(J0).render(d.jsx(b.StrictMode,{children:d.jsx(Vj,{})}));
|