@openez-graph/cli 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,357 +0,0 @@
1
- var By=n=>{throw TypeError(n)};var Pd=(n,a,r)=>a.has(n)||By("Cannot "+r);var L=(n,a,r)=>(Pd(n,a,"read from private field"),r?r.call(n):a.get(n)),ge=(n,a,r)=>a.has(n)?By("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),le=(n,a,r,l)=>(Pd(n,a,"write to private field"),l?l.call(n,r):a.set(n,r),r),Te=(n,a,r)=>(Pd(n,a,"access private method"),r);var Sc=(n,a,r,l)=>({set _(o){le(n,a,o,r)},get _(){return L(n,a,l)}});function Lj(n,a){for(var r=0;r<a.length;r++){const l=a[r];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in n)){const f=Object.getOwnPropertyDescriptor(l,o);f&&Object.defineProperty(n,o,f.get?f:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(n,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"]'))l(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"&&l(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 l(o){if(o.ep)return;o.ep=!0;const f=r(o);fetch(o.href,f)}})();function tm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var qd={exports:{}},El={};/**
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 Hy;function kj(){if(Hy)return El;Hy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(l,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:n,type:l,key:h,ref:o!==void 0?o:null,props:f}}return El.Fragment=a,El.jsx=r,El.jsxs=r,El}var Py;function Uj(){return Py||(Py=1,qd.exports=kj()),qd.exports}var u=Uj(),Gd={exports:{}},xe={};/**
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 qy;function Bj(){if(qy)return xe;qy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=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"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,E={};function C(O,Z,se){this.props=O,this.context=Z,this.refs=E,this.updater=se||N}C.prototype.isReactComponent={},C.prototype.setState=function(O,Z){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Z,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=C.prototype;function U(O,Z,se){this.props=O,this.context=Z,this.refs=E,this.updater=se||N}var T=U.prototype=new _;T.constructor=U,R(T,C.prototype),T.isPureReactComponent=!0;var P=Array.isArray;function Y(){}var M={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function k(O,Z,se){var re=se.ref;return{$$typeof:n,type:O,key:Z,ref:re!==void 0?re:null,props:se}}function q(O,Z){return k(O.type,Z,O.props)}function $(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function ee(O){var Z={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(se){return Z[se]})}var ne=/\/+/g;function ae(O,Z){return typeof O=="object"&&O!==null&&O.key!=null?ee(""+O.key):Z.toString(36)}function de(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Y,Y):(O.status="pending",O.then(function(Z){O.status==="pending"&&(O.status="fulfilled",O.value=Z)},function(Z){O.status==="pending"&&(O.status="rejected",O.reason=Z)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function B(O,Z,se,re,ie){var he=typeof O;(he==="undefined"||he==="boolean")&&(O=null);var Se=!1;if(O===null)Se=!0;else switch(he){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(O.$$typeof){case n:case a:Se=!0;break;case x:return Se=O._init,B(Se(O._payload),Z,se,re,ie)}}if(Se)return ie=ie(O),Se=re===""?"."+ae(O,0):re,P(ie)?(se="",Se!=null&&(se=Se.replace(ne,"$&/")+"/"),B(ie,Z,se,"",function(Dt){return Dt})):ie!=null&&($(ie)&&(ie=q(ie,se+(ie.key==null||O&&O.key===ie.key?"":(""+ie.key).replace(ne,"$&/")+"/")+Se)),Z.push(ie)),1;Se=0;var Ue=re===""?".":re+":";if(P(O))for(var ye=0;ye<O.length;ye++)re=O[ye],he=Ue+ae(re,ye),Se+=B(re,Z,se,he,ie);else if(ye=S(O),typeof ye=="function")for(O=ye.call(O),ye=0;!(re=O.next()).done;)re=re.value,he=Ue+ae(re,ye++),Se+=B(re,Z,se,he,ie);else if(he==="object"){if(typeof O.then=="function")return B(de(O),Z,se,re,ie);throw Z=String(O),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Se}function X(O,Z,se){if(O==null)return O;var re=[],ie=0;return B(O,re,"","",function(he){return Z.call(se,he,ie++)}),re}function J(O){if(O._status===-1){var Z=O._result;Z=Z(),Z.then(function(se){(O._status===0||O._status===-1)&&(O._status=1,O._result=se)},function(se){(O._status===0||O._status===-1)&&(O._status=2,O._result=se)}),O._status===-1&&(O._status=0,O._result=Z)}if(O._status===1)return O._result.default;throw O._result}var pe=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},te={map:X,forEach:function(O,Z,se){X(O,function(){Z.apply(this,arguments)},se)},count:function(O){var Z=0;return X(O,function(){Z++}),Z},toArray:function(O){return X(O,function(Z){return Z})||[]},only:function(O){if(!$(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return xe.Activity=v,xe.Children=te,xe.Component=C,xe.Fragment=r,xe.Profiler=o,xe.PureComponent=U,xe.StrictMode=l,xe.Suspense=g,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,xe.__COMPILER_RUNTIME={__proto__:null,c:function(O){return M.H.useMemoCache(O)}},xe.cache=function(O){return function(){return O.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(O,Z,se){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var re=R({},O.props),ie=O.key;if(Z!=null)for(he in Z.key!==void 0&&(ie=""+Z.key),Z)!D.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(re[he]=Z[he]);var he=arguments.length-2;if(he===1)re.children=se;else if(1<he){for(var Se=Array(he),Ue=0;Ue<he;Ue++)Se[Ue]=arguments[Ue+2];re.children=Se}return k(O.type,ie,re)},xe.createContext=function(O){return O={$$typeof:h,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},xe.createElement=function(O,Z,se){var re,ie={},he=null;if(Z!=null)for(re in Z.key!==void 0&&(he=""+Z.key),Z)D.call(Z,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ie[re]=Z[re]);var Se=arguments.length-2;if(Se===1)ie.children=se;else if(1<Se){for(var Ue=Array(Se),ye=0;ye<Se;ye++)Ue[ye]=arguments[ye+2];ie.children=Ue}if(O&&O.defaultProps)for(re in Se=O.defaultProps,Se)ie[re]===void 0&&(ie[re]=Se[re]);return k(O,he,ie)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(O){return{$$typeof:m,render:O}},xe.isValidElement=$,xe.lazy=function(O){return{$$typeof:x,_payload:{_status:-1,_result:O},_init:J}},xe.memo=function(O,Z){return{$$typeof:p,type:O,compare:Z===void 0?null:Z}},xe.startTransition=function(O){var Z=M.T,se={};M.T=se;try{var re=O(),ie=M.S;ie!==null&&ie(se,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(Y,pe)}catch(he){pe(he)}finally{Z!==null&&se.types!==null&&(Z.types=se.types),M.T=Z}},xe.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},xe.use=function(O){return M.H.use(O)},xe.useActionState=function(O,Z,se){return M.H.useActionState(O,Z,se)},xe.useCallback=function(O,Z){return M.H.useCallback(O,Z)},xe.useContext=function(O){return M.H.useContext(O)},xe.useDebugValue=function(){},xe.useDeferredValue=function(O,Z){return M.H.useDeferredValue(O,Z)},xe.useEffect=function(O,Z){return M.H.useEffect(O,Z)},xe.useEffectEvent=function(O){return M.H.useEffectEvent(O)},xe.useId=function(){return M.H.useId()},xe.useImperativeHandle=function(O,Z,se){return M.H.useImperativeHandle(O,Z,se)},xe.useInsertionEffect=function(O,Z){return M.H.useInsertionEffect(O,Z)},xe.useLayoutEffect=function(O,Z){return M.H.useLayoutEffect(O,Z)},xe.useMemo=function(O,Z){return M.H.useMemo(O,Z)},xe.useOptimistic=function(O,Z){return M.H.useOptimistic(O,Z)},xe.useReducer=function(O,Z,se){return M.H.useReducer(O,Z,se)},xe.useRef=function(O){return M.H.useRef(O)},xe.useState=function(O){return M.H.useState(O)},xe.useSyncExternalStore=function(O,Z,se){return M.H.useSyncExternalStore(O,Z,se)},xe.useTransition=function(){return M.H.useTransition()},xe.version="19.2.7",xe}var Gy;function $l(){return Gy||(Gy=1,Gd.exports=Bj()),Gd.exports}var w=$l();const ur=tm(w),ou=Lj({__proto__:null,default:ur},[w]);var Qd={exports:{}},Cl={},Vd={exports:{}},Yd={};/**
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 Qy;function Hj(){return Qy||(Qy=1,(function(n){function a(B,X){var J=B.length;B.push(X);e:for(;0<J;){var pe=J-1>>>1,te=B[pe];if(0<o(te,X))B[pe]=X,B[J]=te,J=pe;else break e}}function r(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var X=B[0],J=B.pop();if(J!==X){B[0]=J;e:for(var pe=0,te=B.length,O=te>>>1;pe<O;){var Z=2*(pe+1)-1,se=B[Z],re=Z+1,ie=B[re];if(0>o(se,J))re<te&&0>o(ie,se)?(B[pe]=ie,B[re]=J,pe=re):(B[pe]=se,B[Z]=J,pe=Z);else if(re<te&&0>o(ie,J))B[pe]=ie,B[re]=J,pe=re;else break e}}return X}function o(B,X){var J=B.sortIndex-X.sortIndex;return J!==0?J:B.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var g=[],p=[],x=1,v=null,b=3,S=!1,N=!1,R=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function T(B){for(var X=r(p);X!==null;){if(X.callback===null)l(p);else if(X.startTime<=B)l(p),X.sortIndex=X.expirationTime,a(g,X);else break;X=r(p)}}function P(B){if(R=!1,T(B),!N)if(r(g)!==null)N=!0,Y||(Y=!0,ee());else{var X=r(p);X!==null&&de(P,X.startTime-B)}}var Y=!1,M=-1,D=5,k=-1;function q(){return E?!0:!(n.unstable_now()-k<D)}function $(){if(E=!1,Y){var B=n.unstable_now();k=B;var X=!0;try{e:{N=!1,R&&(R=!1,_(M),M=-1),S=!0;var J=b;try{t:{for(T(B),v=r(g);v!==null&&!(v.expirationTime>B&&q());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,b=v.priorityLevel;var te=pe(v.expirationTime<=B);if(B=n.unstable_now(),typeof te=="function"){v.callback=te,T(B),X=!0;break t}v===r(g)&&l(g),T(B)}else l(g);v=r(g)}if(v!==null)X=!0;else{var O=r(p);O!==null&&de(P,O.startTime-B),X=!1}}break e}finally{v=null,b=J,S=!1}X=void 0}}finally{X?ee():Y=!1}}}var ee;if(typeof U=="function")ee=function(){U($)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ae=ne.port2;ne.port1.onmessage=$,ee=function(){ae.postMessage(null)}}else ee=function(){C($,0)};function de(B,X){M=C(function(){B(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(B){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var J=b;b=X;try{return B()}finally{b=J}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var J=b;b=B;try{return X()}finally{b=J}},n.unstable_scheduleCallback=function(B,X,J){var pe=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?pe+J:pe):J=pe,B){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=J+te,B={id:x++,callback:X,priorityLevel:B,startTime:J,expirationTime:te,sortIndex:-1},J>pe?(B.sortIndex=J,a(p,B),r(g)===null&&B===r(p)&&(R?(_(M),M=-1):R=!0,de(P,J-pe))):(B.sortIndex=te,a(g,B),N||S||(N=!0,Y||(Y=!0,ee()))),B},n.unstable_shouldYield=q,n.unstable_wrapCallback=function(B){var X=b;return function(){var J=b;b=X;try{return B.apply(this,arguments)}finally{b=J}}}})(Yd)),Yd}var Vy;function Pj(){return Vy||(Vy=1,Vd.exports=Hj()),Vd.exports}var Xd={exports:{}},At={};/**
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 Yy;function qj(){if(Yy)return At;Yy=1;var n=$l();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={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(g,p,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:g,containerInfo:p,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,At.createPortal=function(g,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(g,p,null,x)},At.flushSync=function(g){var p=h.T,x=l.p;try{if(h.T=null,l.p=2,g)return g()}finally{h.T=p,l.p=x,l.d.f()}},At.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(g,p))},At.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},At.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var x=p.as,v=m(x,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?l.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:S}):x==="script"&&l.d.X(g,{crossOrigin:v,integrity:b,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},At.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);l.d.M(g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(g)},At.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,v=m(x,p.crossOrigin);l.d.L(g,x,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},At.preloadModule=function(g,p){if(typeof g=="string")if(p){var x=m(p.as,p.crossOrigin);l.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(g)},At.requestFormReset=function(g){l.d.r(g)},At.unstable_batchedUpdates=function(g,p){return g(p)},At.useFormState=function(g,p,x){return h.H.useFormState(g,p,x)},At.useFormStatus=function(){return h.H.useHostTransitionStatus()},At.version="19.2.7",At}var Xy;function Pb(){if(Xy)return Xd.exports;Xy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Xd.exports=qj(),Xd.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 Iy;function Gj(){if(Iy)return Cl;Iy=1;var n=Pj(),a=$l(),r=Pb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}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,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s: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 g(e){if(f(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var s=e,i=t;;){var c=s.return;if(c===null)break;var d=c.alternate;if(d===null){if(i=c.return,i!==null){s=i;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===s)return g(c),e;if(d===i)return g(c),t;d=d.sibling}throw Error(l(188))}if(s.return!==i.return)s=c,i=d;else{for(var y=!1,j=c.child;j;){if(j===s){y=!0,s=c,i=d;break}if(j===i){y=!0,i=c,s=d;break}j=j.sibling}if(!y){for(j=d.child;j;){if(j===s){y=!0,s=d,i=c;break}if(j===i){y=!0,i=d,s=c;break}j=j.sibling}if(!y)throw Error(l(189))}}if(s.alternate!==i)throw Error(l(190))}if(s.tag!==3)throw Error(l(188));return s.stateNode.current===s?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 v=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),U=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case C:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case Y:return"SuspenseList";case k:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case U:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case T:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var de=Array.isArray,B=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},pe=[],te=-1;function O(e){return{current:e}}function Z(e){0>te||(e.current=pe[te],pe[te]=null,te--)}function se(e,t){te++,pe[te]=e.current,e.current=t}var re=O(null),ie=O(null),he=O(null),Se=O(null);function Ue(e,t){switch(se(he,t),se(ie,e),se(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ly(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ly(t),e=oy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(re),se(re,e)}function ye(){Z(re),Z(ie),Z(he)}function Dt(e){e.memoizedState!==null&&se(Se,e);var t=re.current,s=oy(t,e.type);t!==s&&(se(ie,e),se(re,s))}function xt(e){ie.current===e&&(Z(re),Z(ie)),Se.current===e&&(Z(Se),wl._currentValue=J)}var Tt,zt;function mt(e){if(Tt===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);Tt=t&&t[1]||"",zt=-1<s.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Tt+e+zt}var Es=!1;function Aa(e,t){if(!e||Es)return"";Es=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(I){var V=I}Reflect.construct(e,[],W)}else{try{W.call()}catch(I){V=I}e.call(W.prototype)}}else{try{throw Error()}catch(I){V=I}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(I){if(I&&V&&typeof I.stack=="string")return[I.stack,V.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),y=d[0],j=d[1];if(y&&j){var A=y.split(`
44
- `),Q=j.split(`
45
- `);for(c=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;c<Q.length&&!Q[c].includes("DetermineComponentFrameRoot");)c++;if(i===A.length||c===Q.length)for(i=A.length-1,c=Q.length-1;1<=i&&0<=c&&A[i]!==Q[c];)c--;for(;1<=i&&0<=c;i--,c--)if(A[i]!==Q[c]){if(i!==1||c!==1)do if(i--,c--,0>c||A[i]!==Q[c]){var K=`
46
- `+A[i].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=i&&0<=c);break}}}finally{Es=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?mt(s):""}function pr(e,t){switch(e.tag){case 26:case 27:case 5:return mt(e.type);case 16:return mt("Lazy");case 13:return e.child!==t&&t!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return Aa(e.type,!1);case 11:return Aa(e.type.render,!1);case 1:return Aa(e.type,!0);case 31:return mt("Activity");default:return""}}function Cn(e){try{var t="",s=null;do t+=pr(e,s),s=e,e=e.return;while(e);return t}catch(i){return`
47
- Error generating stack: `+i.message+`
48
- `+i.stack}}var mn=Object.prototype.hasOwnProperty,Tn=n.unstable_scheduleCallback,Di=n.unstable_cancelCallback,ao=n.unstable_shouldYield,Eu=n.unstable_requestPaint,_t=n.unstable_now,Qe=n.unstable_getCurrentPriorityLevel,bt=n.unstable_ImmediatePriority,Bn=n.unstable_UserBlockingPriority,gr=n.unstable_NormalPriority,gS=n.unstable_LowPriority,qm=n.unstable_IdlePriority,vS=n.log,yS=n.unstable_setDisableYieldValue,zi=null,Jt=null;function Ma(e){if(typeof vS=="function"&&yS(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(zi,e)}catch{}}var en=Math.clz32?Math.clz32:SS,xS=Math.log,bS=Math.LN2;function SS(e){return e>>>=0,e===0?32:31-(xS(e)/bS|0)|0}var so=256,ro=262144,io=4194304;function Cs(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 lo(e,t,s){var i=e.pendingLanes;if(i===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var j=i&134217727;return j!==0?(i=j&~d,i!==0?c=Cs(i):(y&=j,y!==0?c=Cs(y):s||(s=j&~e,s!==0&&(c=Cs(s))))):(j=i&~d,j!==0?c=Cs(j):y!==0?c=Cs(y):s||(s=i&~e,s!==0&&(c=Cs(s)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,s=t&-t,d>=s||d===32&&(s&4194048)!==0)?t:c}function Li(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wS(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 Gm(){var e=io;return io<<=1,(io&62914560)===0&&(io=4194304),e}function Cu(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function ki(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jS(e,t,s,i,c,d){var y=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var j=e.entanglements,A=e.expirationTimes,Q=e.hiddenUpdates;for(s=y&~s;0<s;){var K=31-en(s),W=1<<K;j[K]=0,A[K]=-1;var V=Q[K];if(V!==null)for(Q[K]=null,K=0;K<V.length;K++){var I=V[K];I!==null&&(I.lane&=-536870913)}s&=~W}i!==0&&Qm(e,i,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Qm(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-en(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|s&261930}function Vm(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var i=31-en(s),c=1<<i;c&t|e[i]&t&&(e[i]|=t),s&=~c}}function Ym(e,t){var s=t&-t;return s=(s&42)!==0?1:Tu(s),(s&(e.suspendedLanes|t))!==0?0:s}function Tu(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 _u(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xm(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:My(e.type))}function Im(e,t){var s=X.p;try{return X.p=e,t()}finally{X.p=s}}var Oa=Math.random().toString(36).slice(2),St="__reactFiber$"+Oa,Ht="__reactProps$"+Oa,vr="__reactContainer$"+Oa,Au="__reactEvents$"+Oa,RS="__reactListeners$"+Oa,NS="__reactHandles$"+Oa,Km="__reactResources$"+Oa,Ui="__reactMarker$"+Oa;function Mu(e){delete e[St],delete e[Ht],delete e[Au],delete e[RS],delete e[NS]}function yr(e){var t=e[St];if(t)return t;for(var s=e.parentNode;s;){if(t=s[vr]||s[St]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=py(e);e!==null;){if(s=e[St])return s;e=py(e)}return t}e=s,s=e.parentNode}return null}function xr(e){if(e=e[St]||e[vr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function br(e){var t=e[Km];return t||(t=e[Km]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pt(e){e[Ui]=!0}var Zm=new Set,Fm={};function Ts(e,t){Sr(e,t),Sr(e+"Capture",t)}function Sr(e,t){for(Fm[e]=t,e=0;e<t.length;e++)Zm.add(t[e])}var ES=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]*$"),$m={},Wm={};function CS(e){return mn.call(Wm,e)?!0:mn.call($m,e)?!1:ES.test(e)?Wm[e]=!0:($m[e]=!0,!1)}function oo(e,t,s){if(CS(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){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,""+s)}}function co(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function ta(e,t,s,i){if(i===null)e.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+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 Jm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TS(e,t,s){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){s=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ou(e){if(!e._valueTracker){var t=Jm(e)?"checked":"value";e._valueTracker=TS(e,t,""+e[t])}}function ep(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),i="";return e&&(i=Jm(e)?e.checked?"true":"false":e.value),e=i,e!==s?(t.setValue(e),!0):!1}function uo(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 _S=/[\n"\\]/g;function gn(e){return e.replace(_S,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Du(e,t,s,i,c,d,y,j){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?zu(e,y,pn(t)):s!=null?zu(e,y,pn(s)):i!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?e.name=""+pn(j):e.removeAttribute("name")}function tp(e,t,s,i,c,d,y,j){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Ou(e);return}s=s!=null?""+pn(s):"",t=t!=null?""+pn(t):s,j||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=j?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Ou(e)}function zu(e,t,s){t==="number"&&uo(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function wr(e,t,s,i){if(e=e.options,t){t={};for(var c=0;c<s.length;c++)t["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=t.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&i&&(e[s].defaultSelected=!0)}else{for(s=""+pn(s),t=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function np(e,t,s){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+pn(s):""}function ap(e,t,s,i){if(t==null){if(i!=null){if(s!=null)throw Error(l(92));if(de(i)){if(1<i.length)throw Error(l(93));i=i[0]}s=i}s==null&&(s=""),t=s}s=pn(t),e.defaultValue=s,i=e.textContent,i===s&&i!==""&&i!==null&&(e.value=i),Ou(e)}function jr(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var AS=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 sp(e,t,s){var i=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,s):typeof s!="number"||s===0||AS.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function rp(e,t,s){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,s!=null){for(var i in s)!s.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&s[c]!==i&&sp(e,c,i)}else for(var d in t)t.hasOwnProperty(d)&&sp(e,d,t[d])}function Lu(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 MS=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"]]),OS=/^[\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 fo(e){return OS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var ku=null;function Uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rr=null,Nr=null;function ip(e){var t=xr(e);if(t&&(e=t.stateNode)){var s=e[Ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Du(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+gn(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var i=s[t];if(i!==e&&i.form===e.form){var c=i[Ht]||null;if(!c)throw Error(l(90));Du(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<s.length;t++)i=s[t],i.form===e.form&&ep(i)}break e;case"textarea":np(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&wr(e,!!s.multiple,t,!1)}}}var Bu=!1;function lp(e,t,s){if(Bu)return e(t,s);Bu=!0;try{var i=e(t);return i}finally{if(Bu=!1,(Rr!==null||Nr!==null)&&(Jo(),Rr&&(t=Rr,e=Nr,Nr=Rr=null,ip(t),e)))for(t=0;t<e.length;t++)ip(e[t])}}function Hi(e,t){var s=e.stateNode;if(s===null)return null;var i=s[Ht]||null;if(i===null)return null;s=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(s&&typeof s!="function")throw Error(l(231,t,typeof s));return s}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hu=!1;if(aa)try{var Pi={};Object.defineProperty(Pi,"passive",{get:function(){Hu=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch{Hu=!1}var Da=null,Pu=null,ho=null;function op(){if(ho)return ho;var e,t=Pu,s=t.length,i,c="value"in Da?Da.value:Da.textContent,d=c.length;for(e=0;e<s&&t[e]===c[e];e++);var y=s-e;for(i=1;i<=y&&t[s-i]===c[d-i];i++);return ho=c.slice(e,1<i?1-i:void 0)}function mo(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 po(){return!0}function cp(){return!1}function Pt(e){function t(s,i,c,d,y){this._reactName=s,this._targetInst=c,this.type=i,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var j in e)e.hasOwnProperty(j)&&(s=e[j],this[j]=s?s(d):d[j]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?po:cp,this.isPropagationStopped=cp,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),t}var _s={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},go=Pt(_s),qi=v({},_s,{view:0,detail:0}),DS=Pt(qi),qu,Gu,Gi,vo=v({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,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!==Gi&&(Gi&&e.type==="mousemove"?(qu=e.screenX-Gi.screenX,Gu=e.screenY-Gi.screenY):Gu=qu=0,Gi=e),qu)},movementY:function(e){return"movementY"in e?e.movementY:Gu}}),up=Pt(vo),zS=v({},vo,{dataTransfer:0}),LS=Pt(zS),kS=v({},qi,{relatedTarget:0}),Qu=Pt(kS),US=v({},_s,{animationName:0,elapsedTime:0,pseudoElement:0}),BS=Pt(US),HS=v({},_s,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),PS=Pt(HS),qS=v({},_s,{data:0}),fp=Pt(qS),GS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QS={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"},VS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=VS[e])?!!t[e]:!1}function Vu(){return YS}var XS=v({},qi,{key:function(e){if(e.key){var t=GS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?QS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(e){return e.type==="keypress"?mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),IS=Pt(XS),KS=v({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dp=Pt(KS),ZS=v({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),FS=Pt(ZS),$S=v({},_s,{propertyName:0,elapsedTime:0,pseudoElement:0}),WS=Pt($S),JS=v({},vo,{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}),ew=Pt(JS),tw=v({},_s,{newState:0,oldState:0}),nw=Pt(tw),aw=[9,13,27,32],Yu=aa&&"CompositionEvent"in window,Qi=null;aa&&"documentMode"in document&&(Qi=document.documentMode);var sw=aa&&"TextEvent"in window&&!Qi,hp=aa&&(!Yu||Qi&&8<Qi&&11>=Qi),mp=" ",pp=!1;function gp(e,t){switch(e){case"keyup":return aw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function rw(e,t){switch(e){case"compositionend":return vp(t);case"keypress":return t.which!==32?null:(pp=!0,mp);case"textInput":return e=t.data,e===mp&&pp?null:e;default:return null}}function iw(e,t){if(Er)return e==="compositionend"||!Yu&&gp(e,t)?(e=op(),ho=Pu=Da=null,Er=!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 hp&&t.locale!=="ko"?null:t.data;default:return null}}var lw={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 yp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lw[e.type]:t==="textarea"}function xp(e,t,s,i){Rr?Nr?Nr.push(i):Nr=[i]:Rr=i,t=ic(t,"onChange"),0<t.length&&(s=new go("onChange","change",null,s,i),e.push({event:s,listeners:t}))}var Vi=null,Yi=null;function ow(e){ty(e,0)}function yo(e){var t=Bi(e);if(ep(t))return e}function bp(e,t){if(e==="change")return t}var Sp=!1;if(aa){var Xu;if(aa){var Iu="oninput"in document;if(!Iu){var wp=document.createElement("div");wp.setAttribute("oninput","return;"),Iu=typeof wp.oninput=="function"}Xu=Iu}else Xu=!1;Sp=Xu&&(!document.documentMode||9<document.documentMode)}function jp(){Vi&&(Vi.detachEvent("onpropertychange",Rp),Yi=Vi=null)}function Rp(e){if(e.propertyName==="value"&&yo(Yi)){var t=[];xp(t,Yi,e,Uu(e)),lp(ow,t)}}function cw(e,t,s){e==="focusin"?(jp(),Vi=t,Yi=s,Vi.attachEvent("onpropertychange",Rp)):e==="focusout"&&jp()}function uw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yo(Yi)}function fw(e,t){if(e==="click")return yo(t)}function dw(e,t){if(e==="input"||e==="change")return yo(t)}function hw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:hw;function Xi(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(i=0;i<s.length;i++){var c=s[i];if(!mn.call(t,c)||!tn(e[c],t[c]))return!1}return!0}function Np(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ep(e,t){var s=Np(e);e=0;for(var i;s;){if(s.nodeType===3){if(i=e+s.textContent.length,e<=t&&i>=t)return{node:s,offset:t-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Np(s)}}function Cp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uo(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=uo(e.document)}return t}function Ku(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 mw=aa&&"documentMode"in document&&11>=document.documentMode,Cr=null,Zu=null,Ii=null,Fu=!1;function _p(e,t,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Fu||Cr==null||Cr!==uo(i)||(i=Cr,"selectionStart"in i&&Ku(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}),Ii&&Xi(Ii,i)||(Ii=i,i=ic(Zu,"onSelect"),0<i.length&&(t=new go("onSelect","select",null,t,s),e.push({event:t,listeners:i}),t.target=Cr)))}function As(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Tr={animationend:As("Animation","AnimationEnd"),animationiteration:As("Animation","AnimationIteration"),animationstart:As("Animation","AnimationStart"),transitionrun:As("Transition","TransitionRun"),transitionstart:As("Transition","TransitionStart"),transitioncancel:As("Transition","TransitionCancel"),transitionend:As("Transition","TransitionEnd")},$u={},Ap={};aa&&(Ap=document.createElement("div").style,"AnimationEvent"in window||(delete Tr.animationend.animation,delete Tr.animationiteration.animation,delete Tr.animationstart.animation),"TransitionEvent"in window||delete Tr.transitionend.transition);function Ms(e){if($u[e])return $u[e];if(!Tr[e])return e;var t=Tr[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Ap)return $u[e]=t[s];return e}var Mp=Ms("animationend"),Op=Ms("animationiteration"),Dp=Ms("animationstart"),pw=Ms("transitionrun"),gw=Ms("transitionstart"),vw=Ms("transitioncancel"),zp=Ms("transitionend"),Lp=new Map,Wu="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(" ");Wu.push("scrollEnd");function _n(e,t){Lp.set(e,t),Ts(t,[e])}var xo=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=[],_r=0,Ju=0;function bo(){for(var e=_r,t=Ju=_r=0;t<e;){var s=vn[t];vn[t++]=null;var i=vn[t];vn[t++]=null;var c=vn[t];vn[t++]=null;var d=vn[t];if(vn[t++]=null,i!==null&&c!==null){var y=i.pending;y===null?c.next=c:(c.next=y.next,y.next=c),i.pending=c}d!==0&&kp(s,c,d)}}function So(e,t,s,i){vn[_r++]=e,vn[_r++]=t,vn[_r++]=s,vn[_r++]=i,Ju|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function ef(e,t,s,i){return So(e,t,s,i),wo(e)}function Os(e,t){return So(e,null,null,t),wo(e)}function kp(e,t,s){e.lanes|=s;var i=e.alternate;i!==null&&(i.lanes|=s);for(var c=!1,d=e.return;d!==null;)d.childLanes|=s,i=d.alternate,i!==null&&(i.childLanes|=s),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-en(s),e=d.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=s|536870912),d):null}function wo(e){if(50<pl)throw pl=0,ud=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ar={};function yw(e,t,s,i){this.tag=e,this.key=s,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 nn(e,t,s,i){return new yw(e,t,s,i)}function tf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var s=e.alternate;return s===null?(s=nn(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Up(e,t){e.flags&=65011714;var s=e.alternate;return s===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=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function jo(e,t,s,i,c,d){var y=0;if(i=e,typeof e=="function")tf(e)&&(y=1);else if(typeof e=="string")y=jj(e,s,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case k:return e=nn(31,s,t,c),e.elementType=k,e.lanes=d,e;case R:return Ds(s.children,c,d,t);case E:y=8,c|=24;break;case C:return e=nn(12,s,t,c|2),e.elementType=C,e.lanes=d,e;case P:return e=nn(13,s,t,c),e.elementType=P,e.lanes=d,e;case Y:return e=nn(19,s,t,c),e.elementType=Y,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:y=10;break e;case _:y=9;break e;case T:y=11;break e;case M:y=14;break e;case D:y=16,i=null;break e}y=29,s=Error(l(130,e===null?"null":typeof e,"")),i=null}return t=nn(y,s,t,c),t.elementType=e,t.type=i,t.lanes=d,t}function Ds(e,t,s,i){return e=nn(7,e,i,t),e.lanes=s,e}function nf(e,t,s){return e=nn(6,e,null,t),e.lanes=s,e}function Bp(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function af(e,t,s){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hp=new WeakMap;function yn(e,t){if(typeof e=="object"&&e!==null){var s=Hp.get(e);return s!==void 0?s:(t={value:e,source:t,stack:Cn(t)},Hp.set(e,t),t)}return{value:e,source:t,stack:Cn(t)}}var Mr=[],Or=0,Ro=null,Ki=0,xn=[],bn=0,za=null,Hn=1,Pn="";function ra(e,t){Mr[Or++]=Ki,Mr[Or++]=Ro,Ro=e,Ki=t}function Pp(e,t,s){xn[bn++]=Hn,xn[bn++]=Pn,xn[bn++]=za,za=e;var i=Hn;e=Pn;var c=32-en(i)-1;i&=~(1<<c),s+=1;var d=32-en(t)+c;if(30<d){var y=c-c%5;d=(i&(1<<y)-1).toString(32),i>>=y,c-=y,Hn=1<<32-en(t)+c|s<<c|i,Pn=d+e}else Hn=1<<d|s<<c|i,Pn=e}function sf(e){e.return!==null&&(ra(e,1),Pp(e,1,0))}function rf(e){for(;e===Ro;)Ro=Mr[--Or],Mr[Or]=null,Ki=Mr[--Or],Mr[Or]=null;for(;e===za;)za=xn[--bn],xn[bn]=null,Pn=xn[--bn],xn[bn]=null,Hn=xn[--bn],xn[bn]=null}function qp(e,t){xn[bn++]=Hn,xn[bn++]=Pn,xn[bn++]=za,Hn=t.id,Pn=t.overflow,za=e}var wt=null,Ke=null,Ae=!1,La=null,Sn=!1,lf=Error(l(519));function ka(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(yn(t,e)),lf}function Gp(e){var t=e.stateNode,s=e.type,i=e.memoizedProps;switch(t[St]=e,t[Ht]=i,s){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(s=0;s<vl.length;s++)Ne(vl[s],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),tp(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),ap(t,i.value,i.defaultValue,i.children)}s=i.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||i.suppressHydrationWarning===!0||ry(t.textContent,s)?(i.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),i.onScroll!=null&&Ne("scroll",t),i.onScrollEnd!=null&&Ne("scrollend",t),i.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||ka(e,!0)}function Qp(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:wt=wt.return}}function Dr(e){if(e!==wt)return!1;if(!Ae)return Qp(e),Ae=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||Nd(e.type,e.memoizedProps)),s=!s),s&&Ke&&ka(e),Qp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ke=my(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ke=my(e)}else t===27?(t=Ke,Fa(e.type)?(e=Ad,Ad=null,Ke=e):Ke=t):Ke=wt?jn(e.stateNode.nextSibling):null;return!0}function zs(){Ke=wt=null,Ae=!1}function of(){var e=La;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),La=null),e}function Zi(e){La===null?La=[e]:La.push(e)}var cf=O(null),Ls=null,ia=null;function Ua(e,t,s){se(cf,t._currentValue),t._currentValue=s}function la(e){e._currentValue=cf.current,Z(cf)}function uf(e,t,s){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===s)break;e=e.return}}function ff(e,t,s,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var j=d;d=c;for(var A=0;A<t.length;A++)if(j.context===t[A]){d.lanes|=s,j=d.alternate,j!==null&&(j.lanes|=s),uf(d.return,s,e),i||(y=null);break e}d=j.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(l(341));y.lanes|=s,d=y.alternate,d!==null&&(d.lanes|=s),uf(y,s,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function zr(e,t,s,i){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var j=c.type;tn(c.pendingProps.value,y.value)||(e!==null?e.push(j):e=[j])}}else if(c===Se.current){if(y=c.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(wl):e=[wl])}c=c.return}e!==null&&ff(t,e,s,i),t.flags|=262144}function No(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ks(e){Ls=e,ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return Vp(Ls,e)}function Eo(e,t){return Ls===null&&ks(e),Vp(e,t)}function Vp(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},ia===null){if(e===null)throw Error(l(308));ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ia=ia.next=t;return s}var xw=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},bw=n.unstable_scheduleCallback,Sw=n.unstable_NormalPriority,it={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function df(){return{controller:new xw,data:new Map,refCount:0}}function Fi(e){e.refCount--,e.refCount===0&&bw(Sw,function(){e.controller.abort()})}var $i=null,hf=0,Lr=0,kr=null;function ww(e,t){if($i===null){var s=$i=[];hf=0,Lr=gd(),kr={status:"pending",value:void 0,then:function(i){s.push(i)}}}return hf++,t.then(Yp,Yp),t}function Yp(){if(--hf===0&&$i!==null){kr!==null&&(kr.status="fulfilled");var e=$i;$i=null,Lr=0,kr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function jw(e,t){var s=[],i={status:"pending",value:null,reason:null,then:function(c){s.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<s.length;c++)(0,s[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<s.length;c++)(0,s[c])(void 0)}),i}var Xp=B.S;B.S=function(e,t){_v=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ww(e,t),Xp!==null&&Xp(e,t)};var Us=O(null);function mf(){var e=Us.current;return e!==null?e:Ie.pooledCache}function Co(e,t){t===null?se(Us,Us.current):se(Us,t.pool)}function Ip(){var e=mf();return e===null?null:{parent:it._currentValue,pool:e}}var Ur=Error(l(460)),pf=Error(l(474)),To=Error(l(542)),_o={then:function(){}};function Kp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zp(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(na,na),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$p(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$p(e),e}throw Hs=t,Ur}}function Bs(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Hs=s,Ur):s}}var Hs=null;function Fp(){if(Hs===null)throw Error(l(459));var e=Hs;return Hs=null,e}function $p(e){if(e===Ur||e===To)throw Error(l(483))}var Br=null,Wi=0;function Ao(e){var t=Wi;return Wi+=1,Br===null&&(Br=[]),Zp(Br,e,t)}function Ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Mo(e,t){throw t.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wp(e){function t(H,z){if(e){var G=H.deletions;G===null?(H.deletions=[z],H.flags|=16):G.push(z)}}function s(H,z){if(!e)return null;for(;z!==null;)t(H,z),z=z.sibling;return null}function i(H){for(var z=new Map;H!==null;)H.key!==null?z.set(H.key,H):z.set(H.index,H),H=H.sibling;return z}function c(H,z){return H=sa(H,z),H.index=0,H.sibling=null,H}function d(H,z,G){return H.index=G,e?(G=H.alternate,G!==null?(G=G.index,G<z?(H.flags|=67108866,z):G):(H.flags|=67108866,z)):(H.flags|=1048576,z)}function y(H){return e&&H.alternate===null&&(H.flags|=67108866),H}function j(H,z,G,F){return z===null||z.tag!==6?(z=nf(G,H.mode,F),z.return=H,z):(z=c(z,G),z.return=H,z)}function A(H,z,G,F){var me=G.type;return me===R?K(H,z,G.props.children,F,G.key):z!==null&&(z.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===D&&Bs(me)===z.type)?(z=c(z,G.props),Ji(z,G),z.return=H,z):(z=jo(G.type,G.key,G.props,null,H.mode,F),Ji(z,G),z.return=H,z)}function Q(H,z,G,F){return z===null||z.tag!==4||z.stateNode.containerInfo!==G.containerInfo||z.stateNode.implementation!==G.implementation?(z=af(G,H.mode,F),z.return=H,z):(z=c(z,G.children||[]),z.return=H,z)}function K(H,z,G,F,me){return z===null||z.tag!==7?(z=Ds(G,H.mode,F,me),z.return=H,z):(z=c(z,G),z.return=H,z)}function W(H,z,G){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=nf(""+z,H.mode,G),z.return=H,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return G=jo(z.type,z.key,z.props,null,H.mode,G),Ji(G,z),G.return=H,G;case N:return z=af(z,H.mode,G),z.return=H,z;case D:return z=Bs(z),W(H,z,G)}if(de(z)||ee(z))return z=Ds(z,H.mode,G,null),z.return=H,z;if(typeof z.then=="function")return W(H,Ao(z),G);if(z.$$typeof===U)return W(H,Eo(H,z),G);Mo(H,z)}return null}function V(H,z,G,F){var me=z!==null?z.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return me!==null?null:j(H,z,""+G,F);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return G.key===me?A(H,z,G,F):null;case N:return G.key===me?Q(H,z,G,F):null;case D:return G=Bs(G),V(H,z,G,F)}if(de(G)||ee(G))return me!==null?null:K(H,z,G,F,null);if(typeof G.then=="function")return V(H,z,Ao(G),F);if(G.$$typeof===U)return V(H,z,Eo(H,G),F);Mo(H,G)}return null}function I(H,z,G,F,me){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return H=H.get(G)||null,j(z,H,""+F,me);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return H=H.get(F.key===null?G:F.key)||null,A(z,H,F,me);case N:return H=H.get(F.key===null?G:F.key)||null,Q(z,H,F,me);case D:return F=Bs(F),I(H,z,G,F,me)}if(de(F)||ee(F))return H=H.get(G)||null,K(z,H,F,me,null);if(typeof F.then=="function")return I(H,z,G,Ao(F),me);if(F.$$typeof===U)return I(H,z,G,Eo(z,F),me);Mo(z,F)}return null}function ue(H,z,G,F){for(var me=null,Le=null,fe=z,we=z=0,Ce=null;fe!==null&&we<G.length;we++){fe.index>we?(Ce=fe,fe=null):Ce=fe.sibling;var ke=V(H,fe,G[we],F);if(ke===null){fe===null&&(fe=Ce);break}e&&fe&&ke.alternate===null&&t(H,fe),z=d(ke,z,we),Le===null?me=ke:Le.sibling=ke,Le=ke,fe=Ce}if(we===G.length)return s(H,fe),Ae&&ra(H,we),me;if(fe===null){for(;we<G.length;we++)fe=W(H,G[we],F),fe!==null&&(z=d(fe,z,we),Le===null?me=fe:Le.sibling=fe,Le=fe);return Ae&&ra(H,we),me}for(fe=i(fe);we<G.length;we++)Ce=I(fe,H,we,G[we],F),Ce!==null&&(e&&Ce.alternate!==null&&fe.delete(Ce.key===null?we:Ce.key),z=d(Ce,z,we),Le===null?me=Ce:Le.sibling=Ce,Le=Ce);return e&&fe.forEach(function(ts){return t(H,ts)}),Ae&&ra(H,we),me}function ve(H,z,G,F){if(G==null)throw Error(l(151));for(var me=null,Le=null,fe=z,we=z=0,Ce=null,ke=G.next();fe!==null&&!ke.done;we++,ke=G.next()){fe.index>we?(Ce=fe,fe=null):Ce=fe.sibling;var ts=V(H,fe,ke.value,F);if(ts===null){fe===null&&(fe=Ce);break}e&&fe&&ts.alternate===null&&t(H,fe),z=d(ts,z,we),Le===null?me=ts:Le.sibling=ts,Le=ts,fe=Ce}if(ke.done)return s(H,fe),Ae&&ra(H,we),me;if(fe===null){for(;!ke.done;we++,ke=G.next())ke=W(H,ke.value,F),ke!==null&&(z=d(ke,z,we),Le===null?me=ke:Le.sibling=ke,Le=ke);return Ae&&ra(H,we),me}for(fe=i(fe);!ke.done;we++,ke=G.next())ke=I(fe,H,we,ke.value,F),ke!==null&&(e&&ke.alternate!==null&&fe.delete(ke.key===null?we:ke.key),z=d(ke,z,we),Le===null?me=ke:Le.sibling=ke,Le=ke);return e&&fe.forEach(function(zj){return t(H,zj)}),Ae&&ra(H,we),me}function Xe(H,z,G,F){if(typeof G=="object"&&G!==null&&G.type===R&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case S:e:{for(var me=G.key;z!==null;){if(z.key===me){if(me=G.type,me===R){if(z.tag===7){s(H,z.sibling),F=c(z,G.props.children),F.return=H,H=F;break e}}else if(z.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===D&&Bs(me)===z.type){s(H,z.sibling),F=c(z,G.props),Ji(F,G),F.return=H,H=F;break e}s(H,z);break}else t(H,z);z=z.sibling}G.type===R?(F=Ds(G.props.children,H.mode,F,G.key),F.return=H,H=F):(F=jo(G.type,G.key,G.props,null,H.mode,F),Ji(F,G),F.return=H,H=F)}return y(H);case N:e:{for(me=G.key;z!==null;){if(z.key===me)if(z.tag===4&&z.stateNode.containerInfo===G.containerInfo&&z.stateNode.implementation===G.implementation){s(H,z.sibling),F=c(z,G.children||[]),F.return=H,H=F;break e}else{s(H,z);break}else t(H,z);z=z.sibling}F=af(G,H.mode,F),F.return=H,H=F}return y(H);case D:return G=Bs(G),Xe(H,z,G,F)}if(de(G))return ue(H,z,G,F);if(ee(G)){if(me=ee(G),typeof me!="function")throw Error(l(150));return G=me.call(G),ve(H,z,G,F)}if(typeof G.then=="function")return Xe(H,z,Ao(G),F);if(G.$$typeof===U)return Xe(H,z,Eo(H,G),F);Mo(H,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,z!==null&&z.tag===6?(s(H,z.sibling),F=c(z,G),F.return=H,H=F):(s(H,z),F=nf(G,H.mode,F),F.return=H,H=F),y(H)):s(H,z)}return function(H,z,G,F){try{Wi=0;var me=Xe(H,z,G,F);return Br=null,me}catch(fe){if(fe===Ur||fe===To)throw fe;var Le=nn(29,fe,null,H.mode);return Le.lanes=F,Le.return=H,Le}finally{}}}var Ps=Wp(!0),Jp=Wp(!1),Ba=!1;function gf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(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 Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,s){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Be&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=wo(e),kp(e,null,s),t}return So(e,i,t,s),wo(e)}function el(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Vm(e,s)}}function yf(e,t){var s=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,s===i)){var c=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,s=s.next}while(s!==null);d===null?c=d=t:d=d.next=t}else c=d=t;s={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var xf=!1;function tl(){if(xf){var e=kr;if(e!==null)throw e}}function nl(e,t,s,i){xf=!1;var c=e.updateQueue;Ba=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,j=c.shared.pending;if(j!==null){c.shared.pending=null;var A=j,Q=A.next;A.next=null,y===null?d=Q:y.next=Q,y=A;var K=e.alternate;K!==null&&(K=K.updateQueue,j=K.lastBaseUpdate,j!==y&&(j===null?K.firstBaseUpdate=Q:j.next=Q,K.lastBaseUpdate=A))}if(d!==null){var W=c.baseState;y=0,K=Q=A=null,j=d;do{var V=j.lane&-536870913,I=V!==j.lane;if(I?(Ee&V)===V:(i&V)===V){V!==0&&V===Lr&&(xf=!0),K!==null&&(K=K.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var ue=e,ve=j;V=t;var Xe=s;switch(ve.tag){case 1:if(ue=ve.payload,typeof ue=="function"){W=ue.call(Xe,W,V);break e}W=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=ve.payload,V=typeof ue=="function"?ue.call(Xe,W,V):ue,V==null)break e;W=v({},W,V);break e;case 2:Ba=!0}}V=j.callback,V!==null&&(e.flags|=64,I&&(e.flags|=8192),I=c.callbacks,I===null?c.callbacks=[V]:I.push(V))}else I={lane:V,tag:j.tag,payload:j.payload,callback:j.callback,next:null},K===null?(Q=K=I,A=W):K=K.next=I,y|=V;if(j=j.next,j===null){if(j=c.shared.pending,j===null)break;I=j,j=I.next,I.next=null,c.lastBaseUpdate=I,c.shared.pending=null}}while(!0);K===null&&(A=W),c.baseState=A,c.firstBaseUpdate=Q,c.lastBaseUpdate=K,d===null&&(c.shared.lanes=0),Ya|=y,e.lanes=y,e.memoizedState=W}}function eg(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function tg(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)eg(s[e],t)}var Hr=O(null),Oo=O(0);function ng(e,t){e=ga,se(Oo,e),se(Hr,t),ga=e|t.baseLanes}function bf(){se(Oo,ga),se(Hr,Hr.current)}function Sf(){ga=Oo.current,Z(Hr),Z(Oo)}var an=O(null),wn=null;function qa(e){var t=e.alternate;se(st,st.current&1),se(an,e),wn===null&&(t===null||Hr.current!==null||t.memoizedState!==null)&&(wn=e)}function wf(e){se(st,st.current),se(an,e),wn===null&&(wn=e)}function ag(e){e.tag===22?(se(st,st.current),se(an,e),wn===null&&(wn=e)):Ga()}function Ga(){se(st,st.current),se(an,an.current)}function sn(e){Z(an),wn===e&&(wn=null),Z(st)}var st=O(0);function Do(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Td(s)||_d(s)))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 oa=0,be=null,Ve=null,lt=null,zo=!1,Pr=!1,qs=!1,Lo=0,al=0,qr=null,Rw=0;function Je(){throw Error(l(321))}function jf(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!tn(e[s],t[s]))return!1;return!0}function Rf(e,t,s,i,c,d){return oa=d,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Pg:Hf,qs=!1,d=s(i,c),qs=!1,Pr&&(d=rg(t,s,i,c)),sg(e),d}function sg(e){B.H=il;var t=Ve!==null&&Ve.next!==null;if(oa=0,lt=Ve=be=null,zo=!1,al=0,qr=null,t)throw Error(l(300));e===null||ot||(e=e.dependencies,e!==null&&No(e)&&(ot=!0))}function rg(e,t,s,i){be=e;var c=0;do{if(Pr&&(qr=null),al=0,Pr=!1,25<=c)throw Error(l(301));if(c+=1,lt=Ve=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}B.H=qg,d=t(s,i)}while(Pr);return d}function Nw(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?sl(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(be.flags|=1024),t}function Nf(){var e=Lo!==0;return Lo=0,e}function Ef(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function Cf(e){if(zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zo=!1}oa=0,lt=Ve=be=null,Pr=!1,al=Lo=0,qr=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?be.memoizedState=lt=e:lt=lt.next=e,lt}function rt(){if(Ve===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=lt===null?be.memoizedState:lt.next;if(t!==null)lt=t,Ve=e;else{if(e===null)throw be.alternate===null?Error(l(467)):Error(l(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},lt===null?be.memoizedState=lt=e:lt=lt.next=e}return lt}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(e){var t=al;return al+=1,qr===null&&(qr=[]),e=Zp(qr,e,t),t=be,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Pg:Hf),e}function Uo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sl(e);if(e.$$typeof===U)return jt(e)}throw Error(l(438,String(e)))}function Tf(e){var t=null,s=be.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var i=be.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=ko(),be.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),i=0;i<e;i++)s[i]=q;return t.index++,s}function ca(e,t){return typeof t=="function"?t(e):t}function Bo(e){var t=rt();return _f(t,Ve,e)}function _f(e,t,s){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=s;var c=e.baseQueue,d=i.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,i.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var j=y=null,A=null,Q=t,K=!1;do{var W=Q.lane&-536870913;if(W!==Q.lane?(Ee&W)===W:(oa&W)===W){var V=Q.revertLane;if(V===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),W===Lr&&(K=!0);else if((oa&V)===V){Q=Q.next,V===Lr&&(K=!0);continue}else W={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},A===null?(j=A=W,y=d):A=A.next=W,be.lanes|=V,Ya|=V;W=Q.action,qs&&s(d,W),d=Q.hasEagerState?Q.eagerState:s(d,W)}else V={lane:W,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},A===null?(j=A=V,y=d):A=A.next=V,be.lanes|=W,Ya|=W;Q=Q.next}while(Q!==null&&Q!==t);if(A===null?y=d:A.next=j,!tn(d,e.memoizedState)&&(ot=!0,K&&(s=kr,s!==null)))throw s;e.memoizedState=d,e.baseState=y,e.baseQueue=A,i.lastRenderedState=d}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Af(e){var t=rt(),s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=e;var i=s.dispatch,c=s.pending,d=t.memoizedState;if(c!==null){s.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);tn(d,t.memoizedState)||(ot=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),s.lastRenderedState=d}return[d,i]}function ig(e,t,s){var i=be,c=rt(),d=Ae;if(d){if(s===void 0)throw Error(l(407));s=s()}else s=t();var y=!tn((Ve||c).memoizedState,s);if(y&&(c.memoizedState=s,ot=!0),c=c.queue,Df(cg.bind(null,i,c,e),[e]),c.getSnapshot!==t||y||lt!==null&&lt.memoizedState.tag&1){if(i.flags|=2048,Gr(9,{destroy:void 0},og.bind(null,i,c,s,t),null),Ie===null)throw Error(l(349));d||(oa&127)!==0||lg(i,t,s)}return s}function lg(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=be.updateQueue,t===null?(t=ko(),be.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function og(e,t,s,i){t.value=s,t.getSnapshot=i,ug(t)&&fg(e)}function cg(e,t,s){return s(function(){ug(t)&&fg(e)})}function ug(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!tn(e,s)}catch{return!0}}function fg(e){var t=Os(e,2);t!==null&&Yt(t,e,2)}function Mf(e){var t=Lt();if(typeof e=="function"){var s=e;if(e=s(),qs){Ma(!0);try{s()}finally{Ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function dg(e,t,s,i){return e.baseState=s,_f(e,Ve,typeof i=="function"?i:ca)}function Ew(e,t,s,i,c){if(qo(e))throw Error(l(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};B.T!==null?s(!0):d.isTransition=!1,i(d),s=t.pending,s===null?(d.next=t.pending=d,hg(t,d)):(d.next=s.next,t.pending=s.next=d)}}function hg(e,t){var s=t.action,i=t.payload,c=e.state;if(t.isTransition){var d=B.T,y={};B.T=y;try{var j=s(c,i),A=B.S;A!==null&&A(y,j),mg(e,t,j)}catch(Q){Of(e,t,Q)}finally{d!==null&&y.types!==null&&(d.types=y.types),B.T=d}}else try{d=s(c,i),mg(e,t,d)}catch(Q){Of(e,t,Q)}}function mg(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(i){pg(e,t,i)},function(i){return Of(e,t,i)}):pg(e,t,s)}function pg(e,t,s){t.status="fulfilled",t.value=s,gg(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,hg(e,s)))}function Of(e,t,s){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=s,gg(t),t=t.next;while(t!==i)}e.action=null}function gg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vg(e,t){return t}function yg(e,t){if(Ae){var s=Ie.formState;if(s!==null){e:{var i=be;if(Ae){if(Ke){t:{for(var c=Ke,d=Sn;c.nodeType!==8;){if(!d){c=null;break t}if(c=jn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Ke=jn(c.nextSibling),i=c.data==="F!";break e}}ka(i)}i=!1}i&&(t=s[0])}}return s=Lt(),s.memoizedState=s.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vg,lastRenderedState:t},s.queue=i,s=Ug.bind(null,be,i),i.dispatch=s,i=Mf(!1),d=Bf.bind(null,be,!1,i.queue),i=Lt(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,s=Ew.bind(null,be,c,d,s),c.dispatch=s,i.memoizedState=e,[t,s,!1]}function xg(e){var t=rt();return bg(t,Ve,e)}function bg(e,t,s){if(t=_f(e,t,vg)[0],e=Bo(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=sl(t)}catch(y){throw y===Ur?To:y}else i=t;t=rt();var c=t.queue,d=c.dispatch;return s!==t.memoizedState&&(be.flags|=2048,Gr(9,{destroy:void 0},Cw.bind(null,c,s),null)),[i,d,e]}function Cw(e,t){e.action=t}function Sg(e){var t=rt(),s=Ve;if(s!==null)return bg(t,s,e);rt(),t=t.memoizedState,s=rt();var i=s.queue.dispatch;return s.memoizedState=e,[t,i,!1]}function Gr(e,t,s,i){return e={tag:e,create:s,deps:i,inst:t,next:null},t=be.updateQueue,t===null&&(t=ko(),be.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(i=s.next,s.next=e,e.next=i,t.lastEffect=e),e}function wg(){return rt().memoizedState}function Ho(e,t,s,i){var c=Lt();be.flags|=e,c.memoizedState=Gr(1|t,{destroy:void 0},s,i===void 0?null:i)}function Po(e,t,s,i){var c=rt();i=i===void 0?null:i;var d=c.memoizedState.inst;Ve!==null&&i!==null&&jf(i,Ve.memoizedState.deps)?c.memoizedState=Gr(t,d,s,i):(be.flags|=e,c.memoizedState=Gr(1|t,d,s,i))}function jg(e,t){Ho(8390656,8,e,t)}function Df(e,t){Po(2048,8,e,t)}function Tw(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=ko(),be.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function Rg(e){var t=rt().memoizedState;return Tw({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Ng(e,t){return Po(4,2,e,t)}function Eg(e,t){return Po(4,4,e,t)}function Cg(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Tg(e,t,s){s=s!=null?s.concat([e]):null,Po(4,4,Cg.bind(null,t,e),s)}function zf(){}function _g(e,t){var s=rt();t=t===void 0?null:t;var i=s.memoizedState;return t!==null&&jf(t,i[1])?i[0]:(s.memoizedState=[e,t],e)}function Ag(e,t){var s=rt();t=t===void 0?null:t;var i=s.memoizedState;if(t!==null&&jf(t,i[1]))return i[0];if(i=e(),qs){Ma(!0);try{e()}finally{Ma(!1)}}return s.memoizedState=[i,t],i}function Lf(e,t,s){return s===void 0||(oa&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=Mv(),be.lanes|=e,Ya|=e,s)}function Mg(e,t,s,i){return tn(s,t)?s:Hr.current!==null?(e=Lf(e,s,i),tn(e,t)||(ot=!0),e):(oa&42)===0||(oa&1073741824)!==0&&(Ee&261930)===0?(ot=!0,e.memoizedState=s):(e=Mv(),be.lanes|=e,Ya|=e,t)}function Og(e,t,s,i,c){var d=X.p;X.p=d!==0&&8>d?d:8;var y=B.T,j={};B.T=j,Bf(e,!1,t,s);try{var A=c(),Q=B.S;if(Q!==null&&Q(j,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var K=jw(A,i);rl(e,t,K,on(e))}else rl(e,t,i,on(e))}catch(W){rl(e,t,{then:function(){},status:"rejected",reason:W},on())}finally{X.p=d,y!==null&&j.types!==null&&(y.types=j.types),B.T=y}}function _w(){}function kf(e,t,s,i){if(e.tag!==5)throw Error(l(476));var c=Dg(e).queue;Og(e,c,t,J,s===null?_w:function(){return zg(e),s(i)})}function Dg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:J},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zg(e){var t=Dg(e);t.next===null&&(t=e.alternate.memoizedState),rl(e,t.next.queue,{},on())}function Uf(){return jt(wl)}function Lg(){return rt().memoizedState}function kg(){return rt().memoizedState}function Aw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=on();e=Ha(s);var i=Pa(t,e,s);i!==null&&(Yt(i,t,s),el(i,t,s)),t={cache:df()},e.payload=t;return}t=t.return}}function Mw(e,t,s){var i=on();s={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},qo(e)?Bg(t,s):(s=ef(e,t,s,i),s!==null&&(Yt(s,e,i),Hg(s,t,i)))}function Ug(e,t,s){var i=on();rl(e,t,s,i)}function rl(e,t,s,i){var c={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(qo(e))Bg(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,j=d(y,s);if(c.hasEagerState=!0,c.eagerState=j,tn(j,y))return So(e,t,c,0),Ie===null&&bo(),!1}catch{}finally{}if(s=ef(e,t,c,i),s!==null)return Yt(s,e,i),Hg(s,t,i),!0}return!1}function Bf(e,t,s,i){if(i={lane:2,revertLane:gd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},qo(e)){if(t)throw Error(l(479))}else t=ef(e,s,i,2),t!==null&&Yt(t,e,2)}function qo(e){var t=e.alternate;return e===be||t!==null&&t===be}function Bg(e,t){Pr=zo=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Hg(e,t,s){if((s&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Vm(e,s)}}var il={readContext:jt,use:Uo,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};il.useEffectEvent=Je;var Pg={readContext:jt,use:Uo,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:jg,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,Ho(4194308,4,Cg.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){Ho(4,2,e,t)},useMemo:function(e,t){var s=Lt();t=t===void 0?null:t;var i=e();if(qs){Ma(!0);try{e()}finally{Ma(!1)}}return s.memoizedState=[i,t],i},useReducer:function(e,t,s){var i=Lt();if(s!==void 0){var c=s(t);if(qs){Ma(!0);try{s(t)}finally{Ma(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=Mw.bind(null,be,e),[i.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mf(e);var t=e.queue,s=Ug.bind(null,be,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:zf,useDeferredValue:function(e,t){var s=Lt();return Lf(s,e,t)},useTransition:function(){var e=Mf(!1);return e=Og.bind(null,be,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var i=be,c=Lt();if(Ae){if(s===void 0)throw Error(l(407));s=s()}else{if(s=t(),Ie===null)throw Error(l(349));(Ee&127)!==0||lg(i,t,s)}c.memoizedState=s;var d={value:s,getSnapshot:t};return c.queue=d,jg(cg.bind(null,i,d,e),[e]),i.flags|=2048,Gr(9,{destroy:void 0},og.bind(null,i,d,s,t),null),s},useId:function(){var e=Lt(),t=Ie.identifierPrefix;if(Ae){var s=Pn,i=Hn;s=(i&~(1<<32-en(i)-1)).toString(32)+s,t="_"+t+"R_"+s,s=Lo++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=Rw++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Uf,useFormState:yg,useActionState:yg,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=Bf.bind(null,be,!0,s),s.dispatch=t,[e,t]},useMemoCache:Tf,useCacheRefresh:function(){return Lt().memoizedState=Aw.bind(null,be)},useEffectEvent:function(e){var t=Lt(),s={impl:e};return t.memoizedState=s,function(){if((Be&2)!==0)throw Error(l(440));return s.impl.apply(void 0,arguments)}}},Hf={readContext:jt,use:Uo,useCallback:_g,useContext:jt,useEffect:Df,useImperativeHandle:Tg,useInsertionEffect:Ng,useLayoutEffect:Eg,useMemo:Ag,useReducer:Bo,useRef:wg,useState:function(){return Bo(ca)},useDebugValue:zf,useDeferredValue:function(e,t){var s=rt();return Mg(s,Ve.memoizedState,e,t)},useTransition:function(){var e=Bo(ca)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:ig,useId:Lg,useHostTransitionStatus:Uf,useFormState:xg,useActionState:xg,useOptimistic:function(e,t){var s=rt();return dg(s,Ve,e,t)},useMemoCache:Tf,useCacheRefresh:kg};Hf.useEffectEvent=Rg;var qg={readContext:jt,use:Uo,useCallback:_g,useContext:jt,useEffect:Df,useImperativeHandle:Tg,useInsertionEffect:Ng,useLayoutEffect:Eg,useMemo:Ag,useReducer:Af,useRef:wg,useState:function(){return Af(ca)},useDebugValue:zf,useDeferredValue:function(e,t){var s=rt();return Ve===null?Lf(s,e,t):Mg(s,Ve.memoizedState,e,t)},useTransition:function(){var e=Af(ca)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:ig,useId:Lg,useHostTransitionStatus:Uf,useFormState:Sg,useActionState:Sg,useOptimistic:function(e,t){var s=rt();return Ve!==null?dg(s,Ve,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Tf,useCacheRefresh:kg};qg.useEffectEvent=Rg;function Pf(e,t,s,i){t=e.memoizedState,s=s(i,t),s=s==null?t:v({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var qf={enqueueSetState:function(e,t,s){e=e._reactInternals;var i=on(),c=Ha(i);c.payload=t,s!=null&&(c.callback=s),t=Pa(e,c,i),t!==null&&(Yt(t,e,i),el(t,e,i))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var i=on(),c=Ha(i);c.tag=1,c.payload=t,s!=null&&(c.callback=s),t=Pa(e,c,i),t!==null&&(Yt(t,e,i),el(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=on(),i=Ha(s);i.tag=2,t!=null&&(i.callback=t),t=Pa(e,i,s),t!==null&&(Yt(t,e,s),el(t,e,s))}};function Gg(e,t,s,i,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,y):t.prototype&&t.prototype.isPureReactComponent?!Xi(s,i)||!Xi(c,d):!0}function Qg(e,t,s,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,i),t.state!==e&&qf.enqueueReplaceState(t,t.state,null)}function Gs(e,t){var s=t;if("ref"in t){s={};for(var i in t)i!=="ref"&&(s[i]=t[i])}if(e=e.defaultProps){s===t&&(s=v({},s));for(var c in e)s[c]===void 0&&(s[c]=e[c])}return s}function Vg(e){xo(e)}function Yg(e){console.error(e)}function Xg(e){xo(e)}function Go(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Ig(e,t,s){try{var i=e.onCaughtError;i(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Gf(e,t,s){return s=Ha(s),s.tag=3,s.payload={element:null},s.callback=function(){Go(e,t)},s}function Kg(e){return e=Ha(e),e.tag=3,e}function Zg(e,t,s,i){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var d=i.value;e.payload=function(){return c(d)},e.callback=function(){Ig(t,s,i)}}var y=s.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Ig(t,s,i),typeof c!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var j=i.stack;this.componentDidCatch(i.value,{componentStack:j!==null?j:""})})}function Ow(e,t,s,i,c){if(s.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=s.alternate,t!==null&&zr(t,s,c,!0),s=an.current,s!==null){switch(s.tag){case 31:case 13:return wn===null?ec():s.alternate===null&&et===0&&(et=3),s.flags&=-257,s.flags|=65536,s.lanes=c,i===_o?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([i]):t.add(i),hd(e,i,c)),!1;case 22:return s.flags|=65536,i===_o?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([i]):s.add(i)),hd(e,i,c)),!1}throw Error(l(435,s.tag))}return hd(e,i,c),ec(),!1}if(Ae)return t=an.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==lf&&(e=Error(l(422),{cause:i}),Zi(yn(e,s)))):(i!==lf&&(t=Error(l(423),{cause:i}),Zi(yn(t,s))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=yn(i,s),c=Gf(e.stateNode,i,c),yf(e,c),et!==4&&(et=2)),!1;var d=Error(l(520),{cause:i});if(d=yn(d,s),ml===null?ml=[d]:ml.push(d),et!==4&&(et=2),t===null)return!0;i=yn(i,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=c&-c,s.lanes|=e,e=Gf(s.stateNode,i,e),yf(s,e),!1;case 1:if(t=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Xa===null||!Xa.has(d))))return s.flags|=65536,c&=-c,s.lanes|=c,c=Kg(c),Zg(c,e,s,i),yf(s,c),!1}s=s.return}while(s!==null);return!1}var Qf=Error(l(461)),ot=!1;function Rt(e,t,s,i){t.child=e===null?Jp(t,null,s,i):Ps(t,e.child,s,i)}function Fg(e,t,s,i,c){s=s.render;var d=t.ref;if("ref"in i){var y={};for(var j in i)j!=="ref"&&(y[j]=i[j])}else y=i;return ks(t),i=Rf(e,t,s,y,d,c),j=Nf(),e!==null&&!ot?(Ef(e,t,c),ua(e,t,c)):(Ae&&j&&sf(t),t.flags|=1,Rt(e,t,i,c),t.child)}function $g(e,t,s,i,c){if(e===null){var d=s.type;return typeof d=="function"&&!tf(d)&&d.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=d,Wg(e,t,d,i,c)):(e=jo(s.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!$f(e,c)){var y=d.memoizedProps;if(s=s.compare,s=s!==null?s:Xi,s(y,i)&&e.ref===t.ref)return ua(e,t,c)}return t.flags|=1,e=sa(d,i),e.ref=t.ref,e.return=t,t.child=e}function Wg(e,t,s,i,c){if(e!==null){var d=e.memoizedProps;if(Xi(d,i)&&e.ref===t.ref)if(ot=!1,t.pendingProps=i=d,$f(e,c))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,ua(e,t,c)}return Vf(e,t,s,i,c)}function Jg(e,t,s,i){var c=i.children,d=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(d=d!==null?d.baseLanes|s:s,e!==null){for(i=t.child=e.child,c=0;i!==null;)c=c|i.lanes|i.childLanes,i=i.sibling;i=c&~d}else i=0,t.child=null;return ev(e,t,d,s,i)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Co(t,d!==null?d.cachePool:null),d!==null?ng(t,d):bf(),ag(t);else return i=t.lanes=536870912,ev(e,t,d!==null?d.baseLanes|s:s,s,i)}else d!==null?(Co(t,d.cachePool),ng(t,d),Ga(),t.memoizedState=null):(e!==null&&Co(t,null),bf(),Ga());return Rt(e,t,c,s),t.child}function ll(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ev(e,t,s,i,c){var d=mf();return d=d===null?null:{parent:it._currentValue,pool:d},t.memoizedState={baseLanes:s,cachePool:d},e!==null&&Co(t,null),bf(),ag(t),e!==null&&zr(e,t,i,!0),t.childLanes=c,null}function Qo(e,t){return t=Yo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tv(e,t,s){return Ps(t,e.child,null,s),e=Qo(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function Dw(e,t,s){var i=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(i.mode==="hidden")return e=Qo(t,i),t.lanes=536870912,ll(null,e);if(wf(t),(e=Ke)?(e=hy(e,Sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Hn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},s=Bp(e),s.return=t,t.child=s,wt=t,Ke=null)):e=null,e===null)throw ka(t);return t.lanes=536870912,null}return Qo(t,i)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(wf(t),c)if(t.flags&256)t.flags&=-257,t=tv(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(ot||zr(e,t,s,!1),c=(s&e.childLanes)!==0,ot||c){if(i=Ie,i!==null&&(y=Ym(i,s),y!==0&&y!==d.retryLane))throw d.retryLane=y,Os(e,y),Yt(i,e,y),Qf;ec(),t=tv(e,t,s)}else e=d.treeContext,Ke=jn(y.nextSibling),wt=t,Ae=!0,La=null,Sn=!1,e!==null&&qp(t,e),t=Qo(t,i),t.flags|=4096;return t}return e=sa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vo(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(l(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function Vf(e,t,s,i,c){return ks(t),s=Rf(e,t,s,i,void 0,c),i=Nf(),e!==null&&!ot?(Ef(e,t,c),ua(e,t,c)):(Ae&&i&&sf(t),t.flags|=1,Rt(e,t,s,c),t.child)}function nv(e,t,s,i,c,d){return ks(t),t.updateQueue=null,s=rg(t,i,s,c),sg(e),i=Nf(),e!==null&&!ot?(Ef(e,t,d),ua(e,t,d)):(Ae&&i&&sf(t),t.flags|=1,Rt(e,t,s,d),t.child)}function av(e,t,s,i,c){if(ks(t),t.stateNode===null){var d=Ar,y=s.contextType;typeof y=="object"&&y!==null&&(d=jt(y)),d=new s(i,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=qf,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},gf(t),y=s.contextType,d.context=typeof y=="object"&&y!==null?jt(y):Ar,d.state=t.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(Pf(t,s,y,i),d.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&qf.enqueueReplaceState(d,d.state,null),nl(t,i,d,c),tl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){d=t.stateNode;var j=t.memoizedProps,A=Gs(s,j);d.props=A;var Q=d.context,K=s.contextType;y=Ar,typeof K=="object"&&K!==null&&(y=jt(K));var W=s.getDerivedStateFromProps;K=typeof W=="function"||typeof d.getSnapshotBeforeUpdate=="function",j=t.pendingProps!==j,K||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(j||Q!==y)&&Qg(t,d,i,y),Ba=!1;var V=t.memoizedState;d.state=V,nl(t,i,d,c),tl(),Q=t.memoizedState,j||V!==Q||Ba?(typeof W=="function"&&(Pf(t,s,W,i),Q=t.memoizedState),(A=Ba||Gg(t,s,A,i,V,Q,y))?(K||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=Q),d.props=i,d.state=Q,d.context=y,i=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,vf(e,t),y=t.memoizedProps,K=Gs(s,y),d.props=K,W=t.pendingProps,V=d.context,Q=s.contextType,A=Ar,typeof Q=="object"&&Q!==null&&(A=jt(Q)),j=s.getDerivedStateFromProps,(Q=typeof j=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==W||V!==A)&&Qg(t,d,i,A),Ba=!1,V=t.memoizedState,d.state=V,nl(t,i,d,c),tl();var I=t.memoizedState;y!==W||V!==I||Ba||e!==null&&e.dependencies!==null&&No(e.dependencies)?(typeof j=="function"&&(Pf(t,s,j,i),I=t.memoizedState),(K=Ba||Gg(t,s,K,i,V,I,A)||e!==null&&e.dependencies!==null&&No(e.dependencies))?(Q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,I,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,I,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=I),d.props=i,d.state=I,d.context=A,i=K):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),i=!1)}return d=i,Vo(e,t),i=(t.flags&128)!==0,d||i?(d=t.stateNode,s=i&&typeof s.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&i?(t.child=Ps(t,e.child,null,c),t.child=Ps(t,null,s,c)):Rt(e,t,s,c),t.memoizedState=d.state,e=t.child):e=ua(e,t,c),e}function sv(e,t,s,i){return zs(),t.flags|=256,Rt(e,t,s,i),t.child}var Yf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xf(e){return{baseLanes:e,cachePool:Ip()}}function If(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=ln),e}function rv(e,t,s){var i=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(c?qa(t):Ga(),(e=Ke)?(e=hy(e,Sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Hn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},s=Bp(e),s.return=t,t.child=s,wt=t,Ke=null)):e=null,e===null)throw ka(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}var j=i.children;return i=i.fallback,c?(Ga(),c=t.mode,j=Yo({mode:"hidden",children:j},c),i=Ds(i,c,s,null),j.return=t,i.return=t,j.sibling=i,t.child=j,i=t.child,i.memoizedState=Xf(s),i.childLanes=If(e,y,s),t.memoizedState=Yf,ll(null,i)):(qa(t),Kf(t,j))}var A=e.memoizedState;if(A!==null&&(j=A.dehydrated,j!==null)){if(d)t.flags&256?(qa(t),t.flags&=-257,t=Zf(e,t,s)):t.memoizedState!==null?(Ga(),t.child=e.child,t.flags|=128,t=null):(Ga(),j=i.fallback,c=t.mode,i=Yo({mode:"visible",children:i.children},c),j=Ds(j,c,s,null),j.flags|=2,i.return=t,j.return=t,i.sibling=j,t.child=i,Ps(t,e.child,null,s),i=t.child,i.memoizedState=Xf(s),i.childLanes=If(e,y,s),t.memoizedState=Yf,t=ll(null,i));else if(qa(t),_d(j)){if(y=j.nextSibling&&j.nextSibling.dataset,y)var Q=y.dgst;y=Q,i=Error(l(419)),i.stack="",i.digest=y,Zi({value:i,source:null,stack:null}),t=Zf(e,t,s)}else if(ot||zr(e,t,s,!1),y=(s&e.childLanes)!==0,ot||y){if(y=Ie,y!==null&&(i=Ym(y,s),i!==0&&i!==A.retryLane))throw A.retryLane=i,Os(e,i),Yt(y,e,i),Qf;Td(j)||ec(),t=Zf(e,t,s)}else Td(j)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ke=jn(j.nextSibling),wt=t,Ae=!0,La=null,Sn=!1,e!==null&&qp(t,e),t=Kf(t,i.children),t.flags|=4096);return t}return c?(Ga(),j=i.fallback,c=t.mode,A=e.child,Q=A.sibling,i=sa(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,Q!==null?j=sa(Q,j):(j=Ds(j,c,s,null),j.flags|=2),j.return=t,i.return=t,i.sibling=j,t.child=i,ll(null,i),i=t.child,j=e.child.memoizedState,j===null?j=Xf(s):(c=j.cachePool,c!==null?(A=it._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=Ip(),j={baseLanes:j.baseLanes|s,cachePool:c}),i.memoizedState=j,i.childLanes=If(e,y,s),t.memoizedState=Yf,ll(e.child,i)):(qa(t),s=e.child,e=s.sibling,s=sa(s,{mode:"visible",children:i.children}),s.return=t,s.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=s,t.memoizedState=null,s)}function Kf(e,t){return t=Yo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yo(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function Zf(e,t,s){return Ps(t,e.child,null,s),e=Kf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iv(e,t,s){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),uf(e.return,t,s)}function Ff(e,t,s,i,c,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:s,tailMode:c,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=s,y.tailMode=c,y.treeForkCount=d)}function lv(e,t,s){var i=t.pendingProps,c=i.revealOrder,d=i.tail;i=i.children;var y=st.current,j=(y&2)!==0;if(j?(y=y&1|2,t.flags|=128):y&=1,se(st,y),Rt(e,t,i,s),i=Ae?Ki:0,!j&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&iv(e,s,t);else if(e.tag===19)iv(e,s,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(c){case"forwards":for(s=t.child,c=null;s!==null;)e=s.alternate,e!==null&&Do(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=t.child,t.child=null):(c=s.sibling,s.sibling=null),Ff(t,!1,c,s,d,i);break;case"backwards":case"unstable_legacy-backwards":for(s=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Do(e)===null){t.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}Ff(t,!0,s,null,d,i);break;case"together":Ff(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function ua(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(zr(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,s=sa(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=sa(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function $f(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&No(e)))}function zw(e,t,s){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Ua(t,it,e.memoizedState.cache),zs();break;case 27:case 5:Dt(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Ua(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wf(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(qa(t),t.flags|=128,null):(s&t.child.childLanes)!==0?rv(e,t,s):(qa(t),e=ua(e,t,s),e!==null?e.sibling:null);qa(t);break;case 19:var c=(e.flags&128)!==0;if(i=(s&t.childLanes)!==0,i||(zr(e,t,s,!1),i=(s&t.childLanes)!==0),c){if(i)return lv(e,t,s);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),se(st,st.current),i)break;return null;case 22:return t.lanes=0,Jg(e,t,s,t.pendingProps);case 24:Ua(t,it,e.memoizedState.cache)}return ua(e,t,s)}function ov(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!$f(e,s)&&(t.flags&128)===0)return ot=!1,zw(e,t,s);ot=(e.flags&131072)!==0}else ot=!1,Ae&&(t.flags&1048576)!==0&&Pp(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Bs(t.elementType),t.type=e,typeof e=="function")tf(e)?(i=Gs(e,i),t.tag=1,t=av(null,t,e,i,s)):(t.tag=0,t=Vf(null,t,e,i,s));else{if(e!=null){var c=e.$$typeof;if(c===T){t.tag=11,t=Fg(null,t,e,i,s);break e}else if(c===M){t.tag=14,t=$g(null,t,e,i,s);break e}}throw t=ae(e)||e,Error(l(306,t,""))}}return t;case 0:return Vf(e,t,t.type,t.pendingProps,s);case 1:return i=t.type,c=Gs(i,t.pendingProps),av(e,t,i,c,s);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(l(387));i=t.pendingProps;var d=t.memoizedState;c=d.element,vf(e,t),nl(t,i,null,s);var y=t.memoizedState;if(i=y.cache,Ua(t,it,i),i!==d.cache&&ff(t,[it],s,!0),tl(),i=y.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=sv(e,t,i,s);break e}else if(i!==c){c=yn(Error(l(424)),t),Zi(c),t=sv(e,t,i,s);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(Ke=jn(e.firstChild),wt=t,Ae=!0,La=null,Sn=!0,s=Jp(t,null,i,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(zs(),i===c){t=ua(e,t,s);break e}Rt(e,t,i,s)}t=t.child}return t;case 26:return Vo(e,t),e===null?(s=xy(t.type,null,t.pendingProps,null))?t.memoizedState=s:Ae||(s=t.type,e=t.pendingProps,i=lc(he.current).createElement(s),i[St]=t,i[Ht]=e,Nt(i,s,e),pt(i),t.stateNode=i):t.memoizedState=xy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Dt(t),e===null&&Ae&&(i=t.stateNode=gy(t.type,t.pendingProps,he.current),wt=t,Sn=!0,c=Ke,Fa(t.type)?(Ad=c,Ke=jn(i.firstChild)):Ke=c),Rt(e,t,t.pendingProps.children,s),Vo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((c=i=Ke)&&(i=uj(i,t.type,t.pendingProps,Sn),i!==null?(t.stateNode=i,wt=t,Ke=jn(i.firstChild),Sn=!1,c=!0):c=!1),c||ka(t)),Dt(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,i=d.children,Nd(c,d)?i=null:y!==null&&Nd(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=Rf(e,t,Nw,null,null,s),wl._currentValue=c),Vo(e,t),Rt(e,t,i,s),t.child;case 6:return e===null&&Ae&&((e=s=Ke)&&(s=fj(s,t.pendingProps,Sn),s!==null?(t.stateNode=s,wt=t,Ke=null,e=!0):e=!1),e||ka(t)),null;case 13:return rv(e,t,s);case 4:return Ue(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ps(t,null,i,s):Rt(e,t,i,s),t.child;case 11:return Fg(e,t,t.type,t.pendingProps,s);case 7:return Rt(e,t,t.pendingProps,s),t.child;case 8:return Rt(e,t,t.pendingProps.children,s),t.child;case 12:return Rt(e,t,t.pendingProps.children,s),t.child;case 10:return i=t.pendingProps,Ua(t,t.type,i.value),Rt(e,t,i.children,s),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,ks(t),c=jt(c),i=i(c),t.flags|=1,Rt(e,t,i,s),t.child;case 14:return $g(e,t,t.type,t.pendingProps,s);case 15:return Wg(e,t,t.type,t.pendingProps,s);case 19:return lv(e,t,s);case 31:return Dw(e,t,s);case 22:return Jg(e,t,s,t.pendingProps);case 24:return ks(t),i=jt(it),e===null?(c=mf(),c===null&&(c=Ie,d=df(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=s),c=d),t.memoizedState={parent:i,cache:c},gf(t),Ua(t,it,c)):((e.lanes&s)!==0&&(vf(e,t),nl(t,null,null,s),tl()),c=e.memoizedState,d=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Ua(t,it,i)):(i=d.cache,Ua(t,it,i),i!==c.cache&&ff(t,[it],s,!0))),Rt(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function fa(e){e.flags|=4}function Wf(e,t,s,i,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Lv())e.flags|=8192;else throw Hs=_o,pf}else e.flags&=-16777217}function cv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ry(t))if(Lv())e.flags|=8192;else throw Hs=_o,pf}function Xo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gm():536870912,e.lanes|=t,Xr|=t)}function ol(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,i=0;if(t)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=s,t}function Lw(e,t,s){var i=t.pendingProps;switch(rf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return s=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),la(it),ye(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Dr(t)?fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,of())),Ze(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(fa(t),d!==null?(Ze(t),cv(t,d)):(Ze(t),Wf(t,c,null,i,s))):d?d!==e.memoizedState?(fa(t),Ze(t),cv(t,d)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&fa(t),Ze(t),Wf(t,c,e,i,s)),null;case 27:if(xt(t),s=he.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fa(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Ze(t),null}e=re.current,Dr(t)?Gp(t):(e=gy(c,i,s),t.stateNode=e,fa(t))}return Ze(t),null;case 5:if(xt(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fa(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Ze(t),null}if(d=re.current,Dr(t))Gp(t);else{var y=lc(he.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?y.createElement(c,{is:i.is}):y.createElement(c)}}d[St]=t,d[Ht]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(Nt(d,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&fa(t)}}return Ze(t),Wf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&fa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(l(166));if(e=he.current,Dr(t)){if(e=t.stateNode,s=t.memoizedProps,i=null,c=wt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[St]=t,e=!!(e.nodeValue===s||i!==null&&i.suppressHydrationWarning===!0||ry(e.nodeValue,s)),e||ka(t,!0)}else e=lc(e).createTextNode(i),e[St]=t,t.stateNode=e}return Ze(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(i=Dr(t),s!==null){if(e===null){if(!i)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[St]=t}else zs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else s=of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Dr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(l(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[St]=t}else zs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),c=!1}else c=of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=s,t):(s=i!==null,e=e!==null&&e.memoizedState!==null,s&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==c&&(i.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),Xo(t,t.updateQueue),Ze(t),null);case 4:return ye(),e===null&&bd(t.stateNode.containerInfo),Ze(t),null;case 10:return la(t.type),Ze(t),null;case 19:if(Z(st),i=t.memoizedState,i===null)return Ze(t),null;if(c=(t.flags&128)!==0,d=i.rendering,d===null)if(c)ol(i,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Do(e),d!==null){for(t.flags|=128,ol(i,!1),e=d.updateQueue,t.updateQueue=e,Xo(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Up(s,e),s=s.sibling;return se(st,st.current&1|2),Ae&&ra(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&_t()>$o&&(t.flags|=128,c=!0,ol(i,!1),t.lanes=4194304)}else{if(!c)if(e=Do(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Xo(t,e),ol(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ae)return Ze(t),null}else 2*_t()-i.renderingStartTime>$o&&s!==536870912&&(t.flags|=128,c=!0,ol(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=_t(),e.sibling=null,s=st.current,se(st,c?s&1|2:s&1),Ae&&ra(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return sn(t),Sf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(s&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),s=t.updateQueue,s!==null&&Xo(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==s&&(t.flags|=2048),e!==null&&Z(Us),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),la(it),Ze(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function kw(e,t){switch(rf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return la(it),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xt(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error(l(340));zs()}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(l(340));zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(st),null;case 4:return ye(),null;case 10:return la(t.type),null;case 22:case 23:return sn(t),Sf(),e!==null&&Z(Us),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return la(it),null;case 25:return null;default:return null}}function uv(e,t){switch(rf(t),t.tag){case 3:la(it),ye();break;case 26:case 27:case 5:xt(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:Z(st);break;case 10:la(t.type);break;case 22:case 23:sn(t),Sf(),e!==null&&Z(Us);break;case 24:la(it)}}function cl(e,t){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var c=i.next;s=c;do{if((s.tag&e)===e){i=void 0;var d=s.create,y=s.inst;i=d(),y.destroy=i}s=s.next}while(s!==c)}}catch(j){Ge(t,t.return,j)}}function Qa(e,t,s){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var d=c.next;i=d;do{if((i.tag&e)===e){var y=i.inst,j=y.destroy;if(j!==void 0){y.destroy=void 0,c=t;var A=s,Q=j;try{Q()}catch(K){Ge(c,A,K)}}}i=i.next}while(i!==d)}}catch(K){Ge(t,t.return,K)}}function fv(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{tg(t,s)}catch(i){Ge(e,e.return,i)}}}function dv(e,t,s){s.props=Gs(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(i){Ge(e,t,i)}}function ul(e,t){try{var s=e.ref;if(s!==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 s=="function"?e.refCleanup=s(i):s.current=i}}catch(c){Ge(e,t,c)}}function qn(e,t){var s=e.ref,i=e.refCleanup;if(s!==null)if(typeof i=="function")try{i()}catch(c){Ge(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Ge(e,t,c)}else s.current=null}function hv(e){var t=e.type,s=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&i.focus();break e;case"img":s.src?i.src=s.src:s.srcSet&&(i.srcset=s.srcSet)}}catch(c){Ge(e,e.return,c)}}function Jf(e,t,s){try{var i=e.stateNode;sj(i,e.type,s,t),i[Ht]=t}catch(c){Ge(e,e.return,c)}}function mv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Fa(e.type)||e.tag===4}function ed(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mv(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&&Fa(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 td(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=na));else if(i!==4&&(i===27&&Fa(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(td(e,t,s),e=e.sibling;e!==null;)td(e,t,s),e=e.sibling}function Io(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(i!==4&&(i===27&&Fa(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(Io(e,t,s),e=e.sibling;e!==null;)Io(e,t,s),e=e.sibling}function pv(e){var t=e.stateNode,s=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Nt(t,i,s),t[St]=e,t[Ht]=s}catch(d){Ge(e,e.return,d)}}var da=!1,ct=!1,nd=!1,gv=typeof WeakSet=="function"?WeakSet:Set,gt=null;function Uw(e,t){if(e=e.containerInfo,jd=mc,e=Tp(e),Ku(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var i=s.getSelection&&s.getSelection();if(i&&i.rangeCount!==0){s=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var y=0,j=-1,A=-1,Q=0,K=0,W=e,V=null;t:for(;;){for(var I;W!==s||c!==0&&W.nodeType!==3||(j=y+c),W!==d||i!==0&&W.nodeType!==3||(A=y+i),W.nodeType===3&&(y+=W.nodeValue.length),(I=W.firstChild)!==null;)V=W,W=I;for(;;){if(W===e)break t;if(V===s&&++Q===c&&(j=y),V===d&&++K===i&&(A=y),(I=W.nextSibling)!==null)break;W=V,V=W.parentNode}W=I}s=j===-1||A===-1?null:{start:j,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(Rd={focusedElem:e,selectionRange:s},mc=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,d=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(s=0;s<e.length;s++)c=e[s],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,s=t,c=d.memoizedProps,d=d.memoizedState,i=s.stateNode;try{var ue=Gs(s.type,c);e=i.getSnapshotBeforeUpdate(ue,d),i.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Ge(s,s.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)Cd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cd(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function vv(e,t,s){var i=s.flags;switch(s.tag){case 0:case 11:case 15:ma(e,s),i&4&&cl(5,s);break;case 1:if(ma(e,s),i&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(y){Ge(s,s.return,y)}else{var c=Gs(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Ge(s,s.return,y)}}i&64&&fv(s),i&512&&ul(s,s.return);break;case 3:if(ma(e,s),i&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{tg(e,t)}catch(y){Ge(s,s.return,y)}}break;case 27:t===null&&i&4&&pv(s);case 26:case 5:ma(e,s),t===null&&i&4&&hv(s),i&512&&ul(s,s.return);break;case 12:ma(e,s);break;case 31:ma(e,s),i&4&&bv(e,s);break;case 13:ma(e,s),i&4&&Sv(e,s),i&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Xw.bind(null,s),dj(e,s))));break;case 22:if(i=s.memoizedState!==null||da,!i){t=t!==null&&t.memoizedState!==null||ct,c=da;var d=ct;da=i,(ct=t)&&!d?pa(e,s,(s.subtreeFlags&8772)!==0):ma(e,s),da=c,ct=d}break;case 30:break;default:ma(e,s)}}function yv(e){var t=e.alternate;t!==null&&(e.alternate=null,yv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Mu(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 Fe=null,qt=!1;function ha(e,t,s){for(s=s.child;s!==null;)xv(e,t,s),s=s.sibling}function xv(e,t,s){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(zi,s)}catch{}switch(s.tag){case 26:ct||qn(s,t),ha(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ct||qn(s,t);var i=Fe,c=qt;Fa(s.type)&&(Fe=s.stateNode,qt=!1),ha(e,t,s),xl(s.stateNode),Fe=i,qt=c;break;case 5:ct||qn(s,t);case 6:if(i=Fe,c=qt,Fe=null,ha(e,t,s),Fe=i,qt=c,Fe!==null)if(qt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(s.stateNode)}catch(d){Ge(s,t,d)}else try{Fe.removeChild(s.stateNode)}catch(d){Ge(s,t,d)}break;case 18:Fe!==null&&(qt?(e=Fe,fy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),ei(e)):fy(Fe,s.stateNode));break;case 4:i=Fe,c=qt,Fe=s.stateNode.containerInfo,qt=!0,ha(e,t,s),Fe=i,qt=c;break;case 0:case 11:case 14:case 15:Qa(2,s,t),ct||Qa(4,s,t),ha(e,t,s);break;case 1:ct||(qn(s,t),i=s.stateNode,typeof i.componentWillUnmount=="function"&&dv(s,t,i)),ha(e,t,s);break;case 21:ha(e,t,s);break;case 22:ct=(i=ct)||s.memoizedState!==null,ha(e,t,s),ct=i;break;default:ha(e,t,s)}}function bv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ei(e)}catch(s){Ge(t,t.return,s)}}}function Sv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ei(e)}catch(s){Ge(t,t.return,s)}}function Bw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gv),t;default:throw Error(l(435,e.tag))}}function Ko(e,t){var s=Bw(e);t.forEach(function(i){if(!s.has(i)){s.add(i);var c=Iw.bind(null,e,i);i.then(c,c)}})}function Gt(e,t){var s=t.deletions;if(s!==null)for(var i=0;i<s.length;i++){var c=s[i],d=e,y=t,j=y;e:for(;j!==null;){switch(j.tag){case 27:if(Fa(j.type)){Fe=j.stateNode,qt=!1;break e}break;case 5:Fe=j.stateNode,qt=!1;break e;case 3:case 4:Fe=j.stateNode.containerInfo,qt=!0;break e}j=j.return}if(Fe===null)throw Error(l(160));xv(d,y,c),Fe=null,qt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wv(t,e),t=t.sibling}var An=null;function wv(e,t){var s=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),Qt(e),i&4&&(Qa(3,e,e.return),cl(3,e),Qa(5,e,e.return));break;case 1:Gt(t,e),Qt(e),i&512&&(ct||s===null||qn(s,s.return)),i&64&&da&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?i:s.concat(i))));break;case 26:var c=An;if(Gt(t,e),Qt(e),i&512&&(ct||s===null||qn(s,s.return)),i&4){var d=s!==null?s.memoizedState:null;if(i=e.memoizedState,s===null)if(i===null)if(e.stateNode===null){e:{i=e.type,s=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Ui]||d[St]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(i),c.head.insertBefore(d,c.querySelector("head > title"))),Nt(d,i,s),d[St]=e,pt(d),i=d;break e;case"link":var y=wy("link","href",c).get(i+(s.href||""));if(y){for(var j=0;j<y.length;j++)if(d=y[j],d.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&d.getAttribute("rel")===(s.rel==null?null:s.rel)&&d.getAttribute("title")===(s.title==null?null:s.title)&&d.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){y.splice(j,1);break t}}d=c.createElement(i),Nt(d,i,s),c.head.appendChild(d);break;case"meta":if(y=wy("meta","content",c).get(i+(s.content||""))){for(j=0;j<y.length;j++)if(d=y[j],d.getAttribute("content")===(s.content==null?null:""+s.content)&&d.getAttribute("name")===(s.name==null?null:s.name)&&d.getAttribute("property")===(s.property==null?null:s.property)&&d.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&d.getAttribute("charset")===(s.charSet==null?null:s.charSet)){y.splice(j,1);break t}}d=c.createElement(i),Nt(d,i,s),c.head.appendChild(d);break;default:throw Error(l(468,i))}d[St]=e,pt(d),i=d}e.stateNode=i}else jy(c,e.type,e.stateNode);else e.stateNode=Sy(c,i,e.memoizedProps);else d!==i?(d===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):d.count--,i===null?jy(c,e.type,e.stateNode):Sy(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Jf(e,e.memoizedProps,s.memoizedProps)}break;case 27:Gt(t,e),Qt(e),i&512&&(ct||s===null||qn(s,s.return)),s!==null&&i&4&&Jf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Gt(t,e),Qt(e),i&512&&(ct||s===null||qn(s,s.return)),e.flags&32){c=e.stateNode;try{jr(c,"")}catch(ue){Ge(e,e.return,ue)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,Jf(e,c,s!==null?s.memoizedProps:c)),i&1024&&(nd=!0);break;case 6:if(Gt(t,e),Qt(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,s=e.stateNode;try{s.nodeValue=i}catch(ue){Ge(e,e.return,ue)}}break;case 3:if(uc=null,c=An,An=oc(t.containerInfo),Gt(t,e),An=c,Qt(e),i&4&&s!==null&&s.memoizedState.isDehydrated)try{ei(t.containerInfo)}catch(ue){Ge(e,e.return,ue)}nd&&(nd=!1,jv(e));break;case 4:i=An,An=oc(e.stateNode.containerInfo),Gt(t,e),Qt(e),An=i;break;case 12:Gt(t,e),Qt(e);break;case 31:Gt(t,e),Qt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 13:Gt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Fo=_t()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 22:c=e.memoizedState!==null;var A=s!==null&&s.memoizedState!==null,Q=da,K=ct;if(da=Q||c,ct=K||A,Gt(t,e),ct=K,da=Q,Qt(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(s===null||A||da||ct||Qs(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){A=s=t;try{if(d=A.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{j=A.stateNode;var W=A.memoizedProps.style,V=W!=null&&W.hasOwnProperty("display")?W.display:null;j.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ue){Ge(A,A.return,ue)}}}else if(t.tag===6){if(s===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(ue){Ge(A,A.return,ue)}}}else if(t.tag===18){if(s===null){A=t;try{var I=A.stateNode;c?dy(I,!0):dy(A.stateNode,!1)}catch(ue){Ge(A,A.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(s=i.retryQueue,s!==null&&(i.retryQueue=null,Ko(e,s))));break;case 19:Gt(t,e),Qt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 30:break;case 21:break;default:Gt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var s,i=e.return;i!==null;){if(mv(i)){s=i;break}i=i.return}if(s==null)throw Error(l(160));switch(s.tag){case 27:var c=s.stateNode,d=ed(e);Io(e,d,c);break;case 5:var y=s.stateNode;s.flags&32&&(jr(y,""),s.flags&=-33);var j=ed(e);Io(e,j,y);break;case 3:case 4:var A=s.stateNode.containerInfo,Q=ed(e);td(e,Q,A);break;default:throw Error(l(161))}}catch(K){Ge(e,e.return,K)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vv(e,t.alternate,t),t=t.sibling}function Qs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qa(4,t,t.return),Qs(t);break;case 1:qn(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&dv(t,t.return,s),Qs(t);break;case 27:xl(t.stateNode);case 26:case 5:qn(t,t.return),Qs(t);break;case 22:t.memoizedState===null&&Qs(t);break;case 30:Qs(t);break;default:Qs(t)}e=e.sibling}}function pa(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:pa(c,d,s),cl(4,d);break;case 1:if(pa(c,d,s),i=d,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(Q){Ge(i,i.return,Q)}if(i=d,c=i.updateQueue,c!==null){var j=i.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)eg(A[c],j)}catch(Q){Ge(i,i.return,Q)}}s&&y&64&&fv(d),ul(d,d.return);break;case 27:pv(d);case 26:case 5:pa(c,d,s),s&&i===null&&y&4&&hv(d),ul(d,d.return);break;case 12:pa(c,d,s);break;case 31:pa(c,d,s),s&&y&4&&bv(c,d);break;case 13:pa(c,d,s),s&&y&4&&Sv(c,d);break;case 22:d.memoizedState===null&&pa(c,d,s),ul(d,d.return);break;case 30:break;default:pa(c,d,s)}t=t.sibling}}function ad(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Fi(s))}function sd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fi(e))}function Mn(e,t,s,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rv(e,t,s,i),t=t.sibling}function Rv(e,t,s,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Mn(e,t,s,i),c&2048&&cl(9,t);break;case 1:Mn(e,t,s,i);break;case 3:Mn(e,t,s,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fi(e)));break;case 12:if(c&2048){Mn(e,t,s,i),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,j=d.onPostCommit;typeof j=="function"&&j(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Ge(t,t.return,A)}}else Mn(e,t,s,i);break;case 31:Mn(e,t,s,i);break;case 13:Mn(e,t,s,i);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?Mn(e,t,s,i):fl(e,t):d._visibility&2?Mn(e,t,s,i):(d._visibility|=2,Qr(e,t,s,i,(t.subtreeFlags&10256)!==0||!1)),c&2048&&ad(y,t);break;case 24:Mn(e,t,s,i),c&2048&&sd(t.alternate,t);break;default:Mn(e,t,s,i)}}function Qr(e,t,s,i,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,j=s,A=i,Q=y.flags;switch(y.tag){case 0:case 11:case 15:Qr(d,y,j,A,c),cl(8,y);break;case 23:break;case 22:var K=y.stateNode;y.memoizedState!==null?K._visibility&2?Qr(d,y,j,A,c):fl(d,y):(K._visibility|=2,Qr(d,y,j,A,c)),c&&Q&2048&&ad(y.alternate,y);break;case 24:Qr(d,y,j,A,c),c&&Q&2048&&sd(y.alternate,y);break;default:Qr(d,y,j,A,c)}t=t.sibling}}function fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,i=t,c=i.flags;switch(i.tag){case 22:fl(s,i),c&2048&&ad(i.alternate,i);break;case 24:fl(s,i),c&2048&&sd(i.alternate,i);break;default:fl(s,i)}t=t.sibling}}var dl=8192;function Vr(e,t,s){if(e.subtreeFlags&dl)for(e=e.child;e!==null;)Nv(e,t,s),e=e.sibling}function Nv(e,t,s){switch(e.tag){case 26:Vr(e,t,s),e.flags&dl&&e.memoizedState!==null&&Rj(s,An,e.memoizedState,e.memoizedProps);break;case 5:Vr(e,t,s);break;case 3:case 4:var i=An;An=oc(e.stateNode.containerInfo),Vr(e,t,s),An=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=dl,dl=16777216,Vr(e,t,s),dl=i):Vr(e,t,s));break;default:Vr(e,t,s)}}function Ev(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 hl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];gt=i,Tv(i,e)}Ev(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cv(e),e=e.sibling}function Cv(e){switch(e.tag){case 0:case 11:case 15:hl(e),e.flags&2048&&Qa(9,e,e.return);break;case 3:hl(e);break;case 12:hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zo(e)):hl(e);break;default:hl(e)}}function Zo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];gt=i,Tv(i,e)}Ev(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qa(8,t,t.return),Zo(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,Zo(t));break;default:Zo(t)}e=e.sibling}}function Tv(e,t){for(;gt!==null;){var s=gt;switch(s.tag){case 0:case 11:case 15:Qa(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var i=s.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Fi(s.memoizedState.cache)}if(i=s.child,i!==null)i.return=s,gt=i;else e:for(s=e;gt!==null;){i=gt;var c=i.sibling,d=i.return;if(yv(i),i===s){gt=null;break e}if(c!==null){c.return=d,gt=c;break e}gt=d}}}var Hw={getCacheForType:function(e){var t=jt(it),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return jt(it).controller.signal}},Pw=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ie=null,Re=null,Ee=0,qe=0,rn=null,Va=!1,Yr=!1,rd=!1,ga=0,et=0,Ya=0,Vs=0,id=0,ln=0,Xr=0,ml=null,Vt=null,ld=!1,Fo=0,_v=0,$o=1/0,Wo=null,Xa=null,ft=0,Ia=null,Ir=null,va=0,od=0,cd=null,Av=null,pl=0,ud=null;function on(){return(Be&2)!==0&&Ee!==0?Ee&-Ee:B.T!==null?gd():Xm()}function Mv(){if(ln===0)if((Ee&536870912)===0||Ae){var e=ro;ro<<=1,(ro&3932160)===0&&(ro=262144),ln=e}else ln=536870912;return e=an.current,e!==null&&(e.flags|=32),ln}function Yt(e,t,s){(e===Ie&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(Kr(e,0),Ka(e,Ee,ln,!1)),ki(e,s),((Be&2)===0||e!==Ie)&&(e===Ie&&((Be&2)===0&&(Vs|=s),et===4&&Ka(e,Ee,ln,!1)),Gn(e))}function Ov(e,t,s){if((Be&6)!==0)throw Error(l(327));var i=!s&&(t&127)===0&&(t&e.expiredLanes)===0||Li(e,t),c=i?Qw(e,t):dd(e,t,!0),d=i;do{if(c===0){Yr&&!i&&Ka(e,t,0,!1);break}else{if(s=e.current.alternate,d&&!qw(s)){c=dd(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var j=e;c=ml;var A=j.current.memoizedState.isDehydrated;if(A&&(Kr(j,y).flags|=256),y=dd(j,y,!1),y!==2){if(rd&&!A){j.errorRecoveryDisabledLanes|=d,Vs|=d,c=4;break e}d=Vt,Vt=c,d!==null&&(Vt===null?Vt=d:Vt.push.apply(Vt,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){Kr(e,0),Ka(e,t,0,!0);break}e:{switch(i=e,d=c,d){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ka(i,t,ln,!Va);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(c=Fo+300-_t(),10<c)){if(Ka(i,t,ln,!Va),lo(i,0,!0)!==0)break e;va=t,i.timeoutHandle=cy(Dv.bind(null,i,s,Vt,Wo,ld,t,ln,Vs,Xr,Va,d,"Throttled",-0,0),c);break e}Dv(i,s,Vt,Wo,ld,t,ln,Vs,Xr,Va,d,null,-0,0)}}break}while(!0);Gn(e)}function Dv(e,t,s,i,c,d,y,j,A,Q,K,W,V,I){if(e.timeoutHandle=-1,W=t.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},Nv(t,d,W);var ue=(d&62914560)===d?Fo-_t():(d&4194048)===d?_v-_t():0;if(ue=Nj(W,ue),ue!==null){va=d,e.cancelPendingCommit=ue(qv.bind(null,e,t,d,s,i,c,y,j,A,K,W,null,V,I)),Ka(e,d,y,!Q);return}}qv(e,t,d,s,i,c,y,j,A)}function qw(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var i=0;i<s.length;i++){var c=s[i],d=c.getSnapshot;c=c.value;try{if(!tn(d(),c))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;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 Ka(e,t,s,i){t&=~id,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var d=31-en(c),y=1<<d;i[d]=-1,c&=~y}s!==0&&Qm(e,s,t)}function Jo(){return(Be&6)===0?(gl(0),!1):!0}function fd(){if(Re!==null){if(qe===0)var e=Re.return;else e=Re,ia=Ls=null,Cf(e),Br=null,Wi=0,e=Re;for(;e!==null;)uv(e.alternate,e),e=e.return;Re=null}}function Kr(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,lj(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),va=0,fd(),Ie=e,Re=s=sa(e.current,null),Ee=t,qe=0,rn=null,Va=!1,Yr=Li(e,t),rd=!1,Xr=ln=id=Vs=Ya=et=0,Vt=ml=null,ld=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-en(i),d=1<<c;t|=e[c],i&=~d}return ga=t,bo(),s}function zv(e,t){be=null,B.H=il,t===Ur||t===To?(t=Fp(),qe=3):t===pf?(t=Fp(),qe=4):qe=t===Qf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,Re===null&&(et=1,Go(e,yn(t,e.current)))}function Lv(){var e=an.current;return e===null?!0:(Ee&4194048)===Ee?wn===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===wn:!1}function kv(){var e=B.H;return B.H=il,e===null?il:e}function Uv(){var e=B.A;return B.A=Hw,e}function ec(){et=4,Va||(Ee&4194048)!==Ee&&an.current!==null||(Yr=!0),(Ya&134217727)===0&&(Vs&134217727)===0||Ie===null||Ka(Ie,Ee,ln,!1)}function dd(e,t,s){var i=Be;Be|=2;var c=kv(),d=Uv();(Ie!==e||Ee!==t)&&(Wo=null,Kr(e,t)),t=!1;var y=et;e:do try{if(qe!==0&&Re!==null){var j=Re,A=rn;switch(qe){case 8:fd(),y=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var Q=qe;if(qe=0,rn=null,Zr(e,j,A,Q),s&&Yr){y=0;break e}break;default:Q=qe,qe=0,rn=null,Zr(e,j,A,Q)}}Gw(),y=et;break}catch(K){zv(e,K)}while(!0);return t&&e.shellSuspendCounter++,ia=Ls=null,Be=i,B.H=c,B.A=d,Re===null&&(Ie=null,Ee=0,bo()),y}function Gw(){for(;Re!==null;)Bv(Re)}function Qw(e,t){var s=Be;Be|=2;var i=kv(),c=Uv();Ie!==e||Ee!==t?(Wo=null,$o=_t()+500,Kr(e,t)):Yr=Li(e,t);e:do try{if(qe!==0&&Re!==null){t=Re;var d=rn;t:switch(qe){case 1:qe=0,rn=null,Zr(e,t,d,1);break;case 2:case 9:if(Kp(d)){qe=0,rn=null,Hv(t);break}t=function(){qe!==2&&qe!==9||Ie!==e||(qe=7),Gn(e)},d.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Kp(d)?(qe=0,rn=null,Hv(t)):(qe=0,rn=null,Zr(e,t,d,7));break;case 5:var y=null;switch(Re.tag){case 26:y=Re.memoizedState;case 5:case 27:var j=Re;if(y?Ry(y):j.stateNode.complete){qe=0,rn=null;var A=j.sibling;if(A!==null)Re=A;else{var Q=j.return;Q!==null?(Re=Q,tc(Q)):Re=null}break t}}qe=0,rn=null,Zr(e,t,d,5);break;case 6:qe=0,rn=null,Zr(e,t,d,6);break;case 8:fd(),et=6;break e;default:throw Error(l(462))}}Vw();break}catch(K){zv(e,K)}while(!0);return ia=Ls=null,B.H=i,B.A=c,Be=s,Re!==null?0:(Ie=null,Ee=0,bo(),et)}function Vw(){for(;Re!==null&&!ao();)Bv(Re)}function Bv(e){var t=ov(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?tc(e):Re=t}function Hv(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=nv(s,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=nv(s,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Cf(t);default:uv(s,t),t=Re=Up(t,ga),t=ov(s,t,ga)}e.memoizedProps=e.pendingProps,t===null?tc(e):Re=t}function Zr(e,t,s,i){ia=Ls=null,Cf(t),Br=null,Wi=0;var c=t.return;try{if(Ow(e,c,t,s,Ee)){et=1,Go(e,yn(s,e.current)),Re=null;return}}catch(d){if(c!==null)throw Re=c,d;et=1,Go(e,yn(s,e.current)),Re=null;return}t.flags&32768?(Ae||i===1?e=!0:Yr||(Ee&536870912)!==0?e=!1:(Va=e=!0,(i===2||i===9||i===3||i===6)&&(i=an.current,i!==null&&i.tag===13&&(i.flags|=16384))),Pv(t,e)):tc(t)}function tc(e){var t=e;do{if((t.flags&32768)!==0){Pv(t,Va);return}e=t.return;var s=Lw(t.alternate,t,ga);if(s!==null){Re=s;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);et===0&&(et=5)}function Pv(e,t){do{var s=kw(e.alternate,e);if(s!==null){s.flags&=32767,Re=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=s}while(e!==null);et=6,Re=null}function qv(e,t,s,i,c,d,y,j,A){e.cancelPendingCommit=null;do nc();while(ft!==0);if((Be&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(d=t.lanes|t.childLanes,d|=Ju,jS(e,s,d,y,j,A),e===Ie&&(Re=Ie=null,Ee=0),Ir=t,Ia=e,va=s,od=d,cd=c,Av=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Kw(gr,function(){return Xv(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=B.T,B.T=null,c=X.p,X.p=2,y=Be,Be|=4;try{Uw(e,t,s)}finally{Be=y,X.p=c,B.T=i}}ft=1,Gv(),Qv(),Vv()}}function Gv(){if(ft===1){ft=0;var e=Ia,t=Ir,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null;var i=X.p;X.p=2;var c=Be;Be|=4;try{wv(t,e);var d=Rd,y=Tp(e.containerInfo),j=d.focusedElem,A=d.selectionRange;if(y!==j&&j&&j.ownerDocument&&Cp(j.ownerDocument.documentElement,j)){if(A!==null&&Ku(j)){var Q=A.start,K=A.end;if(K===void 0&&(K=Q),"selectionStart"in j)j.selectionStart=Q,j.selectionEnd=Math.min(K,j.value.length);else{var W=j.ownerDocument||document,V=W&&W.defaultView||window;if(V.getSelection){var I=V.getSelection(),ue=j.textContent.length,ve=Math.min(A.start,ue),Xe=A.end===void 0?ve:Math.min(A.end,ue);!I.extend&&ve>Xe&&(y=Xe,Xe=ve,ve=y);var H=Ep(j,ve),z=Ep(j,Xe);if(H&&z&&(I.rangeCount!==1||I.anchorNode!==H.node||I.anchorOffset!==H.offset||I.focusNode!==z.node||I.focusOffset!==z.offset)){var G=W.createRange();G.setStart(H.node,H.offset),I.removeAllRanges(),ve>Xe?(I.addRange(G),I.extend(z.node,z.offset)):(G.setEnd(z.node,z.offset),I.addRange(G))}}}}for(W=[],I=j;I=I.parentNode;)I.nodeType===1&&W.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<W.length;j++){var F=W[j];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}mc=!!jd,Rd=jd=null}finally{Be=c,X.p=i,B.T=s}}e.current=t,ft=2}}function Qv(){if(ft===2){ft=0;var e=Ia,t=Ir,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=B.T,B.T=null;var i=X.p;X.p=2;var c=Be;Be|=4;try{vv(e,t.alternate,t)}finally{Be=c,X.p=i,B.T=s}}ft=3}}function Vv(){if(ft===4||ft===3){ft=0,Eu();var e=Ia,t=Ir,s=va,i=Av;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,Ir=Ia=null,Yv(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Xa=null),_u(s),t=t.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(zi,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=B.T,c=X.p,X.p=2,B.T=null;try{for(var d=e.onRecoverableError,y=0;y<i.length;y++){var j=i[y];d(j.value,{componentStack:j.stack})}}finally{B.T=t,X.p=c}}(va&3)!==0&&nc(),Gn(e),c=e.pendingLanes,(s&261930)!==0&&(c&42)!==0?e===ud?pl++:(pl=0,ud=e):pl=0,gl(0)}}function Yv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fi(t)))}function nc(){return Gv(),Qv(),Vv(),Xv()}function Xv(){if(ft!==5)return!1;var e=Ia,t=od;od=0;var s=_u(va),i=B.T,c=X.p;try{X.p=32>s?32:s,B.T=null,s=cd,cd=null;var d=Ia,y=va;if(ft=0,Ir=Ia=null,va=0,(Be&6)!==0)throw Error(l(331));var j=Be;if(Be|=4,Cv(d.current),Rv(d,d.current,y,s),Be=j,gl(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(zi,d)}catch{}return!0}finally{X.p=c,B.T=i,Yv(e,t)}}function Iv(e,t,s){t=yn(s,t),t=Gf(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(ki(e,2),Gn(e))}function Ge(e,t,s){if(e.tag===3)Iv(e,e,s);else for(;t!==null;){if(t.tag===3){Iv(t,e,s);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Xa===null||!Xa.has(i))){e=yn(s,e),s=Kg(2),i=Pa(t,s,2),i!==null&&(Zg(s,i,t,e),ki(i,2),Gn(i));break}}t=t.return}}function hd(e,t,s){var i=e.pingCache;if(i===null){i=e.pingCache=new Pw;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(s)||(rd=!0,c.add(s),e=Yw.bind(null,e,t,s),t.then(e,e))}function Yw(e,t,s){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ie===e&&(Ee&s)===s&&(et===4||et===3&&(Ee&62914560)===Ee&&300>_t()-Fo?(Be&2)===0&&Kr(e,0):id|=s,Xr===Ee&&(Xr=0)),Gn(e)}function Kv(e,t){t===0&&(t=Gm()),e=Os(e,t),e!==null&&(ki(e,t),Gn(e))}function Xw(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Kv(e,s)}function Iw(e,t){var s=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(t),Kv(e,s)}function Kw(e,t){return Tn(e,t)}var ac=null,Fr=null,md=!1,sc=!1,pd=!1,Za=0;function Gn(e){e!==Fr&&e.next===null&&(Fr===null?ac=Fr=e:Fr=Fr.next=e),sc=!0,md||(md=!0,Fw())}function gl(e,t){if(!pd&&sc){pd=!0;do for(var s=!1,i=ac;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var d=0;else{var y=i.suspendedLanes,j=i.pingedLanes;d=(1<<31-en(42|e)+1)-1,d&=c&~(y&~j),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,Wv(i,d))}else d=Ee,d=lo(i,i===Ie?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||Li(i,d)||(s=!0,Wv(i,d));i=i.next}while(s);pd=!1}}function Zw(){Zv()}function Zv(){sc=md=!1;var e=0;Za!==0&&ij()&&(e=Za);for(var t=_t(),s=null,i=ac;i!==null;){var c=i.next,d=Fv(i,t);d===0?(i.next=null,s===null?ac=c:s.next=c,c===null&&(Fr=s)):(s=i,(e!==0||(d&3)!==0)&&(sc=!0)),i=c}ft!==0&&ft!==5||gl(e),Za!==0&&(Za=0)}function Fv(e,t){for(var s=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-en(d),j=1<<y,A=c[y];A===-1?((j&s)===0||(j&i)!==0)&&(c[y]=wS(j,t)):A<=t&&(e.expiredLanes|=j),d&=~j}if(t=Ie,s=Ee,s=lo(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,s===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Di(i),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Li(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(i!==null&&Di(i),_u(s)){case 2:case 8:s=Bn;break;case 32:s=gr;break;case 268435456:s=qm;break;default:s=gr}return i=$v.bind(null,e),s=Tn(s,i),e.callbackPriority=t,e.callbackNode=s,t}return i!==null&&i!==null&&Di(i),e.callbackPriority=2,e.callbackNode=null,2}function $v(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(nc()&&e.callbackNode!==s)return null;var i=Ee;return i=lo(e,e===Ie?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Ov(e,i,t),Fv(e,_t()),e.callbackNode!=null&&e.callbackNode===s?$v.bind(null,e):null)}function Wv(e,t){if(nc())return null;Ov(e,t,!0)}function Fw(){oj(function(){(Be&6)!==0?Tn(bt,Zw):Zv()})}function gd(){if(Za===0){var e=Lr;e===0&&(e=so,so<<=1,(so&261888)===0&&(so=256)),Za=e}return Za}function Jv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fo(""+e)}function ey(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function $w(e,t,s,i,c){if(t==="submit"&&s&&s.stateNode===c){var d=Jv((c[Ht]||null).action),y=i.submitter;y&&(t=(t=y[Ht]||null)?Jv(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var j=new go("action","action",null,i,c);e.push({event:j,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Za!==0){var A=y?ey(c,y):new FormData(c);kf(s,{pending:!0,data:A,method:c.method,action:d},null,A)}}else typeof d=="function"&&(j.preventDefault(),A=y?ey(c,y):new FormData(c),kf(s,{pending:!0,data:A,method:c.method,action:d},d,A))},currentTarget:c}]})}}for(var vd=0;vd<Wu.length;vd++){var yd=Wu[vd],Ww=yd.toLowerCase(),Jw=yd[0].toUpperCase()+yd.slice(1);_n(Ww,"on"+Jw)}_n(Mp,"onAnimationEnd"),_n(Op,"onAnimationIteration"),_n(Dp,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(pw,"onTransitionRun"),_n(gw,"onTransitionStart"),_n(vw,"onTransitionCancel"),_n(zp,"onTransitionEnd"),Sr("onMouseEnter",["mouseout","mouseover"]),Sr("onMouseLeave",["mouseout","mouseover"]),Sr("onPointerEnter",["pointerout","pointerover"]),Sr("onPointerLeave",["pointerout","pointerover"]),Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vl="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(" "),ej=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vl));function ty(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var i=e[s],c=i.event;i=i.listeners;e:{var d=void 0;if(t)for(var y=i.length-1;0<=y;y--){var j=i[y],A=j.instance,Q=j.currentTarget;if(j=j.listener,A!==d&&c.isPropagationStopped())break e;d=j,c.currentTarget=Q;try{d(c)}catch(K){xo(K)}c.currentTarget=null,d=A}else for(y=0;y<i.length;y++){if(j=i[y],A=j.instance,Q=j.currentTarget,j=j.listener,A!==d&&c.isPropagationStopped())break e;d=j,c.currentTarget=Q;try{d(c)}catch(K){xo(K)}c.currentTarget=null,d=A}}}}function Ne(e,t){var s=t[Au];s===void 0&&(s=t[Au]=new Set);var i=e+"__bubble";s.has(i)||(ny(t,e,2,!1),s.add(i))}function xd(e,t,s){var i=0;t&&(i|=4),ny(s,e,i,t)}var rc="_reactListening"+Math.random().toString(36).slice(2);function bd(e){if(!e[rc]){e[rc]=!0,Zm.forEach(function(s){s!=="selectionchange"&&(ej.has(s)||xd(s,!1,e),xd(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rc]||(t[rc]=!0,xd("selectionchange",!1,t))}}function ny(e,t,s,i){switch(My(t)){case 2:var c=Tj;break;case 8:c=_j;break;default:c=Ld}s=c.bind(null,t,s,e),c=void 0,!Hu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,s,{capture:!0,passive:c}):e.addEventListener(t,s,!0):c!==void 0?e.addEventListener(t,s,{passive:c}):e.addEventListener(t,s,!1)}function Sd(e,t,s,i,c){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var j=i.stateNode.containerInfo;if(j===c)break;if(y===4)for(y=i.return;y!==null;){var A=y.tag;if((A===3||A===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;j!==null;){if(y=yr(j),y===null)return;if(A=y.tag,A===5||A===6||A===26||A===27){i=d=y;continue e}j=j.parentNode}}i=i.return}lp(function(){var Q=d,K=Uu(s),W=[];e:{var V=Lp.get(e);if(V!==void 0){var I=go,ue=e;switch(e){case"keypress":if(mo(s)===0)break e;case"keydown":case"keyup":I=IS;break;case"focusin":ue="focus",I=Qu;break;case"focusout":ue="blur",I=Qu;break;case"beforeblur":case"afterblur":I=Qu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=up;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=LS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=FS;break;case Mp:case Op:case Dp:I=BS;break;case zp:I=WS;break;case"scroll":case"scrollend":I=DS;break;case"wheel":I=ew;break;case"copy":case"cut":case"paste":I=PS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=dp;break;case"toggle":case"beforetoggle":I=nw}var ve=(t&4)!==0,Xe=!ve&&(e==="scroll"||e==="scrollend"),H=ve?V!==null?V+"Capture":null:V;ve=[];for(var z=Q,G;z!==null;){var F=z;if(G=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||G===null||H===null||(F=Hi(z,H),F!=null&&ve.push(yl(z,F,G))),Xe)break;z=z.return}0<ve.length&&(V=new I(V,ue,null,s,K),W.push({event:V,listeners:ve}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",V&&s!==ku&&(ue=s.relatedTarget||s.fromElement)&&(yr(ue)||ue[vr]))break e;if((I||V)&&(V=K.window===K?K:(V=K.ownerDocument)?V.defaultView||V.parentWindow:window,I?(ue=s.relatedTarget||s.toElement,I=Q,ue=ue?yr(ue):null,ue!==null&&(Xe=f(ue),ve=ue.tag,ue!==Xe||ve!==5&&ve!==27&&ve!==6)&&(ue=null)):(I=null,ue=Q),I!==ue)){if(ve=up,F="onMouseLeave",H="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(ve=dp,F="onPointerLeave",H="onPointerEnter",z="pointer"),Xe=I==null?V:Bi(I),G=ue==null?V:Bi(ue),V=new ve(F,z+"leave",I,s,K),V.target=Xe,V.relatedTarget=G,F=null,yr(K)===Q&&(ve=new ve(H,z+"enter",ue,s,K),ve.target=G,ve.relatedTarget=Xe,F=ve),Xe=F,I&&ue)t:{for(ve=tj,H=I,z=ue,G=0,F=H;F;F=ve(F))G++;F=0;for(var me=z;me;me=ve(me))F++;for(;0<G-F;)H=ve(H),G--;for(;0<F-G;)z=ve(z),F--;for(;G--;){if(H===z||z!==null&&H===z.alternate){ve=H;break t}H=ve(H),z=ve(z)}ve=null}else ve=null;I!==null&&ay(W,V,I,ve,!1),ue!==null&&Xe!==null&&ay(W,Xe,ue,ve,!0)}}e:{if(V=Q?Bi(Q):window,I=V.nodeName&&V.nodeName.toLowerCase(),I==="select"||I==="input"&&V.type==="file")var Le=bp;else if(yp(V))if(Sp)Le=dw;else{Le=uw;var fe=cw}else I=V.nodeName,!I||I.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?Q&&Lu(Q.elementType)&&(Le=bp):Le=fw;if(Le&&(Le=Le(e,Q))){xp(W,Le,s,K);break e}fe&&fe(e,V,Q),e==="focusout"&&Q&&V.type==="number"&&Q.memoizedProps.value!=null&&zu(V,"number",V.value)}switch(fe=Q?Bi(Q):window,e){case"focusin":(yp(fe)||fe.contentEditable==="true")&&(Cr=fe,Zu=Q,Ii=null);break;case"focusout":Ii=Zu=Cr=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,_p(W,s,K);break;case"selectionchange":if(mw)break;case"keydown":case"keyup":_p(W,s,K)}var we;if(Yu)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Er?gp(e,s)&&(Ce="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(hp&&s.locale!=="ko"&&(Er||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Er&&(we=op()):(Da=K,Pu="value"in Da?Da.value:Da.textContent,Er=!0)),fe=ic(Q,Ce),0<fe.length&&(Ce=new fp(Ce,e,null,s,K),W.push({event:Ce,listeners:fe}),we?Ce.data=we:(we=vp(s),we!==null&&(Ce.data=we)))),(we=sw?rw(e,s):iw(e,s))&&(Ce=ic(Q,"onBeforeInput"),0<Ce.length&&(fe=new fp("onBeforeInput","beforeinput",null,s,K),W.push({event:fe,listeners:Ce}),fe.data=we)),$w(W,e,Q,s,K)}ty(W,t)})}function yl(e,t,s){return{instance:e,listener:t,currentTarget:s}}function ic(e,t){for(var s=t+"Capture",i=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Hi(e,s),c!=null&&i.unshift(yl(e,c,d)),c=Hi(e,t),c!=null&&i.push(yl(e,c,d))),e.tag===3)return i;e=e.return}return[]}function tj(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ay(e,t,s,i,c){for(var d=t._reactName,y=[];s!==null&&s!==i;){var j=s,A=j.alternate,Q=j.stateNode;if(j=j.tag,A!==null&&A===i)break;j!==5&&j!==26&&j!==27||Q===null||(A=Q,c?(Q=Hi(s,d),Q!=null&&y.unshift(yl(s,Q,A))):c||(Q=Hi(s,d),Q!=null&&y.push(yl(s,Q,A)))),s=s.return}y.length!==0&&e.push({event:t,listeners:y})}var nj=/\r\n?/g,aj=/\u0000|\uFFFD/g;function sy(e){return(typeof e=="string"?e:""+e).replace(nj,`
49
- `).replace(aj,"")}function ry(e,t){return t=sy(t),sy(e)===t}function Ye(e,t,s,i,c,d){switch(s){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||jr(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&jr(e,""+i);break;case"className":co(e,"class",i);break;case"tabIndex":co(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":co(e,s,i);break;case"style":rp(e,i,d);break;case"data":if(t!=="object"){co(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=fo(""+i),e.setAttribute(s,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(s,"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 d=="function"&&(s==="formAction"?(t!=="input"&&Ye(e,t,"name",c.name,c,null),Ye(e,t,"formEncType",c.formEncType,c,null),Ye(e,t,"formMethod",c.formMethod,c,null),Ye(e,t,"formTarget",c.formTarget,c,null)):(Ye(e,t,"encType",c.encType,c,null),Ye(e,t,"method",c.method,c,null),Ye(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=fo(""+i),e.setAttribute(s,i);break;case"onClick":i!=null&&(e.onclick=na);break;case"onScroll":i!=null&&Ne("scroll",e);break;case"onScrollEnd":i!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(s=i.__html,s!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=s}}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}s=fo(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);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(s,""+i):e.removeAttribute(s);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(s,""):e.removeAttribute(s);break;case"capture":case"download":i===!0?e.setAttribute(s,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,i):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(s,i):e.removeAttribute(s);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(s):e.setAttribute(s,i);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),oo(e,"popover",i);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":oo(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=MS.get(s)||s,oo(e,s,i))}}function wd(e,t,s,i,c,d){switch(s){case"style":rp(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(s=i.__html,s!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"children":typeof i=="string"?jr(e,i):(typeof i=="number"||typeof i=="bigint")&&jr(e,""+i);break;case"onScroll":i!=null&&Ne("scroll",e);break;case"onScrollEnd":i!=null&&Ne("scrollend",e);break;case"onClick":i!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fm.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(c=s.endsWith("Capture"),t=s.slice(2,c?s.length-7:void 0),d=e[Ht]||null,d=d!=null?d[s]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof i=="function")){typeof d!="function"&&d!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,i,c);break e}s in e?e[s]=i:i===!0?e.setAttribute(s,""):oo(e,s,i)}}}function Nt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var i=!1,c=!1,d;for(d in s)if(s.hasOwnProperty(d)){var y=s[d];if(y!=null)switch(d){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ye(e,t,d,y,s,null)}}c&&Ye(e,t,"srcSet",s.srcSet,s,null),i&&Ye(e,t,"src",s.src,s,null);return;case"input":Ne("invalid",e);var j=d=y=c=null,A=null,Q=null;for(i in s)if(s.hasOwnProperty(i)){var K=s[i];if(K!=null)switch(i){case"name":c=K;break;case"type":y=K;break;case"checked":A=K;break;case"defaultChecked":Q=K;break;case"value":d=K;break;case"defaultValue":j=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,t));break;default:Ye(e,t,i,K,s,null)}}tp(e,d,j,A,Q,y,c,!1);return;case"select":Ne("invalid",e),i=y=d=null;for(c in s)if(s.hasOwnProperty(c)&&(j=s[c],j!=null))switch(c){case"value":d=j;break;case"defaultValue":y=j;break;case"multiple":i=j;default:Ye(e,t,c,j,s,null)}t=d,s=y,e.multiple=!!i,t!=null?wr(e,!!i,t,!1):s!=null&&wr(e,!!i,s,!0);return;case"textarea":Ne("invalid",e),d=c=i=null;for(y in s)if(s.hasOwnProperty(y)&&(j=s[y],j!=null))switch(y){case"value":i=j;break;case"defaultValue":c=j;break;case"children":d=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(91));break;default:Ye(e,t,y,j,s,null)}ap(e,i,c,d);return;case"option":for(A in s)if(s.hasOwnProperty(A)&&(i=s[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ye(e,t,A,i,s,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(i=0;i<vl.length;i++)Ne(vl[i],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("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(Q in s)if(s.hasOwnProperty(Q)&&(i=s[Q],i!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ye(e,t,Q,i,s,null)}return;default:if(Lu(t)){for(K in s)s.hasOwnProperty(K)&&(i=s[K],i!==void 0&&wd(e,t,K,i,s,void 0));return}}for(j in s)s.hasOwnProperty(j)&&(i=s[j],i!=null&&Ye(e,t,j,i,s,null))}function sj(e,t,s,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,j=null,A=null,Q=null,K=null;for(I in s){var W=s[I];if(s.hasOwnProperty(I)&&W!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":A=W;default:i.hasOwnProperty(I)||Ye(e,t,I,null,i,W)}}for(var V in i){var I=i[V];if(W=s[V],i.hasOwnProperty(V)&&(I!=null||W!=null))switch(V){case"type":d=I;break;case"name":c=I;break;case"checked":Q=I;break;case"defaultChecked":K=I;break;case"value":y=I;break;case"defaultValue":j=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,t));break;default:I!==W&&Ye(e,t,V,I,i,W)}}Du(e,y,j,A,Q,K,d,c);return;case"select":I=y=j=V=null;for(d in s)if(A=s[d],s.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":I=A;default:i.hasOwnProperty(d)||Ye(e,t,d,null,i,A)}for(c in i)if(d=i[c],A=s[c],i.hasOwnProperty(c)&&(d!=null||A!=null))switch(c){case"value":V=d;break;case"defaultValue":j=d;break;case"multiple":y=d;default:d!==A&&Ye(e,t,c,d,i,A)}t=j,s=y,i=I,V!=null?wr(e,!!s,V,!1):!!i!=!!s&&(t!=null?wr(e,!!s,t,!0):wr(e,!!s,s?[]:"",!1));return;case"textarea":I=V=null;for(j in s)if(c=s[j],s.hasOwnProperty(j)&&c!=null&&!i.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Ye(e,t,j,null,i,c)}for(y in i)if(c=i[y],d=s[y],i.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":V=c;break;case"defaultValue":I=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==d&&Ye(e,t,y,c,i,d)}np(e,V,I);return;case"option":for(var ue in s)if(V=s[ue],s.hasOwnProperty(ue)&&V!=null&&!i.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:Ye(e,t,ue,null,i,V)}for(A in i)if(V=i[A],I=s[A],i.hasOwnProperty(A)&&V!==I&&(V!=null||I!=null))switch(A){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ye(e,t,A,V,i,I)}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 s)V=s[ve],s.hasOwnProperty(ve)&&V!=null&&!i.hasOwnProperty(ve)&&Ye(e,t,ve,null,i,V);for(Q in i)if(V=i[Q],I=s[Q],i.hasOwnProperty(Q)&&V!==I&&(V!=null||I!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,t));break;default:Ye(e,t,Q,V,i,I)}return;default:if(Lu(t)){for(var Xe in s)V=s[Xe],s.hasOwnProperty(Xe)&&V!==void 0&&!i.hasOwnProperty(Xe)&&wd(e,t,Xe,void 0,i,V);for(K in i)V=i[K],I=s[K],!i.hasOwnProperty(K)||V===I||V===void 0&&I===void 0||wd(e,t,K,V,i,I);return}}for(var H in s)V=s[H],s.hasOwnProperty(H)&&V!=null&&!i.hasOwnProperty(H)&&Ye(e,t,H,null,i,V);for(W in i)V=i[W],I=s[W],!i.hasOwnProperty(W)||V===I||V==null&&I==null||Ye(e,t,W,V,i,I)}function iy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rj(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),i=0;i<s.length;i++){var c=s[i],d=c.transferSize,y=c.initiatorType,j=c.duration;if(d&&j&&iy(y)){for(y=0,j=c.responseEnd,i+=1;i<s.length;i++){var A=s[i],Q=A.startTime;if(Q>j)break;var K=A.transferSize,W=A.initiatorType;K&&iy(W)&&(A=A.responseEnd,y+=K*(A<j?1:(j-Q)/(A-Q)))}if(--i,t+=8*(d+y)/(c.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 jd=null,Rd=null;function lc(e){return e.nodeType===9?e:e.ownerDocument}function ly(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 oy(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 Nd(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 Ed=null;function ij(){var e=window.event;return e&&e.type==="popstate"?e===Ed?!1:(Ed=e,!0):(Ed=null,!1)}var cy=typeof setTimeout=="function"?setTimeout:void 0,lj=typeof clearTimeout=="function"?clearTimeout:void 0,uy=typeof Promise=="function"?Promise:void 0,oj=typeof queueMicrotask=="function"?queueMicrotask:typeof uy<"u"?function(e){return uy.resolve(null).then(e).catch(cj)}:cy;function cj(e){setTimeout(function(){throw e})}function Fa(e){return e==="head"}function fy(e,t){var s=t,i=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"||s==="/&"){if(i===0){e.removeChild(c),ei(t);return}i--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")i++;else if(s==="html")xl(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,xl(s);for(var d=s.firstChild;d;){var y=d.nextSibling,j=d.nodeName;d[Ui]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&d.rel.toLowerCase()==="stylesheet"||s.removeChild(d),d=y}}else s==="body"&&xl(e.ownerDocument.body);s=c}while(s);ei(t)}function dy(e,t){var s=e;e=0;do{var i=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),i&&i.nodeType===8)if(s=i.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=i}while(s)}function Cd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Cd(s),Mu(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function uj(e,t,s,i){for(;e.nodeType===1;){var c=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ui])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=jn(e.nextSibling),e===null)break}return null}function fj(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=jn(e.nextSibling),e===null))return null;return e}function hy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jn(e.nextSibling),e===null))return null;return e}function Td(e){return e.data==="$?"||e.data==="$~"}function _d(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function dj(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var i=function(){t(),s.removeEventListener("DOMContentLoaded",i)};s.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function jn(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 Ad=null;function my(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return jn(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function py(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function gy(e,t,s){switch(t=lc(s),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function xl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Mu(e)}var Rn=new Map,vy=new Set;function oc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ya=X.d;X.d={f:hj,r:mj,D:pj,C:gj,L:vj,m:yj,X:bj,S:xj,M:Sj};function hj(){var e=ya.f(),t=Jo();return e||t}function mj(e){var t=xr(e);t!==null&&t.tag===5&&t.type==="form"?zg(t):ya.r(e)}var $r=typeof document>"u"?null:document;function yy(e,t,s){var i=$r;if(i&&typeof t=="string"&&t){var c=gn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),vy.has(c)||(vy.add(c),e={rel:e,crossOrigin:s,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),Nt(t,"link",e),pt(t),i.head.appendChild(t)))}}function pj(e){ya.D(e),yy("dns-prefetch",e,null)}function gj(e,t){ya.C(e,t),yy("preconnect",e,t)}function vj(e,t,s){ya.L(e,t,s);var i=$r;if(i&&e&&t){var c='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+gn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+gn(s.imageSizes)+'"]')):c+='[href="'+gn(e)+'"]';var d=c;switch(t){case"style":d=Wr(e);break;case"script":d=Jr(e)}Rn.has(d)||(e=v({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),Rn.set(d,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(bl(d))||t==="script"&&i.querySelector(Sl(d))||(t=i.createElement("link"),Nt(t,"link",e),pt(t),i.head.appendChild(t)))}}function yj(e,t){ya.m(e,t);var s=$r;if(s&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+gn(i)+'"][href="'+gn(e)+'"]',d=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Jr(e)}if(!Rn.has(d)&&(e=v({rel:"modulepreload",href:e},t),Rn.set(d,e),s.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Sl(d)))return}i=s.createElement("link"),Nt(i,"link",e),pt(i),s.head.appendChild(i)}}}function xj(e,t,s){ya.S(e,t,s);var i=$r;if(i&&e){var c=br(i).hoistableStyles,d=Wr(e);t=t||"default";var y=c.get(d);if(!y){var j={loading:0,preload:null};if(y=i.querySelector(bl(d)))j.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},s),(s=Rn.get(d))&&Md(e,s);var A=y=i.createElement("link");pt(A),Nt(A,"link",e),A._p=new Promise(function(Q,K){A.onload=Q,A.onerror=K}),A.addEventListener("load",function(){j.loading|=1}),A.addEventListener("error",function(){j.loading|=2}),j.loading|=4,cc(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:j},c.set(d,y)}}}function bj(e,t){ya.X(e,t);var s=$r;if(s&&e){var i=br(s).hoistableScripts,c=Jr(e),d=i.get(c);d||(d=s.querySelector(Sl(c)),d||(e=v({src:e,async:!0},t),(t=Rn.get(c))&&Od(e,t),d=s.createElement("script"),pt(d),Nt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Sj(e,t){ya.M(e,t);var s=$r;if(s&&e){var i=br(s).hoistableScripts,c=Jr(e),d=i.get(c);d||(d=s.querySelector(Sl(c)),d||(e=v({src:e,async:!0,type:"module"},t),(t=Rn.get(c))&&Od(e,t),d=s.createElement("script"),pt(d),Nt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function xy(e,t,s,i){var c=(c=he.current)?oc(c):null;if(!c)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=Wr(s.href),s=br(c).hoistableStyles,i=s.get(t),i||(i={type:"style",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Wr(s.href);var d=br(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(bl(e)))&&!d._p&&(y.instance=d,y.state.loading=5),Rn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Rn.set(e,s),d||wj(c,e,s,y.state))),t&&i===null)throw Error(l(528,""));return y}if(t&&i!==null)throw Error(l(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Jr(s),s=br(c).hoistableScripts,i=s.get(t),i||(i={type:"script",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Wr(e){return'href="'+gn(e)+'"'}function bl(e){return'link[rel="stylesheet"]['+e+"]"}function by(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function wj(e,t,s,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}),Nt(t,"link",s),pt(t),e.head.appendChild(t))}function Jr(e){return'[src="'+gn(e)+'"]'}function Sl(e){return"script[async]"+e}function Sy(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+gn(s.href)+'"]');if(i)return t.instance=i,pt(i),i;var c=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),pt(i),Nt(i,"style",c),cc(i,s.precedence,e),t.instance=i;case"stylesheet":c=Wr(s.href);var d=e.querySelector(bl(c));if(d)return t.state.loading|=4,t.instance=d,pt(d),d;i=by(s),(c=Rn.get(c))&&Md(i,c),d=(e.ownerDocument||e).createElement("link"),pt(d);var y=d;return y._p=new Promise(function(j,A){y.onload=j,y.onerror=A}),Nt(d,"link",i),t.state.loading|=4,cc(d,s.precedence,e),t.instance=d;case"script":return d=Jr(s.src),(c=e.querySelector(Sl(d)))?(t.instance=c,pt(c),c):(i=s,(c=Rn.get(d))&&(i=v({},s),Od(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),pt(c),Nt(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,cc(i,s.precedence,e));return t.instance}function cc(e,t,s){for(var i=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,d=c,y=0;y<i.length;y++){var j=i[y];if(j.dataset.precedence===t)d=j;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function Md(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Od(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var uc=null;function wy(e,t,s){if(uc===null){var i=new Map,c=uc=new Map;c.set(s,i)}else c=uc,i=c.get(s),i||(i=new Map,c.set(s,i));if(i.has(e))return i;for(i.set(e,null),s=s.getElementsByTagName(e),c=0;c<s.length;c++){var d=s[c];if(!(d[Ui]||d[St]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var j=i.get(y);j?j.push(d):i.set(y,[d])}}return i}function jy(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function jj(e,t,s){if(s===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 Ry(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rj(e,t,s,i){if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=Wr(i.href),d=t.querySelector(bl(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fc.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=d,pt(d);return}d=t.ownerDocument||t,i=by(i),(c=Rn.get(c))&&Md(i,c),d=d.createElement("link"),pt(d);var y=d;y._p=new Promise(function(j,A){y.onload=j,y.onerror=A}),Nt(d,"link",i),s.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=fc.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var Dd=0;function Nj(e,t){return e.stylesheets&&e.count===0&&hc(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var i=setTimeout(function(){if(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Dd===0&&(Dd=62500*rj());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Dd?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function fc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var dc=null;function hc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,dc=new Map,t.forEach(Ej,e),dc=null,fc.call(e))}function Ej(e,t){if(!(t.state.loading&4)){var s=dc.get(e);if(s)var i=s.get(null);else{s=new Map,dc.set(e,s);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(s.set(y.dataset.precedence,y),i=y)}i&&s.set(null,i)}c=t.instance,y=c.getAttribute("data-precedence"),d=s.get(y)||i,d===i&&s.set(null,c),s.set(y,c),this.count++,i=fc.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var wl={$$typeof:U,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Cj(e,t,s,i,c,d,y,j,A){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=Cu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cu(0),this.hiddenUpdates=Cu(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Ny(e,t,s,i,c,d,y,j,A,Q,K,W){return e=new Cj(e,t,s,y,A,Q,K,W,j),t=1,d===!0&&(t|=24),d=nn(3,null,null,t),e.current=d,d.stateNode=e,t=df(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:i,isDehydrated:s,cache:t},gf(d),e}function Ey(e){return e?(e=Ar,e):Ar}function Cy(e,t,s,i,c,d){c=Ey(c),i.context===null?i.context=c:i.pendingContext=c,i=Ha(t),i.payload={element:s},d=d===void 0?null:d,d!==null&&(i.callback=d),s=Pa(e,i,t),s!==null&&(Yt(s,e,t),el(s,e,t))}function Ty(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function zd(e,t){Ty(e,t),(e=e.alternate)&&Ty(e,t)}function _y(e){if(e.tag===13||e.tag===31){var t=Os(e,67108864);t!==null&&Yt(t,e,67108864),zd(e,67108864)}}function Ay(e){if(e.tag===13||e.tag===31){var t=on();t=Tu(t);var s=Os(e,t);s!==null&&Yt(s,e,t),zd(e,t)}}var mc=!0;function Tj(e,t,s,i){var c=B.T;B.T=null;var d=X.p;try{X.p=2,Ld(e,t,s,i)}finally{X.p=d,B.T=c}}function _j(e,t,s,i){var c=B.T;B.T=null;var d=X.p;try{X.p=8,Ld(e,t,s,i)}finally{X.p=d,B.T=c}}function Ld(e,t,s,i){if(mc){var c=kd(i);if(c===null)Sd(e,t,i,pc,s),Oy(e,i);else if(Mj(c,e,t,s,i))i.stopPropagation();else if(Oy(e,i),t&4&&-1<Aj.indexOf(e)){for(;c!==null;){var d=xr(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=Cs(d.pendingLanes);if(y!==0){var j=d;for(j.pendingLanes|=2,j.entangledLanes|=2;y;){var A=1<<31-en(y);j.entanglements[1]|=A,y&=~A}Gn(d),(Be&6)===0&&($o=_t()+500,gl(0))}}break;case 31:case 13:j=Os(d,2),j!==null&&Yt(j,d,2),Jo(),zd(d,2)}if(d=kd(i),d===null&&Sd(e,t,i,pc,s),d===c)break;c=d}c!==null&&i.stopPropagation()}else Sd(e,t,i,null,s)}}function kd(e){return e=Uu(e),Ud(e)}var pc=null;function Ud(e){if(pc=null,e=yr(e),e!==null){var t=f(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=h(t),e!==null)return e;e=null}else if(s===31){if(e=m(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pc=e,null}function My(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(Qe()){case bt:return 2;case Bn:return 8;case gr:case gS:return 32;case qm:return 268435456;default:return 32}default:return 32}}var Bd=!1,$a=null,Wa=null,Ja=null,jl=new Map,Rl=new Map,es=[],Aj="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 Oy(e,t){switch(e){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(t.pointerId)}}function Nl(e,t,s,i,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:s,eventSystemFlags:i,nativeEvent:d,targetContainers:[c]},t!==null&&(t=xr(t),t!==null&&_y(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Mj(e,t,s,i,c){switch(t){case"focusin":return $a=Nl($a,e,t,s,i,c),!0;case"dragenter":return Wa=Nl(Wa,e,t,s,i,c),!0;case"mouseover":return Ja=Nl(Ja,e,t,s,i,c),!0;case"pointerover":var d=c.pointerId;return jl.set(d,Nl(jl.get(d)||null,e,t,s,i,c)),!0;case"gotpointercapture":return d=c.pointerId,Rl.set(d,Nl(Rl.get(d)||null,e,t,s,i,c)),!0}return!1}function Dy(e){var t=yr(e.target);if(t!==null){var s=f(t);if(s!==null){if(t=s.tag,t===13){if(t=h(s),t!==null){e.blockedOn=t,Im(e.priority,function(){Ay(s)});return}}else if(t===31){if(t=m(s),t!==null){e.blockedOn=t,Im(e.priority,function(){Ay(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=kd(e.nativeEvent);if(s===null){s=e.nativeEvent;var i=new s.constructor(s.type,s);ku=i,s.target.dispatchEvent(i),ku=null}else return t=xr(s),t!==null&&_y(t),e.blockedOn=s,!1;t.shift()}return!0}function zy(e,t,s){gc(e)&&s.delete(t)}function Oj(){Bd=!1,$a!==null&&gc($a)&&($a=null),Wa!==null&&gc(Wa)&&(Wa=null),Ja!==null&&gc(Ja)&&(Ja=null),jl.forEach(zy),Rl.forEach(zy)}function vc(e,t){e.blockedOn===t&&(e.blockedOn=null,Bd||(Bd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Oj)))}var yc=null;function Ly(e){yc!==e&&(yc=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){yc===e&&(yc=null);for(var t=0;t<e.length;t+=3){var s=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(Ud(i||s)===null)continue;break}var d=xr(s);d!==null&&(e.splice(t,3),t-=3,kf(d,{pending:!0,data:c,method:s.method,action:i},i,c))}}))}function ei(e){function t(A){return vc(A,e)}$a!==null&&vc($a,e),Wa!==null&&vc(Wa,e),Ja!==null&&vc(Ja,e),jl.forEach(t),Rl.forEach(t);for(var s=0;s<es.length;s++){var i=es[s];i.blockedOn===e&&(i.blockedOn=null)}for(;0<es.length&&(s=es[0],s.blockedOn===null);)Dy(s),s.blockedOn===null&&es.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(i=0;i<s.length;i+=3){var c=s[i],d=s[i+1],y=c[Ht]||null;if(typeof d=="function")y||Ly(s);else if(y){var j=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[Ht]||null)j=y.formAction;else if(Ud(c)!==null)continue}else j=y.action;typeof j=="function"?s[i+1]=j:(s.splice(i,3),i-=3),Ly(s)}}}function ky(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),i||setTimeout(s,20)}function s(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Hd(e){this._internalRoot=e}xc.prototype.render=Hd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var s=t.current,i=on();Cy(s,i,e,t,null,null)},xc.prototype.unmount=Hd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cy(e.current,2,null,e,null,null),Jo(),t[vr]=null}};function xc(e){this._internalRoot=e}xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xm();e={blockedOn:null,target:e,priority:t};for(var s=0;s<es.length&&t!==0&&t<es[s].priority;s++);es.splice(s,0,e),s===0&&Dy(e)}};var Uy=a.version;if(Uy!=="19.2.7")throw Error(l(527,Uy,"19.2.7"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Dj={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bc.isDisabled&&bc.supportsFiber)try{zi=bc.inject(Dj),Jt=bc}catch{}}return Cl.createRoot=function(e,t){if(!o(e))throw Error(l(299));var s=!1,i="",c=Vg,d=Yg,y=Xg;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Ny(e,1,!1,null,null,s,i,null,c,d,y,ky),e[vr]=t.current,bd(e),new Hd(t)},Cl.hydrateRoot=function(e,t,s){if(!o(e))throw Error(l(299));var i=!1,c="",d=Vg,y=Yg,j=Xg,A=null;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(j=s.onRecoverableError),s.formState!==void 0&&(A=s.formState)),t=Ny(e,1,!0,t,s??null,i,c,A,d,y,j,ky),t.context=Ey(null),s=t.current,i=on(),i=Tu(i),c=Ha(i),c.callback=null,Pa(s,c,i),s=i,t.current.lanes=s,ki(t,s),Gn(t),e[vr]=t.current,bd(e),new xc(t)},Cl.version="19.2.7",Cl}var Ky;function Qj(){if(Ky)return Qd.exports;Ky=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Qd.exports=Gj(),Qd.exports}var Vj=Qj();const Yj=tm(Vj);var Dl=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Id(n){const a=w.useRef({value:n,prev:null}),r=a.current.value;return n!==r&&(a.current={value:n,prev:r}),a.current.prev}function Xj(n,a,r={},l={}){w.useEffect(()=>{if(!n.current||l.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([f])=>{a(f)},r);return o.observe(n.current),()=>{o.disconnect()}},[a,r,l.disabled,n])}function Ij(n){const a=w.useRef(null);return w.useImperativeHandle(n,()=>a.current,[]),a}const qb=!1;function Ll(n){return n[n.length-1]}function Kj(n){return typeof n=="function"}function Ks(n,a){return Kj(n)?n(a):n}const Gb=Object.prototype.hasOwnProperty,Zy=Object.prototype.propertyIsEnumerable;function Qb(n){for(const a in n)if(Gb.call(n,a))return!0;return!1}const Zj=()=>Object.create(null),Ys=(n,a)=>Zs(n,a,Zj);function Zs(n,a,r=()=>({}),l=0){if(n===a)return n;if(l>500)return a;const o=a,f=Wy(n)&&Wy(o);if(!f&&!(Yc(n)&&Yc(o)))return o;const h=f?n:Fy(n);if(!h)return o;const m=f?o:Fy(o);if(!m)return o;const g=h.length,p=m.length,x=f?new Array(p):r();let v=0;for(let b=0;b<p;b++){const S=f?b:m[b],N=n[S],R=o[S];if(N===R){x[S]=N,(f?b<g:Gb.call(n,S))&&v++;continue}if(N===null||R===null||typeof N!="object"||typeof R!="object"){x[S]=R;continue}const E=Zs(N,R,r,l+1);x[S]=E,E===N&&v++}return g===p&&v===g?n:x}function Fy(n){const a=Object.getOwnPropertyNames(n);for(const o of a)if(!Zy.call(n,o))return!1;const r=Object.getOwnPropertySymbols(n);if(r.length===0)return a;const l=a;for(const o of r){if(!Zy.call(n,o))return!1;l.push(o)}return l}function Yc(n){if(!$y(n))return!1;const a=n.constructor;if(typeof a>"u")return!0;const r=a.prototype;return!(!$y(r)||!r.hasOwnProperty("isPrototypeOf"))}function $y(n){return Object.prototype.toString.call(n)==="[object Object]"}function Wy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function lr(n,a,r){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(let l=0,o=n.length;l<o;l++)if(!lr(n[l],a[l],r))return!1;return!0}if(Yc(n)&&Yc(a)){const l=(r==null?void 0:r.ignoreUndefined)??!0;if(r!=null&&r.partial){for(const h in a)if((!l||a[h]!==void 0)&&!lr(n[h],a[h],r))return!1;return!0}let o=0;if(!l)o=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&o++;let f=0;for(const h in a)if((!l||a[h]!==void 0)&&(f++,f>o||!lr(n[h],a[h],r)))return!1;return o===f}return!1}function Ri(n){let a,r;const l=new Promise((o,f)=>{a=o,r=f});return l.status="pending",l.resolve=o=>{l.status="resolved",l.value=o,a(o),n==null||n(o)},l.reject=o=>{l.status="rejected",r(o)},l}function kl(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function Fj(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function Jy(n){let a;try{a=decodeURI(n)}catch{a=n.replaceAll(/%[0-9A-F]{2}/gi,r=>{try{return decodeURI(r)}catch{return r}})}return Fj(a)}const $j=["http:","https:","mailto:","tel:"];function Xc(n,a){if(!n)return!1;try{const r=new URL(n);return!a.has(r.protocol)}catch{return!1}}function Tl(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let r=0,l="",o;for(;(o=a.exec(n))!==null;)l+=Jy(n.slice(r,o.index))+o[0],r=a.lastIndex;l=l+Jy(r?n.slice(r):n);let f=!1;return l.startsWith("//")&&(f=!0,l="/"+l.replace(/^\/+/,"")),{path:l,handledProtocolRelativeURL:f}}function Wj(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function Jj(n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==a[r])return!1;return!0}function Na(){throw new Error("Invariant failed")}function Ul(n){const a=new Map;let r,l;const o=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,l&&(l.next=f,f.prev=l)):(f.next.prev=void 0,r=f.next,f.next=void 0,l&&(f.prev=l,l.next=f)),l=f)};return{get(f){const h=a.get(f);if(h)return o(h),h.value},set(f,h){if(a.size>=n&&r){const g=r;a.delete(g.key),g.next&&(r=g.next,g.next.prev=void 0),g===l&&(l=void 0)}const m=a.get(f);if(m)m.value=h,o(m);else{const g={key:f,value:h,prev:l};l&&(l.next=g),l=g,r||(r=g),a.set(f,g)}},clear(){a.clear(),r=void 0,l=void 0}}}const ps=4,Vb=5;function e2(n){const a=n.indexOf("{");if(a===-1)return null;const r=n.indexOf("}",a);return r===-1||a+1>=n.length?null:[a,r]}function Yb(n,a,r=new Uint16Array(6)){const l=n.indexOf("/",a),o=l===-1?n.length:l,f=n.substring(a,o);if(!f||!f.includes("$"))return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r;if(f==="$"){const m=n.length;return r[0]=2,r[1]=a,r[2]=a,r[3]=m,r[4]=m,r[5]=m,r}if(f.charCodeAt(0)===36)return r[0]=1,r[1]=a,r[2]=a+1,r[3]=o,r[4]=o,r[5]=o,r;const h=e2(f);if(h){const[m,g]=h,p=f.charCodeAt(m+1);if(p===45){if(m+2<f.length&&f.charCodeAt(m+2)===36){const x=m+3,v=g;if(x<v)return r[0]=3,r[1]=a+m,r[2]=a+x,r[3]=a+v,r[4]=a+g+1,r[5]=o,r}}else if(p===36){const x=m+1,v=m+2;return v===g?(r[0]=2,r[1]=a+m,r[2]=a+x,r[3]=a+v,r[4]=a+g+1,r[5]=n.length,r):(r[0]=1,r[1]=a+m,r[2]=a+v,r[3]=a+g,r[4]=a+g+1,r[5]=o,r)}}return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r}function cu(n,a,r,l,o,f,h){var g,p,x,v,b,S,N,R,E,C;h==null||h(r);let m=l;{const _=r.fullPath??r.from,U=_.length,T=((g=r.options)==null?void 0:g.caseSensitive)??n,P=((x=(p=r.options)==null?void 0:p.params)==null?void 0:x.parse)??((v=r.options)==null?void 0:v.parseParams);for(;m<U;){const M=Yb(_,m,a);let D;const k=m,q=M[5];switch(m=q+1,f++,M[0]){case 0:{const $=_.substring(M[2],M[3]);if(T){const ee=(b=o.static)==null?void 0:b.get($);if(ee)D=ee;else{o.static??(o.static=new Map);const ne=Fs(r.fullPath??r.from);ne.parent=o,ne.depth=f,D=ne,o.static.set($,ne)}}else{const ee=$.toLowerCase(),ne=(S=o.staticInsensitive)==null?void 0:S.get(ee);if(ne)D=ne;else{o.staticInsensitive??(o.staticInsensitive=new Map);const ae=Fs(r.fullPath??r.from);ae.parent=o,ae.depth=f,D=ae,o.staticInsensitive.set(ee,ae)}}break}case 1:{const $=_.substring(k,M[1]),ee=_.substring(M[4],q),ne=T&&!!($||ee),ae=$?ne?$:$.toLowerCase():void 0,de=ee?ne?ee:ee.toLowerCase():void 0,B=!P&&((N=o.dynamic)==null?void 0:N.find(X=>!X.parse&&X.caseSensitive===ne&&X.prefix===ae&&X.suffix===de));if(B)D=B;else{const X=Zd(1,r.fullPath??r.from,ne,ae,de);D=X,X.depth=f,X.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(X)}break}case 3:{const $=_.substring(k,M[1]),ee=_.substring(M[4],q),ne=T&&!!($||ee),ae=$?ne?$:$.toLowerCase():void 0,de=ee?ne?ee:ee.toLowerCase():void 0,B=!P&&((R=o.optional)==null?void 0:R.find(X=>!X.parse&&X.caseSensitive===ne&&X.prefix===ae&&X.suffix===de));if(B)D=B;else{const X=Zd(3,r.fullPath??r.from,ne,ae,de);D=X,X.parent=o,X.depth=f,o.optional??(o.optional=[]),o.optional.push(X)}break}case 2:{const $=_.substring(k,M[1]),ee=_.substring(M[4],q),ne=T&&!!($||ee),ae=$?ne?$:$.toLowerCase():void 0,de=ee?ne?ee:ee.toLowerCase():void 0,B=Zd(2,r.fullPath??r.from,ne,ae,de);D=B,B.parent=o,B.depth=f,o.wildcard??(o.wildcard=[]),o.wildcard.push(B)}}o=D}if(P&&r.children&&!r.isRoot&&r.id&&r.id.charCodeAt(r.id.lastIndexOf("/")+1)===95){const M=Fs(r.fullPath??r.from);M.kind=Vb,M.parent=o,f++,M.depth=f,o.pathless??(o.pathless=[]),o.pathless.push(M),o=M}const Y=(r.path||!r.children)&&!r.isRoot;if(Y&&_.endsWith("/")){const M=Fs(r.fullPath??r.from);M.kind=ps,M.parent=o,f++,M.depth=f,o.index=M,o=M}o.parse=P??null,o.priority=((C=(E=r.options)==null?void 0:E.params)==null?void 0:C.priority)??0,Y&&!o.route&&(o.route=r,o.fullPath=r.fullPath??r.from)}if(r.children)for(const _ of r.children)cu(n,a,_,m,o,f,h)}function Kd(n,a){if(n.parse&&!a.parse)return-1;if(!n.parse&&a.parse)return 1;if(n.parse&&a.parse&&(n.priority||a.priority))return a.priority-n.priority;if(n.prefix&&a.prefix&&n.prefix!==a.prefix){if(n.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(n.prefix))return 1}if(n.suffix&&a.suffix&&n.suffix!==a.suffix){if(n.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(n.suffix))return 1}return n.prefix&&!a.prefix?-1:!n.prefix&&a.prefix?1:n.suffix&&!a.suffix?-1:!n.suffix&&a.suffix?1:n.caseSensitive&&!a.caseSensitive?-1:!n.caseSensitive&&a.caseSensitive?1:0}function is(n){var a,r,l;if(n.pathless)for(const o of n.pathless)is(o);if(n.static)for(const o of n.static.values())is(o);if(n.staticInsensitive)for(const o of n.staticInsensitive.values())is(o);if((a=n.dynamic)!=null&&a.length){n.dynamic.sort(Kd);for(const o of n.dynamic)is(o)}if((r=n.optional)!=null&&r.length){n.optional.sort(Kd);for(const o of n.optional)is(o)}if((l=n.wildcard)!=null&&l.length){n.wildcard.sort(Kd);for(const o of n.wildcard)is(o)}}function Fs(n){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null,priority:0}}function Zd(n,a,r,l,o){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0,caseSensitive:r,prefix:l,suffix:o}}function t2(n,a){const r=Fs("/"),l=new Uint16Array(6);for(const o of n)cu(!1,l,o,1,r,0);is(r),a.masksTree=r,a.flatCache=Ul(1e3)}function n2(n,a){n||(n="/");const r=a.flatCache.get(n);if(r)return r;const l=nm(n,a.masksTree);return a.flatCache.set(n,l),l}function a2(n,a,r,l,o){n||(n="/"),l||(l="/");const f=a?`case\0${n}`:n;let h=o.singleCache.get(f);return h||(h=Fs("/"),cu(a,new Uint16Array(6),{from:n},1,h,0),o.singleCache.set(f,h)),nm(l,h,r)}function s2(n,a,r=!1){const l=r?n:`nofuzz\0${n}`,o=a.matchCache.get(l);if(o!==void 0)return o;n||(n="/");let f;try{f=nm(n,a.segmentTree,r)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=Ib(f.route)),a.matchCache.set(l,f),f}function r2(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function i2(n,a=!1,r){const l=Fs(n.fullPath),o=new Uint16Array(6),f={},h={};let m=0;return cu(a,o,n,1,l,0,g=>{if(r==null||r(g,m),g.id in f&&Na(),f[g.id]=g,m!==0&&g.path){const p=r2(g.fullPath);(!h[p]||g.fullPath.endsWith("/"))&&(h[p]=g)}m++}),is(l),{processedTree:{segmentTree:l,singleCache:Ul(1e3),matchCache:Ul(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function nm(n,a,r=!1){const l=n.split("/"),o=o2(n,l,a,r);if(!o)return null;const[f]=Xb(n,l,o);return{route:o.node.route,rawParams:f}}function Xb(n,a,r){var x,v,b,S,N,R,E,C,_,U;const l=l2(r.node);let o=null;const f=Object.create(null);let h=((x=r.extract)==null?void 0:x.part)??0,m=((v=r.extract)==null?void 0:v.node)??0,g=((b=r.extract)==null?void 0:b.path)??0,p=((S=r.extract)==null?void 0:S.segment)??0;for(;m<l.length;h++,m++,g++,p++){const T=l[m];if(T.kind===ps)break;if(T.kind===Vb){p--,h--,g--;continue}const P=a[h],Y=g;if(P&&(g+=P.length),T.kind===1){o??(o=r.node.fullPath.split("/"));const M=o[p],D=((N=T.prefix)==null?void 0:N.length)??0;if(M.charCodeAt(D)===123){const k=((R=T.suffix)==null?void 0:R.length)??0,q=M.substring(D+2,M.length-k-1),$=P.substring(D,P.length-k);f[q]=decodeURIComponent($)}else{const k=M.substring(1);f[k]=decodeURIComponent(P)}}else if(T.kind===3){if(r.skipped&1<<m){h--,g=Y-1;continue}o??(o=r.node.fullPath.split("/"));const M=o[p],D=((E=T.prefix)==null?void 0:E.length)??0,k=((C=T.suffix)==null?void 0:C.length)??0,q=M.substring(D+3,M.length-k-1),$=T.suffix||T.prefix?P.substring(D,P.length-k):P;$&&(f[q]=decodeURIComponent($))}else if(T.kind===2){const M=T,D=n.substring(Y+(((_=M.prefix)==null?void 0:_.length)??0),n.length-(((U=M.suffix)==null?void 0:U.length)??0)),k=decodeURIComponent(D);f["*"]=k,f._splat=k;break}}return r.rawParams&&Object.assign(f,r.rawParams),[f,{part:h,node:m,path:g,segment:p}]}function Ib(n){const a=[n];for(;n.parentRoute;)n=n.parentRoute,a.push(n);return a.reverse(),a}function l2(n){const a=Array(n.depth+1);do a[n.depth]=n,n=n.parent;while(n);return a}function o2(n,a,r,l){if(n==="/"&&r.index)return{node:r.index,skipped:0};const o=!Ll(a),f=o&&n!=="/",h=a.length-(o?1:0),m=[{node:r,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let g=null,p=null;for(;m.length;){const x=m.pop(),{node:v,index:b,skipped:S,depth:N,statics:R,dynamics:E,optionals:C}=x;let{extract:_,rawParams:U}=x;if(v.kind===2&&v.route&&!jc(p,x))continue;if(v.parse){if(!ex(n,a,x))continue;U=x.rawParams,_=x.extract}l&&v.route&&v.kind!==ps&&jc(g,x)&&(g=x);const T=b===h;if(T&&(v.route&&(!f||v.kind===ps||v.kind===2)&&jc(p,x)&&(p=x),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const P=T?void 0:a[b];let Y;if(T&&v.index){const M={node:v.index,index:b,skipped:S,depth:N+1,statics:R,dynamics:E,optionals:C,extract:_,rawParams:U};let D=!0;if(v.index.parse&&(ex(n,a,M)||(D=!1)),D){if(!E&&!C&&!S&&c2(R,h))return M;jc(p,M)&&(p=M)}}if(v.wildcard)for(let M=v.wildcard.length-1;M>=0;M--){const D=v.wildcard[M],{prefix:k,suffix:q}=D;if(!(k&&(T||!(D.caseSensitive?P:Y??(Y=P.toLowerCase())).startsWith(k)))){if(q){if(T)continue;const $=a.slice(b).join("/").slice(-q.length);if((D.caseSensitive?$:$.toLowerCase())!==q)continue}m.push({node:D,index:h,skipped:S,depth:N+1,statics:R,dynamics:E,optionals:C,extract:_,rawParams:U})}}if(v.optional){const M=S|1<<N,D=N+1;for(let k=v.optional.length-1;k>=0;k--){const q=v.optional[k];m.push({node:q,index:b,skipped:M,depth:D,statics:R,dynamics:E,optionals:C,extract:_,rawParams:U})}if(!T)for(let k=v.optional.length-1;k>=0;k--){const q=v.optional[k],{prefix:$,suffix:ee}=q;if($||ee){const ne=q.caseSensitive?P:Y??(Y=P.toLowerCase());if($&&!ne.startsWith($)||ee&&!ne.endsWith(ee))continue}m.push({node:q,index:b+1,skipped:S,depth:D,statics:R,dynamics:E,optionals:C+wc(h,b),extract:_,rawParams:U})}}if(!T&&v.dynamic&&P)for(let M=v.dynamic.length-1;M>=0;M--){const D=v.dynamic[M],{prefix:k,suffix:q}=D;if(k||q){const $=D.caseSensitive?P:Y??(Y=P.toLowerCase());if(k&&!$.startsWith(k)||q&&!$.endsWith(q))continue}m.push({node:D,index:b+1,skipped:S,depth:N+1,statics:R,dynamics:E+wc(h,b),optionals:C,extract:_,rawParams:U})}if(!T&&v.staticInsensitive){const M=v.staticInsensitive.get(Y??(Y=P.toLowerCase()));M&&m.push({node:M,index:b+1,skipped:S,depth:N+1,statics:R+wc(h,b),dynamics:E,optionals:C,extract:_,rawParams:U})}if(!T&&v.static){const M=v.static.get(P);M&&m.push({node:M,index:b+1,skipped:S,depth:N+1,statics:R+wc(h,b),dynamics:E,optionals:C,extract:_,rawParams:U})}if(v.pathless){const M=N+1;for(let D=v.pathless.length-1;D>=0;D--){const k=v.pathless[D];m.push({node:k,index:b,skipped:S,depth:M,statics:R,dynamics:E,optionals:C,extract:_,rawParams:U})}}}if(p)return p;if(l&&g){let x=g.index;for(let b=0;b<g.index;b++)x+=a[b].length;const v=x===n.length?"/":n.slice(x);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(v),g}return null}function wc(n,a){return 2**(n-a-1)}function c2(n,a){return n===2**(a-1)-1}function ex(n,a,r){let l,o;try{[l,o]=Xb(n,a,r)}catch{return null}if(r.rawParams=l,r.extract=o,!r.node.parse)return!0;try{if(r.node.parse(l)===!1)return null}catch{}return!0}function jc(n,a){return n?a.statics>n.statics||a.statics===n.statics&&(a.dynamics>n.dynamics||a.dynamics===n.dynamics&&(a.optionals>n.optionals||a.optionals===n.optionals&&((a.node.kind===ps)>(n.node.kind===ps)||a.node.kind===ps==(n.node.kind===ps)&&a.depth>n.depth))):!0}function Uc(n){return am(n.filter(a=>a!==void 0).join("/"))}function am(n){return n.replace(/\/{2,}/g,"/")}function Kb(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function Ra(n){const a=n.length;return a>1&&n[a-1]==="/"?n.replace(/\/{1,}$/,""):n}function Zb(n){return Ra(Kb(n))}function Ic(n,a){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${a}/`?n.slice(0,-1):n}function u2(n,a,r){return Ic(n,r)===Ic(a,r)}function f2({base:n,to:a,trailingSlash:r="never",cache:l}){const o=a.startsWith("/"),f=!o&&a===".";let h;if(l){h=o?a:f?n:n+"\0"+a;const p=l.get(h);if(p)return p}let m;if(f)m=n.split("/");else if(o)m=a.split("/");else{for(m=n.split("/");m.length>1&&Ll(m)==="";)m.pop();const p=a.split("/");for(let x=0,v=p.length;x<v;x++){const b=p[x];b===""?x?x===v-1&&m.push(b):m=[b]:b===".."?m.pop():b==="."||m.push(b)}}m.length>1&&(Ll(m)===""?r==="never"&&m.pop():r==="always"&&m.push(""));const g=am(m.join("/"))||"/";return h&&l&&l.set(h,g),g}function d2(n){const a=new Map(n.map(o=>[encodeURIComponent(o),o])),r=Array.from(a.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(r,"g");return o=>o.replace(l,f=>a.get(f)??f)}function Fd(n,a,r){const l=a[n];return typeof l!="string"?l:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(l)?l:l.split("/").map(o=>nx(o,r)).join("/"):nx(l,r)}function tx({path:n,params:a,decoder:r,...l}){let o=!1;const f=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:o};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:o};const h=n.length;let m=0,g,p="";for(;m<h;){const x=m;g=Yb(n,x,g);const v=g[5];if(m=v+1,x===v)continue;const b=g[0];if(b===0){p+="/"+n.substring(x,v);continue}if(b===2){const S=a._splat;f._splat=S,f["*"]=S;const N=n.substring(x,g[1]),R=n.substring(g[4],v);if(!S){o=!0,(N||R)&&(p+="/"+N+R);continue}const E=Fd("_splat",a,r);p+="/"+N+E+R;continue}if(b===1){const S=n.substring(g[2],g[3]);!o&&!(S in a)&&(o=!0),f[S]=a[S];const N=n.substring(x,g[1]),R=n.substring(g[4],v),E=Fd(S,a,r)??"undefined";p+="/"+N+E+R;continue}if(b===3){const S=n.substring(g[2],g[3]),N=a[S];if(N==null)continue;f[S]=N;const R=n.substring(x,g[1]),E=n.substring(g[4],v),C=Fd(S,a,r)??"";p+="/"+R+C+E;continue}}return n.endsWith("/")&&(p+="/"),{usedParams:f,interpolatedPath:p||"/",isMissingParams:o}}function nx(n,a){const r=encodeURIComponent(n);return(a==null?void 0:a(r))??r}function Ot(n){return(n==null?void 0:n.isNotFound)===!0}function h2(n,a=String){const r=new URLSearchParams;for(const l in n){const o=n[l];o!==void 0&&r.set(l,a(o))}return r.toString()}function $d(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function m2(n){const a=new URLSearchParams(n),r=Object.create(null);for(const[l,o]of a.entries()){const f=r[l];f==null?r[l]=$d(o):Array.isArray(f)?f.push($d(o)):r[l]=[f,$d(o)]}return r}const p2=v2(JSON.parse),g2=y2(JSON.stringify,JSON.parse);function v2(n){return a=>{a[0]==="?"&&(a=a.substring(1));const r=m2(a);for(const l in r){const o=r[l];if(typeof o=="string")try{r[l]=n(o)}catch{}}return r}}function y2(n,a){const r=typeof a=="function";function l(o){if(typeof o=="object"&&o!==null)try{return n(o)}catch{}else if(r&&typeof o=="string")try{return a(o),n(o)}catch{}return o}return o=>{const f=h2(o,l);return f?`?${f}`:""}}const or="__root__";function x2(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const a=new Headers(n.headers);n.href&&a.get("Location")===null&&a.set("Location",n.href);const r=new Response(null,{status:n.statusCode,headers:a});if(r.options=n,n.throw)throw r;return r}function Ft(n){return n instanceof Response&&!!n.options}const wh=n=>{var a;if(!n.rendered)return n.rendered=!0,(a=n.onReady)==null?void 0:a.call(n)},b2=n=>n.stores.matchesId.get().some(a=>{var r;return(r=n.stores.matchStores.get(a))==null?void 0:r.get()._forcePending}),uu=(n,a)=>!!(n.preload&&!n.router.stores.matchStores.has(a)),cr=(n,a,r=!0)=>{const l={...n.router.options.context??{}},o=r?a:a-1;for(let f=0;f<=o;f++){const h=n.matches[f];if(!h)continue;const m=n.router.getMatch(h.id);m&&Object.assign(l,m.__routeContext,m.__beforeLoadContext)}return l},ax=(n,a)=>{if(!n.matches.length)return;const r=a.routeId,l=n.matches.findIndex(h=>h.routeId===n.router.routeTree.id),o=l>=0?l:0;let f=r?n.matches.findIndex(h=>h.routeId===r):n.firstBadMatchIndex??n.matches.length-1;f<0&&(f=o);for(let h=f;h>=0;h--){const m=n.matches[h];if(n.router.looseRoutesById[m.routeId].options.notFoundComponent)return h}return r?f:o},gs=(n,a,r)=>{var l,o,f;if(!(!Ft(r)&&!Ot(r)))throw Ft(r)&&r.redirectHandled&&!r.options.reloadDocument||(a&&((l=a._nonReactive.beforeLoadPromise)==null||l.resolve(),(o=a._nonReactive.loaderPromise)==null||o.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0,a._nonReactive.error=r,n.updateMatch(a.id,h=>({...h,status:Ft(r)?"redirected":Ot(r)?"notFound":h.status==="pending"?"success":h.status,context:cr(n,a.index),isFetching:!1,error:r})),Ot(r)&&!r.routeId&&(r.routeId=a.routeId),(f=a._nonReactive.loadPromise)==null||f.resolve()),Ft(r)&&(n.rendered=!0,r.options._fromLocation=n.location,r.redirectHandled=!0,r=n.router.resolveRedirect(r))),r},Fb=(n,a)=>{const r=n.router.getMatch(a);return!!(!r||r._nonReactive.dehydrated)},sx=(n,a,r)=>{const l=cr(n,r);n.updateMatch(a,o=>({...o,context:l}))},_l=(n,a,r)=>{var h,m;const{id:l,routeId:o}=n.matches[a],f=n.router.looseRoutesById[o];if(r instanceof Promise)throw r;n.firstBadMatchIndex??(n.firstBadMatchIndex=a),gs(n,n.router.getMatch(l),r);try{(m=(h=f.options).onError)==null||m.call(h,r)}catch(g){r=g,gs(n,n.router.getMatch(l),r)}n.updateMatch(l,g=>{var p,x;return(p=g._nonReactive.beforeLoadPromise)==null||p.resolve(),g._nonReactive.beforeLoadPromise=void 0,(x=g._nonReactive.loadPromise)==null||x.resolve(),{...g,error:r,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!n.preload&&!Ft(r)&&!Ot(r)&&(n.serialError??(n.serialError=r))},$b=(n,a,r,l)=>{var f;if(l._nonReactive.pendingTimeout!==void 0)return;const o=r.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!uu(n,a)&&(r.options.loader||r.options.beforeLoad||Jb(r))&&typeof o=="number"&&o!==1/0&&(r.options.pendingComponent??((f=n.router.options)==null?void 0:f.defaultPendingComponent))){const h=setTimeout(()=>{wh(n)},o);l._nonReactive.pendingTimeout=h}},S2=(n,a,r)=>{const l=n.router.getMatch(a);if(!l._nonReactive.beforeLoadPromise&&!l._nonReactive.loaderPromise)return;$b(n,a,r,l);const o=()=>{const f=n.router.getMatch(a);f.preload&&(f.status==="redirected"||f.status==="notFound")&&gs(n,f,f.error)};return l._nonReactive.beforeLoadPromise?l._nonReactive.beforeLoadPromise.then(o):o()},w2=(n,a,r,l)=>{const o=n.router.getMatch(a);let f=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Ri(()=>{f==null||f.resolve(),f=void 0});const{paramsError:h,searchError:m}=o;h&&_l(n,r,h),m&&_l(n,r,m),$b(n,a,l,o);const g=new AbortController;let p=!1;const x=()=>{p||(p=!0,n.updateMatch(a,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:g})))},v=()=>{var T;(T=o._nonReactive.beforeLoadPromise)==null||T.resolve(),o._nonReactive.beforeLoadPromise=void 0,n.updateMatch(a,P=>({...P,isFetching:!1}))};if(!l.options.beforeLoad){n.router.batch(()=>{x(),v()});return}o._nonReactive.beforeLoadPromise=Ri();const b={...cr(n,r,!1),...o.__routeContext},{search:S,params:N,cause:R}=o,E=uu(n,a),C={search:S,abortController:g,params:N,preload:E,context:b,location:n.location,navigate:T=>n.router.navigate({...T,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:E?"preload":R,matches:n.matches,routeId:l.id,...n.router.options.additionalContext},_=T=>{if(T===void 0){n.router.batch(()=>{x(),v()});return}(Ft(T)||Ot(T))&&(x(),_l(n,r,T)),n.router.batch(()=>{x(),n.updateMatch(a,P=>({...P,__beforeLoadContext:T})),v()})};let U;try{if(U=l.options.beforeLoad(C),kl(U))return x(),U.catch(T=>{_l(n,r,T)}).then(_)}catch(T){x(),_l(n,r,T)}_(U)},j2=(n,a)=>{const{id:r,routeId:l}=n.matches[a],o=n.router.looseRoutesById[l],f=()=>m(),h=()=>w2(n,r,a,o),m=()=>{if(Fb(n,r))return;const g=S2(n,r,o);return kl(g)?g.then(h):h()};return f()},R2=(n,a,r)=>{var f,h,m,g,p,x;const l=n.router.getMatch(a);if(!l||!r.options.head&&!r.options.scripts&&!r.options.headers)return;const o={ssr:n.router.options.ssr,matches:n.matches,match:l,params:l.params,loaderData:l.loaderData};return Promise.all([(h=(f=r.options).head)==null?void 0:h.call(f,o),(g=(m=r.options).scripts)==null?void 0:g.call(m,o),(x=(p=r.options).headers)==null?void 0:x.call(p,o)]).then(([v,b,S])=>({meta:v==null?void 0:v.meta,links:v==null?void 0:v.links,headScripts:v==null?void 0:v.scripts,headers:S,scripts:b,styles:v==null?void 0:v.styles}))},Wb=(n,a,r,l,o)=>{const f=a[l-1],{params:h,loaderDeps:m,abortController:g,cause:p}=n.router.getMatch(r),x=cr(n,l),v=uu(n,r);return{params:h,deps:m,preload:!!v,parentMatchPromise:f,abortController:g,context:x,location:n.location,navigate:b=>n.router.navigate({...b,_fromLocation:n.location}),cause:v?"preload":p,route:o,...n.router.options.additionalContext}},rx=async(n,a,r,l,o)=>{var f,h,m,g,p;try{const x=n.router.getMatch(r);try{(!(qb??n.router.isServer)||x.ssr===!0)&&Bl(o);const v=o.options.loader,b=typeof v=="function"?v:v==null?void 0:v.handler,S=b==null?void 0:b(Wb(n,a,r,l,o)),N=!!b&&kl(S);if((N||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||x._nonReactive.minPendingPromise)&&n.updateMatch(r,E=>({...E,isFetching:"loader"})),b){const E=N?await S:S;gs(n,n.router.getMatch(r),E),E!==void 0&&n.updateMatch(r,C=>({...C,loaderData:E}))}o._lazyPromise&&await o._lazyPromise;const R=x._nonReactive.minPendingPromise;R&&await R,o._componentsPromise&&await o._componentsPromise,n.updateMatch(r,E=>({...E,error:void 0,context:cr(n,l),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(v){let b=v;if((b==null?void 0:b.name)==="AbortError"){if(x.abortController.signal.aborted){(f=x._nonReactive.loaderPromise)==null||f.resolve(),x._nonReactive.loaderPromise=void 0;return}n.updateMatch(r,N=>({...N,status:N.status==="pending"?"success":N.status,isFetching:!1,context:cr(n,l)}));return}const S=x._nonReactive.minPendingPromise;S&&await S,Ot(v)&&await((m=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:m.call(h)),gs(n,n.router.getMatch(r),v);try{(p=(g=o.options).onError)==null||p.call(g,v)}catch(N){b=N,gs(n,n.router.getMatch(r),N)}!Ft(b)&&!Ot(b)&&await Bl(o,["errorComponent"]),n.updateMatch(r,N=>({...N,error:b,context:cr(n,l),status:"error",isFetching:!1}))}}catch(x){const v=n.router.getMatch(r);v&&(v._nonReactive.loaderPromise=void 0),gs(n,v,x)}},N2=async(n,a,r)=>{var S,N,R,E;async function l(C,_,U,T,P){const Y=Date.now()-_.updatedAt,M=C?P.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:P.options.staleTime??n.router.options.defaultStaleTime??0,D=P.options.shouldReload,k=typeof D=="function"?D(Wb(n,a,o,r,P)):D,{status:q,invalid:$}=T,ee=Y>=M&&(!!n.forceStaleReload||T.cause==="enter"||U!==void 0&&U!==T.id);h=q==="success"&&($||(k??ee)),C&&P.options.preload===!1||(h&&!n.sync&&x?(m=!0,(async()=>{var ne,ae;try{await rx(n,a,o,r,P);const de=n.router.getMatch(o);(ne=de._nonReactive.loaderPromise)==null||ne.resolve(),(ae=de._nonReactive.loadPromise)==null||ae.resolve(),de._nonReactive.loaderPromise=void 0,de._nonReactive.loadPromise=void 0}catch(de){Ft(de)&&await n.router.navigate(de.options)}})()):q!=="success"||h?await rx(n,a,o,r,P):sx(n,o,r))}const{id:o,routeId:f}=n.matches[r];let h=!1,m=!1;const g=n.router.looseRoutesById[f],p=g.options.loader,x=((typeof p=="function"||p==null?void 0:p.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(Fb(n,o)){if(!n.router.getMatch(o))return n.matches[r];sx(n,o,r)}else{const C=n.router.getMatch(o),_=n.router.stores.matchesId.get()[r],U=((S=_&&n.router.stores.matchStores.get(_)||null)==null?void 0:S.routeId)===f?_:(N=n.router.stores.matches.get().find(P=>P.routeId===f))==null?void 0:N.id,T=uu(n,o);if(C._nonReactive.loaderPromise){if(C.status==="success"&&!n.sync&&!C.preload&&x)return C;await C._nonReactive.loaderPromise;const P=n.router.getMatch(o),Y=P._nonReactive.error||P.error;Y&&gs(n,P,Y),P.status==="pending"&&await l(T,C,U,P,g)}else{const P=T&&!n.router.stores.matchStores.has(o),Y=n.router.getMatch(o);Y._nonReactive.loaderPromise=Ri(),P!==Y.preload&&n.updateMatch(o,M=>({...M,preload:P})),await l(T,C,U,Y,g)}}const v=n.router.getMatch(o);m||((R=v._nonReactive.loaderPromise)==null||R.resolve(),(E=v._nonReactive.loadPromise)==null||E.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,m||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const b=m?v.isFetching:!1;return b!==v.isFetching||v.invalid!==!1?(n.updateMatch(o,C=>({...C,isFetching:b,invalid:!1})),n.router.getMatch(o)):v};async function ix(n){var b,S;const a=n,r=[];b2(a.router)&&wh(a);let l;for(let N=0;N<a.matches.length;N++){try{const R=j2(a,N);kl(R)&&await R}catch(R){if(Ft(R))throw R;if(Ot(R))l=R;else if(!a.preload)throw R;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const o=a.firstBadMatchIndex??a.matches.length,f=l&&!a.preload?ax(a,l):void 0,h=l&&a.preload?0:f!==void 0?Math.min(f+1,o):o;let m,g;for(let N=0;N<h;N++)r.push(N2(a,r,N));try{await Promise.all(r)}catch{const N=await Promise.allSettled(r);for(const R of N){if(R.status!=="rejected")continue;const E=R.reason;if(Ft(E))throw E;Ot(E)?m??(m=E):g??(g=E)}if(g!==void 0)throw g}const p=m??(l&&!a.preload?l:void 0);let x=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!p&&l&&a.preload)return a.matches;if(p){const N=ax(a,p);N===void 0&&Na();const R=a.matches[N],E=a.router.looseRoutesById[R.routeId],C=(b=a.router.options)==null?void 0:b.defaultNotFoundComponent;!E.options.notFoundComponent&&C&&(E.options.notFoundComponent=C),p.routeId=R.routeId;const _=R.routeId===a.router.routeTree.id;a.updateMatch(R.id,U=>({...U,..._?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:p},isFetching:!1})),x=N,await Bl(E,["notFoundComponent"])}else if(!a.preload){const N=a.matches[0];N.globalNotFound||(S=a.router.getMatch(N.id))!=null&&S.globalNotFound&&a.updateMatch(N.id,R=>({...R,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const N=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await Bl(N,["errorComponent"])}for(let N=0;N<=x;N++){const{id:R,routeId:E}=a.matches[N],C=a.router.looseRoutesById[E];try{const _=R2(a,R,C);if(_){const U=await _;a.updateMatch(R,T=>({...T,...U}))}}catch(_){console.error(`Error executing head for route ${E}:`,_)}}const v=wh(a);if(kl(v)&&await v,p)throw p;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function lx(n,a){const r=a.map(l=>{var o,f;return(f=(o=n.options[l])==null?void 0:o.preload)==null?void 0:f.call(o)}).filter(Boolean);if(r.length!==0)return Promise.all(r)}function Bl(n,a=Bc){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(l=>{const{id:o,...f}=l.options;Object.assign(n.options,f),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const r=()=>n._componentsLoaded?void 0:a===Bc?(()=>{if(n._componentsPromise===void 0){const l=lx(n,Bc);l?n._componentsPromise=l.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():lx(n,a);return n._lazyPromise?n._lazyPromise.then(r):r()}function Jb(n){var a;for(const r of Bc)if((a=n.options[r])!=null&&a.preload)return!0;return!1}const Bc=["component","errorComponent","pendingComponent","notFoundComponent"];function E2(n){return{input:({url:a})=>{for(const r of n)a=jh(r,a);return a},output:({url:a})=>{for(let r=n.length-1;r>=0;r--)a=e0(n[r],a);return a}}}function C2(n){const a=Zb(n.basepath),r=`/${a}`,l=n.caseSensitive?r:r.toLowerCase(),o=`${l}/`;return{input:({url:f})=>{const h=n.caseSensitive?f.pathname:f.pathname.toLowerCase();return h===l?f.pathname="/":h.startsWith(o)&&(f.pathname=f.pathname.slice(r.length)),f},output:({url:f})=>(f.pathname=Uc(["/",a,f.pathname]),f)}}function jh(n,a){var l;const r=(l=n==null?void 0:n.input)==null?void 0:l.call(n,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function e0(n,a){var l;const r=(l=n==null?void 0:n.output)==null?void 0:l.call(n,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function T2(n,a){const{createMutableStore:r,createReadonlyStore:l,batch:o,init:f}=a,h=new Map,m=new Map,g=new Map,p=r(n.status),x=r(n.loadedAt),v=r(n.isLoading),b=r(n.isTransitioning),S=r(n.location),N=r(n.resolvedLocation),R=r(n.statusCode),E=r(n.redirect),C=r([]),_=r([]),U=r([]),T=l(()=>Wd(h,C.get())),P=l(()=>Wd(m,_.get())),Y=l(()=>Wd(g,U.get())),M=l(()=>C.get()[0]),D=l(()=>C.get().some(X=>{var J;return((J=h.get(X))==null?void 0:J.get().status)==="pending"})),k=l(()=>{var X;return{locationHref:S.get().href,resolvedLocationHref:(X=N.get())==null?void 0:X.href,status:p.get()}}),q=l(()=>({status:p.get(),loadedAt:x.get(),isLoading:v.get(),isTransitioning:b.get(),matches:T.get(),location:S.get(),resolvedLocation:N.get(),statusCode:R.get(),redirect:E.get()})),$=Ul(64);function ee(X){let J=$.get(X);return J||(J=l(()=>{const pe=C.get();for(const te of pe){const O=h.get(te);if(O&&O.routeId===X)return O.get()}}),$.set(X,J)),J}const ne={status:p,loadedAt:x,isLoading:v,isTransitioning:b,location:S,resolvedLocation:N,statusCode:R,redirect:E,matchesId:C,pendingIds:_,cachedIds:U,matches:T,pendingMatches:P,cachedMatches:Y,firstId:M,hasPending:D,matchRouteDeps:k,matchStores:h,pendingMatchStores:m,cachedMatchStores:g,__store:q,getRouteMatchStore:ee,setMatches:ae,setPending:de,setCached:B};ae(n.matches),f==null||f(ne);function ae(X){Jd(X,h,C,r,o)}function de(X){Jd(X,m,_,r,o)}function B(X){Jd(X,g,U,r,o)}return ne}function Wd(n,a){const r=[];for(const l of a){const o=n.get(l);o&&r.push(o.get())}return r}function Jd(n,a,r,l,o){const f=n.map(m=>m.id),h=new Set(f);o(()=>{for(const m of a.keys())h.has(m)||a.delete(m);for(const m of n){const g=a.get(m.id);if(!g){const p=l(m);p.routeId=m.routeId,a.set(m.id,p);continue}g.routeId=m.routeId,g.get()!==m&&g.set(m)}Jj(r.get(),f)||r.set(f)})}var ys="__TSR_index",ox="popstate",cx="beforeunload";function _2(n){let a=n.getLocation();const r=new Set,l=h=>{a=n.getLocation(),r.forEach(m=>m({location:a,action:h}))},o=h=>{n.notifyOnIndexChange??!0?l(h):a=n.getLocation()},f=async({task:h,navigateOpts:m,...g})=>{var v,b;if((m==null?void 0:m.ignoreBlocker)??!1){h();return}const p=((v=n.getBlockers)==null?void 0:v.call(n))??[],x=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&p.length&&x)for(const S of p){const N=Kc(g.path,g.state);if(await S.blockerFn({currentLocation:a,nextLocation:N,action:g.type})){(b=n.onBlocked)==null||b.call(n);return}}h()};return{get location(){return a},get length(){return n.getLength()},subscribers:r,subscribe:h=>(r.add(h),()=>{r.delete(h)}),push:(h,m,g)=>{const p=a.state[ys];m=ux(p+1,m),f({task:()=>{n.pushState(h,m),l({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:h,state:m})},replace:(h,m,g)=>{const p=a.state[ys];m=ux(p,m),f({task:()=>{n.replaceState(h,m),l({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:h,state:m})},go:(h,m)=>{f({task:()=>{n.go(h),o({type:"GO",index:h})},navigateOpts:m,type:"GO"})},back:h=>{f({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>a.state[ys]!==0,createHref:h=>n.createHref(h),block:h=>{var g;if(!n.setBlockers)return()=>{};const m=((g=n.getBlockers)==null?void 0:g.call(n))??[];return n.setBlockers([...m,h]),()=>{var x,v;const p=((x=n.getBlockers)==null?void 0:x.call(n))??[];(v=n.setBlockers)==null||v.call(n,p.filter(b=>b!==h))}},flush:()=>{var h;return(h=n.flush)==null?void 0:h.call(n)},destroy:()=>{var h;return(h=n.destroy)==null?void 0:h.call(n)},notify:l}}function ux(n,a){a||(a={});const r=sm();return{...a,key:r,__TSR_key:r,[ys]:n}}function A2(n){var D,k;const a=typeof document<"u"?window:void 0,r=a.history.pushState,l=a.history.replaceState;let o=[];const f=()=>o,h=q=>o=q,m=(q=>q),g=(()=>Kc(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!((D=a.history.state)!=null&&D.__TSR_key)&&!((k=a.history.state)!=null&&k.key)){const q=sm();a.history.replaceState({[ys]:0,key:q,__TSR_key:q},"")}let p=g(),x,v=!1,b=!1,S=!1,N=!1;const R=()=>p;let E,C;const _=()=>{E&&(M._ignoreSubscribers=!0,(E.isPush?a.history.pushState:a.history.replaceState)(E.state,"",E.href),M._ignoreSubscribers=!1,E=void 0,C=void 0,x=void 0)},U=(q,$,ee)=>{const ne=m($);C||(x=p),p=Kc($,ee),E={href:ne,state:ee,isPush:(E==null?void 0:E.isPush)||q==="push"},C||(C=Promise.resolve().then(()=>_()))},T=q=>{p=g(),M.notify({type:q})},P=async()=>{if(b){b=!1;return}const q=g(),$=q.state[ys]-p.state[ys],ee=$===1,ne=$===-1,ae=!ee&&!ne||v;v=!1;const de=ae?"GO":ne?"BACK":"FORWARD",B=ae?{type:"GO",index:$}:{type:ne?"BACK":"FORWARD"};if(S)S=!1;else{const X=f();if(typeof document<"u"&&X.length){for(const J of X)if(await J.blockerFn({currentLocation:p,nextLocation:q,action:de})){b=!0,a.history.go(1),M.notify(B);return}}}p=g(),M.notify(B)},Y=q=>{if(N){N=!1;return}let $=!1;const ee=f();if(typeof document<"u"&&ee.length)for(const ne of ee){const ae=ne.enableBeforeUnload??!0;if(ae===!0){$=!0;break}if(typeof ae=="function"&&ae()===!0){$=!0;break}}if($)return q.preventDefault(),q.returnValue=""},M=_2({getLocation:R,getLength:()=>a.history.length,pushState:(q,$)=>U("push",q,$),replaceState:(q,$)=>U("replace",q,$),back:q=>(q&&(S=!0),N=!0,a.history.back()),forward:q=>{q&&(S=!0),N=!0,a.history.forward()},go:q=>{v=!0,a.history.go(q)},createHref:q=>m(q),flush:_,destroy:()=>{a.history.pushState=r,a.history.replaceState=l,a.removeEventListener(cx,Y,{capture:!0}),a.removeEventListener(ox,P)},onBlocked:()=>{x&&p!==x&&(p=x)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return a.addEventListener(cx,Y,{capture:!0}),a.addEventListener(ox,P),a.history.pushState=function(...q){const $=r.apply(a.history,q);return M._ignoreSubscribers||T("PUSH"),$},a.history.replaceState=function(...q){const $=l.apply(a.history,q);return M._ignoreSubscribers||T("REPLACE"),$},M}function M2(n){let a=n.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function Kc(n,a){const r=M2(n),l=r.indexOf("#"),o=r.indexOf("?"),f=sm();return{href:r,pathname:r.substring(0,l>0?o>0?Math.min(l,o):l:o>0?o:r.length),hash:l>-1?r.substring(l):"",search:o>-1?r.slice(o,l===-1?void 0:l):"",state:a||{[ys]:0,key:f,__TSR_key:f}}}function sm(){return(Math.random()+1).toString(36).substring(7)}function li(n,a){const r=a,l=n;return{fromLocation:r,toLocation:l,pathChanged:(r==null?void 0:r.pathname)!==l.pathname,hrefChanged:(r==null?void 0:r.href)!==l.href,hashChanged:(r==null?void 0:r.hash)!==l.hash}}const Rh=new WeakMap;var O2=class{constructor(n,a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=r=>r(),this.update=r=>{var x;const l=this.options,o=this.basepath??(l==null?void 0:l.basepath)??"/",f=this.basepath===void 0,h=l==null?void 0:l.rewrite;if(this.options={...l,...r},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=d2(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=A2()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let v;this.resolvePathCache=Ul(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=T2(z2(this.latestLocation),v),Y2(this)}let m=!1;const g=this.options.basepath??"/",p=this.options.rewrite;if(f||o!==g||h!==p){this.basepath=g;const v=[],b=Zb(g);b&&b!=="/"&&v.push(C2({basepath:g})),p&&v.push(p),this.rewrite=v.length===0?void 0:v.length===1?v[0]:E2(v),this.history&&this.updateLatestLocation(),m=!0}m&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((x=window.CSS)==null?void 0:x.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const r=i2(this.routeTree,this.options.caseSensitive,(l,o)=>{l.init({originalIndex:o})});return this.options.routeMasks&&t2(this.options.routeMasks,r.processedTree),r},this.subscribe=(r,l)=>{const o={eventType:r,fn:l};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=r=>{this.subscribers.forEach(l=>{l.eventType===r.type&&l.fn(r)})},this.parseLocation=(r,l)=>{const o=({pathname:g,search:p,hash:x,href:v,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const C=this.options.parseSearch(p),_=this.options.stringifySearch(C);return{href:g+_+x,publicHref:g+_+x,pathname:Tl(g).path,external:!1,searchStr:_,search:Ys(l==null?void 0:l.search,C),hash:Tl(x.slice(1)).path,state:Zs(l==null?void 0:l.state,b)}}const S=new URL(v,this.origin),N=jh(this.rewrite,S),R=this.options.parseSearch(N.search),E=this.options.stringifySearch(R);return N.search=E,{href:N.href.replace(N.origin,""),publicHref:v,pathname:Tl(N.pathname).path,external:!!this.rewrite&&N.origin!==this.origin,searchStr:E,search:Ys(l==null?void 0:l.search,R),hash:Tl(N.hash.slice(1)).path,state:Zs(l==null?void 0:l.state,b)}},f=o(r),{__tempLocation:h,__tempKey:m}=f.state;if(h&&(!m||m===this.tempLocationKey)){const g=o(h);return g.state.key=f.state.key,g.state.__TSR_key=f.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:f}}return f},this.resolvePathWithBase=(r,l)=>f2({base:r,to:l.includes("//")?am(l):l,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(r,l,o)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:l},o):this.matchRoutesInternal(r,l),this.getMatchedRoutes=r=>L2({pathname:r,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=r=>{const l=this.getMatch(r);l&&(l.abortController.abort(),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(r=>{this.cancelMatch(r)}),this.stores.matchesId.get().forEach(r=>{var o;if(this.stores.pendingMatchStores.has(r))return;const l=(o=this.stores.matchStores.get(r))==null?void 0:o.get();l&&(l.status==="pending"||l.isFetching==="loader")&&this.cancelMatch(r)})},this.buildLocation=r=>{const l=(f={})=>{var $,ee;const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(h);f.from;const g=f.unsafeRelative==="path"?h.pathname:f.from??m.fullPath,p=f.to?`${f.to}`:void 0,x=m.search,v=Object.assign(Object.create(null),m.params),b=(p==null?void 0:p.charCodeAt(0))===47?"/":this.resolvePathWithBase(g,"."),S=p?this.resolvePathWithBase(b,p):b,N=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?v:Object.assign(v,Ks(f.params,v)),R=this.routesByPath[Ra(S)];let E;if(R)E=this.getRouteBranch(R);else if(S.includes("$"))E=[];else{const ne=this.getMatchedRoutes(S);E=ne.matchedRoutes,this.options.notFoundRoute&&(!ne.foundRoute||ne.foundRoute.path!=="/"&&ne.routeParams["**"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&Qb(N))for(const ne of E){const ae=(($=ne.options.params)==null?void 0:$.stringify)??ne.options.stringifyParams;if(ae)try{Object.assign(N,ae(N))}catch{}}const C=r.leaveParams?S:Tl(tx({path:S,params:N,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let _=x;if(r._includeValidateSearch&&((ee=this.options.search)!=null&&ee.strict)){const ne={};E.forEach(ae=>{if(ae.options.validateSearch)try{Object.assign(ne,Hc(ae.options.validateSearch,{...ne,..._}))}catch{}}),_=ne}_=k2({search:_,dest:f,destRoutes:E,_includeValidateSearch:r._includeValidateSearch}),_=Ys(x,_);const U=this.options.stringifySearch(_),T=f.hash===!0?h.hash:f.hash?Ks(f.hash,h.hash):void 0,P=T?`#${T}`:"";let Y=f.state===!0?h.state:f.state?Ks(f.state,h.state):{};Y=Zs(h.state,Y);const M=`${C}${U}${P}`;let D,k,q=!1;if(this.rewrite){const ne=new URL(M,this.origin),ae=e0(this.rewrite,ne);D=ne.href.replace(ne.origin,""),ae.origin!==this.origin?(k=ae.href,q=!0):k=ae.pathname+ae.search+ae.hash}else D=Wj(M),k=D;return{publicHref:k,href:D,pathname:C,search:_,searchStr:U,state:Y,hash:T??"",external:q,unmaskOnReload:f.unmaskOnReload}},o=(f={},h)=>{const m=l(f);let g=h?l(h):void 0;if(!g){const p=Object.create(null);if(this.options.routeMasks){const x=n2(m.pathname,this.processedTree);if(x){Object.assign(p,x.rawParams);const{from:v,params:b,...S}=x.route,N=b===!1||b===null?Object.create(null):(b??!0)===!0?p:Object.assign(p,Ks(b,p));h={from:r.from,...S,params:N},g=l(h)}}}return g&&(m.maskedLocation=g),m};return r.mask?o(r,{from:r.from,...r.mask}):o(r)},this.commitLocation=async({viewTransition:r,ignoreBlocker:l,...o})=>{let f;const h=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(v=>{o.state[v]=this.latestLocation.state[v]});const x=lr(o.state,this.latestLocation.state);return p.forEach(v=>{delete o.state[v]}),x},m=Ra(this.latestLocation.href)===Ra(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=Ri(()=>{g==null||g.resolve(),g=void 0}),m&&h())this.load();else{let{maskedLocation:p,hashScrollIntoView:x,...v}=o;p&&(v={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=x??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,f=o.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:l})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(f?{action:{type:f}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:l,hashScrollIntoView:o,viewTransition:f,ignoreBlocker:h,href:m,...g}={})=>{if(m){const v=this.history.location.state.__TSR_index,b=Kc(m,{__TSR_index:r?v:v+1}),S=new URL(b.pathname,this.origin);g.to=jh(this.rewrite,S).pathname,g.search=this.options.parseSearch(b.search),g.hash=b.hash.slice(1)}const p=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const x=this.commitLocation({...p,viewTransition:f,replace:r,resetScroll:l,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),x},this.navigate=async({to:r,reloadDocument:l,href:o,publicHref:f,...h})=>{var g,p;let m=!1;if(o)try{new URL(`${o}`),m=!0}catch{}if(m&&!l&&(l=!0),l){if(r!==void 0||!o){const v=this.buildLocation({to:r,...h});o=o??v.publicHref,f=f??v.publicHref}const x=!m&&f?f:o;if(Xc(x,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const v=((p=(g=this.history).getBlockers)==null?void 0:p.call(g))??[];for(const b of v)if(b!=null&&b.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(x):window.location.href=x,Promise.resolve()}return this.buildAndCommitLocation({...h,href:o,to:r,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const r=this.matchRoutes(this.latestLocation),l=this.stores.cachedMatches.get().filter(o=>!r.some(f=>f.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(r),this.stores.setCached(l)})},this.load=async r=>{var p;const l=(p=r==null?void 0:r.action)==null?void 0:p.type;let o,f,h;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(h=new Promise(x=>{this.startTransition(async()=>{var v;try{this.beforeLoad(),l?Rh.set(this.latestLocation,l):Rh.delete(this.latestLocation);const b=this.latestLocation,S=li(b,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await ix({router:this,sync:r==null?void 0:r.sync,forceStaleReload:m.href===b.href,matches:this.stores.pendingMatches.get(),location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var _,U;let N=null,R=null,E=null,C=null;this.batch(()=>{const T=this.stores.pendingMatches.get(),P=T.length,Y=this.stores.matches.get();N=P?Y.filter(k=>!this.stores.pendingMatchStores.has(k.id)):null;const M=new Set;for(const k of this.stores.pendingMatchStores.values())k.routeId&&M.add(k.routeId);const D=new Set;for(const k of this.stores.matchStores.values())k.routeId&&D.add(k.routeId);R=P?Y.filter(k=>!M.has(k.routeId)):null,E=P?T.filter(k=>!D.has(k.routeId)):null,C=P?T.filter(k=>D.has(k.routeId)):Y,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),P&&(this.stores.setMatches(T),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...N.filter(k=>k.status!=="error"&&k.status!=="notFound"&&k.status!=="redirected")]),this.clearExpiredCache())});for(const[T,P]of[[R,"onLeave"],[E,"onEnter"],[C,"onStay"]])if(T)for(const Y of T)(U=(_=this.looseRoutesById[Y.routeId].options)[P])==null||U.call(_,Y)})})}})}catch(b){Ft(b)?(o=b,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Ot(b)&&(f=b);const S=o?o.status:f?404:this.stores.matches.get().some(N=>N.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(S),this.stores.redirect.set(o)})}this.latestLoadPromise===h&&((v=this.commitLocationPromise)==null||v.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),x()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.matches.get().some(x=>x.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.set(g)},this.startViewTransition=r=>{const l=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,l&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof l=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.stores.resolvedLocation.get(),m=typeof l.types=="function"?l.types(li(f,h)):l.types;if(m===!1){r();return}o={update:r,types:m}}else o=r;document.startViewTransition(o)}else r()},this.updateMatch=(r,l)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(r);if(o){o.set(l);return}const f=this.stores.matchStores.get(r);if(f){f.set(l);return}const h=this.stores.cachedMatchStores.get(r);if(h){const m=l(h.get());m.status==="redirected"?this.stores.cachedMatchStores.delete(r)&&this.stores.cachedIds.set(g=>g.filter(p=>p!==r)):h.set(m)}})},this.getMatch=r=>{var l,o,f;return((l=this.stores.cachedMatchStores.get(r))==null?void 0:l.get())??((o=this.stores.pendingMatchStores.get(r))==null?void 0:o.get())??((f=this.stores.matchStores.get(r))==null?void 0:f.get())},this.invalidate=r=>{const l=o=>{var f;return((f=r==null?void 0:r.filter)==null?void 0:f.call(r,o))??!0?{...o,invalid:!0,...r!=null&&r.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(l)),this.stores.setCached(this.stores.cachedMatches.get().map(l)),this.stores.setPending(this.stores.pendingMatches.get().map(l))}),this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.getParsedLocationHref=r=>r.publicHref||"/",this.resolveRedirect=r=>{const l=r.headers.get("Location");if(!r.options.href||r.options._builtLocation){const o=r.options._builtLocation??this.buildLocation(r.options),f=this.getParsedLocationHref(o);r.options.href=f,r.headers.set("Location",f)}else if(l)try{const o=new URL(l);if(this.origin&&o.origin===this.origin){const f=o.pathname+o.search+o.hash;r.options.href=f,r.headers.set("Location",f)}}catch{}if(r.options.href&&!r.options._builtLocation&&Xc(r.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return r.headers.get("Location")||r.headers.set("Location",r.options.href),r},this.clearCache=r=>{const l=r==null?void 0:r.filter;l!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!l(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const r=Date.now(),l=o=>{const f=this.looseRoutesById[o.routeId];if(!f.options.loader)return!0;const h=(o.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:r-o.updatedAt>=h};this.clearCache({filter:l})},this.loadRouteChunk=Bl,this.preloadRoute=async r=>{const l=r._builtLocation??this.buildLocation(r);let o=this.matchRoutes(l,{throwOnError:!0,preload:!0,dest:r});const f=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),h=new Set([...f,...this.stores.cachedIds.get()]),m=o.filter(g=>!h.has(g.id));if(m.length){const g=this.stores.cachedMatches.get();this.stores.setCached([...g,...m])}try{return o=await ix({router:this,matches:o,location:l,preload:!0,updateMatch:(g,p)=>{f.has(g)?o=o.map(x=>x.id===g?p(x):x):this.updateMatch(g,p)}}),o}catch(g){if(Ft(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:l});Ot(g)||console.error(g);return}},this.matchRoute=(r,l)=>{const o={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},f=this.buildLocation(o);if(l!=null&&l.pending&&this.stores.status.get()!=="pending")return!1;const h=((l==null?void 0:l.pending)===void 0?!this.stores.isLoading.get():l.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),m=a2(f.pathname,(l==null?void 0:l.caseSensitive)??!1,(l==null?void 0:l.fuzzy)??!1,h.pathname,this.processedTree);return!m||r.params&&!lr(m.rawParams,r.params,{partial:!0})?!1:(l==null?void 0:l.includeSearch)??!0?lr(h.search,f.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(r=>r.status==="notFound"||r.globalNotFound),this.getStoreConfig=a,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??g2,parseSearch:n.parseSearch??p2,protocolAllowlist:n.protocolAllowlist??$j}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:n,routesByPath:a,processedTree:r}){this.routesById=n,this.routesByPath=a,this.processedTree=r;const l=this.options.notFoundRoute;l&&(l.init({originalIndex:99999999999}),this.routesById[l.id]=l)}getRouteBranch(n){let a=this.routeBranchCache.get(n);return a||(a=Ib(n),this.routeBranchCache.set(n,a)),a}get looseRoutesById(){return this.routesById}getParentContext(n){return n!=null&&n.id?n.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(n,a){var x,v;const r=this.getMatchedRoutes(n.pathname),{foundRoute:l,routeParams:o}=r;let{matchedRoutes:f}=r,h=!1;(l?l.path!=="/"&&o["**"]:Ra(n.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:h=!0);const m=h?B2(this.options.notFoundMode,f):void 0,g=new Array(f.length),p=new Map;for(const b of this.stores.matchStores.values())b.routeId&&p.set(b.routeId,b.get());for(let b=0;b<f.length;b++){const S=f[b],N=g[b-1];let R,E,C;{const ae=(N==null?void 0:N.search)??n.search,de=(N==null?void 0:N._strictSearch)??void 0;try{const B=Hc(S.options.validateSearch,{...ae})??void 0;R={...ae,...B},E={...de,...B},C=void 0}catch(B){let X=B;if(B instanceof Zc||(X=new Zc(B.message,{cause:B})),a!=null&&a.throwOnError)throw X;R=ae,E={},C=X}}const _=((v=(x=S.options).loaderDeps)==null?void 0:v.call(x,{search:R}))??"",U=_?JSON.stringify(_):"",{interpolatedPath:T,usedParams:P}=tx({path:S.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),Y=S.id+T+U,M=this.getMatch(Y),D=p.get(S.id),k=(M==null?void 0:M._strictParams)??P;let q;if(!M)try{fx(S,k)}catch(ae){if(Ot(ae)||Ft(ae)?q=ae:q=new D2(ae.message,{cause:ae}),a!=null&&a.throwOnError)throw q}Object.assign(o,k);const $=D?"stay":"enter";let ee;if(M)ee={...M,cause:$,params:(D==null?void 0:D.params)??o,_strictParams:k,search:Ys(D?D.search:M.search,R),_strictSearch:E};else{const ae=S.options.loader||S.options.beforeLoad||S.lazyFn||Jb(S)?"pending":"success";ee={id:Y,ssr:S.options.ssr,index:b,routeId:S.id,params:(D==null?void 0:D.params)??o,_strictParams:k,pathname:T,updatedAt:Date.now(),search:D?Ys(D.search,R):R,_strictSearch:E,searchError:void 0,status:ae,isFetching:!1,error:void 0,paramsError:q,__routeContext:void 0,_nonReactive:{loadPromise:Ri()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:$,loaderDeps:D?Zs(D.loaderDeps,_):_,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:S.options.staticData||{},fullPath:S.fullPath}}a!=null&&a.preload||(ee.globalNotFound=m===S.id),ee.searchError=C;const ne=this.getParentContext(N);ee.context={...ne,...ee.__routeContext,...ee.__beforeLoadContext},g[b]=ee}for(let b=0;b<g.length;b++){const S=g[b],N=this.looseRoutesById[S.routeId],R=this.getMatch(S.id),E=p.get(S.routeId);if(S.params=E?Ys(E.params,o):o,!R){const C=g[b-1],_=this.getParentContext(C);if(N.options.context){const U={deps:S.loaderDeps,params:S.params,context:_??{},location:n,navigate:T=>this.navigate({...T,_fromLocation:n}),buildLocation:this.buildLocation,cause:S.cause,abortController:S.abortController,preload:!!S.preload,matches:g,routeId:N.id};S.__routeContext=N.options.context(U)??void 0}S.context={..._,...S.__routeContext,...S.__beforeLoadContext}}}return g}matchRoutesLightweight(n){var p;const{matchedRoutes:a,routeParams:r}=this.getMatchedRoutes(n.pathname),l=Ll(a),o={...n.search};for(const x of a)try{Object.assign(o,Hc(x.options.validateSearch,o))}catch{}const f=Ll(this.stores.matchesId.get()),h=f&&((p=this.stores.matchStores.get(f))==null?void 0:p.get()),m=h&&h.routeId===l.id&&h.pathname===n.pathname;let g;if(m)g=h.params;else{const x=Object.assign(Object.create(null),r);for(const v of a)try{fx(v,x)}catch{}g=x}return{matchedRoutes:a,fullPath:l.fullPath,search:o,params:g}}},Zc=class extends Error{},D2=class extends Error{};function z2(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function Hc(n,a){if(n==null)return{};if("~standard"in n){const r=n["~standard"].validate(a);if(r instanceof Promise)throw new Zc("Async validation not supported");if(r.issues)throw new Zc(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in n?n.parse(a):typeof n=="function"?n(a):{}}function L2({pathname:n,routesById:a,processedTree:r}){const l=Object.create(null),o=Ra(n);let f;const h=s2(o,r,!0);return h&&(f=h.route,Object.assign(l,h.rawParams)),{matchedRoutes:(h==null?void 0:h.branch)||[a.__root__],routeParams:l,foundRoute:f}}function k2({search:n,dest:a,destRoutes:r,_includeValidateSearch:l}){return U2(r)(n,a,l??!1)}function U2(n){var o;const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of n){if("search"in f.options)(o=f.options.search)!=null&&o.middlewares&&a.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:m,next:g})=>{let p=m;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(p=f.options.preSearchFilters.reduce((v,b)=>b(v),m));const x=g(p);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((v,b)=>b(v),x):x};a.middlewares.push(h)}if(f.options.validateSearch){const h=({search:m,next:g})=>{const p=g(m);if(!a._includeValidateSearch)return p;try{return{...p,...Hc(f.options.validateSearch,p)??void 0}}catch{return p}};a.middlewares.push(h)}}const r=({search:f})=>{const h=a.dest;return h.search?h.search===!0?f:Ks(h.search,f):{}};a.middlewares.push(r);const l=(f,h,m)=>{if(f>=m.length)return h;const g=m[f];return g({search:h,next:x=>l(f+1,x,m)})};return function(h,m,g){return a.dest=m,a._includeValidateSearch=g,l(0,h,a.middlewares)}}function B2(n,a){if(n!=="root")for(let r=a.length-1;r>=0;r--){const l=a[r];if(l.children)return l.id}return or}function fx(n,a){var l;const r=((l=n.options.params)==null?void 0:l.parse)??n.options.parseParams;if(r){const o=r(a);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(a,o)}}function H2(){try{return sessionStorage}catch{return}}const P2="tsr-scroll-restoration-v1_3",oi=H2();function q2(){try{return JSON.parse((oi==null?void 0:oi.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function G2(){try{oi==null||oi.setItem(P2,JSON.stringify(as))}catch{}}const as=q2(),dx="data-scroll-restoration-id",Q2=n=>n.state.__TSR_key||n.href;function V2(n){const a=n.getAttribute(dx);if(a)return`[${dx}="${a}"]`;let r="",l=n,o;for(;o=l.parentNode;){let f=1,h=l;for(;h=h.previousElementSibling;)f++;const m=`${l.localName}:nth-child(${f})`;r=r?`${m} > ${r}`:m,l=o}return r}let Rc=!1;const ri="window";function Nh(n){try{return typeof n=="function"?n():document.querySelector(n)}catch{}}function hx(n){const a=[];for(const r of n){if(r===ri)continue;const l=Nh(r);l&&a.push(l)}return a}function Y2(n,a){if(n.options.scrollRestoration&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup)return;n.isScrollRestorationSetup=!0,Rc=!1;const r=n.options.getScrollRestorationKey||Q2,l=new Map,o=(m,g,p)=>{const x=l.get(m)||{};x.scrollX=g,x.scrollY=p,l.set(m,x)};history.scrollRestoration="manual";const f=m=>{if(!(Rc||!n.isScrollRestoring))if(m.target===document)o(ri,scrollX,scrollY);else{const g=m.target;o(g,g.scrollLeft,g.scrollTop)}},h=m=>{if(!n.isScrollRestoring)return;const g=as[m]||(as[m]={});for(const[p,x]of l)p===ri?g[ri]=x:p.isConnected&&(g[V2(p)]=x)};document.addEventListener("scroll",f,!0),n.subscribe("onBeforeLoad",m=>{m.fromLocation&&h(r(m.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{h(r(n.stores.resolvedLocation.get()??n.stores.location.get())),G2()}),n.subscribe("onRendered",m=>{var N;const g=n.options.scrollRestorationBehavior,p=n.options.scrollToTopSelectors,x=n.resetNextScroll;let v;if(l.clear(),x||(n.resetNextScroll=!0),typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))return;const b=r(m.toLocation),S=m.fromLocation&&r(m.fromLocation);if(n.isScrollRestoring&&S&&S!==b){const R=as[S];if(R){let E=as[b];for(const C in R){if(C===ri){if(x)continue}else{const _=Nh(C);if(!_||x&&p&&(v??(v=hx(p)),v.includes(_)))continue}E||(E=as[b]={}),E[C]??(E[C]=R[C])}}}Rc=!0;try{const R=m.toLocation.hash,E=m.toLocation.state.__hashScrollIntoViewOptions??!0;let C=!1;if(x){const _=Rh.get(m.toLocation),U=R&&E&&(_==="PUSH"||_==="REPLACE"),T=n.isScrollRestoring?as[b]:void 0;if(T)for(const P in T){const{scrollX:Y,scrollY:M}=T[P];if(P===ri){if(U)continue;scrollTo({top:M,left:Y,behavior:g}),C=!0}else{const D=Nh(P);D&&(D.scrollLeft=Y,D.scrollTop=M)}}if(!C&&!R){const P={top:0,left:0,behavior:g};if(scrollTo(P),p){v??(v=hx(p));for(const Y of v)Y.scrollTo(P)}}}!C&&R&&E&&((N=document.getElementById(R))==null||N.scrollIntoView(E))}finally{Rc=!1}})}const X2="Error preloading route! ☝️";var t0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(n){if(this.init=a=>{var g,p;this.originalIndex=a.originalIndex;const r=this.options,l=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(p=(g=this.options).getParentRoute)==null?void 0:p.call(g),l?this._path=or:this.parentRoute||Na();let o=l?or:r==null?void 0:r.path;o&&o!=="/"&&(o=Kb(o));const f=(r==null?void 0:r.id)||o;let h=l?or:Uc([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=Uc(["/",h]));const m=h==="__root__"?"/":Uc([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=m,this._to=Ra(m)},this.addChildren=a=>this._addFileChildren(a),this._addFileChildren=a=>(Array.isArray(a)&&(this.children=a),typeof a=="object"&&a!==null&&(this.children=Object.values(a)),this),this._addFileTypes=()=>this,this.updateLoader=a=>(Object.assign(this.options,a),this),this.update=a=>(Object.assign(this.options,a),this),this.lazy=a=>(this.lazyFn=a,this),this.redirect=a=>x2({from:this.fullPath,...a}),this.options=n||{},this.isRoot=!(n!=null&&n.getParentRoute),n!=null&&n.id&&(n!=null&&n.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},I2=class extends t0{constructor(n){super(n)}};function rm(n){const a=n.errorComponent??im;return u.jsx(K2,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:r,reset:l})=>r?w.createElement(a,{error:r,reset:l}):n.children})}var K2=class extends w.Component{constructor(...n){super(...n),this.state={error:null}}static getDerivedStateFromProps(n,a){const r=n.getResetKey();return a.error&&a.resetKey!==r?{resetKey:r,error:null}:{resetKey:r}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidCatch(n,a){this.props.onCatch&&this.props.onCatch(n,a)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function im({error:n}){const[a,r]=w.useState(!1);return u.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[u.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),u.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(l=>!l),children:a?"Hide Error":"Show Error"})]}),u.jsx("div",{style:{height:".25rem"}}),a?u.jsx("div",{children:u.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?u.jsx("code",{children:n.message}):null})}):null]})}function Z2({children:n,fallback:a=null}){return n0()?u.jsx(ur.Fragment,{children:n}):u.jsx(ur.Fragment,{children:a})}function n0(){return ur.useSyncExternalStore(F2,()=>!0,()=>!1)}function F2(){return()=>{}}var a0=w.createContext(null);function hn(n){return w.useContext(a0)}var fu=w.createContext(void 0),$2=w.createContext(void 0),$e=(n=>(n[n.None=0]="None",n[n.Mutable=1]="Mutable",n[n.Watching=2]="Watching",n[n.RecursedCheck=4]="RecursedCheck",n[n.Recursed=8]="Recursed",n[n.Dirty=16]="Dirty",n[n.Pending=32]="Pending",n))($e||{});function W2({update:n,notify:a,unwatched:r}){return{link:l,unlink:o,propagate:f,checkDirty:h,shallowPropagate:m};function l(p,x,v){const b=x.depsTail;if(b!==void 0&&b.dep===p)return;const S=b!==void 0?b.nextDep:x.deps;if(S!==void 0&&S.dep===p){S.version=v,x.depsTail=S;return}const N=p.subsTail;if(N!==void 0&&N.version===v&&N.sub===x)return;const R=x.depsTail=p.subsTail={version:v,dep:p,sub:x,prevDep:b,nextDep:S,prevSub:N,nextSub:void 0};S!==void 0&&(S.prevDep=R),b!==void 0?b.nextDep=R:x.deps=R,N!==void 0?N.nextSub=R:p.subs=R}function o(p,x=p.sub){const v=p.dep,b=p.prevDep,S=p.nextDep,N=p.nextSub,R=p.prevSub;return S!==void 0?S.prevDep=b:x.depsTail=b,b!==void 0?b.nextDep=S:x.deps=S,N!==void 0?N.prevSub=R:v.subsTail=R,R!==void 0?R.nextSub=N:(v.subs=N)===void 0&&r(v),S}function f(p){let x=p.nextSub,v;e:do{const b=p.sub;let S=b.flags;if(S&60?S&12?S&4?!(S&48)&&g(p,b)?(b.flags=S|40,S&=1):S=0:b.flags=S&-9|32:S=0:b.flags=S|32,S&2&&a(b),S&1){const N=b.subs;if(N!==void 0){const R=(p=N).nextSub;R!==void 0&&(v={value:x,prev:v},x=R);continue}}if((p=x)!==void 0){x=p.nextSub;continue}for(;v!==void 0;)if(p=v.value,v=v.prev,p!==void 0){x=p.nextSub;continue e}break}while(!0)}function h(p,x){let v,b=0,S=!1;e:do{const N=p.dep,R=N.flags;if(x.flags&16)S=!0;else if((R&17)===17){if(n(N)){const E=N.subs;E.nextSub!==void 0&&m(E),S=!0}}else if((R&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(v={value:p,prev:v}),p=N.deps,x=N,++b;continue}if(!S){const E=p.nextDep;if(E!==void 0){p=E;continue}}for(;b--;){const E=x.subs,C=E.nextSub!==void 0;if(C?(p=v.value,v=v.prev):p=E,S){if(n(x)){C&&m(E),x=p.sub;continue}S=!1}else x.flags&=-33;x=p.sub;const _=p.nextDep;if(_!==void 0){p=_;continue e}}return S}while(!0)}function m(p){do{const x=p.sub,v=x.flags;(v&48)===32&&(x.flags=v|16,(v&6)===2&&a(x))}while((p=p.nextSub)!==void 0)}function g(p,x){let v=x.depsTail;for(;v!==void 0;){if(v===p)return!0;v=v.prevDep}return!1}}function J2(n,a,r){var f,h,m;const l=typeof n=="object",o=l?n:void 0;return{next:(f=l?n.next:n)==null?void 0:f.bind(o),error:(h=l?n.error:a)==null?void 0:h.bind(o),complete:(m=l?n.complete:r)==null?void 0:m.bind(o)}}const Eh=[];let Pc=0;const{link:mx,unlink:eR,propagate:tR,checkDirty:s0,shallowPropagate:px}=W2({update(n){return n._update()},notify(n){Eh[Ch++]=n,n.flags&=~$e.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=$e.Mutable|$e.Dirty,Fc(n))}});let Nc=0,Ch=0,Vn,Th=0;function r0(n){try{++Th,n()}finally{--Th||i0()}}function Fc(n){const a=n.depsTail;let r=a!==void 0?a.nextDep:n.deps;for(;r!==void 0;)r=eR(r,n)}function i0(){if(!(Th>0)){for(;Nc<Ch;){const n=Eh[Nc];Eh[Nc++]=void 0,n.notify()}Nc=0,Ch=0}}function gx(n,a){const r=typeof n=="function",l=n,o={_snapshot:r?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:r?$e.None:$e.Mutable,get(){return Vn!==void 0&&mx(o,Vn,Pc),o._snapshot},subscribe(f){const h=J2(f),m={current:!1},g=nR(()=>{var p;o.get(),m.current?(p=h.next)==null||p.call(h,o._snapshot):m.current=!0});return{unsubscribe:()=>{g.stop()}}},_update(f){const h=Vn,m=(a==null?void 0:a.compare)??Object.is;if(r)Vn=o,++Pc,o.depsTail=void 0;else if(f===void 0)return!1;r&&(o.flags=$e.Mutable|$e.RecursedCheck);try{const g=o._snapshot,p=typeof f=="function"?f(g):f===void 0&&r?l(g):f;return g===void 0||!m(g,p)?(o._snapshot=p,!0):!1}finally{Vn=h,r&&(o.flags&=~$e.RecursedCheck),Fc(o)}}};return r?(o.flags=$e.Mutable|$e.Dirty,o.get=function(){const f=o.flags;if(f&$e.Dirty||f&$e.Pending&&s0(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&px(h)}}else f&$e.Pending&&(o.flags=f&~$e.Pending);return Vn!==void 0&&mx(o,Vn,Pc),o._snapshot}):o.set=function(f){if(o._update(f)){const h=o.subs;h!==void 0&&(tR(h),px(h),i0())}},o}function nR(n){const a=()=>{const l=Vn;Vn=r,++Pc,r.depsTail=void 0,r.flags=$e.Watching|$e.RecursedCheck;try{return n()}finally{Vn=l,r.flags&=~$e.RecursedCheck,Fc(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:$e.Watching|$e.RecursedCheck,notify(){const l=this.flags;l&$e.Dirty||l&$e.Pending&&s0(this.deps,this)?a():this.flags=$e.Watching},stop(){this.flags=$e.None,this.depsTail=void 0,Fc(this)}};return a(),r}var eh={exports:{}},th={},nh={exports:{}},ah={};/**
50
- * @license React
51
- * use-sync-external-store-shim.production.js
52
- *
53
- * Copyright (c) Meta Platforms, Inc. and affiliates.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE file in the root directory of this source tree.
57
- */var vx;function aR(){if(vx)return ah;vx=1;var n=$l();function a(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var r=typeof Object.is=="function"?Object.is:a,l=n.useState,o=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function m(v,b){var S=b(),N=l({inst:{value:S,getSnapshot:b}}),R=N[0].inst,E=N[1];return f(function(){R.value=S,R.getSnapshot=b,g(R)&&E({inst:R})},[v,S,b]),o(function(){return g(R)&&E({inst:R}),v(function(){g(R)&&E({inst:R})})},[v]),h(S),S}function g(v){var b=v.getSnapshot;v=v.value;try{var S=b();return!r(v,S)}catch{return!0}}function p(v,b){return b()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return ah.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,ah}var yx;function sR(){return yx||(yx=1,nh.exports=aR()),nh.exports}/**
58
- * @license React
59
- * use-sync-external-store-shim/with-selector.production.js
60
- *
61
- * Copyright (c) Meta Platforms, Inc. and affiliates.
62
- *
63
- * This source code is licensed under the MIT license found in the
64
- * LICENSE file in the root directory of this source tree.
65
- */var xx;function rR(){if(xx)return th;xx=1;var n=$l(),a=sR();function r(p,x){return p===x&&(p!==0||1/p===1/x)||p!==p&&x!==x}var l=typeof Object.is=="function"?Object.is:r,o=a.useSyncExternalStore,f=n.useRef,h=n.useEffect,m=n.useMemo,g=n.useDebugValue;return th.useSyncExternalStoreWithSelector=function(p,x,v,b,S){var N=f(null);if(N.current===null){var R={hasValue:!1,value:null};N.current=R}else R=N.current;N=m(function(){function C(Y){if(!_){if(_=!0,U=Y,Y=b(Y),S!==void 0&&R.hasValue){var M=R.value;if(S(M,Y))return T=M}return T=Y}if(M=T,l(U,Y))return M;var D=b(Y);return S!==void 0&&S(M,D)?(U=Y,M):(U=Y,T=D)}var _=!1,U,T,P=v===void 0?null:v;return[function(){return C(x())},P===null?void 0:function(){return C(P())}]},[x,v,b,S]);var E=o(p,N[0],N[1]);return h(function(){R.hasValue=!0,R.value=E},[E]),g(E),E},th}var bx;function iR(){return bx||(bx=1,eh.exports=rR()),eh.exports}var lR=iR();function oR(n,a){return n===a}function $t(n,a,r=oR){const l=w.useCallback(h=>{if(!n)return()=>{};const{unsubscribe:m}=n.subscribe(h);return m},[n]),o=w.useCallback(()=>n==null?void 0:n.get(),[n]);return lR.useSyncExternalStoreWithSelector(l,o,o,a,r)}var cR={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function hr(n){const a=hn(),r=w.useContext(n.from?$2:fu),l=n.from??r,o=l?n.from?a.stores.getRouteMatchStore(l):a.stores.matchStores.get(l):void 0,f=w.useRef(void 0);return $t(o??cR,h=>{if((n.shouldThrow??!0)&&!h&&Na(),h===void 0)return;const m=n.select?n.select(h):h;if(n.structuralSharing??a.options.defaultStructuralSharing){const g=Zs(f.current,m);return f.current=g,g}return m})}function l0(n){return hr({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.loaderData):a.loaderData})}function o0(n){const{select:a,...r}=n;return hr({...r,select:l=>a?a(l.loaderDeps):l.loaderDeps})}function du(n){return hr({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:a=>{const r=n.strict===!1?a.params:a._strictParams;return n.select?n.select(r):r}})}function _i(n){return hr({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.search):a.search})}function lm(n){const a=hn();return w.useCallback(r=>a.navigate({...r,from:r.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,a])}function c0(n){return hr({...n,select:a=>n.select?n.select(a.context):a.context})}var hu=Pb();const uR=tm(hu);function fR(n,a){const r=hn(),l=Ij(a),{activeProps:o,inactiveProps:f,activeOptions:h,to:m,preload:g,preloadDelay:p,preloadIntentProximity:x,hashScrollIntoView:v,replace:b,startTransition:S,resetScroll:N,viewTransition:R,children:E,target:C,disabled:_,style:U,className:T,onClick:P,onBlur:Y,onFocus:M,onMouseEnter:D,onMouseLeave:k,onTouchStart:q,ignoreBlocker:$,params:ee,search:ne,hash:ae,state:de,mask:B,reloadDocument:X,unsafeRelative:J,from:pe,_fromLocation:te,...O}=n,Z=n0(),se=w.useMemo(()=>n,[r,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),re=$t(r.stores.location,Qe=>Qe,(Qe,bt)=>Qe.href===bt.href),ie=w.useMemo(()=>{const Qe={_fromLocation:re,...se};return r.buildLocation(Qe)},[r,re,se]),he=ie.maskedLocation?ie.maskedLocation.publicHref:ie.publicHref,Se=ie.maskedLocation?ie.maskedLocation.external:ie.external,Ue=w.useMemo(()=>vR(he,Se,r.history,_),[_,Se,he,r.history]),ye=w.useMemo(()=>{if(Ue!=null&&Ue.external)return Xc(Ue.href,r.protocolAllowlist)?void 0:Ue.href;if(!yR(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),Xc(m,r.protocolAllowlist)?void 0:m}catch{}},[m,Ue,r.protocolAllowlist]),Dt=w.useMemo(()=>{if(ye)return!1;if(h!=null&&h.exact){if(!u2(re.pathname,ie.pathname,r.basepath))return!1}else{const Qe=Ic(re.pathname,r.basepath),bt=Ic(ie.pathname,r.basepath);if(!(Qe.startsWith(bt)&&(Qe.length===bt.length||Qe[bt.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!lr(re.search,ie.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?Z&&re.hash===ie.hash:!0},[h==null?void 0:h.exact,h==null?void 0:h.explicitUndefined,h==null?void 0:h.includeHash,h==null?void 0:h.includeSearch,re,ye,Z,ie.hash,ie.pathname,ie.search,r.basepath]),xt=Dt?Ks(o,{})??dR:sh,Tt=Dt?sh:Ks(f,{})??sh,zt=[T,xt.className,Tt.className].filter(Boolean).join(" "),mt=(U||xt.style||Tt.style)&&{...U,...xt.style,...Tt.style},[Es,Aa]=w.useState(!1),pr=w.useRef(!1),Cn=n.reloadDocument||ye?!1:g??r.options.defaultPreload,mn=p??r.options.defaultPreloadDelay??0,Tn=w.useCallback(()=>{r.preloadRoute({...se,_builtLocation:ie}).catch(Qe=>{console.warn(Qe),console.warn(X2)})},[r,se,ie]);Xj(l,w.useCallback(Qe=>{Qe!=null&&Qe.isIntersecting&&Tn()},[Tn]),gR,{disabled:!!_||Cn!=="viewport"}),w.useEffect(()=>{pr.current||!_&&Cn==="render"&&(Tn(),pr.current=!0)},[_,Tn,Cn]);const Di=Qe=>{const bt=Qe.currentTarget.getAttribute("target"),Bn=C!==void 0?C:bt;if(!_&&!xR(Qe)&&!Qe.defaultPrevented&&(!Bn||Bn==="_self")&&Qe.button===0){Qe.preventDefault(),hu.flushSync(()=>{Aa(!0)});const gr=r.subscribe("onResolved",()=>{gr(),Aa(!1)});r.navigate({...se,replace:b,resetScroll:N,hashScrollIntoView:v,startTransition:S,viewTransition:R,ignoreBlocker:$})}};if(ye)return{...O,ref:l,href:ye,...E&&{children:E},...C&&{target:C},..._&&{disabled:_},...U&&{style:U},...T&&{className:T},...P&&{onClick:P},...Y&&{onBlur:Y},...M&&{onFocus:M},...D&&{onMouseEnter:D},...k&&{onMouseLeave:k},...q&&{onTouchStart:q}};const ao=Qe=>{if(_||Cn!=="intent")return;if(!mn){Tn();return}const bt=Qe.currentTarget;if(Al.has(bt))return;const Bn=setTimeout(()=>{Al.delete(bt),Tn()},mn);Al.set(bt,Bn)},Eu=Qe=>{_||Cn!=="intent"||Tn()},_t=Qe=>{if(_||!Cn||!mn)return;const bt=Qe.currentTarget,Bn=Al.get(bt);Bn&&(clearTimeout(Bn),Al.delete(bt))};return{...O,...xt,...Tt,href:Ue==null?void 0:Ue.href,ref:l,onClick:ti([P,Di]),onBlur:ti([Y,_t]),onFocus:ti([M,ao]),onMouseEnter:ti([D,ao]),onMouseLeave:ti([k,_t]),onTouchStart:ti([q,Eu]),disabled:!!_,target:C,...mt&&{style:mt},...zt&&{className:zt},..._&&hR,...Dt&&mR,...Z&&Es&&pR}}var sh={},dR={className:"active"},hR={role:"link","aria-disabled":!0},mR={"data-status":"active","aria-current":"page"},pR={"data-transitioning":"transitioning"},Al=new WeakMap,gR={rootMargin:"100px"},ti=n=>a=>{for(const r of n)if(r){if(a.defaultPrevented)return;r(a)}};function vR(n,a,r,l){if(!l)return a?{href:n,external:!0}:{href:r.createHref(n)||"/",external:!1}}function yR(n){if(typeof n!="string")return!1;const a=n.charCodeAt(0);return a===47?n.charCodeAt(1)!==47:a===46}var yt=w.forwardRef((n,a)=>{const{_asChild:r,...l}=n,{type:o,...f}=fR(l,a),h=typeof l.children=="function"?l.children({isActive:f["data-status"]==="active"}):l.children;if(!r){const{disabled:m,...g}=f;return w.createElement("a",g,h)}return w.createElement(r,f,h)});function xR(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var bR=class extends t0{constructor(a){super(a),this.useMatch=r=>hr({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>c0({...r,from:this.id}),this.useSearch=r=>_i({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>du({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>o0({...r,from:this.id}),this.useLoaderData=r=>l0({...r,from:this.id}),this.useNavigate=()=>lm({from:this.fullPath}),this.Link=ur.forwardRef((r,l)=>u.jsx(yt,{ref:l,from:this.fullPath,...r}))}};function SR(n){return new bR(n)}function wR(){return n=>RR(n)}var jR=class extends I2{constructor(n){super(n),this.useMatch=a=>hr({select:a==null?void 0:a.select,from:this.id,structuralSharing:a==null?void 0:a.structuralSharing}),this.useRouteContext=a=>c0({...a,from:this.id}),this.useSearch=a=>_i({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useParams=a=>du({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useLoaderDeps=a=>o0({...a,from:this.id}),this.useLoaderData=a=>l0({...a,from:this.id}),this.useNavigate=()=>lm({from:this.fullPath}),this.Link=ur.forwardRef((a,r)=>u.jsx(yt,{ref:r,from:this.fullPath,...a}))}};function RR(n){return new jR(n)}function En(n){return new NR(n,{silent:!0}).createRoute}var NR=class{constructor(n,a){this.path=n,this.createRoute=r=>{const l=SR(r);return l.isRoot=!1,l},this.silent=a==null?void 0:a.silent}};function ER(n){const a=hn(),r=`not-found-${$t(a.stores.location,l=>l.pathname)}-${$t(a.stores.status,l=>l)}`;return u.jsx(rm,{getResetKey:()=>r,onCatch:(l,o)=>{var f;if(Ot(l))(f=n.onCatch)==null||f.call(n,l,o);else throw l},errorComponent:({error:l})=>{var o;if(Ot(l))return(o=n.fallback)==null?void 0:o.call(n,l);throw l},children:n.children})}function CR(){return u.jsx("p",{children:"Not Found"})}function ii(n){return u.jsx(u.Fragment,{children:n.children})}function u0(n,a,r){return a.options.notFoundComponent?u.jsx(a.options.notFoundComponent,{...r}):n.options.defaultNotFoundComponent?u.jsx(n.options.defaultNotFoundComponent,{...r}):u.jsx(CR,{})}function TR(n){return null}function _R(){return TR(hn()),null}var f0=w.memo(function({matchId:a}){const r=hn(),l=r.stores.matchStores.get(a);l||Na();const o=$t(r.stores.loadedAt,h=>h),f=$t(l,h=>h);return u.jsx(AR,{router:r,matchId:a,resetKey:o,matchState:w.useMemo(()=>{var g;const h=f.routeId,m=(g=r.routesById[h].parentRoute)==null?void 0:g.id;return{routeId:h,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:m}},[f._displayPending,f.routeId,f.ssr,r.routesById])})});function AR({router:n,matchId:a,resetKey:r,matchState:l}){var N,R;const o=n.routesById[l.routeId],f=o.options.pendingComponent??n.options.defaultPendingComponent,h=f?u.jsx(f,{}):null,m=o.options.errorComponent??n.options.defaultErrorComponent,g=o.options.onCatch??n.options.defaultOnCatch,p=o.isRoot?o.options.notFoundComponent??((N=n.options.notFoundRoute)==null?void 0:N.options.component):o.options.notFoundComponent,x=l.ssr===!1||l.ssr==="data-only",v=(!o.isRoot||o.options.wrapInSuspense||x)&&(o.options.wrapInSuspense??f??(((R=o.options.errorComponent)==null?void 0:R.preload)||x))?w.Suspense:ii,b=m?rm:ii,S=p?ER:ii;return u.jsxs(o.isRoot?o.options.shellComponent??ii:ii,{children:[u.jsx(fu.Provider,{value:a,children:u.jsx(v,{fallback:h,children:u.jsx(b,{getResetKey:()=>r,errorComponent:m||im,onCatch:(E,C)=>{if(Ot(E))throw E.routeId??(E.routeId=l.routeId),E;g==null||g(E,C)},children:u.jsx(S,{fallback:E=>{if(E.routeId??(E.routeId=l.routeId),!p||E.routeId&&E.routeId!==l.routeId||!E.routeId&&!o.isRoot)throw E;return w.createElement(p,E)},children:x||l._displayPending?u.jsx(Z2,{fallback:h,children:u.jsx(Sx,{matchId:a})}):u.jsx(Sx,{matchId:a})})})})}),l.parentRouteId===or?u.jsxs(u.Fragment,{children:[u.jsx(MR,{resetKey:r}),n.options.scrollRestoration&&qb?u.jsx(_R,{}):null]}):null]})}function MR({resetKey:n}){const a=hn(),r=w.useRef(void 0);return Dl(()=>{const l=a.latestLocation.href;(r.current===void 0||r.current!==l)&&(a.emit({type:"onRendered",...li(a.stores.location.get(),a.stores.resolvedLocation.get())}),r.current=l)},[a.latestLocation.state.__TSR_key,n,a]),null}var Sx=w.memo(function({matchId:a}){const r=hn(),l=(x,v)=>{var b;return((b=r.getMatch(x.id))==null?void 0:b._nonReactive[v])??x._nonReactive[v]},o=r.stores.matchStores.get(a);o||Na();const f=$t(o,x=>x),h=f.routeId,m=r.routesById[h],g=w.useMemo(()=>{var v;const x=(v=r.routesById[h].options.remountDeps??r.options.defaultRemountDeps)==null?void 0:v({routeId:h,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return x?JSON.stringify(x):void 0},[h,f.loaderDeps,f._strictParams,f._strictSearch,r.options.defaultRemountDeps,r.routesById]),p=w.useMemo(()=>{const x=m.options.component??r.options.defaultComponent;return x?u.jsx(x,{},g):u.jsx(mu,{})},[g,m.options.component,r.options.defaultComponent]);if(f._displayPending)throw l(f,"displayPendingPromise");if(f._forcePending)throw l(f,"minPendingPromise");if(f.status==="pending"){const x=m.options.pendingMinMs??r.options.defaultPendingMinMs;if(x){const v=r.getMatch(f.id);if(v&&!v._nonReactive.minPendingPromise){const b=Ri();v._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),v._nonReactive.minPendingPromise=void 0},x)}}throw l(f,"loadPromise")}if(f.status==="notFound")return Ot(f.error)||Na(),u0(r,m,f.error);if(f.status==="redirected")throw Ft(f.error)||Na(),l(f,"loadPromise");if(f.status==="error")throw f.error;return p}),mu=w.memo(function(){const a=hn(),r=w.useContext(fu);let l,o=!1,f;{const p=r?a.stores.matchStores.get(r):void 0;[l,o]=$t(p,x=>[x==null?void 0:x.routeId,(x==null?void 0:x.globalNotFound)??!1]),f=$t(a.stores.matchesId,x=>x[x.findIndex(v=>v===r)+1])}const h=l?a.routesById[l]:void 0,m=a.options.defaultPendingComponent?u.jsx(a.options.defaultPendingComponent,{}):null;if(o)return h||Na(),u0(a,h,void 0);if(!f)return null;const g=u.jsx(f0,{matchId:f});return l===or?u.jsx(w.Suspense,{fallback:m,children:g}):g});function OR(){const n=hn(),a=w.useRef({router:n,mounted:!1}),[r,l]=w.useState(!1),o=$t(n.stores.isLoading,v=>v),f=$t(n.stores.hasPending,v=>v),h=Id(o),m=o||r||f,g=Id(m),p=o||f,x=Id(p);return n.startTransition=v=>{l(!0),w.startTransition(()=>{v(),l(!1)})},w.useEffect(()=>{const v=n.history.subscribe(n.load),b=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ra(n.latestLocation.publicHref)!==Ra(b.publicHref)&&n.commitLocation({...b,replace:!0}),()=>{v()}},[n,n.history]),Dl(()=>{if(typeof window<"u"&&n.ssr||a.current.router===n&&a.current.mounted)return;a.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(b){console.error(b)}})()},[n]),Dl(()=>{h&&!o&&n.emit({type:"onLoad",...li(n.stores.location.get(),n.stores.resolvedLocation.get())})},[h,n,o]),Dl(()=>{x&&!p&&n.emit({type:"onBeforeRouteMount",...li(n.stores.location.get(),n.stores.resolvedLocation.get())})},[p,x,n]),Dl(()=>{if(g&&!m){const v=li(n.stores.location.get(),n.stores.resolvedLocation.get());n.emit({type:"onResolved",...v}),r0(()=>{n.stores.status.set("idle"),n.stores.resolvedLocation.set(n.stores.location.get())})}},[m,g,n]),null}function DR(){const n=hn(),a=n.routesById[or].options.pendingComponent??n.options.defaultPendingComponent,r=a?u.jsx(a,{}):null,l=u.jsxs(typeof document<"u"&&n.ssr?ii:w.Suspense,{fallback:r,children:[u.jsx(OR,{}),u.jsx(zR,{})]});return n.options.InnerWrap?u.jsx(n.options.InnerWrap,{children:l}):l}function zR(){const n=hn(),a=$t(n.stores.firstId,o=>o),r=$t(n.stores.loadedAt,o=>o),l=a?u.jsx(f0,{matchId:a}):null;return u.jsx(fu.Provider,{value:a,children:n.options.disableGlobalCatchBoundary?l:u.jsx(rm,{getResetKey:()=>r,errorComponent:im,onCatch:void 0,children:l})})}function LR(){const n=hn();return $t(n.stores.matchRouteDeps,a=>a),w.useCallback(a=>{const{pending:r,caseSensitive:l,fuzzy:o,includeSearch:f,...h}=a;return n.matchRoute(h,{pending:r,caseSensitive:l,fuzzy:o,includeSearch:f})},[n])}var kR=n=>({createMutableStore:gx,createReadonlyStore:gx,batch:r0}),UR=n=>new BR(n),BR=class extends O2{constructor(n){super(n,kR)}};function HR({router:n,children:a,...r}){Qb(r)&&n.update({...n.options,...r,context:{...n.options.context,...r.context}});const l=u.jsx(a0.Provider,{value:n,children:a});return n.options.Wrap?u.jsx(n.options.Wrap,{children:l}):l}function PR({router:n,...a}){return u.jsx(HR,{router:n,...a,children:u.jsx(DR,{})})}var Wl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ws,ls,fi,Ab,qR=(Ab=class extends Wl{constructor(){super();ge(this,Ws);ge(this,ls);ge(this,fi);le(this,fi,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){L(this,ls)||this.setEventListener(L(this,fi))}onUnsubscribe(){var a;this.hasListeners()||((a=L(this,ls))==null||a.call(this),le(this,ls,void 0))}setEventListener(a){var r;le(this,fi,a),(r=L(this,ls))==null||r.call(this),le(this,ls,a(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(a){L(this,Ws)!==a&&(le(this,Ws,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof L(this,Ws)=="boolean"?L(this,Ws):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Ws=new WeakMap,ls=new WeakMap,fi=new WeakMap,Ab),om=new qR,GR={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},os,em,Mb,QR=(Mb=class{constructor(){ge(this,os,GR);ge(this,em,!1)}setTimeoutProvider(n){le(this,os,n)}setTimeout(n,a){return L(this,os).setTimeout(n,a)}clearTimeout(n){L(this,os).clearTimeout(n)}setInterval(n,a){return L(this,os).setInterval(n,a)}clearInterval(n){L(this,os).clearInterval(n)}},os=new WeakMap,em=new WeakMap,Mb),$s=new QR;function VR(n){setTimeout(n,0)}var YR=typeof window>"u"||"Deno"in globalThis;function Kt(){}function XR(n,a){return typeof n=="function"?n(a):n}function _h(n){return typeof n=="number"&&n>=0&&n!==1/0}function d0(n,a){return Math.max(n+(a||0)-Date.now(),0)}function xs(n,a){return typeof n=="function"?n(a):n}function un(n,a){return typeof n=="function"?n(a):n}function wx(n,a){const{type:r="all",exact:l,fetchStatus:o,predicate:f,queryKey:h,stale:m}=n;if(h){if(l){if(a.queryHash!==cm(h,a.options))return!1}else if(!Pl(a.queryKey,h))return!1}if(r!=="all"){const g=a.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||f&&!f(a))}function jx(n,a){const{exact:r,status:l,predicate:o,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(r){if(Hl(a.options.mutationKey)!==Hl(f))return!1}else if(!Pl(a.options.mutationKey,f))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function cm(n,a){return((a==null?void 0:a.queryKeyHashFn)||Hl)(n)}function Hl(n){return JSON.stringify(n,(a,r)=>Mh(r)?Object.keys(r).sort().reduce((l,o)=>(l[o]=r[o],l),{}):r)}function Pl(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Pl(n[r],a[r])):!1}var IR=Object.prototype.hasOwnProperty;function h0(n,a,r=0){if(n===a)return n;if(r>500)return a;const l=Rx(n)&&Rx(a);if(!l&&!(Mh(n)&&Mh(a)))return a;const f=(l?n:Object.keys(n)).length,h=l?a:Object.keys(a),m=h.length,g=l?new Array(m):{};let p=0;for(let x=0;x<m;x++){const v=l?x:h[x],b=n[v],S=a[v];if(b===S){g[v]=b,(l?x<f:IR.call(n,v))&&p++;continue}if(b===null||S===null||typeof b!="object"||typeof S!="object"){g[v]=S;continue}const N=h0(b,S,r+1);g[v]=N,N===b&&p++}return f===m&&p===f?n:g}function Ah(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function Rx(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Mh(n){if(!Nx(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!Nx(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Nx(n){return Object.prototype.toString.call(n)==="[object Object]"}function KR(n){return new Promise(a=>{$s.setTimeout(a,n)})}function Oh(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?h0(n,a):a}function ZR(n,a,r=0){const l=[...n,a];return r&&l.length>r?l.slice(1):l}function FR(n,a,r=0){const l=[a,...n];return r&&l.length>r?l.slice(0,-1):l}var um=Symbol();function m0(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===um?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function p0(n,a){return typeof n=="function"?n(...a):!!n}function $R(n,a,r){let l=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=a()),l||(l=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),n}var ql=(()=>{let n=()=>YR;return{isServer(){return n()},setIsServer(a){n=a}}})();function Dh(){let n,a;const r=new Promise((o,f)=>{n=o,a=f});r.status="pending",r.catch(()=>{});function l(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{l({status:"fulfilled",value:o}),n(o)},r.reject=o=>{l({status:"rejected",reason:o}),a(o)},r}var WR=VR;function JR(){let n=[],a=0,r=m=>{m()},l=m=>{m()},o=WR;const f=m=>{a?n.push(m):o(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{l(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;a++;try{g=m()}finally{a--,a||h()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{l=m},setScheduler:m=>{o=m}}}var Ct=JR(),di,cs,hi,Ob,eN=(Ob=class extends Wl{constructor(){super();ge(this,di,!0);ge(this,cs);ge(this,hi);le(this,hi,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a(!0),l=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",l)}}})}onSubscribe(){L(this,cs)||this.setEventListener(L(this,hi))}onUnsubscribe(){var a;this.hasListeners()||((a=L(this,cs))==null||a.call(this),le(this,cs,void 0))}setEventListener(a){var r;le(this,hi,a),(r=L(this,cs))==null||r.call(this),le(this,cs,a(this.setOnline.bind(this)))}setOnline(a){L(this,di)!==a&&(le(this,di,a),this.listeners.forEach(l=>{l(a)}))}isOnline(){return L(this,di)}},di=new WeakMap,cs=new WeakMap,hi=new WeakMap,Ob),$c=new eN;function tN(n){return Math.min(1e3*2**n,3e4)}function g0(n){return(n??"online")==="online"?$c.isOnline():!0}var zh=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function v0(n){let a=!1,r=0,l;const o=Dh(),f=()=>o.status!=="pending",h=R=>{var E;if(!f()){const C=new zh(R);b(C),(E=n.onCancel)==null||E.call(n,C)}},m=()=>{a=!0},g=()=>{a=!1},p=()=>om.isFocused()&&(n.networkMode==="always"||$c.isOnline())&&n.canRun(),x=()=>g0(n.networkMode)&&n.canRun(),v=R=>{f()||(l==null||l(),o.resolve(R))},b=R=>{f()||(l==null||l(),o.reject(R))},S=()=>new Promise(R=>{var E;l=C=>{(f()||p())&&R(C)},(E=n.onPause)==null||E.call(n)}).then(()=>{var R;l=void 0,f()||(R=n.onContinue)==null||R.call(n)}),N=()=>{if(f())return;let R;const E=r===0?n.initialPromise:void 0;try{R=E??n.fn()}catch(C){R=Promise.reject(C)}Promise.resolve(R).then(v).catch(C=>{var Y;if(f())return;const _=n.retry??(ql.isServer()?0:3),U=n.retryDelay??tN,T=typeof U=="function"?U(r,C):U,P=_===!0||typeof _=="number"&&r<_||typeof _=="function"&&_(r,C);if(a||!P){b(C);return}r++,(Y=n.onFail)==null||Y.call(n,r,C),KR(T).then(()=>p()?void 0:S()).then(()=>{a?b(C):N()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(l==null||l(),o),cancelRetry:m,continueRetry:g,canStart:x,start:()=>(x()?N():S().then(N),o)}}var Js,Db,y0=(Db=class{constructor(){ge(this,Js)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_h(this.gcTime)&&le(this,Js,$s.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ql.isServer()?1/0:300*1e3))}clearGcTimeout(){L(this,Js)!==void 0&&($s.clearTimeout(L(this,Js)),le(this,Js,void 0))}},Js=new WeakMap,Db);function nN(n){return{onFetch:(a,r)=>{var x,v,b,S,N;const l=a.options,o=(b=(v=(x=a.fetchOptions)==null?void 0:x.meta)==null?void 0:v.fetchMore)==null?void 0:b.direction,f=((S=a.state.data)==null?void 0:S.pages)||[],h=((N=a.state.data)==null?void 0:N.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let R=!1;const E=U=>{$R(U,()=>a.signal,()=>R=!0)},C=m0(a.options,a.fetchOptions),_=async(U,T,P)=>{if(R)return Promise.reject(a.signal.reason);if(T==null&&U.pages.length)return Promise.resolve(U);const M=(()=>{const $={client:a.client,queryKey:a.queryKey,pageParam:T,direction:P?"backward":"forward",meta:a.options.meta};return E($),$})(),D=await C(M),{maxPages:k}=a.options,q=P?FR:ZR;return{pages:q(U.pages,D,k),pageParams:q(U.pageParams,T,k)}};if(o&&f.length){const U=o==="backward",T=U?aN:Ex,P={pages:f,pageParams:h},Y=T(l,P);m=await _(P,Y,U)}else{const U=n??f.length;do{const T=g===0?h[0]??l.initialPageParam:Ex(l,m);if(g>0&&T==null)break;m=await _(m,T),g++}while(g<U)}return m};a.options.persister?a.fetchFn=()=>{var R,E;return(E=(R=a.options).persister)==null?void 0:E.call(R,p,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=p}}}function Ex(n,{pages:a,pageParams:r}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,r[l],r):void 0}function aN(n,{pages:a,pageParams:r}){var l;return a.length>0?(l=n.getPreviousPageParam)==null?void 0:l.call(n,a[0],a,r[0],r):void 0}var mi,er,pi,Nn,tr,vt,Xl,nr,cn,x0,ba,zb,sN=(zb=class extends y0{constructor(a){super();ge(this,cn);ge(this,mi);ge(this,er);ge(this,pi);ge(this,Nn);ge(this,tr);ge(this,vt);ge(this,Xl);ge(this,nr);le(this,nr,!1),le(this,Xl,a.defaultOptions),this.setOptions(a.options),this.observers=[],le(this,tr,a.client),le(this,Nn,L(this,tr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,le(this,er,Tx(this.options)),this.state=a.state??L(this,er),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return L(this,mi)}get promise(){var a;return(a=L(this,vt))==null?void 0:a.promise}setOptions(a){if(this.options={...L(this,Xl),...a},a!=null&&a._type&&le(this,mi,a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Tx(this.options);r.data!==void 0&&(this.setState(Cx(r.data,r.dataUpdatedAt)),le(this,er,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,Nn).remove(this)}setData(a,r){const l=Oh(this.state.data,a,this.options);return Te(this,cn,ba).call(this,{data:l,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),l}setState(a){Te(this,cn,ba).call(this,{type:"setState",state:a})}cancel(a){var l,o;const r=(l=L(this,vt))==null?void 0:l.promise;return(o=L(this,vt))==null||o.cancel(a),r?r.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return L(this,er)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>un(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===um||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>xs(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:!d0(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(l=>l.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=L(this,vt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(l=>l.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=L(this,vt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),L(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||(L(this,vt)&&(L(this,nr)||Te(this,cn,x0).call(this)?L(this,vt).cancel({revert:!0}):L(this,vt).cancelRetry()),this.scheduleGc()),L(this,Nn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,cn,ba).call(this,{type:"invalidate"})}async fetch(a,r){var p,x,v,b,S,N,R,E,C,_,U;if(this.state.fetchStatus!=="idle"&&((p=L(this,vt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(L(this,vt))return L(this,vt).continueRetry(),L(this,vt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const T=this.observers.find(P=>P.options.queryFn);T&&this.setOptions(T.options)}const l=new AbortController,o=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(le(this,nr,!0),l.signal)})},f=()=>{const T=m0(this.options,r),Y=(()=>{const M={client:L(this,tr),queryKey:this.queryKey,meta:this.meta};return o(M),M})();return le(this,nr,!1),this.options.persister?this.options.persister(T,Y,this):T(Y)},m=(()=>{const T={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:L(this,tr),state:this.state,fetchFn:f};return o(T),T})(),g=L(this,mi)==="infinite"?nN(this.options.pages):this.options.behavior;g==null||g.onFetch(m,this),le(this,pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&Te(this,cn,ba).call(this,{type:"fetch",meta:(v=m.fetchOptions)==null?void 0:v.meta}),le(this,vt,v0({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:T=>{T instanceof zh&&T.revert&&this.setState({...L(this,pi),fetchStatus:"idle"}),l.abort()},onFail:(T,P)=>{Te(this,cn,ba).call(this,{type:"failed",failureCount:T,error:P})},onPause:()=>{Te(this,cn,ba).call(this,{type:"pause"})},onContinue:()=>{Te(this,cn,ba).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const T=await L(this,vt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(S=(b=L(this,Nn).config).onSuccess)==null||S.call(b,T,this),(R=(N=L(this,Nn).config).onSettled)==null||R.call(N,T,this.state.error,this),T}catch(T){if(T instanceof zh){if(T.silent)return L(this,vt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Te(this,cn,ba).call(this,{type:"error",error:T}),(C=(E=L(this,Nn).config).onError)==null||C.call(E,T,this),(U=(_=L(this,Nn).config).onSettled)==null||U.call(_,this.state.data,T,this),T}finally{this.scheduleGc()}}},mi=new WeakMap,er=new WeakMap,pi=new WeakMap,Nn=new WeakMap,tr=new WeakMap,vt=new WeakMap,Xl=new WeakMap,nr=new WeakMap,cn=new WeakSet,x0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ba=function(a){const r=l=>{switch(a.type){case"failed":return{...l,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...b0(l.data,this.options),fetchMeta:a.meta??null};case"success":const o={...l,...Cx(a.data,a.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return le(this,pi,a.manual?o:void 0),o;case"error":const f=a.error;return{...l,error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...a.state}}};this.state=r(this.state),Ct.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),L(this,Nn).notify({query:this,type:"updated",action:a})})},zb);function b0(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:g0(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Cx(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Tx(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,r=a!==void 0,l=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var It,Me,Il,kt,ar,gi,Sa,us,Kl,vi,yi,sr,rr,fs,xi,Pe,zl,Lh,kh,Uh,Bh,Hh,Ph,qh,S0,Lb,rN=(Lb=class extends Wl{constructor(a,r){super();ge(this,Pe);ge(this,It);ge(this,Me);ge(this,Il);ge(this,kt);ge(this,ar);ge(this,gi);ge(this,Sa);ge(this,us);ge(this,Kl);ge(this,vi);ge(this,yi);ge(this,sr);ge(this,rr);ge(this,fs);ge(this,xi,new Set);this.options=r,le(this,It,a),le(this,us,null),le(this,Sa,Dh()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,Me).addObserver(this),_x(L(this,Me),this.options)?Te(this,Pe,zl).call(this):this.updateResult(),Te(this,Pe,Bh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gh(L(this,Me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gh(L(this,Me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Pe,Hh).call(this),Te(this,Pe,Ph).call(this),L(this,Me).removeObserver(this)}setOptions(a){const r=this.options,l=L(this,Me);if(this.options=L(this,It).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof un(this.options.enabled,L(this,Me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Pe,qh).call(this),L(this,Me).setOptions(this.options),r._defaulted&&!Ah(this.options,r)&&L(this,It).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,Me),observer:this});const o=this.hasListeners();o&&Ax(L(this,Me),l,this.options,r)&&Te(this,Pe,zl).call(this),this.updateResult(),o&&(L(this,Me)!==l||un(this.options.enabled,L(this,Me))!==un(r.enabled,L(this,Me))||xs(this.options.staleTime,L(this,Me))!==xs(r.staleTime,L(this,Me)))&&Te(this,Pe,Lh).call(this);const f=Te(this,Pe,kh).call(this);o&&(L(this,Me)!==l||un(this.options.enabled,L(this,Me))!==un(r.enabled,L(this,Me))||f!==L(this,fs))&&Te(this,Pe,Uh).call(this,f)}getOptimisticResult(a){const r=L(this,It).getQueryCache().build(L(this,It),a),l=this.createResult(r,a);return lN(this,l)&&(le(this,kt,l),le(this,gi,this.options),le(this,ar,L(this,Me).state)),l}getCurrentResult(){return L(this,kt)}trackResult(a,r){return new Proxy(a,{get:(l,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&L(this,Sa).status==="pending"&&L(this,Sa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,o))})}trackProp(a){L(this,xi).add(a)}getCurrentQuery(){return L(this,Me)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=L(this,It).defaultQueryOptions(a),l=L(this,It).getQueryCache().build(L(this,It),r);return l.fetch().then(()=>this.createResult(l,r))}fetch(a){return Te(this,Pe,zl).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,kt)))}createResult(a,r){var k;const l=L(this,Me),o=this.options,f=L(this,kt),h=L(this,ar),m=L(this,gi),p=a!==l?a.state:L(this,Il),{state:x}=a;let v={...x},b=!1,S;if(r._optimisticResults){const q=this.hasListeners(),$=!q&&_x(a,r),ee=q&&Ax(a,l,r,o);($||ee)&&(v={...v,...b0(x.data,a.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:N,errorUpdatedAt:R,status:E}=v;S=v.data;let C=!1;if(r.placeholderData!==void 0&&S===void 0&&E==="pending"){let q;f!=null&&f.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(q=f.data,C=!0):q=typeof r.placeholderData=="function"?r.placeholderData((k=L(this,yi))==null?void 0:k.state.data,L(this,yi)):r.placeholderData,q!==void 0&&(E="success",S=Oh(f==null?void 0:f.data,q,r),b=!0)}if(r.select&&S!==void 0&&!C)if(f&&S===(h==null?void 0:h.data)&&r.select===L(this,Kl))S=L(this,vi);else try{le(this,Kl,r.select),S=r.select(S),S=Oh(f==null?void 0:f.data,S,r),le(this,vi,S),le(this,us,null)}catch(q){le(this,us,q)}L(this,us)&&(N=L(this,us),S=L(this,vi),R=Date.now(),E="error");const _=v.fetchStatus==="fetching",U=E==="pending",T=E==="error",P=U&&_,Y=S!==void 0,D={status:E,fetchStatus:v.fetchStatus,isPending:U,isSuccess:E==="success",isError:T,isInitialLoading:P,isLoading:P,data:S,dataUpdatedAt:v.dataUpdatedAt,error:N,errorUpdatedAt:R,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:_,isRefetching:_&&!U,isLoadingError:T&&!Y,isPaused:v.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:T&&Y,isStale:fm(a,r),refetch:this.refetch,promise:L(this,Sa),isEnabled:un(r.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const q=D.data!==void 0,$=D.status==="error"&&!q,ee=de=>{$?de.reject(D.error):q&&de.resolve(D.data)},ne=()=>{const de=le(this,Sa,D.promise=Dh());ee(de)},ae=L(this,Sa);switch(ae.status){case"pending":a.queryHash===l.queryHash&&ee(ae);break;case"fulfilled":($||D.data!==ae.value)&&ne();break;case"rejected":(!$||D.error!==ae.reason)&&ne();break}}return D}updateResult(){const a=L(this,kt),r=this.createResult(L(this,Me),this.options);if(le(this,ar,L(this,Me).state),le(this,gi,this.options),L(this,ar).data!==void 0&&le(this,yi,L(this,Me)),Ah(r,a))return;le(this,kt,r);const l=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!L(this,xi).size)return!0;const h=new Set(f??L(this,xi));return this.options.throwOnError&&h.add("error"),Object.keys(L(this,kt)).some(m=>{const g=m;return L(this,kt)[g]!==a[g]&&h.has(g)})};Te(this,Pe,S0).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Pe,Bh).call(this)}},It=new WeakMap,Me=new WeakMap,Il=new WeakMap,kt=new WeakMap,ar=new WeakMap,gi=new WeakMap,Sa=new WeakMap,us=new WeakMap,Kl=new WeakMap,vi=new WeakMap,yi=new WeakMap,sr=new WeakMap,rr=new WeakMap,fs=new WeakMap,xi=new WeakMap,Pe=new WeakSet,zl=function(a){Te(this,Pe,qh).call(this);let r=L(this,Me).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Kt)),r},Lh=function(){Te(this,Pe,Hh).call(this);const a=xs(this.options.staleTime,L(this,Me));if(ql.isServer()||L(this,kt).isStale||!_h(a))return;const l=d0(L(this,kt).dataUpdatedAt,a)+1;le(this,sr,$s.setTimeout(()=>{L(this,kt).isStale||this.updateResult()},l))},kh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,Me)):this.options.refetchInterval)??!1},Uh=function(a){Te(this,Pe,Ph).call(this),le(this,fs,a),!(ql.isServer()||un(this.options.enabled,L(this,Me))===!1||!_h(L(this,fs))||L(this,fs)===0)&&le(this,rr,$s.setInterval(()=>{(this.options.refetchIntervalInBackground||om.isFocused())&&Te(this,Pe,zl).call(this)},L(this,fs)))},Bh=function(){Te(this,Pe,Lh).call(this),Te(this,Pe,Uh).call(this,Te(this,Pe,kh).call(this))},Hh=function(){L(this,sr)!==void 0&&($s.clearTimeout(L(this,sr)),le(this,sr,void 0))},Ph=function(){L(this,rr)!==void 0&&($s.clearInterval(L(this,rr)),le(this,rr,void 0))},qh=function(){const a=L(this,It).getQueryCache().build(L(this,It),this.options);if(a===L(this,Me))return;const r=L(this,Me);le(this,Me,a),le(this,Il,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},S0=function(a){Ct.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(L(this,kt))}),L(this,It).getQueryCache().notify({query:L(this,Me),type:"observerResultsUpdated"})})},Lb);function iN(n,a){return un(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&un(a.retryOnMount,n)===!1)}function _x(n,a){return iN(n,a)||n.state.data!==void 0&&Gh(n,a,a.refetchOnMount)}function Gh(n,a,r){if(un(a.enabled,n)!==!1&&xs(a.staleTime,n)!=="static"){const l=typeof r=="function"?r(n):r;return l==="always"||l!==!1&&fm(n,a)}return!1}function Ax(n,a,r,l){return(n!==a||un(l.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&fm(n,r)}function fm(n,a){return un(a.enabled,n)!==!1&&n.isStaleByTime(xs(a.staleTime,n))}function lN(n,a){return!Ah(n.getCurrentResult(),a)}var Zl,Yn,Mt,ir,Xn,ss,kb,oN=(kb=class extends y0{constructor(a){super();ge(this,Xn);ge(this,Zl);ge(this,Yn);ge(this,Mt);ge(this,ir);le(this,Zl,a.client),this.mutationId=a.mutationId,le(this,Mt,a.mutationCache),le(this,Yn,[]),this.state=a.state||cN(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){L(this,Yn).includes(a)||(L(this,Yn).push(a),this.clearGcTimeout(),L(this,Mt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){le(this,Yn,L(this,Yn).filter(r=>r!==a)),this.scheduleGc(),L(this,Mt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){L(this,Yn).length||(this.state.status==="pending"?this.scheduleGc():L(this,Mt).remove(this))}continue(){var a;return((a=L(this,ir))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var h,m,g,p,x,v,b,S,N,R,E,C,_,U,T,P,Y,M;const r=()=>{Te(this,Xn,ss).call(this,{type:"continue"})},l={client:L(this,Zl),meta:this.options.meta,mutationKey:this.options.mutationKey};le(this,ir,v0({fn:()=>this.options.mutationFn?this.options.mutationFn(a,l):Promise.reject(new Error("No mutationFn found")),onFail:(D,k)=>{Te(this,Xn,ss).call(this,{type:"failed",failureCount:D,error:k})},onPause:()=>{Te(this,Xn,ss).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,Mt).canRun(this)}));const o=this.state.status==="pending",f=!L(this,ir).canStart();try{if(o)r();else{Te(this,Xn,ss).call(this,{type:"pending",variables:a,isPaused:f}),L(this,Mt).config.onMutate&&await L(this,Mt).config.onMutate(a,this,l);const k=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,a,l));k!==this.state.context&&Te(this,Xn,ss).call(this,{type:"pending",context:k,variables:a,isPaused:f})}const D=await L(this,ir).start();return await((p=(g=L(this,Mt).config).onSuccess)==null?void 0:p.call(g,D,a,this.state.context,this,l)),await((v=(x=this.options).onSuccess)==null?void 0:v.call(x,D,a,this.state.context,l)),await((S=(b=L(this,Mt).config).onSettled)==null?void 0:S.call(b,D,null,this.state.variables,this.state.context,this,l)),await((R=(N=this.options).onSettled)==null?void 0:R.call(N,D,null,a,this.state.context,l)),Te(this,Xn,ss).call(this,{type:"success",data:D}),D}catch(D){try{await((C=(E=L(this,Mt).config).onError)==null?void 0:C.call(E,D,a,this.state.context,this,l))}catch(k){Promise.reject(k)}try{await((U=(_=this.options).onError)==null?void 0:U.call(_,D,a,this.state.context,l))}catch(k){Promise.reject(k)}try{await((P=(T=L(this,Mt).config).onSettled)==null?void 0:P.call(T,void 0,D,this.state.variables,this.state.context,this,l))}catch(k){Promise.reject(k)}try{await((M=(Y=this.options).onSettled)==null?void 0:M.call(Y,void 0,D,a,this.state.context,l))}catch(k){Promise.reject(k)}throw Te(this,Xn,ss).call(this,{type:"error",error:D}),D}finally{L(this,Mt).runNext(this)}}},Zl=new WeakMap,Yn=new WeakMap,Mt=new WeakMap,ir=new WeakMap,Xn=new WeakSet,ss=function(a){const r=l=>{switch(a.type){case"failed":return{...l,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,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{...l,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:a.error,failureCount:l.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ct.batch(()=>{L(this,Yn).forEach(l=>{l.onMutationUpdate(a)}),L(this,Mt).notify({mutation:this,type:"updated",action:a})})},kb);function cN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wa,On,Fl,Ub,uN=(Ub=class extends Wl{constructor(a={}){super();ge(this,wa);ge(this,On);ge(this,Fl);this.config=a,le(this,wa,new Set),le(this,On,new Map),le(this,Fl,0)}build(a,r,l){const o=new oN({client:a,mutationCache:this,mutationId:++Sc(this,Fl)._,options:a.defaultMutationOptions(r),state:l});return this.add(o),o}add(a){L(this,wa).add(a);const r=Ec(a);if(typeof r=="string"){const l=L(this,On).get(r);l?l.push(a):L(this,On).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(L(this,wa).delete(a)){const r=Ec(a);if(typeof r=="string"){const l=L(this,On).get(r);if(l)if(l.length>1){const o=l.indexOf(a);o!==-1&&l.splice(o,1)}else l[0]===a&&L(this,On).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Ec(a);if(typeof r=="string"){const l=L(this,On).get(r),o=l==null?void 0:l.find(f=>f.state.status==="pending");return!o||o===a}else return!0}runNext(a){var l;const r=Ec(a);if(typeof r=="string"){const o=(l=L(this,On).get(r))==null?void 0:l.find(f=>f!==a&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ct.batch(()=>{L(this,wa).forEach(a=>{this.notify({type:"removed",mutation:a})}),L(this,wa).clear(),L(this,On).clear()})}getAll(){return Array.from(L(this,wa))}find(a){const r={exact:!0,...a};return this.getAll().find(l=>jx(r,l))}findAll(a={}){return this.getAll().filter(r=>jx(a,r))}notify(a){Ct.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return Ct.batch(()=>Promise.all(a.map(r=>r.continue().catch(Kt))))}},wa=new WeakMap,On=new WeakMap,Fl=new WeakMap,Ub);function Ec(n){var a;return(a=n.options.scope)==null?void 0:a.id}var In,Bb,fN=(Bb=class extends Wl{constructor(a={}){super();ge(this,In);this.config=a,le(this,In,new Map)}build(a,r,l){const o=r.queryKey,f=r.queryHash??cm(o,r);let h=this.get(f);return h||(h=new sN({client:a,queryKey:o,queryHash:f,options:a.defaultQueryOptions(r),state:l,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){L(this,In).has(a.queryHash)||(L(this,In).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=L(this,In).get(a.queryHash);r&&(a.destroy(),r===a&&L(this,In).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Ct.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return L(this,In).get(a)}getAll(){return[...L(this,In).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(l=>wx(r,l))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(l=>wx(a,l)):r}notify(a){Ct.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){Ct.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Ct.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},In=new WeakMap,Bb),tt,ds,hs,bi,Si,ms,wi,ji,Hb,dN=(Hb=class{constructor(n={}){ge(this,tt);ge(this,ds);ge(this,hs);ge(this,bi);ge(this,Si);ge(this,ms);ge(this,wi);ge(this,ji);le(this,tt,n.queryCache||new fN),le(this,ds,n.mutationCache||new uN),le(this,hs,n.defaultOptions||{}),le(this,bi,new Map),le(this,Si,new Map),le(this,ms,0)}mount(){Sc(this,ms)._++,L(this,ms)===1&&(le(this,wi,om.subscribe(async n=>{n&&(await this.resumePausedMutations(),L(this,tt).onFocus())})),le(this,ji,$c.subscribe(async n=>{n&&(await this.resumePausedMutations(),L(this,tt).onOnline())})))}unmount(){var n,a;Sc(this,ms)._--,L(this,ms)===0&&((n=L(this,wi))==null||n.call(this),le(this,wi,void 0),(a=L(this,ji))==null||a.call(this),le(this,ji,void 0))}isFetching(n){return L(this,tt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return L(this,ds).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=L(this,tt).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=L(this,tt).build(this,a),l=r.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(xs(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return L(this,tt).findAll(n).map(({queryKey:a,state:r})=>{const l=r.data;return[a,l]})}setQueryData(n,a,r){const l=this.defaultQueryOptions({queryKey:n}),o=L(this,tt).get(l.queryHash),f=o==null?void 0:o.state.data,h=XR(a,f);if(h!==void 0)return L(this,tt).build(this,l).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return Ct.batch(()=>L(this,tt).findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=L(this,tt).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=L(this,tt);Ct.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=L(this,tt);return Ct.batch(()=>(r.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},l=Ct.batch(()=>L(this,tt).findAll(n).map(o=>o.cancel(r)));return Promise.all(l).then(Kt).catch(Kt)}invalidateQueries(n,a={}){return Ct.batch(()=>(L(this,tt).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},l=Ct.batch(()=>L(this,tt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,r);return r.throwOnError||(f=f.catch(Kt)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(Kt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=L(this,tt).build(this,a);return r.isStaleByTime(xs(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Kt).catch(Kt)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Kt).catch(Kt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return $c.isOnline()?L(this,ds).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,tt)}getMutationCache(){return L(this,ds)}getDefaultOptions(){return L(this,hs)}setDefaultOptions(n){le(this,hs,n)}setQueryDefaults(n,a){L(this,bi).set(Hl(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...L(this,bi).values()],r={};return a.forEach(l=>{Pl(n,l.queryKey)&&Object.assign(r,l.defaultOptions)}),r}setMutationDefaults(n,a){L(this,Si).set(Hl(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...L(this,Si).values()],r={};return a.forEach(l=>{Pl(n,l.mutationKey)&&Object.assign(r,l.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...L(this,hs).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=cm(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===um&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...L(this,hs).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){L(this,tt).clear(),L(this,ds).clear()}},tt=new WeakMap,ds=new WeakMap,hs=new WeakMap,bi=new WeakMap,Si=new WeakMap,ms=new WeakMap,wi=new WeakMap,ji=new WeakMap,Hb),w0=w.createContext(void 0),Jl=n=>{const a=w.useContext(w0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},hN=({client:n,children:a})=>(w.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(w0.Provider,{value:n,children:a})),j0=w.createContext(!1),mN=()=>w.useContext(j0);j0.Provider;function pN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var gN=w.createContext(pN()),vN=()=>w.useContext(gN),yN=(n,a,r)=>{const l=r!=null&&r.state.error&&typeof n.throwOnError=="function"?p0(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(a.isReset()||(n.retryOnMount=!1))},xN=n=>{w.useEffect(()=>{n.clearReset()},[n])},bN=({result:n,errorResetBoundary:a,throwOnError:r,query:l,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&l&&(o&&n.data===void 0||p0(r,[n.error,l])),SN=n=>{if(n.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...o)=>r(l(...o)):r(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},wN=(n,a)=>n.isLoading&&n.isFetching&&!a,jN=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,Mx=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function RN(n,a,r){var S,N,R,E;const l=mN(),o=vN(),f=Jl(),h=f.defaultQueryOptions(n);(N=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||N.call(S,h);const m=f.getQueryCache().get(h.queryHash),g=n.subscribed!==!1;h._optimisticResults=l?"isRestoring":g?"optimistic":void 0,SN(h),yN(h,o,m),xN(o);const p=!f.getQueryCache().get(h.queryHash),[x]=w.useState(()=>new a(f,h)),v=x.getOptimisticResult(h),b=!l&&g;if(w.useSyncExternalStore(w.useCallback(C=>{const _=b?x.subscribe(Ct.batchCalls(C)):Kt;return x.updateResult(),_},[x,b]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),w.useEffect(()=>{x.setOptions(h)},[h,x]),jN(h,v))throw Mx(h,x,o);if(bN({result:v,errorResetBoundary:o,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw v.error;if((E=(R=f.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||E.call(R,h,v),h.experimental_prefetchInRender&&!ql.isServer()&&wN(v,l)){const C=p?Mx(h,x,o):m==null?void 0:m.promise;C==null||C.catch(Kt).finally(()=>{x.updateResult()})}return h.notifyOnChangeProps?v:x.trackResult(v)}function bs(n,a){return RN(n,rN)}/**
66
- * @license lucide-react v0.511.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 NN=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),EN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,l)=>l?l.toUpperCase():r.toLowerCase()),Ox=n=>{const a=EN(n);return a.charAt(0).toUpperCase()+a.slice(1)},R0=(...n)=>n.filter((a,r,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===r).join(" ").trim(),CN=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
71
- * @license lucide-react v0.511.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
- */var TN={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"};/**
76
- * @license lucide-react v0.511.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 _N=w.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:o="",children:f,iconNode:h,...m},g)=>w.createElement("svg",{ref:g,...TN,width:a,height:a,stroke:n,strokeWidth:l?Number(r)*24/Number(a):r,className:R0("lucide",o),...!f&&!CN(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,x])=>w.createElement(p,x)),...Array.isArray(f)?f:[f]]));/**
81
- * @license lucide-react v0.511.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
- */const He=(n,a)=>{const r=w.forwardRef(({className:l,...o},f)=>w.createElement(_N,{ref:f,iconNode:a,className:R0(`lucide-${NN(Ox(n))}`,`lucide-${n}`,l),...o}));return r.displayName=Ox(n),r};/**
86
- * @license lucide-react v0.511.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 AN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Qh=He("arrow-right",AN);/**
91
- * @license lucide-react v0.511.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 MN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Gl=He("chevron-left",MN);/**
96
- * @license lucide-react v0.511.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 ON=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Dx=He("chevron-right",ON);/**
101
- * @license lucide-react v0.511.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 DN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],N0=He("circle-alert",DN);/**
106
- * @license lucide-react v0.511.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 zN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],eo=He("circle-check",zN);/**
111
- * @license lucide-react v0.511.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 LN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],zx=He("circle-x",LN);/**
116
- * @license lucide-react v0.511.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 kN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]],UN=He("clock-3",kN);/**
121
- * @license lucide-react v0.511.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 BN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],HN=He("clock",BN);/**
126
- * @license lucide-react v0.511.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 PN=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],E0=He("database-zap",PN);/**
131
- * @license lucide-react v0.511.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 qN=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],C0=He("database",qN);/**
136
- * @license lucide-react v0.511.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 GN=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],QN=He("file-code-2",GN);/**
141
- * @license lucide-react v0.511.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 VN=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],dm=He("file-text",VN);/**
146
- * @license lucide-react v0.511.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 YN=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],XN=He("folder-kanban",YN);/**
151
- * @license lucide-react v0.511.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 IN=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Vh=He("folder-open",IN);/**
156
- * @license lucide-react v0.511.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 KN=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],ZN=He("gauge",KN);/**
161
- * @license lucide-react v0.511.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 FN=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],$N=He("git-branch",FN);/**
166
- * @license lucide-react v0.511.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 WN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],JN=He("globe",WN);/**
171
- * @license lucide-react v0.511.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 eE=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],T0=He("layers",eE);/**
176
- * @license lucide-react v0.511.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 tE=[["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"}]],nE=He("layout-dashboard",tE);/**
181
- * @license lucide-react v0.511.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 aE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wc=He("loader-circle",aE);/**
186
- * @license lucide-react v0.511.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const sE=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],rE=He("message-square",sE);/**
191
- * @license lucide-react v0.511.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const iE=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],lE=He("moon",iE);/**
196
- * @license lucide-react v0.511.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const oE=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],cE=He("network",oE);/**
201
- * @license lucide-react v0.511.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const uE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Lx=He("plus",uE);/**
206
- * @license lucide-react v0.511.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const fE=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],dE=He("scroll-text",fE);/**
211
- * @license lucide-react v0.511.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const hE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_0=He("search",hE);/**
216
- * @license lucide-react v0.511.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const mE=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pE=He("settings",mE);/**
221
- * @license lucide-react v0.511.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const gE=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],vE=He("sun",gE);/**
226
- * @license lucide-react v0.511.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const yE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],xE=He("target",yE);/**
231
- * @license lucide-react v0.511.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const bE=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],hm=He("triangle-alert",bE);/**
236
- * @license lucide-react v0.511.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const SE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kx=He("x",SE),wE="/api";async function Xt(n,a){const r=await fetch(`${wE}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const l=await r.json().catch(()=>({}));throw new Error(l.error??`API error: ${r.status}`)}return r.json()}const Ea={getDashboard:()=>Xt("/dashboard"),listWorkspaces:()=>Xt("/workspaces"),getWorkspace:n=>Xt(`/workspaces/${n}`),createWorkspace:n=>Xt("/workspaces",{method:"POST",body:JSON.stringify(n)}),deleteWorkspace:n=>Xt(`/workspaces/${n}`,{method:"DELETE"}),getWorkspaceGraph:n=>Xt(`/workspaces/${n}/graph`),getDocuments:(n={})=>{const a=new URLSearchParams;return n.limit&&a.set("limit",String(n.limit)),n.offset&&a.set("offset",String(n.offset)),Xt(`/documents?${a}`)},getAllJobs:()=>Xt("/jobs"),runQuery:n=>Xt("/query",{method:"POST",body:JSON.stringify(n)}),startIndexRun:(n,a)=>Xt(`/workspaces/${n}/index`,{method:"POST",body:JSON.stringify({mode:a??"incremental"})}),getIndexStatus:n=>Xt(`/workspaces/${n}/index`),getWorkspaceJobs:n=>Xt(`/workspaces/${n}/jobs`),cancelJob:(n,a)=>Xt(`/workspaces/${n}/jobs/${a}`,{method:"DELETE"}),validatePath:n=>Xt("/validate-path",{method:"POST",body:JSON.stringify({rootPath:n})})},mm={queryKey:["dashboard"],queryFn:Ea.getDashboard},pm={queryKey:["workspaces"],queryFn:Ea.listWorkspaces},Ni=n=>({queryKey:["workspace",n],queryFn:()=>Ea.getWorkspace(n)}),pu=n=>({queryKey:["workspace-graph",n],queryFn:()=>Ea.getWorkspaceGraph(n)}),Jc=(n,a)=>({queryKey:["documents",n,a],queryFn:()=>Ea.getDocuments({limit:a,offset:(n-1)*a})}),gm={queryKey:["jobs"],queryFn:Ea.getAllJobs},A0={queryKey:["settings","env"],queryFn:async()=>{const n=await fetch("/api/settings/env");if(!n.ok)throw new Error(`Failed to fetch env settings: ${n.status} ${n.statusText}`);return n.json()},staleTime:1/0},Dn=10;function M0(n,a){const r=Math.max(1,Math.ceil(n.length/Dn));return{paged:n.slice((a-1)*Dn,a*Dn),totalPages:r}}function vm({currentPage:n,totalPages:a,basePath:r}){return a<=1?null:u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[n>1?u.jsxs(yt,{to:r,search:{page:n-1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:[u.jsx(Gl,{className:"h-3.5 w-3.5"}),"Previous"]}):u.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:[u.jsx(Gl,{className:"h-3.5 w-3.5"}),"Previous"]}),u.jsxs("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",n," of ",a]}),n<a?u.jsxs(yt,{to:r,search:{page:n+1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:["Next",u.jsx(Dx,{className:"h-3.5 w-3.5"})]}):u.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:["Next",u.jsx(Dx,{className:"h-3.5 w-3.5"})]})]})}function O0(n){var a,r,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(r=O0(n[a]))&&(l&&(l+=" "),l+=r)}else for(r in n)n[r]&&(l&&(l+=" "),l+=r);return l}function ym(){for(var n,a,r=0,l="",o=arguments.length;r<o;r++)(n=arguments[r])&&(a=O0(n))&&(l&&(l+=" "),l+=a);return l}const Ux=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Bx=ym,gu=(n,a)=>r=>{var l;if((a==null?void 0:a.variants)==null)return Bx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:f}=a,h=Object.keys(o).map(p=>{const x=r==null?void 0:r[p],v=f==null?void 0:f[p];if(x===null)return null;const b=Ux(x)||Ux(v);return o[p][b]}),m=r&&Object.entries(r).reduce((p,x)=>{let[v,b]=x;return b===void 0||(p[v]=b),p},{}),g=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((p,x)=>{let{class:v,className:b,...S}=x;return Object.entries(S).every(N=>{let[R,E]=N;return Array.isArray(E)?E.includes({...f,...m}[R]):{...f,...m}[R]===E})?[...p,v,b]:p},[]);return Bx(n,h,g,r==null?void 0:r.class,r==null?void 0:r.className)},jE=(n,a)=>{const r=new Array(n.length+a.length);for(let l=0;l<n.length;l++)r[l]=n[l];for(let l=0;l<a.length;l++)r[n.length+l]=a[l];return r},RE=(n,a)=>({classGroupId:n,validator:a}),D0=(n=new Map,a=null,r)=>({nextPart:n,validators:a,classGroupId:r}),eu="-",Hx=[],NE="arbitrary..",EE=n=>{const a=TE(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return CE(h);const m=h.split(eu),g=m[0]===""&&m.length>1?1:0;return z0(m,g,a)},getConflictingClassGroupIds:(h,m)=>{if(m){const g=l[h],p=r[h];return g?p?jE(p,g):g:p||Hx}return r[h]||Hx}}},z0=(n,a,r)=>{if(n.length-a===0)return r.classGroupId;const o=n[a],f=r.nextPart.get(o);if(f){const p=z0(n,a+1,f);if(p)return p}const h=r.validators;if(h===null)return;const m=a===0?n.join(eu):n.slice(a).join(eu),g=h.length;for(let p=0;p<g;p++){const x=h[p];if(x.validator(m))return x.classGroupId}},CE=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=n.slice(1,-1),r=a.indexOf(":"),l=a.slice(0,r);return l?NE+l:void 0})(),TE=n=>{const{theme:a,classGroups:r}=n;return _E(r,a)},_E=(n,a)=>{const r=D0();for(const l in n){const o=n[l];xm(o,r,l,a)}return r},xm=(n,a,r,l)=>{const o=n.length;for(let f=0;f<o;f++){const h=n[f];AE(h,a,r,l)}},AE=(n,a,r,l)=>{if(typeof n=="string"){ME(n,a,r);return}if(typeof n=="function"){OE(n,a,r,l);return}DE(n,a,r,l)},ME=(n,a,r)=>{const l=n===""?a:L0(a,n);l.classGroupId=r},OE=(n,a,r,l)=>{if(zE(n)){xm(n(l),a,r,l);return}a.validators===null&&(a.validators=[]),a.validators.push(RE(r,n))},DE=(n,a,r,l)=>{const o=Object.entries(n),f=o.length;for(let h=0;h<f;h++){const[m,g]=o[h];xm(g,L0(a,m),r,l)}},L0=(n,a)=>{let r=n;const l=a.split(eu),o=l.length;for(let f=0;f<o;f++){const h=l[f];let m=r.nextPart.get(h);m||(m=D0(),r.nextPart.set(h,m)),r=m}return r},zE=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,LE=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),l=Object.create(null);const o=(f,h)=>{r[f]=h,a++,a>n&&(a=0,l=r,r=Object.create(null))};return{get(f){let h=r[f];if(h!==void 0)return h;if((h=l[f])!==void 0)return o(f,h),h},set(f,h){f in r?r[f]=h:o(f,h)}}},Yh="!",Px=":",kE=[],qx=(n,a,r,l,o)=>({modifiers:n,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:l,isExternal:o}),UE=n=>{const{prefix:a,experimentalParseClassName:r}=n;let l=o=>{const f=[];let h=0,m=0,g=0,p;const x=o.length;for(let R=0;R<x;R++){const E=o[R];if(h===0&&m===0){if(E===Px){f.push(o.slice(g,R)),g=R+1;continue}if(E==="/"){p=R;continue}}E==="["?h++:E==="]"?h--:E==="("?m++:E===")"&&m--}const v=f.length===0?o:o.slice(g);let b=v,S=!1;v.endsWith(Yh)?(b=v.slice(0,-1),S=!0):v.startsWith(Yh)&&(b=v.slice(1),S=!0);const N=p&&p>g?p-g:void 0;return qx(f,S,b,N)};if(a){const o=a+Px,f=l;l=h=>h.startsWith(o)?f(h.slice(o.length)):qx(kE,!1,h,void 0,!0)}if(r){const o=l;l=f=>r({className:f,parseClassName:o})}return l},BE=n=>{const a=new Map;return n.orderSensitiveModifiers.forEach((r,l)=>{a.set(r,1e6+l)}),r=>{const l=[];let o=[];for(let f=0;f<r.length;f++){const h=r[f],m=h[0]==="[",g=a.has(h);m||g?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(h)):o.push(h)}return o.length>0&&(o.sort(),l.push(...o)),l}},HE=n=>({cache:LE(n.cacheSize),parseClassName:UE(n),sortModifiers:BE(n),postfixLookupClassGroupIds:PE(n),...EE(n)}),PE=n=>{const a=Object.create(null),r=n.postfixLookupClassGroups;if(r)for(let l=0;l<r.length;l++)a[r[l]]=!0;return a},qE=/\s+/,GE=(n,a)=>{const{parseClassName:r,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:f,postfixLookupClassGroupIds:h}=a,m=[],g=n.trim().split(qE);let p="";for(let x=g.length-1;x>=0;x-=1){const v=g[x],{isExternal:b,modifiers:S,hasImportantModifier:N,baseClassName:R,maybePostfixModifierPosition:E}=r(v);if(b){p=v+(p.length>0?" "+p:p);continue}let C=!!E,_;if(C){const M=R.substring(0,E);_=l(M);const D=_&&h[_]?l(R):void 0;D&&D!==_&&(_=D,C=!1)}else _=l(R);if(!_){if(!C){p=v+(p.length>0?" "+p:p);continue}if(_=l(R),!_){p=v+(p.length>0?" "+p:p);continue}C=!1}const U=S.length===0?"":S.length===1?S[0]:f(S).join(":"),T=N?U+Yh:U,P=T+_;if(m.indexOf(P)>-1)continue;m.push(P);const Y=o(_,C);for(let M=0;M<Y.length;++M){const D=Y[M];m.push(T+D)}p=v+(p.length>0?" "+p:p)}return p},QE=(...n)=>{let a=0,r,l,o="";for(;a<n.length;)(r=n[a++])&&(l=k0(r))&&(o&&(o+=" "),o+=l);return o},k0=n=>{if(typeof n=="string")return n;let a,r="";for(let l=0;l<n.length;l++)n[l]&&(a=k0(n[l]))&&(r&&(r+=" "),r+=a);return r},VE=(n,...a)=>{let r,l,o,f;const h=g=>{const p=a.reduce((x,v)=>v(x),n());return r=HE(p),l=r.cache.get,o=r.cache.set,f=m,m(g)},m=g=>{const p=l(g);if(p)return p;const x=GE(g,r);return o(g,x),x};return f=h,(...g)=>f(QE(...g))},YE=[],dt=n=>{const a=r=>r[n]||YE;return a.isThemeGetter=!0,a},U0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,B0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,IE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KE=/\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$/,ZE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ns=n=>XE.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),Qn=n=>!!n&&Number.isInteger(Number(n)),rh=n=>n.endsWith("%")&&je(n.slice(0,-1)),xa=n=>IE.test(n),H0=()=>!0,WE=n=>KE.test(n)&&!ZE.test(n),bm=()=>!1,JE=n=>FE.test(n),eC=n=>$E.test(n),tC=n=>!oe(n)&&!ce(n),nC=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),aC=n=>Rs(n,G0,bm),oe=n=>U0.test(n),Xs=n=>Rs(n,Q0,WE),Gx=n=>Rs(n,fC,je),sC=n=>Rs(n,Y0,H0),rC=n=>Rs(n,V0,bm),Qx=n=>Rs(n,P0,bm),iC=n=>Rs(n,q0,eC),Cc=n=>Rs(n,X0,JE),ce=n=>B0.test(n),Ml=n=>mr(n,Q0),lC=n=>mr(n,V0),Vx=n=>mr(n,P0),oC=n=>mr(n,G0),cC=n=>mr(n,q0),Tc=n=>mr(n,X0,!0),uC=n=>mr(n,Y0,!0),Rs=(n,a,r)=>{const l=U0.exec(n);return l?l[1]?a(l[1]):r(l[2]):!1},mr=(n,a,r=!1)=>{const l=B0.exec(n);return l?l[1]?a(l[1]):r:!1},P0=n=>n==="position"||n==="percentage",q0=n=>n==="image"||n==="url",G0=n=>n==="length"||n==="size"||n==="bg-size",Q0=n=>n==="length",fC=n=>n==="number",V0=n=>n==="family-name",Y0=n=>n==="number"||n==="weight",X0=n=>n==="shadow",dC=()=>{const n=dt("color"),a=dt("font"),r=dt("text"),l=dt("font-weight"),o=dt("tracking"),f=dt("leading"),h=dt("breakpoint"),m=dt("container"),g=dt("spacing"),p=dt("radius"),x=dt("shadow"),v=dt("inset-shadow"),b=dt("text-shadow"),S=dt("drop-shadow"),N=dt("blur"),R=dt("perspective"),E=dt("aspect"),C=dt("ease"),_=dt("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...T(),ce,oe],Y=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],D=()=>[ce,oe,g],k=()=>[ns,"full","auto",...D()],q=()=>[Qn,"none","subgrid",ce,oe],$=()=>["auto",{span:["full",Qn,ce,oe]},Qn,ce,oe],ee=()=>[Qn,"auto",ce,oe],ne=()=>["auto","min","max","fr",ce,oe],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...D()],X=()=>[ns,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],J=()=>[ns,"screen","full","dvw","lvw","svw","min","max","fit",...D()],pe=()=>[ns,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],te=()=>[n,ce,oe],O=()=>[...T(),Vx,Qx,{position:[ce,oe]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",oC,aC,{size:[ce,oe]}],re=()=>[rh,Ml,Xs],ie=()=>["","none","full",p,ce,oe],he=()=>["",je,Ml,Xs],Se=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[je,rh,Vx,Qx],Dt=()=>["","none",N,ce,oe],xt=()=>["none",je,ce,oe],Tt=()=>["none",je,ce,oe],zt=()=>[je,ce,oe],mt=()=>[ns,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xa],breakpoint:[xa],color:[H0],container:[xa],"drop-shadow":[xa],ease:["in","out","in-out"],font:[tC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xa],shadow:[xa],spacing:["px",je],text:[xa],"text-shadow":[xa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ns,oe,ce,E]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[nC],columns:[{columns:[je,oe,ce,m]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:P()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[Qn,"auto",ce,oe]}],basis:[{basis:[ns,"full","auto",m,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,ns,"auto","initial","none",oe]}],grow:[{grow:["",je,ce,oe]}],shrink:[{shrink:["",je,ce,oe]}],order:[{order:[Qn,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[m,"screen",...X()]}],"min-w":[{"min-w":[m,"screen","none",...X()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,Ml,Xs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,uC,sC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rh,oe]}],"font-family":[{font:[lC,rC,a]}],"font-features":[{"font-features":[oe]}],"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,ce,oe]}],"line-clamp":[{"line-clamp":[je,"none",ce,Gx]}],leading:[{leading:[f,...D()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ce,Xs]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[je,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"tab-size":[{tab:[Qn,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],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",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qn,ce,oe],radial:["",ce,oe],conic:[Qn,ce,oe]},cC,iC]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ce,oe]}],"outline-w":[{outline:["",je,Ml,Xs]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",x,Tc,Cc]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",v,Tc,Cc]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[je,Xs]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",b,Tc,Cc]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[je,ce,oe]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:Dt()}],brightness:[{brightness:[je,ce,oe]}],contrast:[{contrast:[je,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",S,Tc,Cc]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",je,ce,oe]}],"hue-rotate":[{"hue-rotate":[je,ce,oe]}],invert:[{invert:["",je,ce,oe]}],saturate:[{saturate:[je,ce,oe]}],sepia:[{sepia:["",je,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":Dt()}],"backdrop-brightness":[{"backdrop-brightness":[je,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[je,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",je,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[je,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[je,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ce,oe]}],ease:[{ease:["linear","initial",C,ce,oe]}],delay:[{delay:[je,ce,oe]}],animate:[{animate:["none",_,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,ce,oe]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:xt()}],"rotate-x":[{"rotate-x":xt()}],"rotate-y":[{"rotate-y":xt()}],"rotate-z":[{"rotate-z":xt()}],scale:[{scale:Tt()}],"scale-x":[{"scale-x":Tt()}],"scale-y":[{"scale-y":Tt()}],"scale-z":[{"scale-z":Tt()}],"scale-3d":["scale-3d"],skew:[{skew:zt()}],"skew-x":[{"skew-x":zt()}],"skew-y":[{"skew-y":zt()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mt()}],"translate-x":[{"translate-x":mt()}],"translate-y":[{"translate-y":mt()}],"translate-z":[{"translate-z":mt()}],"translate-none":["translate-none"],zoom:[{zoom:[Qn,ce,oe]}],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"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",ce,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":te()}],"scrollbar-track-color":[{"scrollbar-track":te()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",ce,oe]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[je,Ml,Xs,Gx]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},I0=VE(dC);function ht(...n){return I0(ym(n))}const hC=gu("inline-flex items-center rounded-full 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ut({className:n,variant:a,...r}){return u.jsx("div",{className:ht(hC({variant:a}),n),...r})}const K0=gu("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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Bt=w.forwardRef(({className:n,variant:a,size:r,...l},o)=>u.jsx("button",{className:ht(K0({variant:a,size:r,className:n})),ref:o,...l}));Bt.displayName="Button";const Oe=({className:n,...a})=>u.jsx("section",{className:ht("rounded-lg border bg-card text-card-foreground shadow-sm",n),...a}),nt=({className:n,...a})=>u.jsx("div",{className:ht("flex flex-col space-y-1.5 p-6",n),...a}),at=({className:n,...a})=>u.jsx("h3",{className:ht("text-2xl font-semibold leading-none tracking-tight",n),...a}),ih=({className:n,...a})=>u.jsx("p",{className:ht("text-sm text-muted-foreground",n),...a}),De=({className:n,...a})=>u.jsx("div",{className:ht("p-6 pt-0",n),...a}),mC=({className:n,children:a,...r})=>u.jsx("pre",{className:ht("rounded-lg border bg-card/50 p-4 overflow-auto text-sm font-mono text-foreground leading-relaxed",n),...r,children:a}),Ql=w.forwardRef(({className:n,type:a,...r},l)=>u.jsx("input",{type:a,className:ht("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",n),ref:l,...r}));Ql.displayName="Input";const Et=w.forwardRef(({className:n,...a},r)=>u.jsx("label",{ref:r,className:ht("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",n),...a}));Et.displayName="Label";const Fn=w.forwardRef(({className:n,...a},r)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:r,className:ht("w-full caption-bottom text-sm",n),...a})}));Fn.displayName="Table";const $n=w.forwardRef(({className:n,...a},r)=>u.jsx("thead",{ref:r,className:ht("[&_tr]:border-b",n),...a}));$n.displayName="TableHeader";const Wn=w.forwardRef(({className:n,...a},r)=>u.jsx("tbody",{ref:r,className:ht("[&_tr:last-child]:border-0",n),...a}));Wn.displayName="TableBody";const pC=w.forwardRef(({className:n,...a},r)=>u.jsx("tfoot",{ref:r,className:ht("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n),...a}));pC.displayName="TableFooter";const ut=w.forwardRef(({className:n,...a},r)=>u.jsx("tr",{ref:r,className:ht("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...a}));ut.displayName="TableRow";const ze=w.forwardRef(({className:n,...a},r)=>u.jsx("th",{ref:r,className:ht("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",n),...a}));ze.displayName="TableHead";const _e=w.forwardRef(({className:n,...a},r)=>u.jsx("td",{ref:r,className:ht("p-4 align-middle [&:has([role=checkbox])]:pr-0",n),...a}));_e.displayName="TableCell";const gC=w.forwardRef(({className:n,...a},r)=>u.jsx("caption",{ref:r,className:ht("mt-4 text-sm text-muted-foreground",n),...a}));gC.displayName="TableCaption";const Xh=({className:n,...a})=>u.jsx("textarea",{className:ht("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",n),...a});function Zt(n,a,{checkForDefaultPrevented:r=!0}={}){return function(o){if(n==null||n(o),r===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function Yx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Sm(...n){return a=>{let r=!1;const l=n.map(o=>{const f=Yx(o,a);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let o=0;o<l.length;o++){const f=l[o];typeof f=="function"?f():Yx(n[o],null)}}}}function kn(...n){return w.useCallback(Sm(...n),n)}function vC(n,a){const r=w.createContext(a),l=f=>{const{children:h,...m}=f,g=w.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:g,children:h})};l.displayName=n+"Provider";function o(f){const h=w.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[l,o]}function wm(n,a=[]){let r=[];function l(f,h){const m=w.createContext(h),g=r.length;r=[...r,h];const p=v=>{var C;const{scope:b,children:S,...N}=v,R=((C=b==null?void 0:b[n])==null?void 0:C[g])||m,E=w.useMemo(()=>N,Object.values(N));return u.jsx(R.Provider,{value:E,children:S})};p.displayName=f+"Provider";function x(v,b){var R;const S=((R=b==null?void 0:b[n])==null?void 0:R[g])||m,N=w.useContext(S);if(N)return N;if(h!==void 0)return h;throw new Error(`\`${v}\` must be used within \`${f}\``)}return[p,x]}const o=()=>{const f=r.map(h=>w.createContext(h));return function(m){const g=(m==null?void 0:m[n])||f;return w.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return o.scopeName=n,[l,yC(o,...a)]}function yC(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const l=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(f){const h=l.reduce((m,{useScope:g,scopeName:p})=>{const v=g(f)[`__scope${p}`];return{...m,...v}},{});return w.useMemo(()=>({[`__scope${a.scopeName}`]:h}),[h])}};return r.scopeName=a.scopeName,r}function Z0(n){const a=xC(n),r=w.forwardRef((l,o)=>{const{children:f,...h}=l,m=w.Children.toArray(f),g=m.find(SC);if(g){const p=g.props.children,x=m.map(v=>v===g?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:v);return u.jsx(a,{...h,ref:o,children:w.isValidElement(p)?w.cloneElement(p,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:f})});return r.displayName=`${n}.Slot`,r}function xC(n){const a=w.forwardRef((r,l)=>{const{children:o,...f}=r;if(w.isValidElement(o)){const h=jC(o),m=wC(f,o.props);return o.type!==w.Fragment&&(m.ref=l?Sm(l,h):h),w.cloneElement(o,m)}return w.Children.count(o)>1?w.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var F0=Symbol("radix.slottable");function bC(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=F0,a}function SC(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===F0}function wC(n,a){const r={...a};for(const l in a){const o=n[l],f=a[l];/^on[A-Z]/.test(l)?o&&f?r[l]=(...m)=>{const g=f(...m);return o(...m),g}:o&&(r[l]=o):l==="style"?r[l]={...o,...f}:l==="className"&&(r[l]=[o,f].filter(Boolean).join(" "))}return{...n,...r}}function jC(n){var l,o;let a=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var RC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wt=RC.reduce((n,a)=>{const r=Z0(`Primitive.${a}`),l=w.forwardRef((o,f)=>{const{asChild:h,...m}=o,g=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...m,ref:f})});return l.displayName=`Primitive.${a}`,{...n,[a]:l}},{});function NC(n,a){n&&hu.flushSync(()=>n.dispatchEvent(a))}function Ei(n){const a=w.useRef(n);return w.useEffect(()=>{a.current=n}),w.useMemo(()=>(...r)=>{var l;return(l=a.current)==null?void 0:l.call(a,...r)},[])}function EC(n,a=globalThis==null?void 0:globalThis.document){const r=Ei(n);w.useEffect(()=>{const l=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",l,{capture:!0}),()=>a.removeEventListener("keydown",l,{capture:!0})},[r,a])}var CC="DismissableLayer",Ih="dismissableLayer.update",TC="dismissableLayer.pointerDownOutside",_C="dismissableLayer.focusOutside",Xx,$0=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jm=w.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...g}=n,p=w.useContext($0),[x,v]=w.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=w.useState({}),N=kn(a,M=>v(M)),R=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=R.indexOf(E),_=x?R.indexOf(x):-1,U=p.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,P=OC(M=>{const D=M.target,k=[...p.branches].some(q=>q.contains(D));!T||k||(o==null||o(M),h==null||h(M),M.defaultPrevented||m==null||m())},b),Y=DC(M=>{const D=M.target;[...p.branches].some(q=>q.contains(D))||(f==null||f(M),h==null||h(M),M.defaultPrevented||m==null||m())},b);return EC(M=>{_===p.layers.size-1&&(l==null||l(M),!M.defaultPrevented&&m&&(M.preventDefault(),m()))},b),w.useEffect(()=>{if(x)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Xx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Ix(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Xx)}},[x,b,r,p]),w.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Ix())},[x,p]),w.useEffect(()=>{const M=()=>S({});return document.addEventListener(Ih,M),()=>document.removeEventListener(Ih,M)},[]),u.jsx(Wt.div,{...g,ref:N,style:{pointerEvents:U?T?"auto":"none":void 0,...n.style},onFocusCapture:Zt(n.onFocusCapture,Y.onFocusCapture),onBlurCapture:Zt(n.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:Zt(n.onPointerDownCapture,P.onPointerDownCapture)})});jm.displayName=CC;var AC="DismissableLayerBranch",MC=w.forwardRef((n,a)=>{const r=w.useContext($0),l=w.useRef(null),o=kn(a,l);return w.useEffect(()=>{const f=l.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),u.jsx(Wt.div,{...n,ref:o})});MC.displayName=AC;function OC(n,a=globalThis==null?void 0:globalThis.document){const r=Ei(n),l=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const f=m=>{if(m.target&&!l.current){let g=function(){W0(TC,r,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=g,a.addEventListener("click",o.current,{once:!0})):g()}else a.removeEventListener("click",o.current);l.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:()=>l.current=!0}}function DC(n,a=globalThis==null?void 0:globalThis.document){const r=Ei(n),l=w.useRef(!1);return w.useEffect(()=>{const o=f=>{f.target&&!l.current&&W0(_C,r,{originalEvent:f},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Ix(){const n=new CustomEvent(Ih);document.dispatchEvent(n)}function W0(n,a,r,{discrete:l}){const o=r.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(n,a,{once:!0}),l?NC(o,f):o.dispatchEvent(f)}var Ss=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},zC=ou[" useId ".trim().toString()]||(()=>{}),LC=0;function qc(n){const[a,r]=w.useState(zC());return Ss(()=>{r(l=>l??String(LC++))},[n]),n||(a?`radix-${a}`:"")}const kC=["top","right","bottom","left"],ws=Math.min,fn=Math.max,tu=Math.round,_c=Math.floor,Jn=n=>({x:n,y:n}),UC={left:"right",right:"left",bottom:"top",top:"bottom"};function Kh(n,a,r){return fn(n,ws(a,r))}function Ca(n,a){return typeof n=="function"?n(a):n}function Ta(n){return n.split("-")[0]}function Ai(n){return n.split("-")[1]}function Rm(n){return n==="x"?"y":"x"}function Nm(n){return n==="y"?"height":"width"}function Zn(n){const a=n[0];return a==="t"||a==="b"?"y":"x"}function Em(n){return Rm(Zn(n))}function BC(n,a,r){r===void 0&&(r=!1);const l=Ai(n),o=Em(n),f=Nm(o);let h=o==="x"?l===(r?"end":"start")?"right":"left":l==="start"?"bottom":"top";return a.reference[f]>a.floating[f]&&(h=nu(h)),[h,nu(h)]}function HC(n){const a=nu(n);return[Zh(n),a,Zh(a)]}function Zh(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Kx=["left","right"],Zx=["right","left"],PC=["top","bottom"],qC=["bottom","top"];function GC(n,a,r){switch(n){case"top":case"bottom":return r?a?Zx:Kx:a?Kx:Zx;case"left":case"right":return a?PC:qC;default:return[]}}function QC(n,a,r,l){const o=Ai(n);let f=GC(Ta(n),r==="start",l);return o&&(f=f.map(h=>h+"-"+o),a&&(f=f.concat(f.map(Zh)))),f}function nu(n){const a=Ta(n);return UC[a]+n.slice(a.length)}function VC(n){return{top:0,right:0,bottom:0,left:0,...n}}function J0(n){return typeof n!="number"?VC(n):{top:n,right:n,bottom:n,left:n}}function au(n){const{x:a,y:r,width:l,height:o}=n;return{width:l,height:o,top:r,left:a,right:a+l,bottom:r+o,x:a,y:r}}function Fx(n,a,r){let{reference:l,floating:o}=n;const f=Zn(a),h=Em(a),m=Nm(h),g=Ta(a),p=f==="y",x=l.x+l.width/2-o.width/2,v=l.y+l.height/2-o.height/2,b=l[m]/2-o[m]/2;let S;switch(g){case"top":S={x,y:l.y-o.height};break;case"bottom":S={x,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:v};break;case"left":S={x:l.x-o.width,y:v};break;default:S={x:l.x,y:l.y}}switch(Ai(a)){case"start":S[h]-=b*(r&&p?-1:1);break;case"end":S[h]+=b*(r&&p?-1:1);break}return S}async function YC(n,a){var r;a===void 0&&(a={});const{x:l,y:o,platform:f,rects:h,elements:m,strategy:g}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:v="floating",altBoundary:b=!1,padding:S=0}=Ca(a,n),N=J0(S),E=m[b?v==="floating"?"reference":"floating":v],C=au(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(E)))==null||r?E:E.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:x,strategy:g})),_=v==="floating"?{x:l,y:o,width:h.floating.width,height:h.floating.height}:h.reference,U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),T=await(f.isElement==null?void 0:f.isElement(U))?await(f.getScale==null?void 0:f.getScale(U))||{x:1,y:1}:{x:1,y:1},P=au(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:U,strategy:g}):_);return{top:(C.top-P.top+N.top)/T.y,bottom:(P.bottom-C.bottom+N.bottom)/T.y,left:(C.left-P.left+N.left)/T.x,right:(P.right-C.right+N.right)/T.x}}const XC=50,IC=async(n,a,r)=>{const{placement:l="bottom",strategy:o="absolute",middleware:f=[],platform:h}=r,m=h.detectOverflow?h:{...h,detectOverflow:YC},g=await(h.isRTL==null?void 0:h.isRTL(a));let p=await h.getElementRects({reference:n,floating:a,strategy:o}),{x,y:v}=Fx(p,l,g),b=l,S=0;const N={};for(let R=0;R<f.length;R++){const E=f[R];if(!E)continue;const{name:C,fn:_}=E,{x:U,y:T,data:P,reset:Y}=await _({x,y:v,initialPlacement:l,placement:b,strategy:o,middlewareData:N,rects:p,platform:m,elements:{reference:n,floating:a}});x=U??x,v=T??v,N[C]={...N[C],...P},Y&&S<XC&&(S++,typeof Y=="object"&&(Y.placement&&(b=Y.placement),Y.rects&&(p=Y.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:o}):Y.rects),{x,y:v}=Fx(p,b,g)),R=-1)}return{x,y:v,placement:b,strategy:o,middlewareData:N}},KC=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:l,placement:o,rects:f,platform:h,elements:m,middlewareData:g}=a,{element:p,padding:x=0}=Ca(n,a)||{};if(p==null)return{};const v=J0(x),b={x:r,y:l},S=Em(o),N=Nm(S),R=await h.getDimensions(p),E=S==="y",C=E?"top":"left",_=E?"bottom":"right",U=E?"clientHeight":"clientWidth",T=f.reference[N]+f.reference[S]-b[S]-f.floating[N],P=b[S]-f.reference[S],Y=await(h.getOffsetParent==null?void 0:h.getOffsetParent(p));let M=Y?Y[U]:0;(!M||!await(h.isElement==null?void 0:h.isElement(Y)))&&(M=m.floating[U]||f.floating[N]);const D=T/2-P/2,k=M/2-R[N]/2-1,q=ws(v[C],k),$=ws(v[_],k),ee=q,ne=M-R[N]-$,ae=M/2-R[N]/2+D,de=Kh(ee,ae,ne),B=!g.arrow&&Ai(o)!=null&&ae!==de&&f.reference[N]/2-(ae<ee?q:$)-R[N]/2<0,X=B?ae<ee?ae-ee:ae-ne:0;return{[S]:b[S]+X,data:{[S]:de,centerOffset:ae-de-X,...B&&{alignmentOffset:X}},reset:B}}}),ZC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,l;const{placement:o,middlewareData:f,rects:h,initialPlacement:m,platform:g,elements:p}=a,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:R=!0,...E}=Ca(n,a);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const C=Ta(o),_=Zn(m),U=Ta(m)===m,T=await(g.isRTL==null?void 0:g.isRTL(p.floating)),P=b||(U||!R?[nu(m)]:HC(m)),Y=N!=="none";!b&&Y&&P.push(...QC(m,R,N,T));const M=[m,...P],D=await g.detectOverflow(a,E),k=[];let q=((l=f.flip)==null?void 0:l.overflows)||[];if(x&&k.push(D[C]),v){const ae=BC(o,h,T);k.push(D[ae[0]],D[ae[1]])}if(q=[...q,{placement:o,overflows:k}],!k.every(ae=>ae<=0)){var $,ee;const ae=((($=f.flip)==null?void 0:$.index)||0)+1,de=M[ae];if(de&&(!(v==="alignment"?_!==Zn(de):!1)||q.every(J=>Zn(J.placement)===_?J.overflows[0]>0:!0)))return{data:{index:ae,overflows:q},reset:{placement:de}};let B=(ee=q.filter(X=>X.overflows[0]<=0).sort((X,J)=>X.overflows[1]-J.overflows[1])[0])==null?void 0:ee.placement;if(!B)switch(S){case"bestFit":{var ne;const X=(ne=q.filter(J=>{if(Y){const pe=Zn(J.placement);return pe===_||pe==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(pe=>pe>0).reduce((pe,te)=>pe+te,0)]).sort((J,pe)=>J[1]-pe[1])[0])==null?void 0:ne[0];X&&(B=X);break}case"initialPlacement":B=m;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function $x(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Wx(n){return kC.some(a=>n[a]>=0)}const FC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r,platform:l}=a,{strategy:o="referenceHidden",...f}=Ca(n,a);switch(o){case"referenceHidden":{const h=await l.detectOverflow(a,{...f,elementContext:"reference"}),m=$x(h,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Wx(m)}}}case"escaped":{const h=await l.detectOverflow(a,{...f,altBoundary:!0}),m=$x(h,r.floating);return{data:{escapedOffsets:m,escaped:Wx(m)}}}default:return{}}}}},e1=new Set(["left","top"]);async function $C(n,a){const{placement:r,platform:l,elements:o}=n,f=await(l.isRTL==null?void 0:l.isRTL(o.floating)),h=Ta(r),m=Ai(r),g=Zn(r)==="y",p=e1.has(h)?-1:1,x=f&&g?-1:1,v=Ca(a,n);let{mainAxis:b,crossAxis:S,alignmentAxis:N}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return m&&typeof N=="number"&&(S=m==="end"?N*-1:N),g?{x:S*x,y:b*p}:{x:b*p,y:S*x}}const WC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,l;const{x:o,y:f,placement:h,middlewareData:m}=a,g=await $C(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(l=m.arrow)!=null&&l.alignmentOffset?{}:{x:o+g.x,y:f+g.y,data:{...g,placement:h}}}}},JC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:l,placement:o,platform:f}=a,{mainAxis:h=!0,crossAxis:m=!1,limiter:g={fn:C=>{let{x:_,y:U}=C;return{x:_,y:U}}},...p}=Ca(n,a),x={x:r,y:l},v=await f.detectOverflow(a,p),b=Zn(Ta(o)),S=Rm(b);let N=x[S],R=x[b];if(h){const C=S==="y"?"top":"left",_=S==="y"?"bottom":"right",U=N+v[C],T=N-v[_];N=Kh(U,N,T)}if(m){const C=b==="y"?"top":"left",_=b==="y"?"bottom":"right",U=R+v[C],T=R-v[_];R=Kh(U,R,T)}const E=g.fn({...a,[S]:N,[b]:R});return{...E,data:{x:E.x-r,y:E.y-l,enabled:{[S]:h,[b]:m}}}}}},eT=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:l,placement:o,rects:f,middlewareData:h}=a,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=Ca(n,a),x={x:r,y:l},v=Zn(o),b=Rm(v);let S=x[b],N=x[v];const R=Ca(m,a),E=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(g){const U=b==="y"?"height":"width",T=f.reference[b]-f.floating[U]+E.mainAxis,P=f.reference[b]+f.reference[U]-E.mainAxis;S<T?S=T:S>P&&(S=P)}if(p){var C,_;const U=b==="y"?"width":"height",T=e1.has(Ta(o)),P=f.reference[v]-f.floating[U]+(T&&((C=h.offset)==null?void 0:C[v])||0)+(T?0:E.crossAxis),Y=f.reference[v]+f.reference[U]+(T?0:((_=h.offset)==null?void 0:_[v])||0)-(T?E.crossAxis:0);N<P?N=P:N>Y&&(N=Y)}return{[b]:S,[v]:N}}}},tT=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,l;const{placement:o,rects:f,platform:h,elements:m}=a,{apply:g=()=>{},...p}=Ca(n,a),x=await h.detectOverflow(a,p),v=Ta(o),b=Ai(o),S=Zn(o)==="y",{width:N,height:R}=f.floating;let E,C;v==="top"||v==="bottom"?(E=v,C=b===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(C=v,E=b==="end"?"top":"bottom");const _=R-x.top-x.bottom,U=N-x.left-x.right,T=ws(R-x[E],_),P=ws(N-x[C],U),Y=!a.middlewareData.shift;let M=T,D=P;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(D=U),(l=a.middlewareData.shift)!=null&&l.enabled.y&&(M=_),Y&&!b){const q=fn(x.left,0),$=fn(x.right,0),ee=fn(x.top,0),ne=fn(x.bottom,0);S?D=N-2*(q!==0||$!==0?q+$:fn(x.left,x.right)):M=R-2*(ee!==0||ne!==0?ee+ne:fn(x.top,x.bottom))}await g({...a,availableWidth:D,availableHeight:M});const k=await h.getDimensions(m.floating);return N!==k.width||R!==k.height?{reset:{rects:!0}}:{}}}};function vu(){return typeof window<"u"}function Mi(n){return t1(n)?(n.nodeName||"").toLowerCase():"#document"}function dn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function ea(n){var a;return(a=(t1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function t1(n){return vu()?n instanceof Node||n instanceof dn(n).Node:!1}function zn(n){return vu()?n instanceof Element||n instanceof dn(n).Element:!1}function _a(n){return vu()?n instanceof HTMLElement||n instanceof dn(n).HTMLElement:!1}function Jx(n){return!vu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof dn(n).ShadowRoot}function to(n){const{overflow:a,overflowX:r,overflowY:l,display:o}=Ln(n);return/auto|scroll|overlay|hidden|clip/.test(a+l+r)&&o!=="inline"&&o!=="contents"}function nT(n){return/^(table|td|th)$/.test(Mi(n))}function yu(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const aT=/transform|translate|scale|rotate|perspective|filter/,sT=/paint|layout|strict|content/,Is=n=>!!n&&n!=="none";let lh;function Cm(n){const a=zn(n)?Ln(n):n;return Is(a.transform)||Is(a.translate)||Is(a.scale)||Is(a.rotate)||Is(a.perspective)||!Tm()&&(Is(a.backdropFilter)||Is(a.filter))||aT.test(a.willChange||"")||sT.test(a.contain||"")}function rT(n){let a=js(n);for(;_a(a)&&!Ci(a);){if(Cm(a))return a;if(yu(a))return null;a=js(a)}return null}function Tm(){return lh==null&&(lh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),lh}function Ci(n){return/^(html|body|#document)$/.test(Mi(n))}function Ln(n){return dn(n).getComputedStyle(n)}function xu(n){return zn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function js(n){if(Mi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Jx(n)&&n.host||ea(n);return Jx(a)?a.host:a}function n1(n){const a=js(n);return Ci(a)?n.ownerDocument?n.ownerDocument.body:n.body:_a(a)&&to(a)?a:n1(a)}function Vl(n,a,r){var l;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=n1(n),f=o===((l=n.ownerDocument)==null?void 0:l.body),h=dn(o);if(f){const m=Fh(h);return a.concat(h,h.visualViewport||[],to(o)?o:[],m&&r?Vl(m):[])}else return a.concat(o,Vl(o,[],r))}function Fh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function a1(n){const a=Ln(n);let r=parseFloat(a.width)||0,l=parseFloat(a.height)||0;const o=_a(n),f=o?n.offsetWidth:r,h=o?n.offsetHeight:l,m=tu(r)!==f||tu(l)!==h;return m&&(r=f,l=h),{width:r,height:l,$:m}}function _m(n){return zn(n)?n:n.contextElement}function ci(n){const a=_m(n);if(!_a(a))return Jn(1);const r=a.getBoundingClientRect(),{width:l,height:o,$:f}=a1(a);let h=(f?tu(r.width):r.width)/l,m=(f?tu(r.height):r.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const iT=Jn(0);function s1(n){const a=dn(n);return!Tm()||!a.visualViewport?iT:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function lT(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==dn(n)?!1:a}function fr(n,a,r,l){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=n.getBoundingClientRect(),f=_m(n);let h=Jn(1);a&&(l?zn(l)&&(h=ci(l)):h=ci(n));const m=lT(f,r,l)?s1(f):Jn(0);let g=(o.left+m.x)/h.x,p=(o.top+m.y)/h.y,x=o.width/h.x,v=o.height/h.y;if(f){const b=dn(f),S=l&&zn(l)?dn(l):l;let N=b,R=Fh(N);for(;R&&l&&S!==N;){const E=ci(R),C=R.getBoundingClientRect(),_=Ln(R),U=C.left+(R.clientLeft+parseFloat(_.paddingLeft))*E.x,T=C.top+(R.clientTop+parseFloat(_.paddingTop))*E.y;g*=E.x,p*=E.y,x*=E.x,v*=E.y,g+=U,p+=T,N=dn(R),R=Fh(N)}}return au({width:x,height:v,x:g,y:p})}function bu(n,a){const r=xu(n).scrollLeft;return a?a.left+r:fr(ea(n)).left+r}function r1(n,a){const r=n.getBoundingClientRect(),l=r.left+a.scrollLeft-bu(n,r),o=r.top+a.scrollTop;return{x:l,y:o}}function oT(n){let{elements:a,rect:r,offsetParent:l,strategy:o}=n;const f=o==="fixed",h=ea(l),m=a?yu(a.floating):!1;if(l===h||m&&f)return r;let g={scrollLeft:0,scrollTop:0},p=Jn(1);const x=Jn(0),v=_a(l);if((v||!v&&!f)&&((Mi(l)!=="body"||to(h))&&(g=xu(l)),v)){const S=fr(l);p=ci(l),x.x=S.x+l.clientLeft,x.y=S.y+l.clientTop}const b=h&&!v&&!f?r1(h,g):Jn(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+x.x+b.x,y:r.y*p.y-g.scrollTop*p.y+x.y+b.y}}function cT(n){return Array.from(n.getClientRects())}function uT(n){const a=ea(n),r=xu(n),l=n.ownerDocument.body,o=fn(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),f=fn(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let h=-r.scrollLeft+bu(n);const m=-r.scrollTop;return Ln(l).direction==="rtl"&&(h+=fn(a.clientWidth,l.clientWidth)-o),{width:o,height:f,x:h,y:m}}const eb=25;function fT(n,a){const r=dn(n),l=ea(n),o=r.visualViewport;let f=l.clientWidth,h=l.clientHeight,m=0,g=0;if(o){f=o.width,h=o.height;const x=Tm();(!x||x&&a==="fixed")&&(m=o.offsetLeft,g=o.offsetTop)}const p=bu(l);if(p<=0){const x=l.ownerDocument,v=x.body,b=getComputedStyle(v),S=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,N=Math.abs(l.clientWidth-v.clientWidth-S);N<=eb&&(f-=N)}else p<=eb&&(f+=p);return{width:f,height:h,x:m,y:g}}function dT(n,a){const r=fr(n,!0,a==="fixed"),l=r.top+n.clientTop,o=r.left+n.clientLeft,f=_a(n)?ci(n):Jn(1),h=n.clientWidth*f.x,m=n.clientHeight*f.y,g=o*f.x,p=l*f.y;return{width:h,height:m,x:g,y:p}}function tb(n,a,r){let l;if(a==="viewport")l=fT(n,r);else if(a==="document")l=uT(ea(n));else if(zn(a))l=dT(a,r);else{const o=s1(n);l={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return au(l)}function i1(n,a){const r=js(n);return r===a||!zn(r)||Ci(r)?!1:Ln(r).position==="fixed"||i1(r,a)}function hT(n,a){const r=a.get(n);if(r)return r;let l=Vl(n,[],!1).filter(m=>zn(m)&&Mi(m)!=="body"),o=null;const f=Ln(n).position==="fixed";let h=f?js(n):n;for(;zn(h)&&!Ci(h);){const m=Ln(h),g=Cm(h);!g&&m.position==="fixed"&&(o=null),(f?!g&&!o:!g&&m.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||to(h)&&!g&&i1(n,h))?l=l.filter(x=>x!==h):o=m,h=js(h)}return a.set(n,l),l}function mT(n){let{element:a,boundary:r,rootBoundary:l,strategy:o}=n;const h=[...r==="clippingAncestors"?yu(a)?[]:hT(a,this._c):[].concat(r),l],m=tb(a,h[0],o);let g=m.top,p=m.right,x=m.bottom,v=m.left;for(let b=1;b<h.length;b++){const S=tb(a,h[b],o);g=fn(S.top,g),p=ws(S.right,p),x=ws(S.bottom,x),v=fn(S.left,v)}return{width:p-v,height:x-g,x:v,y:g}}function pT(n){const{width:a,height:r}=a1(n);return{width:a,height:r}}function gT(n,a,r){const l=_a(a),o=ea(a),f=r==="fixed",h=fr(n,!0,f,a);let m={scrollLeft:0,scrollTop:0};const g=Jn(0);function p(){g.x=bu(o)}if(l||!l&&!f)if((Mi(a)!=="body"||to(o))&&(m=xu(a)),l){const S=fr(a,!0,f,a);g.x=S.x+a.clientLeft,g.y=S.y+a.clientTop}else o&&p();f&&!l&&o&&p();const x=o&&!l&&!f?r1(o,m):Jn(0),v=h.left+m.scrollLeft-g.x-x.x,b=h.top+m.scrollTop-g.y-x.y;return{x:v,y:b,width:h.width,height:h.height}}function oh(n){return Ln(n).position==="static"}function nb(n,a){if(!_a(n)||Ln(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return ea(n)===r&&(r=r.ownerDocument.body),r}function l1(n,a){const r=dn(n);if(yu(n))return r;if(!_a(n)){let o=js(n);for(;o&&!Ci(o);){if(zn(o)&&!oh(o))return o;o=js(o)}return r}let l=nb(n,a);for(;l&&nT(l)&&oh(l);)l=nb(l,a);return l&&Ci(l)&&oh(l)&&!Cm(l)?r:l||rT(n)||r}const vT=async function(n){const a=this.getOffsetParent||l1,r=this.getDimensions,l=await r(n.floating);return{reference:gT(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function yT(n){return Ln(n).direction==="rtl"}const xT={convertOffsetParentRelativeRectToViewportRelativeRect:oT,getDocumentElement:ea,getClippingRect:mT,getOffsetParent:l1,getElementRects:vT,getClientRects:cT,getDimensions:pT,getScale:ci,isElement:zn,isRTL:yT};function o1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function bT(n,a){let r=null,l;const o=ea(n);function f(){var m;clearTimeout(l),(m=r)==null||m.disconnect(),r=null}function h(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),f();const p=n.getBoundingClientRect(),{left:x,top:v,width:b,height:S}=p;if(m||a(),!b||!S)return;const N=_c(v),R=_c(o.clientWidth-(x+b)),E=_c(o.clientHeight-(v+S)),C=_c(x),U={rootMargin:-N+"px "+-R+"px "+-E+"px "+-C+"px",threshold:fn(0,ws(1,g))||1};let T=!0;function P(Y){const M=Y[0].intersectionRatio;if(M!==g){if(!T)return h();M?h(!1,M):l=setTimeout(()=>{h(!1,1e-7)},1e3)}M===1&&!o1(p,n.getBoundingClientRect())&&h(),T=!1}try{r=new IntersectionObserver(P,{...U,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,U)}r.observe(n)}return h(!0),f}function ST(n,a,r,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=l,p=_m(n),x=o||f?[...p?Vl(p):[],...a?Vl(a):[]]:[];x.forEach(C=>{o&&C.addEventListener("scroll",r,{passive:!0}),f&&C.addEventListener("resize",r)});const v=p&&m?bT(p,r):null;let b=-1,S=null;h&&(S=new ResizeObserver(C=>{let[_]=C;_&&_.target===p&&S&&a&&(S.unobserve(a),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=S)==null||U.observe(a)})),r()}),p&&!g&&S.observe(p),a&&S.observe(a));let N,R=g?fr(n):null;g&&E();function E(){const C=fr(n);R&&!o1(R,C)&&r(),R=C,N=requestAnimationFrame(E)}return r(),()=>{var C;x.forEach(_=>{o&&_.removeEventListener("scroll",r),f&&_.removeEventListener("resize",r)}),v==null||v(),(C=S)==null||C.disconnect(),S=null,g&&cancelAnimationFrame(N)}}const wT=WC,jT=JC,RT=ZC,NT=tT,ET=FC,ab=KC,CT=eT,TT=(n,a,r)=>{const l=new Map,o={platform:xT,...r},f={...o.platform,_c:l};return IC(n,a,{...o,platform:f})};var _T=typeof document<"u",AT=function(){},Gc=_T?w.useLayoutEffect:AT;function su(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,l,o;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(l=r;l--!==0;)if(!su(n[l],a[l]))return!1;return!0}if(o=Object.keys(n),r=o.length,r!==Object.keys(a).length)return!1;for(l=r;l--!==0;)if(!{}.hasOwnProperty.call(a,o[l]))return!1;for(l=r;l--!==0;){const f=o[l];if(!(f==="_owner"&&n.$$typeof)&&!su(n[f],a[f]))return!1}return!0}return n!==n&&a!==a}function c1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function sb(n,a){const r=c1(n);return Math.round(a*r)/r}function ch(n){const a=w.useRef(n);return Gc(()=>{a.current=n}),a}function MT(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:l=[],platform:o,elements:{reference:f,floating:h}={},transform:m=!0,whileElementsMounted:g,open:p}=n,[x,v]=w.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[b,S]=w.useState(l);su(b,l)||S(l);const[N,R]=w.useState(null),[E,C]=w.useState(null),_=w.useCallback(J=>{J!==Y.current&&(Y.current=J,R(J))},[]),U=w.useCallback(J=>{J!==M.current&&(M.current=J,C(J))},[]),T=f||N,P=h||E,Y=w.useRef(null),M=w.useRef(null),D=w.useRef(x),k=g!=null,q=ch(g),$=ch(o),ee=ch(p),ne=w.useCallback(()=>{if(!Y.current||!M.current)return;const J={placement:a,strategy:r,middleware:b};$.current&&(J.platform=$.current),TT(Y.current,M.current,J).then(pe=>{const te={...pe,isPositioned:ee.current!==!1};ae.current&&!su(D.current,te)&&(D.current=te,hu.flushSync(()=>{v(te)}))})},[b,a,r,$,ee]);Gc(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,v(J=>({...J,isPositioned:!1})))},[p]);const ae=w.useRef(!1);Gc(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Gc(()=>{if(T&&(Y.current=T),P&&(M.current=P),T&&P){if(q.current)return q.current(T,P,ne);ne()}},[T,P,ne,q,k]);const de=w.useMemo(()=>({reference:Y,floating:M,setReference:_,setFloating:U}),[_,U]),B=w.useMemo(()=>({reference:T,floating:P}),[T,P]),X=w.useMemo(()=>{const J={position:r,left:0,top:0};if(!B.floating)return J;const pe=sb(B.floating,x.x),te=sb(B.floating,x.y);return m?{...J,transform:"translate("+pe+"px, "+te+"px)",...c1(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:pe,top:te}},[r,m,B.floating,x.x,x.y]);return w.useMemo(()=>({...x,update:ne,refs:de,elements:B,floatingStyles:X}),[x,ne,de,B,X])}const OT=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:l,padding:o}=typeof n=="function"?n(r):n;return l&&a(l)?l.current!=null?ab({element:l.current,padding:o}).fn(r):{}:l?ab({element:l,padding:o}).fn(r):{}}}},DT=(n,a)=>{const r=wT(n);return{name:r.name,fn:r.fn,options:[n,a]}},zT=(n,a)=>{const r=jT(n);return{name:r.name,fn:r.fn,options:[n,a]}},LT=(n,a)=>({fn:CT(n).fn,options:[n,a]}),kT=(n,a)=>{const r=RT(n);return{name:r.name,fn:r.fn,options:[n,a]}},UT=(n,a)=>{const r=NT(n);return{name:r.name,fn:r.fn,options:[n,a]}},BT=(n,a)=>{const r=ET(n);return{name:r.name,fn:r.fn,options:[n,a]}},HT=(n,a)=>{const r=OT(n);return{name:r.name,fn:r.fn,options:[n,a]}};var PT="Arrow",u1=w.forwardRef((n,a)=>{const{children:r,width:l=10,height:o=5,...f}=n;return u.jsx(Wt.svg,{...f,ref:a,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});u1.displayName=PT;var qT=u1;function GT(n){const[a,r]=w.useState(void 0);return Ss(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const f=o[0];let h,m;if("borderBoxSize"in f){const g=f.borderBoxSize,p=Array.isArray(g)?g[0]:g;h=p.inlineSize,m=p.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else r(void 0)},[n]),a}var Am="Popper",[f1,d1]=wm(Am),[QT,h1]=f1(Am),m1=n=>{const{__scopePopper:a,children:r}=n,[l,o]=w.useState(null);return u.jsx(QT,{scope:a,anchor:l,onAnchorChange:o,children:r})};m1.displayName=Am;var p1="PopperAnchor",g1=w.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:l,...o}=n,f=h1(p1,r),h=w.useRef(null),m=kn(a,h),g=w.useRef(null);return w.useEffect(()=>{const p=g.current;g.current=(l==null?void 0:l.current)||h.current,p!==g.current&&f.onAnchorChange(g.current)}),l?null:u.jsx(Wt.div,{...o,ref:m})});g1.displayName=p1;var Mm="PopperContent",[VT,YT]=f1(Mm),v1=w.forwardRef((n,a)=>{var Se,Ue,ye,Dt,xt,Tt;const{__scopePopper:r,side:l="bottom",sideOffset:o=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:v="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:N,...R}=n,E=h1(Mm,r),[C,_]=w.useState(null),U=kn(a,zt=>_(zt)),[T,P]=w.useState(null),Y=GT(T),M=(Y==null?void 0:Y.width)??0,D=(Y==null?void 0:Y.height)??0,k=l+(f!=="center"?"-"+f:""),q=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},$=Array.isArray(p)?p:[p],ee=$.length>0,ne={padding:q,boundary:$.filter(IT),altBoundary:ee},{refs:ae,floatingStyles:de,placement:B,isPositioned:X,middlewareData:J}=MT({strategy:"fixed",placement:k,whileElementsMounted:(...zt)=>ST(...zt,{animationFrame:S==="always"}),elements:{reference:E.anchor},middleware:[DT({mainAxis:o+D,alignmentAxis:h}),g&&zT({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?LT():void 0,...ne}),g&&kT({...ne}),UT({...ne,apply:({elements:zt,rects:mt,availableWidth:Es,availableHeight:Aa})=>{const{width:pr,height:Cn}=mt.reference,mn=zt.floating.style;mn.setProperty("--radix-popper-available-width",`${Es}px`),mn.setProperty("--radix-popper-available-height",`${Aa}px`),mn.setProperty("--radix-popper-anchor-width",`${pr}px`),mn.setProperty("--radix-popper-anchor-height",`${Cn}px`)}}),T&&HT({element:T,padding:m}),KT({arrowWidth:M,arrowHeight:D}),b&&BT({strategy:"referenceHidden",...ne})]}),[pe,te]=b1(B),O=Ei(N);Ss(()=>{X&&(O==null||O())},[X,O]);const Z=(Se=J.arrow)==null?void 0:Se.x,se=(Ue=J.arrow)==null?void 0:Ue.y,re=((ye=J.arrow)==null?void 0:ye.centerOffset)!==0,[ie,he]=w.useState();return Ss(()=>{C&&he(window.getComputedStyle(C).zIndex)},[C]),u.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:X?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(Dt=J.transformOrigin)==null?void 0:Dt.x,(xt=J.transformOrigin)==null?void 0:xt.y].join(" "),...((Tt=J.hide)==null?void 0:Tt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:u.jsx(VT,{scope:r,placedSide:pe,onArrowChange:P,arrowX:Z,arrowY:se,shouldHideArrow:re,children:u.jsx(Wt.div,{"data-side":pe,"data-align":te,...R,ref:U,style:{...R.style,animation:X?void 0:"none"}})})})});v1.displayName=Mm;var y1="PopperArrow",XT={top:"bottom",right:"left",bottom:"top",left:"right"},x1=w.forwardRef(function(a,r){const{__scopePopper:l,...o}=a,f=YT(y1,l),h=XT[f.placedSide];return u.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:u.jsx(qT,{...o,ref:r,style:{...o.style,display:"block"}})})});x1.displayName=y1;function IT(n){return n!==null}var KT=n=>({name:"transformOrigin",options:n,fn(a){var E,C,_;const{placement:r,rects:l,middlewareData:o}=a,h=((E=o.arrow)==null?void 0:E.centerOffset)!==0,m=h?0:n.arrowWidth,g=h?0:n.arrowHeight,[p,x]=b1(r),v={start:"0%",center:"50%",end:"100%"}[x],b=(((C=o.arrow)==null?void 0:C.x)??0)+m/2,S=(((_=o.arrow)==null?void 0:_.y)??0)+g/2;let N="",R="";return p==="bottom"?(N=h?v:`${b}px`,R=`${-g}px`):p==="top"?(N=h?v:`${b}px`,R=`${l.floating.height+g}px`):p==="right"?(N=`${-g}px`,R=h?v:`${S}px`):p==="left"&&(N=`${l.floating.width+g}px`,R=h?v:`${S}px`),{data:{x:N,y:R}}}});function b1(n){const[a,r="center"]=n.split("-");return[a,r]}var ZT=m1,FT=g1,$T=v1,WT=x1,JT="Portal",Om=w.forwardRef((n,a)=>{var m;const{container:r,...l}=n,[o,f]=w.useState(!1);Ss(()=>f(!0),[]);const h=r||o&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?uR.createPortal(u.jsx(Wt.div,{...l,ref:a}),h):null});Om.displayName=JT;function e_(n,a){return w.useReducer((r,l)=>a[r][l]??r,n)}var Oi=n=>{const{present:a,children:r}=n,l=t_(a),o=typeof r=="function"?r({present:l.isPresent}):w.Children.only(r),f=kn(l.ref,n_(o));return typeof r=="function"||l.isPresent?w.cloneElement(o,{ref:f}):null};Oi.displayName="Presence";function t_(n){const[a,r]=w.useState(),l=w.useRef(null),o=w.useRef(n),f=w.useRef("none"),h=n?"mounted":"unmounted",[m,g]=e_(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const p=Ac(l.current);f.current=m==="mounted"?p:"none"},[m]),Ss(()=>{const p=l.current,x=o.current;if(x!==n){const b=f.current,S=Ac(p);n?g("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(x&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,g]),Ss(()=>{if(a){let p;const x=a.ownerDocument.defaultView??window,v=S=>{const R=Ac(l.current).includes(CSS.escape(S.animationName));if(S.target===a&&R&&(g("ANIMATION_END"),!o.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",p=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},b=S=>{S.target===a&&(f.current=Ac(l.current))};return a.addEventListener("animationstart",b),a.addEventListener("animationcancel",v),a.addEventListener("animationend",v),()=>{x.clearTimeout(p),a.removeEventListener("animationstart",b),a.removeEventListener("animationcancel",v),a.removeEventListener("animationend",v)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:w.useCallback(p=>{l.current=p?getComputedStyle(p):null,r(p)},[])}}function Ac(n){return(n==null?void 0:n.animationName)||"none"}function n_(n){var l,o;let a=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var a_=ou[" useInsertionEffect ".trim().toString()]||Ss;function S1({prop:n,defaultProp:a,onChange:r=()=>{},caller:l}){const[o,f,h]=s_({defaultProp:a,onChange:r}),m=n!==void 0,g=m?n:o;{const x=w.useRef(n!==void 0);w.useEffect(()=>{const v=x.current;v!==m&&console.warn(`${l} is changing from ${v?"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,l])}const p=w.useCallback(x=>{var v;if(m){const b=r_(x)?x(n):x;b!==n&&((v=h.current)==null||v.call(h,b))}else f(x)},[m,n,f,h]);return[g,p]}function s_({defaultProp:n,onChange:a}){const[r,l]=w.useState(n),o=w.useRef(r),f=w.useRef(a);return a_(()=>{f.current=a},[a]),w.useEffect(()=>{var h;o.current!==r&&((h=f.current)==null||h.call(f,r),o.current=r)},[r,o]),[r,l,f]}function r_(n){return typeof n=="function"}var i_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l_="VisuallyHidden",w1=w.forwardRef((n,a)=>u.jsx(Wt.span,{...n,ref:a,style:{...i_,...n.style}}));w1.displayName=l_;var o_=w1,[Su]=wm("Tooltip",[d1]),wu=d1(),j1="TooltipProvider",c_=700,$h="tooltip.open",[u_,Dm]=Su(j1),R1=n=>{const{__scopeTooltip:a,delayDuration:r=c_,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:f}=n,h=w.useRef(!0),m=w.useRef(!1),g=w.useRef(0);return w.useEffect(()=>{const p=g.current;return()=>window.clearTimeout(p)},[]),u.jsx(u_,{scope:a,isOpenDelayedRef:h,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(g.current),h.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>h.current=!0,l)},[l]),isPointerInTransitRef:m,onPointerInTransitChange:w.useCallback(p=>{m.current=p},[]),disableHoverableContent:o,children:f})};R1.displayName=j1;var Yl="Tooltip",[f_,no]=Su(Yl),N1=n=>{const{__scopeTooltip:a,children:r,open:l,defaultOpen:o,onOpenChange:f,disableHoverableContent:h,delayDuration:m}=n,g=Dm(Yl,n.__scopeTooltip),p=wu(a),[x,v]=w.useState(null),b=qc(),S=w.useRef(0),N=h??g.disableHoverableContent,R=m??g.delayDuration,E=w.useRef(!1),[C,_]=S1({prop:l,defaultProp:o??!1,onChange:M=>{M?(g.onOpen(),document.dispatchEvent(new CustomEvent($h))):g.onClose(),f==null||f(M)},caller:Yl}),U=w.useMemo(()=>C?E.current?"delayed-open":"instant-open":"closed",[C]),T=w.useCallback(()=>{window.clearTimeout(S.current),S.current=0,E.current=!1,_(!0)},[_]),P=w.useCallback(()=>{window.clearTimeout(S.current),S.current=0,_(!1)},[_]),Y=w.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{E.current=!0,_(!0),S.current=0},R)},[R,_]);return w.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),u.jsx(ZT,{...p,children:u.jsx(f_,{scope:a,contentId:b,open:C,stateAttribute:U,trigger:x,onTriggerChange:v,onTriggerEnter:w.useCallback(()=>{g.isOpenDelayedRef.current?Y():T()},[g.isOpenDelayedRef,Y,T]),onTriggerLeave:w.useCallback(()=>{N?P():(window.clearTimeout(S.current),S.current=0)},[P,N]),onOpen:T,onClose:P,disableHoverableContent:N,children:r})})};N1.displayName=Yl;var Wh="TooltipTrigger",E1=w.forwardRef((n,a)=>{const{__scopeTooltip:r,...l}=n,o=no(Wh,r),f=Dm(Wh,r),h=wu(r),m=w.useRef(null),g=kn(a,m,o.onTriggerChange),p=w.useRef(!1),x=w.useRef(!1),v=w.useCallback(()=>p.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),u.jsx(FT,{asChild:!0,...h,children:u.jsx(Wt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:g,onPointerMove:Zt(n.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!f.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:Zt(n.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:Zt(n.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:Zt(n.onFocus,()=>{p.current||o.onOpen()}),onBlur:Zt(n.onBlur,o.onClose),onClick:Zt(n.onClick,o.onClose)})})});E1.displayName=Wh;var zm="TooltipPortal",[d_,h_]=Su(zm,{forceMount:void 0}),C1=n=>{const{__scopeTooltip:a,forceMount:r,children:l,container:o}=n,f=no(zm,a);return u.jsx(d_,{scope:a,forceMount:r,children:u.jsx(Oi,{present:r||f.open,children:u.jsx(Om,{asChild:!0,container:o,children:l})})})};C1.displayName=zm;var Ti="TooltipContent",T1=w.forwardRef((n,a)=>{const r=h_(Ti,n.__scopeTooltip),{forceMount:l=r.forceMount,side:o="top",...f}=n,h=no(Ti,n.__scopeTooltip);return u.jsx(Oi,{present:l||h.open,children:h.disableHoverableContent?u.jsx(_1,{side:o,...f,ref:a}):u.jsx(m_,{side:o,...f,ref:a})})}),m_=w.forwardRef((n,a)=>{const r=no(Ti,n.__scopeTooltip),l=Dm(Ti,n.__scopeTooltip),o=w.useRef(null),f=kn(a,o),[h,m]=w.useState(null),{trigger:g,onClose:p}=r,x=o.current,{onPointerInTransitChange:v}=l,b=w.useCallback(()=>{m(null),v(!1)},[v]),S=w.useCallback((N,R)=>{const E=N.currentTarget,C={x:N.clientX,y:N.clientY},_=y_(C,E.getBoundingClientRect()),U=x_(C,_),T=b_(R.getBoundingClientRect()),P=w_([...U,...T]);m(P),v(!0)},[v]);return w.useEffect(()=>()=>b(),[b]),w.useEffect(()=>{if(g&&x){const N=E=>S(E,x),R=E=>S(E,g);return g.addEventListener("pointerleave",N),x.addEventListener("pointerleave",R),()=>{g.removeEventListener("pointerleave",N),x.removeEventListener("pointerleave",R)}}},[g,x,S,b]),w.useEffect(()=>{if(h){const N=R=>{const E=R.target,C={x:R.clientX,y:R.clientY},_=(g==null?void 0:g.contains(E))||(x==null?void 0:x.contains(E)),U=!S_(C,h);_?b():U&&(b(),p())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[g,x,h,p,b]),u.jsx(_1,{...n,ref:f})}),[p_,g_]=Su(Yl,{isInside:!1}),v_=bC("TooltipContent"),_1=w.forwardRef((n,a)=>{const{__scopeTooltip:r,children:l,"aria-label":o,onEscapeKeyDown:f,onPointerDownOutside:h,...m}=n,g=no(Ti,r),p=wu(r),{onClose:x}=g;return w.useEffect(()=>(document.addEventListener($h,x),()=>document.removeEventListener($h,x)),[x]),w.useEffect(()=>{if(g.trigger){const v=b=>{const S=b.target;S!=null&&S.contains(g.trigger)&&x()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[g.trigger,x]),u.jsx(jm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:v=>v.preventDefault(),onDismiss:x,children:u.jsxs($T,{"data-state":g.stateAttribute,...p,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(v_,{children:l}),u.jsx(p_,{scope:r,isInside:!0,children:u.jsx(o_,{id:g.contentId,role:"tooltip",children:o||l})})]})})});T1.displayName=Ti;var A1="TooltipArrow",M1=w.forwardRef((n,a)=>{const{__scopeTooltip:r,...l}=n,o=wu(r);return g_(A1,r).isInside?null:u.jsx(WT,{...o,...l,ref:a})});M1.displayName=A1;function y_(n,a){const r=Math.abs(a.top-n.y),l=Math.abs(a.bottom-n.y),o=Math.abs(a.right-n.x),f=Math.abs(a.left-n.x);switch(Math.min(r,l,o,f)){case f:return"left";case o:return"right";case r:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function x_(n,a,r=5){const l=[];switch(a){case"top":l.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":l.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":l.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":l.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return l}function b_(n){const{top:a,right:r,bottom:l,left:o}=n;return[{x:o,y:a},{x:r,y:a},{x:r,y:l},{x:o,y:l}]}function S_(n,a){const{x:r,y:l}=n;let o=!1;for(let f=0,h=a.length-1;f<a.length;h=f++){const m=a[f],g=a[h],p=m.x,x=m.y,v=g.x,b=g.y;x>l!=b>l&&r<(v-p)*(l-x)/(b-x)+p&&(o=!o)}return o}function w_(n){const a=n.slice();return a.sort((r,l)=>r.x<l.x?-1:r.x>l.x?1:r.y<l.y?-1:r.y>l.y?1:0),j_(a)}function j_(n){if(n.length<=1)return n.slice();const a=[];for(let l=0;l<n.length;l++){const o=n[l];for(;a.length>=2;){const f=a[a.length-1],h=a[a.length-2];if((f.x-h.x)*(o.y-h.y)>=(f.y-h.y)*(o.x-h.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let l=n.length-1;l>=0;l--){const o=n[l];for(;r.length>=2;){const f=r[r.length-1],h=r[r.length-2];if((f.x-h.x)*(o.y-h.y)>=(f.y-h.y)*(o.x-h.x))r.pop();else break}r.push(o)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var R_=R1,N_=N1,E_=E1,C_=C1,T_=T1,__=M1;function We(...n){return I0(ym(n))}function A_({delayDuration:n=0,...a}){return u.jsx(R_,{"data-slot":"tooltip-provider",delayDuration:n,...a})}function M_({...n}){return u.jsx(N_,{"data-slot":"tooltip",...n})}function O_({...n}){return u.jsx(E_,{"data-slot":"tooltip-trigger",...n})}function D_({className:n,sideOffset:a=0,children:r,...l}){return u.jsx(C_,{children:u.jsxs(T_,{"data-slot":"tooltip-content",sideOffset:a,className:We("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...l,children:[r,u.jsx(__,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function rb(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function z_(...n){return a=>{let r=!1;const l=n.map(o=>{const f=rb(o,a);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let o=0;o<l.length;o++){const f=l[o];typeof f=="function"?f():rb(n[o],null)}}}}var L_=Symbol.for("react.lazy"),ru=ou[" use ".trim().toString()];function k_(n){return typeof n=="object"&&n!==null&&"then"in n}function O1(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===L_&&"_payload"in n&&k_(n._payload)}function U_(n){const a=B_(n),r=w.forwardRef((l,o)=>{let{children:f,...h}=l;O1(f)&&typeof ru=="function"&&(f=ru(f._payload));const m=w.Children.toArray(f),g=m.find(P_);if(g){const p=g.props.children,x=m.map(v=>v===g?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:v);return u.jsx(a,{...h,ref:o,children:w.isValidElement(p)?w.cloneElement(p,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:f})});return r.displayName=`${n}.Slot`,r}var Lm=U_("Slot");function B_(n){const a=w.forwardRef((r,l)=>{let{children:o,...f}=r;if(O1(o)&&typeof ru=="function"&&(o=ru(o._payload)),w.isValidElement(o)){const h=G_(o),m=q_(f,o.props);return o.type!==w.Fragment&&(m.ref=l?z_(l,h):h),w.cloneElement(o,m)}return w.Children.count(o)>1?w.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var H_=Symbol("radix.slottable");function P_(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===H_}function q_(n,a){const r={...a};for(const l in a){const o=n[l],f=a[l];/^on[A-Z]/.test(l)?o&&f?r[l]=(...m)=>{const g=f(...m);return o(...m),g}:o&&(r[l]=o):l==="style"?r[l]={...o,...f}:l==="className"&&(r[l]=[o,f].filter(Boolean).join(" "))}return{...n,...r}}function G_(n){var l,o;let a=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}const uh=768;function Q_(){const[n,a]=w.useState(void 0);return w.useEffect(()=>{const r=window.matchMedia(`(max-width: ${uh-1}px)`),l=()=>{a(window.innerWidth<uh)};return r.addEventListener("change",l),a(window.innerWidth<uh),()=>r.removeEventListener("change",l)},[]),!!n}const V_=gu("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function D1({className:n,variant:a="default",size:r="default",asChild:l=!1,...o}){const f=l?Lm:"button";return u.jsx(f,{"data-slot":"button","data-variant":a,"data-size":r,className:We(V_({variant:a,size:r,className:n})),...o})}var Y_=Symbol.for("react.lazy"),iu=ou[" use ".trim().toString()];function X_(n){return typeof n=="object"&&n!==null&&"then"in n}function z1(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===Y_&&"_payload"in n&&X_(n._payload)}function I_(n){const a=K_(n),r=w.forwardRef((l,o)=>{let{children:f,...h}=l;z1(f)&&typeof iu=="function"&&(f=iu(f._payload));const m=w.Children.toArray(f),g=m.find(F_);if(g){const p=g.props.children,x=m.map(v=>v===g?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:v);return u.jsx(a,{...h,ref:o,children:w.isValidElement(p)?w.cloneElement(p,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:f})});return r.displayName=`${n}.Slot`,r}function K_(n){const a=w.forwardRef((r,l)=>{let{children:o,...f}=r;if(z1(o)&&typeof iu=="function"&&(o=iu(o._payload)),w.isValidElement(o)){const h=W_(o),m=$_(f,o.props);return o.type!==w.Fragment&&(m.ref=l?Sm(l,h):h),w.cloneElement(o,m)}return w.Children.count(o)>1?w.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var Z_=Symbol("radix.slottable");function F_(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Z_}function $_(n,a){const r={...a};for(const l in a){const o=n[l],f=a[l];/^on[A-Z]/.test(l)?o&&f?r[l]=(...m)=>{const g=f(...m);return o(...m),g}:o&&(r[l]=o):l==="style"?r[l]={...o,...f}:l==="className"&&(r[l]=[o,f].filter(Boolean).join(" "))}return{...n,...r}}function W_(n){var l,o;let a=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=(o=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var J_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eA=J_.reduce((n,a)=>{const r=I_(`Primitive.${a}`),l=w.forwardRef((o,f)=>{const{asChild:h,...m}=o,g=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...m,ref:f})});return l.displayName=`Primitive.${a}`,{...n,[a]:l}},{}),tA="Separator",ib="horizontal",nA=["horizontal","vertical"],L1=w.forwardRef((n,a)=>{const{decorative:r,orientation:l=ib,...o}=n,f=aA(l)?l:ib,m=r?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return u.jsx(eA.div,{"data-orientation":f,...m,...o,ref:a})});L1.displayName=tA;function aA(n){return nA.includes(n)}var sA=L1;function rA({className:n,orientation:a="horizontal",decorative:r=!0,...l}){return u.jsx(sA,{"data-slot":"separator",decorative:r,orientation:a,className:We("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",n),...l})}var fh="focusScope.autoFocusOnMount",dh="focusScope.autoFocusOnUnmount",lb={bubbles:!1,cancelable:!0},iA="FocusScope",k1=w.forwardRef((n,a)=>{const{loop:r=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:f,...h}=n,[m,g]=w.useState(null),p=Ei(o),x=Ei(f),v=w.useRef(null),b=kn(a,R=>g(R)),S=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(l){let R=function(U){if(S.paused||!m)return;const T=U.target;m.contains(T)?v.current=T:rs(v.current,{select:!0})},E=function(U){if(S.paused||!m)return;const T=U.relatedTarget;T!==null&&(m.contains(T)||rs(v.current,{select:!0}))},C=function(U){if(document.activeElement===document.body)for(const P of U)P.removedNodes.length>0&&rs(m)};document.addEventListener("focusin",R),document.addEventListener("focusout",E);const _=new MutationObserver(C);return m&&_.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",E),_.disconnect()}}},[l,m,S.paused]),w.useEffect(()=>{if(m){cb.add(S);const R=document.activeElement;if(!m.contains(R)){const C=new CustomEvent(fh,lb);m.addEventListener(fh,p),m.dispatchEvent(C),C.defaultPrevented||(lA(dA(U1(m)),{select:!0}),document.activeElement===R&&rs(m))}return()=>{m.removeEventListener(fh,p),setTimeout(()=>{const C=new CustomEvent(dh,lb);m.addEventListener(dh,x),m.dispatchEvent(C),C.defaultPrevented||rs(R??document.body,{select:!0}),m.removeEventListener(dh,x),cb.remove(S)},0)}}},[m,p,x,S]);const N=w.useCallback(R=>{if(!r&&!l||S.paused)return;const E=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,C=document.activeElement;if(E&&C){const _=R.currentTarget,[U,T]=oA(_);U&&T?!R.shiftKey&&C===T?(R.preventDefault(),r&&rs(U,{select:!0})):R.shiftKey&&C===U&&(R.preventDefault(),r&&rs(T,{select:!0})):C===_&&R.preventDefault()}},[r,l,S.paused]);return u.jsx(Wt.div,{tabIndex:-1,...h,ref:b,onKeyDown:N})});k1.displayName=iA;function lA(n,{select:a=!1}={}){const r=document.activeElement;for(const l of n)if(rs(l,{select:a}),document.activeElement!==r)return}function oA(n){const a=U1(n),r=ob(a,n),l=ob(a.reverse(),n);return[r,l]}function U1(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function ob(n,a){for(const r of n)if(!cA(r,{upTo:a}))return r}function cA(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function uA(n){return n instanceof HTMLInputElement&&"select"in n}function rs(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&uA(n)&&a&&n.select()}}var cb=fA();function fA(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=ub(n,a),n.unshift(a)},remove(a){var r;n=ub(n,a),(r=n[0])==null||r.resume()}}}function ub(n,a){const r=[...n],l=r.indexOf(a);return l!==-1&&r.splice(l,1),r}function dA(n){return n.filter(a=>a.tagName!=="A")}var hh=0;function hA(){w.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??fb()),document.body.insertAdjacentElement("beforeend",n[1]??fb()),hh++,()=>{hh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),hh--}},[])}function fb(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Kn=function(){return Kn=Object.assign||function(a){for(var r,l=1,o=arguments.length;l<o;l++){r=arguments[l];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(a[f]=r[f])}return a},Kn.apply(this,arguments)};function B1(n,a){var r={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&a.indexOf(l)<0&&(r[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(n);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(n,l[o])&&(r[l[o]]=n[l[o]]);return r}function mA(n,a,r){if(r||arguments.length===2)for(var l=0,o=a.length,f;l<o;l++)(f||!(l in a))&&(f||(f=Array.prototype.slice.call(a,0,l)),f[l]=a[l]);return n.concat(f||Array.prototype.slice.call(a))}var Qc="right-scroll-bar-position",Vc="width-before-scroll-bar",pA="with-scroll-bars-hidden",gA="--removed-body-scroll-bar-size";function mh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function vA(n,a){var r=w.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(l){var o=r.value;o!==l&&(r.value=l,r.callback(l,o))}}}})[0];return r.callback=a,r.facade}var yA=typeof window<"u"?w.useLayoutEffect:w.useEffect,db=new WeakMap;function xA(n,a){var r=vA(null,function(l){return n.forEach(function(o){return mh(o,l)})});return yA(function(){var l=db.get(r);if(l){var o=new Set(l),f=new Set(n),h=r.current;o.forEach(function(m){f.has(m)||mh(m,null)}),f.forEach(function(m){o.has(m)||mh(m,h)})}db.set(r,n)},[n]),r}function bA(n){return n}function SA(n,a){a===void 0&&(a=bA);var r=[],l=!1,o={read:function(){if(l)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]:n},useMedium:function(f){var h=a(f,l);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(l=!0;r.length;){var h=r;r=[],h.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){l=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(f),h=r}var g=function(){var x=h;h=[],x.forEach(f)},p=function(){return Promise.resolve().then(g)};p(),r={push:function(x){h.push(x),p()},filter:function(x){return h=h.filter(x),r}}}};return o}function wA(n){n===void 0&&(n={});var a=SA(null);return a.options=Kn({async:!0,ssr:!1},n),a}var H1=function(n){var a=n.sideCar,r=B1(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=a.read();if(!l)throw new Error("Sidecar medium not found");return w.createElement(l,Kn({},r))};H1.isSideCarExport=!0;function jA(n,a){return n.useMedium(a),H1}var P1=wA(),ph=function(){},ju=w.forwardRef(function(n,a){var r=w.useRef(null),l=w.useState({onScrollCapture:ph,onWheelCapture:ph,onTouchMoveCapture:ph}),o=l[0],f=l[1],h=n.forwardProps,m=n.children,g=n.className,p=n.removeScrollBar,x=n.enabled,v=n.shards,b=n.sideCar,S=n.noRelative,N=n.noIsolation,R=n.inert,E=n.allowPinchZoom,C=n.as,_=C===void 0?"div":C,U=n.gapMode,T=B1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=b,Y=xA([r,a]),M=Kn(Kn({},T),o);return w.createElement(w.Fragment,null,x&&w.createElement(P,{sideCar:P1,removeScrollBar:p,shards:v,noRelative:S,noIsolation:N,inert:R,setCallbacks:f,allowPinchZoom:!!E,lockRef:r,gapMode:U}),h?w.cloneElement(w.Children.only(m),Kn(Kn({},M),{ref:Y})):w.createElement(_,Kn({},M,{className:g,ref:Y}),m))});ju.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ju.classNames={fullWidth:Vc,zeroRight:Qc};var RA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NA(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=RA();return a&&n.setAttribute("nonce",a),n}function EA(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function CA(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var TA=function(){var n=0,a=null;return{add:function(r){n==0&&(a=NA())&&(EA(a,r),CA(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},_A=function(){var n=TA();return function(a,r){w.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},q1=function(){var n=_A(),a=function(r){var l=r.styles,o=r.dynamic;return n(l,o),null};return a},AA={left:0,top:0,right:0,gap:0},gh=function(n){return parseInt(n||"",10)||0},MA=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],l=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[gh(r),gh(l),gh(o)]},OA=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return AA;var a=MA(n),r=document.documentElement.clientWidth,l=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,l-r+a[2]-a[0])}},DA=q1(),ui="data-scroll-locked",zA=function(n,a,r,l){var o=n.left,f=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
241
- .`.concat(pA,` {
242
- overflow: hidden `).concat(l,`;
243
- padding-right: `).concat(m,"px ").concat(l,`;
244
- }
245
- body[`).concat(ui,`] {
246
- overflow: hidden `).concat(l,`;
247
- overscroll-behavior: contain;
248
- `).concat([a&&"position: relative ".concat(l,";"),r==="margin"&&`
249
- padding-left: `.concat(o,`px;
250
- padding-top: `).concat(f,`px;
251
- padding-right: `).concat(h,`px;
252
- margin-left:0;
253
- margin-top:0;
254
- margin-right: `).concat(m,"px ").concat(l,`;
255
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(l,";")].filter(Boolean).join(""),`
256
- }
257
-
258
- .`).concat(Qc,` {
259
- right: `).concat(m,"px ").concat(l,`;
260
- }
261
-
262
- .`).concat(Vc,` {
263
- margin-right: `).concat(m,"px ").concat(l,`;
264
- }
265
-
266
- .`).concat(Qc," .").concat(Qc,` {
267
- right: 0 `).concat(l,`;
268
- }
269
-
270
- .`).concat(Vc," .").concat(Vc,` {
271
- margin-right: 0 `).concat(l,`;
272
- }
273
-
274
- body[`).concat(ui,`] {
275
- `).concat(gA,": ").concat(m,`px;
276
- }
277
- `)},hb=function(){var n=parseInt(document.body.getAttribute(ui)||"0",10);return isFinite(n)?n:0},LA=function(){w.useEffect(function(){return document.body.setAttribute(ui,(hb()+1).toString()),function(){var n=hb()-1;n<=0?document.body.removeAttribute(ui):document.body.setAttribute(ui,n.toString())}},[])},kA=function(n){var a=n.noRelative,r=n.noImportant,l=n.gapMode,o=l===void 0?"margin":l;LA();var f=w.useMemo(function(){return OA(o)},[o]);return w.createElement(DA,{styles:zA(f,!a,o,r?"":"!important")})},Jh=!1;if(typeof window<"u")try{var Mc=Object.defineProperty({},"passive",{get:function(){return Jh=!0,!0}});window.addEventListener("test",Mc,Mc),window.removeEventListener("test",Mc,Mc)}catch{Jh=!1}var ni=Jh?{passive:!1}:!1,UA=function(n){return n.tagName==="TEXTAREA"},G1=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!UA(n)&&r[a]==="visible")},BA=function(n){return G1(n,"overflowY")},HA=function(n){return G1(n,"overflowX")},mb=function(n,a){var r=a.ownerDocument,l=a;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=Q1(n,l);if(o){var f=V1(n,l),h=f[1],m=f[2];if(h>m)return!0}l=l.parentNode}while(l&&l!==r.body);return!1},PA=function(n){var a=n.scrollTop,r=n.scrollHeight,l=n.clientHeight;return[a,r,l]},qA=function(n){var a=n.scrollLeft,r=n.scrollWidth,l=n.clientWidth;return[a,r,l]},Q1=function(n,a){return n==="v"?BA(a):HA(a)},V1=function(n,a){return n==="v"?PA(a):qA(a)},GA=function(n,a){return n==="h"&&a==="rtl"?-1:1},QA=function(n,a,r,l,o){var f=GA(n,window.getComputedStyle(a).direction),h=f*l,m=r.target,g=a.contains(m),p=!1,x=h>0,v=0,b=0;do{if(!m)break;var S=V1(n,m),N=S[0],R=S[1],E=S[2],C=R-E-f*N;(N||C)&&Q1(n,m)&&(v+=C,b+=N);var _=m.parentNode;m=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!g&&m!==document.body||g&&(a.contains(m)||a===m));return(x&&Math.abs(v)<1||!x&&Math.abs(b)<1)&&(p=!0),p},Oc=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},pb=function(n){return[n.deltaX,n.deltaY]},gb=function(n){return n&&"current"in n?n.current:n},VA=function(n,a){return n[0]===a[0]&&n[1]===a[1]},YA=function(n){return`
278
- .block-interactivity-`.concat(n,` {pointer-events: none;}
279
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
280
- `)},XA=0,ai=[];function IA(n){var a=w.useRef([]),r=w.useRef([0,0]),l=w.useRef(),o=w.useState(XA++)[0],f=w.useState(q1)[0],h=w.useRef(n);w.useEffect(function(){h.current=n},[n]),w.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(o));var R=mA([n.lockRef.current],(n.shards||[]).map(gb),!0).filter(Boolean);return R.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),R.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var m=w.useCallback(function(R,E){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!h.current.allowPinchZoom;var C=Oc(R),_=r.current,U="deltaX"in R?R.deltaX:_[0]-C[0],T="deltaY"in R?R.deltaY:_[1]-C[1],P,Y=R.target,M=Math.abs(U)>Math.abs(T)?"h":"v";if("touches"in R&&M==="h"&&Y.type==="range")return!1;var D=window.getSelection(),k=D&&D.anchorNode,q=k?k===Y||k.contains(Y):!1;if(q)return!1;var $=mb(M,Y);if(!$)return!0;if($?P=M:(P=M==="v"?"h":"v",$=mb(M,Y)),!$)return!1;if(!l.current&&"changedTouches"in R&&(U||T)&&(l.current=P),!P)return!0;var ee=l.current||P;return QA(ee,E,R,ee==="h"?U:T)},[]),g=w.useCallback(function(R){var E=R;if(!(!ai.length||ai[ai.length-1]!==f)){var C="deltaY"in E?pb(E):Oc(E),_=a.current.filter(function(P){return P.name===E.type&&(P.target===E.target||E.target===P.shadowParent)&&VA(P.delta,C)})[0];if(_&&_.should){E.cancelable&&E.preventDefault();return}if(!_){var U=(h.current.shards||[]).map(gb).filter(Boolean).filter(function(P){return P.contains(E.target)}),T=U.length>0?m(E,U[0]):!h.current.noIsolation;T&&E.cancelable&&E.preventDefault()}}},[]),p=w.useCallback(function(R,E,C,_){var U={name:R,delta:E,target:C,should:_,shadowParent:KA(C)};a.current.push(U),setTimeout(function(){a.current=a.current.filter(function(T){return T!==U})},1)},[]),x=w.useCallback(function(R){r.current=Oc(R),l.current=void 0},[]),v=w.useCallback(function(R){p(R.type,pb(R),R.target,m(R,n.lockRef.current))},[]),b=w.useCallback(function(R){p(R.type,Oc(R),R.target,m(R,n.lockRef.current))},[]);w.useEffect(function(){return ai.push(f),n.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",g,ni),document.addEventListener("touchmove",g,ni),document.addEventListener("touchstart",x,ni),function(){ai=ai.filter(function(R){return R!==f}),document.removeEventListener("wheel",g,ni),document.removeEventListener("touchmove",g,ni),document.removeEventListener("touchstart",x,ni)}},[]);var S=n.removeScrollBar,N=n.inert;return w.createElement(w.Fragment,null,N?w.createElement(f,{styles:YA(o)}):null,S?w.createElement(kA,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function KA(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const ZA=jA(P1,IA);var Y1=w.forwardRef(function(n,a){return w.createElement(ju,Kn({},n,{ref:a,sideCar:ZA}))});Y1.classNames=ju.classNames;var FA=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},si=new WeakMap,Dc=new WeakMap,zc={},vh=0,X1=function(n){return n&&(n.host||X1(n.parentNode))},$A=function(n,a){return a.map(function(r){if(n.contains(r))return r;var l=X1(r);return l&&n.contains(l)?l:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},WA=function(n,a,r,l){var o=$A(a,Array.isArray(n)?n:[n]);zc[r]||(zc[r]=new WeakMap);var f=zc[r],h=[],m=new Set,g=new Set(o),p=function(v){!v||m.has(v)||(m.add(v),p(v.parentNode))};o.forEach(p);var x=function(v){!v||g.has(v)||Array.prototype.forEach.call(v.children,function(b){if(m.has(b))x(b);else try{var S=b.getAttribute(l),N=S!==null&&S!=="false",R=(si.get(b)||0)+1,E=(f.get(b)||0)+1;si.set(b,R),f.set(b,E),h.push(b),R===1&&N&&Dc.set(b,!0),E===1&&b.setAttribute(r,"true"),N||b.setAttribute(l,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})};return x(a),m.clear(),vh++,function(){h.forEach(function(v){var b=si.get(v)-1,S=f.get(v)-1;si.set(v,b),f.set(v,S),b||(Dc.has(v)||v.removeAttribute(l),Dc.delete(v)),S||v.removeAttribute(r)}),vh--,vh||(si=new WeakMap,si=new WeakMap,Dc=new WeakMap,zc={})}},JA=function(n,a,r){r===void 0&&(r="data-aria-hidden");var l=Array.from(Array.isArray(n)?n:[n]),o=FA(n);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),WA(l,o,r,"aria-hidden")):function(){return null}},Ru="Dialog",[I1]=wm(Ru),[eM,Un]=I1(Ru),K1=n=>{const{__scopeDialog:a,children:r,open:l,defaultOpen:o,onOpenChange:f,modal:h=!0}=n,m=w.useRef(null),g=w.useRef(null),[p,x]=S1({prop:l,defaultProp:o??!1,onChange:f,caller:Ru});return u.jsx(eM,{scope:a,triggerRef:m,contentRef:g,contentId:qc(),titleId:qc(),descriptionId:qc(),open:p,onOpenChange:x,onOpenToggle:w.useCallback(()=>x(v=>!v),[x]),modal:h,children:r})};K1.displayName=Ru;var Z1="DialogTrigger",tM=w.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Un(Z1,r),f=kn(a,o.triggerRef);return u.jsx(Wt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Bm(o.open),...l,ref:f,onClick:Zt(n.onClick,o.onOpenToggle)})});tM.displayName=Z1;var km="DialogPortal",[nM,F1]=I1(km,{forceMount:void 0}),$1=n=>{const{__scopeDialog:a,forceMount:r,children:l,container:o}=n,f=Un(km,a);return u.jsx(nM,{scope:a,forceMount:r,children:w.Children.map(l,h=>u.jsx(Oi,{present:r||f.open,children:u.jsx(Om,{asChild:!0,container:o,children:h})}))})};$1.displayName=km;var lu="DialogOverlay",W1=w.forwardRef((n,a)=>{const r=F1(lu,n.__scopeDialog),{forceMount:l=r.forceMount,...o}=n,f=Un(lu,n.__scopeDialog);return f.modal?u.jsx(Oi,{present:l||f.open,children:u.jsx(sM,{...o,ref:a})}):null});W1.displayName=lu;var aM=Z0("DialogOverlay.RemoveScroll"),sM=w.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Un(lu,r);return u.jsx(Y1,{as:aM,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(Wt.div,{"data-state":Bm(o.open),...l,ref:a,style:{pointerEvents:"auto",...l.style}})})}),dr="DialogContent",J1=w.forwardRef((n,a)=>{const r=F1(dr,n.__scopeDialog),{forceMount:l=r.forceMount,...o}=n,f=Un(dr,n.__scopeDialog);return u.jsx(Oi,{present:l||f.open,children:f.modal?u.jsx(rM,{...o,ref:a}):u.jsx(iM,{...o,ref:a})})});J1.displayName=dr;var rM=w.forwardRef((n,a)=>{const r=Un(dr,n.__scopeDialog),l=w.useRef(null),o=kn(a,r.contentRef,l);return w.useEffect(()=>{const f=l.current;if(f)return JA(f)},[]),u.jsx(eS,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Zt(n.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Zt(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:Zt(n.onFocusOutside,f=>f.preventDefault())})}),iM=w.forwardRef((n,a)=>{const r=Un(dr,n.__scopeDialog),l=w.useRef(!1),o=w.useRef(!1);return u.jsx(eS,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,f),f.defaultPrevented||(l.current||(m=r.triggerRef.current)==null||m.focus(),f.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:f=>{var g,p;(g=n.onInteractOutside)==null||g.call(n,f),f.defaultPrevented||(l.current=!0,f.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const h=f.target;((p=r.triggerRef.current)==null?void 0:p.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&o.current&&f.preventDefault()}})}),eS=w.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:f,...h}=n,m=Un(dr,r),g=w.useRef(null),p=kn(a,g);return hA(),u.jsxs(u.Fragment,{children:[u.jsx(k1,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:f,children:u.jsx(jm,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Bm(m.open),...h,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(lM,{titleId:m.titleId}),u.jsx(cM,{contentRef:g,descriptionId:m.descriptionId})]})]})}),Um="DialogTitle",tS=w.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Un(Um,r);return u.jsx(Wt.h2,{id:o.titleId,...l,ref:a})});tS.displayName=Um;var nS="DialogDescription",aS=w.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Un(nS,r);return u.jsx(Wt.p,{id:o.descriptionId,...l,ref:a})});aS.displayName=nS;var sS="DialogClose",rS=w.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Un(sS,r);return u.jsx(Wt.button,{type:"button",...l,ref:a,onClick:Zt(n.onClick,()=>o.onOpenChange(!1))})});rS.displayName=sS;function Bm(n){return n?"open":"closed"}var iS="DialogTitleWarning",[s3,lS]=vC(iS,{contentName:dr,titleName:Um,docsSlug:"dialog"}),lM=({titleId:n})=>{const a=lS(iS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
281
-
282
- If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
283
-
284
- For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return w.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},oM="DialogDescriptionWarning",cM=({contentRef:n,descriptionId:a})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lS(oM).contentName}}.`;return w.useEffect(()=>{var f;const o=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(l))},[l,n,a]),null},uM=K1,fM=$1,dM=W1,hM=J1,mM=tS,pM=aS,gM=rS;/**
285
- * @license lucide-react v0.511.0 - ISC
286
- *
287
- * This source code is licensed under the ISC license.
288
- * See the LICENSE file in the root directory of this source tree.
289
- */const vM=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yM=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,l)=>l?l.toUpperCase():r.toLowerCase()),vb=n=>{const a=yM(n);return a.charAt(0).toUpperCase()+a.slice(1)},oS=(...n)=>n.filter((a,r,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===r).join(" ").trim(),xM=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
290
- * @license lucide-react v0.511.0 - ISC
291
- *
292
- * This source code is licensed under the ISC license.
293
- * See the LICENSE file in the root directory of this source tree.
294
- */var bM={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"};/**
295
- * @license lucide-react v0.511.0 - ISC
296
- *
297
- * This source code is licensed under the ISC license.
298
- * See the LICENSE file in the root directory of this source tree.
299
- */const SM=w.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:o="",children:f,iconNode:h,...m},g)=>w.createElement("svg",{ref:g,...bM,width:a,height:a,stroke:n,strokeWidth:l?Number(r)*24/Number(a):r,className:oS("lucide",o),...!f&&!xM(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,x])=>w.createElement(p,x)),...Array.isArray(f)?f:[f]]));/**
300
- * @license lucide-react v0.511.0 - ISC
301
- *
302
- * This source code is licensed under the ISC license.
303
- * See the LICENSE file in the root directory of this source tree.
304
- */const cS=(n,a)=>{const r=w.forwardRef(({className:l,...o},f)=>w.createElement(SM,{ref:f,iconNode:a,className:oS(`lucide-${vM(vb(n))}`,`lucide-${n}`,l),...o}));return r.displayName=vb(n),r};/**
305
- * @license lucide-react v0.511.0 - ISC
306
- *
307
- * This source code is licensed under the ISC license.
308
- * See the LICENSE file in the root directory of this source tree.
309
- */const wM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],jM=cS("panel-left",wM);/**
310
- * @license lucide-react v0.511.0 - ISC
311
- *
312
- * This source code is licensed under the ISC license.
313
- * See the LICENSE file in the root directory of this source tree.
314
- */const RM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],NM=cS("x",RM);function EM({...n}){return u.jsx(uM,{"data-slot":"sheet",...n})}function CM({...n}){return u.jsx(fM,{"data-slot":"sheet-portal",...n})}function TM({className:n,...a}){return u.jsx(dM,{"data-slot":"sheet-overlay",className:We("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",n),...a})}function _M({className:n,children:a,side:r="right",showCloseButton:l=!0,...o}){return u.jsxs(CM,{children:[u.jsx(TM,{}),u.jsxs(hM,{"data-slot":"sheet-content","data-side":r,className:We("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",n),...o,children:[a,l&&u.jsx(gM,{"data-slot":"sheet-close",asChild:!0,children:u.jsxs(D1,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[u.jsx(NM,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function AM({className:n,...a}){return u.jsx("div",{"data-slot":"sheet-header",className:We("flex flex-col gap-0.5 p-4",n),...a})}function MM({className:n,...a}){return u.jsx(mM,{"data-slot":"sheet-title",className:We("font-heading text-base font-medium text-foreground",n),...a})}function OM({className:n,...a}){return u.jsx(pM,{"data-slot":"sheet-description",className:We("text-sm text-muted-foreground",n),...a})}const DM="sidebar_state",zM=3600*24*7,LM="16rem",kM="18rem",UM="3rem",BM="b",uS=w.createContext(null);function Hm(){const n=w.useContext(uS);if(!n)throw new Error("useSidebar must be used within a SidebarProvider.");return n}function HM({defaultOpen:n=!0,open:a,onOpenChange:r,className:l,style:o,children:f,...h}){const m=Q_(),[g,p]=w.useState(!1),[x,v]=w.useState(n),b=a??x,S=w.useCallback(C=>{const _=typeof C=="function"?C(b):C;r?r(_):v(_),document.cookie=`${DM}=${_}; path=/; max-age=${zM}`},[r,b]),N=w.useCallback(()=>m?p(C=>!C):S(C=>!C),[m,S,p]);w.useEffect(()=>{const C=_=>{_.key===BM&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),N())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[N]);const R=b?"expanded":"collapsed",E=w.useMemo(()=>({state:R,open:b,setOpen:S,isMobile:m,openMobile:g,setOpenMobile:p,toggleSidebar:N}),[R,b,S,m,g,p,N]);return u.jsx(uS.Provider,{value:E,children:u.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":LM,"--sidebar-width-icon":UM,...o},className:We("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",l),...h,children:f})})}function PM({side:n="left",variant:a="sidebar",collapsible:r="offcanvas",className:l,children:o,dir:f,...h}){const{isMobile:m,state:g,openMobile:p,setOpenMobile:x}=Hm();return r==="none"?u.jsx("div",{"data-slot":"sidebar",className:We("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",l),...h,children:o}):m?u.jsx(EM,{open:p,onOpenChange:x,...h,children:u.jsxs(_M,{dir:f,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":kM},side:n,children:[u.jsxs(AM,{className:"sr-only",children:[u.jsx(MM,{children:"Sidebar"}),u.jsx(OM,{children:"Displays the mobile sidebar."})]}),u.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):u.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":g,"data-collapsible":g==="collapsed"?r:"","data-variant":a,"data-side":n,"data-slot":"sidebar",children:[u.jsx("div",{"data-slot":"sidebar-gap",className:We("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),u.jsx("div",{"data-slot":"sidebar-container","data-side":n,className:We("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",l),...h,children:u.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})]})}function qM({className:n,onClick:a,...r}){const{toggleSidebar:l}=Hm();return u.jsxs(D1,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:We(n),onClick:o=>{a==null||a(o),l()},...r,children:[u.jsx(jM,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function GM({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:We("flex flex-col gap-2 p-2",n),...a})}function QM({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:We("flex flex-col gap-2 p-2",n),...a})}function yb({className:n,...a}){return u.jsx(rA,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:We("mx-2 w-auto bg-sidebar-border",n),...a})}function VM({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:We("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),...a})}function yh({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:We("relative flex w-full min-w-0 flex-col p-2",n),...a})}function xb({className:n,asChild:a=!1,...r}){const l=a?Lm:"div";return u.jsx(l,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:We("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",n),...r})}function xh({className:n,...a}){return u.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:We("w-full text-sm",n),...a})}function Lc({className:n,...a}){return u.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:We("flex w-full min-w-0 flex-col gap-0.5",n),...a})}function fS({className:n,...a}){return u.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:We("group/menu-item relative",n),...a})}const YM=gu("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function dS({asChild:n=!1,isActive:a=!1,variant:r="default",size:l="default",tooltip:o,className:f,...h}){const m=n?Lm:"button",{isMobile:g,state:p}=Hm(),x=u.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":l,"data-active":a,className:We(YM({variant:r,size:l}),f),...h});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(M_,{children:[u.jsx(O_,{asChild:!0,children:x}),u.jsx(D_,{side:"right",align:"center",hidden:p!=="collapsed"||g,...o})]})):x}const hS=w.createContext(null);function mS(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function bb(n){return n==="system"?mS():n}function XM({children:n,defaultTheme:a="dark"}){const[r,l]=w.useState(()=>typeof window>"u"?a:localStorage.getItem("theme")??a),[o,f]=w.useState(()=>bb(r)),h=w.useCallback(m=>{l(g=>{const p=typeof m=="function"?m(g):m;return localStorage.setItem("theme",p),p})},[]);return w.useEffect(()=>{const m=bb(r);f(m),document.documentElement.classList.toggle("dark",m==="dark")},[r]),w.useEffect(()=>{const m=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{if(r==="system"){const p=mS();f(p),document.documentElement.classList.toggle("dark",p==="dark")}};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)},[r]),u.jsx(hS.Provider,{value:{theme:r,resolvedTheme:o,setTheme:h},children:n})}function IM(){const n=w.useContext(hS);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function KM(){const{theme:n,resolvedTheme:a,setTheme:r}=IM();return u.jsxs(Bt,{variant:"ghost",size:"icon",onClick:()=>r((a??n)==="light"?"dark":"light"),className:"h-8 w-8",children:[u.jsx(vE,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),u.jsx(lE,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),u.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}const ZM=[{href:"/",label:"Overview",icon:nE,query:mm},{href:"/workspaces",label:"Workspaces",icon:XN,query:pm},{href:"/benchmark",label:"Benchmark",icon:ZN}],FM=[{href:"/query",label:"Query",icon:dE},{href:"/documents",label:"Documents",icon:dm,query:()=>Jc(1,Dn)},{href:"/jobs",label:"Jobs",icon:C0,query:gm}],$M=[{href:"/settings",label:"Settings",icon:pE,query:A0}];function bh({href:n,label:a,icon:r,query:l}){const o=Jl(),h=LR()({to:n,fuzzy:n!=="/"}),m=()=>{if(!l)return;const g=typeof l=="function"?l():l;o.prefetchQuery(g)};return u.jsx(fS,{children:u.jsx(dS,{asChild:!0,isActive:!!h,tooltip:a,children:u.jsxs(yt,{to:n,onMouseEnter:m,children:[u.jsx(r,{className:"h-4 w-4"}),u.jsx("span",{children:a})]})})})}function WM(){return u.jsxs(PM,{collapsible:"icon",children:[u.jsx(GM,{children:u.jsx(Lc,{children:u.jsx(fS,{children:u.jsxs("div",{className:"flex items-center gap-1 group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:items-center",children:[u.jsx(dS,{asChild:!0,size:"lg",tooltip:"OpenEZ Graph",children:u.jsxs(yt,{to:"/",className:"flex items-center gap-3",children:[u.jsx("img",{src:"/logo.png",alt:"OpenEZ Graph",className:"h-8 w-8 rounded-lg"}),u.jsx("div",{className:"flex flex-col gap-0 group-data-[collapsible=icon]:hidden",children:u.jsxs("span",{className:"text-sm font-black tracking-tight",style:{fontFamily:"'Archivo Black', sans-serif"},children:["OPEN",u.jsx("span",{className:"text-accent-foreground",children:"EZ"})]})})]})}),u.jsx(qM,{}),u.jsx(KM,{})]})})})}),u.jsxs(VM,{children:[u.jsxs(yh,{children:[u.jsx(xb,{children:"Navigation"}),u.jsx(xh,{children:u.jsx(Lc,{children:ZM.map(n=>u.jsx(bh,{...n},n.href))})})]}),u.jsx(yb,{}),u.jsxs(yh,{children:[u.jsx(xb,{children:"Debug"}),u.jsx(xh,{children:u.jsx(Lc,{children:FM.map(n=>u.jsx(bh,{...n},n.href))})})]}),u.jsx(yb,{}),u.jsx(yh,{children:u.jsx(xh,{children:u.jsx(Lc,{children:$M.map(n=>u.jsx(bh,{...n},n.href))})})})]}),u.jsx(QM,{children:u.jsx("div",{className:"px-3 py-2 group-data-[collapsible=icon]:hidden",children:u.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspace config, retrieval debugging, graph inspection."})})})]})}const Ns=wR()({component:JM});function JM(){return u.jsx(XM,{defaultTheme:"dark",children:u.jsx(A_,{children:u.jsx(HM,{children:u.jsxs("div",{className:"flex h-svh w-full overflow-hidden",children:[u.jsx(WM,{}),u.jsx("main",{className:"flex-1 overflow-y-auto bg-background p-6",children:u.jsx(mu,{})})]})})})})}const eO=En("/workspaces")({component:()=>u.jsx(mu,{})}),tO=En("/settings")({component:lO}),nO=`{
315
- "mcpServers": {
316
- "openez-graph": {
317
- "command": "pnpm",
318
- "args": ["--dir", "/path/to/openez", "mcp"]
319
- }
320
- }
321
- }`,aO=`{
322
- "mcpServers": {
323
- "openez-graph": {
324
- "command": "pnpm",
325
- "args": ["--dir", "/path/to/openez", "mcp"]
326
- }
327
- }
328
- }`,sO=`{
329
- "mcpServers": {
330
- "openez-graph": {
331
- "command": "pnpm",
332
- "args": ["--dir", "/path/to/openez", "mcp"]
333
- }
334
- }
335
- }`,rO=`{
336
- "mcp": {
337
- "servers": {
338
- "openez-graph": {
339
- "type": "local",
340
- "command": ["pnpm", "--dir", "/path/to/openez", "mcp"]
341
- }
342
- }
343
- }
344
- }`;function Ol({label:n,value:a}){return u.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border last:border-0",children:[u.jsx("span",{className:"text-sm text-muted-foreground",children:n}),u.jsx("span",{className:"text-sm font-medium text-foreground text-right truncate max-w-[70%] font-mono",children:a??u.jsx("span",{className:"text-muted-foreground italic",children:"not set"})})]})}function iO({children:n}){return u.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground border border-border",children:n})}function kc({name:n,configPath:a,config:r}){return u.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("h3",{className:"text-sm font-semibold text-foreground",children:n}),u.jsx(Ut,{variant:"secondary",className:"text-xs px-1.5 py-0 h-4",children:"stdio"})]}),u.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Add to ",u.jsx(iO,{children:a})]}),u.jsx(mC,{children:r})]})}function lO(){const{data:n}=bs(A0);return u.jsxs("div",{className:"page container mx-auto px-4 sm:px-6",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Settings"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:"Environment-backed provider configuration."})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Configuration"})}),u.jsx(De,{className:"p-0",children:u.jsxs("div",{className:"px-6 pb-2",children:[u.jsx(Ol,{label:"Redis URL",value:"Not used (SQLite is default)"}),u.jsx(Ol,{label:"Embedding provider",value:n==null?void 0:n.EMBEDDING_PROVIDER}),u.jsx(Ol,{label:"OpenAI base URL",value:(n==null?void 0:n.OPENAI_BASE_URL)??"default"}),u.jsx(Ol,{label:"OpenAI model",value:n==null?void 0:n.OPENAI_EMBEDDING_MODEL}),u.jsx(Ol,{label:"Ollama model",value:n==null?void 0:n.OLLAMA_EMBEDDING_MODEL})]})})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"MCP Server Setup"})}),u.jsxs(De,{className:"flex flex-col gap-4",children:[u.jsx(kc,{name:"Claude Code",configPath:"~/.claude/settings.json",config:nO}),u.jsx(kc,{name:"Claude Desktop",configPath:"claude_desktop_config.json",config:aO}),u.jsx(kc,{name:"Cline / VS Code",configPath:"VS Code settings or Cline MCP config",config:sO}),u.jsx(kc,{name:"OpenCode",configPath:"~/.config/opencode/opencode.json",config:rO})]})]})]})}const oO=En("/query")({component:cO,validateSearch:n=>({workspaceId:n.workspaceId??""})}),Sh={answerContext:"",sources:[],graphNodes:[],graphEdges:[],error:null};function Sb(n){switch(n){case"file":return"bg-chart-1/15 text-chart-1 border-chart-1/30";case"chunk":return"bg-chart-2/15 text-chart-2 border-chart-2/30";case"symbol":return"bg-chart-3/15 text-chart-3 border-chart-3/30";case"entity":return"bg-chart-4/15 text-chart-4 border-chart-4/30";default:return"bg-muted text-muted-foreground border-border"}}function cO(){const{workspaceId:n}=_i({from:"/query"}),[a,r]=w.useState(Sh),[l,o]=w.useState(!1);async function f(g){g.preventDefault(),o(!0),r({...Sh,error:null});try{const p=new FormData(g.currentTarget),x=await Ea.runQuery({workspaceId:String(p.get("workspaceId")??"").trim(),query:String(p.get("query")??"").trim()});r({...x,error:null})}catch(p){r({...Sh,error:p instanceof Error?p.message:"Query failed"})}finally{o(!1)}}const h=a.graphNodes.filter(g=>g.type==="file"),m=a.graphNodes.filter(g=>g.type==="symbol");return a.graphNodes.filter(g=>g.type==="chunk"),u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Query"}),u.jsx("p",{className:"muted",children:"Test the retrieval flow against the indexed workspace."})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Query interface"})}),u.jsx(De,{children:u.jsxs("form",{onSubmit:f,className:"query-form",children:[u.jsxs("div",{className:"field",children:[u.jsx(Et,{htmlFor:"workspaceId",children:"Workspace ID"}),u.jsx(Ql,{id:"workspaceId",name:"workspaceId",defaultValue:n,placeholder:"openez"})]}),u.jsxs("div",{className:"field",children:[u.jsx(Et,{htmlFor:"query",children:"Query"}),u.jsx(Xh,{id:"query",name:"query",placeholder:"login session flow, auth design, createSession"})]}),u.jsx(Bt,{type:"submit",disabled:l,children:l?"Running...":"Run query"}),a.error&&u.jsx("p",{className:"text-destructive",children:a.error})]})})]}),a.answerContext&&u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{className:"text-base",children:"Context"})}),u.jsx(De,{children:u.jsx("div",{className:"code",children:a.answerContext})})]}),a.sources.length>0&&u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{className:"text-base",children:"Sources"})}),u.jsx(De,{children:u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Path"}),u.jsx(ze,{children:"Lines"}),u.jsx(ze,{children:"Score"}),u.jsx(ze,{children:"Reason"})]})}),u.jsx(Wn,{children:a.sources.map(g=>u.jsxs(ut,{children:[u.jsx(_e,{className:"font-mono text-xs",children:g.path}),u.jsxs(_e,{children:[g.startLine??"?","-",g.endLine??"?"]}),u.jsx(_e,{children:g.score.toFixed(3)}),u.jsx(_e,{children:g.reason})]},`${g.path}-${g.startLine}-${g.endLine}`))})]})})]}),a.graphNodes.length>0&&u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsxs(at,{className:"text-base flex items-center gap-2",children:[u.jsx(cE,{className:"h-4 w-4"})," Graph Relationships"]})}),u.jsxs(De,{className:"grid gap-4",children:[h.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Files"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:h.map(g=>u.jsxs(Ut,{variant:"outline",className:Sb("file"),children:[u.jsx(dm,{className:"h-3 w-3 mr-1"})," ",g.label]},g.id))})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Symbols"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.map(g=>u.jsx(Ut,{variant:"outline",className:Sb("symbol"),children:g.label},g.id))})]}),a.graphEdges.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Edges"}),u.jsx("div",{className:"flex flex-col gap-1",children:a.graphEdges.slice(0,20).map((g,p)=>{const x=a.graphNodes.find(b=>b.id===g.from_node_id),v=a.graphNodes.find(b=>b.id===g.to_node_id);return u.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx("span",{className:"truncate max-w-50 font-mono",children:(x==null?void 0:x.label)??g.from_node_id.slice(0,8)}),u.jsx(Qh,{className:"h-3 w-3 shrink-0"}),u.jsx(Ut,{variant:"outline",className:"text-xs px-1 py-0 h-4",children:g.type}),u.jsx(Qh,{className:"h-3 w-3 shrink-0"}),u.jsx("span",{className:"truncate max-w-50 font-mono",children:(v==null?void 0:v.label)??g.to_node_id.slice(0,8)})]},p)})})]})]})]})]})}function vs(n){return n?new Date(n).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const wb={file:"#60a5fa",chunk:"#34d399",symbol:"#fbbf24",memory:"#f472b6",entity:"#c084fc",document:"#22d3ee",default:"#94a3b8"},jb={imports:"#60a5fa",defines:"#fbbf24",contains:"#34d399",mentions:"#c084fc",represented_by:"#f472b6",calls:"#f97316",links_to:"#22d3ee",related_to:"#94a3b8",default:"#64748b"};function uO(n){return wb[n]??wb.default}function fO(n){return jb[n]??jb.default}const dO=En("/jobs")({loader:({context:n})=>n.queryClient.ensureQueryData(gm),component:hO,validateSearch:n=>({page:Math.max(1,parseInt(n.page??"",10)||1)})});function hO(){const{page:n}=_i({from:"/jobs"}),{data:a,isLoading:r}=bs(gm),l=a??[],o=Math.max(1,Math.ceil(l.length/Dn)),f=Math.min(n,o),{paged:h}=M0(l,f);return u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Jobs"}),u.jsx("p",{className:"muted",children:"Recent indexing activity from `index_runs`."})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Index runs"})}),u.jsx(De,{children:r?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):l.length>0?u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Showing ",h.length," of ",l.length," runs"]}),u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Started"}),u.jsx(ze,{children:"Mode"}),u.jsx(ze,{children:"Status"}),u.jsx(ze,{children:"Updated files"}),u.jsx(ze,{children:"Error"})]})}),u.jsx(Wn,{children:h.map(m=>u.jsxs(ut,{children:[u.jsx(_e,{children:vs(m.startedAt)}),u.jsx(_e,{children:m.mode}),u.jsx(_e,{children:m.status}),u.jsx(_e,{children:m.filesUpdated}),u.jsx(_e,{children:m.errorMessage??"-"})]},m.id))})]}),u.jsx(vm,{currentPage:f,totalPages:o,basePath:"/jobs"})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No index runs found."})})]})]})}const mO=En("/documents")({loader:({context:n})=>n.queryClient.ensureQueryData(Jc(1,Dn)),component:pO,validateSearch:n=>({page:Math.max(1,parseInt(n.page??"",10)||1)})});function pO(){const n=Jl(),{page:a}=_i({from:"/documents"}),{data:r,isLoading:l}=bs({...Jc(a,Dn),placeholderData:m=>m}),o=Math.max(1,Math.ceil(((r==null?void 0:r.totalCount)??0)/Dn)),h=(a-1)*Dn+((r==null?void 0:r.items.length)??0);return w.useEffect(()=>{const m=a+1;m<=o&&n.prefetchQuery(Jc(m,Dn))},[a,o,n]),u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Documents"}),u.jsx("p",{className:"muted",children:"Indexed document inventory ordered by latest update."})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Documents"})}),u.jsx(De,{children:l?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Showing ",h," of ",(r==null?void 0:r.totalCount)??0," documents"]}),u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Path"}),u.jsx(ze,{children:"Kind"}),u.jsx(ze,{children:"Language"}),u.jsx(ze,{children:"Updated"})]})}),u.jsx(Wn,{children:((r==null?void 0:r.items)??[]).map(m=>u.jsxs(ut,{children:[u.jsx(_e,{children:m.path}),u.jsx(_e,{children:m.kind}),u.jsx(_e,{children:m.language??"-"}),u.jsx(_e,{className:"text-muted-foreground",children:vs(m.updatedAt)})]},m.id))})]}),u.jsx(vm,{currentPage:a,totalPages:o,basePath:"/documents"})]})})]})]})}const gO=En("/benchmark")({component:xO}),vO=[{label:"Recall@5",value:"94.44%",detail:"17 of 18 queries",icon:xE},{label:"MRR",value:"0.7009",detail:"Mean reciprocal rank",icon:E0},{label:"Duplicate paths",value:"0%",detail:"Unique source files",icon:eo},{label:"FTS latency",value:"17.85 ms",detail:"Average over 54 runs",icon:UN}],yO=[["Recall@5","94.44%","94.44%"],["MRR","0.7009","0.7009"],["Duplicate path rate","0%","0%"],["Average latency","17.85 ms","112.88 ms"],["Latency p50","11.74 ms","90.45 ms"],["Latency p95","51.22 ms","272.30 ms"],["Average context","2,938 tokens","2,938 tokens"]];function xO(){return u.jsxs("div",{className:"page mx-auto w-full max-w-6xl",children:[u.jsxs("header",{className:"flex flex-col gap-3 border-b pb-5 sm:flex-row sm:items-end sm:justify-between",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2",children:[u.jsxs(Ut,{className:"gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[u.jsx(eo,{className:"h-3.5 w-3.5"})," Quality gate passed"]}),u.jsx(Ut,{variant:"outline",children:"2026-07-22"})]}),u.jsx("h1",{children:"Retrieval benchmark"}),u.jsx("p",{className:"muted mt-1",children:"117 files, 632 chunks, 18 queries, 3 iterations per mode."})]}),u.jsxs("div",{className:"text-left text-sm text-muted-foreground sm:text-right",children:[u.jsx("div",{children:"SQLite FTS5 + graph"}),u.jsx("div",{children:"Ollama nomic-embed-text"})]})]}),u.jsx("section",{className:"grid gap-0 overflow-hidden rounded-lg border sm:grid-cols-2 xl:grid-cols-4",children:vO.map(({label:n,value:a,detail:r,icon:l},o)=>u.jsxs("div",{className:`min-w-0 p-5 ${o===1?"border-t sm:border-l sm:border-t-0":o===2?"border-t sm:border-l-0 xl:border-l xl:border-t-0":o===3?"border-t sm:border-l xl:border-t-0":""}`,children:[u.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3 text-sm text-muted-foreground",children:[u.jsx("span",{children:n}),u.jsx(l,{className:"h-4 w-4 text-foreground"})]}),u.jsx("div",{className:"text-2xl font-semibold tabular-nums",children:a}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:r})]},n))}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Oe,{children:[u.jsxs(nt,{children:[u.jsx(at,{className:"text-lg",children:"Quality improvement"}),u.jsx(ih,{children:"Current retrieval compared with the previous baseline."})]}),u.jsxs(De,{className:"space-y-5",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[u.jsx("span",{children:"Recall@5"}),u.jsx("span",{className:"font-mono tabular-nums",children:"83.33% → 94.44%"})]}),u.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[94.44%] bg-emerald-500"})})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"mb-2 flex items-center justify-between text-sm",children:[u.jsx("span",{children:"MRR"}),u.jsx("span",{className:"font-mono tabular-nums",children:"0.6176 → 0.7009"})]}),u.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[70.09%] bg-cyan-500"})})]}),u.jsxs("div",{className:"flex items-center justify-between border-t pt-4 text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:"Missed queries"}),u.jsx("span",{className:"font-medium tabular-nums",children:"3 → 1"})]})]})]}),u.jsxs(Oe,{children:[u.jsxs(nt,{children:[u.jsx(at,{className:"text-lg",children:"Latency cost"}),u.jsx(ih,{children:"Ollama preserves quality but adds local inference time."})]}),u.jsxs(De,{className:"space-y-5",children:[u.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[u.jsx("span",{children:"FTS-only"}),u.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-[16%] bg-cyan-500"})}),u.jsx("span",{className:"font-mono tabular-nums",children:"17.85 ms"})]}),u.jsxs("div",{className:"grid grid-cols-[88px_1fr_auto] items-center gap-3 text-sm",children:[u.jsx("span",{children:"Ollama"}),u.jsx("div",{className:"h-3 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full w-full bg-amber-500"})}),u.jsx("span",{className:"font-mono tabular-nums",children:"112.88 ms"})]}),u.jsxs("div",{className:"flex items-start gap-3 border-t pt-4 text-sm text-muted-foreground",children:[u.jsx(E0,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-500"}),u.jsx("p",{children:"FTS-only remains the default. Ollama is used as semantic fallback when lexical search has no result."})]})]})]})]}),u.jsxs(Oe,{children:[u.jsxs(nt,{className:"flex-row items-start justify-between gap-4 space-y-0",children:[u.jsxs("div",{children:[u.jsx(at,{className:"text-lg",children:"Mode comparison"}),u.jsx(ih,{children:"54 measured runs per mode on the same local index."})]}),u.jsx(Ut,{variant:"secondary",children:"0% data leakage"})]}),u.jsx(De,{children:u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Metric"}),u.jsx(ze,{children:"FTS-only"}),u.jsx(ze,{children:"Ollama embedding"})]})}),u.jsxs(Wn,{children:[yO.map(([n,a,r])=>u.jsxs(ut,{children:[u.jsx(_e,{className:"font-medium",children:n}),u.jsx(_e,{className:"font-mono tabular-nums",children:a}),u.jsx(_e,{className:"font-mono tabular-nums",children:r})]},n)),u.jsxs(ut,{children:[u.jsx(_e,{className:"font-medium",children:"Quality gate"}),u.jsx(_e,{children:u.jsx(Ut,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})}),u.jsx(_e,{children:u.jsx(Ut,{className:"bg-emerald-600 text-white hover:bg-emerald-600",children:"PASS"})})]})]})]})})]}),u.jsxs("section",{className:"flex flex-col gap-4 rounded-lg border border-amber-500/30 bg-amber-500/5 p-5 sm:flex-row sm:items-start",children:[u.jsx(hm,{className:"h-5 w-5 shrink-0 text-amber-500"}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("h2",{className:"text-base font-semibold",children:"Remaining miss"}),u.jsx(Ut,{variant:"outline",children:"Rank 7"})]}),u.jsx("p",{className:"mt-2 break-words font-mono text-sm",children:"where are TypeScript symbols extracted?"}),u.jsxs("div",{className:"mt-3 grid gap-1 text-sm text-muted-foreground sm:grid-cols-[92px_1fr]",children:[u.jsx("span",{children:"Expected"}),u.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/code.ts"}),u.jsx("span",{children:"Top result"}),u.jsx("span",{className:"break-all font-mono text-foreground",children:"packages/indexer/src/languages.ts"})]})]})]})]})}const bO=En("/")({loader:async({context:n})=>{await n.queryClient.ensureQueryData(mm)},component:SO});function SO(){const{data:n,isLoading:a,error:r}=bs(mm);return a?u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})}):r?u.jsx("div",{className:"page",children:u.jsx("p",{className:"text-destructive",children:r.message})}):n?u.jsxs("div",{className:"page",children:[u.jsxs("div",{children:[u.jsx("h1",{children:n.workspace.name}),u.jsx("p",{className:"muted",children:n.workspace.root})]}),u.jsx("section",{className:"-mx-6 border-y bg-muted/20 px-6 py-5",children:u.jsxs("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsxs(Ut,{className:"mb-3 gap-1.5 bg-emerald-600 text-white hover:bg-emerald-600",children:[u.jsx(eo,{className:"h-3.5 w-3.5"})," Retrieval benchmark passed"]}),u.jsx("h2",{className:"text-lg font-semibold",children:"Measured retrieval quality"}),u.jsx("p",{className:"muted mt-1 text-sm",children:"18 queries, 3 iterations, 54 measured runs per mode."})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Recall@5"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"94.44%"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"MRR"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"0.6565"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Queries hit"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"17/18"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"FTS average"}),u.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:"38.68 ms"})]})]}),u.jsxs(yt,{to:"/benchmark",className:K0({variant:"outline",className:"shrink-0"}),children:["Full benchmark ",u.jsx(Qh,{className:"h-4 w-4"})]})]})}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Index state"})}),u.jsxs(De,{className:"grid gap-3",children:[u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Documents"}),u.jsx("strong",{children:n.stats.documents})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Chunks"}),u.jsx("strong",{children:n.stats.chunks})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Graph nodes"}),u.jsx("strong",{children:n.stats.graphNodes})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Graph edges"}),u.jsx("strong",{children:n.stats.graphEdges})]}),u.jsxs("div",{className:"stat",children:[u.jsx("span",{children:"Memories"}),u.jsx("strong",{children:n.stats.memories})]})]})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Latest runs"})}),u.jsx(De,{children:n.recentRuns.length===0?u.jsx("p",{className:"muted",children:"No index runs recorded yet."}):u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Mode"}),u.jsx(ze,{children:"Status"}),u.jsx(ze,{children:"Files"}),u.jsx(ze,{children:"Started"})]})}),u.jsx(Wn,{children:n.recentRuns.map(l=>u.jsxs(ut,{children:[u.jsx(_e,{children:l.mode}),u.jsx(_e,{children:l.status}),u.jsxs(_e,{children:[l.filesUpdated,"/",l.filesScanned]}),u.jsx(_e,{children:vs(l.startedAt)})]},l.id))})]})})]})]}),u.jsxs("div",{className:"grid cols-2",children:[u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Recent documents"})}),u.jsx(De,{children:u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Path"}),u.jsx(ze,{children:"Kind"})]})}),u.jsx(Wn,{children:n.recentDocuments.map(l=>u.jsxs(ut,{children:[u.jsx(_e,{children:l.path}),u.jsx(_e,{children:l.kind})]},l.id))})]})})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{children:"Recent memories"})}),u.jsx(De,{children:u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Title"}),u.jsx(ze,{children:"Source"})]})}),u.jsx(Wn,{children:n.recentMemories.map(l=>u.jsxs(ut,{children:[u.jsx(_e,{children:l.title}),u.jsx(_e,{children:l.source})]},l.id))})]})})]})]})]}):null}const wO={pending:"outline",indexing:"secondary",indexed:"default",error:"destructive",running:"secondary",completed:"default",failed:"destructive"};function ja({status:n,className:a}){return u.jsx(Ut,{variant:wO[n]??"outline",className:a,children:n})}const jO=En("/workspaces/")({loader:({context:n})=>n.queryClient.ensureQueryData(pm),component:RO,validateSearch:n=>({page:Math.max(1,parseInt(n.page??"",10)||1)})});function RO(){const n=Jl(),{page:a}=_i({from:"/workspaces/"}),{data:r,isLoading:l,error:o}=bs(pm);if(l)return u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})});if(o||r&&!r.ok){const p=r&&!r.ok?r:null;return u.jsxs("div",{className:"page",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsxs("div",{children:[u.jsx("h1",{children:"Workspaces"}),u.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]})}),u.jsx(Oe,{className:"border-destructive",children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(hm,{className:"h-12 w-12 text-destructive mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),u.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),p&&"error"in p&&u.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:p.error})]})})]})}const f=(r==null?void 0:r.data)??[],h=Math.max(1,Math.ceil(f.length/Dn)),m=Math.min(a,h),{paged:g}=M0(f,m);return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h1",{children:"Workspaces"}),u.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]}),u.jsx(yt,{to:"/workspaces/new",children:u.jsxs(Bt,{children:[u.jsx(Lx,{className:"h-4 w-4"}),"New Workspace"]})})]}),f.length===0?u.jsx(Oe,{children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(Vh,{className:"h-12 w-12 text-muted-foreground mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"No workspaces yet"}),u.jsx("p",{className:"muted text-center mb-6 max-w-sm",children:"Create your first workspace to start indexing a codebase."}),u.jsx(yt,{to:"/workspaces/new",children:u.jsxs(Bt,{children:[u.jsx(Lx,{className:"h-4 w-4"}),"Create Workspace"]})})]})}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",g.length," of ",f.length," workspaces"]}),u.jsx("div",{className:"space-y-4",children:g.map(p=>u.jsx(yt,{to:"/workspaces/$workspaceId",params:{workspaceId:p.id},className:"block",onMouseEnter:()=>n.prefetchQuery(Ni(p.id)),children:u.jsx(Oe,{className:"hover:bg-muted/50 transition-colors",children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-start justify-between",children:[u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("h2",{className:"text-lg font-medium truncate",children:p.name}),u.jsx(ja,{status:p.status})]}),u.jsx("p",{className:"muted text-sm truncate mb-3",children:p.rootPath}),u.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(T0,{className:"h-3.5 w-3.5 text-muted-foreground"}),u.jsxs("span",{className:"text-muted-foreground",children:[p.documentCount??0," docs"]})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(_0,{className:"h-3.5 w-3.5 text-muted-foreground"}),u.jsxs("span",{className:"text-muted-foreground",children:[p.chunkCount??0," chunks"]})]}),(p.nodeCount??0)>0&&u.jsx("div",{className:"flex items-center gap-1.5",children:u.jsxs("span",{className:"text-muted-foreground",children:[p.nodeCount," nodes"]})})]})]}),u.jsxs("div",{className:"text-right text-sm",children:[u.jsxs("div",{className:"flex gap-2 mb-1",children:[u.jsx(ja,{status:p.indexingStatus}),u.jsx(ja,{status:p.graphStatus})]}),u.jsxs("p",{className:"muted text-xs",children:["Last indexed: ",vs(p.lastIndexedAt)]})]})]})})})},p.id))}),u.jsx(vm,{currentPage:m,totalPages:h,basePath:"/workspaces/"})]})]})}const NO=En("/workspaces/new")({component:EO}),Rb=`src/**/*.{ts,tsx,js,jsx}
345
- app/**/*.{ts,tsx}
346
- pages/**/*.{ts,tsx}
347
- lib/**/*.{ts,tsx}
348
- **/*.md`,Nb=`node_modules/**
349
- **/node_modules/**
350
- .next/**
351
- dist/**
352
- build/**
353
- .git/**
354
- coverage/**
355
- **/.turbo/**`;function EO(){const n=lm(),[a,r]=w.useState(!1),[l,o]=w.useState(null),[f,h]=w.useState(null),[m,g]=w.useState(null);async function p(v){if(!v.trim()){h(null),g(null);return}try{const b=await Ea.validatePath(v);h(b.valid),g(b.valid?null:b.error??"Invalid path")}catch{h(!1),g("Validation failed")}}async function x(v){v.preventDefault(),r(!0),o(null);try{const b=new FormData(v.currentTarget),S=await Ea.createWorkspace({name:b.get("name"),rootPath:b.get("rootPath"),includeGlobs:(b.get("includeGlobs")||Rb).split(`
356
- `).map(N=>N.trim()).filter(Boolean),excludeGlobs:(b.get("excludeGlobs")||Nb).split(`
357
- `).map(N=>N.trim()).filter(Boolean)});S.success&&S.workspace?n({to:"/workspaces/$workspaceId",params:{workspaceId:S.workspace.id}}):o(S.error??"Failed to create workspace")}catch(b){o(b instanceof Error?b.message:"Failed to create workspace")}finally{r(!1)}}return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[u.jsx(yt,{to:"/workspaces",search:{page:1},children:u.jsx(Bt,{variant:"ghost",size:"icon",children:u.jsx(Gl,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("h1",{children:"New Workspace"}),u.jsx("p",{className:"muted",children:"Register a local codebase for indexing."})]})]}),u.jsx("form",{onSubmit:x,children:u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Vh,{className:"h-5 w-5 text-muted-foreground"}),u.jsx(at,{children:"Workspace Configuration"})]})}),u.jsxs(De,{className:"space-y-8",children:[l&&u.jsx("div",{className:"bg-destructive/10 text-destructive text-sm p-3 rounded-md",children:l}),u.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx(Et,{htmlFor:"name",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(JN,{className:"h-3.5 w-3.5"}),"Workspace Name"]})}),u.jsx(Ql,{id:"name",name:"name",placeholder:"my-project",required:!0,pattern:"[a-zA-Z0-9_-]+",title:"Letters, numbers, hyphens, and underscores only"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Used as the workspace ID. Letters, numbers, hyphens, and underscores."})]}),u.jsxs("div",{children:[u.jsx(Et,{htmlFor:"rootPath",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Vh,{className:"h-3.5 w-3.5"}),"Root Path"]})}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(Ql,{id:"rootPath",name:"rootPath",placeholder:"/path/to/project",required:!0,onBlur:v=>p(v.target.value),className:"pr-10"}),f===!0&&u.jsx(eo,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-primary"}),f===!1&&u.jsx(zx,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-destructive"})]}),u.jsx(Bt,{type:"button",variant:"secondary",className:"shrink-0",onClick:()=>{const v=document.getElementById("rootPath");v!=null&&v.value&&p(v.value)},children:"Validate"})]}),m&&u.jsx("p",{className:"mt-2 text-xs text-destructive",children:m}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Absolute path to the project root directory."})]})]}),u.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx(Et,{htmlFor:"includeGlobs",className:"mb-2 block",children:u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(QN,{className:"h-3.5 w-3.5"}),"Include Patterns"]})}),u.jsx(Xh,{id:"includeGlobs",name:"includeGlobs",defaultValue:Rb,rows:6,className:"font-mono text-sm"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to index. One per line."})]}),u.jsxs("div",{children:[u.jsxs(Et,{htmlFor:"excludeGlobs",className:"mb-2 block",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(zx,{className:"h-3.5 w-3.5"}),"Exclude Patterns"]}),u.jsx(Ut,{variant:"outline",className:"ml-2 text-xs px-1 py-0",children:"optional"})]}),u.jsx(Xh,{id:"excludeGlobs",name:"excludeGlobs",defaultValue:Nb,rows:6,className:"font-mono text-sm"}),u.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to exclude. One per line."})]})]}),u.jsxs("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-2",children:[u.jsx(yt,{to:"/workspaces",search:{page:1},className:"sm:order-1",children:u.jsx(Bt,{type:"button",variant:"secondary",className:"w-full sm:w-auto",children:"Cancel"})}),u.jsxs(Bt,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a&&u.jsx(Wc,{className:"h-4 w-4 animate-spin"}),"Create Workspace"]})]})]})]})})]})}const CO=En("/workspaces/$workspaceId")({component:TO});function TO(){return u.jsx(mu,{})}const _O=En("/workspaces/$workspaceId/")({loader:async({context:n,params:a})=>{await n.queryClient.ensureQueryData(Ni(a.workspaceId)),n.queryClient.prefetchQuery(pu(a.workspaceId))},component:AO});function Eb({status:n}){return n==="running"?u.jsx(Wc,{className:"h-4 w-4 animate-spin text-muted-foreground"}):n==="completed"?u.jsx(eo,{className:"h-4 w-4 text-primary"}):n==="failed"?u.jsx(N0,{className:"h-4 w-4 text-destructive"}):u.jsx(HN,{className:"h-4 w-4 text-muted-foreground"})}function Cb(n,a){if(!a)return"Running...";const r=new Date(a).getTime()-new Date(n).getTime();return r<1e3?"<1s":r<6e4?`${Math.round(r/1e3)}s`:`${Math.round(r/6e4)}m ${Math.round(r%6e4/1e3)}s`}function AO(){const{workspaceId:n}=du({from:"/workspaces/$workspaceId"}),a=Jl(),{data:r,isLoading:l}=bs(Ni(n)),o=()=>{a.prefetchQuery(Ni(n))},f=()=>{a.prefetchQuery(pu(n))};if(l)return u.jsx("div",{className:"page",children:u.jsx("p",{className:"muted",children:"Loading..."})});if(!r||!r.ok)return u.jsx("div",{className:"page",children:u.jsx(Oe,{className:"border-destructive",children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx(hm,{className:"h-12 w-12 text-destructive mb-4"}),u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),u.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),u.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:r&&"error"in r?r.error:"Unknown error"})]})})});const h=r.data;if(!h)return u.jsx("div",{className:"page",children:u.jsx(Oe,{children:u.jsxs(De,{className:"flex flex-col items-center justify-center py-16",children:[u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"}),u.jsx("p",{className:"muted",children:"Workspace not found."}),u.jsx(yt,{to:"/workspaces",search:{page:1},children:u.jsx(Bt,{variant:"secondary",className:"mt-4",children:"Back to workspaces"})})]})})});const m=h.nodeCount>0||h.edgeCount>0;return u.jsxs("div",{className:"page",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[u.jsx(yt,{to:"/workspaces",search:{page:1},children:u.jsx(Bt,{variant:"ghost",size:"icon",children:u.jsx(Gl,{className:"h-4 w-4"})})}),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h1",{children:h.name}),u.jsx(ja,{status:h.status})]}),u.jsx("p",{className:"muted text-sm",children:h.rootPath})]})]}),u.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[u.jsx(Oe,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(dm,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.documentCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Documents"})]})]})})}),u.jsx(Oe,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(T0,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.chunkCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Chunks"})]})]})})}),u.jsx(Oe,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx($N,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.nodeCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Nodes"})]})]})})}),u.jsx(Oe,{children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(C0,{className:"h-5 w-5 text-muted-foreground"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-2xl font-semibold",children:h.edgeCount}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Edges"})]})]})})})]}),u.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[u.jsx(yt,{to:"/query",search:{workspaceId:n},onMouseEnter:o,children:u.jsxs(Bt,{variant:"outline",children:[u.jsx(rE,{className:"h-4 w-4"})," Try Query"]})}),m&&u.jsx(yt,{to:"/workspaces/$workspaceId/graph",params:{workspaceId:n},onMouseEnter:f,children:u.jsx(Bt,{variant:"secondary",children:"Open Graph Explorer"})})]}),u.jsxs(Oe,{className:"mb-6",children:[u.jsx(nt,{className:"pb-3",children:u.jsx(at,{className:"text-base",children:"Indexing Control"})}),u.jsxs(De,{className:"space-y-3",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"The default local workflow uses the CLI to index a workspace."}),u.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 font-mono text-sm",children:[u.jsxs("div",{children:["openez index ",h.rootPath]}),u.jsxs("div",{children:["openez status ",h.rootPath]})]})]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-2 mb-6",children:[u.jsxs(Oe,{children:[u.jsx(nt,{className:"pb-3",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(at,{className:"text-base",children:"Indexing"}),u.jsx(ja,{status:h.indexingStatus})]})}),u.jsx(De,{children:h.latestIndexRun?u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Eb,{status:h.latestIndexRun.status}),u.jsxs("span",{className:"text-sm",children:[h.latestIndexRun.mode," —"," ",h.latestIndexRun.status]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Files scanned:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.filesScanned})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Files updated:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.filesUpdated})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Chunks written:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.chunksWritten??0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Embeddings:"})," ",u.jsx("span",{className:"font-medium",children:h.latestIndexRun.embeddingsWritten??0})]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",vs(h.latestIndexRun.startedAt),h.latestIndexRun.finishedAt&&u.jsxs(u.Fragment,{children:[" ","· Duration:"," ",Cb(h.latestIndexRun.startedAt,h.latestIndexRun.finishedAt)]})]}),h.latestIndexRun.errorMessage&&u.jsx("p",{className:"text-xs text-destructive",children:h.latestIndexRun.errorMessage})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No indexing runs yet."})})]}),u.jsxs(Oe,{children:[u.jsx(nt,{className:"pb-3",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(at,{className:"text-base",children:"Graph"}),u.jsx(ja,{status:h.graphStatus})]})}),u.jsx(De,{children:h.latestGraphRun?u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Eb,{status:h.latestGraphRun.status}),u.jsxs("span",{className:"text-sm",children:[h.latestGraphRun.mode," —"," ",h.latestGraphRun.status]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Nodes:"})," ",u.jsx("span",{className:"font-medium",children:h.latestGraphRun.nodesCreated??0})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-muted-foreground",children:"Edges:"})," ",u.jsx("span",{className:"font-medium",children:h.latestGraphRun.edgesCreated??0})]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",vs(h.latestGraphRun.startedAt),h.latestGraphRun.finishedAt&&u.jsxs(u.Fragment,{children:[" ","· Duration:"," ",Cb(h.latestGraphRun.startedAt,h.latestGraphRun.finishedAt)]})]}),h.latestGraphRun.errorMessage&&u.jsx("p",{className:"text-xs text-destructive",children:h.latestGraphRun.errorMessage})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:h.indexingStatus==="completed"?"Graph data is derived during indexing.":"Index workspace first to populate graph data."})})]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{className:"text-base",children:"Recent Index Runs"})}),u.jsx(De,{children:h.recentIndexRuns.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No index runs yet."}):u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Mode"}),u.jsx(ze,{children:"Status"}),u.jsx(ze,{children:"Files"}),u.jsx(ze,{children:"Started"})]})}),u.jsx(Wn,{children:h.recentIndexRuns.map(g=>u.jsxs(ut,{children:[u.jsx(_e,{children:g.mode}),u.jsx(_e,{children:u.jsx(ja,{status:g.status})}),u.jsxs(_e,{children:[g.filesUpdated,"/",g.filesScanned]}),u.jsx(_e,{className:"text-muted-foreground",children:vs(g.startedAt)})]},g.id))})]})})]}),u.jsxs(Oe,{children:[u.jsx(nt,{children:u.jsx(at,{className:"text-base",children:"Recent Graph Runs"})}),u.jsx(De,{children:h.recentGraphRuns.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph runs yet."}):u.jsxs(Fn,{children:[u.jsx($n,{children:u.jsxs(ut,{children:[u.jsx(ze,{children:"Mode"}),u.jsx(ze,{children:"Status"}),u.jsx(ze,{children:"Nodes"}),u.jsx(ze,{children:"Started"})]})}),u.jsx(Wn,{children:h.recentGraphRuns.map(g=>u.jsxs(ut,{children:[u.jsx(_e,{children:g.mode}),u.jsx(_e,{children:u.jsx(ja,{status:g.status})}),u.jsx(_e,{children:g.nodesCreated}),u.jsx(_e,{className:"text-muted-foreground",children:vs(g.startedAt)})]},g.id))})]})})]})]}),h.lastError&&u.jsx(Oe,{className:"mt-4 border-destructive",children:u.jsx(De,{className:"p-4",children:u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx(N0,{className:"h-4 w-4 text-destructive mt-0.5"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-destructive",children:"Last Error"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:h.lastError})]})]})})})]})}const MO="modulepreload",OO=function(n){return"/"+n},Tb={},DO=function(a,r,l){let o=Promise.resolve();if(r&&r.length>0){let h=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=h(r.map(p=>{if(p=OO(p),p in Tb)return;Tb[p]=!0;const x=p.endsWith(".css"),v=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const b=document.createElement("link");if(b.rel=x?"stylesheet":MO,x||(b.as="script"),b.crossOrigin="",b.href=p,g&&b.setAttribute("nonce",g),document.head.appendChild(b),x)return new Promise((S,N)=>{b.addEventListener("load",S),b.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&f(m.reason);return a().catch(f)})};function zO({nodeTypes:n,edgeTypes:a}){return u.jsxs("div",{className:"flex flex-wrap gap-4 text-xs",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{className:"font-medium text-muted-foreground",children:"Nodes"}),n.map(r=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"h-3 w-3 rounded-full",style:{backgroundColor:uO(r)}}),u.jsx("span",{className:"text-muted-foreground",children:r})]},r))]}),u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{className:"font-medium text-muted-foreground",children:"Edges"}),a.slice(0,6).map(r=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"h-0.5 w-3 rounded-full",style:{backgroundColor:fO(r)}}),u.jsx("span",{className:"text-muted-foreground",children:r})]},r))]})]})}const LO=w.lazy(()=>DO(()=>import("./WorkspaceGraph-CBFibdQH.js"),[]).then(n=>({default:n.WorkspaceGraph})));function kO({graphData:n}){const[a,r]=w.useState(!1),[l,o]=w.useState(null),[f,h]=w.useState(""),[m,g]=w.useState(()=>new Set(n.nodeTypes)),[p,x]=w.useState(()=>new Set(n.edgeTypes)),[v,b]=w.useState(null),[S,N]=w.useState(null);w.useEffect(()=>{r(!0)},[]);const R=w.useMemo(()=>{const k=new Map;for(const q of n.nodes)k.set(q.id,q);return k},[n.nodes]),E=w.useMemo(()=>{const k=new Map;for(const q of n.edges){const $=k.get(q.target);$?$.push(q):k.set(q.target,[q])}return k},[n.edges]),C=w.useMemo(()=>{const k=new Map;for(const q of n.edges){const $=k.get(q.source);$?$.push(q):k.set(q.source,[q])}return k},[n.edges]),_=w.useMemo(()=>{if(!l)return null;const k=E.get(l)??[],q=C.get(l)??[];return{incoming:k,outgoing:q}},[l,E,C]),U=w.useMemo(()=>n.nodes.filter(k=>!(f&&!k.label.toLowerCase().includes(f.toLowerCase())||m.size>0&&!m.has(k.type))),[n.nodes,f,m]),T=w.useMemo(()=>{const k=new Set(U.map(q=>q.id));return n.edges.filter(q=>!(!k.has(q.source)||!k.has(q.target)||p.size>0&&!p.has(q.type)))},[n.edges,U,p]),P=w.useCallback(k=>{if(!k){o(null),N(null);return}o(k),N(R.get(k)??null)},[R]),Y=w.useCallback(k=>{b(k)},[]),M=k=>{const q=new Set(m);q.has(k)?q.delete(k):q.add(k),g(q)},D=k=>{const q=new Set(p);q.has(k)?q.delete(k):q.add(k),x(q)};return a?u.jsxs("div",{className:"relative flex-1 min-h-0 overflow-hidden bg-[#171717]",children:[u.jsx("div",{className:"absolute left-3 top-3 z-10 max-h-[calc(100%-1.5rem)] w-64 overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 p-3 shadow-2xl backdrop-blur-xl",children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Et,{htmlFor:"search",className:"text-xs",children:"Search"}),u.jsxs("div",{className:"relative",children:[u.jsx(_0,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),u.jsx(Ql,{id:"search",placeholder:"Node label...",value:f,onChange:k=>h(k.target.value),className:"pl-8 h-8 text-sm"}),f&&u.jsx("button",{type:"button",onClick:()=>h(""),"aria-label":"Clear search",className:"absolute right-2 top-1/2 -translate-y-1/2",children:u.jsx(kx,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-foreground"})})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Et,{className:"text-xs",children:"Node Types"}),u.jsx("div",{className:"flex flex-wrap gap-1",children:n.nodeTypes.map(k=>u.jsx("button",{type:"button",onClick:()=>M(k),"aria-pressed":m.has(k),className:`px-2 py-0.5 text-xs rounded border transition-colors ${m.has(k)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:k},k))})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Et,{className:"text-xs",children:"Edge Types"}),u.jsx("div",{className:"flex flex-wrap gap-1",children:n.edgeTypes.map(k=>u.jsx("button",{type:"button",onClick:()=>D(k),"aria-pressed":p.has(k),className:`px-2 py-0.5 text-xs rounded border transition-colors ${p.has(k)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:k},k))})]}),u.jsxs("div",{className:"pt-2 border-t",children:[u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",U.length.toLocaleString()," of ",n.totalNodes.toLocaleString()," nodes"]}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:[T.length.toLocaleString()," of ",n.totalEdges.toLocaleString()," edges"]}),n.totalNodes>n.nodes.length&&u.jsxs("p",{className:"text-xs text-amber-500/80 mt-1",children:[n.nodes.length.toLocaleString()," nodes loaded (limit)"]})]}),u.jsx("div",{className:"pt-2 border-t",children:u.jsx(zO,{nodeTypes:n.nodeTypes,edgeTypes:n.edgeTypes})})]})}),u.jsxs("div",{className:"absolute inset-0",children:[u.jsx(w.Suspense,{fallback:u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#171717]",children:u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Wc,{className:"h-4 w-4 animate-spin"}),u.jsx("span",{children:"Loading graph renderer..."})]})}),children:u.jsx(LO,{nodes:U,edges:T,selectedNodeId:l,onNodeClick:P,onNodeHover:Y,className:"absolute inset-0"})}),v&&!l&&(()=>{const k=R.get(v);return k?u.jsxs("div",{className:"pointer-events-none absolute bottom-4 left-4 max-w-sm rounded-md border border-white/10 bg-[#202020]/95 px-3 py-2 shadow-xl backdrop-blur-xl",children:[u.jsx("p",{className:"text-sm font-medium",children:k.label}),u.jsx("p",{className:"text-xs text-muted-foreground",children:k.type})]}):null})()]}),S&&u.jsxs("div",{className:"absolute bottom-3 right-3 top-3 z-20 w-[min(20rem,calc(100%-1.5rem))] overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 shadow-2xl backdrop-blur-xl",children:[u.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[u.jsx("h3",{className:"font-medium text-sm",children:"Inspector"}),u.jsx("button",{type:"button","aria-label":"Close inspector",onClick:()=>{o(null),N(null)},className:"text-muted-foreground hover:text-foreground",children:u.jsx(kx,{className:"h-4 w-4"})})]}),u.jsxs("div",{className:"p-4 space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Label"}),u.jsx("p",{className:"text-sm font-mono break-all",children:S.label})]}),u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Type"}),u.jsx("p",{className:"text-sm",children:u.jsx(Ut,{variant:"outline",children:S.type})})]}),u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Degree"}),u.jsxs("p",{className:"text-sm",children:[S.degree," connections"]})]}),S.path&&u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Path"}),u.jsx("p",{className:"text-sm font-mono text-xs break-all",children:S.path})]}),(S.startLine||S.endLine)&&u.jsxs("div",{children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Lines"}),u.jsxs("p",{className:"text-sm font-mono",children:[S.startLine??"?","-",S.endLine??"?"]})]})]}),_&&u.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[u.jsxs(Et,{className:"text-xs text-muted-foreground",children:["Connections (",_.incoming.length+_.outgoing.length,")"]}),_.incoming.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Incoming"}),_.incoming.slice(0,5).map(k=>{const q=R.get(k.source);return u.jsxs("button",{type:"button",onClick:()=>P(k.source),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[u.jsxs("span",{className:"text-muted-foreground",children:[k.type,":"]})," ",u.jsx("span",{className:"font-mono truncate",children:(q==null?void 0:q.label)??k.source})]},k.id)})]}),_.outgoing.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Outgoing"}),_.outgoing.slice(0,5).map(k=>{const q=R.get(k.target);return u.jsxs("button",{type:"button",onClick:()=>P(k.target),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[u.jsxs("span",{className:"text-muted-foreground",children:[k.type,":"]})," ",u.jsx("span",{className:"font-mono truncate",children:(q==null?void 0:q.label)??k.target})]},k.id)})]})]}),Object.keys(S.metadata??{}).length>0&&u.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[u.jsx(Et,{className:"text-xs text-muted-foreground",children:"Metadata"}),u.jsx("pre",{className:"text-xs bg-muted rounded p-2 overflow-auto max-h-40",children:JSON.stringify(S.metadata,null,2)})]})]})]})]}):u.jsx("div",{className:"flex flex-1 items-center justify-center bg-background",children:u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Wc,{className:"h-4 w-4 animate-spin"}),u.jsx("span",{children:"Loading graph interface..."})]})})}const UO=En("/workspaces/$workspaceId/graph")({loader:async({context:n,params:a})=>{await Promise.all([n.queryClient.ensureQueryData(Ni(a.workspaceId)),n.queryClient.ensureQueryData(pu(a.workspaceId))])},component:BO});function BO(){const{workspaceId:n}=du({from:"/workspaces/$workspaceId/graph"}),{data:a}=bs(Ni(n)),{data:r}=bs(pu(n));if(!(a!=null&&a.ok))return u.jsx("div",{className:"page",children:u.jsx(Oe,{className:"border-destructive",children:u.jsx(De,{className:"flex flex-col items-center justify-center py-16",children:u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"})})})});const l=a.data;if(!l)return u.jsx("div",{className:"page",children:u.jsx(Oe,{children:u.jsx(De,{className:"flex flex-col items-center justify-center py-16",children:u.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"})})})});const o=!!r&&r.nodes.length>0;return u.jsxs("div",{className:"-m-6 flex h-svh flex-col overflow-hidden bg-[#171717]",children:[u.jsx("div",{className:"z-20 border-b border-white/10 bg-[#202020]/95 backdrop-blur-xl",children:u.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(yt,{to:"/workspaces/$workspaceId",params:{workspaceId:n},children:u.jsx(Bt,{variant:"ghost",size:"icon",children:u.jsx(Gl,{className:"h-4 w-4"})})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("h1",{className:"text-sm font-semibold",children:"Graph view"}),u.jsx(Ut,{variant:"outline",children:l.name})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:r?u.jsxs(u.Fragment,{children:[r.totalNodes.toLocaleString()," nodes ·"," ",r.totalEdges.toLocaleString()," edges"]}):u.jsx(u.Fragment,{children:"No graph data"})})]})]}),u.jsx(ja,{status:l.graphStatus})]})}),o?r&&r.nodes.length>0?u.jsx(kO,{graphData:r}):null:u.jsx("div",{className:"flex-1 flex items-center justify-center",children:u.jsxs(Oe,{className:"max-w-md",children:[u.jsx(nt,{children:u.jsx(at,{children:"No Graph Data"})}),u.jsxs(De,{className:"space-y-4",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph data was found for this workspace."}),u.jsx(yt,{to:"/workspaces/$workspaceId",params:{workspaceId:n},children:u.jsx(Bt,{variant:"secondary",children:"Go to Workspace"})})]})]})})]})}const Nu=eO.update({id:"/workspaces",path:"/workspaces",getParentRoute:()=>Ns}),HO=tO.update({id:"/settings",path:"/settings",getParentRoute:()=>Ns}),PO=oO.update({id:"/query",path:"/query",getParentRoute:()=>Ns}),qO=dO.update({id:"/jobs",path:"/jobs",getParentRoute:()=>Ns}),GO=mO.update({id:"/documents",path:"/documents",getParentRoute:()=>Ns}),QO=gO.update({id:"/benchmark",path:"/benchmark",getParentRoute:()=>Ns}),VO=bO.update({id:"/",path:"/",getParentRoute:()=>Ns}),YO=jO.update({id:"/",path:"/",getParentRoute:()=>Nu}),XO=NO.update({id:"/new",path:"/new",getParentRoute:()=>Nu}),Pm=CO.update({id:"/$workspaceId",path:"/$workspaceId",getParentRoute:()=>Nu}),IO=_O.update({id:"/",path:"/",getParentRoute:()=>Pm}),KO=UO.update({id:"/graph",path:"/graph",getParentRoute:()=>Pm}),ZO={WorkspacesWorkspaceIdGraphRoute:KO,WorkspacesWorkspaceIdIndexRoute:IO},FO=Pm._addFileChildren(ZO),$O={WorkspacesWorkspaceIdRoute:FO,WorkspacesNewRoute:XO,WorkspacesIndexRoute:YO},WO=Nu._addFileChildren($O),JO={IndexRoute:VO,BenchmarkRoute:QO,DocumentsRoute:GO,JobsRoute:qO,QueryRoute:PO,SettingsRoute:HO,WorkspacesRoute:WO},e3=Ns._addFileChildren(JO)._addFileTypes(),pS=new dN({defaultOptions:{queries:{staleTime:1e3*60*60,refetchOnMount:!1,refetchOnWindowFocus:!1}}}),t3=UR({routeTree:e3,context:{queryClient:pS}}),_b=document.getElementById("root");_b.innerHTML||Yj.createRoot(_b).render(u.jsx(ur.StrictMode,{children:u.jsx(hN,{client:pS,children:u.jsx(PR,{router:t3})})}));export{uO as a,fO as g,u as j,w as r};